use zbus::dbus_proxy;
#[dbus_proxy(interface = "org.a11y.atspi.Selection", assume_defaults = true)]
trait Selection {
fn clear_selection(&self) -> zbus::Result<bool>;
fn deselect_child(&self, child_index: i32) -> zbus::Result<bool>;
fn deselect_selected_child(&self, selected_child_index: i32) -> zbus::Result<bool>;
fn get_selected_child(
&self,
selected_child_index: i32,
) -> zbus::Result<(String, zbus::zvariant::OwnedObjectPath)>;
fn is_child_selected(&self, child_index: i32) -> zbus::Result<bool>;
fn select_all(&self) -> zbus::Result<bool>;
fn select_child(&self, child_index: i32) -> zbus::Result<bool>;
#[dbus_proxy(property)]
fn nselected_children(&self) -> zbus::Result<i32>;
}
use crate::{AtspiProxy, Interface};
impl<'a> AtspiProxy for SelectionProxy<'a> {
const INTERFACE: Interface = Interface::Selection;
}