atspi_proxies/
component.rs1use crate::common::{CoordType, Layer, ObjectRef, ScrollType};
14
15#[zbus::proxy(interface = "org.a11y.atspi.Component", assume_defaults = true)]
16pub trait Component {
17 fn contains(&self, x: i32, y: i32, coord_type: CoordType) -> zbus::Result<bool>;
19
20 fn get_accessible_at_point(
22 &self,
23 x: i32,
24 y: i32,
25 coord_type: CoordType,
26 ) -> zbus::Result<ObjectRef>;
27
28 fn get_alpha(&self) -> zbus::Result<f64>;
30
31 fn get_extents(&self, coord_type: CoordType) -> zbus::Result<(i32, i32, i32, i32)>;
33
34 fn get_layer(&self) -> zbus::Result<Layer>;
36
37 #[zbus(name = "GetMDIZOrder")]
39 fn get_mdiz_order(&self) -> zbus::Result<i16>;
40
41 fn get_position(&self, coord_type: CoordType) -> zbus::Result<(i32, i32)>;
43
44 fn get_size(&self) -> zbus::Result<(i32, i32)>;
46
47 fn grab_focus(&self) -> zbus::Result<bool>;
49
50 fn scroll_to(&self, type_: ScrollType) -> zbus::Result<bool>;
52
53 fn scroll_to_point(&self, coord_type: CoordType, x: i32, y: i32) -> zbus::Result<bool>;
55
56 fn set_extents(
58 &self,
59 x: i32,
60 y: i32,
61 width: i32,
62 height: i32,
63 coord_type: CoordType,
64 ) -> zbus::Result<bool>;
65
66 fn set_position(&self, x: i32, y: i32, coord_type: CoordType) -> zbus::Result<bool>;
68
69 fn set_size(&self, width: i32, height: i32) -> zbus::Result<bool>;
71}