FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CarouselPage

    struct · ferroui-controls · v0.5.0

    struct CarouselPage
    

    A page that displays its child pages in a horizontally scrollable carousel, with optional animated page transitions.

    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<CarouselPage>
    

    Returns a strong reference to this object.

    Source

    items_panel_property

    fn items_panel_property() -> &'static StyledProperty<Rc<dyn ITemplateOf<Option<Ref<Panel>>>>>
    

    Defines the ItemsPanel property.

    Source

    page_transition_property

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

    Defines the PageTransition property.

    Source

    is_gesture_enabled_property

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

    Defines the IsGestureEnabled property.

    Source

    is_keyboard_navigation_enabled_property

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

    Defines the IsKeyboardNavigationEnabled property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Initializes a new instance of the CarouselPage class.

    Source

    items_panel

    fn items_panel(self: &Self) -> Rc<dyn ITemplateOf<Option<Ref<Panel>>>>
    

    Gets or sets the items panel template used to arrange page items.

    Source

    set_items_panel

    fn set_items_panel(self: &Self, value: Rc<dyn ITemplateOf<Option<Ref<Panel>>>>)
    

    Source

    page_transition

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

    Gets or sets the animated page transition used when the selected page changes.

    Source

    set_page_transition

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

    Source

    is_gesture_enabled

    fn is_gesture_enabled(self: &Self) -> bool
    

    Gets or sets whether swipe and scroll gestures can be used to navigate between pages.

    Source

    set_is_gesture_enabled

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

    Source

    is_keyboard_navigation_enabled

    fn is_keyboard_navigation_enabled(self: &Self) -> bool
    

    Gets or sets whether keyboard shortcuts (arrow keys, Home/End) can be used to navigate between pages.

    Source

    set_is_keyboard_navigation_enabled

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

    Source

    Trait implementations

    Availability

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