1use crate::common::ObjectRef;
14
15#[zbus::proxy(interface = "org.a11y.atspi.Table", assume_defaults = true)]
16pub trait Table {
17 fn add_column_selection(&self, column: i32) -> zbus::Result<bool>;
19
20 fn add_row_selection(&self, row: i32) -> zbus::Result<bool>;
22
23 fn get_accessible_at(&self, row: i32, column: i32) -> zbus::Result<ObjectRef>;
25
26 fn get_column_at_index(&self, index: i32) -> zbus::Result<i32>;
28
29 fn get_column_description(&self, column: i32) -> zbus::Result<String>;
31
32 fn get_column_extent_at(&self, row: i32, column: i32) -> zbus::Result<i32>;
34
35 fn get_column_header(&self, column: i32) -> zbus::Result<ObjectRef>;
37
38 fn get_index_at(&self, row: i32, column: i32) -> zbus::Result<i32>;
40
41 fn get_row_at_index(&self, index: i32) -> zbus::Result<i32>;
43
44 fn get_row_column_extents_at_index(
46 &self,
47 index: i32,
48 ) -> zbus::Result<(bool, i32, i32, i32, i32, bool)>;
49
50 fn get_row_description(&self, row: i32) -> zbus::Result<String>;
52
53 fn get_row_extent_at(&self, row: i32, column: i32) -> zbus::Result<i32>;
55
56 fn get_row_header(&self, row: i32) -> zbus::Result<ObjectRef>;
58
59 fn get_selected_columns(&self) -> zbus::Result<Vec<i32>>;
61
62 fn get_selected_rows(&self) -> zbus::Result<Vec<i32>>;
64
65 fn is_column_selected(&self, column: i32) -> zbus::Result<bool>;
67
68 fn is_row_selected(&self, row: i32) -> zbus::Result<bool>;
70
71 fn is_selected(&self, row: i32, column: i32) -> zbus::Result<bool>;
73
74 fn remove_column_selection(&self, column: i32) -> zbus::Result<bool>;
76
77 fn remove_row_selection(&self, row: i32) -> zbus::Result<bool>;
79
80 #[zbus(property)]
82 fn caption(&self) -> zbus::Result<ObjectRef>;
83
84 #[zbus(property)]
86 fn ncolumns(&self) -> zbus::Result<i32>;
87
88 #[zbus(property)]
90 fn nrows(&self) -> zbus::Result<i32>;
91
92 #[zbus(property)]
94 fn nselected_columns(&self) -> zbus::Result<i32>;
95
96 #[zbus(property)]
98 fn nselected_rows(&self) -> zbus::Result<i32>;
99
100 #[zbus(property)]
102 fn summary(&self) -> zbus::Result<ObjectRef>;
103}