Skip to main content

ComponentStyleSlots

Struct ComponentStyleSlots 

Source
pub struct ComponentStyleSlots {
Show 41 fields pub button: Option<SharedButtonStyle>, pub split_button: Option<SharedSplitButtonStyle>, pub splitter: Option<SharedSplitterStyle>, pub icon_button: Option<SharedIconButtonStyle>, pub toggle: Option<SharedToggleStyle>, pub checkbox: Option<SharedCheckboxStyle>, pub radio: Option<SharedRadioStyle>, pub radio_tile: Option<SharedRadioTileStyle>, pub slider: Option<SharedSliderStyle>, pub text_input: Option<SharedTextInputStyle>, pub combo_box: Option<SharedComboBoxStyle>, pub menu_item: Option<SharedMenuItemStyle>, pub panel: Option<SharedPanelStyle>, pub card: Option<SharedCardStyle>, pub chart: Option<SharedChartStyle>, pub popover: Option<SharedPopoverStyle>, pub tooltip: Option<SharedTooltipStyle>, pub scroll_bar: Option<SharedScrollBarStyle>, pub standard_item: Option<SharedStandardItemStyle>, pub tab: Option<SharedTabStyle>, pub dialog: Option<SharedDialogStyle>, pub snackbar: Option<SharedSnackbarStyle>, pub toast: Option<SharedToastStyle>, pub banner: Option<SharedBannerStyle>, pub badge: Option<SharedBadgeStyle>, pub progress_bar: Option<SharedProgressBarStyle>, pub link: Option<SharedLinkStyle>, pub segmented_control: Option<SharedSegmentedControlStyle>, pub avatar: Option<SharedAvatarStyle>, pub calendar: Option<SharedCalendarStyle>, pub color_picker: Option<SharedColorPickerStyle>, pub spin_box: Option<SharedSpinBoxStyle>, pub date_edit: Option<SharedDateEditStyle>, pub search_field: Option<SharedSearchFieldStyle>, pub rich_text_editor: Option<SharedRichTextEditorStyle>, pub table: Option<SharedTableStyle>, pub list_container: Option<SharedListContainerStyle>, pub drop_zone: Option<SharedDropZoneStyle>, pub drop_target: Option<SharedDropTargetStyle>, pub grid_view: Option<SharedGridViewStyle>, pub web_view: Option<SharedWebViewStyle>,
}
Expand description

Typed slot bag living on crate::styles::Theme. One slot per themable widget. None means “use the widget’s local default Recipe*Style”; Some(rc) installs the override theme-wide.

Fields§

§button: Option<SharedButtonStyle>§split_button: Option<SharedSplitButtonStyle>§splitter: Option<SharedSplitterStyle>§icon_button: Option<SharedIconButtonStyle>§toggle: Option<SharedToggleStyle>§checkbox: Option<SharedCheckboxStyle>§radio: Option<SharedRadioStyle>§radio_tile: Option<SharedRadioTileStyle>§slider: Option<SharedSliderStyle>§text_input: Option<SharedTextInputStyle>§combo_box: Option<SharedComboBoxStyle>§menu_item: Option<SharedMenuItemStyle>§panel: Option<SharedPanelStyle>§card: Option<SharedCardStyle>§chart: Option<SharedChartStyle>§popover: Option<SharedPopoverStyle>§tooltip: Option<SharedTooltipStyle>§scroll_bar: Option<SharedScrollBarStyle>§standard_item: Option<SharedStandardItemStyle>§tab: Option<SharedTabStyle>§dialog: Option<SharedDialogStyle>§snackbar: Option<SharedSnackbarStyle>§toast: Option<SharedToastStyle>§banner: Option<SharedBannerStyle>§badge: Option<SharedBadgeStyle>§progress_bar: Option<SharedProgressBarStyle>§link: Option<SharedLinkStyle>§segmented_control: Option<SharedSegmentedControlStyle>§avatar: Option<SharedAvatarStyle>§calendar: Option<SharedCalendarStyle>§color_picker: Option<SharedColorPickerStyle>§spin_box: Option<SharedSpinBoxStyle>§date_edit: Option<SharedDateEditStyle>§search_field: Option<SharedSearchFieldStyle>§rich_text_editor: Option<SharedRichTextEditorStyle>§table: Option<SharedTableStyle>§list_container: Option<SharedListContainerStyle>§drop_zone: Option<SharedDropZoneStyle>§drop_target: Option<SharedDropTargetStyle>§grid_view: Option<SharedGridViewStyle>§web_view: Option<SharedWebViewStyle>

Trait Implementations§

Source§

impl Clone for ComponentStyleSlots

Source§

fn clone(&self) -> ComponentStyleSlots

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ComponentStyleSlots

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ComponentStyleSlots

Source§

fn default() -> ComponentStyleSlots

Returns the “default value” for a type. Read more
Source§

impl PartialEq for ComponentStyleSlots

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.