12 class DrawingArea: public QObject {
16 static const int DEFAULT_WIDTH = 640;
17 static const int DEFAULT_HEIGHT = 480;
19 DrawingArea(int width = DEFAULT_WIDTH, int height = DEFAULT_HEIGHT);
24 const QSize size() const;
26 void setColor(const QColor &color);
27 void setColor(float red, float green, float blue);
29 void drawPoint(int x, int y);
30 void drawLine(int x1, int y1, int x2, int y2);
36 void setDirty(const QRect &rect);
39 QRect getDirtyRect() const;
53 int DrawingArea::width() const
55 return image->width();
59 int DrawingArea::height() const
61 return image->height();
65 const QSize DrawingArea::size() const
71 QImage &DrawingArea::getImage()
77 bool DrawingArea::isDirty() const
83 QRect DrawingArea::getDirtyRect() const
89 void DrawingArea::lock()
95 void DrawingArea::unlock()
100 #endif // !DRAWING_AREA_H