Struct rstk::menu::TkMenuCheck
source · pub struct TkMenuCheck { /* private fields */ }
Expand description
Refers to a check-button menu-item
Implementations§
source§impl TkMenuCheck
impl TkMenuCheck
sourcepub fn accelerator(&mut self, key_definition: &str) -> &mut Self
pub fn accelerator(&mut self, key_definition: &str) -> &mut Self
Sets value of accelerator key - displayed to right of menu.
sourcepub fn command(&mut self, command: impl Fn(bool) + Send + 'static) -> &mut Self
pub fn command(&mut self, command: impl Fn(bool) + Send + 'static) -> &mut Self
Sets the function to be called when the menu item is clicked.
Trait Implementations§
source§impl Clone for TkMenuCheck
impl Clone for TkMenuCheck
source§fn clone(&self) -> TkMenuCheck
fn clone(&self) -> TkMenuCheck
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for TkMenuCheck
impl Send for TkMenuCheck
impl Sync for TkMenuCheck
impl Unpin for TkMenuCheck
impl UnwindSafe for TkMenuCheck
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