FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IChildIndexProvider

    trait · ferroui-base · v0.5.0

    trait IChildIndexProvider
    

    Child's index and total count information provider used by list controls and panels. Used by the nth-child and nth-last-child selectors.

    View source

    Members

    get_child_index

    fn get_child_index(self: &Self, child: &StyledElement) -> i32
    

    Gets the index of child in its container, or -1 if it is not a child.

    Source

    try_get_total_count

    fn try_get_total_count(self: &Self) -> Option<i32>
    

    The total number of children, if it can be determined.

    Source

    child_index_changed

    fn child_index_changed(self: &Self, handler: Rc<dyn Fn(&ChildIndexChangedEventArgs) -> ()>) -> Rc<dyn IDisposable>
    

    Raised when the index of one or more children changes. Disposing the returned handle unsubscribes.

    Source

    Availability

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