FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ContainerIndexChangedEventArgs

    struct · ferroui-controls · v0.5.0

    struct ContainerIndexChangedEventArgs
    

    Provides data for the ItemsControl::container_index_changed event.

    The args are immutable: copies compare equal when they describe the same container (and indexes).

    View source

    Members

    new

    fn new(container: Ref<Control>, old_index: i32, new_index: i32) -> Self
    

    Initializes a new instance of the ContainerIndexChangedEventArgs class.

    Source

    container

    fn container(self: &Self) -> &Ref<Control>
    

    Get the container for which the index changed.

    Source

    new_index

    fn new_index(self: &Self) -> i32
    

    Gets the index of the container after the change.

    Source

    old_index

    fn old_index(self: &Self) -> i32
    

    Gets the index of the container before the change.

    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
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • StructuralPartialEq
    • PartialEq

    Availability

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