pub struct FocusIndicator { /* private fields */ }Expand description
Tracks which node currently holds focus and the visual ring spec to use.
Renderers query FocusIndicator::focused_node to know which widget is
focused and FocusIndicator::ring to know how to draw its outline.
This is intentionally decoupled from crate::tree::A11yTree’s focus
field (which drives the AccessKit TreeUpdate::focus field for screen
readers). Both should be kept in sync, but keeping them separate allows
the render layer to style the ring independently of the a11y adapter.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FocusIndicator
impl RefUnwindSafe for FocusIndicator
impl Send for FocusIndicator
impl Sync for FocusIndicator
impl Unpin for FocusIndicator
impl UnsafeUnpin for FocusIndicator
impl UnwindSafe for FocusIndicator
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
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>
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 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>
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