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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

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.

§atomic: bool

If the live region must be re-read entirely after each update.

§busy: bool

Indicates the live area being modified and that assistive technologies may want to wait until the changes are complete before informing the user about the update.

§

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

source§

fn clone(&self) -> AccessState

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AccessState

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for AccessState

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl IntoVar<Option<AccessState>> for AccessState

source§

type Var = LocalVar<Option<AccessState>>

Variable type that will wrap the T value. Read more
source§

fn into_var(self) -> Self::Var

Converts the source value into a var.
source§

fn into_boxed_var(self) -> Box<dyn VarBoxed<T>>
where Self: Sized,

Converts into BoxedVar<T>. Read more
source§

impl PartialEq for AccessState

source§

fn eq(&self, other: &AccessState) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for AccessState

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl IntoValue<Option<AccessState>> for AccessState

source§

impl StructuralPartialEq for AccessState

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> AnyVarValue for T
where T: VarValue,

source§

fn as_any(&self) -> &(dyn Any + 'static)

Access to dyn Any methods.
source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Access to mut dyn Any methods.
source§

fn clone_boxed(&self) -> Box<dyn AnyVarValue>

Clone the value.
source§

fn clone_boxed_var(&self) -> Box<dyn AnyVar>

Clone the value into a new boxed LocalVar<Self>.
source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Access to Box<dyn Any> methods.
source§

fn eq_any(&self, other: &(dyn AnyVarValue + 'static)) -> bool

Gets if self equals other.
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
source§

impl<T> IntoVar<T> for T
where T: VarValue,

source§

type Var = LocalVar<T>

Variable type that will wrap the T value. Read more
source§

fn into_var(self) -> <T as IntoVar<T>>::Var

Converts the source value into a var.
source§

fn into_boxed_var(self) -> Box<dyn VarBoxed<T>>
where Self: Sized,

Converts into BoxedVar<T>. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

source§

impl<T> IntoValue<T> for T
where T: VarValue,

source§

impl<T> VarValue for T
where T: Debug + Clone + PartialEq + Any + Send + Sync,