kvision / pl.treksoft.kvision.electron / Tray

Tray

(js) open class Tray : EventEmitter

Constructors

(js)

<init>

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

Functions

(js)

addListener

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: (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
(js)

destroy

open fun destroy(): Unit
(js)

displayBalloon

open fun displayBalloon(options: DisplayBalloonOptions): Unit
(js)

getBounds

open fun getBounds(): Rectangle
(js)

isDestroyed

open fun isDestroyed(): Boolean
(js)

on

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: (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
(js)

once

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: (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
(js)

popUpContextMenu

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

removeListener

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: (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
(js)

setContextMenu

open fun setContextMenu(menu: Menu): Unit
(js)

setHighlightMode

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

setImage

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

setPressedImage

open fun setPressedImage(image: NativeImage): Unit
(js)

setTitle

open fun setTitle(title: String): Unit
(js)

setToolTip

open fun setToolTip(toolTip: String): Unit