Companion

Functions

Link copied to clipboard
fun buildFromTemplate(template: Array<Any>): Menu

Generally, the template is an array of options for constructing a MenuItem. The usage can be referenced above.

Link copied to clipboard

The application menu, if set, or null, if not set.

Link copied to clipboard

Sends the action to the first responder of application. This is used for emulating default macOS menu behaviors. Usually you would use the role property of a MenuItem.

Link copied to clipboard

Sets menu as the application menu on macOS. On Windows and Linux, the menu will be set as each window's top menu.