Skip to content

language

const language: object = _data

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

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 AccessibleRole: object

This enum represents the different values for the accessible-role property, used to describe the role of an element in the context of assistive technology such as screen readers.

In addition to widget roles, this enum includes landmark roles (banner, complementary, content-info, form, main, navigation, region, search). Landmarks identify large content areas that screen reader users can jump between, giving the application a navigable structure similar to headings in a document. See WAI-ARIA Landmark Regions for guidance on when and how to use them.

readonly Banner: "banner" = "banner"

Landmark: the header area of the application, typically containing a logo, title, or global navigation.

readonly Button: "button" = "button"

The element is a Button or behaves like one.

readonly Checkbox: "checkbox" = "checkbox"

The element is a CheckBox or behaves like one.

readonly Combobox: "combobox" = "combobox"

The element is a ComboBox or behaves like one.

readonly Complementary: "complementary" = "complementary"

Landmark: a supporting section that complements the main content, such as a sidebar.

readonly ContentInfo: "content-info" = "content-info"

Landmark: information about the application or its content, typically at the bottom (e.g. status bar, copyright).

readonly Form: "form" = "form"

Landmark: a region containing input fields and controls for submitting information.

readonly Groupbox: "groupbox" = "groupbox"

The element is a GroupBox or behaves like one.

readonly Image: "image" = "image"

The element is an Image or behaves like one. This is automatically applied to Image elements.

readonly List: "list" = "list"

The element is a ListView or behaves like one.

readonly ListItem: "list-item" = "list-item"

The element is an item in a ListView.

readonly Main: "main" = "main"

Landmark: the primary content of the application. Each view should have exactly one main landmark.

readonly Navigation: "navigation" = "navigation"

Landmark: a group of links or controls used for navigating the application.

readonly None: "none" = "none"

The element isn’t accessible.

readonly ProgressIndicator: "progress-indicator" = "progress-indicator"

The element is a ProgressIndicator or behaves like one.

readonly RadioButton: "radio-button" = "radio-button"

The element is a RadioButton or behaves like one.

readonly RadioGroup: "radio-group" = "radio-group"

The element is a container grouping related RadioButtons.

readonly Region: "region" = "region"

Landmark: a generic section significant enough to be listed in a summary. Use a more specific landmark if one applies.

readonly Search: "search" = "search"

Landmark: a region containing controls for searching or filtering content.

readonly Slider: "slider" = "slider"

The element is a Slider or behaves like one.

readonly Spinbox: "spinbox" = "spinbox"

The element is a SpinBox or behaves like one.

readonly Switch: "switch" = "switch"

The element is a Switch or behaves like one.

readonly Tab: "tab" = "tab"

The element is a Tab or behaves like one.

readonly Table: "table" = "table"

The role for a TableView or behaves like one.

readonly TabList: "tab-list" = "tab-list"

The element is similar to the tab bar in a TabWidget.

readonly TabPanel: "tab-panel" = "tab-panel"

The element is a container for tab content.

readonly Text: "text" = "text"

The role for a Text element. This is automatically applied to Text elements.

readonly TextInput: "text-input" = "text-input"

The role for widget with editable text such as a LineEdit or a TextEdit. This is automatically applied to TextInput elements.

readonly Tree: "tree" = "tree"

The role for a TreeView or behaves like one. (Not provided yet)

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 SortOrder: object

This enum represents the different values of the sort-order property. It’s used to sort a StandardTableView by a column.

readonly Ascending: "ascending" = "ascending"

The column is sorted in ascending order.

readonly Descending: "descending" = "descending"

The column is sorted in descending order.

readonly Unsorted: "unsorted" = "unsorted"

The column is unsorted.

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

readonly TableColumn: (props?) => TableColumn

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 is used to define the column and the column header of a TableView

Partial<TableColumn>

TableColumn


© 2026 SixtyFPS GmbH