FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FlowLayoutAlgorithm

    struct · ferroui-controls-repeater · v0.5.0

    struct FlowLayoutAlgorithm
    

    The bidirectional realization and line-arrangement engine shared by the three WinUI flow-based layouts. Callbacks are borrowed for each operation instead of stored as an unowned C++ pointer.

    View source

    Members

    element_manager

    element_manager: super::ElementManager
    

    Source

    new

    fn new() -> Self
    

    Source

    initialize_for_context

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

    Source

    uninitialize_for_context

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

    Source

    last_extent

    fn last_extent(self: &Self) -> Rect
    

    Source

    get_element_if_realized

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

    Source

    on_items_source_changed

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

    Source

    measure

    fn measure(self: &Self, available: Size, context: &Ref<VirtualizingLayoutContext>, options: FlowLayoutMeasureOptions, callbacks: &dyn IFlowLayoutAlgorithmDelegates) -> Size
    

    Source

    arrange

    fn arrange(self: &Self, final_size: Size, is_wrapping: bool, alignment: FlowLayoutLineAlignment) -> Size
    

    Source

    measure_element

    fn measure_element(self: &Self, element: &Ref<Control>, index: i32, available: Size, context: &Ref<VirtualizingLayoutContext>, callbacks: &dyn IFlowLayoutAlgorithmDelegates) -> Size
    

    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.