Package-level declarations

Types

Link copied to clipboard
sealed external interface ItemKind

The kind of a menu item, used internally to route IPC calls to the right Rust-side type.

Link copied to clipboard
open external class MenuItemBase : Resource

The base class of every menu and menu item type.

Link copied to clipboard
Link copied to clipboard
external interface Temp7

Properties

Link copied to clipboard
val ItemKind.Companion.Check: ItemKind
Link copied to clipboard
val ItemKind.Companion.Icon: ItemKind
Link copied to clipboard
val ItemKind.Companion.Menu: ItemKind
Link copied to clipboard
val ItemKind.Companion.MenuItem: ItemKind
Link copied to clipboard
val ItemKind.Companion.Predefined: ItemKind
Link copied to clipboard
val ItemKind.Companion.Submenu: ItemKind

Functions

Link copied to clipboard
external fun newMenu(kind: ItemKind): Promise<Tuple2<Double, String>>
external fun newMenu(kind: ItemKind, opts: SubmenuOptions = definedExternally): Promise<Tuple2<Double, String>>
external fun newMenu(kind: ItemKind, opts: CheckMenuItemOptions = definedExternally): Promise<Tuple2<Double, String>>
external fun newMenu(kind: ItemKind, opts: IconMenuItemOptions = definedExternally): Promise<Tuple2<Double, String>>
external fun newMenu(kind: ItemKind, opts: MenuItemOptions = definedExternally): Promise<Tuple2<Double, String>>
external fun newMenu(kind: ItemKind, opts: MenuOptions = definedExternally): Promise<Tuple2<Double, String>>
external fun newMenu(kind: ItemKind, opts: PredefinedMenuItemOptions = definedExternally): Promise<Tuple2<Double, String>>

Creates a menu or menu item on the Rust side. Implementation detail of the new static methods of the menu classes.

Link copied to clipboard
external fun prepareItem(i: Temp7): Any

Transforms menu items from various types into a type acceptable by Rust.