Skip to content

Window

Defined in: api/node/typescript/index.ts:90 ↗

This type represents a window towards the windowing system, that’s used to render the scene of a component. It provides API to control windowing system specific aspects such as the position on the screen.

fullscreen: boolean

Defined in: api/node/typescript/index.ts:104 ↗

Gets or sets the window’s fullscreen state.


logicalPosition: Point

Defined in: api/node/typescript/index.ts:92 ↗

Gets or sets the logical position of the window on the screen.


logicalSize: Size

Defined in: api/node/typescript/index.ts:98 ↗

Gets or sets the logical size of the window on the screen,


maximized: boolean

Defined in: api/node/typescript/index.ts:107 ↗

Gets or sets the window’s maximized state.


minimized: boolean

Defined in: api/node/typescript/index.ts:110 ↗

Gets or sets the window’s minimized state.


physicalPosition: Point

Defined in: api/node/typescript/index.ts:95 ↗

Gets or sets the physical position of the window on the screen.


physicalSize: Size

Defined in: api/node/typescript/index.ts:101 ↗

Gets or sets the physical size of the window on the screen,

get visible(): boolean

Defined in: api/node/typescript/index.ts:116 ↗

Returns the visibility state of the window. This function can return false even if you previously called show() on it, for example if the user minimized the window.

boolean

dispatchEvent(event): WindowEventDispatchResult

Defined in: api/node/typescript/index.ts:150 ↗

Dispatches a window event to the scene.

Returns whether the scene accepted the event or rejected it.

WindowEvent

WindowEventDispatchResult


hide(): void

Defined in: api/node/typescript/index.ts:125 ↗

Hides the window, so that it is not visible anymore.

void


onCloseRequested(callback): void

Defined in: api/node/typescript/index.ts:143 ↗

Sets the callback that’s invoked when the user tries to close the window. The callback returns whether to hide the window or to keep it open.

app.window.onCloseRequested(() => {
if (hasUnsavedChanges()) {
return slint.CloseRequestResponse.KeepWindowShown;
}
return slint.CloseRequestResponse.HideWindow;
});
js

() => CloseRequestResponse

void


requestRedraw(): void

Defined in: api/node/typescript/index.ts:128 ↗

Issues a request to the windowing system to re-render the contents of the window.

void


show(): void

Defined in: api/node/typescript/index.ts:122 ↗

Shows the window on the screen. An additional strong reference on the associated component is maintained while the window is visible.

void


© 2026 SixtyFPS GmbH