FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SelectionNodeBaseImpl

    trait · ferroui-controls · v0.5.0

    trait SelectionNodeBaseImpl<T: PropertyValue>
    

    The overridable members of SelectionNodeBase.

    The selection classes are plain shared structs, not part of the class model, so their virtual members are modelled explicitly: the base keeps the state and the base implementations (the inherent methods of the same names on SelectionNodeBase), and holds a weak reference to the object deriving from it, through which every virtual call is made. See the module documentation of selection.

    View source

    Members

    on_source_collection_change_started

    fn on_source_collection_change_started(self: &Self)
    

    Called when the source collection starts changing.

    Source

    on_source_collection_changed

    fn on_source_collection_changed(self: &Self, e: &ItemsChangedEventArgs<'_>)
    

    Called when the source collection changes.

    Source

    on_source_collection_change_finished

    fn on_source_collection_change_finished(self: &Self)
    

    Called when the source collection has finished changing, and all collection changed handlers have run.

    Source

    on_indexes_changed

    fn on_indexes_changed(self: &Self, shift_index: i32, shift_delta: i32)
    

    Called by the handling of a collection change, detailing the indexes changed by the collection changing.

    Source

    on_source_reset

    fn on_source_reset(self: &Self)
    

    Called by the handling of a collection change, on collection reset.

    Source

    on_selection_removed

    fn on_selection_removed(self: &Self, index: i32, count: i32, deselected_items: Vec<Option<T>>)
    

    Called by the handling of a collection change, detailing the items removed by a collection change.

    Source

    on_items_added

    fn on_items_added(self: &Self, index: i32, items: ItemsView<'_>) -> CollectionChangeState<T>
    

    Called by the handling of a collection change when items are added to the source collection.

    Source

    on_items_removed

    fn on_items_removed(self: &Self, index: i32, items: ItemsView<'_>) -> CollectionChangeState<T>
    

    Called by the handling of a collection change when items are removed from the source collection.

    Source

    is_valid_collection_change

    fn is_valid_collection_change(self: &Self, e: &ItemsChangedEventArgs<'_>) -> bool
    

    Whether a collection change can be applied to the selection.

    Source

    Trait implementations

    Availability

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