Krita Source Code Documentation
Loading...
Searching...
No Matches
KoPolygonUtils.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: Copyright (c) 2011 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KOPOLYGONUTILS_H
8#define KOPOLYGONUTILS_H
9
10#include <QPolygon>
11
23{
24public:
38 static QPolygon offsetPolygon(const QPolygon &polygon, int offset, bool rounded = true, int circleSegments = 16);
39
40 static QList<QPolygon> offsetPolygons (const QList<QPolygon> polygons, int offset, bool rounded = true, int circleSegments = 16);
41};
42
43#endif // KOPOLYGONUTILS_H
The KoPolygonUtils class.
static QPolygon offsetPolygon(const QPolygon &polygon, int offset, bool rounded=true, int circleSegments=16)
offsetPolygon This offsets a single polygon, using the winding/nonzero fill-rule to determine inside ...
static QList< QPolygon > offsetPolygons(const QList< QPolygon > polygons, int offset, bool rounded=true, int circleSegments=16)