Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickninepatchimage_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 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 QQUICKNINEPATCHIMAGE_P_H
5#define QQUICKNINEPATCHIMAGE_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 <QtQuick/private/qquickimage_p.h>
19
21
23
25{
35 QML_NAMED_ELEMENT(NinePatchImage)
37
38public:
39 explicit QQuickNinePatchImage(QQuickItem *parent = nullptr);
40
41 qreal topPadding() const;
42 qreal leftPadding() const;
43 qreal rightPadding() const;
44 qreal bottomPadding() const;
45
46 qreal topInset() const;
47 qreal leftInset() const;
48 qreal rightInset() const;
49 qreal bottomInset() const;
50
56
61
62protected:
63 void pixmapChange() override;
65
66private:
67 Q_DISABLE_COPY(QQuickNinePatchImage)
68 Q_DECLARE_PRIVATE(QQuickNinePatchImage)
69};
70
72
74
75#endif // QQUICKNINEPATCHIMAGE_P_H
The QQuickItem class provides the most basic of all visual items in \l {Qt Quick}.
Definition qquickitem.h:64
QSGNode * updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *data) override
Called on the render thread when it is time to sync the state of the item with the scene graph.
\group qtquick-scenegraph-nodes \title Qt Quick Scene Graph Node classes
Definition qsgnode.h:37
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
#define QML_DECLARE_TYPE(TYPE)
Definition qqml.h:19
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SIGNALS
double qreal
Definition qtypes.h:92
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent