FlowLayout
struct · ferroui-controls-repeater · v0.5.0
struct FlowLayout
Members
TYPEto_refget_measure_sizeget_provisional_arrange_sizeshould_break_lineget_anchor_for_realization_rectget_anchor_for_target_elementget_extenton_element_measuredon_line_arrangedorientation_propertyline_spacing_propertymin_item_spacing_propertyline_alignment_propertyconstructneworientationset_orientationline_spacingset_line_spacingmin_item_spacingset_min_item_spacingline_alignmentset_line_alignmentstate
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<FlowLayout>
Returns a strong reference to this object.
get_measure_size
fn get_measure_size(self: &Self, index: i32, available_size: Size) -> Size
get_provisional_arrange_size
fn get_provisional_arrange_size(self: &Self, index: i32, measure_size: Size, desired_size: Size) -> Size
should_break_line
fn should_break_line(self: &Self, index: i32, remaining_space: f64) -> bool
get_anchor_for_realization_rect
fn get_anchor_for_realization_rect(self: &Self, available_size: Size, context: &Ref<VirtualizingLayoutContext>) -> FlowLayoutAnchorInfo
get_anchor_for_target_element
fn get_anchor_for_target_element(self: &Self, index: i32, available_size: Size, context: &Ref<VirtualizingLayoutContext>) -> FlowLayoutAnchorInfo
get_extent
fn get_extent(self: &Self, available_size: Size, context: &Ref<VirtualizingLayoutContext>, first: FlowLayoutRealizedElement, last: FlowLayoutRealizedElement) -> Rect
on_element_measured
fn on_element_measured(self: &Self, element: &Ref<Control>, index: i32, available_size: Size, measure_size: Size, desired_size: Size, provisional_arrange_size: Size, context: &Ref<VirtualizingLayoutContext>)
on_line_arranged
fn on_line_arranged(self: &Self, start_index: i32, count_in_line: i32, line_size: f64, context: &Ref<VirtualizingLayoutContext>)
orientation_property
fn orientation_property() -> &'static StyledProperty<Orientation>
line_spacing_property
fn line_spacing_property() -> &'static StyledProperty<f64>
min_item_spacing_property
fn min_item_spacing_property() -> &'static StyledProperty<f64>
line_alignment_property
fn line_alignment_property() -> &'static StyledProperty<FlowLayoutLineAlignment>
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
orientation
fn orientation(self: &Self) -> Orientation
set_orientation
fn set_orientation(self: &Self, value: Orientation)
line_spacing
fn line_spacing(self: &Self) -> f64
set_line_spacing
fn set_line_spacing(self: &Self, value: f64)
min_item_spacing
fn min_item_spacing(self: &Self) -> f64
set_min_item_spacing
fn set_min_item_spacing(self: &Self, value: f64)
line_alignment
fn line_alignment(self: &Self) -> FlowLayoutLineAlignment
set_line_alignment
fn set_line_alignment(self: &Self, value: FlowLayoutLineAlignment)
state
fn state(context: &Ref<VirtualizingLayoutContext>) -> Option<Ref<FlowLayoutState>>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeFlowLayoutImplExtLayoutImplExtVirtualizingLayoutImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<FlowLayout>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleLayoutImplFerroObjectImplVirtualizingLayoutImplFlowLayoutImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.