Krita Source Code Documentation
Loading...
Searching...
No Matches
KoShapeClipCommand.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2011 Jan Hambrecht <jaham@gmx.net>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KOSHAPECLIPCOMMAND_H
8#define KOSHAPECLIPCOMMAND_H
9
10#include "kritaflake_export.h"
11#include <kundo2command.h>
12#include <QList>
13
14class KoShape;
15class KoPathShape;
17
19class KRITAFLAKE_EXPORT KoShapeClipCommand : public KUndo2Command
20{
21public:
29 KoShapeClipCommand(KoShapeControllerBase *controller, const QList<KoShape*> &shapes, const QList<KoPathShape*> &clipPathShapes, KUndo2Command *parent = 0);
30
38 KoShapeClipCommand(KoShapeControllerBase *controller, KoShape *shape, const QList<KoPathShape*> &clipPathShapes, KUndo2Command *parent = 0);
39
41 ~KoShapeClipCommand() override;
42
44 void redo() override;
46 void undo() override;
47
48private:
49 class Private;
50 Private * const d;
51};
52
53#endif // KOSHAPECLIPCOMMAND_H
virtual void undo()
virtual void redo()
The position of a path point within a path shape.
Definition KoPathShape.h:63
The undo / redo command for setting the shape clip path.