Constructors
constructor
-
Parameters
-
Optional videoMode: VideoMode
-
Optional title: string
-
Optional style: Style
Methods
clear
- clear(color: number | Color): void
create
- create(windowHandle: number): void
- create(videoMode: VideoMode, title: string, style?: Style): void
-
Parameters
Returns void
-
Parameters
-
-
title: string
-
Optional style: Style
Returns void
displayAsync
- displayAsync(): Promise<void>
draw
- draw(content: Drawable): void
drawAsync
- drawAsync(content: Drawable): Promise<void>
-
Parameters
Returns Promise<void>
setActive
- setActive(active?: boolean): void
setFramerateLimit
- setFramerateLimit(limit: number): void
setIcon
- setIcon(width: number, height: number, icon: Buffer): void
-
Parameters
-
width: number
-
height: number
-
icon: Buffer
Returns void
setJoystickThreshold
- setJoystickThreshold(threshold: number): void
setKeyRepeatEnabled
- setKeyRepeatEnabled(enabled: boolean): void
setMouseCursorGrabbed
- setMouseCursorGrabbed(grabbed: boolean): void
setMouseCursorVisible
- setMouseCursorVisible(visible: boolean): void
setTitle
- setTitle(title: string): void
setVerticalSyncEnabled
- setVerticalSyncEnabled(enabled: boolean): void
setVisible
- setVisible(visible: boolean): void