kvision / pl.treksoft.kvision.electron / BrowserView

BrowserView

open external class BrowserView : EventEmitter

Constructors

<init>

BrowserView(options: BrowserViewConstructorOptions? = definedExternally)

Properties

id

open var id: Number

webContents

open var webContents: WebContents

Functions

destroy

open fun destroy(): Unit

isDestroyed

open fun isDestroyed(): Boolean

setAutoResize

open fun setAutoResize(options: AutoResizeOptions): Unit

setBackgroundColor

open fun setBackgroundColor(color: String): Unit

setBounds

open fun setBounds(bounds: Rectangle): Unit

Inherited Functions

addListener

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

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<*>>

on

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

once

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

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

removeListener

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

setMaxListeners

open fun setMaxListeners(n: Number): EventEmitter

Companion Object Functions

fromId

fun fromId(id: Number): BrowserView

fromWebContents

fun fromWebContents(webContents: WebContents): BrowserView?

getAllViews

fun getAllViews(): Array<BrowserView>

Extension Functions

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.