Struct dioxus_mobile::wry::application::menu::CustomMenuItem [−]
pub struct CustomMenuItem(pub MenuItemAttributes);
Expand description
Custom menu item, when clicked an event is emitted in the EventLoop.
You can modify the item after it’s creation.
Tuple Fields
0: MenuItemAttributes
Implementations
impl CustomMenuItem
impl CustomMenuItem
Base CustomMenuItem
functions.
pub fn set_enabled(&mut self, is_enabled: bool)
pub fn set_enabled(&mut self, is_enabled: bool)
Modifies the status of the menu item.
pub fn set_selected(&mut self, is_selected: bool)
pub fn set_selected(&mut self, is_selected: bool)
Modifies the selected state of the menu item.
Platform-specific
- Linux: Unsupported, render a regular item
Trait Implementations
impl Clone for CustomMenuItem
impl Clone for CustomMenuItem
pub fn clone(&self) -> CustomMenuItem
pub fn clone(&self) -> CustomMenuItem
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for CustomMenuItem
impl !Send for CustomMenuItem
impl !Sync for CustomMenuItem
impl Unpin for CustomMenuItem
impl UnwindSafe for CustomMenuItem
Blanket Implementations
Mutably borrows from an owned value. Read more