Struct dioxus_desktop::tao::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: MenuItemAttributesImplementations§
§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
§fn clone(&self) -> CustomMenuItem
fn clone(&self) -> CustomMenuItem
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 more