Krita Source Code Documentation
Loading...
Searching...
No Matches
SvgTextOnPathDecorationHelper.h
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-3.0-or-later
5 */
6#ifndef SVGTEXTONPATHDECORATIONHELPER_H
7#define SVGTEXTONPATHDECORATIONHELPER_H
8
9#include <QPointF>
10#include <QPainter>
11#include <KisHandleStyle.h>
12
13
14class KoSvgTextShape;
15class KoViewConverter;
20{
21public:
24
33 void setPos(int pos);
34
40 void setShape(KoSvgTextShape *shape);
41
42 void setHandleRadius(qreal radius);
43 void setDecorationThickness(qreal thickness);
44
49 bool hitTest(QPointF mouseInPts, const QTransform viewToDocument);
50
55 void paint(QPainter *painter, const KoViewConverter &converter, KisHandlePalette handlePalette);
56
62 QRectF decorationRect(const QTransform documentToView) const;
63
64 void setStrategyActive(bool isActive);
65
66private:
67 struct Private;
68 QScopedPointer<Private> d;
69};
70
71#endif // SVGTEXTONPATHDECORATIONHELPER_H
The SvgTextOnPathDecorationHelper class.
QRectF decorationRect(const QTransform documentToView) const
decorationRect
void setShape(KoSvgTextShape *shape)
setShape Set the shape for which to draw the text path.
bool hitTest(QPointF mouseInPts, const QTransform viewToDocument)
hitTest
void setPos(int pos)
setPos the the position of the cursor, where the text path is sought. A single text shape can have mu...
void paint(QPainter *painter, const KoViewConverter &converter, KisHandlePalette handlePalette)
paint Paint the handles for the text path.