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
25
27class QSvgNode;
28class QPainter;
29class QSvgDefs;
30
31class Q_SVG_PRIVATE_EXPORT QSvgStructureNode : public QSvgNode
32{
33public:
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; }
41protected:
45 mutable bool m_recursing = false;
46};
47
48class Q_SVG_PRIVATE_EXPORT QSvgG : public QSvgStructureNode
49{
50public:
52 void draw(QPainter *p, QSvgExtraStates &states) override;
53 Type type() const override;
54};
55
56class Q_SVG_PRIVATE_EXPORT QSvgDefs : public QSvgStructureNode
57{
58public:
60 void draw(QPainter *p, QSvgExtraStates &states) override;
61 Type type() const override;
62};
63
64class Q_SVG_PRIVATE_EXPORT QSvgSwitch : public QSvgStructureNode
65{
66public:
68 void draw(QPainter *p, QSvgExtraStates &states) override;
69 Type type() const override;
70private:
71 void init();
72private:
73 QString m_systemLanguage;
74 QString m_systemLanguagePrefix;
75};
76
78
79#endif // QSVGSTRUCTURE_P_H
\inmodule QtCore
Definition qhash.h:818
Definition qlist.h:74
The QPainter class performs low-level painting on widgets and other paint devices.
Definition qpainter.h:46
\inmodule QtCore\reentrant
Definition qrect.h:483
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
virtual QRectF bounds(QPainter *p, QSvgExtraStates &states) const
Definition qsvgnode.cpp:185
virtual void draw(QPainter *p, QSvgExtraStates &states)=0
virtual Type type() const =0
QList< QSvgStructureNode * > m_linkedScopes
QHash< QString, QSvgNode * > m_scope
QList< QSvgNode * > renderers() const
QList< QSvgNode * > m_renderers
Combined button and popup list for selecting options.
GLfloat n
GLfloat GLfloat p
[1]
GLuint * states
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
QLayoutItem * child
[0]
Definition moc.h:24
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent