kvision / pl.treksoft.kvision.electron / BrowserWindow

BrowserWindow

(js) open class BrowserWindow : EventEmitter

Constructors

(js)

<init>

BrowserWindow(options: BrowserWindowConstructorOptions? = definedExternally)

Properties

(js)

id

open var id: Number
(js)

webContents

open var webContents: WebContents

Functions

(js)

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: (event: Event, title: String) -> Unit): BrowserWindow
open fun addListener(event: String, listener: (event: Event, direction: String) -> Unit): BrowserWindow
(js)

addTabbedWindow

open fun addTabbedWindow(browserWindow: BrowserWindow): Unit
(js)

blur

open fun blur(): Unit
(js)

blurWebView

open fun blurWebView(): Unit
(js)

capturePage

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

center

open fun center(): Unit
(js)

close

open fun close(): Unit
(js)

closeFilePreview

open fun closeFilePreview(): Unit
(js)

destroy

open fun destroy(): Unit
(js)

flashFrame

open fun flashFrame(flag: Boolean): Unit
(js)

focus

open fun focus(): Unit
(js)

focusOnWebView

open fun focusOnWebView(): Unit
(js)

getBounds

open fun getBounds(): Rectangle
(js)

getBrowserView

open fun getBrowserView(): BrowserView?
(js)

getChildWindows

open fun getChildWindows(): Array<BrowserWindow>
(js)

getContentBounds

open fun getContentBounds(): Rectangle
(js)

getContentSize

open fun getContentSize(): Array<Number>
(js)

getMaximumSize

open fun getMaximumSize(): Array<Number>
(js)

getMinimumSize

open fun getMinimumSize(): Array<Number>
(js)

getNativeWindowHandle

open fun getNativeWindowHandle(): Buffer
(js)

getOpacity

open fun getOpacity(): Number
(js)

getParentWindow

open fun getParentWindow(): BrowserWindow
(js)

getPosition

open fun getPosition(): Array<Number>
(js)

getRepresentedFilename

open fun getRepresentedFilename(): String
(js)

getSize

open fun getSize(): Array<Number>
(js)

getTitle

open fun getTitle(): String
(js)

hasShadow

open fun hasShadow(): Boolean
(js)

hide

open fun hide(): Unit
(js)

hookWindowMessage

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

isAlwaysOnTop

open fun isAlwaysOnTop(): Boolean
(js)

isClosable

open fun isClosable(): Boolean
(js)

isDestroyed

open fun isDestroyed(): Boolean
(js)

isDocumentEdited

open fun isDocumentEdited(): Boolean
(js)

isFocused

open fun isFocused(): Boolean
(js)

isFullScreen

open fun isFullScreen(): Boolean
(js)

isFullScreenable

open fun isFullScreenable(): Boolean
(js)

isKiosk

open fun isKiosk(): Boolean
(js)

isMaximizable

open fun isMaximizable(): Boolean
(js)

isMaximized

open fun isMaximized(): Boolean
(js)

isMenuBarAutoHide

open fun isMenuBarAutoHide(): Boolean
(js)

isMenuBarVisible

open fun isMenuBarVisible(): Boolean
(js)

isMinimizable

open fun isMinimizable(): Boolean
(js)

isMinimized

open fun isMinimized(): Boolean
(js)

isModal

open fun isModal(): Boolean
(js)

isMovable

open fun isMovable(): Boolean
(js)

isResizable

open fun isResizable(): Boolean
(js)

isSimpleFullScreen

open fun isSimpleFullScreen(): Boolean
(js)

isVisible

open fun isVisible(): Boolean
(js)

isVisibleOnAllWorkspaces

open fun isVisibleOnAllWorkspaces(): Boolean
(js)

isWindowMessageHooked

open fun isWindowMessageHooked(message: Number): Boolean
(js)

loadFile

open fun loadFile(filePath: String): Unit
(js)

loadURL

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

maximize

open fun maximize(): Unit
(js)

mergeAllWindows

open fun mergeAllWindows(): Unit
(js)

minimize

open fun minimize(): Unit
(js)

moveTabToNewWindow

open fun moveTabToNewWindow(): Unit
(js)

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: (event: Event, title: String) -> Unit): BrowserWindow
open fun on(event: String, listener: (event: Event, direction: String) -> Unit): BrowserWindow
(js)

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: (event: Event, title: String) -> Unit): BrowserWindow
open fun once(event: String, listener: (event: Event, direction: String) -> Unit): BrowserWindow
(js)

previewFile

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

reload

open fun reload(): Unit
(js)

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: (event: Event, title: String) -> Unit): BrowserWindow
open fun removeListener(event: String, listener: (event: Event, direction: String) -> Unit): BrowserWindow
(js)

