FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

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

    Returns a strong reference to this object.

    Source

    apply_selected_index

    fn apply_selected_index(self: &Self, index: i32)
    

    Applies the requested index change.

    Source

    selected_index_property

    fn selected_index_property() -> &'static DirectProperty<SelectingMultiPage, i32>
    

    Defines the SelectedIndex property.

    Source

    selected_page_property

    fn selected_page_property() -> &'static DirectProperty<SelectingMultiPage, Option<Ref<Page>>>
    

    Defines the SelectedPage property.

    Source

    selection_changed_event

    fn selection_changed_event() -> &'static RoutedEvent<PageSelectionChangedEventArgs>
    

    Defines the SelectionChanged routed event.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    selected_index

    fn selected_index(self: &Self) -> i32
    

    Gets or sets the zero-based index of the selected page.

    Source

    set_selected_index

    fn set_selected_index(self: &Self, value: i32)
    

    Source

    selected_page

    fn selected_page(self: &Self) -> Option<Ref<Page>>
    

    Gets the currently selected page, or None if no page is selected.

    Source

    selection_changed

    fn selection_changed(self: &Self, handler: impl Fn(&Interactive, &PageSelectionChangedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Raised when the selected page changes.

    Source

    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.

    Source

    store_selected_index

    fn store_selected_index(self: &Self, index: i32)
    

    Stores the selected index without routing through a child control.

    Source

    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.

    Source

    Trait implementations

    Availability

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