pub enum MenuControl<G> {
MenuItem(MenuItem),
IconMenu(IconMenuItem),
CheckMenu(CheckMenuKind<G>),
}Variants§
Implementations§
Source§impl<G> MenuControl<G>
impl<G> MenuControl<G>
pub fn id(&self) -> &MenuId
pub fn text(&self) -> String
pub fn set_checked(&self, checked: bool) -> bool
pub fn set_enabled(&self, enabled: bool)
pub fn set_text(&self, text: &str)
pub fn set_accelerator( &self, accelerator: Option<Accelerator>, ) -> Result<(), Error>
Trait Implementations§
Source§impl<G: Clone> Clone for MenuControl<G>
impl<G: Clone> Clone for MenuControl<G>
Source§fn clone(&self) -> MenuControl<G>
fn clone(&self) -> MenuControl<G>
Returns a duplicate 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<G> Freeze for MenuControl<G>where
G: Freeze,
impl<G> !RefUnwindSafe for MenuControl<G>
impl<G> !Send for MenuControl<G>
impl<G> !Sync for MenuControl<G>
impl<G> Unpin for MenuControl<G>where
G: Unpin,
impl<G> !UnwindSafe for MenuControl<G>
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