pub struct FlowRowScope { /* private fields */ }Expand description
A FlowRow and its builder.
Implementations§
Source§impl FlowRowScope
impl FlowRowScope
Sourcepub fn horizontal_spacing(self, dp: f32) -> Self
pub fn horizontal_spacing(self, dp: f32) -> Self
The gap between two children on the same line, in dp.
Sourcepub fn vertical_spacing(self, dp: f32) -> Self
pub fn vertical_spacing(self, dp: f32) -> Self
The gap between two lines, in dp.
Sourcepub fn horizontal_alignment(self, alignment: HorizontalAlignment) -> Self
pub fn horizontal_alignment(self, alignment: HorizontalAlignment) -> Self
Where the children of a line sit along it when they do not fill it. Start when
not set.
Sourcepub fn vertical_alignment(self, alignment: VerticalAlignment) -> Self
pub fn vertical_alignment(self, alignment: VerticalAlignment) -> Self
Where a child sits inside the height of its line. Top when not set.
Sourcepub fn max_items_in_each_row(self, count: u32) -> Self
pub fn max_items_in_each_row(self, count: u32) -> Self
The most children one line holds, even when more would fit. No limit when not set.
Source§impl FlowRowScope
impl FlowRowScope
Trait Implementations§
Source§impl Drop for FlowRowScope
impl Drop for FlowRowScope
Auto Trait Implementations§
impl Forget for FlowRowScope
impl Freeze for FlowRowScope
impl Move for FlowRowScope
impl RefUnwindSafe for FlowRowScope
impl Send for FlowRowScope
impl Sync for FlowRowScope
impl Unpin for FlowRowScope
impl UnsafeUnpin for FlowRowScope
impl UnwindSafe for FlowRowScope
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