pub struct Spacer;Expand description
Spacer - a layout view that expands to fill available space
Trait Implementations§
Source§impl LayoutView for Spacer
impl LayoutView for Spacer
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 Spacer
impl RefUnwindSafe for Spacer
impl Send for Spacer
impl Sync for Spacer
impl Unpin for Spacer
impl UnsafeUnpin for Spacer
impl UnwindSafe for Spacer
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