kvision / pl.treksoft.kvision.electron / BrowserWindow

BrowserWindow

open external class BrowserWindow : EventEmitter

Constructors

<init>

BrowserWindow(options: BrowserWindowConstructorOptions? = definedExternally)

Properties

id

open var id: Number

webContents

open var webContents: WebContents

Functions

addListener

open fun addListener(event: String, listener: (event: Event, command: String) -> Unit): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: (event: Event) -> Unit): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: (event: Event, title: String) -> Unit): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: (event: Event, direction: String) -> Unit): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow
open fun addListener(event: String, listener: Function<*>): BrowserWindow

addTabbedWindow

open fun addTabbedWindow(browserWindow: BrowserWindow): Unit

blur

open fun blur(): Unit

blurWebView

open fun blurWebView(): Unit

capturePage

open fun capturePage(callback: (image: NativeImage) -> Unit): Unit
open fun capturePage(rect: Rectangle, callback: (image: NativeImage) -> Unit): Unit

center

open fun center(): Unit

close

open fun close(): Unit

closeFilePreview

open fun closeFilePreview(): Unit

destroy

open fun destroy(): Unit

flashFrame

open fun flashFrame(flag: Boolean): Unit

focus

open fun focus(): Unit

focusOnWebView

open fun focusOnWebView(): Unit

getBounds

open fun getBounds(): Rectangle

getBrowserView

open fun getBrowserView(): BrowserView?

getChildWindows

open fun getChildWindows(): Array<BrowserWindow>

getContentBounds

open fun getContentBounds(): Rectangle

getContentSize

open fun getContentSize(): Array<Number>

getMaximumSize

open fun getMaximumSize(): Array<Number>

getMinimumSize

open fun getMinimumSize(): Array<Number>

getNativeWindowHandle

open fun getNativeWindowHandle(): <ERROR CLASS>

getOpacity

open fun getOpacity(): Number

getParentWindow

open fun getParentWindow(): BrowserWindow

getPosition

open fun getPosition(): Array<Number>

getRepresentedFilename

open fun getRepresentedFilename(): String

getSize

open fun getSize(): Array<Number>

getTitle

open fun getTitle(): String

hasShadow

open fun hasShadow(): Boolean

hide

open fun hide(): Unit

hookWindowMessage

open fun hookWindowMessage(message: Number, callback: Function<*>): Unit

isAlwaysOnTop

open fun isAlwaysOnTop(): Boolean

isClosable

open fun isClosable(): Boolean

isDestroyed

open fun isDestroyed(): Boolean

isDocumentEdited

open fun isDocumentEdited(): Boolean

isFocused

open fun isFocused(): Boolean

isFullScreen

open fun isFullScreen(): Boolean

isFullScreenable

open fun isFullScreenable(): Boolean

isKiosk

open fun isKiosk(): Boolean

isMaximizable

open fun isMaximizable(): Boolean

isMaximized

open fun isMaximized(): Boolean

isMenuBarAutoHide

open fun isMenuBarAutoHide(): Boolean

isMenuBarVisible

open fun isMenuBarVisible(): Boolean

isMinimizable

open fun isMinimizable(): Boolean

isMinimized

open fun isMinimized(): Boolean

isModal

open fun isModal(): Boolean

isMovable

open fun isMovable(): Boolean

isResizable

open fun isResizable(): Boolean

isSimpleFullScreen

open fun isSimpleFullScreen(): Boolean

isVisible

open fun isVisible(): Boolean

isVisibleOnAllWorkspaces

open fun isVisibleOnAllWorkspaces(): Boolean

isWindowMessageHooked

open fun isWindowMessageHooked(message: Number): Boolean

loadFile

open fun loadFile(filePath: String): Unit

loadURL

open fun loadURL(url: String, options: LoadURLOptions? = definedExternally): Unit

maximize

open fun maximize(): Unit

mergeAllWindows

open fun mergeAllWindows(): Unit

minimize

open fun minimize(): Unit

