Skip to content

language

const language: object = _data

Defined in: api/node/typescript/generated/language.ts:176

Built-in enums and structs from the Slint language. Enum values are accessed via language.ColorScheme.Dark; struct values via the factory call language.PointerEvent({ button: … }). Enum and struct types are available in type position as language.ColorScheme / language.PointerEvent.

readonly ColorScheme: object

This enum indicates the color scheme used by the widget style. Use this to explicitly switch between dark and light schemes, or choose Unknown to fall back to the system default.

readonly Dark: "dark" = "dark"

The style chooses light colors for the background and dark for the foreground.

readonly Light: "light" = "light"

The style chooses dark colors for the background and light for the foreground.

readonly Unknown: "unknown" = "unknown"

The scheme is not known and a system wide setting configures this. This could mean that the widgets are shown in a dark or light scheme, but it could also be a custom color scheme.

readonly DragAction: object

This enum describes the action negotiated between the source of a drag (DragArea) and its target (DropArea) during a drag-and-drop operation. The source declares which actions it permits, the target picks one in its can-drop callback, and the chosen action is reported back to the source via drag-finished so that, for example, a move source can remove the original data. The same enum is used for drags that come from another application or window once native drag-and-drop is in play.

readonly Copy: "copy" = "copy"

The data is copied to the target; the source retains it.

readonly Link: "link" = "link"

A link to the source data is created at the target; neither side gives up ownership.

readonly Move: "move" = "move"

The data is moved to the target; the source should remove it once the operation completes.

readonly None: "none" = "none"

No action: the drag is rejected, no drop will be delivered.

readonly DropEvent: (props?) => DropEvent

Build a value of this struct. Any field you omit takes a documented default, which lets Slint add fields later without breaking existing call-sites.

This structure is passed to the callbacks of the DropArea element

Partial<DropEvent>

DropEvent

readonly KeyboardModifiers: (props?) => KeyboardModifiers

Build a value of this struct. Any field you omit takes a documented default, which lets Slint add fields later without breaking existing call-sites.

The KeyboardModifiers struct provides booleans to indicate possible modifier keys on a keyboard, such as Shift, Control, etc. It is provided as part of KeyEvent’s modifiers field.

Keyboard shortcuts on Apple platforms typically use the Command key (⌘), such as Command+C for “Copy”. On other platforms the same shortcut is typically represented using Control+C. To make it easier to develop cross-platform applications, on macOS, Slint maps the Command key to the control modifier, and the Control key to the meta modifier.

On Windows, the Windows key is mapped to the meta modifier.

Partial<KeyboardModifiers>

KeyboardModifiers

readonly KeyEvent: (props?) => KeyEvent

Build a value of this struct. Any field you omit takes a documented default, which lets Slint add fields later without breaking existing call-sites.

This structure is generated and passed to the key press and release callbacks of the FocusScope element.

Partial<KeyEvent>

KeyEvent

readonly PointerEvent: (props?) => PointerEvent

Build a value of this struct. Any field you omit takes a documented default, which lets Slint add fields later without breaking existing call-sites.

Represents a Pointer event sent by the windowing system. This structure is passed to the pointer-event callback of the TouchArea element.

Partial<PointerEvent>

PointerEvent

readonly PointerEventButton: object

This enum describes the different types of buttons for a pointer event, typically on a mouse or a pencil.

readonly Back: "back" = "back"

The back button.

readonly Forward: "forward" = "forward"

The forward button.

readonly Left: "left" = "left"

The left button.

readonly Middle: "middle" = "middle"

The center button.

readonly Other: "other" = "other"

A button that is none of left, right, middle, back or forward. For example, this is used for the task button on a mouse with many buttons.

readonly Right: "right" = "right"

The right button.

readonly PointerEventKind: object

The enum reports what happened to the PointerEventButton in the event

readonly Cancel: "cancel" = "cancel"

The action was cancelled.

readonly Down: "down" = "down"

The button was pressed.

readonly Move: "move" = "move"

The pointer has moved,

readonly Up: "up" = "up"

The button was released.

readonly PointerScrollEvent: (props?) => PointerScrollEvent

Build a value of this struct. Any field you omit takes a documented default, which lets Slint add fields later without breaking existing call-sites.

Represents a Pointer scroll (or wheel) event sent by the windowing system. This structure is passed to the scroll-event callback of the TouchArea element.

Partial<PointerScrollEvent>

PointerScrollEvent

readonly RadioEntry: (props?) => RadioEntry

Build a value of this struct. Any field you omit takes a documented default, which lets Slint add fields later without breaking existing call-sites.

Represents one option in a RadioGroup.

Partial<RadioEntry>

RadioEntry

readonly StandardListViewItem: (props?) => StandardListViewItem

Build a value of this struct. Any field you omit takes a documented default, which lets Slint add fields later without breaking existing call-sites.

Represents an item in a StandardListView and a StandardTableView.

Partial<StandardListViewItem>

StandardListViewItem


© 2026 SixtyFPS GmbH