pub struct Carousel {Show 21 fields
pub axis: Property<CarouselAxis>,
pub page_size: Property<Size>,
pub show_dots: Property<bool>,
pub scroll_pos_x: Property<f64>,
pub scroll_pos_y: Property<f64>,
pub _pages: Property<Vec<CarouselCell>>,
pub _page_width_px: Property<f64>,
pub _page_height_px: Property<f64>,
pub _scroll_width: Property<Size>,
pub _scroll_height: Property<Size>,
pub _snap_positions_x: Property<Vec<Size>>,
pub _snap_positions_y: Property<Vec<Size>>,
pub _page_count: Property<usize>,
pub _active_page: Property<usize>,
pub _show_dots: Property<bool>,
pub _dots: Property<Vec<CarouselDot>>,
pub _dots_width: Property<f64>,
pub _dots_pill_width: Property<f64>,
pub _dots_pill_height: Property<f64>,
pub _dots_pos_x: Property<Size>,
pub _dots_pos_y: Property<Size>,
}Expand description
A paged scrolling container with native scroll snapping and optional page dots.
Each slotted child becomes one page. The carousel lays pages out along axis,
sizes each page with page_size, and binds its scroll position through an
internal Scroller.
Fields§
§axis: Property<CarouselAxis>Axis along which pages are laid out and snapped.
page_size: Property<Size>Size of each page along the scroll axis (defaults to 100%).
show_dots: Property<bool>Whether to show page-position dots when there is more than one page.
scroll_pos_x: Property<f64>Horizontal scroll position, in pixels.
scroll_pos_y: Property<f64>Vertical scroll position, in pixels.
_pages: Property<Vec<CarouselCell>>§_page_width_px: Property<f64>§_page_height_px: Property<f64>§_scroll_width: Property<Size>§_scroll_height: Property<Size>§_snap_positions_x: Property<Vec<Size>>§_snap_positions_y: Property<Vec<Size>>§_page_count: Property<usize>§_active_page: Property<usize>§_show_dots: Property<bool>§_dots: Property<Vec<CarouselDot>>§_dots_width: Property<f64>§_dots_pill_width: Property<f64>§_dots_pill_height: Property<f64>§_dots_pos_x: Property<Size>§_dots_pos_y: Property<Size>Implementations§
Trait Implementations§
Source§impl CoercionRules for Carousel
impl CoercionRules for Carousel
Source§impl<'de> Deserialize<'de> for Carousel
impl<'de> Deserialize<'de> for Carousel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl HelperFunctions for Carousel
impl HelperFunctions for Carousel
Source§fn register_all_functions()
fn register_all_functions()
Registers all helper functions for this type.
impl ImplToFromPaxAny for Carousel
Source§impl Interpolatable for Carousel
impl Interpolatable for Carousel
Source§fn interpolate(&self, _other: &Self, _t: f64) -> Self
fn interpolate(&self, _other: &Self, _t: f64) -> Self
Source§impl ToPaxValue for Carousel
impl ToPaxValue for Carousel
Source§fn to_pax_value(self) -> PaxValue
fn to_pax_value(self) -> PaxValue
Converts this value into a
PaxValue.Auto Trait Implementations§
impl Freeze for Carousel
impl RefUnwindSafe for Carousel
impl Send for Carousel
impl Sync for Carousel
impl Unpin for Carousel
impl UnsafeUnpin for Carousel
impl UnwindSafe for Carousel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> PropertyValue for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.
Source§impl<T> ToFromPaxAny for Twhere
T: ImplToFromPaxAny,
impl<T> ToFromPaxAny for Twhere
T: ImplToFromPaxAny,
Source§fn to_pax_any(self) -> PaxAny
fn to_pax_any(self) -> PaxAny
Converts this value into a
PaxAny.Source§fn from_pax_any(pax_any: PaxAny) -> Result<T, String>
fn from_pax_any(pax_any: PaxAny) -> Result<T, String>
Attempts to recover this concrete type from a
PaxAny.