LavaUI docs

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:955

Properties

var checked: Int

-1 not checkable, 0 unchecked, 1 checked.

Sources/LavaUI/Editor.swift:965

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:963

var id: Int32

Not documented.

Sources/LavaUI/Editor.swift:956

var isEnabled: Bool

Not documented.

Sources/LavaUI/Editor.swift:959

var isSeparator: Bool

Not documented.

Sources/LavaUI/Editor.swift:960

var label: String

Not documented.

Sources/LavaUI/Editor.swift:958

var parent: Int32

Not documented.

Sources/LavaUI/Editor.swift:957