qskinny/support/SkinnyShapeFactory.h

37 lines
812 B
C
Raw Normal View History

2017-07-21 18:21:34 +02:00
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#ifndef SKINNY_SHAPE_FACTORY_H_
#define SKINNY_SHAPE_FACTORY_H_
#include "SkinnyGlobal.h"
#include <QPainterPath>
2018-10-12 08:03:03 +02:00
namespace SkinnyShapeFactory
2017-07-21 18:21:34 +02:00
{
// a couple of standard painter paths, that can
// be used for testing
enum Shape
{
Rectangle,
Diamond,
TriangleDown,
TriangleUp,
TriangleLeft,
TriangleRight,
Ellipse,
Ring,
Star,
Hexagon,
ShapeCount
};
2018-10-12 08:03:03 +02:00
SKINNY_EXPORT QPainterPath shapePath( Shape, const QSizeF& );
2017-07-21 18:21:34 +02:00
}
#endif