LavaUI docs GitHub

struct ImportedMenuItem

Swift

struct ImportedMenuItem

One row of a menu imported from another application.

Flat, and named by DBusMenu's own ids, because that is the shape it crosses the interop boundary in — parent is another row's id, or -1 at the top level. PanelMenu is what turns a run of these into a tree.

Sources/LavaUI/Editor.swift:1063

Properties

var checked: Int

-1 not checkable, 0 unchecked, 1 checked.

Sources/LavaUI/Editor.swift:1078

var hasSubmenu: Bool

Opens a submenu. Its children may not have been fetched yet — the application is entitled to fill them only when asked.

Sources/LavaUI/Editor.swift:1076

var id: Int32

DBusMenu's id for this row.

Sources/LavaUI/Editor.swift:1065

var isEnabled: Bool

Whether the row can be activated.

Sources/LavaUI/Editor.swift:1071

var isSeparator: Bool

Whether the row is a separator rather than an item.

Sources/LavaUI/Editor.swift:1073

var label: String

The row's text.

Sources/LavaUI/Editor.swift:1069

var parent: Int32

The id of the row this one is inside, or -1 at the top level.

Sources/LavaUI/Editor.swift:1067