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.
Properties
Section titled “Properties”always-on-top
Section titled “always-on-top” bool default: false
Whether the window should be placed above all other windows on window managers supporting it.
full-screen
Section titled “full-screen” 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.
background
Section titled “background” brush default: depends on the style
The background brush of the Window.
default-font-family
Section titled “default-font-family” string default: ""
The font family to use as default in text elements inside this window, that don’t have their font-family property set.
default-font-size
Section titled “default-font-size” 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.
default-font-weight
Section titled “default-font-weight” 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.
no-frame
Section titled “no-frame” bool default: false
Whether the window should be borderless/frameless or not.
resize-border-width
Section titled “resize-border-width” length default: 0
Size of the resize border in borderless/frameless windows.
string default: ""
The window title that is shown in the title bar.
safe-area-insets
Section titled “safe-area-insets” 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.
virtual-keyboard-position
Section titled “virtual-keyboard-position” 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.
virtual-keyboard-size
Section titled “virtual-keyboard-size” 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.
Functions
Section titled “Functions”hide()
Section titled “hide()”Hide this window.
© 2026 SixtyFPS GmbH