pub struct Checkbox<'a> { /* private fields */ }Expand description
A checkbox: its box is the kit’s checkbox component (selected
while checked), its mark the check glyph (indeterminate when so
shown), in the state’s text, its label in the text of the same
state unchecked. egui’s
[egui::Checkbox], drawn through the kit.
Implementations§
Source§impl<'a> Checkbox<'a>
impl<'a> Checkbox<'a>
pub fn new(checked: &'a mut bool, atoms: impl IntoAtoms<'a>) -> Self
Sourcepub fn without_text(checked: &'a mut bool) -> Self
pub fn without_text(checked: &'a mut bool) -> Self
A checkbox without a label (name it for assistive technology).
Sourcepub fn indeterminate(self, indeterminate: bool) -> Self
pub fn indeterminate(self, indeterminate: bool) -> Self
Shows the indeterminate mark (neither checked nor unchecked); a
click still toggles the value.
Trait Implementations§
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> UnsafeUnpin 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> 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