Window configuration information for creating windows

Variables

@:value(false)fullscreen:Bool = false

create in fullscreen, default: false, mobile true

@:value(false)trueFullscreen:Bool = false

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.

@:value(true)resizable:Bool = true

allow the window to be resized, default: true

@:value(false)borderless:Bool = false

create as a borderless window, default: false

@:value(0)x:Int = 0

window x at creation. Leave this alone to use the OS default.

@:value(0)y:Int = 0

window y at creation. Leave this alone to use the OS default.

@:value(960)width:Int = 960

window width at creation, default: 960

@:value(640)height:Int = 640

window height at creation, default: 640

@:value(null)title:String = null

window title, default: 'clay app'

@:value(false)noInput:Bool = false

disables input arriving at/from this window. default: false

@:value(1.0 / 15)backgroundSleep:Float = 1.0 / 15

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