#ifndef __PAINTER_H__
#define __PAINTER_H__
-#include <QtGui>
+#include <stdint.h>
+#include <QtWidgets>
#include "vector.h"
//#define SCREEN_ZOOM (1.0 / 4.0)
~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);
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;