Enum EventKind
#[repr(u8)]pub enum EventKind {
Show 14 variants
FocusChanged = 0,
ValueChanged = 1,
NameChanged = 2,
StateChanged = 3,
StructureChanged = 4,
WindowOpened = 5,
WindowClosed = 6,
WindowActivated = 7,
WindowDeactivated = 8,
SelectionChanged = 9,
MenuOpened = 10,
MenuClosed = 11,
Alert = 12,
TextChanged = 13,
}Expand description
Categories of accessibility events, normalized across platforms.
Variants§
FocusChanged = 0
An element gained keyboard focus.
ValueChanged = 1
An element’s value changed.
NameChanged = 2
An element’s name/label changed.
StateChanged = 3
A boolean state flag changed.
StructureChanged = 4
Children were added or removed from an element.
WindowOpened = 5
A new window was created.
WindowClosed = 6
A window was closed/destroyed.
WindowActivated = 7
A window was activated (brought to front).
WindowDeactivated = 8
A window was deactivated (lost focus).
SelectionChanged = 9
Selection changed in a list, table, or text.
MenuOpened = 10
A menu was opened.
MenuClosed = 11
A menu was closed.
Alert = 12
An alert or notification was posted.
TextChanged = 13
Text content changed in an editable element.
On Linux, position comes from the AT-SPI event signal.
On Windows 10+, position comes from TextEditTextChangedEventId.
On macOS, position is inferred by diffing (may be None for ambiguous changes).
Trait Implementations§
§impl<'de> Deserialize<'de> for EventKind
impl<'de> Deserialize<'de> for EventKind
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for EventKind
impl Serialize for EventKind
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for EventKind
impl Eq for EventKind
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnwindSafe for EventKind
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