InternalSelectionModel
struct · ferroui-controls · v0.5.0
struct InternalSelectionModel
The selection model of the selecting items controls: an untyped selection model that keeps a writable list of the selected items in sync with the selection, both ways.
It derives from the untyped SelectionModel: it owns the model,
overrides its virtual members through SelectionModelImpl and
dereferences to it, so every member of the model is available on it. It
implements ISelectionModel itself, so an Rc<InternalSelectionModel>
is used wherever an Rc<dyn ISelectionModel> is expected.
Members
new
fn new() -> Rc<Self>
model
fn model(self: &Self) -> &Rc<SelectionModel<BoxedValue>>
The untyped selection model this model derives from.
writable_selected_items
fn writable_selected_items(self: &Self) -> WritableSelectedItems
Gets the writable list of the selected items.
set_writable_selected_items
fn set_writable_selected_items(self: &Self, value: Option<WritableSelectedItems>)
Sets the writable list of the selected items; None assigns a new,
empty list.
update
fn update(self: &Self, source: Option<ItemsSource>, selected_items: Option<Option<WritableSelectedItems>>)
Assigns the source and, if given, the writable list of the selected items in one step.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyClassDefaultsErasedDestructorIntoEitherDerefSelectionModelImpl<Rc<dyn AnyValue>>INotifyPropertyChangedISelectionModel
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.