cushy::styles

Trait NamedComponent

source
pub trait NamedComponent: Sized {
    // Required method
    fn name(&self) -> Cow<'_, ComponentName>;
}
Expand description

A type that represents a named style component.

Required Methods§

source

fn name(&self) -> Cow<'_, ComponentName>

Returns the name of the style component.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl NamedComponent for Cow<'_, ComponentName>

source§

fn name(&self) -> Cow<'_, ComponentName>

Implementors§

source§

impl NamedComponent for ButtonActiveBackground

source§

impl NamedComponent for ButtonActiveForeground

source§

impl NamedComponent for ButtonActiveOutline

source§

impl NamedComponent for ButtonBackground

source§

impl NamedComponent for ButtonDisabledBackground

source§

impl NamedComponent for ButtonDisabledForeground

source§

impl NamedComponent for ButtonDisabledOutline

source§

impl NamedComponent for ButtonForeground

source§

impl NamedComponent for ButtonHoverBackground

source§

impl NamedComponent for ButtonHoverForeground

source§

impl NamedComponent for ButtonHoverOutline

source§

impl NamedComponent for ButtonOutline

source§

impl NamedComponent for CheckboxCornerRadius

source§

impl NamedComponent for CheckboxSize

source§

impl NamedComponent for CurrentContainerBackground

source§

impl NamedComponent for DelimiterColor

source§

impl NamedComponent for DelimiterSize

source§

impl NamedComponent for IndicatorSize

source§

impl NamedComponent for ImageCornerRadius

source§

impl NamedComponent for Delimiter

source§

impl NamedComponent for Prefix

source§

impl NamedComponent for TrailingDelimiter

source§

impl NamedComponent for RadioSize

source§

impl NamedComponent for ScrollBarThickness

source§

impl NamedComponent for ScrollBarThumbColor

source§

impl NamedComponent for ScrollBarThumbCornerRadius

source§

impl NamedComponent for ScrollBarThumbOutlineColor

source§

impl NamedComponent for ScrollBarThumbOutlineThickness

source§

impl NamedComponent for SelectedColor

source§

impl NamedComponent for DisabledInactiveTrackColor

source§

impl NamedComponent for DisabledKnobColor

source§

impl NamedComponent for DisabledTrackColor

source§

impl NamedComponent for InactiveTrackColor

source§

impl NamedComponent for KnobColor

source§

impl NamedComponent for KnobSize

source§

impl NamedComponent for MinimumSliderSize

source§

impl NamedComponent for TrackColor

source§

impl NamedComponent for TrackSize

source§

impl NamedComponent for HintTextColor

source§

impl NamedComponent for InvalidTextColor

source§

impl NamedComponent for ValidatedLineHeight

source§

impl NamedComponent for ValidatedTextSize

source§

impl NamedComponent for AutoFocusableControls

source§

impl NamedComponent for BaseLineHeight

source§

impl NamedComponent for BaseTextSize

source§

impl NamedComponent for CornerRadius

source§

impl NamedComponent for DefaultActiveBackgroundColor

source§

impl NamedComponent for DefaultActiveForegroundColor

source§

impl NamedComponent for DefaultBackgroundColor

source§

impl NamedComponent for DefaultDisabledBackgroundColor

source§

impl NamedComponent for DefaultDisabledForegroundColor

source§

impl NamedComponent for DefaultForegroundColor

source§

impl NamedComponent for DefaultHoveredBackgroundColor

source§

impl NamedComponent for DefaultHoveredForegroundColor

source§

impl NamedComponent for DisabledOutlineColor

source§

impl NamedComponent for DisabledWidgetAccentColor

source§

impl NamedComponent for Easing

source§

impl NamedComponent for EasingIn

source§

impl NamedComponent for EasingOut

source§

impl NamedComponent for ErrorColor

source§

impl NamedComponent for FocusColor

source§

impl NamedComponent for FontFamily

source§

impl NamedComponent for FontStyle

source§

impl NamedComponent for FontWeight

source§

impl NamedComponent for Heading1FontFamily

source§

impl NamedComponent for Heading1Style

source§

impl NamedComponent for Heading1Weight

source§

impl NamedComponent for Heading2FontFamily

source§

impl NamedComponent for Heading2Style

source§

impl NamedComponent for Heading2Weight

source§

impl NamedComponent for Heading3FontFamily

source§

impl NamedComponent for Heading3Style

source§

impl NamedComponent for Heading3Weight

source§

impl NamedComponent for Heading4FontFamily

source§

impl NamedComponent for Heading4Style

source§

impl NamedComponent for Heading4Weight

source§

impl NamedComponent for Heading5FontFamily

source§

impl NamedComponent for Heading5Style

source§

impl NamedComponent for Heading5Weight

source§

impl NamedComponent for Heading6FontFamily

source§

impl NamedComponent for Heading6Style

source§

impl NamedComponent for Heading6Weight

source§

impl NamedComponent for HeadingFontFamily

source§

impl NamedComponent for HeadingStyle

source§

impl NamedComponent for HeadingWeight

source§

impl NamedComponent for HighlightColor

source§

impl NamedComponent for HorizontalAlignment

source§

impl NamedComponent for IntrinsicPadding

source§

impl NamedComponent for LayoutOrder

source§

impl NamedComponent for LineHeight1

source§

impl NamedComponent for LineHeight2

source§

impl NamedComponent for LineHeight3

source§

impl NamedComponent for LineHeight4

source§

impl NamedComponent for LineHeight5

source§

impl NamedComponent for LineHeight6

source§

impl NamedComponent for LineHeight7

source§

impl NamedComponent for LineHeight8

source§

impl NamedComponent for LineHeight

source§

impl NamedComponent for Opacity

source§

impl NamedComponent for OpaqueWidgetColor

source§

impl NamedComponent for OutlineColor

source§

impl NamedComponent for OutlineWidth

source§

impl NamedComponent for PrimaryColor

source§

impl NamedComponent for ScrimColor

source§

impl NamedComponent for SecondaryColor

source§

impl NamedComponent for SurfaceColor

source§

impl NamedComponent for TertiaryColor

source§

impl NamedComponent for TextColor

source§

impl NamedComponent for TextColorVariant

source§

impl NamedComponent for TextSize1

source§

impl NamedComponent for TextSize2

source§

impl NamedComponent for TextSize3

source§

impl NamedComponent for TextSize4

source§

impl NamedComponent for TextSize5

source§

impl NamedComponent for TextSize6

source§

impl NamedComponent for TextSize7

source§

impl NamedComponent for TextSize8

source§

impl NamedComponent for TextSize

source§

impl NamedComponent for VerticalAlignment

source§

impl NamedComponent for WidgetAccentColor

source§

impl NamedComponent for WidgetBackground

source§

impl NamedComponent for ComponentName