Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_marker_painter.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_MARKER_PAINTER_H
8#define __KIS_MARKER_PAINTER_H
9
10#include <QScopedPointer>
11
12#include "kis_types.h"
13#include "kritaimage_export.h"
14
15class KoColor;
16
17
18class KRITAIMAGE_EXPORT KisMarkerPainter
19{
20public:
22 static const qint32 ValidNumberRangeValue = 2140000000; // bit less than max value of int
23
24
25 KisMarkerPainter(KisPaintDeviceSP device, const KoColor &color);
27
28 void fillFullCircle(const QPointF &center, qreal radius);
29 void fillHalfBrushDiff(const QPointF &p1, const QPointF &p2, const QPointF &p3,
30 const QPointF &center, qreal radius);
31
32 void fillCirclesDiff(const QPointF &c1, qreal r1,
33 const QPointF &c2, qreal r2);
34
35private:
36 struct Private;
37 const QScopedPointer<Private> m_d;
38
44 bool isNumberInValidRange(qint32 number);
45
46
53 bool isRectInValidRange(const QRect &rect);
54};
55
56#endif /* __KIS_MARKER_PAINTER_H */
QPointF r2
QPointF r1
QPointF p2
QPointF p3
QPointF p1
const QScopedPointer< Private > m_d