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
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
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 = -1.0f;
57 float m_topRightRadius = -1.0f;
58 float m_bottomLeftRadius = -1.0f;
59 float m_bottomRightRadius = -1.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:484
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
rect
[4]
else opt state
[0]
Combined button and popup list for selecting options.
GLint GLsizei width
GLuint color
[2]
Int aligned(Int v, Int byteAlign)
unsigned int uint
Definition qtypes.h:34
double qreal
Definition qtypes.h:187
myFilter setColor(QColor(128, 0, 0))