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.
Members
TYPEto_refitems_panel_propertypage_transition_propertyis_gesture_enabled_propertyis_keyboard_navigation_enabled_propertyconstructnewitems_panelset_items_panelpage_transitionset_page_transitionis_gesture_enabledset_is_gesture_enabledis_keyboard_navigation_enabledset_is_keyboard_navigation_enabled
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<CarouselPage>
Returns a strong reference to this object.
items_panel_property
fn items_panel_property() -> &'static StyledProperty<Rc<dyn ITemplateOf<Option<Ref<Panel>>>>>
Defines the ItemsPanel property.
page_transition_property
fn page_transition_property() -> &'static StyledProperty<Option<Rc<dyn IPageTransition>>>
Defines the PageTransition property.
is_gesture_enabled_property
fn is_gesture_enabled_property() -> &'static StyledProperty<bool>
Defines the IsGestureEnabled property.
is_keyboard_navigation_enabled_property
fn is_keyboard_navigation_enabled_property() -> &'static StyledProperty<bool>
Defines the IsKeyboardNavigationEnabled property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Initializes a new instance of the CarouselPage class.
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.
set_items_panel
fn set_items_panel(self: &Self, value: Rc<dyn ITemplateOf<Option<Ref<Panel>>>>)
page_transition
fn page_transition(self: &Self) -> Option<Rc<dyn IPageTransition>>
Gets or sets the animated page transition used when the selected page changes.
set_page_transition
fn set_page_transition(self: &Self, value: Option<Rc<dyn IPageTransition>>)
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.
set_is_gesture_enabled
fn set_is_gesture_enabled(self: &Self, value: bool)
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.
set_is_keyboard_navigation_enabled
fn set_is_keyboard_navigation_enabled(self: &Self, value: bool)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtControlImplExtPageImplExtMultiPageImplExtSelectingMultiPageImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<CarouselPage>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleLayoutableImplInteractiveImplPageImplFerroObjectImplStyledElementImplVisualImplInputElementImplTemplatedControlImplMultiPageImplSelectingMultiPageImplControlImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.