Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickstyledtext_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 QQUICKSTYLEDTEXT_H
5#define QQUICKSTYLEDTEXT_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 <QSize>
19#include <QPointF>
20#include <QList>
21#include <QUrl>
22#include <QtQuick/private/qquickpixmapcache_p.h>
23
25
28class QString;
29class QQmlContext;
30
32{
33public:
35
37
38 enum Align {
41 Top
42 };
43
47 int position = 0;
48 qreal offset = 0.0; // this offset allows us to compensate for flooring reserved space
50 QQuickPixmap *pix = nullptr;
51};
52
54{
55public:
56 static void parse(const QString &string, QTextLayout &layout,
58 const QUrl &baseUrl,
60 bool preloadImages,
61 bool *fontSizeModified);
62
63private:
66 const QUrl &baseUrl,
68 bool preloadImages,
69 bool *fontSizeModified);
71
73};
74
76
77#endif
Definition qlist.h:74
\inmodule QtCore\reentrant
Definition qpoint.h:214
The QQmlContext class defines a context within a QML engine.
Definition qqmlcontext.h:25
\inmodule QtCore
Definition qsize.h:25
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
\reentrant
Definition qtextlayout.h:70
\inmodule QtCore
Definition qurl.h:94
QPixmap pix
Combined button and popup list for selecting options.
static void * context
GLenum GLuint GLintptr offset
@ Top
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
#define Q_AUTOTEST_EXPORT
double qreal
Definition qtypes.h:92
QUrl baseUrl
QVBoxLayout * layout