diff options
Diffstat (limited to 'polygon.h')
| -rw-r--r-- | polygon.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/polygon.h b/polygon.h new file mode 100644 index 0000000..54c8c4e --- /dev/null +++ b/polygon.h @@ -0,0 +1,22 @@ +#ifndef POLYGON_H +#define POLYGON_H + +#include <QPolygon> + +#include "line.h" + +class Polygon : public Line +{ +public: + Polygon(); + + // Line interface +public: + virtual bool isHit(const QPoint &clickPoint); + virtual void draw(QPainter *painter); + +private: + QPolygon m_polygon; +}; + +#endif // POLYGON_H |
