//! # `DBus` interface proxy for: `org.a11y.atspi.Component` //! //! This code was generated by `zbus-xmlgen` `2.0.1` from `DBus` introspection data. //! Source: `Component.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. //! use crate::common::{CoordType, Layer, ScrollType}; use atspi_common::object_ref::ObjectRefOwned; #[zbus::proxy(interface = "org.a11y.atspi.Component", assume_defaults = true)] pub trait Component { /// `Contains` method fn contains(&self, x: i32, y: i32, coord_type: CoordType) -> zbus::Result; /// `GetAccessibleAtPoint` method /// To get an accessible at a point inside a frame of a particular app, you must use `CoordType::Window` fn get_accessible_at_point( &self, x: i32, y: i32, coord_type: CoordType, ) -> zbus::Result; /// `GetAlpha` method fn get_alpha(&self) -> zbus::Result; /// `GetExtents` method fn get_extents(&self, coord_type: CoordType) -> zbus::Result<(i32, i32, i32, i32)>; /// `GetLayer` method fn get_layer(&self) -> zbus::Result; /// `GetMDIZOrder` method #[zbus(name = "GetMDIZOrder")] fn get_mdiz_order(&self) -> zbus::Result; /// `GetPosition` method /// To get the position of a frame of a particular app, you must use `CoordType::Screen` fn get_position(&self, coord_type: CoordType) -> zbus::Result<(i32, i32)>; /// `GetSize` method fn get_size(&self) -> zbus::Result<(i32, i32)>; /// `GrabFocus` method fn grab_focus(&self) -> zbus::Result; /// `ScrollTo` method fn scroll_to(&self, type_: ScrollType) -> zbus::Result; /// `ScrollToPoint` method fn scroll_to_point(&self, coord_type: CoordType, x: i32, y: i32) -> zbus::Result; /// `SetExtents` method fn set_extents( &self, x: i32, y: i32, width: i32, height: i32, coord_type: CoordType, ) -> zbus::Result; /// `SetPosition` method fn set_position(&self, x: i32, y: i32, coord_type: CoordType) -> zbus::Result; /// `SetSize` method fn set_size(&self, width: i32, height: i32) -> zbus::Result; }