pub struct AccessibleMatch {
pub id: Option<Id>,
pub bounds: Rectangle,
pub visible_bounds: Option<Rectangle>,
pub role: Role,
pub label: Option<String>,
pub description: Option<String>,
}Expand description
A widget match produced by an accessibility selector.
Fields§
§id: Option<Id>The widget Id, if any.
bounds: RectangleThe layout bounds of the matched widget.
visible_bounds: Option<Rectangle>The visible bounds of the matched widget, in screen coordinates.
role: RoleThe accessible Role of the matched widget.
label: Option<String>The accessible label of the matched widget, if any.
description: Option<String>The accessible description of the matched widget, if any.
Implementations§
Source§impl AccessibleMatch
impl AccessibleMatch
Sourcepub fn bounds(&self) -> Rectangle
pub fn bounds(&self) -> Rectangle
Returns the layout bounds of the AccessibleMatch.
Sourcepub fn visible_bounds(&self) -> Option<Rectangle>
pub fn visible_bounds(&self) -> Option<Rectangle>
Returns the visible bounds of the AccessibleMatch, in screen coordinates.
Trait Implementations§
Source§impl Bounded for AccessibleMatch
impl Bounded for AccessibleMatch
Source§impl Clone for AccessibleMatch
impl Clone for AccessibleMatch
Source§fn clone(&self) -> AccessibleMatch
fn clone(&self) -> AccessibleMatch
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AccessibleMatch
impl Debug for AccessibleMatch
Source§impl PartialEq for AccessibleMatch
impl PartialEq for AccessibleMatch
impl StructuralPartialEq for AccessibleMatch
Auto Trait Implementations§
impl Freeze for AccessibleMatch
impl RefUnwindSafe for AccessibleMatch
impl Send for AccessibleMatch
impl Sync for AccessibleMatch
impl Unpin for AccessibleMatch
impl UnsafeUnpin for AccessibleMatch
impl UnwindSafe for AccessibleMatch
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