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