Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qsgdefaultninepatchnode_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 QSGDEFAULTNINEPATCHNODE_P_H
5#define QSGDEFAULTNINEPATCHNODE_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 <private/qtquickglobal_p.h>
19#include <QtQuick/qsgninepatchnode.h>
20#include <QtQuick/qsggeometry.h>
21#include <QtQuick/qsgtexturematerial.h>
22
24
25class Q_QUICK_EXPORT QSGDefaultNinePatchNode : public QSGNinePatchNode
26{
27public:
30
31 void setTexture(QSGTexture *texture) override;
32 void setBounds(const QRectF &bounds) override;
33 void setDevicePixelRatio(qreal ratio) override;
34 void setPadding(qreal left, qreal top, qreal right, qreal bottom) override;
35 void update() override;
36
37private:
38 QRectF m_bounds;
39 qreal m_devicePixelRatio;
40 QVector4D m_padding;
41 QSGGeometry m_geometry;
42 QSGTextureMaterial m_material;
43};
44
46
47#endif // QSGDEFAULTNINEPATCHNODE_P_H
\inmodule QtCore\reentrant
Definition qrect.h:484
The QSGGeometry class provides low-level storage for graphics primitives in the \l{Qt Quick Scene Gra...
Definition qsggeometry.h:15
\inmodule QtQuick
The QSGTextureMaterial class provides a convenient way of rendering textured geometry in the scene gr...
\inmodule QtQuick
Definition qsgtexture.h:20
The QVector4D class represents a vector or vertex in 4D space.
Definition qvectornd.h:330
Combined button and popup list for selecting options.
GLdouble GLdouble GLdouble GLdouble top
GLdouble GLdouble right
GLint left
GLint GLint bottom
GLenum GLuint texture
double qreal
Definition qtypes.h:187