FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Carousel

    struct · ferroui-controls · v0.5.0

    struct Carousel
    

    An items control that displays its items as pages and can reveal adjacent pages using viewport_fraction.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<Carousel>
    

    Returns a strong reference to this object.

    Source

    page_transition_property

    fn page_transition_property() -> &'static StyledProperty<Option<Rc<dyn IPageTransition>>>
    

    Defines the PageTransition property.

    Source

    is_swipe_enabled_property

    fn is_swipe_enabled_property() -> &'static StyledProperty<bool>
    

    Defines the IsSwipeEnabled property.

    Source

    viewport_fraction_property

    fn viewport_fraction_property() -> &'static StyledProperty<f64>
    

    Defines the ViewportFraction property.

    Source

    is_swiping_property

    fn is_swiping_property() -> &'static DirectProperty<Carousel, bool>
    

    Defines the IsSwiping property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    page_transition

    fn page_transition(self: &Self) -> Option<Rc<dyn IPageTransition>>
    

    Gets or sets the transition to use when moving between pages.

    Source

    set_page_transition

    fn set_page_transition(self: &Self, value: Option<Rc<dyn IPageTransition>>)
    

    Source

    is_swipe_enabled

    fn is_swipe_enabled(self: &Self) -> bool
    

    Gets or sets whether swipe gestures are enabled for navigating between pages. When enabled, mouse pointer events are also accepted in addition to touch and pen.

    Source

    set_is_swipe_enabled

    fn set_is_swipe_enabled(self: &Self, value: bool)
    

    Source

    viewport_fraction

    fn viewport_fraction(self: &Self) -> f64
    

    Gets or sets the fraction of the viewport occupied by each page. A value of 1 shows a single full page; values below 1 reveal adjacent pages.

    Source

    set_viewport_fraction

    fn set_viewport_fraction(self: &Self, value: f64)
    

    Source

    is_swiping

    fn is_swiping(self: &Self) -> bool
    

    Gets a value indicating whether a swipe gesture is currently in progress.

    Source

    next

    fn next(self: &Self)
    

    Moves to the next item in the carousel.

    Source

    previous

    fn previous(self: &Self)
    

    Moves to the previous item in the carousel.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.