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.
Members
element_managernewinitialize_for_contextuninitialize_for_contextlast_extentget_element_if_realizedon_items_source_changedmeasurearrangemeasure_element
element_manager
element_manager: super::ElementManager
new
fn new() -> Self
initialize_for_context
fn initialize_for_context(self: &Self, context: &Ref<VirtualizingLayoutContext>)
uninitialize_for_context
fn uninitialize_for_context(self: &Self, context: &Ref<VirtualizingLayoutContext>)
last_extent
fn last_extent(self: &Self) -> Rect
get_element_if_realized
fn get_element_if_realized(self: &Self, index: i32) -> Option<Ref<Control>>
on_items_source_changed
fn on_items_source_changed(self: &Self, args: &ItemsChangedEventArgs<'_>)
measure
fn measure(self: &Self, available: Size, context: &Ref<VirtualizingLayoutContext>, options: FlowLayoutMeasureOptions, callbacks: &dyn IFlowLayoutAlgorithmDelegates) -> Size
arrange
fn arrange(self: &Self, final_size: Size, is_wrapping: bool, alignment: FlowLayoutLineAlignment) -> Size
measure_element
fn measure_element(self: &Self, element: &Ref<Control>, index: i32, available: Size, context: &Ref<VirtualizingLayoutContext>, callbacks: &dyn IFlowLayoutAlgorithmDelegates) -> Size
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.