#[repr(u8)]pub enum Role {
Show 184 variants
Unknown,
InlineTextBox,
Cell,
StaticText,
Image,
Link,
Row,
ListItem,
ListMarker,
TreeItem,
ListBoxOption,
MenuItem,
MenuListOption,
Paragraph,
GenericContainer,
Presentation,
CheckBox,
RadioButton,
TextField,
Button,
LabelText,
Pane,
RowHeader,
ColumnHeader,
Column,
RowGroup,
List,
Table,
TableHeaderContainer,
LayoutTableCell,
LayoutTableRow,
LayoutTable,
Switch,
ToggleButton,
Menu,
Abbr,
Alert,
AlertDialog,
Application,
Article,
Audio,
Banner,
Blockquote,
Canvas,
Caption,
Caret,
Client,
Code,
ColorWell,
ComboBoxGrouping,
ComboBoxMenuButton,
Complementary,
Comment,
ContentDeletion,
ContentInsertion,
ContentInfo,
Date,
DateTime,
Definition,
DescriptionList,
DescriptionListDetail,
DescriptionListTerm,
Details,
Dialog,
Directory,
DisclosureTriangle,
Document,
EmbeddedObject,
Emphasis,
Feed,
FigureCaption,
Figure,
Footer,
FooterAsNonLandmark,
Form,
Grid,
Group,
Header,
HeaderAsNonLandmark,
Heading,
Iframe,
IframePresentational,
ImeCandidate,
InputTime,
Keyboard,
Legend,
LineBreak,
ListBox,
Log,
Main,
Mark,
Marquee,
Math,
MenuBar,
MenuItemCheckBox,
MenuItemRadio,
MenuListPopup,
Meter,
Navigation,
Note,
PluginObject,
PopupButton,
Portal,
Pre,
ProgressIndicator,
RadioGroup,
Region,
RootWebArea,
Ruby,
RubyAnnotation,
ScrollBar,
ScrollView,
Search,
SearchBox,
Section,
Slider,
SpinButton,
Splitter,
Status,
Strong,
Suggestion,
SvgRoot,
Tab,
TabList,
TabPanel,
Term,
TextFieldWithComboBox,
Time,
Timer,
TitleBar,
Toolbar,
Tooltip,
Tree,
TreeGrid,
Video,
WebView,
Window,
PdfActionableHighlight,
PdfRoot,
GraphicsDocument,
GraphicsObject,
GraphicsSymbol,
DocAbstract,
DocAcknowledgements,
DocAfterword,
DocAppendix,
DocBackLink,
DocBiblioEntry,
DocBibliography,
DocBiblioRef,
DocChapter,
DocColophon,
DocConclusion,
DocCover,
DocCredit,
DocCredits,
DocDedication,
DocEndnote,
DocEndnotes,
DocEpigraph,
DocEpilogue,
DocErrata,
DocExample,
DocFootnote,
DocForeword,
DocGlossary,
DocGlossRef,
DocIndex,
DocIntroduction,
DocNoteRef,
DocNotice,
DocPageBreak,
DocPageFooter,
DocPageHeader,
DocPageList,
DocPart,
DocPreface,
DocPrologue,
DocPullquote,
DocQna,
DocSubtitle,
DocTip,
DocToc,
ListGrid,
}
Expand description
The type of an accessibility node.
The majority of these roles come from the ARIA specification. Reference the latest draft for proper usage.
Like the AccessKit schema as a whole, this list is largely taken
from Chromium. However, unlike Chromium’s alphabetized list, this list
is ordered roughly by expected usage frequency (with the notable exception
of Role::Unknown
). This is more efficient in serialization formats
where integers use a variable-length encoding.
Variants§
Unknown
InlineTextBox
Cell
StaticText
Image
Link
Row
ListItem
ListMarker
Contains the bullet, number, or other marker for a list item.
TreeItem
ListBoxOption
MenuItem
MenuListOption
Paragraph
GenericContainer
Presentation
Used for ARIA role=“none”/“presentation” – ignored in platform tree.
CheckBox
RadioButton
TextField
Button
LabelText
Pane
RowHeader
ColumnHeader
Column
RowGroup
List
Table
TableHeaderContainer
LayoutTableCell
LayoutTableRow
LayoutTable
Switch
ToggleButton
Menu
Abbr
Alert
AlertDialog
Application
Article
Audio
Banner
Blockquote
Canvas
Caption
Caret
Client
Code
ColorWell
ComboBoxGrouping
ComboBoxMenuButton
Complementary
Comment
ContentDeletion
ContentInsertion
ContentInfo
Date
DateTime
Definition
DescriptionList
DescriptionListDetail
DescriptionListTerm
Details
Dialog
Directory
DisclosureTriangle
Document
EmbeddedObject
Emphasis
Feed
FigureCaption
Figure
Form
Grid
Group
Header
HeaderAsNonLandmark
Heading
Iframe
IframePresentational
ImeCandidate
InputTime
Keyboard
Legend
LineBreak
ListBox
Log
Main
Mark
Marquee
Math
MenuBar
MenuItemCheckBox
MenuItemRadio
MenuListPopup
Meter
Note
PluginObject
PopupButton
Portal
Pre
ProgressIndicator
RadioGroup
Region
RootWebArea
Ruby
RubyAnnotation
ScrollBar
ScrollView
Search
SearchBox
Section
Slider
SpinButton
Splitter
Status
Strong
Suggestion
SvgRoot
Tab
TabList
TabPanel
Term
TextFieldWithComboBox
Time
Timer
TitleBar
Toolbar
Tooltip
Tree
TreeGrid
Video
WebView
Window
PdfActionableHighlight
PdfRoot
GraphicsDocument
GraphicsObject
GraphicsSymbol
DocAbstract
DocAcknowledgements
DocAfterword
DocAppendix
DocBackLink
DocBiblioEntry
DocBibliography
DocBiblioRef
DocChapter
DocColophon
DocConclusion
DocCover
DocCredit
DocCredits
DocDedication
DocEndnote
DocEndnotes
DocEpigraph
DocEpilogue
DocErrata
DocExample
DocFootnote
DocForeword
DocGlossary
DocGlossRef
DocIndex
DocIntroduction
DocNoteRef
DocNotice
DocPageBreak
DocPageHeader
DocPageList
DocPart
DocPreface
DocPrologue
DocPullquote
DocQna
DocSubtitle
DocTip
DocToc
ListGrid
Behaves similar to an ARIA grid but is primarily used by Chromium’s
TableView
and its subclasses, so they can be exposed correctly
on certain platforms.
Trait Implementations§
source§impl Ord for Role
impl Ord for Role
source§impl PartialEq<Role> for Role
impl PartialEq<Role> for Role
source§impl PartialOrd<Role> for Role
impl PartialOrd<Role> for Role
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Role
impl Eq for Role
impl StructuralEq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnwindSafe for Role
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more