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
qsgsimplerectnode.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 QSGSIMPLERECTNODE_H
5#define QSGSIMPLERECTNODE_H
6
7#include <QtQuick/qsgnode.h>
8#include <QtQuick/qsgflatcolormaterial.h>
9
11
12class Q_QUICK_EXPORT QSGSimpleRectNode : public QSGGeometryNode
13{
14public:
17
18 void setRect(const QRectF &rect);
19 inline void setRect(qreal x, qreal y, qreal w, qreal h) { setRect(QRectF(x, y, w, h)); }
20 QRectF rect() const;
21
22 void setColor(const QColor &color);
23 QColor color() const;
24
25private:
26 QSGFlatColorMaterial m_material;
27 QSGGeometry m_geometry;
28 void *reserved;
29};
30
32
33#endif // SOLIDRECTNODE_H
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
\inmodule QtCore\reentrant
Definition qrect.h:484
The QSGFlatColorMaterial class provides a convenient way of rendering solid colored geometry in the s...
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
The QSGSimpleRectNode class is a convenience class for drawing solid filled rectangles using scenegra...
void setRect(qreal x, qreal y, qreal w, qreal h)
This is an overloaded member function, provided for convenience. It differs from the above function o...
rect
[4]
Combined button and popup list for selecting options.
GLint GLint GLint GLint GLint x
[0]
GLfloat GLfloat GLfloat w
[0]
GLuint color
[2]
GLint y
GLfloat GLfloat GLfloat GLfloat h
double qreal
Definition qtypes.h:187
myFilter setColor(QColor(128, 0, 0))