WindowBaseAutomationPeer
struct · ferroui-controls · v0.5.0
struct WindowBaseAutomationPeer
An automation peer which represents a WindowBase: the root of an
automation tree.
Members
TYPEto_refconstructnewownerfocus_changedget_focusget_peer_from_pointstart_tracking_focusstop_tracking_focus
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<WindowBaseAutomationPeer>
Returns a strong reference to this object.
construct
fn construct(owner: &WindowBase) -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new(owner: &WindowBase) -> Ref<Self>
Initializes a new peer of owner.
owner
fn owner(self: &Self) -> Ref<WindowBase>
Gets the owning window.
focus_changed
fn focus_changed(self: &Self, handler: impl Fn() -> () + 'static) -> Subscription
Raised when the focus changes (the root provider contract).
Dropping the returned guard removes the handler; Subscription::detach keeps it for the
life of the peer.
get_focus
fn get_focus(self: &Self) -> Option<Ref<AutomationPeer>>
Gets the peer of the currently focused element (the root provider contract).
get_peer_from_point
fn get_peer_from_point(self: &Self, p: Point) -> Option<Ref<AutomationPeer>>
Gets the peer of the element at the specified point, expressed in top-level coordinates (the root provider contract).
start_tracking_focus
fn start_tracking_focus(self: &Self)
Starts following the focused element of the keyboard device.
stop_tracking_focus
fn stop_tracking_focus(self: &Self)
Stops following the focused element of the keyboard device.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAutomationPeerImplExtControlAutomationPeerImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<WindowBaseAutomationPeer>StaticTypeObjectTypeSubclassable<T>FerroObjectImplControlAutomationPeerImplAutomationPeerImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.