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