atspi_proxies/
component.rs

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::common::{CoordType, Layer, ObjectRef, ScrollType};
14
15#[zbus::proxy(interface = "org.a11y.atspi.Component", assume_defaults = true)]
16trait Component {
17	/// Contains method
18	fn contains(&self, x: i32, y: i32, coord_type: CoordType) -> zbus::Result<bool>;
19
20	/// GetAccessibleAtPoint method
21	fn get_accessible_at_point(
22		&self,
23		x: i32,
24		y: i32,
25		coord_type: CoordType,
26	) -> zbus::Result<ObjectRef>;
27
28	/// GetAlpha method
29	fn get_alpha(&self) -> zbus::Result<f64>;
30
31	/// GetExtents method
32	fn get_extents(&self, coord_type: CoordType) -> zbus::Result<(i32, i32, i32, i32)>;
33
34	/// GetLayer method
35	fn get_layer(&self) -> zbus::Result<Layer>;
36
37	/// GetMDIZOrder method
38	fn get_mdizorder(&self) -> zbus::Result<i16>;
39
40	/// GetPosition method
41	fn get_position(&self, coord_type: CoordType) -> zbus::Result<(i32, i32)>;
42
43	/// GetSize method
44	fn get_size(&self) -> zbus::Result<(i32, i32)>;
45
46	/// GrabFocus method
47	fn grab_focus(&self) -> zbus::Result<bool>;
48
49	/// ScrollTo method
50	fn scroll_to(&self, type_: ScrollType) -> zbus::Result<bool>;
51
52	/// ScrollToPoint method
53	fn scroll_to_point(&self, coord_type: CoordType, x: i32, y: i32) -> zbus::Result<bool>;
54
55	/// SetExtents method
56	fn set_extents(
57		&self,
58		x: i32,
59		y: i32,
60		width: i32,
61		height: i32,
62		coord_type: CoordType,
63	) -> zbus::Result<bool>;
64
65	/// SetPosition method
66	fn set_position(&self, x: i32, y: i32, coord_type: CoordType) -> zbus::Result<bool>;
67
68	/// SetSize method
69	fn set_size(&self, width: i32, height: i32) -> zbus::Result<bool>;
70}