Expand description
Properties that define accessibility metadata.
The properties in this crate should only be used by widget implementers, they only
define metadata for accessibility, this metadata signals the availability of behaviors
that are not implemented by these properties, for example an AccessRole::Button
widget
must also be focusable and handle click events, an AccessRole::TabList
must contain widgets
marked AccessRole::Tab
.
§Crate
This crate is part of the zng
project.
Structs§
- Auto
Complete - Defines how inputting text could trigger display of one or more predictions of the user’s intended value.
- Invalid
- Defines the kind of invalid data error of a widget.
Enums§
- Access
CmdName - Accessibility command without associated data.
- Access
Role - Accessibility role of a node in the accessibility tree.
- Current
Kind - Kind of current item a widget represents.
- Live
Indicator - Defines how a live update is communicated to the user.
- Orientation
- Widget orientation.
- Popup
- Popup type.
- Sort
Direction - Sort direction.
Functions§
- access_
commands P
Append supported access commands.- access_
role P
Sets the widget kind for accessibility services.- accessible
P
Defines if the widget and descendants can be present in the accessibility info tree.- active_
descendant P
Identifies the currently active widget when focus is on a composite widget.- auto_
complete P
Set how input text triggers display of one or more predictions of the user’s intended value for aComboBox
,SearchBox
, orTextInput
.- checked
P
If the widget is checked (Some(true)
), unchecked (Some(false)
), or if the checked status is indeterminate (None
).- col_
count P
Sets the total number of columns in aTable
,Grid
, orTreeGrid
when not all columns are present in tree.- col_
index P
Sets the widget’s column index in the parent table or grid.- col_
span P
Sets the number of columns spanned by the widget in the parent table or grid.- controls
P
Append widgets whose contents or presence are controlled by this widget to the controlled list.- current
P
Indicates that the widget represents the current item of a kind.- described_
by P
Append widgets that describes this widget to the descriptors list.- details
P
Append widgets that provide additional information related to this widget to the details list.- error_
message P
Indicates that the widget is an error message for theinvalid_wgt
.- expanded
P
Indicate that the widget toggles the visibility of related widgets.- flows_
to P
Append options for next widget to be read by screen readers.- invalid
P
Indicates that the widget’s data is invalid with optional kinds of errors.- item_
count P
Sets the number of items in the current set of list items or tree items when not all items in the set are present in the tree.- item_
index P
Sets the widget’s number or position in the current set of list items or tree items when not all items are present in the tree.- label
P
Sets a custom name for the widget in accessibility info.- labelled_
by P
Append widgets that provide additional information related to this widget.- labelled_
by_ child P
Uses the accessible children aslabelled_by
.- lang
P
Defines the language used by screen-readers to read text in this widget and descendants.- level
P
Sets the hierarchical level of the widget within a parent scope.- live
P
Indicate that the widget can change, how the change can be announced, ifatomic
the entire widget must be re-read, ifbusy
the screen reader must wait until the change completes.- modal
P
Sets if the widget is modal when displayed.- multi_
selectable P
Indicates that the user may select more than one item from the current selectable descendants.- on_
access_ click P
Access requested a click.- on_
access_ expander P
Access requested to expand or collapse the widget content.- on_
access_ increment P
Access requested to increment or decrement the widget value by steps.- on_
access_ number P
Access requested a number input.- on_
access_ scroll P
Access requested a scroll command.- on_
access_ selection P
Access requested a text selection.- on_
access_ text P
Access requested a text input/replace.- on_
access_ tooltip P
Access requested to show or hide the widget’s tooltip.- on_
pre_ access_ click P
Previewon_access_click
event.- on_
pre_ access_ expander P
Previewon_access_expander
event.- on_
pre_ access_ increment P
Previewon_access_increment
event.- on_
pre_ access_ number P
Previewon_access_number
event.- on_
pre_ access_ scroll P
Previewon_access_scroll
event.- on_
pre_ access_ selection P
Previewon_access_selection
event.- on_
pre_ access_ text P
Previewon_access_text
event.- on_
pre_ access_ tooltip P
Previewon_access_tooltip
event.- orientation
P
Indicates whether the widget’s orientation is horizontal, vertical, or unknown/ambiguous.- owns
P
Appendowned
widgets that are children of this widget, but are not already children in the info tree.- placeholder
P
Short hint (a word or short phrase) intended to help the user with data entry when a form control has no value.- popup
P
Indicates the availability and type of interactive popup widget.- read_
only P
Indicates that the widget is not editable, but is otherwise operable.- required
P
Indicates that user input is required on the widget before a form may be submitted.- row_
count P
Sets the total number of rows in aTable
,Grid
, orTreeGrid
when not all rows are present in the tree.- row_
index P
Sets the widget’s row index in the parent table or grid.- row_
span P
Sets the number of rows spanned by the widget in the parent table or grid.- scroll_
horizontal P
Sets the amount scrolled horizontally if allowed.- scroll_
vertical P
Sets the amount scrolled vertically if allowed.- selected
P
Indicates that the widget is selected.- sort
P
Sets the sort direction for the table or grid items.- value
P
Set the current value.- value_
max P
Set the maximum value (inclusive).- value_
min P
Set the minimum value (inclusive).- value_
text P
Set a text that is a readable version of the current value.