ui window_state - Windower/packages GitHub Wiki

This object represents a type definition for a UI window state.

Note: All fields in this type are optional.

Fields

title string

The title of the UI window.

style string

A predefined window configuration that controls the default visual rendering and special behavior for the window.

Generally, the default appearance of a style may be overridden by the other fields in the window state.

  • normal
    The normal window style includes full window chrome and is fully draggable and resizable by default.

  • simple
    The simple window style includes minimal window chrome (borders only) and is resizable by default.

  • chromeless
    The chromeless window style omits any window chrome and instead uses a solid-color background rectangle. Chromeless windows are neither draggable nor resizable.

  • layout
    The layout window style renders a colored overlay on top of the window that includes the window title. Layout windows are fully draggable and resizable.

x number

The current x-coordinate of the window position.

y number

The current y-coordinate of the window position.

width number

The current width of the window.

height number

The current height of the window.

color color_value

The integer value of the background color for the window.

min_width number

The minimum allowable width of the window.

min_height number

The minimum allowable height of the window.

max_width number

The maximum allowable width of the window.

max_height number

The maximum allowable height of the window.

closable boolean

Specifies whether the window displays a close control.

resizable boolean

Specifies whether the window can be resized by grabbing the window edge with the mouse.

movable boolean

Specifies whether the window can be moved by clicking and dragging with the mouse.

⚠️ **GitHub.com Fallback** ⚠️