odilia_common/
types.rs

1use atspi::text::Granularity;
2use serde::{self, Deserialize, Serialize};
3use zbus::zvariant::OwnedObjectPath;
4
5pub type Accessible = (String, OwnedObjectPath);
6
7pub struct IndexesSelection {
8	pub start: i32,
9	pub end: i32,
10}
11pub struct GranularSelection {
12	pub index: i32,
13	pub granularity: Granularity,
14}
15
16pub enum TextSelectionArea {
17	Index(IndexesSelection),
18	Granular(GranularSelection),
19}
20
21#[derive(Serialize, Deserialize, Debug, Eq, PartialEq, Hash)]
22#[serde(rename_all = "lowercase", untagged)]
23pub enum AriaLive {
24	Off,
25	Assertive,
26	Polite,
27	Other(String),
28}
29
30pub type AriaAtomic = bool;