Struct sixtyfps::ModelNotify [−]
pub struct ModelNotify { /* fields omitted */ }
Expand description
Implementations
impl ModelNotify
impl ModelNotify
pub fn row_changed(&self, row: usize)
pub fn row_changed(&self, row: usize)
Notify the peers that a specific row was changed
pub 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
impl Default for ModelNotify
impl Default for ModelNotify
pub fn default() -> ModelNotify
pub fn default() -> ModelNotify
Returns the “default value” for a type. Read more
impl ModelTracker for ModelNotify
impl ModelTracker for ModelNotify
pub fn attach_peer(&self, peer: ModelPeer)
pub fn attach_peer(&self, peer: ModelPeer)
Attach one peer. The peer will be notified when the model changes
pub fn track_row_count_changes(&self)
pub 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. Read more