pub struct MenuNode {
pub title: String,
pub enabled: bool,
pub children: Vec<MenuNode>,
}Expand description
One entry under a menu bar item or submenu. The macOS backend fills title
from AXTitle, enabled from AXEnabled, and recurses into AXMenu
children up to depth levels.
Fields§
§title: StringItem title from AXTitle. Empty string when the menu hides it.
enabled: boolAXEnabled. Items are still listed when false; the macOS backend
refuses to press them.
children: Vec<MenuNode>Submenu children. Empty for leaf items.
Trait Implementations§
impl StructuralPartialEq for MenuNode
Auto Trait Implementations§
impl Freeze for MenuNode
impl RefUnwindSafe for MenuNode
impl Send for MenuNode
impl Sync for MenuNode
impl Unpin for MenuNode
impl UnsafeUnpin for MenuNode
impl UnwindSafe for MenuNode
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