pub struct ZStack {}Expand description
ZStack - lays out children on top of each other
Implementations§
Trait Implementations§
Source§impl LayoutView for ZStack
impl LayoutView for ZStack
Source§fn size_that_fits(
&self,
proposal: SizeProposal,
subviews: &[&dyn LayoutView],
cache: &mut LayoutCache,
) -> Size
fn size_that_fits( &self, proposal: SizeProposal, subviews: &[&dyn LayoutView], cache: &mut LayoutCache, ) -> Size
Propose a size for this view given the available space
Source§fn place_subviews(
&self,
bounds: Rect,
subviews: &mut [&mut dyn LayoutView],
cache: &mut LayoutCache,
)
fn place_subviews( &self, bounds: Rect, subviews: &mut [&mut dyn LayoutView], cache: &mut LayoutCache, )
Place subviews within the given bounds
Source§fn flex_weight(&self) -> f32
fn flex_weight(&self) -> f32
Returns the flex weight of this view (default is 0.0, which means fixed/intrinsic)
Source§fn debug_layout(&self, indent: usize) -> String
fn debug_layout(&self, indent: usize) -> String
Return a debug representation of this layout subtree.
The
indent parameter controls the indentation level for nested display.Auto Trait Implementations§
impl Freeze for ZStack
impl RefUnwindSafe for ZStack
impl Send for ZStack
impl Sync for ZStack
impl Unpin for ZStack
impl UnsafeUnpin for ZStack
impl UnwindSafe for ZStack
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