Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSvgTextFlipShapeContourTypeCommand.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025 Wolthera van Hövell tot Westerflier <griffinvalley@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
7
8#include <KoSvgTextShape.h>
10
11
14 : textShape(_text)
15 , shape(_shape)
16 , isInside(textShape->shapesInside().contains(_shape))
17 {
18 }
19
22 bool isInside = false;
23};
24
26 : KUndo2Command(parent)
27 , d(new Private(textShape, shape))
28{
29
30}
31
36
38{
39 KoShapeBulkActionLock lock(d->textShape);
40
41 d->textShape->addShapeContours({d->shape}, !(d->isInside));
42
44}
45
47{
48 KoShapeBulkActionLock lock(d->textShape);
49
50 d->textShape->addShapeContours({d->shape}, d->isInside);
51
53}
static void bulkShapesUpdate(const UpdatesList &updates)
KoSvgTextFlipShapeContourTypeCommand(KoSvgTextShape *textShape, KoShape *shape, KUndo2Command *parent=nullptr)