moveTabToNewWindow

open fun moveTabToNewWindow(): Unit

on

open fun on(event: String, listener: (event: Event, command: String) -> Unit): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: (event: Event) -> Unit): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: (event: Event, title: String) -> Unit): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: (event: Event, direction: String) -> Unit): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow
open fun on(event: String, listener: Function<*>): BrowserWindow

once

open fun once(event: String, listener: (event: Event, command: String) -> Unit): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: (event: Event) -> Unit): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: (event: Event, title: String) -> Unit): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: (event: Event, direction: String) -> Unit): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow
open fun once(event: String, listener: Function<*>): BrowserWindow

previewFile

open fun previewFile(path: String, displayName: String? = definedExternally): Unit

reload

open fun reload(): Unit

removeListener

open fun removeListener(event: String, listener: (event: Event, command: String) -> Unit): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: (event: Event) -> Unit): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: (event: Event, title: String) -> Unit): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: (event: Event, direction: String) -> Unit): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow
open fun removeListener(event: String, listener: Function<*>): BrowserWindow

restore

open fun restore(): Unit

selectNextTab

open fun selectNextTab(): Unit

selectPreviousTab

open fun selectPreviousTab(): Unit

setAlwaysOnTop

open fun setAlwaysOnTop(flag: Boolean, level: String? = definedExternally, relativeLevel: Number? = definedExternally): Unit
open fun setAlwaysOnTop(flag: Boolean, level: String? = definedExternally, relativeLevel: Number? = definedExternally): Unit
open fun setAlwaysOnTop(flag: Boolean, level: String? = definedExternally, relativeLevel: Number? = definedExternally): Unit
open fun setAlwaysOnTop(flag: Boolean, level: String? = definedExternally, relativeLevel: Number? = definedExternally): Unit
open fun setAlwaysOnTop(flag: Boolean, level: String? = definedExternally, relativeLevel: Number? = definedExternally): Unit
open fun setAlwaysOnTop(flag: Boolean, level: String? = definedExternally, relativeLevel: Number? = definedExternally): Unit
open fun setAlwaysOnTop(flag: Boolean, level: String? = definedExternally, relativeLevel: Number? = definedExternally): Unit
open fun setAlwaysOnTop(flag: Boolean, level: String? = definedExternally, relativeLevel: Number? = definedExternally): Unit
open fun setAlwaysOnTop(flag: Boolean): Unit

setAppDetails

open fun setAppDetails(options: AppDetailsOptions): Unit

setAspectRatio

open fun setAspectRatio(aspectRatio: Number, extraSize: Size): Unit

setAutoHideCursor

open fun setAutoHideCursor(autoHide: Boolean): Unit

setAutoHideMenuBar

open fun setAutoHideMenuBar(hide: Boolean): Unit

setBounds

open fun setBounds(bounds: Rectangle, animate: Boolean? = definedExternally): Unit

setBrowserView

open fun setBrowserView(browserView: BrowserView): Unit

setClosable

open fun setClosable(closable: Boolean): Unit

setContentBounds

open fun setContentBounds(bounds: Rectangle, animate: Boolean? = definedExternally): Unit

setContentProtection

open fun setContentProtection(enable: Boolean): Unit

setContentSize

open fun setContentSize(width: Number, height: Number, animate: Boolean? = definedExternally): Unit

setDocumentEdited

open fun setDocumentEdited(edited: Boolean): Unit

setEnabled

open fun setEnabled(enable: Boolean): Unit

setFocusable

open fun setFocusable(focusable: Boolean): Unit

setFullScreen

open fun setFullScreen(flag: Boolean): Unit

setFullScreenable

open fun setFullScreenable(fullscreenable: Boolean): Unit

setHasShadow

open fun setHasShadow(hasShadow: Boolean): Unit

setIcon

open fun setIcon(icon: NativeImage): Unit

setIgnoreMouseEvents

