FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TreemapChartEngine

    struct · ferroui-livecharts · v0.5.0

    struct TreemapChartEngine
    

    View source

    Members

    layout

    fn layout(nodes: &[TreemapNode], rect: Rect, padding: f64) -> Vec<TreemapTile>
    

    The tiles of one series laid out in rect, in the order the source emits them: each level squarified in descending weight, a node followed by its descendants.

    Source

    measure

    fn measure(size: Size, series: &[TreemapSeries], options: &TreemapOptions) -> Result<Scene, ChartError>
    

    Source

    measure_with_labels

    fn measure_with_labels(size: Size, series: &[TreemapSeries], options: &TreemapOptions, measure_text: impl FnMut(&str, f64) -> Size) -> Result<Scene, ChartError>
    

    Native hosts supply their text metrics here, so that labels are culled with the typeface that draws them.

    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

    Availability

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