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//!
12
13use crate::common::ObjectRef;
14
15#[zbus::proxy(interface = "org.a11y.atspi.Selection", assume_defaults = true)]
16trait Selection {
17 /// ClearSelection method
18 fn clear_selection(&self) -> zbus::Result<bool>;
19
20 /// DeselectChild method
21 fn deselect_child(&self, child_index: i32) -> zbus::Result<bool>;
22
23 /// DeselectSelectedChild method
24 fn deselect_selected_child(&self, selected_child_index: i32) -> zbus::Result<bool>;
25
26 /// GetSelectedChild method
27 fn get_selected_child(&self, selected_child_index: i32) -> zbus::Result<ObjectRef>;
28
29 /// IsChildSelected method
30 fn is_child_selected(&self, child_index: i32) -> zbus::Result<bool>;
31
32 /// SelectAll method
33 fn select_all(&self) -> zbus::Result<bool>;
34
35 /// SelectChild method
36 fn select_child(&self, child_index: i32) -> zbus::Result<bool>;
37
38 /// NSelectedChildren property
39 #[zbus(property)]
40 fn nselected_children(&self) -> zbus::Result<i32>;
41}
42