FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    LinedFlowLayoutItemAspectRatios

    struct · ferroui-controls-repeater · v0.5.0

    struct LinedFlowLayoutItemAspectRatios
    

    Bounded, block-based ratio history. Recycling always prefers an empty block, then the block whose midpoint is furthest from the new item.

    View source

    Members

    new

    fn new() -> Self
    

    Source

    block_count

    fn block_count(self: &Self) -> usize
    

    Source

    is_empty

    fn is_empty(self: &Self) -> bool
    

    Source

    has_lower_weight

    fn has_lower_weight(self: &Self, first: i32, last: i32, weight: i32) -> bool
    

    Source

    average_aspect_ratio

    fn average_aspect_ratio(self: &Self, first: i32, last: i32, outside_weight: i32) -> f64
    

    Source

    get_at

    fn get_at(self: &Self, index: i32) -> ItemAspectRatio
    

    Source

    set_at

    fn set_at(self: &mut Self, index: i32, value: ItemAspectRatio)
    

    Source

    clear

    fn clear(self: &mut Self)
    

    Source

    resize

    fn resize(self: &mut Self, size: usize, reference_index: i32)
    

    Source

    Trait implementations

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

    Availability

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