Class CanvasPainter
- Namespace
- MiniTui
- Assembly
- MiniTui.dll
Passed to Paint(Action<CanvasPainter>). Shapes are drawn in call order (1.x spec §8.3).
public sealed class CanvasPainter
- Inheritance
-
CanvasPainter
- Inherited Members
Properties
DotHeight
The height of the dot grid: the canvas height times the marker's dots per cell.
public int DotHeight { get; }
Property Value
DotWidth
The width of the dot grid: the canvas width times the marker's dots per cell.
public int DotWidth { get; }
Property Value
Methods
Circle(double, double, double, Style)
A circle outline, the radius in coordinate units on both axes, so it looks round only when the bounds match the canvas's aspect.
public void Circle(double x, double y, double radius, Style style = default)
Parameters
Line(double, double, double, double, Style)
A line between two points. The part outside the bounds isn't drawn.
public void Line(double x1, double y1, double x2, double y2, Style style = default)
Parameters
Point(double, double, Style)
A dot. Points outside the bounds, NaN and infinite values aren't drawn.
public void Point(double x, double y, Style style = default)
Parameters
Points(IEnumerable<(double X, double Y)>, Style)
Dots, as for Point(double, double, Style).
public void Points(IEnumerable<(double X, double Y)> points, Style style = default)
Parameters
Print(double, double, Line)
Text with its left end at the cell holding (x, y), drawn above the dots.
public void Print(double x, double y, Line text)
Parameters
Rectangle(double, double, double, double, Style)
A rectangle outline. (x, y) is its bottom-left corner.
public void Rectangle(double x, double y, double width, double height, Style style = default)