pub struct HorizontalPagerBuilder { /* private fields */ }Expand description
Configuration handle returned by horizontal_pager.
Implementations§
Source§impl HorizontalPagerBuilder
impl HorizontalPagerBuilder
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 page_count(&self, value: usize) -> Self
pub fn page_count(&self, value: usize) -> Self
Configure page_count before this component executes.
Sourcepub fn page_count_optional(&self, value: Option<usize>) -> Self
pub fn page_count_optional(&self, value: Option<usize>) -> Self
Configure page_count before this component executes.
Sourcepub fn initial_page(&self, value: usize) -> Self
pub fn initial_page(&self, value: usize) -> Self
Configure initial_page before this component executes.
Sourcepub fn initial_page_optional(&self, value: Option<usize>) -> Self
pub fn initial_page_optional(&self, value: Option<usize>) -> Self
Configure initial_page before this component executes.
Sourcepub fn page_size(&self, value: PagerPageSize) -> Self
pub fn page_size(&self, value: PagerPageSize) -> Self
Configure page_size before this component executes.
Sourcepub fn page_size_optional(&self, value: Option<PagerPageSize>) -> Self
pub fn page_size_optional(&self, value: Option<PagerPageSize>) -> Self
Configure page_size before this component executes.
Sourcepub fn page_spacing(&self, value: Dp) -> Self
pub fn page_spacing(&self, value: Dp) -> Self
Configure page_spacing before this component executes.
Sourcepub fn page_spacing_optional(&self, value: Option<Dp>) -> Self
pub fn page_spacing_optional(&self, value: Option<Dp>) -> Self
Configure page_spacing 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 beyond_viewport_page_count(&self, value: usize) -> Self
pub fn beyond_viewport_page_count(&self, value: usize) -> Self
Configure beyond_viewport_page_count before this component executes.
Sourcepub fn beyond_viewport_page_count_optional(&self, value: Option<usize>) -> Self
pub fn beyond_viewport_page_count_optional(&self, value: Option<usize>) -> Self
Configure beyond_viewport_page_count 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 user_scroll_enabled(&self, value: bool) -> Self
pub fn user_scroll_enabled(&self, value: bool) -> Self
Configure user_scroll_enabled before this component executes.
Sourcepub fn user_scroll_enabled_optional(&self, value: Option<bool>) -> Self
pub fn user_scroll_enabled_optional(&self, value: Option<bool>) -> Self
Configure user_scroll_enabled before this component executes.
Sourcepub fn snap_threshold(&self, value: f32) -> Self
pub fn snap_threshold(&self, value: f32) -> Self
Configure snap_threshold before this component executes.
Sourcepub fn snap_threshold_optional(&self, value: Option<f32>) -> Self
pub fn snap_threshold_optional(&self, value: Option<f32>) -> Self
Configure snap_threshold 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 page_content<F>(&self, value: F) -> Self
pub fn page_content<F>(&self, value: F) -> Self
Configure page_content before this component executes.
Configure page_content before this component executes.
Sourcepub fn page_content_optional(&self, value: Option<CallbackWith<usize>>) -> Self
pub fn page_content_optional(&self, value: Option<CallbackWith<usize>>) -> Self
Configure page_content before this component executes.
Sourcepub fn controller(&self, value: State<PagerController>) -> Self
pub fn controller(&self, value: State<PagerController>) -> Self
Configure controller before this component executes.
Sourcepub fn controller_optional(&self, value: Option<State<PagerController>>) -> Self
pub fn controller_optional(&self, value: Option<State<PagerController>>) -> Self
Configure controller before this component executes.
Auto Trait Implementations§
impl Freeze for HorizontalPagerBuilder
impl RefUnwindSafe for HorizontalPagerBuilder
impl Send for HorizontalPagerBuilder
impl Sync for HorizontalPagerBuilder
impl Unpin for HorizontalPagerBuilder
impl UnsafeUnpin for HorizontalPagerBuilder
impl UnwindSafe for HorizontalPagerBuilder
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.