SelectingMultiPage
struct · ferroui-controls · v0.5.0
struct SelectingMultiPage
Base class for multi-page controls with index-based selection.
This class is abstract: its abstract member panics unless overridden.
Members
TYPEto_refapply_selected_indexselected_index_propertyselected_page_propertyselection_changed_eventconstructselected_indexset_selected_indexselected_pageselection_changedcommit_selectionstore_selected_indexresolve_page_at_index
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<SelectingMultiPage>
Returns a strong reference to this object.
apply_selected_index
fn apply_selected_index(self: &Self, index: i32)
Applies the requested index change.
selected_index_property
fn selected_index_property() -> &'static DirectProperty<SelectingMultiPage, i32>
Defines the SelectedIndex property.
selected_page_property
fn selected_page_property() -> &'static DirectProperty<SelectingMultiPage, Option<Ref<Page>>>
Defines the SelectedPage property.
selection_changed_event
fn selection_changed_event() -> &'static RoutedEvent<PageSelectionChangedEventArgs>
Defines the SelectionChanged routed event.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
selected_index
fn selected_index(self: &Self) -> i32
Gets or sets the zero-based index of the selected page.
set_selected_index
fn set_selected_index(self: &Self, value: i32)
selected_page
fn selected_page(self: &Self) -> Option<Ref<Page>>
Gets the currently selected page, or None if no page is selected.
selection_changed
fn selection_changed(self: &Self, handler: impl Fn(&Interactive, &PageSelectionChangedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Raised when the selected page changes.
commit_selection
fn commit_selection(self: &Self, new_index: i32, new_page: Option<Ref<Page>>, navigation_type: NavigationType)
Commits a selection change and fires lifecycle events on the outgoing and incoming pages.
Raises SelectionChanged, then NavigatedFrom on the outgoing page
and NavigatedTo on the incoming page. If the incoming and outgoing
pages are the same object no events are fired. Subclasses should
call this method rather than modifying selection state directly.
store_selected_index
fn store_selected_index(self: &Self, index: i32)
Stores the selected index without routing through a child control.
resolve_page_at_index
fn resolve_page_at_index(self: &Self, index: i32) -> Option<Ref<Page>>
Returns the page at index from the Pages collection, or None
if the index is out of range.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtControlImplExtPageImplExtMultiPageImplExtSelectingMultiPageImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<SelectingMultiPage>StaticTypeObjectTypeSubclassable<T>FerroObjectImplStyledElementImplVisualImplLayoutableImplInteractiveImplInputElementImplControlImplTemplatedControlImplPageImplMultiPageImplSelectingMultiPageImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.