Pixel-space drawing surface shared by all built-in charts.
<insightdock/draw_target.h>
class DrawTarget;
| Name |
|---|
Point |
| Name | Description |
|---|---|
~DrawTarget [destructor] [virtual] | Destructor |
clear [virtual] | Fill the whole surface with color. |
draw_dashed_line [virtual] | Dashed segment; an empty dash draws a solid line. |
draw_dashed_polyline [virtual] | Dashed polyline with the dash phase carried across vertices. |
draw_line [virtual] | |
draw_polygon_outline [virtual] | |
draw_polyline [virtual] | |
draw_text [virtual] | Draw UTF-8 text using font's size, anchored per align / baseline. |
draw_text_rotated_ccw [virtual] | Text rotated 90° counter-clockwise (reads bottom-to-top), centered on (cx, cy). |
draw_text_rotated_cw [virtual] | Text rotated 90° clockwise (reads top-to-bottom), centered on (cx, cy). |
fill_circle [virtual] | |
fill_polygon [virtual] | Fill a polygon (area charts rely on concave polygons being filled correctly). |
fill_rect [virtual] | |
fill_rounded_rect [virtual] | |
fill_sector [virtual] | Fill a clockwise circular sector; angles are radians from the positive x-axis. |
height [virtual] | Surface height in chart pixels. |
width [virtual] | Surface width in chart pixels. |
| Name | Description |
|---|---|
detail::draw_marker | Draws a single point marker of the given shape, centered at (x, y). |
detail::draw_text_lines | Draws possibly multi-line text, aligning each line independently. |
detail::fill_bar | Fills one bar rectangle, optionally rounded and/or bordered. |
| Name | Description |
|---|---|
RasterTarget
| DrawTarget that paints into an ImageBuffer (the original raster path). |
ScaledTarget
| |
SvgTarget
| DrawTarget that records native SVG elements (<rect>, <path>, <text>…). |
Coordinates are in chart pixels with the origin at the top-left and y growing downwards. The same chart code drives every output: RasterTarget paints an ImageBuffer, while the SVG and PDF targets record vector primitives. Text is always measured with the embedded Font so layout is identical across targets; vector targets emit real text objects instead of glyph bitmaps.