TabbedPage
struct · ferroui-controls · v0.5.0
struct TabbedPage
A page that displays its child pages through a tab strip.
Members
TYPEto_reftab_placement_propertyis_keyboard_navigation_enabled_propertyis_gesture_enabled_propertypage_transition_propertyindicator_template_propertyis_tab_enabled_propertyconstructnewget_is_tab_enabledset_is_tab_enabledtab_placementset_tab_placementis_keyboard_navigation_enabledset_is_keyboard_navigation_enabledis_gesture_enabledset_is_gesture_enabledpage_transitionset_page_transitionindicator_templateset_indicator_template
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TabbedPage>
Returns a strong reference to this object.
tab_placement_property
fn tab_placement_property() -> &'static StyledProperty<TabPlacement>
Defines the TabPlacement property.
is_keyboard_navigation_enabled_property
fn is_keyboard_navigation_enabled_property() -> &'static StyledProperty<bool>
Defines the IsKeyboardNavigationEnabled property.
is_gesture_enabled_property
fn is_gesture_enabled_property() -> &'static StyledProperty<bool>
Defines the IsGestureEnabled property.
page_transition_property
fn page_transition_property() -> &'static StyledProperty<Option<Rc<dyn IPageTransition>>>
Defines the PageTransition property.
indicator_template_property
fn indicator_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
Defines the IndicatorTemplate property.
is_tab_enabled_property
fn is_tab_enabled_property() -> &'static AttachedProperty<bool>
Defines the IsTabEnabled attached 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 TabbedPage class.
get_is_tab_enabled
fn get_is_tab_enabled(page: &Page) -> bool
Gets the value of the IsTabEnabled attached property for a page:
true if the tab is enabled.
set_is_tab_enabled
fn set_is_tab_enabled(page: &Page, value: bool)
Sets the value of the IsTabEnabled attached property for a page.
Disabled tabs are skipped during keyboard and swipe navigation.
tab_placement
fn tab_placement(self: &Self) -> TabPlacement
Gets or sets the tab bar placement.
set_tab_placement
fn set_tab_placement(self: &Self, value: TabPlacement)
is_keyboard_navigation_enabled
fn is_keyboard_navigation_enabled(self: &Self) -> bool
Gets or sets whether keyboard navigation can switch tabs.
set_is_keyboard_navigation_enabled
fn set_is_keyboard_navigation_enabled(self: &Self, value: bool)
is_gesture_enabled
fn is_gesture_enabled(self: &Self) -> bool
Gets or sets whether swipe gestures can be used to navigate between tabs.
Defaults to false because tab strips do not respond to swipe gestures on most platforms (iOS, desktop). Enable this only when the host platform and the content inside each tab page do not conflict with horizontal swipe input.
set_is_gesture_enabled
fn set_is_gesture_enabled(self: &Self, value: bool)
page_transition
fn page_transition(self: &Self) -> Option<Rc<dyn IPageTransition>>
Gets or sets the page transition to use when switching tabs.
set_page_transition
fn set_page_transition(self: &Self, value: Option<Rc<dyn IPageTransition>>)
indicator_template
fn indicator_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
Gets or sets the data template used to render the selection indicator on each tab.
set_indicator_template
fn set_indicator_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtControlImplExtPageImplExtMultiPageImplExtSelectingMultiPageImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<TabbedPage>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleLayoutableImplInteractiveImplFerroObjectImplStyledElementImplVisualImplInputElementImplTemplatedControlImplPageImplMultiPageImplSelectingMultiPageImplControlImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.