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.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this type.
name_property
fn name_property() -> &'static AttachedProperty<Option<String>>
Defines the Name attached property.
sizing_property
fn sizing_property() -> &'static AttachedProperty<ContainerSizing>
Defines the Sizing attached property.
get_name
fn get_name(layoutable: &Layoutable) -> Option<String>
Gets the name of the container.
set_name
fn set_name(layoutable: &Layoutable, name: Option<String>)
Sets the name of the container.
get_sizing
fn get_sizing(layoutable: &Layoutable) -> ContainerSizing
Gets the container sizing behavior.
set_sizing
fn set_sizing(layoutable: &Layoutable, sizing: ContainerSizing)
Sets the container sizing behavior.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherStaticType
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.