language
constlanguage: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.
Type Declaration
Section titled “Type Declaration”ColorScheme
Section titled “ColorScheme”
readonlyColorScheme: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.
ColorScheme.Dark
Section titled “ColorScheme.Dark”
readonlyDark:"dark"="dark"
The style chooses light colors for the background and dark for the foreground.
ColorScheme.Light
Section titled “ColorScheme.Light”
readonlyLight:"light"="light"
The style chooses dark colors for the background and light for the foreground.
ColorScheme.Unknown
Section titled “ColorScheme.Unknown”
readonlyUnknown:"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.
DragAction
Section titled “DragAction”
readonlyDragAction: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.
DragAction.Copy
Section titled “DragAction.Copy”
readonlyCopy:"copy"="copy"
The data is copied to the target; the source retains it.
DragAction.Link
Section titled “DragAction.Link”
readonlyLink:"link"="link"
A link to the source data is created at the target; neither side gives up ownership.
DragAction.Move
Section titled “DragAction.Move”
readonlyMove:"move"="move"
The data is moved to the target; the source should remove it once the operation completes.
DragAction.None
Section titled “DragAction.None”
readonlyNone:"none"="none"
No action: the drag is rejected, no drop will be delivered.
DropEvent
Section titled “DropEvent”
readonlyDropEvent: (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
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial<DropEvent>
Returns
Section titled “Returns”KeyboardModifiers
Section titled “KeyboardModifiers”
readonlyKeyboardModifiers: (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.
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial<KeyboardModifiers>
Returns
Section titled “Returns”KeyEvent
Section titled “KeyEvent”
readonlyKeyEvent: (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.
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial<KeyEvent>
Returns
Section titled “Returns”PointerEvent
Section titled “PointerEvent”
readonlyPointerEvent: (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.
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial<PointerEvent>
Returns
Section titled “Returns”PointerEventButton
Section titled “PointerEventButton”
readonlyPointerEventButton:object
This enum describes the different types of buttons for a pointer event, typically on a mouse or a pencil.
PointerEventButton.Back
Section titled “PointerEventButton.Back”
readonlyBack:"back"="back"
The back button.
PointerEventButton.Forward
Section titled “PointerEventButton.Forward”
readonlyForward:"forward"="forward"
The forward button.
PointerEventButton.Left
Section titled “PointerEventButton.Left”
readonlyLeft:"left"="left"
The left button.
PointerEventButton.Middle
Section titled “PointerEventButton.Middle”
readonlyMiddle:"middle"="middle"
The center button.
PointerEventButton.Other
Section titled “PointerEventButton.Other”
readonlyOther:"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.
PointerEventButton.Right
Section titled “PointerEventButton.Right”
readonlyRight:"right"="right"
The right button.
PointerEventKind
Section titled “PointerEventKind”
readonlyPointerEventKind:object
The enum reports what happened to the PointerEventButton in the event
PointerEventKind.Cancel
Section titled “PointerEventKind.Cancel”
readonlyCancel:"cancel"="cancel"
The action was cancelled.
PointerEventKind.Down
Section titled “PointerEventKind.Down”
readonlyDown:"down"="down"
The button was pressed.
PointerEventKind.Move
Section titled “PointerEventKind.Move”
readonlyMove:"move"="move"
The pointer has moved,
PointerEventKind.Up
Section titled “PointerEventKind.Up”
readonlyUp:"up"="up"
The button was released.
PointerScrollEvent
Section titled “PointerScrollEvent”
readonlyPointerScrollEvent: (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.
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial<PointerScrollEvent>
Returns
Section titled “Returns”RadioEntry
Section titled “RadioEntry”
readonlyRadioEntry: (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.
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial<RadioEntry>
Returns
Section titled “Returns”StandardListViewItem
Section titled “StandardListViewItem”
readonlyStandardListViewItem: (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.
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial<StandardListViewItem>
Returns
Section titled “Returns”© 2026 SixtyFPS GmbH