Krita Source Code Documentation
Loading...
Searching...
No Matches
KoSvgTextShapeOutlineHelper.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-2.0-or-later
5
*/
6
#ifndef KOSVGTEXTSHAPEOUTLINEHELPER_H
7
#define KOSVGTEXTSHAPEOUTLINEHELPER_H
8
9
#include <
KoCanvasBase.h
>
10
#include <
KoViewConverter.h
>
11
12
#include <QPainter>
13
#include <QPointF>
14
#include <QScopedPointer>
15
16
#include <kritaflake_export.h>
17
18
class
KoSvgTextShape
;
24
class
KRITAFLAKE_EXPORT
KoSvgTextShapeOutlineHelper
25
{
26
public
:
27
KoSvgTextShapeOutlineHelper
(
KoCanvasBase
*canvas);
28
~KoSvgTextShapeOutlineHelper
();
29
30
void
paint(QPainter *painter,
const
KoViewConverter
&converter);
31
36
QRectF decorationRect();
37
43
void
setDrawBoundingRect(
bool
enable);
44
bool
drawBoundingRect()
const
;
45
52
void
setDrawTextWrappingArea(
bool
enable);
53
bool
drawTextWrappingArea
()
const
;
54
59
void
setDrawShapeOutlines(
bool
enable);
60
bool
drawShapeOutlines()
const
;
61
62
void
setHandleRadius(
int
radius);
63
void
setDecorationThickness(
int
thickness);
64
65
KoSvgTextShape
*contourModeButtonHovered(
const
QPointF &point);
66
73
bool
updateTextContourMode();
74
75
void
toggleTextContourMode(
KoSvgTextShape
*shape);
76
77
void
setTextAreasHovered(
bool
enabled);
78
79
private
:
80
void
paintTextShape(QPainter *painter,
const
KoViewConverter
&converter,
81
const
QPalette &pal,
KoSvgTextShape
*text,
82
bool
contourModeActive =
false
);
83
struct
Private
;
84
QScopedPointer<Private>
d
;
85
};
86
87
#endif
// KOSVGTEXTSHAPEOUTLINEHELPER_H
KoCanvasBase.h
KoViewConverter.h
KoCanvasBase
Definition
KoCanvasBase.cpp:24
KoSvgTextShapeOutlineHelper
The KoSvgTextShapeOutlineHelper class helper class that draws the text outlines and contour mode butt...
Definition
KoSvgTextShapeOutlineHelper.h:25
KoSvgTextShapeOutlineHelper::drawTextWrappingArea
bool drawTextWrappingArea() const
KoSvgTextShapeOutlineHelper::d
QScopedPointer< Private > d
Definition
KoSvgTextShapeOutlineHelper.h:84
KoSvgTextShape
Definition
KoSvgTextShape.h:33
KoViewConverter
Definition
KoViewConverter.h:32
Private
Definition
SvgTransformParser.cpp:20
libs
flake
text
KoSvgTextShapeOutlineHelper.h
Generated at
2026-01-15 02:30:07+01:00
from
Krita
branch
master
, commit
38b517ca06286bb65279453cbf9a2b4fbd1153d1