Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
10QT_BEGIN_NAMESPACE
11
12class Q_QUICK_EXPORT QSGSimpleRectNode : public QSGGeometryNode
13{
14public:
15 QSGSimpleRectNode(const QRectF &rect, const QColor &color);
16 QSGSimpleRectNode();
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
31QT_END_NAMESPACE
32
33#endif // SOLIDRECTNODE_H
QQuickShaderEffectSourceCleanup(QSGLayer *t, QQuickShaderEffectSourceTextureProvider *p)
QQuickShaderEffectSourceTextureProvider * provider
void run() override
Implement this pure virtual function in your subclass.
Combined button and popup list for selecting options.
QT_REQUIRE_CONFIG(quick_shadereffect)
static void get_wrap_mode(QQuickShaderEffectSource::WrapMode mode, QSGTexture::WrapMode *hWrap, QSGTexture::WrapMode *vWrap)
static QSGLayer::Format toLayerFormat(QQuickShaderEffectSource::Format format)