WindowConfig
Window configuration information for creating windows
Instance Members
fullscreen: Boolcreate in fullscreen, default: false, mobile true
trueFullscreen: BoolIf false, the users native window/desktop resolution will be used instead of the specified window size. default: false On native, changing the users video mode is less than ideal, so trueFullscreen is commonly discouraged.
resizable: Boolallow the window to be resized, default: true
borderless: Boolcreate as a borderless window, default: false
x: Intwindow x at creation. Leave this alone to use the OS default.
y: Intwindow y at creation. Leave this alone to use the OS default.
width: Intwindow width at creation, default: 960
height: Intwindow height at creation, default: 640
title: Stringwindow title, default: 'clay app'
noInput: Booldisables input arriving at/from this window. default: false
backgroundSleep: FloatTime in seconds to sleep when in the background. Setting this to zero disables the behavior. This has no effect on the web target, as there is no concept of sleep there (and browsers usually throttle background tabs). Higher sleep times (i.e 1/10 or 1/30) use less cpu. default: 1/15
new(?fullscreen: Null<Bool>, ?trueFullscreen: Null<Bool>, ?resizable: Null<Bool>, ?borderless: Null<Bool>, ?x: Null<Int>, ?y: Null<Int>, ?width: Null<Int>, ?height: Null<Int>, ?title: Null<String>, ?noInput: Null<Bool>, ?backgroundSleep: Null<Float>): Void| Name | Type | Default | Description |
|---|---|---|---|
fullscreen |
Null<Bool> | (optional) | create in fullscreen, default: false, mobile true |
trueFullscreen |
Null<Bool> | (optional) | If false, the users native window/desktop resolution will be used instead of the specified window size. default: false On native, changing the users video mode is less than ideal, so trueFullscreen is commonly discouraged. |
resizable |
Null<Bool> | (optional) | allow the window to be resized, default: true |
borderless |
Null<Bool> | (optional) | create as a borderless window, default: false |
x |
Null<Int> | (optional) | window x at creation. Leave this alone to use the OS default. |
y |
Null<Int> | (optional) | window y at creation. Leave this alone to use the OS default. |
width |
Null<Int> | (optional) | window width at creation, default: 960 |
height |
Null<Int> | (optional) | window height at creation, default: 640 |
title |
Null<String> | (optional) | window title, default: 'clay app' |
noInput |
Null<Bool> | (optional) | disables input arriving at/from this window. default: false |
backgroundSleep |
Null<Float> | (optional) | Time in seconds to sleep when in the background. Setting this to zero disables the behavior. This has no effect on the web target, as there is no concept of sleep there (and browsers usually throttle background tabs). Higher sleep times (i.e 1/10 or 1/30) use less cpu. default: 1/15 |
Metadata
| Name | Parameters |
|---|---|
:structInit |
- |
:publicFields |
- |