language
constlanguage:object=_data
Defined in: api/node/typescript/generated/language.ts:360
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”AccessibleLiveness
Section titled “AccessibleLiveness”
readonlyAccessibleLiveness:object
This enum represents the different values of the accessible-live-region property.
It indicates that an element is a live region whose content changes should be
announced by assistive technologies.
AccessibleLiveness.Assertive
Section titled “AccessibleLiveness.Assertive”
readonlyAssertive:"assertive"="assertive"
Use in regions that present information that a user should know about right away. Assistive technologies are expected to announce to the user as soon as possible.
AccessibleLiveness.Off
Section titled “AccessibleLiveness.Off”
readonlyOff:"off"="off"
Use in regions that present information that is of low-importance to the user. Assistive technologies are expected to not announce changes unless the user explicitly asks for it.
AccessibleLiveness.Polite
Section titled “AccessibleLiveness.Polite”
readonlyPolite:"polite"="polite"
Use in regions that present new information to users. Assistive technologies are expected to not interrupt the user to inform of changes to the live region.
AccessibleRole
Section titled “AccessibleRole”
readonlyAccessibleRole: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.
AccessibleRole.Banner
Section titled “AccessibleRole.Banner”
readonlyBanner:"banner"="banner"
Landmark: the header area of the application, typically containing a logo, title, or global navigation.
AccessibleRole.Button
Section titled “AccessibleRole.Button”
readonlyButton:"button"="button"
The element is a Button or behaves like one.
AccessibleRole.Checkbox
Section titled “AccessibleRole.Checkbox”
readonlyCheckbox:"checkbox"="checkbox"
The element is a CheckBox or behaves like one.
AccessibleRole.Combobox
Section titled “AccessibleRole.Combobox”
readonlyCombobox:"combobox"="combobox"
The element is a ComboBox or behaves like one.
AccessibleRole.Complementary
Section titled “AccessibleRole.Complementary”
readonlyComplementary:"complementary"="complementary"
Landmark: a supporting section that complements the main content, such as a sidebar.
AccessibleRole.ContentInfo
Section titled “AccessibleRole.ContentInfo”
readonlyContentInfo:"content-info"="content-info"
Landmark: information about the application or its content, typically at the bottom (e.g. status bar, copyright).
AccessibleRole.Form
Section titled “AccessibleRole.Form”
readonlyForm:"form"="form"
Landmark: a region containing input fields and controls for submitting information.
AccessibleRole.Groupbox
Section titled “AccessibleRole.Groupbox”
readonlyGroupbox:"groupbox"="groupbox"
The element is a GroupBox or behaves like one.
AccessibleRole.Image
Section titled “AccessibleRole.Image”
readonlyImage:"image"="image"
The element is an Image or behaves like one. This is automatically applied to Image elements.
AccessibleRole.List
Section titled “AccessibleRole.List”
readonlyList:"list"="list"
The element is a ListView or behaves like one.
AccessibleRole.ListItem
Section titled “AccessibleRole.ListItem”
readonlyListItem:"list-item"="list-item"
The element is an item in a ListView.
AccessibleRole.Main
Section titled “AccessibleRole.Main”
readonlyMain:"main"="main"
Landmark: the primary content of the application. Each view should have exactly one main landmark.
AccessibleRole.Navigation
Section titled “AccessibleRole.Navigation”
readonlyNavigation:"navigation"="navigation"
Landmark: a group of links or controls used for navigating the application.
AccessibleRole.None
Section titled “AccessibleRole.None”
readonlyNone:"none"="none"
The element isn’t accessible.
AccessibleRole.ProgressIndicator
Section titled “AccessibleRole.ProgressIndicator”
readonlyProgressIndicator:"progress-indicator"="progress-indicator"
The element is a ProgressIndicator or behaves like one.
AccessibleRole.RadioButton
Section titled “AccessibleRole.RadioButton”
readonlyRadioButton:"radio-button"="radio-button"
The element is a RadioButton or behaves like one.
AccessibleRole.RadioGroup
Section titled “AccessibleRole.RadioGroup”
readonlyRadioGroup:"radio-group"="radio-group"
The element is a container grouping related RadioButtons.
AccessibleRole.Region
Section titled “AccessibleRole.Region”
readonlyRegion:"region"="region"
Landmark: a generic section significant enough to be listed in a summary. Use a more specific landmark if one applies.
AccessibleRole.Search
Section titled “AccessibleRole.Search”
readonlySearch:"search"="search"
Landmark: a region containing controls for searching or filtering content.
AccessibleRole.Slider
Section titled “AccessibleRole.Slider”
readonlySlider:"slider"="slider"
The element is a Slider or behaves like one.
AccessibleRole.Spinbox
Section titled “AccessibleRole.Spinbox”
readonlySpinbox:"spinbox"="spinbox"
The element is a SpinBox or behaves like one.
AccessibleRole.Switch
Section titled “AccessibleRole.Switch”
readonlySwitch:"switch"="switch"
The element is a Switch or behaves like one.
AccessibleRole.Tab
Section titled “AccessibleRole.Tab”
readonlyTab:"tab"="tab"
The element is a Tab or behaves like one.
AccessibleRole.Table
Section titled “AccessibleRole.Table”
readonlyTable:"table"="table"
The role for a TableView or behaves like one.
AccessibleRole.TabList
Section titled “AccessibleRole.TabList”
readonlyTabList:"tab-list"="tab-list"
The element is similar to the tab bar in a TabWidget.
AccessibleRole.TabPanel
Section titled “AccessibleRole.TabPanel”
readonlyTabPanel:"tab-panel"="tab-panel"
The element is a container for tab content.
AccessibleRole.Text
Section titled “AccessibleRole.Text”
readonlyText:"text"="text"
The role for a Text element. This is automatically applied to Text elements.
AccessibleRole.TextInput
Section titled “AccessibleRole.TextInput”
readonlyTextInput:"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.
AccessibleRole.Tree
Section titled “AccessibleRole.Tree”
readonlyTree:"tree"="tree"
The role for a TreeView or behaves like one. (Not provided yet)
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”Orientation
Section titled “Orientation”
readonlyOrientation:object
Represents the orientation of an element or widget such as the Slider.
Orientation.Horizontal
Section titled “Orientation.Horizontal”
readonlyHorizontal:"horizontal"="horizontal"
Element is oriented horizontally.
Orientation.Vertical
Section titled “Orientation.Vertical”
readonlyVertical:"vertical"="vertical"
Element is oriented vertically.
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”SortOrder
Section titled “SortOrder”
readonlySortOrder:object
This enum represents the different values of the sort-order property.
It’s used to sort a StandardTableView by a column.
SortOrder.Ascending
Section titled “SortOrder.Ascending”
readonlyAscending:"ascending"="ascending"
The column is sorted in ascending order.
SortOrder.Descending
Section titled “SortOrder.Descending”
readonlyDescending:"descending"="descending"
The column is sorted in descending order.
SortOrder.Unsorted
Section titled “SortOrder.Unsorted”
readonlyUnsorted:"unsorted"="unsorted"
The column is unsorted.
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”TableColumn
Section titled “TableColumn”
readonlyTableColumn: (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
Parameters
Section titled “Parameters”props?
Section titled “props?”Partial<TableColumn>
Returns
Section titled “Returns”© 2026 SixtyFPS GmbH