Skip to content

slint::language::AccessibleRole

enum class AccessibleRole
ValueDescription
NoneThe element isn’t accessible.
ButtonThe element is a Button or behaves like one.
CheckboxThe element is a CheckBox or behaves like one.
ComboboxThe element is a ComboBox or behaves like one.
GroupboxThe element is a GroupBox or behaves like one.
ImageThe element is an Image or behaves like one. This is automatically applied to Image elements.
ListThe element is a ListView or behaves like one.
SliderThe element is a Slider or behaves like one.
SpinboxThe element is a SpinBox or behaves like one.
TabThe element is a Tab or behaves like one.
TabListThe element is similar to the tab bar in a TabWidget.
TabPanelThe element is a container for tab content.
TextThe role for a Text element. This is automatically applied to Text elements.
TableThe role for a TableView or behaves like one.
TreeThe role for a TreeView or behaves like one. (Not provided yet)
ProgressIndicatorThe element is a ProgressIndicator or behaves like one.
TextInput
SwitchThe element is a Switch or behaves like one.
ListItemThe element is an item in a ListView.
RadioButtonThe element is a RadioButton or behaves like one.
RadioGroupThe element is a container grouping related RadioButtons.
BannerLandmark: the header area of the application, typically containing a logo, title, or global navigation.
ComplementaryLandmark: a supporting section that complements the main content, such as a sidebar.
ContentInfoLandmark: information about the application or its content, typically at the bottom (e.g. status bar, copyright).
FormLandmark: a region containing input fields and controls for submitting information.
MainLandmark: the primary content of the application. Each view should have exactly one main landmark.
NavigationLandmark: a group of links or controls used for navigating the application.
Region
SearchLandmark: a region containing controls for searching or filtering content.

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.


© 2026 SixtyFPS GmbH