You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
303 B
22 lines
303 B
|
3 years ago
|
#ifndef _SHAPE_FACTORY_H_
|
||
|
|
#define _SHAPE_FACTORY_H_
|
||
|
|
|
||
|
|
#include <qpainterpath.h>
|
||
|
|
|
||
|
|
namespace ShapeFactory
|
||
|
|
{
|
||
|
|
enum Shape
|
||
|
|
{
|
||
|
|
Rect,
|
||
|
|
Triangle,
|
||
|
|
Ellipse,
|
||
|
|
Ring,
|
||
|
|
Star,
|
||
|
|
Hexagon
|
||
|
|
};
|
||
|
|
|
||
|
|
QPainterPath path( Shape, const QPointF &, const QSizeF & );
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|