atspi_proxies/
table.rs
1use crate::atspi_proxy;
14use crate::common::Accessible;
15
16#[atspi_proxy(interface = "org.a11y.atspi.Table", assume_defaults = true)]
17trait Table {
18 fn add_column_selection(&self, column: i32) -> zbus::Result<bool>;
20
21 fn add_row_selection(&self, row: i32) -> zbus::Result<bool>;
23
24 fn get_accessible_at(&self, row: i32, column: i32) -> zbus::Result<Accessible>;
26
27 fn get_column_at_index(&self, index: i32) -> zbus::Result<i32>;
29
30 fn get_column_description(&self, column: i32) -> zbus::Result<String>;
32
33 fn get_column_extent_at(&self, row: i32, column: i32) -> zbus::Result<i32>;
35
36 fn get_column_header(&self, column: i32) -> zbus::Result<Accessible>;
38
39 fn get_index_at(&self, row: i32, column: i32) -> zbus::Result<i32>;
41
42 fn get_row_at_index(&self, index: i32) -> zbus::Result<i32>;
44
45 fn get_row_column_extents_at_index(
47 &self,
48 index: i32,
49 ) -> zbus::Result<(bool, i32, i32, i32, i32, bool)>;
50
51 fn get_row_description(&self, row: i32) -> zbus::Result<String>;
53
54 fn get_row_extent_at(&self, row: i32, column: i32) -> zbus::Result<i32>;
56
57 fn get_row_header(&self, row: i32) -> zbus::Result<Accessible>;
59
60 fn get_selected_columns(&self) -> zbus::Result<Vec<i32>>;
62
63 fn get_selected_rows(&self) -> zbus::Result<Vec<i32>>;
65
66 fn is_column_selected(&self, column: i32) -> zbus::Result<bool>;
68
69 fn is_row_selected(&self, row: i32) -> zbus::Result<bool>;
71
72 fn is_selected(&self, row: i32, column: i32) -> zbus::Result<bool>;
74
75 fn remove_column_selection(&self, column: i32) -> zbus::Result<bool>;
77
78 fn remove_row_selection(&self, row: i32) -> zbus::Result<bool>;
80
81 #[dbus_proxy(property)]
83 fn caption(&self) -> zbus::Result<Accessible>;
84
85 #[dbus_proxy(property)]
87 fn ncolumns(&self) -> zbus::Result<i32>;
88
89 #[dbus_proxy(property)]
91 fn nrows(&self) -> zbus::Result<i32>;
92
93 #[dbus_proxy(property)]
95 fn nselected_columns(&self) -> zbus::Result<i32>;
96
97 #[dbus_proxy(property)]
99 fn nselected_rows(&self) -> zbus::Result<i32>;
100
101 #[dbus_proxy(property)]
103 fn summary(&self) -> zbus::Result<Accessible>;
104}