FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Container

    struct · ferroui-base · v0.5.0

    struct Container
    

    Provides container attached properties: a layoutable that is a container publishes its size to the container queries of its descendants.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this type.

    Source

    name_property

    fn name_property() -> &'static AttachedProperty<Option<String>>
    

    Defines the Name attached property.

    Source

    sizing_property

    fn sizing_property() -> &'static AttachedProperty<ContainerSizing>
    

    Defines the Sizing attached property.

    Source

    get_name

    fn get_name(layoutable: &Layoutable) -> Option<String>
    

    Gets the name of the container.

    Source

    set_name

    fn set_name(layoutable: &Layoutable, name: Option<String>)
    

    Sets the name of the container.

    Source

    get_sizing

    fn get_sizing(layoutable: &Layoutable) -> ContainerSizing
    

    Gets the container sizing behavior.

    Source

    set_sizing

    fn set_sizing(layoutable: &Layoutable, sizing: ContainerSizing)
    

    Sets the container sizing behavior.

    Source

    set_query_provider_size

    fn set_query_provider_size(layoutable: &Layoutable, width: f64, height: f64, sizing: ContainerSizing)
    

    Reports the size of a container to its query provider, if it has one. For layoutables that replace the core measure pass (the roots of windows), which reports the size otherwise.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither
    • StaticType

    Availability

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