Struct components::material::Checkbox
source · [−]pub struct Checkbox {Show 18 fields
pub key: Key,
pub value: bool,
pub tristate: bool,
pub on_changed: Option<ValueChanged<bool>>,
pub mouse_cursor: MouseCursor,
pub active_color: Color,
pub fill_color: MaterialStateProperty<Color>,
pub check_color: Color,
pub focus_color: Color,
pub hover_color: Color,
pub overlay_color: MaterialStateProperty<Color>,
pub splash_radius: f32,
pub material_tap_target_size: MaterialTapTargetSize,
pub visual_density: VisualDensity,
pub focus_node: FocusNode,
pub autofocus: bool,
pub shape: Box<dyn OutlinedBorder>,
pub side: BorderSide,
}
Fields
key: Key
value: bool
tristate: bool
on_changed: Option<ValueChanged<bool>>
mouse_cursor: MouseCursor
active_color: Color
fill_color: MaterialStateProperty<Color>
check_color: Color
focus_color: Color
hover_color: Color
overlay_color: MaterialStateProperty<Color>
splash_radius: f32
material_tap_target_size: MaterialTapTargetSize
visual_density: VisualDensity
focus_node: FocusNode
autofocus: bool
shape: Box<dyn OutlinedBorder>
side: BorderSide
Trait Implementations
sourceimpl WidgetProperties for Checkbox
impl WidgetProperties for Checkbox
sourcefn mouse_input(&self) -> bool
fn mouse_input(&self) -> bool
Whether or not the control responds to mouse input
sourcefn renderable(&self) -> bool
fn renderable(&self) -> bool
Whether or not the control emits render signals from the canvas render call
sourcefn internal_visible(&self) -> bool
fn internal_visible(&self) -> bool
Internal. Internal parent visibility for creating sub controls.
Auto Trait Implementations
impl !RefUnwindSafe for Checkbox
impl !Send for Checkbox
impl !Sync for Checkbox
impl Unpin for Checkbox
impl !UnwindSafe for Checkbox
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.