pub struct VStackLayout {
pub alignment: HorizontalAlignment,
pub spacing: f32,
}Expand description
Layout engine shared by the public VStack view.
Fields§
§alignment: HorizontalAlignmentThe horizontal alignment of children within the stack.
spacing: f32The spacing between children in the stack.
Trait Implementations§
Source§impl Clone for VStackLayout
impl Clone for VStackLayout
Source§fn clone(&self) -> VStackLayout
fn clone(&self) -> VStackLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VStackLayout
impl Debug for VStackLayout
Source§impl Default for VStackLayout
impl Default for VStackLayout
Source§fn default() -> VStackLayout
fn default() -> VStackLayout
Returns the “default value” for a type. Read more
Source§impl Layout for VStackLayout
impl Layout for VStackLayout
Source§fn stretch_axis(&self) -> StretchAxis
fn stretch_axis(&self) -> StretchAxis
VStack stretches horizontally to fill available width (cross-axis).
It uses intrinsic height based on children (main-axis).
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
Auto Trait Implementations§
impl Freeze for VStackLayout
impl RefUnwindSafe for VStackLayout
impl Send for VStackLayout
impl Sync for VStackLayout
impl Unpin for VStackLayout
impl UnwindSafe for VStackLayout
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