X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fpainter.h;h=5e868d75764250e457d161f118f2ad8fd7ad4b36;hb=6a7baa2814a8b4d0b93df776a4c99689bcfb3ffa;hp=1bc261b0eab5cbd198467e5d8e38688db3939a09;hpb=143b369c0308a8cd524cb0ed51c5d67d6be69603;p=architektonas diff --git a/src/painter.h b/src/painter.h index 1bc261b..5e868d7 100644 --- a/src/painter.h +++ b/src/painter.h @@ -1,7 +1,8 @@ #ifndef __PAINTER_H__ #define __PAINTER_H__ -#include +#include +#include #include "vector.h" //#define SCREEN_ZOOM (1.0 / 4.0) @@ -15,13 +16,18 @@ class Painter ~Painter(); void SetRenderHint(int); + void SetPen(QPen); + void SetPen(uint32_t, float size = 0, int style = 0); void SetBrush(QBrush); + void SetBrush(uint32_t); void SetFont(QFont); - void SetPen(QPen); void DrawAngledText(Vector, double, QString, double); + void DrawTextObject(Vector, QString, double, double angle = 0); void DrawArc(Vector, double, double, double); void DrawEllipse(Vector, double, double); void DrawHandle(Vector); + void DrawArrowHandle(Vector, double); + void DrawArrowToLineHandle(Vector, double); void DrawLine(int, int, int, int); void DrawLine(Vector, Vector); void DrawPoint(int, int); @@ -39,9 +45,9 @@ class Painter public: // Class variables - static Vector origin; // The window origin, not location of the origin - static double zoom; // Window zoom factor - static Vector screenSize; // Width & height of the window we're drawing on +// static Vector origin; // The window origin, not location of the origin +// static double zoom; // Window zoom factor +// static Vector screenSize; // Width & height of the window we're drawing on private: QPainter * painter;