Skip to content

Window

Window is the root of the tree of elements that are visible on the screen.

The Window geometry will be restricted by its layout constraints: Setting the width will result in a fixed width, and the window manager will respect the min-width and max-width so the window can’t be resized bigger or smaller. The initial width can be controlled with the preferred-width property. The same applies to the Windows height.

Use the MenuBar element to declare a menu bar for the window.

bool default: false

Whether the window should be placed above all other windows on window managers supporting it.

bool default: true if 'SLINT_FULLSCREEN' environment variable is set, otherwise false

Whether to display the Window in full-screen mode. In full-screen mode the Window will occupy the entire screen, it will not be resizable, and it will not display the title bar.

brush default: depends on the style

The background brush of the Window.

string default: ""

The font family to use as default in text elements inside this window, that don’t have their font-family property set.

length (in) default: 0

The font size to use as default in text elements inside this window, that don’t have their font-size property set. The value of this property also forms the basis for relative font sizes.

int default: 0

The font weight to use as default in text elements inside this window, that don’t have their font-weight property set. The values range from 100 (lightest) to 900 (thickest). 400 is the normal weight.

image default: the empty image

The window icon shown in the title bar or the task bar on window managers supporting it.

bool default: false

Whether the window should be borderless/frameless or not.

length default: 0

Size of the resize border in borderless/frameless windows.

string default: ""

The window title that is shown in the title bar.

Edges (out) default: 0px

Some devices, such as mobile phones, allow programs to overlap the system UI. A few examples for this are the notch on iPhones, the window buttons on macOS on windows that extend their content over the titlebar and the system bar on Android. This property exposes the amount of space at the edges of the window that can be drawn to but where no interactive elements should be placed. On most devices, this is 0 for all sides.

Point (out) default: (0px, 0px)

On mobile devices, virtual keyboards (aka software keyboards or onscreen keyboards) are displayed on top of the application. When such a keyboard is shown, this property denotes the position of the top left boundary of the rectangle covered by it in window coordinates.

Size (out) default: (0px, 0px)

On mobile devices, virtual keyboards (aka software keyboards or onscreen keyboards) are displayed on top of the application. When such a keyboard is shown, this property denotes the width and height of the rectangle covered by it in window coordinates.

Hide this window.


© 2026 SixtyFPS GmbH