FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    VirtualizingPanelImpl

    trait · ferroui-controls · v0.5.0

    trait VirtualizingPanelImpl: PanelImpl + $crate::Upcast<VirtualizingPanel>
    

    The overridable members introduced by the class.

    View source

    Members

    scroll_into_view

    fn scroll_into_view(this: &Self, index: i32) -> Option<Ref<Control>>
    

    Scrolls the specified item into view.

    Returns the element with the specified index, or None if the element could not be brought into view.

    Source

    container_from_index

    fn container_from_index(this: &Self, index: i32) -> Option<Ref<Control>>
    

    Returns the container for the item at the specified index.

    Returns the container for the item at the specified index within the item collection, if the item is realized; otherwise, None.

    Note for implementors: if the item at the specified index is an item-is-self-container item that has previously been realized, then the item should be returned even if it currently falls outside the realized viewport.

    Source

    index_from_container

    fn index_from_container(this: &Self, container: &Ref<Control>) -> i32
    

    Returns the index to the item that has the specified realized container.

    Returns the index to the item that corresponds to the specified realized container, or -1 if container is not found.

    Source

    get_realized_containers

    fn get_realized_containers(this: &Self) -> Option<Vec<Ref<Control>>>
    

    Gets the currently realized containers.

    Source

    get_control_in_direction

    fn get_control_in_direction(this: &Self, direction: NavigationDirection, from: Option<&Ref<InputElement>>, wrap: bool) -> Option<Ref<InputElement>>
    

    Gets the next control in the specified direction.

    from is the control from which movement begins and wrap tells whether to wrap around when the first or last item is reached.

    Source

    on_items_control_changed

    fn on_items_control_changed(this: &Self, old_value: Option<&Ref<ItemsControl>>)
    

    Called when the ItemsControl that owns the panel changes.

    Source

    on_items_changed

    fn on_items_changed(this: &Self, items: &Rc<ItemsSourceView>, e: &ItemsChangedEventArgs<'_>)
    

    Called when the items collection of the owner ItemsControl changes.

    This method is called a collection changed event is raised by the items, or when the items property of the items control is set to a new collection, in which case the action will be a reset.

    Source

    Trait implementations

    Availability

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