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
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2022-04-01 13:56:16 +02:00
|
|
|
#pragma once
|
2017-07-21 18:21:34 +02:00
|
|
|
|
|
|
|
#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,
|
2022-10-07 14:32:55 +02:00
|
|
|
Arc,
|
2017-07-21 18:21:34 +02:00
|
|
|
|
|
|
|
ShapeCount
|
|
|
|
};
|
|
|
|
|
2018-10-12 08:03:03 +02:00
|
|
|
SKINNY_EXPORT QPainterPath shapePath( Shape, const QSizeF& );
|
2017-07-21 18:21:34 +02:00
|
|
|
}
|