FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    EmbeddableControlRoot

    struct · ferroui-controls · v0.5.0

    struct EmbeddableControlRoot
    

    A top-level that hosts a control tree inside a surface provided by someone else: a native control of another toolkit, a single-view platform, an offscreen buffer.

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

    Returns a strong reference to this object.

    Source

    dispose

    fn dispose(self: &Self)
    

    Releases the platform implementation and tears the root down.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a root over an embeddable top-level of the windowing platform.

    Source

    enforce_client_size

    fn enforce_client_size(self: &Self) -> bool
    

    Whether the root is always measured with, and sized to, the client size of the platform implementation (protected upstream: for derived classes).

    Source

    set_enforce_client_size

    fn set_enforce_client_size(self: &Self, value: bool)
    

    Source

    prepare

    fn prepare(self: &Self)
    

    Initializes the root, applies its template and runs the initial layout pass.

    Source

    Trait implementations

    Availability

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