restore

open fun restore(): Unit
(js)

selectNextTab

open fun selectNextTab(): Unit
(js)

selectPreviousTab

open fun selectPreviousTab(): Unit
(js)

setAlwaysOnTop

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

setAppDetails

open fun setAppDetails(options: AppDetailsOptions): Unit
(js)

setAspectRatio

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

setAutoHideCursor

open fun setAutoHideCursor(autoHide: Boolean): Unit
(js)

setAutoHideMenuBar

open fun setAutoHideMenuBar(hide: Boolean): Unit
(js)

setBounds

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

setBrowserView

open fun setBrowserView(browserView: BrowserView): Unit
(js)

setClosable

open fun setClosable(closable: Boolean): Unit
(js)

setContentBounds

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

setContentProtection

open fun setContentProtection(enable: Boolean): Unit
(js)

setContentSize

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

setDocumentEdited

open fun setDocumentEdited(edited: Boolean): Unit
(js)

setEnabled

open fun setEnabled(enable: Boolean): Unit
(js)

setFocusable

open fun setFocusable(focusable: Boolean): Unit
(js)

setFullScreen

open fun setFullScreen(flag: Boolean): Unit
(js)

setFullScreenable

open fun setFullScreenable(fullscreenable: Boolean): Unit
(js)

setHasShadow

open fun setHasShadow(hasShadow: Boolean): Unit
(js)

setIcon

open fun setIcon(icon: NativeImage): Unit
(js)

setIgnoreMouseEvents

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

setKiosk

open fun setKiosk(flag: Boolean): Unit
(js)

setMaximizable

open fun setMaximizable(maximizable: Boolean): Unit
(js)

setMaximumSize

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

setMenu

open fun setMenu(menu: Menu?): Unit
(js)

setMenuBarVisibility

open fun setMenuBarVisibility(visible: Boolean): Unit
(js)

setMinimizable

open fun setMinimizable(minimizable: Boolean): Unit
(js)

setMinimumSize

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

setMovable

open fun setMovable(movable: Boolean): Unit
(js)

setOpacity

open fun setOpacity(opacity: Number): Unit
(js)

setOverlayIcon

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

setParentWindow

open fun setParentWindow(parent: BrowserWindow): Unit
(js)

setPosition

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

setProgressBar

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

setRepresentedFilename

open fun setRepresentedFilename(filename: String): Unit
(js)

setResizable

open fun setResizable(resizable: Boolean): Unit
(js)

setSheetOffset

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

setSimpleFullScreen

open fun setSimpleFullScreen(flag: Boolean): Unit
(js)

setSize

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

setSkipTaskbar

open fun setSkipTaskbar(skip: Boolean): Unit
(js)

setThumbarButtons

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

setThumbnailClip

open fun setThumbnailClip(region: Rectangle): Unit
(js)

setThumbnailToolTip

open fun setThumbnailToolTip(toolTip: String): Unit
(js)

setTitle

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

setTouchBar

open fun setTouchBar(touchBar: TouchBar): Unit
(js)

setVibrancy

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

setVisibleOnAllWorkspaces

open fun setVisibleOnAllWorkspaces(visible: Boolean): Unit
(js)

show

open fun show(): Unit
(js)

showDefinitionForSelection

open fun showDefinitionForSelection(): Unit
(js)

showInactive

open fun showInactive(): Unit
(js)

toggleTabBar

open fun toggleTabBar(): Unit
(js)

unhookAllWindowMessages

open fun unhookAllWindowMessages(): Unit
(js)

unhookWindowMessage

open fun unhookWindowMessage(message: Number): Unit
(js)

unmaximize

open fun unmaximize(): Unit

Companion Object Functions

(js)

addDevToolsExtension

fun addDevToolsExtension(path: String): Unit
(js)

addExtension

fun addExtension(path: String): Unit
(js)

fromBrowserView

fun fromBrowserView(browserView: BrowserView): BrowserWindow?
(js)

fromId

fun fromId(id: Number): BrowserWindow
(js)

fromWebContents

fun fromWebContents(webContents: WebContents): BrowserWindow
(js)

getAllWindows

fun getAllWindows(): Array<BrowserWindow>
(js)

getDevToolsExtensions

fun getDevToolsExtensions(): DevToolsExtensions
(js)

getExtensions

fun getExtensions(): Extensions
(js)

getFocusedWindow

fun getFocusedWindow(): BrowserWindow
(js)

removeDevToolsExtension

fun removeDevToolsExtension(name: String): Unit
(js)

removeExtension

fun removeExtension(name: String): Unit