pub struct SpacerLayout { /* private fields */ }Expand description
Layout implementation for a single spacer.
Spacers are greedy and will expand to fill all available space in the direction they are placed, respecting their minimum length.
Trait Implementations§
Source§impl Clone for SpacerLayout
impl Clone for SpacerLayout
Source§fn clone(&self) -> SpacerLayout
fn clone(&self) -> SpacerLayout
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpacerLayout
impl Debug for SpacerLayout
Source§impl From<Spacer> for SpacerLayout
impl From<Spacer> for SpacerLayout
Source§impl Layout for SpacerLayout
impl Layout for SpacerLayout
Source§fn size_that_fits(
&self,
_proposal: ProposalSize,
_children: &[&dyn SubView],
) -> Size
fn size_that_fits( &self, _proposal: ProposalSize, _children: &[&dyn SubView], ) -> Size
Calculate the size this layout wants given a proposal. Read more
Source§fn place(&self, _bounds: Rect, _children: &[&dyn SubView]) -> Vec<Rect>
fn place(&self, _bounds: Rect, _children: &[&dyn SubView]) -> Vec<Rect>
Place children within the given bounds. Read more
Source§fn stretch_axis(&self) -> StretchAxis
fn stretch_axis(&self) -> StretchAxis
Which axis this container stretches to fill available space. Read more
Auto Trait Implementations§
impl Freeze for SpacerLayout
impl RefUnwindSafe for SpacerLayout
impl Send for SpacerLayout
impl Sync for SpacerLayout
impl Unpin for SpacerLayout
impl UnwindSafe for SpacerLayout
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)