QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskClipNode.h
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#ifndef QSK_CLIP_NODE_H
7#define QSK_CLIP_NODE_H
8
9#include "QskGlobal.h"
10#include <qsgnode.h>
11
14
15class QQuickWindow;
16
17class QSK_EXPORT QskClipNode : public QSGClipNode
18{
19 using Inherited = QSGClipNode;
20
21 public:
23 ~QskClipNode() override;
24
25 void setRect( const QRectF& );
26 void setRegion( const QRectF&, const QRectF& excludedRect );
27
28 void setBox( const QQuickWindow*, const QRectF&,
30
31 QRectF boundingRectangle() const;
32
33 private:
34 void reset();
35
36 void setIsRectangular( bool ) = delete;
37 void setClipRect( const QRectF& ) = delete;
38 QRectF clipRect() const = delete;
39
40 QskHashValue m_hash;
41 QSGGeometry m_geometry;
42};
43
44inline QRectF QskClipNode::boundingRectangle() const
45{
46 return Inherited::clipRect();
47}
48
49#endif