aboutsummaryrefslogtreecommitdiff
path: root/app/draw.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'app/draw.hpp')
-rw-r--r--app/draw.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/draw.hpp b/app/draw.hpp
new file mode 100644
index 0000000..a00de79
--- /dev/null
+++ b/app/draw.hpp
@@ -0,0 +1,21 @@
+#ifndef DRAW_H
+#define DRAW_H
+
+#include <qimage.h>
+#include <qwidget.h>
+
+class DrawWidget : public QWidget {
+ public:
+ DrawWidget(unsigned width, unsigned height);
+ void paintEvent(QPaintEvent*);
+
+ QRgb *m_drawbuffer;
+ unsigned m_width, m_height;
+
+ ~DrawWidget();
+ private:
+ QImage m_img;
+ unsigned char i;
+};
+
+#endif