1//! # `DBus` interface proxy for: `org.a11y.atspi.Component`
2//!
3//! This code was generated by `zbus-xmlgen` `2.0.1` from `DBus` introspection data.
4//! Source: `Component.xml`.
5//!
6//! You may prefer to adapt it, instead of using it verbatim.
7//!
8//! More information can be found in the
9//! [Writing a client proxy](https://dbus.pages.freedesktop.org/zbus/client.html)
10//! section of the zbus documentation.
11//!
12
13use crate::atspi_proxy;
14use crate::common::{Accessible, CoordType, Layer, ScrollType};
15
16#[atspi_proxy(interface = "org.a11y.atspi.Component", assume_defaults = true)]
17trait Component {
18 /// Contains method
19 fn contains(&self, x: i32, y: i32, coord_type: CoordType) -> zbus::Result<bool>;
20
21 /// GetAccessibleAtPoint method
22 fn get_accessible_at_point(
23 &self,
24 x: i32,
25 y: i32,
26 coord_type: CoordType,
27 ) -> zbus::Result<Accessible>;
28
29 /// GetAlpha method
30 fn get_alpha(&self) -> zbus::Result<f64>;
31
32 /// GetExtents method
33 fn get_extents(&self, coord_type: CoordType) -> zbus::Result<(i32, i32, i32, i32)>;
34
35 /// GetLayer method
36 fn get_layer(&self) -> zbus::Result<Layer>;
37
38 /// GetMDIZOrder method
39 fn get_mdizorder(&self) -> zbus::Result<i16>;
40
41 /// GetPosition method
42 fn get_position(&self, coord_type: CoordType) -> zbus::Result<(i32, i32)>;
43
44 /// GetSize method
45 fn get_size(&self) -> zbus::Result<(i32, i32)>;
46
47 /// GrabFocus method
48 fn grab_focus(&self) -> zbus::Result<bool>;
49
50 /// ScrollTo method
51 fn scroll_to(&self, type_: ScrollType) -> zbus::Result<bool>;
52
53 /// ScrollToPoint method
54 fn scroll_to_point(&self, coord_type: CoordType, x: i32, y: i32) -> zbus::Result<bool>;
55
56 /// SetExtents method
57 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 /// SetPosition method
67 fn set_position(&self, x: i32, y: i32, coord_type: CoordType) -> zbus::Result<bool>;
68
69 /// SetSize method
70 fn set_size(&self, width: i32, height: i32) -> zbus::Result<bool>;
71}
72