FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IPlatformHandle

    trait · ferroui-controls · v0.5.0

    trait IPlatformHandle
    

    Represents a platform-specific handle.

    View source

    Members

    handle

    fn handle(self: &Self) -> isize
    

    Gets the handle (a native pointer or identifier).

    Source

    handle_descriptor

    fn handle_descriptor(self: &Self) -> Option<&str>
    

    Gets an optional string that describes what handle represents.

    Source

    as_any

    fn as_any(self: &Self) -> &dyn Any
    

    Lets backends recover the concrete handle type.

    Source

    equals

    fn equals(self: &Self, other: &dyn IPlatformHandle) -> bool
    

    Whether this handle is equal to other.

    The default is identity: a handle is only equal to itself. Value-like handles (see PlatformHandle) compare their contents.

    Source

    as_native_control_host_destroyable_control_handle

    fn as_native_control_host_destroyable_control_handle(self: &Self) -> Option<&dyn super::INativeControlHostDestroyableControlHandle>
    

    The handle as the handle of a native control that can be destroyed, if it is one (C# handle as INativeControlHostDestroyableControlHandle). An implementation of that contract returns itself.

    Source

    Trait implementations

    Availability

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