Struct zng::widget::info::access::WidgetAccessInfo

source ·
pub struct WidgetAccessInfo { /* private fields */ }
Expand description

Accessibility info for a widget.

Implementations§

source§

impl WidgetAccessInfo

source

pub fn info(&self) -> &WidgetInfo

Full widget info.

source

pub fn role(&self) -> Option<AccessRole>

Accessibility role of the widget.

source

pub fn commands(&self) -> &[AccessCmdName]

Accessibility commands supported by the widget.

source

pub fn auto_complete(&self) -> Option<AutoComplete>

How input text triggers display of one or more predictions of the user’s intended value.

source

pub fn checked(&self) -> Option<Option<bool>>

If the widget is checked (Some(true)), unchecked (Some(false)), or if the checked status is indeterminate (None).

Note that the value is wrapped in another Option<_> that indicates if it was set or not.

source

pub fn current(&self) -> Option<CurrentKind>

Kind of current item the widget represents.

source

pub fn error_message(&self) -> Option<WidgetInfo>

Gets the invalid widget that this widget is an error message for.

source

pub fn active_descendant(&self) -> Option<WidgetInfo>

Identifies the currently active widget when focus is on a composite widget.

source

pub fn expanded(&self) -> Option<bool>

Gets visibility of related widgets.

source

pub fn has_popup(&self) -> Option<Popup>

Indicates the availability and type of interactive popup widget.

source

pub fn invalid(&self) -> Invalid

If the widget data has errors.

source

pub fn label(&self) -> Option<Txt>

Gets the accessibility name explicitly set on this widget.

source

pub fn labelled_by_child(&self) -> bool

If the widget children must be used like labelled_by.

source

pub fn lang(&self) -> Option<LanguageIdentifier>

Gets the language of texts inside this widget and descendants.

If not set it is the parents language.

source

pub fn scroll_horizontal(&self) -> Option<Box<dyn VarBoxed<Factor>>>

Normalized (0..1) horizontal scroll, 0 is showing the content leftmost edge, 1 is showing the content the rightmost edge.

Also signals that the content is horizontally scrollable.

source

pub fn scroll_vertical(&self) -> Option<Box<dyn VarBoxed<Factor>>>

Normalized (0..1) vertical scroll, 0 is showing the content topmost edge, 1 is showing the content the bottommost edge.

Also signals that the content is vertically scrollable.

source

pub fn is_multi_selectable(&self) -> bool

Indicates that the user may select more than one item from the current selectable descendants.

source

pub fn orientation(&self) -> Option<Orientation>

Indicates whether the widget’s orientation is horizontal, vertical, or unknown/ambiguous.

source

pub fn placeholder(&self) -> Option<Txt>

Short hint (a word or short phrase) intended to help the user with data entry when a form control has no value.

source

pub fn is_read_only(&self) -> bool

Indicates that the widget is not editable, but is otherwise operable.

source

pub fn is_required(&self) -> bool

Indicates that user input is required on the widget before a form may be submitted.

source

pub fn level(&self) -> Option<NonZero<u32>>

Defines the hierarchical level of a widget within a structure.

source

pub fn is_selected(&self) -> bool

Indicates that the widget is selected.

source

pub fn sort(&self) -> Option<SortDirection>

Indicates if items in a table or grid are sorted in ascending or descending order.

source

pub fn value_max(&self) -> Option<f64>

Maximum value (inclusive).

source

pub fn value_min(&self) -> Option<f64>

Minimum value (inclusive).

source

pub fn value(&self) -> Option<f64>

Current value.

source

pub fn value_text(&self) -> Option<Txt>

Current value in a readable format.

Note that this returns Some(_) only when a value text was set, value may or may not be set also.

source

pub fn live(&self) -> Option<(LiveIndicator, bool, bool)>

Gets the live indicator, atomic and busy.

See AccessState::Live for more details.

source

pub fn col_count(&self) -> Option<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.

source

pub fn col_index(&self) -> Option<usize>

Defines a widget’s column index in the parent table or grid.

source

pub fn col_span(&self) -> Option<usize>

Defines the number of columns spanned by the widget in the parent table or grid.

source

pub fn row_count(&self) -> Option<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.

source

pub fn row_index(&self) -> Option<usize>

Defines a widget’s column index in the parent table or grid.

source

pub fn row_span(&self) -> Option<usize>

Defines the number of columns spanned by the widget in the parent table or grid.

source

pub fn item_count(&self) -> Option<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.

source

pub fn item_index(&self) -> Option<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.

source

pub fn modal(&self) -> bool

Indicates whether the widget is modal when displayed.

source

pub fn controls(&self) -> impl Iterator<Item = WidgetInfo>

Widget(s) whose contents or presence are controlled by this widget.

source

pub fn described_by(&self) -> impl Iterator<Item = WidgetInfo>

Identifies the widget(s) that describes this widget.

source

pub fn describes(&self) -> Option<WidgetInfo>

Identifies the widget that is described by this widget.

Note that this is not a query for all widgets that have this one in their described_by list, it is only set if it was set explicitly during info build.

source

pub fn details(&self) -> impl Iterator<Item = WidgetInfo>

Identifies the widget(s) that provide additional information related to this widget.

source

pub fn labelled_by(&self) -> impl Iterator<Item = WidgetInfo>

Identifies the widget(s) that labels the widget it is applied to.

source

pub fn labels(&self) -> Option<WidgetInfo>

Identifies the widget that is labelled by this widget.

Note that this is not a query for all widgets that have this one in their labelled_by list, it is only set if it was set explicitly during info build.

source

pub fn owns(&self) -> impl Iterator<Item = WidgetInfo>

Extra widgets that are child to this widget, but are not descendants on the info tree.

source

pub fn flows_to(&self) -> impl Iterator<Item = WidgetInfo>

Options for next widget to read.

source

pub fn is_accessible(&self) -> bool

If the widget and descendants is visible in the view-process and screen readers.

Note that the accessibility info for the widget and descendants is still available in the app-process.

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

impl<T> Downcast for T
where T: Any,

§

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

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

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

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

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

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
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> Instrument for T

source§

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

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

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
§

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> Same for T

source§

type Output = T

Should always be Self
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<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

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> WithSubscriber for T

source§

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

source§

impl<T> StateValue for T
where T: Any + Send + Sync,