Enum A11yTarget
pub enum A11yTarget {
Root,
Widget(NodeId),
Synthetic {
owner: NodeId,
key_path: Vec<u64>,
ordinal_path: Vec<usize>,
semantic_target: Option<String>,
},
}Expand description
Where an accesskit::NodeId points in the live widget tree. Produced by
resolve_node_id, which is how an incoming ActionRequest is turned back
into something the app can act on.
Variants§
Root
The synthetic window root — no widget owns it.
Widget(NodeId)
A real widget, addressed by the taffy::NodeId it was laid out with.
Synthetic
A synthetic node inside owner’s AccessNode::children, addressed by
the key path from owner down to it (see AccessNode::key). The path
has one element per level: [row] for a table row, [row, cell] for a
cell inside it.
Fields
key_path: Vec<u64>Keys from owner’s direct synthetic child down to the target.
Keys, for a widget that identifies a synthetic child by identity
— perform_action matches a clip by hash_key(uuid), which is
nothing like a position.
ordinal_path: Vec<usize>Ordinals, for a widget that identifies one by position —
synthetic_accessibility_rect indexes into seg_rects.
Both are carried because both are required, and they differ for any node that sets an explicit key. Handing a positional implementor a key it never had is a silent mis-target.
Trait Implementations§
§impl Clone for A11yTarget
impl Clone for A11yTarget
§fn clone(&self) -> A11yTarget
fn clone(&self) -> A11yTarget
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for A11yTarget
impl Debug for A11yTarget
§impl PartialEq for A11yTarget
impl PartialEq for A11yTarget
impl Eq for A11yTarget
impl StructuralPartialEq for A11yTarget
Auto Trait Implementations§
impl Freeze for A11yTarget
impl RefUnwindSafe for A11yTarget
impl Send for A11yTarget
impl Sync for A11yTarget
impl Unpin for A11yTarget
impl UnsafeUnpin for A11yTarget
impl UnwindSafe for A11yTarget
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
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)
fn as_any(&self) -> &(dyn Any + 'static)
&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)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&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
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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