atspi_proxies/
selection.rs
1use crate::atspi_proxy;
14use crate::common::Accessible;
15
16#[atspi_proxy(interface = "org.a11y.atspi.Selection", assume_defaults = true)]
17trait Selection {
18 fn clear_selection(&self) -> zbus::Result<bool>;
20
21 fn deselect_child(&self, child_index: i32) -> zbus::Result<bool>;
23
24 fn deselect_selected_child(&self, selected_child_index: i32) -> zbus::Result<bool>;
26
27 fn get_selected_child(&self, selected_child_index: i32) -> zbus::Result<Accessible>;
29
30 fn is_child_selected(&self, child_index: i32) -> zbus::Result<bool>;
32
33 fn select_all(&self) -> zbus::Result<bool>;
35
36 fn select_child(&self, child_index: i32) -> zbus::Result<bool>;
38
39 #[dbus_proxy(property)]
41 fn nselected_children(&self) -> zbus::Result<i32>;
42}