LinedFlowLayout
struct · ferroui-controls-repeater · v0.5.0
struct LinedFlowLayout
A horizontally flowing layout with a fixed line height, proportional item widths, bounded aspect-ratio history, and stable visible lines.
Unlike Stack, Flow and UniformGrid layouts this layout is unshareable. Its state belongs to the layout, as in the WinUI class.
Members
TYPEto_refitems_justification_propertyitems_stretch_propertymin_item_spacing_propertyline_spacing_propertyline_height_propertyactual_line_height_propertyconstructnewitems_justificationset_items_justificationitems_stretchset_items_stretchmin_item_spacingset_min_item_spacingline_spacingset_line_spacingline_heightset_line_heightactual_line_heightrequested_range_start_indexrequested_range_lengthitems_info_requesteditems_unlockedinvalidate_items_infolock_item_to_linetry_initialize_for_contextrealized_rangefrozen_rangeaverage_items_per_lineuses_fast_path_layoutsnap_to_powersnap_average_items_per_line
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<LinedFlowLayout>
Returns a strong reference to this object.
items_justification_property
fn items_justification_property() -> &'static StyledProperty<LinedFlowLayoutItemsJustification>
items_stretch_property
fn items_stretch_property() -> &'static StyledProperty<LinedFlowLayoutItemsStretch>
min_item_spacing_property
fn min_item_spacing_property() -> &'static StyledProperty<f64>
line_spacing_property
fn line_spacing_property() -> &'static StyledProperty<f64>
line_height_property
fn line_height_property() -> &'static StyledProperty<f64>
actual_line_height_property
fn actual_line_height_property() -> &'static DirectProperty<LinedFlowLayout, f64>
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
items_justification
fn items_justification(self: &Self) -> LinedFlowLayoutItemsJustification
set_items_justification
fn set_items_justification(self: &Self, value: LinedFlowLayoutItemsJustification)
items_stretch
fn items_stretch(self: &Self) -> LinedFlowLayoutItemsStretch
set_items_stretch
fn set_items_stretch(self: &Self, value: LinedFlowLayoutItemsStretch)
min_item_spacing
fn min_item_spacing(self: &Self) -> f64
set_min_item_spacing
fn set_min_item_spacing(self: &Self, value: f64)
line_spacing
fn line_spacing(self: &Self) -> f64
set_line_spacing
fn set_line_spacing(self: &Self, value: f64)
line_height
fn line_height(self: &Self) -> f64
set_line_height
fn set_line_height(self: &Self, value: f64)
actual_line_height
fn actual_line_height(self: &Self) -> f64
requested_range_start_index
fn requested_range_start_index(self: &Self) -> i32
requested_range_length
fn requested_range_length(self: &Self) -> i32
items_info_requested
fn items_info_requested(self: &Self, handler: impl Fn(&LinedFlowLayoutItemsInfoRequestedEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
items_unlocked
fn items_unlocked(self: &Self, handler: impl Fn() -> () + 'static) -> Rc<dyn IDisposable>
invalidate_items_info
fn invalidate_items_info(self: &Self)
lock_item_to_line
fn lock_item_to_line(self: &Self, index: i32) -> Result<i32, LinedFlowLayoutError>
try_initialize_for_context
fn try_initialize_for_context(self: &Self, context: &Ref<VirtualizingLayoutContext>) -> Result<(), LinedFlowLayoutError>
realized_range
fn realized_range(self: &Self) -> (i32, i32)
frozen_range
fn frozen_range(self: &Self) -> (i32, i32)
average_items_per_line
fn average_items_per_line(self: &Self) -> (f64, f64)
uses_fast_path_layout
fn uses_fast_path_layout(self: &Self) -> bool
snap_to_power
fn snap_to_power(value: f64, power: f64) -> f64
snap_average_items_per_line
fn snap_average_items_per_line(old: f64, new: f64) -> (f64, f64)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeLayoutImplExtVirtualizingLayoutImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<LinedFlowLayout>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplLayoutImplVirtualizingLayoutImplDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.