Runtime window wrapper with framebuffer configuration and render signals.
Window exposes the platform window as a higher-level engine object. It keeps
the current back buffer, mirrors platform window properties, and emits a
render signal every frame with the texture that should be drawn into.
Most applications configure the initial window inside the setup callback
passed to App.start.
Constructor
Variables
frequency:Int = 60
Preferred refresh frequency for the framebuffer.
This participates in framebuffer reconfiguration and does not directly move the OS window to another display mode by itself.
read onlyheight:Int = 0
Current window height in pixels.
This is updated from platform resize notifications and should be treated as informational state, not as a writable requested size.
read onlyrender:Signal<(target:Texture) ‑> Void> = new s.shortcut.signals.Signal([])
Fired every frame with the window back buffer as the render target.
Rendering code should draw into the provided texture rather than directly to the platform framebuffer.
read onlyresized:Signal<(width:Int, height:Int) ‑> Void> = new s.shortcut.signals.Signal([])
Fired after the window size changes.
The back buffer has already been recreated when this signal runs.
read onlyvSynced:Bool
Whether the active framebuffer is synchronized to vertical refresh.
This reflects the state of the underlying window framebuffer after it has been configured.
read onlywidth:Int = 0
Current window width in pixels.
This is updated from platform resize notifications and should be treated as informational state, not as a writable requested size.