1 | //! # `DBus` interface proxy for: `org.a11y.atspi.Collection` |
2 | //! |
3 | //! This code was generated by `zbus-xmlgen` `2.0.1` from `DBus` introspection data. |
4 | //! Source: `Collection.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 | #![allow (clippy::too_many_arguments)] |
13 | // this allow zbus to change the number of parameters in a function without setting off clippy |
14 | |
15 | use crate::atspi_proxy ; |
16 | use crate::common::{Accessible, MatchArgs, SortOrder, TreeTraversalType}; |
17 | |
18 | #[atspi_proxy (interface = "org.a11y.atspi.Collection" , assume_defaults = true)] |
19 | trait Collection { |
20 | /// GetActiveDescendant method |
21 | fn get_active_descendant(&self) -> zbus::Result<Accessible>; |
22 | |
23 | /* ROLE fields: |
24 | &[i32]: AtspiStateSet, |
25 | i32: AtspiCollectionMatchType, |
26 | HashMap<&str, &str>: attributes, |
27 | i32: AtspiCollectionMatchType (attribute match type), |
28 | &[i32]: roles, |
29 | i32: AtspiCollectionMatchType (role match type), |
30 | &[&str]: interfaces, |
31 | i32: AtspiCollectionMatchType (interface match type), |
32 | bool: invert |
33 | */ |
34 | /// GetMatches method |
35 | fn get_matches( |
36 | &self, |
37 | rule: &MatchArgs<'_>, |
38 | sortby: SortOrder, |
39 | count: i32, |
40 | traverse: bool, |
41 | ) -> zbus::Result<Vec<Accessible>>; |
42 | |
43 | /// GetMatchesFrom method |
44 | fn get_matches_from( |
45 | &self, |
46 | current_object: &zbus::zvariant::ObjectPath<'_>, |
47 | rule: &MatchArgs<'_>, |
48 | sortby: SortOrder, |
49 | tree: TreeTraversalType, |
50 | count: i32, |
51 | traverse: bool, |
52 | ) -> zbus::Result<Vec<Accessible>>; |
53 | |
54 | /// GetMatchesTo method |
55 | fn get_matches_to( |
56 | &self, |
57 | current_object: &zbus::zvariant::ObjectPath<'_>, |
58 | rule: &MatchArgs<'_>, |
59 | sortby: SortOrder, |
60 | tree: TreeTraversalType, |
61 | limit_scope: bool, |
62 | count: i32, |
63 | traverse: bool, |
64 | ) -> zbus::Result<Vec<Accessible>>; |
65 | } |
66 | |