Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qguisvg_p.h
Go to the documentation of this file.
1
// Copyright (C) 2026 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
6
#
ifndef
QGUISVG_P_H
7
#
define
QGUISVG_P_H
8
9
//
10
// W A R N I N G
11
// -------------
12
//
13
// This file is not part of the Qt API. It exists purely as an
14
// implementation detail. This header file may change from version to
15
// version without notice, or even be removed.
16
//
17
// We mean it.
18
//
19
20
#
include
<
QtCore
/
qstring
.
h
>
21
#
include
<
QtCore
/
qvarlengtharray
.
h
>
22
#
include
<
QtGui
/
qpainterpath
.
h
>
23
#
include
<
optional
>
24
25
QT_BEGIN_NAMESPACE
26
27
namespace
QGuiSvg
{
28
29
enum
LengthType
{
30
LT_PERCENT
,
31
LT_PX
,
32
LT_PC
,
33
LT_PT
,
34
LT_MM
,
35
LT_CM
,
36
LT_IN
,
37
LT_OTHER
38
};
39
40
Q_GUI_EXPORT
bool
isDigit(ushort ch);
41
Q_GUI_EXPORT qreal
toDouble
(
QStringView
*
str
);
42
Q_GUI_EXPORT qreal
toDouble
(
QStringView
str
,
bool
*
ok
=
NULL
);
43
Q_GUI_EXPORT qreal
parseLength
(
QStringView
str
,
LengthType
*
type
,
bool
*
ok
=
NULL
,
44
bool
tiny12FeaturesOnly
=
false
);
45
Q_GUI_EXPORT qreal
convertToPixels
(
qreal
len
,
bool
,
LengthType
type
);
46
Q_GUI_EXPORT
std
::
optional
<
qreal
>
parseAngle
(
QStringView
str
,
bool
tiny12FeaturesOnly
=
false
);
47
Q_GUI_EXPORT
void
parseNumbersArray(QStringView *str, QVarLengthArray<qreal, 8> &points,
48
const
char
*pattern =
nullptr
);
49
Q_GUI_EXPORT
std
::
optional
<
QPainterPath
>
parsePath
(
QStringView
dataStr
,
bool
limitLength
=
true
);
50
Q_GUI_EXPORT
void
pathArc
(QPainterPath &path, qreal rx, qreal ry, qreal x_axis_rotation,
51
int
large_arc_flag,
int
sweep_flag, qreal x, qreal y, qreal curx,
52
qreal cury);
53
Q_GUI_EXPORT QStringView
trimmed
(
QStringView
sv
,
bool
tiny12FeaturesOnly
);
54
}
55
56
QT_END_NAMESPACE
57
58
#
endif
// QGUISVG_P_H
QGuiSvg::svgChars
Definition
qguisvg.cpp:576
QGuiSvg
Definition
qguisvg.cpp:56
QGuiSvg::LengthType
LengthType
Definition
qguisvg_p.h:29
QGuiSvg::LT_PERCENT
@ LT_PERCENT
Definition
qguisvg_p.h:30
QGuiSvg::LT_PC
@ LT_PC
Definition
qguisvg_p.h:32
QGuiSvg::LT_OTHER
@ LT_OTHER
Definition
qguisvg_p.h:37
QGuiSvg::LT_IN
@ LT_IN
Definition
qguisvg_p.h:36
QGuiSvg::LT_PX
@ LT_PX
Definition
qguisvg_p.h:31
QGuiSvg::LT_CM
@ LT_CM
Definition
qguisvg_p.h:35
QGuiSvg::LT_MM
@ LT_MM
Definition
qguisvg_p.h:34
QGuiSvg::LT_PT
@ LT_PT
Definition
qguisvg_p.h:33
QGuiSvg::parsePath
std::optional< QPainterPath > parsePath(QStringView dataStr, bool limitLength)
Definition
qguisvg.cpp:292
QGuiSvg::trimmed
QStringView trimmed(QStringView sv, bool tiny12FeaturesOnly)
Definition
qguisvg.cpp:593
QGuiSvg::pathArc
void pathArc(QPainterPath &path, qreal rx, qreal ry, qreal x_axis_rotation, int large_arc_flag, int sweep_flag, qreal x, qreal y, qreal curx, qreal cury)
Definition
qguisvg.cpp:484
QGuiSvg::parseNumbersArray
void parseNumbersArray(QStringView *str, QVarLengthArray< qreal, 8 > &points, const char *pattern)
Definition
qguisvg.cpp:262
QGuiSvg::parseAngle
std::optional< qreal > parseAngle(QStringView str, bool tiny12FeaturesOnly)
Definition
qguisvg.cpp:228
QGuiSvg::isDigit
bool isDigit(ushort ch)
Definition
qguisvg.cpp:59
QGuiSvg::convertToPixels
qreal convertToPixels(qreal len, bool, LengthType type)
Definition
qguisvg.cpp:195
QGuiSvg::reNoSpace
static const QRegularExpression & reNoSpace(bool tiny12FeaturesOnly)
Definition
qguisvg.cpp:582
QGuiSvg::toDouble
qreal toDouble(QStringView str, bool *ok)
Definition
qguisvg.cpp:146
QGuiSvg::parseLength
qreal parseLength(QStringView str, LengthType *type, bool *ok, bool tiny12FeaturesOnly)
Definition
qguisvg.cpp:154
QGuiSvg::toDouble
qreal toDouble(QStringView *str)
Definition
qguisvg.cpp:65
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
qtbase
src
gui
util
qguisvg_p.h
Generated on
for Qt by
1.18.0