Skip to content

Window

Methods of Window objects. Nyx Lua API v1.

Window:on_paint(fn: (r: typeof(render)) -> ()) -> ()

Draws the window's contents each frame, relative to its top-left.

Window:visible(visible: boolean) -> ()

Shows or hides the window.

Window:position() -> vector?

The window's saved position.