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
qquickclipnode_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#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
22
23class Q_QUICK_EXPORT QQuickDefaultClipNode : public QSGClipNode
24{
25public:
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
48
49#endif // QQUICKCLIPNODE_P_H
\inmodule QtCore\reentrant
Definition qrect.h:484
The QSGClipNode class implements the clipping functionality in the scene graph.
Definition qsgnode.h:221
The QSGGeometry class provides low-level storage for graphics primitives in the \l{Qt Quick Scene Gra...
Definition qsggeometry.h:15
Combined button and popup list for selecting options.
unsigned int uint
Definition qtypes.h:34
double qreal
Definition qtypes.h:187