pub struct ButtonConfig {Show 13 fields
pub modifier: Modifier,
pub enabled: bool,
pub content_color: Option<Color>,
pub container_color: Option<Color>,
pub state_colors: StateColors,
pub state_elevation: Option<StateElevation>,
pub border: Option<(f32, Color, f32)>,
pub shape_radius: f32,
pub content_padding: Option<PaddingValues>,
pub height: f32,
pub colors: Option<ButtonColors>,
pub elevation: Option<ButtonElevation>,
pub interaction_source: Option<MutableInteractionSource>,
}Expand description
Configuration for button components.
Fields§
§modifier: Modifier§enabled: bool§content_color: Option<Color>§container_color: Option<Color>§state_colors: StateColors§state_elevation: Option<StateElevation>§border: Option<(f32, Color, f32)>§shape_radius: f32§content_padding: Option<PaddingValues>§height: f32§colors: Option<ButtonColors>§elevation: Option<ButtonElevation>§interaction_source: Option<MutableInteractionSource>Trait Implementations§
Source§impl Clone for ButtonConfig
impl Clone for ButtonConfig
Source§fn clone(&self) -> ButtonConfig
fn clone(&self) -> ButtonConfig
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 ButtonConfig
impl Debug for ButtonConfig
Auto Trait Implementations§
impl !RefUnwindSafe for ButtonConfig
impl !Send for ButtonConfig
impl !Sync for ButtonConfig
impl !UnwindSafe for ButtonConfig
impl Freeze for ButtonConfig
impl Unpin for ButtonConfig
impl UnsafeUnpin for ButtonConfig
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