Trait cushy::styles::ContextFreeComponent

source ·
pub trait ContextFreeComponent: ComponentDefinition {
    // Required method
    fn default(&self) -> Self::ComponentType;

    // Provided methods
    fn probe(self) -> ComponentProbe<Self> { ... }
    fn probe_wrapping(self, child: impl MakeWidget) -> ComponentProbe<Self> { ... }
}
Expand description

A ComponentDefinition that can provide a default value without access to a runtime context.

Required Methods§

source

fn default(&self) -> Self::ComponentType

Returns the default value for this component.

Provided Methods§

source

fn probe(self) -> ComponentProbe<Self>

Returns a new probe that provides access to the runtime value of this component.

source

fn probe_wrapping(self, child: impl MakeWidget) -> ComponentProbe<Self>

Returns a new probe wrapping child that provides access to the runtime value of this component.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl ContextFreeComponent for ButtonActiveOutline

source§

impl ContextFreeComponent for ButtonDisabledOutline

source§

impl ContextFreeComponent for ButtonHoverOutline

source§

impl ContextFreeComponent for ButtonOutline

source§

impl ContextFreeComponent for DelimiterSize

source§

impl ContextFreeComponent for ImageCornerRadius

source§

impl ContextFreeComponent for Delimiter

source§

impl ContextFreeComponent for Prefix

source§

impl ContextFreeComponent for ScrollBarThickness

source§

impl ContextFreeComponent for ScrollBarThumbOutlineThickness

source§

impl ContextFreeComponent for KnobSize

source§

impl ContextFreeComponent for TrackSize

source§

impl ContextFreeComponent for AutoFocusableControls

source§

impl ContextFreeComponent for BaseLineHeight

source§

impl ContextFreeComponent for BaseTextSize

source§

impl ContextFreeComponent for CornerRadius

source§

impl ContextFreeComponent for Easing

source§

impl ContextFreeComponent for EasingIn

source§

impl ContextFreeComponent for EasingOut

source§

impl ContextFreeComponent for FontFamily

source§

impl ContextFreeComponent for FontStyle

source§

impl ContextFreeComponent for FontWeight

source§

impl ContextFreeComponent for HeadingFontFamily

source§

impl ContextFreeComponent for HeadingStyle

source§

impl ContextFreeComponent for HeadingWeight

source§

impl ContextFreeComponent for HorizontalAlignment

source§

impl ContextFreeComponent for IntrinsicPadding

source§

impl ContextFreeComponent for LayoutOrder

source§

impl ContextFreeComponent for Opacity

source§

impl ContextFreeComponent for OutlineWidth

source§

impl ContextFreeComponent for VerticalAlignment