Krita Source Code Documentation
Loading...
Searching...
No Matches
KisHandleStyle.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISHANDLESTYLE_H
8#define KISHANDLESTYLE_H
9
10#include <QVector>
11#include <QPen>
12#include <QBrush>
13
14#include "kritaglobal_export.h"
15
16
21class KRITAGLOBAL_EXPORT KisHandleStyle
22{
23public:
24
29 static KisHandleStyle& inheritStyle();
30
35 static KisHandleStyle& primarySelection();
36
41 static KisHandleStyle& secondarySelection();
42
46 static KisHandleStyle& gradientHandles();
47
51 static KisHandleStyle& gradientArrows();
52
57 static KisHandleStyle& highlightedPrimaryHandles();
58
63 static KisHandleStyle& highlightedPrimaryHandlesWithSolidOutline();
64
69 static KisHandleStyle& partiallyHighlightedPrimaryHandles();
70
75 static KisHandleStyle& selectedPrimaryHandles();
76
78 IterationStyle() : isValid(false) {}
79 IterationStyle(const QPen &pen, const QBrush &brush)
80 : isValid(true),
81 stylePair(pen, brush)
82 {
83 }
84
85 bool isValid;
86 QPair<QPen, QBrush> stylePair;
87 };
88
91};
92
93#endif // KISHANDLESTYLE_H
QVector< IterationStyle > lineIterations
QVector< IterationStyle > handleIterations
IterationStyle(const QPen &pen, const QBrush &brush)
QPair< QPen, QBrush > stylePair