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
Source§impl FlowRowScope
impl FlowRowScope
Source§impl FlowRowScope
impl FlowRowScope
Sourcepub fn on_motion_finished(
self,
handler: impl FnMut(MotionFinished) + 'static,
) -> Self
pub fn on_motion_finished( self, handler: impl FnMut(MotionFinished) + 'static, ) -> Self
Runs once when this node’s size motion comes to rest, with the size it settled
at in dp. The node needs Modifier::motion for its size to move; without it
nothing is reported. A run interrupted by a newer size is not reported, only
the one that settles, and under reduced motion it arrives in the frame the
size changes in.
Trait Implementations§
Source§impl Drop for FlowRowScope
impl Drop for FlowRowScope
Auto Trait Implementations§
impl !RefUnwindSafe for FlowRowScope
impl !Send for FlowRowScope
impl !Sync for FlowRowScope
impl !UnwindSafe for FlowRowScope
impl Forget for FlowRowScope
impl Freeze for FlowRowScope
impl Move for FlowRowScope
impl Unpin for FlowRowScope
impl UnsafeUnpin 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