ItemsChangedEventArgs
struct · ferroui-controls · v0.5.0
struct ItemsChangedEventArgs<'a>
A change to an untyped items list.
Members
action
action: ferroui_base::collections::NotifyCollectionChangedAction
The action that caused the notification.
new_items
new_items: ItemsView<'a>
The items involved in the change (added, or the replacements).
old_items
old_items: ItemsView<'a>
The items affected by a replace, remove or move.
new_starting_index
new_starting_index: i32
The index at which the change occurred, or -1.
old_starting_index
old_starting_index: i32
The index at which a move, remove or replace occurred, or -1.
RESET
const RESET: ItemsChangedEventArgs<'static>
The arguments of a reset notification.
add
fn add(new_items: impl Into<ItemsView<'a>>, new_starting_index: i32) -> Self
The arguments of an add of new_items at new_starting_index.
remove
fn remove(old_items: impl Into<ItemsView<'a>>, old_starting_index: i32) -> Self
The arguments of a remove of old_items from old_starting_index.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClassDefaultsErasedDestructorIntoEitherCloneCopyDebugFrom<&NotifyCollectionChangedEventArgs<'a, Option<Rc<dyn AnyValue>>>>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.