]> Shamusworld >> Repos - architektonas/blobdiff - src/painter.h
Lines respond to mouse movement, added Text rendering.
[architektonas] / src / painter.h
index af591b8e0d59740513151dfe1c232b112ef20644..5e868d75764250e457d161f118f2ad8fd7ad4b36 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef __PAINTER_H__
 #define __PAINTER_H__
 
+#include <stdint.h>
 #include <QtWidgets>
 #include "vector.h"
 
@@ -15,10 +16,13 @@ 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);