atspi_proxies/
selection.rs

1//! # `DBus` interface proxy for: `org.a11y.atspi.Selection`
2//!
3//! This code was generated by `zbus-xmlgen` `2.0.1` from `DBus` introspection data.
4//! Source: `Selection.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//!
12use atspi_common::object_ref::ObjectRefOwned;
13
14#[zbus::proxy(interface = "org.a11y.atspi.Selection", assume_defaults = true)]
15pub trait Selection {
16	/// `ClearSelection` method
17	fn clear_selection(&self) -> zbus::Result<bool>;
18
19	/// `DeselectChild` method
20	fn deselect_child(&self, child_index: i32) -> zbus::Result<bool>;
21
22	/// `DeselectSelectedChild` method
23	fn deselect_selected_child(&self, selected_child_index: i32) -> zbus::Result<bool>;
24
25	/// `GetSelectedChild` method
26	fn get_selected_child(&self, selected_child_index: i32) -> zbus::Result<ObjectRefOwned>;
27
28	/// `IsChildSelected` method
29	fn is_child_selected(&self, child_index: i32) -> zbus::Result<bool>;
30
31	/// `SelectAll` method
32	fn select_all(&self) -> zbus::Result<bool>;
33
34	/// `SelectChild` method
35	fn select_child(&self, child_index: i32) -> zbus::Result<bool>;
36
37	/// `NSelectedChildren` property
38	#[zbus(property)]
39	fn nselected_children(&self) -> zbus::Result<i32>;
40}