FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<LinedFlowLayout>
    

    Returns a strong reference to this object.

    Source

    items_justification_property

    fn items_justification_property() -> &'static StyledProperty<LinedFlowLayoutItemsJustification>
    

    Source

    items_stretch_property

    fn items_stretch_property() -> &'static StyledProperty<LinedFlowLayoutItemsStretch>
    

    Source

    min_item_spacing_property

    fn min_item_spacing_property() -> &'static StyledProperty<f64>
    

    Source

    line_spacing_property

    fn line_spacing_property() -> &'static StyledProperty<f64>
    

    Source

    line_height_property

    fn line_height_property() -> &'static StyledProperty<f64>
    

    Source

    actual_line_height_property

    fn actual_line_height_property() -> &'static DirectProperty<LinedFlowLayout, f64>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    items_justification

    fn items_justification(self: &Self) -> LinedFlowLayoutItemsJustification
    

    Source

    set_items_justification

    fn set_items_justification(self: &Self, value: LinedFlowLayoutItemsJustification)
    

    Source

    items_stretch

    fn items_stretch(self: &Self) -> LinedFlowLayoutItemsStretch
    

    Source

    set_items_stretch

    fn set_items_stretch(self: &Self, value: LinedFlowLayoutItemsStretch)
    

    Source

    min_item_spacing

    fn min_item_spacing(self: &Self) -> f64
    

    Source

    set_min_item_spacing

    fn set_min_item_spacing(self: &Self, value: f64)
    

    Source

    line_spacing

    fn line_spacing(self: &Self) -> f64
    

    Source

    set_line_spacing

    fn set_line_spacing(self: &Self, value: f64)
    

    Source

    line_height

    fn line_height(self: &Self) -> f64
    

    Source

    set_line_height

    fn set_line_height(self: &Self, value: f64)
    

    Source

    actual_line_height

    fn actual_line_height(self: &Self) -> f64
    

    Source

    requested_range_start_index

    fn requested_range_start_index(self: &Self) -> i32
    

    Source

    requested_range_length

    fn requested_range_length(self: &Self) -> i32
    

    Source

    items_info_requested

    fn items_info_requested(self: &Self, handler: impl Fn(&LinedFlowLayoutItemsInfoRequestedEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
    

    Source

    items_unlocked

    fn items_unlocked(self: &Self, handler: impl Fn() -> () + 'static) -> Rc<dyn IDisposable>
    

    Source

    invalidate_items_info

    fn invalidate_items_info(self: &Self)
    

    Source

    lock_item_to_line

    fn lock_item_to_line(self: &Self, index: i32) -> Result<i32, LinedFlowLayoutError>
    

    Source

    try_initialize_for_context

    fn try_initialize_for_context(self: &Self, context: &Ref<VirtualizingLayoutContext>) -> Result<(), LinedFlowLayoutError>
    

    Source

    realized_range

    fn realized_range(self: &Self) -> (i32, i32)
    

    Source

    frozen_range

    fn frozen_range(self: &Self) -> (i32, i32)
    

    Source

    average_items_per_line

    fn average_items_per_line(self: &Self) -> (f64, f64)
    

    Source

    uses_fast_path_layout

    fn uses_fast_path_layout(self: &Self) -> bool
    

    Source

    snap_to_power

    fn snap_to_power(value: f64, power: f64) -> f64
    

    Source

    snap_average_items_per_line

    fn snap_average_items_per_line(old: f64, new: f64) -> (f64, f64)
    

    Source

    Trait implementations

    Availability

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