From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 26 Oct 2019 00:17:24 +0200 Subject: API documentation for KVision 2.0.0 --- api1/pl.treksoft.kvision.electron/-menu/index.html | 156 +++++++++++++++++++++ 1 file changed, 156 insertions(+) create mode 100644 api1/pl.treksoft.kvision.electron/-menu/index.html (limited to 'api1/pl.treksoft.kvision.electron/-menu/index.html') diff --git a/api1/pl.treksoft.kvision.electron/-menu/index.html b/api1/pl.treksoft.kvision.electron/-menu/index.html new file mode 100644 index 00000000..8d685900 --- /dev/null +++ b/api1/pl.treksoft.kvision.electron/-menu/index.html @@ -0,0 +1,156 @@ + + + +Menu - kvision + + + +kvision / pl.treksoft.kvision.electron / Menu
+
+

Menu

+open external class Menu +

Constructors

+ + + + + + + +
+

<init>

+
+Menu()
+

Properties

+ + + + + + + +
+

items

+
+open var items: Array<MenuItem>
+

Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

addListener

+
+open fun addListener(event: String, listener: (event: Event) -> Unit): Menu
+open fun addListener(event: String, listener: (event: Event) -> Unit): Menu
+

append

+
+open fun append(menuItem: MenuItem): Unit
+

closePopup

+
+open fun closePopup(browserWindow: BrowserWindow? = definedExternally): Unit
+

getMenuItemById

+
+open fun getMenuItemById(id: String): MenuItem
+

insert

+
+open fun insert(pos: Number, menuItem: MenuItem): Unit
+

on

+
+open fun on(event: String, listener: (event: Event) -> Unit): Menu
+open fun on(event: String, listener: (event: Event) -> Unit): Menu
+

once

+
+open fun once(event: String, listener: (event: Event) -> Unit): Menu
+open fun once(event: String, listener: (event: Event) -> Unit): Menu
+

popup

+
+open fun popup(options: PopupOptions): Unit
+

removeListener

+
+open fun removeListener(event: String, listener: (event: Event) -> Unit): Menu
+open fun removeListener(event: String, listener: (event: Event) -> Unit): Menu
+

Companion Object Functions

+ + + + + + + + + + + + + + + + + + + +
+

buildFromTemplate

+
+fun buildFromTemplate(template: Array<MenuItemConstructorOptions>): Menu
+

getApplicationMenu

+
+fun getApplicationMenu(): Menu?
+

sendActionToFirstResponder

+
+fun sendActionToFirstResponder(action: String): Unit
+

setApplicationMenu

+
+fun setApplicationMenu(menu: Menu?): Unit
+

Extension Functions

+ + + + + + + +
+

createInstance

+
+fun <T> Any?.createInstance(vararg args: dynamic): T +

Helper function for creating JavaScript objects from dynamic constructors.

+
+ + -- cgit