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 QQUICKCLIPNODE_P_H
5#define QQUICKCLIPNODE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <private/qtquickglobal_p.h>
19#include <QtQuick/qsgnode.h>
20
21QT_BEGIN_NAMESPACE
22
23class Q_QUICK_PRIVATE_EXPORT QQuickDefaultClipNode : public QSGClipNode
24{
25public:
26 QQuickDefaultClipNode(const QRectF &);
27
28 void setRect(const QRectF &);
29 QRectF rect() const { return m_rect; }
30
31 void setRadius(qreal radius);
32 qreal radius() const { return m_radius; }
33
34 virtual void update();
35
36private:
37 void updateGeometry();
38 QRectF m_rect;
39 qreal m_radius;
40
41 uint m_dirty_geometry : 1;
42 uint m_reserved : 31;
43
44 QSGGeometry m_geometry;
45};
46
47QT_END_NAMESPACE
48
49#endif // QQUICKCLIPNODE_P_H
50

source code of qtdeclarative/src/quick/items/qquickclipnode_p.h