EmbeddableControlRootAutomationPeer
struct · ferroui-controls · v0.5.0
struct EmbeddableControlRootAutomationPeer
An automation peer which represents an EmbeddableControlRoot.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<EmbeddableControlRootAutomationPeer>
Returns a strong reference to this object.
construct
fn construct(owner: &EmbeddableControlRoot) -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new(owner: &EmbeddableControlRoot) -> Ref<Self>
Initializes a new peer of owner.
owner
fn owner(self: &Self) -> Ref<EmbeddableControlRoot>
Gets the owning root.
focus_changed
fn focus_changed(self: &Self, handler: impl Fn() -> () + 'static) -> Subscription
Raised when the focus changes (the root provider contracts).
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 contracts).
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 contracts).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAutomationPeerImplExtControlAutomationPeerImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<EmbeddableControlRootAutomationPeer>StaticTypeObjectTypeSubclassable<T>FerroObjectImplControlAutomationPeerImplAutomationPeerImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.