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
#include <
KisHandleStyle.h
>
18
19
class
KoSvgTextShape
;
25
class
KRITAFLAKE_EXPORT
KoSvgTextShapeOutlineHelper
26
{
27
public
:
28
KoSvgTextShapeOutlineHelper
(
KoCanvasBase
*canvas);
29
~KoSvgTextShapeOutlineHelper
();
30
31
void
paint(QPainter *painter,
const
KoViewConverter
&converter);
32
37
QRectF decorationRect();
38
44
void
setDrawBoundingRect(
bool
enable);
45
bool
drawBoundingRect()
const
;
46
53
void
setDrawTextWrappingArea(
bool
enable);
54
bool
drawTextWrappingArea
()
const
;
55
60
void
setDrawShapeOutlines(
bool
enable);
61
bool
drawShapeOutlines()
const
;
62
63
void
setHandleRadius(
int
radius);
64
void
setDecorationThickness(
int
thickness);
65
66
KoSvgTextShape
*contourModeButtonHovered(
const
QPointF &point);
67
74
bool
updateTextContourMode();
75
76
void
toggleTextContourMode(
KoSvgTextShape
*shape);
77
78
void
setTextAreasHovered(
bool
enabled);
79
80
private
:
81
void
paintTextShape(QPainter *painter,
const
KoViewConverter
&converter,
KoSvgTextShape
*text,
82
bool
contourModeActive =
false
);
83
struct
Private
;
84
QScopedPointer<Private>
d
;
85
};
86
87
#endif
// KOSVGTEXTSHAPEOUTLINEHELPER_H
KisHandleStyle.h
KoCanvasBase.h
KoViewConverter.h
KoCanvasBase
Definition
KoCanvasBase.cpp:25
KoSvgTextShapeOutlineHelper
The KoSvgTextShapeOutlineHelper class helper class that draws the text outlines and contour mode butt...
Definition
KoSvgTextShapeOutlineHelper.h:26
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-06-01 02:30:02+02:00
from
Krita
branch
master
, commit
a9b6c3f4afae3a0c297c10252e67294f96104a6a