atspi_proxies/
selection.rs1use atspi_common::object_ref::ObjectRefOwned;
13
14#[zbus::proxy(interface = "org.a11y.atspi.Selection", assume_defaults = true)]
15pub trait Selection {
16 fn clear_selection(&self) -> zbus::Result<bool>;
18
19 fn deselect_child(&self, child_index: i32) -> zbus::Result<bool>;
21
22 fn deselect_selected_child(&self, selected_child_index: i32) -> zbus::Result<bool>;
24
25 fn get_selected_child(&self, selected_child_index: i32) -> zbus::Result<ObjectRefOwned>;
27
28 fn is_child_selected(&self, child_index: i32) -> zbus::Result<bool>;
30
31 fn select_all(&self) -> zbus::Result<bool>;
33
34 fn select_child(&self, child_index: i32) -> zbus::Result<bool>;
36
37 #[zbus(property)]
39 fn nselected_children(&self) -> zbus::Result<i32>;
40}