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::atspi_proxy;
14
15#[atspi_proxy(interface = "org.a11y.atspi.Document", assume_defaults = true)]
16trait Document {
17	/// GetAttributeValue method
18	fn get_attribute_value(&self, attributename: &str) -> zbus::Result<String>;
19
20	/// GetAttributes method
21	fn get_attributes(&self) -> zbus::Result<std::collections::HashMap<String, String>>;
22
23	/// GetLocale method
24	fn get_locale(&self) -> zbus::Result<String>;
25
26	/// CurrentPageNumber property
27	#[dbus_proxy(property)]
28	fn current_page_number(&self) -> zbus::Result<i32>;
29
30	/// PageCount property
31	#[dbus_proxy(property)]
32	fn page_count(&self) -> zbus::Result<i32>;
33}