FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ColumnFlowLayout

    struct · ferroui-pretext-layout · v0.5.0

    struct ColumnFlowLayout
    

    Flow text through an ordered set of rectangular columns, avoiding obstacles.

    View source

    Members

    layout_into_columns

    fn layout_into_columns(prepared: &PreparedTextWithSegments, columns: &[RectObstacle], rectangles: &[RectObstacle], circles: &[CircleObstacle], line_height: f64, min_slot_width: f64) -> Result<Vec<PositionedLine>, LayoutError>
    

    Text that does not fit the supplied columns is left unmaterialized. Fully blocked rows advance vertically without consuming source text. Exactly one (the widest) available horizontal slot is used on each row.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither

    Availability

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