1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//! # `DBus` interface proxy for: `org.a11y.atspi.EditableText`
//!
//! This code was generated by `zbus-xmlgen` `2.0.1` from `DBus` introspection data.
//! Source: `EditableText.xml`.
//!
//! You may prefer to adapt it, instead of using it verbatim.
//!
//! More information can be found in the
//! [Writing a client proxy](https://dbus.pages.freedesktop.org/zbus/client.html)
//! section of the zbus documentation.
//!

#[zbus::proxy(interface = "org.a11y.atspi.EditableText", assume_defaults = true)]
trait EditableText {
	/// CopyText method
	fn copy_text(&self, start_pos: i32, end_pos: i32) -> zbus::Result<()>;

	/// CutText method
	fn cut_text(&self, start_pos: i32, end_pos: i32) -> zbus::Result<bool>;

	/// DeleteText method
	fn delete_text(&self, start_pos: i32, end_pos: i32) -> zbus::Result<bool>;

	/// InsertText method
	fn insert_text(&self, position: i32, text: &str, length: i32) -> zbus::Result<bool>;

	/// PasteText method
	fn paste_text(&self, position: i32) -> zbus::Result<bool>;

	/// SetTextContents method
	fn set_text_contents(&self, new_contents: &str) -> zbus::Result<bool>;
}