insightdock::charts::CartesianChart::compute_plot_rect

Compute plot rectangle inside the image buffer.

Synopsis

Declared in <insightdock/cartesian_chart.h>
Rect
compute_plot_rect(
    float width,
    float height,
    Font const& font) const;

Return Value

Axis-aligned rectangle (x,y = top-left, w,h = size).

Parameters

Name Description
font TrueType font rasterizer (stb_truetype backend).

Created with MrDocs