pub struct AttributeMap {
pub manual: Option<bool>,
pub enhanced: Option<bool>,
}Expand description
Fake AXManualAccessibility / AXEnhancedUserInterface map.
The macOS walker uses the same electron_enable decision. Tests drive
this map instead of a live application element.
Fields§
§manual: Option<bool>Current AXManualAccessibility value. None means the attribute is missing.
enhanced: Option<bool>Current AXEnhancedUserInterface value. None means the attribute is missing.
Implementations§
Source§impl AttributeMap
impl AttributeMap
Sourcepub fn enable_electron(&mut self) -> ElectronEdit
pub fn enable_electron(&mut self) -> ElectronEdit
Set both flags when they are false or missing. Returns the edit to persist.
Sourcepub fn restore_electron(&mut self, edit: &ElectronEdit)
pub fn restore_electron(&mut self, edit: &ElectronEdit)
Write back only the attributes [enable_electron] changed.
Trait Implementations§
Source§impl Clone for AttributeMap
impl Clone for AttributeMap
Source§impl Debug for AttributeMap
impl Debug for AttributeMap
impl Eq for AttributeMap
Source§impl PartialEq for AttributeMap
impl PartialEq for AttributeMap
impl StructuralPartialEq for AttributeMap
Auto Trait Implementations§
impl Freeze for AttributeMap
impl RefUnwindSafe for AttributeMap
impl Send for AttributeMap
impl Sync for AttributeMap
impl Unpin for AttributeMap
impl UnsafeUnpin for AttributeMap
impl UnwindSafe for AttributeMap
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.