pub struct CarouselBuilder { /* private fields */ }Expand description
Configuration handle returned by carousel.
Implementations§
Source§impl CarouselBuilder
impl CarouselBuilder
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 height_optional(&self, value: Option<Dp>) -> Self
pub fn height_optional(&self, value: Option<Dp>) -> Self
Configure height before this component executes.
Sourcepub fn variant(&self, value: CarouselVariant) -> Self
pub fn variant(&self, value: CarouselVariant) -> Self
Configure variant before this component executes.
Sourcepub fn variant_optional(&self, value: Option<CarouselVariant>) -> Self
pub fn variant_optional(&self, value: Option<CarouselVariant>) -> Self
Configure variant before this component executes.
Sourcepub fn preferred_item_width(&self, value: Dp) -> Self
pub fn preferred_item_width(&self, value: Dp) -> Self
Configure preferred_item_width before this component executes.
Sourcepub fn preferred_item_width_optional(&self, value: Option<Dp>) -> Self
pub fn preferred_item_width_optional(&self, value: Option<Dp>) -> Self
Configure preferred_item_width before this component executes.
Sourcepub fn item_aspect_ratios(&self, value: impl Into<Arc<[f32]>>) -> Self
pub fn item_aspect_ratios(&self, value: impl Into<Arc<[f32]>>) -> Self
Configure item_aspect_ratios before this component executes.
Sourcepub fn item_aspect_ratios_optional(&self, value: Option<Arc<[f32]>>) -> Self
pub fn item_aspect_ratios_optional(&self, value: Option<Arc<[f32]>>) -> Self
Configure item_aspect_ratios 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 min_small_item_width(&self, value: Dp) -> Self
pub fn min_small_item_width(&self, value: Dp) -> Self
Configure min_small_item_width before this component executes.
Sourcepub fn min_small_item_width_optional(&self, value: Option<Dp>) -> Self
pub fn min_small_item_width_optional(&self, value: Option<Dp>) -> Self
Configure min_small_item_width before this component executes.
Sourcepub fn max_small_item_width(&self, value: Dp) -> Self
pub fn max_small_item_width(&self, value: Dp) -> Self
Configure max_small_item_width before this component executes.
Sourcepub fn max_small_item_width_optional(&self, value: Option<Dp>) -> Self
pub fn max_small_item_width_optional(&self, value: Option<Dp>) -> Self
Configure max_small_item_width before this component executes.
Sourcepub fn content_padding_start(&self, value: Dp) -> Self
pub fn content_padding_start(&self, value: Dp) -> Self
Configure content_padding_start before this component executes.
Sourcepub fn content_padding_start_optional(&self, value: Option<Dp>) -> Self
pub fn content_padding_start_optional(&self, value: Option<Dp>) -> Self
Configure content_padding_start before this component executes.
Sourcepub fn content_padding_end(&self, value: Dp) -> Self
pub fn content_padding_end(&self, value: Dp) -> Self
Configure content_padding_end before this component executes.
Sourcepub fn content_padding_end_optional(&self, value: Option<Dp>) -> Self
pub fn content_padding_end_optional(&self, value: Option<Dp>) -> Self
Configure content_padding_end before this component executes.
Sourcepub fn shape_optional(&self, value: Option<Shape>) -> Self
pub fn shape_optional(&self, value: Option<Shape>) -> Self
Configure shape before this component executes.
Sourcepub fn controller(&self, value: State<CarouselController>) -> Self
pub fn controller(&self, value: State<CarouselController>) -> Self
Configure controller before this component executes.
Sourcepub fn controller_optional(
&self,
value: Option<State<CarouselController>>,
) -> Self
pub fn controller_optional( &self, value: Option<State<CarouselController>>, ) -> Self
Configure controller before this component executes.
Sourcepub fn focus_requester(&self, value: FocusRequester) -> Self
pub fn focus_requester(&self, value: FocusRequester) -> Self
Configure focus_requester before this component executes.
Sourcepub fn focus_requester_optional(&self, value: Option<FocusRequester>) -> Self
pub fn focus_requester_optional(&self, value: Option<FocusRequester>) -> Self
Configure focus_requester 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 reverse_layout(&self, value: bool) -> Self
pub fn reverse_layout(&self, value: bool) -> Self
Configure reverse_layout before this component executes.
Sourcepub fn reverse_layout_optional(&self, value: Option<bool>) -> Self
pub fn reverse_layout_optional(&self, value: Option<bool>) -> Self
Configure reverse_layout before this component executes.
Sourcepub fn fling_behavior(&self, value: CarouselFlingBehavior) -> Self
pub fn fling_behavior(&self, value: CarouselFlingBehavior) -> Self
Configure fling_behavior before this component executes.
Sourcepub fn fling_behavior_optional(
&self,
value: Option<CarouselFlingBehavior>,
) -> Self
pub fn fling_behavior_optional( &self, value: Option<CarouselFlingBehavior>, ) -> Self
Configure fling_behavior before this component executes.
Sourcepub fn accessibility_label(&self, value: impl Into<String>) -> Self
pub fn accessibility_label(&self, value: impl Into<String>) -> Self
Configure accessibility_label before this component executes.
Sourcepub fn accessibility_label_optional(&self, value: Option<String>) -> Self
pub fn accessibility_label_optional(&self, value: Option<String>) -> Self
Configure accessibility_label before this component executes.
Sourcepub fn content<F, Output>(&self, value: F) -> Self
pub fn content<F, Output>(&self, value: F) -> Self
Configure content before this component executes.
Configure content before this component executes.
Sourcepub fn content_optional(
&self,
value: Option<RenderSlotWith<CarouselItemInfo>>,
) -> Self
pub fn content_optional( &self, value: Option<RenderSlotWith<CarouselItemInfo>>, ) -> Self
Configure content before this component executes.
Auto Trait Implementations§
impl Freeze for CarouselBuilder
impl RefUnwindSafe for CarouselBuilder
impl Send for CarouselBuilder
impl Sync for CarouselBuilder
impl Unpin for CarouselBuilder
impl UnsafeUnpin for CarouselBuilder
impl UnwindSafe for CarouselBuilder
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.