FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    WindowBaseAutomationPeer

    struct · ferroui-controls · v0.5.0

    struct WindowBaseAutomationPeer
    

    An automation peer which represents a WindowBase: the root of an automation tree.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<WindowBaseAutomationPeer>
    

    Returns a strong reference to this object.

    Source

    construct

    fn construct(owner: &WindowBase) -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new(owner: &WindowBase) -> Ref<Self>
    

    Initializes a new peer of owner.

    Source

    owner

    fn owner(self: &Self) -> Ref<WindowBase>
    

    Gets the owning window.

    Source

    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.

    Source

    get_focus

    fn get_focus(self: &Self) -> Option<Ref<AutomationPeer>>
    

    Gets the peer of the currently focused element (the root provider contract).

    Source

    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).

    Source

    start_tracking_focus

    fn start_tracking_focus(self: &Self)
    

    Starts following the focused element of the keyboard device.

    Source

    stop_tracking_focus

    fn stop_tracking_focus(self: &Self)
    

    Stops following the focused element of the keyboard device.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.