qskinny/support/SkinnyShapeFactory.h

37 lines
783 B
C
Raw Permalink Normal View History

2017-07-21 16:21:34 +00:00
/******************************************************************************
2024-01-17 13:31:45 +00:00
* QSkinny - Copyright (C) The authors
2023-04-06 07:23:37 +00:00
* SPDX-License-Identifier: BSD-3-Clause
2017-07-21 16:21:34 +00:00
*****************************************************************************/
2022-04-01 11:56:16 +00:00
#pragma once
2017-07-21 16:21:34 +00:00
#include "SkinnyGlobal.h"
#include <QPainterPath>
2018-10-12 06:03:03 +00:00
namespace SkinnyShapeFactory
2017-07-21 16:21:34 +00:00
{
2023-01-09 14:19:39 +00:00
Q_NAMESPACE_EXPORT( SKINNY_EXPORT )
2022-12-03 16:17:54 +00:00
2017-07-21 16:21:34 +00: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 12:32:55 +00:00
Arc,
2017-07-21 16:21:34 +00:00
ShapeCount
};
2018-10-12 06:03:03 +00:00
SKINNY_EXPORT QPainterPath shapePath( Shape, const QSizeF& );
2017-07-21 16:21:34 +00:00
}