pub struct Container;Expand description
Provides container attached properties: a layoutable that is a container publishes its size to the container queries of its descendants.
Implementations§
Source§impl Container
impl Container
Sourcepub fn name_property() -> &'static AttachedProperty<Option<String>>
pub fn name_property() -> &'static AttachedProperty<Option<String>>
Defines the Name attached property.
Sourcepub fn sizing_property() -> &'static AttachedProperty<ContainerSizing>
pub fn sizing_property() -> &'static AttachedProperty<ContainerSizing>
Defines the Sizing attached property.
Source§impl Container
impl Container
Sourcepub fn get_name(layoutable: &Layoutable) -> Option<String>
pub fn get_name(layoutable: &Layoutable) -> Option<String>
Gets the name of the container.
Sourcepub fn set_name(layoutable: &Layoutable, name: Option<String>)
pub fn set_name(layoutable: &Layoutable, name: Option<String>)
Sets the name of the container.
Sourcepub fn get_sizing(layoutable: &Layoutable) -> ContainerSizing
pub fn get_sizing(layoutable: &Layoutable) -> ContainerSizing
Gets the container sizing behavior.
Sourcepub fn set_sizing(layoutable: &Layoutable, sizing: ContainerSizing)
pub fn set_sizing(layoutable: &Layoutable, sizing: ContainerSizing)
Sets the container sizing behavior.
Sourcepub fn set_query_provider_size(
layoutable: &Layoutable,
width: f64,
height: f64,
sizing: ContainerSizing,
)
pub 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§
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnsafeUnpin for Container
impl UnwindSafe for Container
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more