Module i_slint_core::model
source · Expand description
Model and Repeater
Re-exports§
pub use crate::items::StandardListViewItem;
pub use crate::items::TableColumn;
Structs§
- Provides a filtered subset of rows by another
Model
. - Provides rows that are generated by a map function based on the rows of another Model
- This is a structure that contains a T which implements
ModelChangeListener
and can provide aModelPeer
for it when pinned. - An iterator over the elements of a model. This struct is created by the
Model::iter()
trait function. - Represent a handle to a view that listens to changes to a model.
- ModelRc is a type wrapper for a reference counted implementation of the
Model
trait. - This struct is put in a component when using the
for
syntax It helps instantiating the ItemTreeT
- Provides a reversed view of another
Model
. - A model backed by a
SharedVector<T>
- Provides a sorted view of rows by another
Model
. - A
Model
backed by aVec<T>
, using interior mutability.
Traits§
- A Model is providing Data for the repeated elements with
for
in the.slint
language - Extension trait with extra methods implemented on types that implement
Model
- This trait defines the interface that users of a model can use to track changes to a model. It is supplied via
Model::model_tracker
and implementation usually return a reference to its field ofModelNotify
. - ItemTree that can be instantiated by a repeater.