FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ChildIndexChangedEventArgs

    struct · ferroui-base · v0.5.0

    struct ChildIndexChangedEventArgs
    

    Event args for the child index changed notification of a child index provider.

    View source

    Members

    new

    fn new(child: Ref<StyledElement>, index: i32) -> Self
    

    Creates the arguments for a change of the index of a single child.

    Source

    child_indexes_reset

    fn child_indexes_reset() -> Self
    

    The arguments for a reset of all child indexes.

    Source

    total_count_changed

    fn total_count_changed() -> Self
    

    The arguments for a change of the total number of children.

    Source

    action

    fn action(self: &Self) -> ChildIndexChangedAction
    

    The type of change that occurred.

    Source

    child

    fn child(self: &Self) -> Option<&Ref<StyledElement>>
    

    The logical child whose index was changed, or None if all children should be re-evaluated.

    Source

    index

    fn index(self: &Self) -> i32
    

    The new index of the child, or -1 if all children should be re-evaluated.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone

    Availability

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