Enum zng_view_api::access::AccessState
source · #[non_exhaustive]pub enum AccessState {
Show 42 variants
AutoComplete(AutoComplete),
Checked(Option<bool>),
Current(CurrentKind),
Disabled,
ErrorMessage(AccessNodeId),
Expanded(bool),
Popup(Popup),
Invalid(Invalid),
Label(Txt),
Level(NonZeroU32),
Modal,
MultiSelectable,
Orientation(Orientation),
Placeholder(Txt),
ReadOnly,
Required,
Selected,
Sort(SortDirection),
ValueMax(f64),
ValueMin(f64),
Value(f64),
ValueText(Txt),
Live {
indicator: LiveIndicator,
atomic: bool,
busy: bool,
},
ActiveDescendant(AccessNodeId),
ColCount(usize),
ColIndex(usize),
ColSpan(usize),
Controls(Vec<AccessNodeId>),
DescribedBy(Vec<AccessNodeId>),
Details(Vec<AccessNodeId>),
FlowTo(Vec<AccessNodeId>),
LabelledBy(Vec<AccessNodeId>),
LabelledByChild,
Owns(Vec<AccessNodeId>),
ItemIndex(usize),
RowCount(usize),
RowIndex(usize),
RowSpan(usize),
ItemCount(usize),
Lang(LanguageIdentifier),
ScrollHorizontal(f32),
ScrollVertical(f32),
}
Expand description
Accessibility attribute of a node in the accessibility tree.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AutoComplete(AutoComplete)
Inputting text triggers display of one or more predictions of the user’s intended
value for a ComboBox
, SearchBox
, or TextInput
.
Checked(Option<bool>)
If the widget is checked (Some(true)
), unchecked (Some(false)
), or if the checked status is indeterminate (None
).
Current(CurrentKind)
Indicates that the widget represents a current item.
Disabled
Indicates that the widget is perceivable but disabled, so it is not editable or otherwise operable.
ErrorMessage(AccessNodeId)
Indicates that the widget is an error message for the referenced node.
The other widget must be Invalid
.
Expanded(bool)
Indicate that the widget toggles the visibility of related widgets.
Use Controls
, or Owns
to indicate the widgets that change visibility based on
this value.
Popup(Popup)
Indicates the availability and type of interactive popup widget.
Invalid(Invalid)
Indicates the entered value does not conform to the format expected by the application.
Label(Txt)
Defines a string value that labels the widget.
Level(NonZeroU32)
Defines the hierarchical level of a widget within a structure.
Modal
Indicates whether the widget is modal when displayed.
MultiSelectable
Indicates that the user may select more than one item from the current selectable descendants.
Orientation(Orientation)
Indicates whether the widget’s orientation is horizontal, vertical, or unknown/ambiguous.
Placeholder(Txt)
Short hint (a word or short phrase) intended to help the user with data entry when a form control has no value.
ReadOnly
Indicates that the widget is not editable, but is otherwise operable.
Required
Indicates that user input is required on the widget before a form may be submitted.
Selected
Indicates that the widget is selected.
Sort(SortDirection)
Indicates if items in a table or grid are sorted in ascending or descending order.
ValueMax(f64)
Defines the maximum value (inclusive).
ValueMin(f64)
Defines the minimum value (inclusive).
Value(f64)
Defines the current value.
ValueText(Txt)
Defines a human readable version of the Value
.
Live
Indicate that the widget can change.
Fields
indicator: LiveIndicator
How the changes must be notified.
ActiveDescendant(AccessNodeId)
Identifies the currently active widget when focus is on a composite widget, ComboBox
, TextInput
, Group
, or Application
.
ColCount(usize)
Defines the total number of columns in a Table
, Grid
, or TreeGrid
when not all columns are present in tree.
The value 0
indicates that not all columns are in the widget and the application cannot determinate the exact number.
ColIndex(usize)
Defines a widget’s column index in the parent table or grid.
ColSpan(usize)
Defines the number of columns spanned by the widget in the parent table or grid.
Controls(Vec<AccessNodeId>)
Identifies the widget(s) whose contents or presence are controlled by this widget.
DescribedBy(Vec<AccessNodeId>)
Identifies the widget(s) that describes this widget.
Details(Vec<AccessNodeId>)
Identifies the widget(s) that provide additional information related to this widget.
FlowTo(Vec<AccessNodeId>)
Options for next widget to read.
LabelledBy(Vec<AccessNodeId>)
Identifies the widget(s) that labels the widget it is applied to.
LabelledByChild
Uses the widget children as LabelledBy
.
Owns(Vec<AccessNodeId>)
Identifies widget(s) in order to define a visual, functional, or contextual relationship between a parent and its child widgets when the tree hierarchy cannot be used to represent the relationship.
ItemIndex(usize)
Defines 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.
RowCount(usize)
Defines the total number of rows in a Table
, Grid
, or TreeGrid
when not all rows are present in tree.
The value 0
indicates that not all rows are in the widget and the application cannot determinate the exact number.
RowIndex(usize)
Defines a widget’s row index in the parent table or grid.
RowSpan(usize)
Defines the number of rows spanned by the widget in the parent table or grid.
ItemCount(usize)
Defines 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.
Lang(LanguageIdentifier)
Language of texts inside the widget and descendants.
ScrollHorizontal(f32)
Normalized (0..1) horizontal scroll, 0 is showing the content leftmost edge, 1 is showing the content the rightmost edge.
ScrollVertical(f32)
Normalized (0..1) vertical scroll, 0 is showing the content topmost edge, 1 is showing the content the bottommost edge.
Trait Implementations§
source§impl Clone for AccessState
impl Clone for AccessState
source§fn clone(&self) -> AccessState
fn clone(&self) -> AccessState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AccessState
impl Debug for AccessState
source§impl<'de> Deserialize<'de> for AccessState
impl<'de> Deserialize<'de> for AccessState
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl IntoVar<Option<AccessState>> for AccessState
impl IntoVar<Option<AccessState>> for AccessState
source§impl PartialEq for AccessState
impl PartialEq for AccessState
source§impl Serialize for AccessState
impl Serialize for AccessState
impl IntoValue<Option<AccessState>> for AccessState
impl StructuralPartialEq for AccessState
Auto Trait Implementations§
impl Freeze for AccessState
impl RefUnwindSafe for AccessState
impl Send for AccessState
impl Sync for AccessState
impl Unpin for AccessState
impl UnwindSafe for AccessState
Blanket Implementations§
source§impl<T> AnyVarValue for Twhere
T: VarValue,
impl<T> AnyVarValue for Twhere
T: VarValue,
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
dyn Any
methods.source§fn clone_boxed(&self) -> Box<dyn AnyVarValue>
fn clone_boxed(&self) -> Box<dyn AnyVarValue>
source§fn clone_boxed_var(&self) -> Box<dyn AnyVar>
fn clone_boxed_var(&self) -> Box<dyn AnyVar>
LocalVar<Self>
.source§fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool
self
equals other
.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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more