pub struct TrayMenuItem {
pub id: u64,
pub label: String,
pub enabled: bool,
pub checked: bool,
pub is_separator: bool,
pub children: Vec<TrayMenuItem>,
}Expand description
An individual item or separator inside a system tray context menu.
Fields§
§id: u64§label: String§enabled: bool§checked: bool§is_separator: bool§children: Vec<TrayMenuItem>Implementations§
Source§impl TrayMenuItem
impl TrayMenuItem
Creates a parent item containing nested sub-menu items.
Sourcepub fn with_checked(self, checked: bool) -> Self
pub fn with_checked(self, checked: bool) -> Self
Sets the checked state of this item.
Sourcepub fn with_enabled(self, enabled: bool) -> Self
pub fn with_enabled(self, enabled: bool) -> Self
Sets the enabled state of this item.
Trait Implementations§
Source§impl Clone for TrayMenuItem
impl Clone for TrayMenuItem
Source§impl Debug for TrayMenuItem
impl Debug for TrayMenuItem
Source§impl PartialEq for TrayMenuItem
impl PartialEq for TrayMenuItem
impl StructuralPartialEq for TrayMenuItem
Auto Trait Implementations§
impl Forget for TrayMenuItem
impl Freeze for TrayMenuItem
impl Move for TrayMenuItem
impl RefUnwindSafe for TrayMenuItem
impl Send for TrayMenuItem
impl Sync for TrayMenuItem
impl Unpin for TrayMenuItem
impl UnsafeUnpin for TrayMenuItem
impl UnwindSafe for TrayMenuItem
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