kvision / pl.treksoft.kvision.electron / Screen

Screen

(js) interface Screen : EventEmitter

Functions

(js)

addListener

abstract fun addListener(event: String, listener: (event: Event, newDisplay: Display) -> Unit): Screen
abstract fun addListener(event: String, listener: (event: Event, display: Display, changedMetrics: Array<String>) -> Unit): Screen
abstract fun addListener(event: String, listener: (event: Event, oldDisplay: Display) -> Unit): Screen
(js)

getAllDisplays

abstract fun getAllDisplays(): Array<Display>
(js)

getCursorScreenPoint

abstract fun getCursorScreenPoint(): Point
(js)

getDisplayMatching

abstract fun getDisplayMatching(rect: Rectangle): Display
(js)

getDisplayNearestPoint

abstract fun getDisplayNearestPoint(point: Point): Display
(js)

getMenuBarHeight

abstract fun getMenuBarHeight(): Number
(js)

getPrimaryDisplay

abstract fun getPrimaryDisplay(): Display
(js)

on

abstract fun on(event: String, listener: (event: Event, newDisplay: Display) -> Unit): Screen
abstract fun on(event: String, listener: (event: Event, display: Display, changedMetrics: Array<String>) -> Unit): Screen
abstract fun on(event: String, listener: (event: Event, oldDisplay: Display) -> Unit): Screen
(js)

once

abstract fun once(event: String, listener: (event: Event, newDisplay: Display) -> Unit): Screen
abstract fun once(event: String, listener: (event: Event, display: Display, changedMetrics: Array<String>) -> Unit): Screen
abstract fun once(event: String, listener: (event: Event, oldDisplay: Display) -> Unit): Screen
(js)

removeListener

abstract fun removeListener(event: String, listener: (event: Event, newDisplay: Display) -> Unit): Screen
abstract fun removeListener(event: String, listener: (event: Event, display: Display, changedMetrics: Array<String>) -> Unit): Screen
abstract fun removeListener(event: String, listener: (event: Event, oldDisplay: Display) -> Unit): Screen