kvision / pl.treksoft.kvision.electron / Tray

Tray

open external class Tray : EventEmitter

Constructors

<init>

Tray(image: String)
Tray(image: NativeImage)

Functions

addListener

open fun addListener(event: String, listener: Function<*>): Tray
open fun addListener(event: String, listener: Function<*>): Tray
open fun addListener(event: String, listener: Function<*>): Tray
open fun addListener(event: String, listener: (event: Event, bounds: Rectangle, position: Point) -> Unit): Tray
open fun addListener(event: String, listener: (event: Event, bounds: Rectangle) -> Unit): Tray
open fun addListener(event: String, listener: Function<*>): Tray
open fun addListener(event: String, listener: Function<*>): Tray
open fun addListener(event: String, listener: Function<*>): Tray
open fun addListener(event: String, listener: Function<*>): Tray
open fun addListener(event: String, listener: (event: Event, files: Array<String>) -> Unit): Tray
open fun addListener(event: String, listener: (event: Event, text: String) -> Unit): Tray
open fun addListener(event: String, listener: (event: Event, position: Point) -> Unit): Tray
open fun addListener(event: String, listener: (event: Event, position: Point) -> Unit): Tray
open fun addListener(event: String, listener: (event: Event, position: Point) -> Unit): Tray
open fun addListener(event: String, listener: (event: Event, bounds: Rectangle) -> Unit): Tray

destroy

open fun destroy(): Unit

displayBalloon

open fun displayBalloon(options: DisplayBalloonOptions): Unit

getBounds

open fun getBounds(): Rectangle

isDestroyed

open fun isDestroyed(): Boolean

on

open fun on(event: String, listener: Function<*>): Tray
open fun on(event: String, listener: Function<*>): Tray
open fun on(event: String, listener: Function<*>): Tray
open fun on(event: String, listener: (event: Event, bounds: Rectangle, position: Point) -> Unit): Tray
open fun on(event: String, listener: (event: Event, bounds: Rectangle) -> Unit): Tray
open fun on(event: String, listener: Function<*>): Tray
open fun on(event: String, listener: Function<*>): Tray
open fun on(event: String, listener: Function<*>): Tray
open fun on(event: String, listener: Function<*>): Tray
open fun on(event: String, listener: (event: Event, files: Array<String>) -> Unit): Tray
open fun on(event: String, listener: (event: Event, text: String) -> Unit): Tray
open fun on(event: String, listener: (event: Event, position: Point) -> Unit): Tray
open fun on(event: String, listener: (event: Event, position: Point) -> Unit): Tray
open fun on(event: String, listener: (event: Event, position: Point) -> Unit): Tray
open fun on(event: String, listener: (event: Event, bounds: Rectangle) -> Unit): Tray

once

open fun once(event: String, listener: Function<*>): Tray
open fun once(event: String, listener: Function<*>): Tray
open fun once(event: String, listener: Function<*>): Tray
open fun once(event: String, listener: (event: Event, bounds: Rectangle, position: Point) -> Unit): Tray
open fun once(event: String, listener: (event: Event, bounds: Rectangle) -> Unit): Tray
open fun once(event: String, listener: Function<*>): Tray
open fun once(event: String, listener: Function<*>): Tray
open fun once(event: String, listener: Function<*>): Tray
open fun once(event: String, listener: Function<*>): Tray
open fun once(event: String, listener: (event: Event, files: Array<String>) -> Unit): Tray
open fun once(event: String, listener: (event: Event, text: String) -> Unit): Tray
open fun once(event: String, listener: (event: Event, position: Point) -> Unit): Tray
open fun once(event: String, listener: (event: Event, position: Point) -> Unit): Tray
open fun once(event: String, listener: (event: Event, position: Point) -> Unit): Tray
open fun once(event: String, listener: (event: Event, bounds: Rectangle) -> Unit): Tray

popUpContextMenu

open fun popUpContextMenu(menu: Menu? = definedExternally, position: Point? = definedExternally): Unit

removeListener

open fun removeListener(event: String, listener: Function<*>): Tray
open fun removeListener(event: String, listener: Function<*>): Tray
open fun removeListener(event: String, listener: Function<*>): Tray
open fun removeListener(event: String, listener: (event: Event, bounds: Rectangle, position: Point) -> Unit): Tray
open fun removeListener(event: String, listener: (event: Event, bounds: Rectangle) -> Unit): Tray
open fun removeListener(event: String, listener: Function<*>): Tray
open fun removeListener(event: String, listener: Function<*>): Tray
open fun removeListener(event: String, listener: Function<*>): Tray
open fun removeListener(event: String, listener: Function<*>): Tray
open fun removeListener(event: String, listener: (event: Event, files: Array<String>) -> Unit): Tray
open fun removeListener(event: String, listener: (event: Event, text: String) -> Unit): Tray
open fun removeListener(event: String, listener: (event: Event, position: Point) -> Unit): Tray
open fun removeListener(event: String, listener: (event: Event, position: Point) -> Unit): Tray
open fun removeListener(event: String, listener: (event: Event, position: Point) -> Unit): Tray
open fun removeListener(event: String, listener: (event: Event, bounds: Rectangle) -> Unit): Tray

setContextMenu

open fun setContextMenu(menu: Menu): Unit

setHighlightMode

open fun setHighlightMode(mode: String): Unit
open fun setHighlightMode(mode: String): Unit
open fun setHighlightMode(mode: String): Unit

setImage

open fun setImage(image: String): Unit
open fun setImage(image: NativeImage): Unit

setPressedImage

open fun setPressedImage(image: NativeImage): Unit

setTitle

open fun setTitle(title: String): Unit

setToolTip

open fun setToolTip(toolTip: String): Unit

Inherited Functions

emit

open fun emit(event: String, vararg args: Any): Boolean

eventNames

open fun eventNames(): Array<String>

getMaxListeners

open fun getMaxListeners(): Number

listenerCount

open fun listenerCount(type: String): Number

listeners

open fun listeners(event: String): Array<Function<*>>

prependListener

open fun prependListener(event: String, listener: Function<*>): EventEmitter

prependOnceListener

open fun prependOnceListener(event: String, listener: Function<*>): EventEmitter

removeAllListeners

open fun removeAllListeners(event: String? = definedExternally): EventEmitter

setMaxListeners

open fun setMaxListeners(n: Number): EventEmitter

Extension Functions

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.