pub struct LazyRowBuilder { /* private fields */ }Expand description
Configuration handle returned by lazy_row.
Implementations§
Source§impl LazyRowBuilder
impl LazyRowBuilder
Sourcepub fn modifier(&self, value: Modifier) -> Self
pub fn modifier(&self, value: Modifier) -> Self
Configure modifier before this component executes.
Sourcepub fn modifier_optional(&self, value: Option<Modifier>) -> Self
pub fn modifier_optional(&self, value: Option<Modifier>) -> Self
Configure modifier before this component executes.
Sourcepub fn cross_axis_alignment(&self, value: CrossAxisAlignment) -> Self
pub fn cross_axis_alignment(&self, value: CrossAxisAlignment) -> Self
Configure cross_axis_alignment before this component executes.
Sourcepub fn cross_axis_alignment_optional(
&self,
value: Option<CrossAxisAlignment>,
) -> Self
pub fn cross_axis_alignment_optional( &self, value: Option<CrossAxisAlignment>, ) -> Self
Configure cross_axis_alignment before this component executes.
Sourcepub fn item_spacing(&self, value: Dp) -> Self
pub fn item_spacing(&self, value: Dp) -> Self
Configure item_spacing before this component executes.
Sourcepub fn item_spacing_optional(&self, value: Option<Dp>) -> Self
pub fn item_spacing_optional(&self, value: Option<Dp>) -> Self
Configure item_spacing before this component executes.
Sourcepub fn overscan(&self, value: usize) -> Self
pub fn overscan(&self, value: usize) -> Self
Configure overscan before this component executes.
Sourcepub fn overscan_optional(&self, value: Option<usize>) -> Self
pub fn overscan_optional(&self, value: Option<usize>) -> Self
Configure overscan before this component executes.
Sourcepub fn estimated_item_size(&self, value: Dp) -> Self
pub fn estimated_item_size(&self, value: Dp) -> Self
Configure estimated_item_size before this component executes.
Sourcepub fn estimated_item_size_optional(&self, value: Option<Dp>) -> Self
pub fn estimated_item_size_optional(&self, value: Option<Dp>) -> Self
Configure estimated_item_size before this component executes.
Sourcepub fn content_padding(&self, value: Dp) -> Self
pub fn content_padding(&self, value: Dp) -> Self
Configure content_padding before this component executes.
Sourcepub fn content_padding_optional(&self, value: Option<Dp>) -> Self
pub fn content_padding_optional(&self, value: Option<Dp>) -> Self
Configure content_padding before this component executes.
Sourcepub fn max_viewport_main(&self, value: Px) -> Self
pub fn max_viewport_main(&self, value: Px) -> Self
Configure max_viewport_main before this component executes.
Sourcepub fn max_viewport_main_optional(&self, value: Option<Px>) -> Self
pub fn max_viewport_main_optional(&self, value: Option<Px>) -> Self
Configure max_viewport_main before this component executes.
Sourcepub fn scroll_smoothing(&self, value: f32) -> Self
pub fn scroll_smoothing(&self, value: f32) -> Self
Configure scroll_smoothing before this component executes.
Sourcepub fn scroll_smoothing_optional(&self, value: Option<f32>) -> Self
pub fn scroll_smoothing_optional(&self, value: Option<f32>) -> Self
Configure scroll_smoothing before this component executes.
Sourcepub fn scrollbar_behavior(&self, value: ScrollBarBehavior) -> Self
pub fn scrollbar_behavior(&self, value: ScrollBarBehavior) -> Self
Configure scrollbar_behavior before this component executes.
Sourcepub fn scrollbar_behavior_optional(
&self,
value: Option<ScrollBarBehavior>,
) -> Self
pub fn scrollbar_behavior_optional( &self, value: Option<ScrollBarBehavior>, ) -> Self
Configure scrollbar_behavior before this component executes.
Sourcepub fn controller(&self, value: State<LazyListController>) -> Self
pub fn controller(&self, value: State<LazyListController>) -> Self
Configure controller before this component executes.
Sourcepub fn controller_optional(
&self,
value: Option<State<LazyListController>>,
) -> Self
pub fn controller_optional( &self, value: Option<State<LazyListController>>, ) -> Self
Configure controller before this component executes.
Sourcepub fn viewport_controller(&self, value: State<ScrollableController>) -> Self
pub fn viewport_controller(&self, value: State<ScrollableController>) -> Self
Configure viewport_controller before this component executes.
Sourcepub fn viewport_controller_optional(
&self,
value: Option<State<ScrollableController>>,
) -> Self
pub fn viewport_controller_optional( &self, value: Option<State<ScrollableController>>, ) -> Self
Configure viewport_controller before this component executes.
Sourcepub fn keep_composed_items(&self, value: bool) -> Self
pub fn keep_composed_items(&self, value: bool) -> Self
Configure keep_composed_items before this component executes.
Sourcepub fn keep_composed_items_optional(&self, value: Option<bool>) -> Self
pub fn keep_composed_items_optional(&self, value: Option<bool>) -> Self
Configure keep_composed_items before this component executes.
Source§impl LazyRowBuilder
impl LazyRowBuilder
Append indexed items with stable keys and a shared render slot.
Sourcepub fn sticky_header<F, Output>(&self, builder: F) -> Self
pub fn sticky_header<F, Output>(&self, builder: F) -> Self
Append a sticky header item.
Sourcepub fn sticky_header_with_key<K, F, Output>(&self, key: K, builder: F) -> Self
pub fn sticky_header_with_key<K, F, Output>(&self, key: K, builder: F) -> Self
Append a sticky header item with a stable key.
Append a sticky header with a stable key and a shared render slot.
Source§impl LazyRowBuilder
impl LazyRowBuilder
Sourcepub fn item_with_key<K, F, Output>(&self, key: K, builder: F) -> Self
pub fn item_with_key<K, F, Output>(&self, key: K, builder: F) -> Self
Append a single lazy item with a stable key.
Sourcepub fn items<F, Output>(&self, count: usize, builder: F) -> Self
pub fn items<F, Output>(&self, count: usize, builder: F) -> Self
Append a batch of indexed lazy items.
Sourcepub fn items_with_key<K, KF, F, Output>(
&self,
count: usize,
key_provider: KF,
builder: F,
) -> Self
pub fn items_with_key<K, KF, F, Output>( &self, count: usize, key_provider: KF, builder: F, ) -> Self
Append indexed lazy items with stable keys.
Sourcepub fn items_from_iter<I, T, F, Output>(&self, iter: I, builder: F) -> Self
pub fn items_from_iter<I, T, F, Output>(&self, iter: I, builder: F) -> Self
Append lazy items from an iterator, exposing index and element.
Sourcepub fn items_from_iter_with_key<I, T, K, KF, F, Output>(
&self,
iter: I,
key_provider: KF,
builder: F,
) -> Self
pub fn items_from_iter_with_key<I, T, K, KF, F, Output>( &self, iter: I, key_provider: KF, builder: F, ) -> Self
Append lazy items from an iterator with stable keys.
Sourcepub fn items_from_iter_values<I, T, F, Output>(
&self,
iter: I,
builder: F,
) -> Self
pub fn items_from_iter_values<I, T, F, Output>( &self, iter: I, builder: F, ) -> Self
Append lazy items from an iterator when only the element is used.
Auto Trait Implementations§
impl Freeze for LazyRowBuilder
impl RefUnwindSafe for LazyRowBuilder
impl Send for LazyRowBuilder
impl Sync for LazyRowBuilder
impl Unpin for LazyRowBuilder
impl UnsafeUnpin for LazyRowBuilder
impl UnwindSafe for LazyRowBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.