Struct i_slint_core::model::ModelNotify
source · pub struct ModelNotify { /* private fields */ }Expand description
Implementations§
source§impl ModelNotify
impl ModelNotify
sourcepub fn row_changed(&self, row: usize)
pub fn row_changed(&self, row: usize)
Notify the peers that a specific row was changed
sourcepub fn row_removed(&self, index: usize, count: usize)
pub fn row_removed(&self, index: usize, count: usize)
Notify the peers that rows were removed
Trait Implementations§
source§impl Default for ModelNotify
impl Default for ModelNotify
source§fn default() -> ModelNotify
fn default() -> ModelNotify
Returns the “default value” for a type. Read more
source§impl ModelTracker for ModelNotify
impl ModelTracker for ModelNotify
source§fn attach_peer(&self, peer: ModelPeer<'_>)
fn attach_peer(&self, peer: ModelPeer<'_>)
Attach one peer. The peer will be notified when the model changes
source§fn track_row_count_changes(&self)
fn track_row_count_changes(&self)
Register the model as a dependency to the current binding being evaluated, so
that it will be notified when the model changes its size.
source§fn track_row_data_changes(&self, row: usize)
fn track_row_data_changes(&self, row: usize)
Register a row as a dependency to the current binding being evaluated, so that
it will be notified when the value of that row changes.