Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qsgbasicinternalrectanglenode_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
5#ifndef QSGBASICINTERNALRECTANGLENODE_P_H
6#define QSGBASICINTERNALRECTANGLENODE_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <private/qsgadaptationlayer_p.h>
20
22
23class Q_QUICK_PRIVATE_EXPORT QSGBasicInternalRectangleNode : public QSGInternalRectangleNode
24{
25public:
27
28 void setRect(const QRectF &rect) override;
29 void setColor(const QColor &color) override;
30 void setPenColor(const QColor &color) override;
31 void setPenWidth(qreal width) override;
32 void setGradientStops(const QGradientStops &stops) override;
33 void setGradientVertical(bool vertical) override;
34 void setRadius(qreal radius) override;
35 void setTopLeftRadius(qreal radius) override;
36 void setTopRightRadius(qreal radius) override;
37 void setBottomLeftRadius(qreal radius) override;
38 void setBottomRightRadius(qreal radius) override;
39 void setAntialiasing(bool antialiasing) override;
40 void setAligned(bool aligned) override;
41 void update() override;
42
43protected:
44 virtual bool supportsAntialiasing() const { return true; }
45 virtual void updateMaterialAntialiasing() = 0;
46 virtual void updateMaterialBlending(QSGNode::DirtyState *state) = 0;
47
48 void updateGeometry();
50
55 float m_radius = 0.0f;
56 float m_topLeftRadius = 0.0f;
57 float m_topRightRadius = 0.0f;
58 float m_bottomLeftRadius = 0.0f;
59 float m_bottomRightRadius = 0.0f;
60 float m_pen_width = 0.0f;
61
67
69};
70
72
73#endif
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
\inmodule QtCore\reentrant
Definition qrect.h:483
virtual void updateMaterialAntialiasing()=0
virtual void updateMaterialBlending(QSGNode::DirtyState *state)=0
The QSGGeometry class provides low-level storage for graphics primitives in the \l{Qt Quick Scene Gra...
Definition qsggeometry.h:15
virtual void setRadius(qreal radius)=0
virtual void setAntialiasing(bool antialiasing)
virtual void setGradientVertical(bool vertical)=0
virtual void setAligned(bool aligned)=0
virtual void setPenColor(const QColor &color)=0
virtual void setTopRightRadius(qreal radius)=0
virtual void setBottomRightRadius(qreal radius)=0
virtual void setBottomLeftRadius(qreal radius)=0
virtual void setPenWidth(qreal width)=0
virtual void setGradientStops(const QGradientStops &stops)=0
virtual void setRect(const QRectF &rect)=0
virtual void setTopLeftRadius(qreal radius)=0
virtual void update()=0
virtual void setColor(const QColor &color)=0
rect
[4]
else opt state
[0]
Combined button and popup list for selecting options.
GLint GLsizei width
Int aligned(Int v, Int byteAlign)
unsigned int uint
Definition qtypes.h:29
double qreal
Definition qtypes.h:92