aboutsummaryrefslogtreecommitdiff
path: root/app/draw.hpp
blob: 41d5d9c63e4441da345fe16183a849a7a5ee5cf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef DRAW_H
#define DRAW_H

#include <qimage.h>
#include <qwidget.h>

class DrawWidget : public QWidget {
    Q_OBJECT

    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