FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InteropAutomationPeer

    struct · ferroui-controls · v0.5.0

    struct InteropAutomationPeer
    

    Represents the root of a native control automation tree hosted by a NativeControlHost.

    This peer should be special-cased in the platform backend, as it represents a native control and hence none of the standard automation peer methods are applicable.

    Internal in the reference: for the framework and the platform backends.

    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<InteropAutomationPeer>
    

    Returns a strong reference to this object.

    Source

    construct

    fn construct(native_control_handle: Rc<dyn IPlatformHandle>) -> Self
    

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

    Source

    new

    fn new(native_control_handle: Rc<dyn IPlatformHandle>) -> Ref<Self>
    

    Initializes a new peer of the native control with the handle native_control_handle.

    Source

    native_control_handle

    fn native_control_handle(self: &Self) -> Rc<dyn IPlatformHandle>
    

    Gets the handle of the native control.

    Source

    Trait implementations

    Availability

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