pub struct CheckboxConfig {Show 16 fields
pub modifier: Modifier,
pub enabled: bool,
pub checked_color: Color,
pub unchecked_color: Color,
pub checkmark_color: Color,
pub checked_border_color: Color,
pub unchecked_border_color: Color,
pub disabled_checked_box_color: Color,
pub disabled_unchecked_box_color: Color,
pub disabled_indeterminate_box_color: Color,
pub disabled_checkmark_color: Color,
pub disabled_checked_border_color: Color,
pub disabled_unchecked_border_color: Color,
pub disabled_indeterminate_border_color: Color,
pub state_colors: StateColors,
pub interaction_source: Option<MutableInteractionSource>,
}Expand description
Configuration for Checkbox.
Fields§
§modifier: Modifier§enabled: boolWhen false, the checkbox renders disabled colors and does not respond to clicks.
checked_color: Color§unchecked_color: Color§checkmark_color: Color§checked_border_color: ColorBorder color when checked. Default: same as checked_color.
unchecked_border_color: ColorBorder color when unchecked. Default: same as unchecked_color.
disabled_checked_box_color: Color§disabled_unchecked_box_color: Color§disabled_indeterminate_box_color: Color§disabled_checkmark_color: Color§disabled_checked_border_color: Color§disabled_unchecked_border_color: Color§disabled_indeterminate_border_color: Color§state_colors: StateColors§interaction_source: Option<MutableInteractionSource>Trait Implementations§
Source§impl Clone for CheckboxConfig
impl Clone for CheckboxConfig
Source§fn clone(&self) -> CheckboxConfig
fn clone(&self) -> CheckboxConfig
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 CheckboxConfig
impl Debug for CheckboxConfig
Auto Trait Implementations§
impl !RefUnwindSafe for CheckboxConfig
impl !Send for CheckboxConfig
impl !Sync for CheckboxConfig
impl !UnwindSafe for CheckboxConfig
impl Freeze for CheckboxConfig
impl Unpin for CheckboxConfig
impl UnsafeUnpin for CheckboxConfig
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