aboutsummaryrefslogtreecommitdiff
path: root/app/draw.hpp
blob: a00de797aa042342f95429d06e908672f8a48f04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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