pub struct Checkbox<'a> { /* private fields */ }
Expand description
Checkbox widget.
Implementations§
Source§impl<'a> Checkbox<'a>
impl<'a> Checkbox<'a>
Sourcepub fn styles(self, styles: CheckboxStyle) -> Self
pub fn styles(self, styles: CheckboxStyle) -> Self
Set all styles.
Sourcepub fn focus_style(self, style: impl Into<Style>) -> Self
pub fn focus_style(self, style: impl Into<Style>) -> Self
Style when focused.
Sourcepub fn checked(self, checked: bool) -> Self
pub fn checked(self, checked: bool) -> Self
Checked state. If set overrides the value from the state.
Trait Implementations§
Source§impl StatefulWidget for Checkbox<'_>
impl StatefulWidget for Checkbox<'_>
Auto Trait Implementations§
impl<'a> Freeze for Checkbox<'a>
impl<'a> RefUnwindSafe for Checkbox<'a>
impl<'a> Send for Checkbox<'a>
impl<'a> Sync for Checkbox<'a>
impl<'a> Unpin for Checkbox<'a>
impl<'a> UnwindSafe for Checkbox<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more