pub struct Checkbox { /* private fields */ }Expand description
Base struct which can be used to make custom checkbox components
Implementations§
Source§impl Checkbox
impl Checkbox
pub const CROSS_MARK: Grapheme
pub const OPEN_BOX: Grapheme
pub const CLOSE_BOX: Grapheme
pub fn default_key_handler(&mut self, event: &mut WindowEvent)
pub fn set_key_handler(&mut self, f: CheckboxKeyHandler)
pub fn get_state(&self) -> bool
pub fn set_state(&mut self, state: bool)
pub fn render(&self, canvas: &mut Canvas)
pub fn handle_event(&mut self, event: &mut WindowEvent) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Checkbox
impl RefUnwindSafe for Checkbox
impl Send for Checkbox
impl Sync for Checkbox
impl Unpin for Checkbox
impl UnsafeUnpin for Checkbox
impl UnwindSafe for Checkbox
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