Enum atspi_common::Role
source · #[repr(u32)]pub enum Role {
Show 130 variants
Invalid,
AcceleratorLabel,
Alert,
Animation,
Arrow,
Calendar,
Canvas,
CheckBox,
CheckMenuItem,
ColorChooser,
ColumnHeader,
ComboBox,
DateEditor,
DesktopIcon,
DesktopFrame,
Dial,
Dialog,
DirectoryPane,
DrawingArea,
FileChooser,
Filler,
FocusTraversable,
FontChooser,
Frame,
GlassPane,
HTMLContainer,
Icon,
Image,
InternalFrame,
Label,
LayeredPane,
List,
ListItem,
Menu,
MenuBar,
MenuItem,
OptionPane,
PageTab,
PageTabList,
Panel,
PasswordText,
PopupMenu,
ProgressBar,
PushButton,
RadioButton,
RadioMenuItem,
RootPane,
RowHeader,
ScrollBar,
ScrollPane,
Separator,
Slider,
SpinButton,
SplitPane,
StatusBar,
Table,
TableCell,
TableColumnHeader,
TableRowHeader,
TearoffMenuItem,
Terminal,
Text,
ToggleButton,
ToolBar,
ToolTip,
Tree,
TreeTable,
Unknown,
Viewport,
Window,
Extended,
Header,
Footer,
Paragraph,
Ruler,
Application,
Autocomplete,
Editbar,
Embedded,
Entry,
CHART,
Caption,
DocumentFrame,
Heading,
Page,
Section,
RedundantObject,
Form,
Link,
InputMethodWindow,
TableRow,
TreeItem,
DocumentSpreadsheet,
DocumentPresentation,
DocumentText,
DocumentWeb,
DocumentEmail,
Comment,
ListBox,
Grouping,
ImageMap,
Notification,
InfoBar,
LevelBar,
TitleBar,
BlockQuote,
Audio,
Video,
Definition,
Article,
Landmark,
Log,
Marquee,
Math,
Rating,
Timer,
Static,
MathFraction,
MathRoot,
Subscript,
Superscript,
DescriptionList,
DescriptionTerm,
DescriptionValue,
Footnote,
ContentDeletion,
ContentInsertion,
Mark,
Suggestion,
PushButtonMenu,
}
Expand description
An accessible object role.
To think of it in terms of HTML, any semantic element likely has a corollary in this enum.
For example: <button>
, <input>
, <form>
or <h4>
.
Non-semantic elements like <span>
, <div>
and <b>
will not be represented here, and this information is not passed through via the atspi library.
TODO: add examples for GTK/Qt libraries in addition to HTML examples.
Variants§
Invalid
A role indicating an error condition, such as uninitialized Role data, or an error deserializing.
AcceleratorLabel
Object is a label indicating the keyboard accelerators for the parent.
Alert
Object is used to alert the user about something.
Animation
Object contains a dynamic or moving image of some kind.
Arrow
Object is a 2d directional indicator.
Calendar
Object contains one or more dates, usually arranged into a 2d list.
Canvas
Object that can be drawn into and is used to trap events.
CheckBox
A choice that can be checked or unchecked and provides a separate indicator for the current state.
CheckMenuItem
A menu item that behaves like a check box. See Self::CheckBox
.
ColorChooser
A specialized dialog that lets the user choose a color.
ColumnHeader
The header for a column of data.
ComboBox
A list of choices the user can select from.
DateEditor
An object which allows entry of a date.
DesktopIcon
An inconifed internal frame within a Role::DesktopFrame
.
DesktopFrame
A pane that supports internal frames and iconified versions of those internal frames.
Dial
An object that allows a value to be changed via rotating a visual element, or which displays a value via such a rotating element.
Dialog
A top level window with title bar and a border.
DirectoryPane
A pane that allows the user to navigate through and select the contents of a directory.
DrawingArea
An object used for drawing custom user interface elements.
FileChooser
A specialized dialog that displays the files in the directory and lets the user select a file, browse a different directory, or specify a filename.
Filler
A object that fills up space in a user interface.
FocusTraversable
Don’t use, reserved for future use.
FontChooser
Allows selection of a display font.
Frame
A top level window with a title bar, border, menubar, etc.
GlassPane
A pane that is guaranteed to be painted on top of all panes beneath it.
HTMLContainer
A document container for HTML, whose children represent the document content.
Icon
A small fixed size picture, typically used to decorate components.
Image
An image, typically static.
InternalFrame
A frame-like object that is clipped by a desktop pane.
Label
An object used to present an icon or short string in an interface.
LayeredPane
A specialized pane that allows its children to be drawn in layers, providing a form of stacking order.
List
An object that presents a list of objects to the user and * allows the user to select one or more of them.
ListItem
An object that represents an element of a list.
Menu
An object usually found inside a menu bar that contains a list of actions the user can choose from.
MenuBar
An object usually drawn at the top of the primary dialog box of an application that contains a list of menus the user can choose from.
MenuItem
An object usually contained in a menu that presents an action the user can choose.
OptionPane
A specialized pane whose primary use is inside a dialog.
PageTab
An object that is a child of a page tab list.
PageTabList
An object that presents a series of panels (or page tabs), one at a time,through some mechanism provided by the object.
Panel
A generic container that is often used to group objects.
PasswordText
A text object uses for passwords, or other places where the text content is not shown visibly to the user.
PopupMenu
A temporary window that is usually used to offer the user a list of choices, and then hides when the user selects one of those choices.
ProgressBar
An object used to indicate how much of a task has been completed.
PushButton
An object the user can manipulate to tell the application to do something.
RadioButton
A specialized check box that will cause other radio buttons in the same group to become unchecked when this one is checked.
RadioMenuItem
Object is both a menu item and a “radio button”. See Self::RadioButton
.
RootPane
A specialized pane that has a glass pane and a layered pane as its children.
RowHeader
The header for a row of data.
ScrollBar
An object usually used to allow a user to incrementally view a large amount of data by moving the bounds of a viewport along a one-dimensional axis.
ScrollPane
A scroll pane: the pane in which the scrollable content is contained within.
An object that allows a user to incrementally view a large amount of information.
Self::ScrollPane
objects are usually accompanied by Self::ScrollBar
controllers,
on which the crate::RelationType::ControllerFor
and crate::RelationType::ControlledBy
reciprocal relations are set.
Separator
An object usually contained in a menu to provide a visible and logical separation of the contents in a menu.
Slider
An object that allows the user to select from a bounded range.
Unlike Self::ScrollBar
, Self::Slider
objects need not control ‘viewport’-like objects.
SpinButton
An object which allows one of a set of choices to be selected, and which displays the current choice.
SplitPane
A specialized panel that presents two other panels at the same time.
StatusBar
Object displays non-quantitative status information (c.f. Self::ProgressBar
)
Table
An object used to represent information in terms of rows and columns.
TableCell
A ‘cell’ or discrete child within a Table.
Note: Table cells need not have Self::TableCell
, other crate::Role
values are valid as well.
TableColumnHeader
An object which labels a particular column in an Self::Table
.
TableRowHeader
An object which labels a particular row in a Self::Table
.
TableProxy
rows and columns may also be labelled via the
crate::RelationType::LabelFor
/crate::RelationType::LabelledBy
relationships.
See: AccessibleProxy::get_relation_type
.
TearoffMenuItem
Object allows menu to be removed from menubar and shown in its own window.
Terminal
An object that emulates a terminal.
Text
An interactive widget that supports multiple lines of text and optionally accepts user input,
but whose purpose is not to solicit user input.
Thus Self::Text
is appropriate for the text view in a plain text editor but inappropriate for an input field in a dialog box or web form.
For widgets whose purpose is to solicit input from the user, see Self::Entry
and Self::PasswordText
.
For generic objects which display a brief amount of textual information, see Self::Static
.
ToggleButton
A specialized push button that can be checked or unchecked, but does not provide a separate indicator for the current state.
ToolBar
A bar or palette usually composed of push buttons or toggle buttons.
ToolTip
An object that provides information about another object.
Tree
An object used to repsent hierarchical information to the user.
TreeTable
An object that presents both tabular and hierarchical info to the user.
Unknown
When the role cannot be accurately reported, this role will be set.
Viewport
An object usually used in a scroll pane, or to otherwise clip a larger object or content renderer to a specific onscreen viewport.
Window
A top level window with no title or border.
Extended
means that the role for this item is known, but not included in the core enumeration.
Header
An object that serves as a document header.
An object that serves as a document footer.
Paragraph
An object which is contains a single paragraph of text content. See also Self::Text
.
Ruler
An object which describes margins and tab stops, etc. for text objects which it controls (should have crate::RelationType::ControllerFor
relation to such).
Application
An object corresponding to the toplevel accessible of an application, which may contain Self::Frame
objects or other accessible objects.
Children of objects with the Self::DesktopFrame
role are generally Self::Application
objects.
Autocomplete
The object is a dialog or list containing items for insertion into an entry widget, for instance a list of words for completion of a text entry.
Editbar
The object is an editable text object in a toolbar.
Embedded
The object is an embedded component container. This role is a “grouping” hint that the contained objects share a context which is different from the container in which this accessible is embedded. In particular, it is used for some kinds of document embedding, and for embedding of out-of-process component, “panel applets”, etc.
Entry
The object is a component whose textual content may be entered or modified by the user, provided crate::State::Editable
is present.
A readonly Self::Entry
object (i.e. where crate::State::Editable
is not present) implies a read-only ‘text field’ in a form, as opposed to a title, label, or caption.
CHART
The object is a graphical depiction of quantitative data.
It may contain multiple subelements whose attributes and/or description may be queried to obtain both the quantitative data and information about how the data is being presented.
The crate::RelationType::LabelledBy
relation is particularly important in interpreting objects of this type, as is the accessible description property.
See Self::Caption
.
Caption
The object contains descriptive information, usually textual, about another user interface element such as a table, chart, or image.
DocumentFrame
The object is a visual frame or container which
contains a view of document content. Self::DocumentFrame
s may occur within
another DocumentProxy
instance, in which case the second document may be
said to be embedded in the containing instance.
HTML frames are often Self::DocumentFrame
: Either this object, or a singleton descendant,
should implement the crate::Interface::Document
interface.
Heading
Heading: this is a heading with a level (usually 1-6). This is represented by <h1>
through <h6>
in HTML.
The object serves as a heading for content which follows it in a document.
The ‘heading level’ of the heading, if available, may be obtained by querying the object’s attributes.
Page
The object is a containing instance which encapsulates a page of information.
Self::Page
is used in documents and content which support a paginated navigation model.
Section
The object is a containing instance of document content which constitutes a particular ‘logical’ section of the document. The type of content within a section, and the nature of the section division itself, may be obtained by querying the object’s attributes. Sections may be nested.
RedundantObject
The object is redundant with another object in the hierarchy, and is exposed for purely technical reasons. Objects of this role should be ignored by clients, if they are encountered at all.
Form
The object is a containing instance of document content which has within it components with which the user can interact in order to input information;
i.e. the object is a container for pushbuttons, comboboxes, text input fields, and other ‘GUI’ components.
Self::Form
should not, in general, be used for toplevel GUI containers or dialogs, but should be reserved for ‘GUI’ containers which occur within document content, for instance within Web documents, presentations, or text documents.
Unlike other GUI containers and dialogs which occur inside application instances, Self::Form
containers’ components are associated with the current document, rather than the current foreground application or viewer instance.
Link
The object is a hypertext anchor, i.e. a “link” in a hypertext document.
Such objects are distinct from ‘inline’ content which may also use the crate::Interface::Hypertext
/crate::Interface::Hyperlink
interfaces to indicate the range/location within a text object where an inline or embedded object lies.
InputMethodWindow
The object is a window or similar viewport which is used to allow composition or input of a ‘complex character’, in other words it is an “input method window”.
TableRow
A row in a table.
TreeItem
An object that represents an element of a tree.
DocumentSpreadsheet
A document frame which contains a spreadsheet.
DocumentPresentation
A document frame which contains a presentation or slide content.
DocumentText
A document frame which contains textual content, such as found in a word processing application.
DocumentWeb
A document frame which contains HTML or other markup suitable for display in a web browser.
DocumentEmail
A document frame which contains email content to be displayed or composed either in plain text or HTML.
Comment
An object found within a document and designed to present a comment, note, or other annotation. In some cases, this object might not be visible until activated.
ListBox
A non-collapsible list of choices the user can select from.
Grouping
A group of related widgets. This group typically has a label.
ImageMap
An image map object. Usually a graphic with multiple hotspots, where each hotspot can be activated resulting in the loading of another document or section of a document.
Notification
A transitory object designed to present a message to the user, typically at the desktop level rather than inside a particular application.
InfoBar
An object designed to present a message to the user within an existing window.
LevelBar
A bar that serves as a level indicator to, for instance, show the strength of a password or the state of a battery.
TitleBar
A bar that serves as the title of a window or a dialog.
BlockQuote
An object which contains a text section that is quoted from another source.
Audio
An object which represents an audio element.
Video
An object which represents a video element.
Definition
A definition of a term or concept.
Article
A section of a page that consists of a composition that forms an independent part of a document, page, or site. Examples: A blog entry, a news story, a forum post.
Landmark
A region of a web page intended as a navigational landmark. This is designed to allow Assistive Technologies to provide quick navigation among key regions within a document.
Log
A text widget or container holding log content, such as chat history and error logs. In this role there is a relationship between the arrival of new items in the log and the reading order. The log contains a meaningful sequence and new information is added only to the end of the log, not at arbitrary points.
Marquee
A container where non-essential information changes frequently. Common usages of marquee include stock tickers and ad banners. The primary difference between a marquee and a log is that logs usually have a meaningful order or sequence of important content changes.
Math
A text widget or container that holds a mathematical expression.
Rating
A rating system, generally out of five stars, but it does not need to be that way. There is no tag nor role for this in HTML, however.
A widget whose purpose is to display a rating, such as the number of stars associated with a song in a media player.
Objects of this role should also implement crate::Interface::Value
.
Timer
An object containing a numerical counter which indicates an amount of elapsed time from a start point, or the time remaining until an end point.
Static
A generic non-container object whose purpose is to display a brief amount of information to the user and whose role is known by the implementor but lacks semantic value for the user.
Examples in which Self::Static
is appropriate include the message displayed in a message box and an image used as an alternative means to display text.
Self::Static
should not be applied to widgets which are traditionally interactive, objects which display a significant amount of content, or any object which has an accessible relation pointing to another object.
The displayed information, as a general rule, should be exposed through the accessible name of the object.
For labels which describe another widget, see Self::Label
.
For text views, see Self::Text
.
For generic containers, see Self::Panel
. For objects whose role is not known by the implementor, see Self::Unknown
.
MathFraction
An object that represents a mathematical fraction.
MathRoot
An object that represents a mathematical expression displayed with a radical.
Subscript
An object that contains text that is displayed as a subscript.
Superscript
An object that contains text that is displayed as a superscript.
DescriptionList
An object that represents a list of term-value groups.
A term-value group represents an individual description and consist of one or more names (Self::DescriptionTerm
) followed by one or more values (Self::DescriptionValue
).
For each list, there should not be more than one group with the same term name.
DescriptionTerm
An object that represents a term or phrase with a corresponding definition.
DescriptionValue
An object that represents the description, definition, or value of a term.
Footnote
An object that contains the text of a footnote.
ContentDeletion
Content previously deleted or proposed to be deleted, e.g. in revision history or a content view providing suggestions from reviewers.
ContentInsertion
Content previously inserted or proposed to be inserted, e.g. in revision history or a content view providing suggestions from reviewers.
Mark
A run of content that is marked or highlighted, such as for reference purposes, or to call it out as having a special purpose.
If the marked content has an associated section in the document elaborating on the reason for the mark, then crate::RelationType::Details
should be used on the mark to point to that associated section.
In addition, the reciprocal relation crate::RelationType::DetailsFor
should be used on the associated content section to point back to the mark.
Suggestion
A container for content that is called out as a proposed change from the current version of the document, such as by a reviewer of the content.
An object with this role should include children with Self::ContentDeletion
and/or Self::ContentInsertion
, in any order, to indicate what the actual change is.
PushButtonMenu
A specialized push button to open a menu.