Krita Source Code Documentation
Loading...
Searching...
No Matches
ShapeGradientEditStrategy.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 SHAPEGRADIENTEDITSTRATEGY_H
8#define SHAPEGRADIENTEDITSTRATEGY_H
9
10#include <QScopedPointer>
13
15{
16public:
18 KoFlake::FillVariant fillVariant,
19 KoShape *shape,
21 const QPointF &clicked);
23
24 void handleMouseMove(const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override;
25 KUndo2Command *createCommand() override;
26 void finishInteraction(Qt::KeyboardModifiers modifiers) override;
27 void paint(QPainter &painter, const KoViewConverter &converter) override;
28
29private:
30 struct Private;
31 QScopedPointer<Private> m_d;
32};
33
34#endif // SHAPEGRADIENTEDITSTRATEGY_H
KUndo2Command * createCommand() override
void paint(QPainter &painter, const KoViewConverter &converter) override
void finishInteraction(Qt::KeyboardModifiers modifiers) override
QScopedPointer< Private > m_d
void handleMouseMove(const QPointF &mouseLocation, Qt::KeyboardModifiers modifiers) override
ShapeGradientEditStrategy(KoToolBase *tool, KoFlake::FillVariant fillVariant, KoShape *shape, KoShapeGradientHandles::Handle::Type startHandleType, const QPointF &clicked)
FillVariant
Definition KoFlake.h:28