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
qsgninepatchnode.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 QSGNINEPATCHNODE_H
5#define QSGNINEPATCHNODE_H
6
7#include <QtQuick/qsgnode.h>
8#include <QtQuick/qsgtexture.h>
9
11
12class Q_QUICK_EXPORT QSGNinePatchNode : public QSGGeometryNode
13{
14public:
15 ~QSGNinePatchNode() override = default;
16
17 virtual void setTexture(QSGTexture *texture) = 0;
18 virtual void setBounds(const QRectF &bounds) = 0;
19 virtual void setDevicePixelRatio(qreal ratio) = 0;
21 virtual void update() = 0;
22
23 static void rebuildGeometry(QSGTexture *texture, QSGGeometry *geometry,
24 const QVector4D &padding,
25 const QRectF &bounds, qreal dpr);
26};
27
29
30#endif // QSGNINEPATCHNODE_H
\inmodule QtCore\reentrant
Definition qrect.h:484
The QSGGeometryNode class is used for all rendered content in the scene graph.
Definition qsgnode.h:188
The QSGGeometry class provides low-level storage for graphics primitives in the \l{Qt Quick Scene Gra...
Definition qsggeometry.h:15
\inmodule QtQuick
virtual void setDevicePixelRatio(qreal ratio)=0
virtual void setPadding(qreal left, qreal top, qreal right, qreal bottom)=0
virtual void update()=0
virtual void setBounds(const QRectF &bounds)=0
~QSGNinePatchNode() override=default
virtual void setTexture(QSGTexture *texture)=0
\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
static QT_BEGIN_NAMESPACE qreal dpr(const QWindow *w)
double qreal
Definition qtypes.h:187