atspi_proxies/
document.rs

1//! # `DBus` interface proxy for: `org.a11y.atspi.Document`
2//!
3//! This code was generated by `zbus-xmlgen` `2.0.1` from `DBus` introspection data.
4//! Source: `Document.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::TextSelection;
14
15#[zbus::proxy(interface = "org.a11y.atspi.Document", assume_defaults = true)]
16pub trait Document {
17	/// GetTextSelections method
18	fn get_text_selections(&self) -> zbus::Result<Vec<TextSelection>>;
19
20	/// SetTextSelections method
21	fn set_text_selections(&self, selections: Vec<TextSelection>) -> zbus::Result<bool>;
22
23	/// GetAttributeValue method
24	fn get_attribute_value(&self, attributename: &str) -> zbus::Result<String>;
25
26	/// GetAttributes method
27	fn get_attributes(&self) -> zbus::Result<std::collections::HashMap<String, String>>;
28
29	/// GetLocale method
30	fn get_locale(&self) -> zbus::Result<String>;
31
32	/// CurrentPageNumber property
33	#[zbus(property)]
34	fn current_page_number(&self) -> zbus::Result<i32>;
35
36	/// PageCount property
37	#[zbus(property)]
38	fn page_count(&self) -> zbus::Result<i32>;
39}