Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qsvgstructure_p.h
Go to the documentation of this file.
1
// Copyright (C) 2016 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
4
#ifndef QSVGSTRUCTURE_P_H
5
#define QSVGSTRUCTURE_P_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#include "
qsvgnode_p.h
"
19
#include "
qtsvgglobal_p.h
"
20
21
#include "QtCore/qlist.h"
22
#include "QtCore/qhash.h"
23
24
QT_BEGIN_NAMESPACE
25
26
class
QSvgTinyDocument
;
27
class
QSvgNode
;
28
class
QPainter
;
29
class
QSvgDefs
;
30
31
class
Q_SVG_PRIVATE_EXPORT
QSvgStructureNode
:
public
QSvgNode
32
{
33
public
:
34
QSvgStructureNode
(
QSvgNode
*
parent
);
35
~QSvgStructureNode
();
36
QSvgNode
*scopeNode(
const
QString
&
id
)
const
;
37
void
addChild(
QSvgNode
*
child
,
const
QString
&
id
);
38
QRectF
bounds
(
QPainter
*
p
,
QSvgExtraStates
&
states
)
const override
;
39
QSvgNode
*previousSiblingNode(
QSvgNode
*
n
)
const
;
40
QList<QSvgNode*>
renderers
()
const
{
return
m_renderers; }
41
protected
:
42
QList<QSvgNode*>
m_renderers
;
43
QHash<QString, QSvgNode*>
m_scope
;
44
QList<QSvgStructureNode*>
m_linkedScopes
;
45
mutable
bool
m_recursing =
false
;
46
};
47
48
class
Q_SVG_PRIVATE_EXPORT
QSvgG
:
public
QSvgStructureNode
49
{
50
public
:
51
QSvgG
(
QSvgNode
*
parent
);
52
void
draw
(
QPainter
*
p
,
QSvgExtraStates
&
states
)
override
;
53
Type
type
()
const override
;
54
};
55
56
class
Q_SVG_PRIVATE_EXPORT
QSvgDefs
:
public
QSvgStructureNode
57
{
58
public
:
59
QSvgDefs
(
QSvgNode
*
parent
);
60
void
draw
(
QPainter
*
p
,
QSvgExtraStates
&
states
)
override
;
61
Type
type
()
const override
;
62
};
63
64
class
Q_SVG_PRIVATE_EXPORT
QSvgSwitch
:
public
QSvgStructureNode
65
{
66
public
:
67
QSvgSwitch
(
QSvgNode
*
parent
);
68
void
draw
(
QPainter
*
p
,
QSvgExtraStates
&
states
)
override
;
69
Type
type
()
const override
;
70
private
:
71
void
init
();
72
private
:
73
QString
m_systemLanguage;
74
QString
m_systemLanguagePrefix;
75
};
76
77
QT_END_NAMESPACE
78
79
#endif
// QSVGSTRUCTURE_P_H
QHash
\inmodule QtCore
Definition
qhash.h:818
QList
Definition
qlist.h:74
QPainter
The QPainter class performs low-level painting on widgets and other paint devices.
Definition
qpainter.h:46
QRectF
\inmodule QtCore\reentrant
Definition
qrect.h:483
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:127
QSvgDefs
Definition
qsvgstructure_p.h:57
QSvgG
Definition
qsvgstructure_p.h:49
QSvgNode
Definition
qsvgnode_p.h:30
QSvgNode::bounds
virtual QRectF bounds(QPainter *p, QSvgExtraStates &states) const
Definition
qsvgnode.cpp:185
QSvgNode::draw
virtual void draw(QPainter *p, QSvgExtraStates &states)=0
QSvgNode::type
virtual Type type() const =0
QSvgStructureNode
Definition
qsvgstructure_p.h:32
QSvgStructureNode::m_linkedScopes
QList< QSvgStructureNode * > m_linkedScopes
Definition
qsvgstructure_p.h:44
QSvgStructureNode::m_scope
QHash< QString, QSvgNode * > m_scope
Definition
qsvgstructure_p.h:43
QSvgStructureNode::renderers
QList< QSvgNode * > renderers() const
Definition
qsvgstructure_p.h:40
QSvgStructureNode::m_renderers
QList< QSvgNode * > m_renderers
Definition
qsvgstructure_p.h:42
QSvgSwitch
Definition
qsvgstructure_p.h:65
QSvgTinyDocument
Definition
qsvgtinydocument_p.h:37
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
n
GLfloat n
Definition
qopengles2ext.h:795
p
GLfloat GLfloat p
[1]
Definition
qopenglext.h:12698
states
GLuint * states
Definition
qopenglext.h:9584
qsvgnode_p.h
init
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
Definition
qtextboundaryfinder.cpp:10
qtsvgglobal_p.h
child
QLayoutItem * child
[0]
Definition
src_gui_kernel_qlayout.cpp:25
QSvgExtraStates
Definition
qsvgstyle_p.h:102
Type
Definition
moc.h:24
parent
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent
Definition
uiaclientinterfaces_p.h:209
qtsvg
src
svg
qsvgstructure_p.h
Generated by
1.9.7