pub struct ToggleButtonConfig {Show 13 fields
pub modifier: Modifier,
pub enabled: bool,
pub container_color: Option<Color>,
pub content_color: Option<Color>,
pub checked_container_color: Option<Color>,
pub checked_content_color: Option<Color>,
pub state_colors: StateColors,
pub state_elevation: Option<StateElevation>,
pub border: Option<(f32, Color, f32)>,
pub shape_radius: f32,
pub height: f32,
pub content_padding: Option<PaddingValues>,
pub interaction_source: Option<MutableInteractionSource>,
}Expand description
Configuration for toggle button components.
Fields§
§modifier: Modifier§enabled: bool§container_color: Option<Color>§content_color: Option<Color>§checked_container_color: Option<Color>§checked_content_color: Option<Color>§state_colors: StateColors§state_elevation: Option<StateElevation>§border: Option<(f32, Color, f32)>§shape_radius: f32§height: f32§content_padding: Option<PaddingValues>§interaction_source: Option<MutableInteractionSource>Trait Implementations§
Source§impl Clone for ToggleButtonConfig
impl Clone for ToggleButtonConfig
Source§fn clone(&self) -> ToggleButtonConfig
fn clone(&self) -> ToggleButtonConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToggleButtonConfig
impl Debug for ToggleButtonConfig
Auto Trait Implementations§
impl !RefUnwindSafe for ToggleButtonConfig
impl !Send for ToggleButtonConfig
impl !Sync for ToggleButtonConfig
impl !UnwindSafe for ToggleButtonConfig
impl Freeze for ToggleButtonConfig
impl Unpin for ToggleButtonConfig
impl UnsafeUnpin for ToggleButtonConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more