pub struct FlexBuilder<'a> { /* private fields */ }
Expand description
Fluent builder for flex groups
Implementations§
Source§impl<'a> FlexBuilder<'a>
impl<'a> FlexBuilder<'a>
Sourcepub fn main_size(self, main_size: MainAxisSize) -> Self
pub fn main_size(self, main_size: MainAxisSize) -> Self
Use a specific main size.
Sourcepub fn space_evenly(self) -> Self
pub fn space_evenly(self) -> Self
Use MainAxisAlignment::SpaceEvenly for main alignment.
Sourcepub fn main_align(self, main_align: MainAxisAlignment) -> Self
pub fn main_align(self, main_align: MainAxisAlignment) -> Self
Use a particular main axis alignnment.
Sourcepub fn cross_align(self, cross_align: CrossAxisAlignment) -> Self
pub fn cross_align(self, cross_align: CrossAxisAlignment) -> Self
Use a particular cross axis alignnment.
Sourcepub fn contents<F>(self, f: F) -> GroupIdwhere
F: FnMut(&mut SceneBuilder),
pub fn contents<F>(self, f: F) -> GroupIdwhere
F: FnMut(&mut SceneBuilder),
Create the stack group, with contents provided by
f
.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FlexBuilder<'a>
impl<'a> !RefUnwindSafe for FlexBuilder<'a>
impl<'a> !Send for FlexBuilder<'a>
impl<'a> !Sync for FlexBuilder<'a>
impl<'a> Unpin for FlexBuilder<'a>
impl<'a> !UnwindSafe for FlexBuilder<'a>
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