The central manager for all UI windows attached to a rendering target.
Lua full name: lysa.ui.WindowManager
|
| Window | create (rect: lysa.Rect) |
| | Creates and registers a new UI window with the given position and size. More...
|
| |
| Window | add (window: Window) |
| | Registers an existing UI window with this manager so it receives update and render calls. More...
|
| |
| nil | remove (window: Window) |
| | Unregisters and destroys the given UI window (effective at the start of the next frame). More...
|
| |
| nil | set_enable_window_resizing (enable: boolean) |
| | Globally enables or disables user-driven window resizing by dragging borders. More...
|
| |
|
| lysa.Font | default_font |
| | The default font loaded at manager creation, applied to new windows that do not specify their own. (read-only)
|
| |
| number | default_font_scale |
| | The default font scale applied to new windows that do not specify their own.
|
| |
| lysa.float4 | default_text_color |
| | The default text RGBA color applied to new windows that do not specify their own.
|
| |
| number | aspect_ratio |
| | The aspect ratio of the rendering window this manager is attached to. (read-only)
|
| |
| number | resize_delta |
| | Pixel distance from a window border within which a drag starts a resize operation (default 5.0). (read-only)
|
| |