accesskit_atspi_common/
events.rsuse accesskit::NodeId;
use atspi_common::{Live, Role, State};
use crate::{NodeIdOrRoot, Rect};
#[derive(Debug)]
pub enum Event {
Object {
target: NodeIdOrRoot,
event: ObjectEvent,
},
Window {
target: NodeId,
name: String,
event: WindowEvent,
},
}
#[derive(Debug)]
pub enum Property {
Name(String),
Description(String),
Parent(NodeIdOrRoot),
Role(Role),
Value(f64),
}
#[allow(clippy::enum_variant_names)]
#[derive(Debug)]
pub enum ObjectEvent {
ActiveDescendantChanged(NodeId),
Announcement(String, Live),
BoundsChanged(Rect),
CaretMoved(i32),
ChildAdded(usize, NodeId),
ChildRemoved(NodeId),
PropertyChanged(Property),
StateChanged(State, bool),
TextInserted {
start_index: i32,
length: i32,
content: String,
},
TextRemoved {
start_index: i32,
length: i32,
content: String,
},
TextSelectionChanged,
}
#[derive(Debug)]
pub enum WindowEvent {
Activated,
Deactivated,
}