9 // Forward declarations
14 Painter(QPainter * p = 0);
17 void SetRenderHint(int);
19 void SetPen(uint32_t, float size = 0, int style = 0);
20 void SetBrush(QBrush);
21 void SetBrush(uint32_t);
23 void DrawAngledText(Vector, double, QString, double);
24 void DrawTextObject(Vector, QString, double, double angle = 0);
25 Rect MeasureTextObject(QString text, double size);
26 void DrawArc(Vector, double, double, double);
27 void DrawEllipse(Vector, double, double);
28 void DrawHandle(Vector);
29 void DrawSmallHandle(Vector);
30 void DrawCross(Vector);
31 void DrawRectCorners(Rect);
32 void DrawArrowHandle(Vector, double);
33 void DrawArrowToLineHandle(Vector, double);
34 void DrawLine(int, int, int, int);
35 void DrawLine(Vector, Vector);
36 void DrawPoint(int, int);
37 void DrawRoundedRect(QRectF, double, double);
38 void DrawPaddedRect(QRectF);
39 void DrawRect(QRectF);
40 void DrawText(QRectF, int, QString);
41 void DrawArrowhead(Vector, Vector, double);
42 void DrawCrosshair(Vector);
43 void DrawInformativeText(QString);
46 static Vector CartesianToQtCoords(Vector);
47 static Vector QtToCartesianCoords(Vector);
53 #endif // __PAINTER_H__