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
12
13class KoSvgTextShape;
14class KoViewConverter;
19{
20public:
23
32 void setPos(int pos);
33
39 void setShape(KoSvgTextShape *shape);
40
41 void setHandleRadius(qreal radius);
42 void setDecorationThickness(qreal thickness);
43
48 bool hitTest(QPointF mouseInPts, const QTransform viewToDocument);
49
54 void paint(QPainter *painter, const KoViewConverter &converter);
55
61 QRectF decorationRect(const QTransform documentToView) const;
62
63 void setStrategyActive(bool isActive);
64
65private:
66 struct Private;
67 QScopedPointer<Private> d;
68};
69
70#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.
void paint(QPainter *painter, const KoViewConverter &converter)
paint Paint the handles for 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...