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 DrawHLine(double);
37 void DrawVLine(double);
38 void DrawPoint(int, int);
39 void DrawRoundedRect(Rect, double, double);
40 void DrawRoundedRect(QRectF, double, double);
41 void DrawPaddedRect(Rect);
43 void DrawText(Rect, int, QString);
44 void DrawArrowhead(Vector, Vector, double);
45 void DrawCrosshair(Vector);
46 void DrawInformativeText(QString);
49 static Vector CartesianToQtCoords(Vector);
50 static Vector QtToCartesianCoords(Vector);
56 #endif // __PAINTER_H__