]> Shamusworld >> Repos - architektonas/blobdiff - src/painter.h
Initial stab at text object. Nonfunctional ATM.
[architektonas] / src / painter.h
index e32ba975f80263868c52609fe5d6af85f835bf68..a4d9dc020919df2b2f5c8da6415adbdd32c65733 100644 (file)
@@ -4,6 +4,8 @@
 #include <QtGui>
 #include "vector.h"
 
+#define SCREEN_ZOOM  (1.0 / 4.0)
+
 // Forward declarations
 
 class Painter
@@ -19,15 +21,17 @@ class Painter
                void DrawAngledText(Vector, double, QString);
                void DrawArc(Vector, double, double, double);
                void DrawEllipse(Vector, double, double);
+               void DrawHandle(Vector);
                void DrawLine(int, int, int, int);
                void DrawLine(Vector, Vector);
                void DrawPoint(int, int);
                void DrawRoundedRect(QRectF, double, double);
                void DrawText(QRectF, int, QString);
+               void DrawArrowhead(Vector, Vector);
 
        public:
-               Vector CartesianToQtCoords(Vector);
-               Vector QtCoordsToCartesian(Vector);
+               static Vector CartesianToQtCoords(Vector);
+               static Vector QtToCartesianCoords(Vector);
 
        public:
                // Class variables