FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ElementManager

    struct · ferroui-controls-repeater · v0.5.0

    struct ElementManager
    

    A contiguous realized range with lazy sentinels for collection insertions. Per-element bounds stay independent of the final line alignment.

    View source

    Members

    new

    fn new() -> Self
    

    Source

    set_context

    fn set_context(self: &Self, context: &Ref<VirtualizingLayoutContext>)
    

    Source

    on_begin_measure

    fn on_begin_measure(self: &Self, orientation: ScrollOrientation)
    

    Source

    first_realized_data_index

    fn first_realized_data_index(self: &Self) -> i32
    

    Source

    realized_element_count

    fn realized_element_count(self: &Self) -> i32
    

    Source

    data_index_from_range_index

    fn data_index_from_range_index(self: &Self, index: i32) -> i32
    

    Source

    range_index_from_data_index

    fn range_index_from_data_index(self: &Self, index: i32) -> i32
    

    Source

    is_index_valid_in_data

    fn is_index_valid_in_data(self: &Self, index: i32) -> bool
    

    Source

    is_data_index_realized

    fn is_data_index_realized(self: &Self, index: i32) -> bool
    

    Source

    get_at

    fn get_at(self: &Self, range_index: i32) -> Ref<Control>
    

    Source

    get_realized_element

    fn get_realized_element(self: &Self, index: i32) -> Ref<Control>
    

    Source

    get_element_if_realized

    fn get_element_if_realized(self: &Self, index: i32) -> Option<Ref<Control>>
    

    Source

    add

    fn add(self: &Self, element: Ref<Control>, index: i32)
    

    Source

    insert

    fn insert(self: &Self, range_index: i32, data_index: i32, element: Option<Ref<Control>>)
    

    Source

    ensure_element_realized

    fn ensure_element_realized(self: &Self, forward: bool, index: i32)
    

    Source

    clear_realized_range

    fn clear_realized_range(self: &Self)
    

    Source

    clear_range

    fn clear_range(self: &Self, start: i32, count: i32)
    

    Source

    discard_elements_outside_window

    fn discard_elements_outside_window(self: &Self, forward: bool, start_index: i32)
    

    Source

    layout_bounds_for_data_index

    fn layout_bounds_for_data_index(self: &Self, index: i32) -> Rect
    

    Source

    set_layout_bounds_for_data_index

    fn set_layout_bounds_for_data_index(self: &Self, index: i32, bounds: Rect)
    

    Source

    layout_bounds_for_range_index

    fn layout_bounds_for_range_index(self: &Self, index: i32) -> Rect
    

    Source

    set_layout_bounds_for_range_index

    fn set_layout_bounds_for_range_index(self: &Self, index: i32, bounds: Rect)
    

    Source

    is_layout_bounds_set

    fn is_layout_bounds_set(self: &Self, index: i32) -> bool
    

    Source

    is_window_connected

    fn is_window_connected(self: &Self, window: Rect, orientation: ScrollOrientation, scroll_same_as_flow: bool) -> bool
    

    Source

    data_source_changed

    fn data_source_changed(self: &Self, args: &ItemsChangedEventArgs<'_>)
    

    Source

    Trait implementations

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

    Availability

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