Menu
A type that is either a menu bar on the window on Windows and Linux or as a global menu in the menubar on macOS.
Platform-specific:
macOS: if using {@linkcode Menu} for the global menubar, it can only contain {@linkcode Submenu}s.
Properties
Functions
Link copied to clipboard
Returns a list of menu items that has been added to this menu.
Link copied to clipboard
fun popup(at: LogicalPosition = definedExternally, window: Window = definedExternally): Promise<Void>
fun popup(at: PhysicalPosition = definedExternally, window: Window = definedExternally): Promise<Void>
Popup this menu as a context menu on the specified window.
Link copied to clipboard
Sets the app-wide menu and returns the previous one.
Link copied to clipboard
Sets the window menu and returns the previous one.