FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ItemsChangedEventArgs

    struct · ferroui-controls · v0.5.0

    struct ItemsChangedEventArgs<'a>
    

    A change to an untyped items list.

    View source

    Members

    action

    action: ferroui_base::collections::NotifyCollectionChangedAction
    

    The action that caused the notification.

    Source

    new_items

    new_items: ItemsView<'a>
    

    The items involved in the change (added, or the replacements).

    Source

    old_items

    old_items: ItemsView<'a>
    

    The items affected by a replace, remove or move.

    Source

    new_starting_index

    new_starting_index: i32
    

    The index at which the change occurred, or -1.

    Source

    old_starting_index

    old_starting_index: i32
    

    The index at which a move, remove or replace occurred, or -1.

    Source

    RESET

    const RESET: ItemsChangedEventArgs<'static>
    

    The arguments of a reset notification.

    Source

    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.

    Source

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • From<&NotifyCollectionChangedEventArgs<'a, Option<Rc<dyn AnyValue>>>>

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.