struct MenuNode
Swift
struct MenuNode
A resolved menu or submenu.
Sources/LavaMenu/Menu.swift:209
Constructors
init(id: MenuID, title: String, icon: MenuIcon? = nil, items: [MenuEntry])
Creates a menu node.
Sources/LavaMenu/Menu.swift:221
Properties
var allItems: [MenuItemModel] { get }
Every item in this menu and its submenus, depth first. Separators are skipped.
Sources/LavaMenu/Menu.swift:234
var icon: MenuIcon?
When set, the Vulkan strip draws this instead of the title. title
stays the accessible name (and what a DBus host exports).
Sources/LavaMenu/Menu.swift:216
var id: MenuID
The menu's id.
Sources/LavaMenu/Menu.swift:211
var items: [MenuEntry]
The menu's rows, in order.
Sources/LavaMenu/Menu.swift:218
var title: String
The menu's title.
Sources/LavaMenu/Menu.swift:213
Methods
func item(id: MenuID) -> MenuItemModel?
The item with id id in this menu or its submenus.
Sources/LavaMenu/Menu.swift:245