Crate zng_wgt_access
source ·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§
- Defines how inputting text could trigger display of one or more predictions of the user’s intended value.
- Defines the kind of invalid data error of a widget.
Enums§
- Accessibility command without associated data.
- Accessibility role of a node in the accessibility tree.
- Kind of current item a widget represents.
- Defines how a live update is communicated to the user.
- Widget orientation.
- Popup type.
- Sort direction.
Functions§
PAppend supported access commands.PSets the widget kind for accessibility services.PDefines if the widget and descendants can be present in the accessibility info tree.PIdentifies the currently active widget when focus is on a composite widget.PIf the widget is checked (Some(true)), unchecked (Some(false)), or if the checked status is indeterminate (None).PSets the widget’s column index in the parent table or grid.PSets the number of columns spanned by the widget in the parent table or grid.PAppend widgets whose contents or presence are controlled by this widget to the controlled list.PIndicates that the widget represents the current item of a kind.PAppend widgets that describes this widget to the descriptors list.PAppend widgets that provide additional information related to this widget to the details list.PIndicates that the widget is an error message for theinvalid_wgt.PIndicate that the widget toggles the visibility of related widgets.PAppend options for next widget to be read by screen readers.PIndicates that the widget’s data is invalid with optional kinds of errors.PSets 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.PSets 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.PSets a custom name for the widget in accessibility info.PAppend widgets that provide additional information related to this widget.PUses the accessible children aslabelled_by.PDefines the language used by screen-readers to read text in this widget and descendants.PSets the hierarchical level of the widget within a parent scope.PIndicate that the widget can change, how the change can be announced, ifatomicthe entire widget must be re-read, ifbusythe screen reader must wait until the change completes.PSets if the widget is modal when displayed.PIndicates that the user may select more than one item from the current selectable descendants.PAccess requested a click.PAccess requested to expand or collapse the widget content.PAccess requested to increment or decrement the widget value by steps.PAccess requested a number input.PAccess requested a scroll command.PAccess requested a text selection.PAccess requested a text input/replace.PAccess requested to show or hide the widget’s tooltip.PPreviewon_access_clickevent.PPreviewon_access_expanderevent.PPreviewon_access_incrementevent.PPreviewon_access_numberevent.PPreviewon_access_scrollevent.PPreviewon_access_selectionevent.PPreviewon_access_textevent.PPreviewon_access_tooltipevent.PIndicates whether the widget’s orientation is horizontal, vertical, or unknown/ambiguous.PAppendownedwidgets that are children of this widget, but are not already children in the info tree.PShort hint (a word or short phrase) intended to help the user with data entry when a form control has no value.PIndicates the availability and type of interactive popup widget.PIndicates that the widget is not editable, but is otherwise operable.PIndicates that user input is required on the widget before a form may be submitted.PSets the widget’s row index in the parent table or grid.PSets the number of rows spanned by the widget in the parent table or grid.PSets the amount scrolled horizontally if allowed.PSets the amount scrolled vertically if allowed.PIndicates that the widget is selected.PSets the sort direction for the table or grid items.PSet the current value.PSet the maximum value (inclusive).PSet the minimum value (inclusive).PSet a text that is a readable version of the current value.