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.
Members
on_source_collection_change_startedon_source_collection_changedon_source_collection_change_finishedon_indexes_changedon_source_reseton_selection_removedon_items_addedon_items_removedis_valid_collection_change
on_source_collection_change_started
fn on_source_collection_change_started(self: &Self)
Called when the source collection starts changing.
on_source_collection_changed
fn on_source_collection_changed(self: &Self, e: &ItemsChangedEventArgs<'_>)
Called when the source collection changes.
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.
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.
on_source_reset
fn on_source_reset(self: &Self)
Called by the handling of a collection change, on collection reset.
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.
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.
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.
is_valid_collection_change
fn is_valid_collection_change(self: &Self, e: &ItemsChangedEventArgs<'_>) -> bool
Whether a collection change can be applied to the selection.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.