open fun setIgnoreMouseEvents(ignore: Boolean, options: IgnoreMouseEventsOptions? = definedExternally): Unit

setKiosk

open fun setKiosk(flag: Boolean): Unit

setMaximizable

open fun setMaximizable(maximizable: Boolean): Unit

setMaximumSize

open fun setMaximumSize(width: Number, height: Number): Unit

setMenu

open fun setMenu(menu: Menu?): Unit

setMenuBarVisibility

open fun setMenuBarVisibility(visible: Boolean): Unit

setMinimizable

open fun setMinimizable(minimizable: Boolean): Unit

setMinimumSize

open fun setMinimumSize(width: Number, height: Number): Unit

setMovable

open fun setMovable(movable: Boolean): Unit

setOpacity

open fun setOpacity(opacity: Number): Unit

setOverlayIcon

open fun setOverlayIcon(overlay: NativeImage, description: String): Unit

setParentWindow

open fun setParentWindow(parent: BrowserWindow): Unit

setPosition

open fun setPosition(x: Number, y: Number, animate: Boolean? = definedExternally): Unit

setProgressBar

open fun setProgressBar(progress: Number, options: ProgressBarOptions? = definedExternally): Unit

setRepresentedFilename

open fun setRepresentedFilename(filename: String): Unit

setResizable

open fun setResizable(resizable: Boolean): Unit

setSheetOffset

open fun setSheetOffset(offsetY: Number, offsetX: Number? = definedExternally): Unit

setSimpleFullScreen

open fun setSimpleFullScreen(flag: Boolean): Unit

setSize

open fun setSize(width: Number, height: Number, animate: Boolean? = definedExternally): Unit

setSkipTaskbar

open fun setSkipTaskbar(skip: Boolean): Unit

setThumbarButtons

open fun setThumbarButtons(buttons: Array<ThumbarButton>): Boolean

setThumbnailClip

open fun setThumbnailClip(region: Rectangle): Unit

setThumbnailToolTip

open fun setThumbnailToolTip(toolTip: String): Unit

setTitle

open fun setTitle(title: String): Unit

setTouchBar

open fun setTouchBar(touchBar: TouchBar): Unit

setVibrancy

open fun setVibrancy(type: String): Unit
open fun setVibrancy(type: String): Unit
open fun setVibrancy(type: String): Unit
open fun setVibrancy(type: String): Unit
open fun setVibrancy(type: String): Unit
open fun setVibrancy(type: String): Unit
open fun setVibrancy(type: String): Unit
open fun setVibrancy(type: String): Unit
open fun setVibrancy(type: String): Unit
open fun setVibrancy(type: String): Unit

setVisibleOnAllWorkspaces

open fun setVisibleOnAllWorkspaces(visible: Boolean): Unit

show

open fun show(): Unit

showDefinitionForSelection

open fun showDefinitionForSelection(): Unit

showInactive

open fun showInactive(): Unit

toggleTabBar

open fun toggleTabBar(): Unit

unhookAllWindowMessages

open fun unhookAllWindowMessages(): Unit

unhookWindowMessage

open fun unhookWindowMessage(message: Number): Unit

unmaximize

open fun unmaximize(): 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

Companion Object Functions

addDevToolsExtension

fun addDevToolsExtension(path: String): Unit

addExtension

fun addExtension(path: String): Unit

fromBrowserView

fun fromBrowserView(browserView: BrowserView): BrowserWindow?

fromId

fun fromId(id: Number): BrowserWindow

fromWebContents

fun fromWebContents(webContents: WebContents): BrowserWindow

getAllWindows

fun getAllWindows(): Array<BrowserWindow>

getDevToolsExtensions

fun getDevToolsExtensions(): DevToolsExtensions

getExtensions

fun getExtensions(): Extensions

getFocusedWindow

fun getFocusedWindow(): BrowserWindow

removeDevToolsExtension

fun removeDevToolsExtension(name: String): Unit

removeExtension

fun removeExtension(name: String): Unit

Extension Functions

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.