X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fpainter.h;h=aeda1fdaf00cfd26f07ff52ee9ca66a124509e97;hb=d549bfdc8c872b966b9d787c00e5e8027366093c;hp=e32ba975f80263868c52609fe5d6af85f835bf68;hpb=43cc5bc5121cd05dc8696d653369c756950f3fba;p=architektonas diff --git a/src/painter.h b/src/painter.h index e32ba97..aeda1fd 100644 --- a/src/painter.h +++ b/src/painter.h @@ -4,6 +4,8 @@ #include #include "vector.h" +#define SCREEN_ZOOM (1.0 / 4.0) + // Forward declarations class Painter @@ -19,15 +21,18 @@ 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 DrawRect(QRectF); 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