pub struct LazyList { /* private fields */ }Expand description
A lazy list and its builder.
Implementations§
Source§impl LazyList
impl LazyList
pub fn modifier(self, modifier: Modifier) -> Self
Sourcepub fn columns(self, columns: u32) -> Self
pub fn columns(self, columns: u32) -> Self
A grid’s fixed number of columns. Compose’s GridCells.Fixed.
Sourcepub fn min_column_width(self, dp: f32) -> Self
pub fn min_column_width(self, dp: f32) -> Self
The narrowest a grid column may be. Compose’s GridCells.Adaptive.
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.
Sourcepub fn content(self, build: impl FnOnce(&mut LazyListScope))
pub fn content(self, build: impl FnOnce(&mut LazyListScope))
Composes the list with the items build declares.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LazyList
impl !Send for LazyList
impl !Sync for LazyList
impl !UnwindSafe for LazyList
impl Forget for LazyList
impl Freeze for LazyList
impl Move for LazyList
impl Unpin for LazyList
impl UnsafeUnpin for LazyList
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