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
22
class
KoPolygonUtils
23
{
24
public
:
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
KoPolygonUtils
The KoPolygonUtils class.
Definition
KoPolygonUtils.h:23
KoPolygonUtils::offsetPolygon
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 ...
Definition
KoPolygonUtils.cpp:95
KoPolygonUtils::offsetPolygons
static QList< QPolygon > offsetPolygons(const QList< QPolygon > polygons, int offset, bool rounded=true, int circleSegments=16)
Definition
KoPolygonUtils.cpp:103
QList
Definition
KisQStringListFwd.h:16
libs
flake
text
KoPolygonUtils.h
Generated at
2025-11-04 02:30:02+01:00
from
Krita
branch
master
, commit
c9dde2e79561a8aea4a7e8d9ac99c98a7bac9e52