]> Shamusworld >> Repos - architektonas/blobdiff - src/painter.h
Added ability to manipulate Text objects.
[architektonas] / src / painter.h
index 5e868d75764250e457d161f118f2ad8fd7ad4b36..5b11e25aadead93a1c418627fe3abbe50e02b332 100644 (file)
@@ -3,10 +3,9 @@
 
 #include <stdint.h>
 #include <QtWidgets>
+#include "rect.h"
 #include "vector.h"
 
-//#define SCREEN_ZOOM  (1.0 / 4.0)
-
 // Forward declarations
 
 class Painter
@@ -23,9 +22,12 @@ class Painter
                void SetFont(QFont);
                void DrawAngledText(Vector, double, QString, double);
                void DrawTextObject(Vector, QString, double, double angle = 0);
+               Rect MeasureTextObject(QString text, double size);
                void DrawArc(Vector, double, double, double);
                void DrawEllipse(Vector, double, double);
                void DrawHandle(Vector);
+               void DrawCross(Vector);
+               void DrawRectCorners(Rect);
                void DrawArrowHandle(Vector, double);
                void DrawArrowToLineHandle(Vector, double);
                void DrawLine(int, int, int, int);
@@ -43,14 +45,9 @@ class Painter
                static Vector CartesianToQtCoords(Vector);
                static Vector QtToCartesianCoords(Vector);
 
-       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
-
        private:
                QPainter * painter;
 };
 
 #endif // __PAINTER_H__
+