7 #include "glyphpoints.h"
9 //#define SCREEN_ZOOM (1.0 / 4.0)
11 // Forward declarations
16 Painter(QPainter * p = 0);
19 void SetRenderHint(int);
21 void SetPen(uint32_t, float size = 0, int style = 0);
22 void SetBrush(QBrush);
23 void SetBrush(uint32_t);
25 void DrawAngledText(Vector, double, QString, double);
26 void DrawTextObject(Vector, QString, double, double angle = 0);
27 void DrawArc(Vector, double, double, double);
28 void DrawEllipse(Vector, double, double);
29 void DrawHandle(Vector);
30 void DrawArrowHandle(Vector, double);
31 void DrawArrowToLineHandle(Vector, double);
32 void DrawLine(int, int, int, int);
33 void DrawLine(IPoint, IPoint);
34 void DrawLine(Vector, Vector);
35 void DrawPoint(int, int);
36 void DrawRoundedRect(QRectF, double, double);
37 void DrawPaddedRect(QRectF);
38 void DrawRect(QRectF);
39 void DrawText(QRectF, int, QString);
40 void DrawArrowhead(Vector, Vector, double);
41 void DrawCrosshair(Vector);
42 void DrawInformativeText(QString);
43 void DrawBezier(Point, Point, Point);
44 void DrawBezier(IPoint, IPoint, IPoint);
45 void DrawSquareDot(Vector);
46 void DrawRoundDot(Vector);
47 void DrawSquareDotN(Vector, uint32_t);
48 void DrawRoundDotN(Vector, uint32_t);
51 static Vector CartesianToQtCoords(Vector);
52 static Vector QtToCartesianCoords(Vector);
56 // static Vector origin; // The window origin, not location of the origin
57 // static double zoom; // Window zoom factor
58 // static Vector screenSize; // Width & height of the window we're drawing on
64 #endif // __PAINTER_H__