1//! # `DBus` interface proxy for: `org.a11y.atspi.EditableText`
2//!
3//! This code was generated by `zbus-xmlgen` `2.0.1` from `DBus` introspection data.
4//! Source: `EditableText.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.EditableText", assume_defaults = true)]
16trait EditableText {
17 /// CopyText method
18 fn copy_text(&self, start_pos: i32, end_pos: i32) -> zbus::Result<()>;
19
20 /// CutText method
21 fn cut_text(&self, start_pos: i32, end_pos: i32) -> zbus::Result<bool>;
22
23 /// DeleteText method
24 fn delete_text(&self, start_pos: i32, end_pos: i32) -> zbus::Result<bool>;
25
26 /// InsertText method
27 fn insert_text(&self, position: i32, text: &str, length: i32) -> zbus::Result<bool>;
28
29 /// PasteText method
30 fn paste_text(&self, position: i32) -> zbus::Result<bool>;
31
32 /// SetTextContents method
33 fn set_text_contents(&self, new_contents: &str) -> zbus::Result<bool>;
34}
35