mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-11-15 18:15:52 +08:00
20 lines
401 B
C
20 lines
401 B
C
|
#ifndef RENDERAREA_H
|
||
|
#define RENDERAREA_H
|
||
|
|
||
|
#include <QWidget>
|
||
|
|
||
|
class RenderArea : public QWidget
|
||
|
{
|
||
|
public:
|
||
|
enum Shape { Line, Polyline, Polygon, Rect, RoundedRect, Ellipse, Arc,
|
||
|
Chord, Pie, Path, Text, Pixmap, TiledPixmap };
|
||
|
|
||
|
RenderArea(QWidget *parent = 0);
|
||
|
void draw(QPainter *painter);
|
||
|
|
||
|
protected:
|
||
|
void paintEvent(QPaintEvent *event);
|
||
|
};
|
||
|
|
||
|
#endif
|