1 | // Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB). |
2 | // Copyright (C) 2016 The Qt Company Ltd and/or its subsidiary(-ies). |
3 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
4 | |
5 | #ifndef QT3DRENDER_QSCISSORTEST_H |
6 | #define QT3DRENDER_QSCISSORTEST_H |
7 | |
8 | #include <Qt3DRender/qrenderstate.h> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | namespace Qt3DRender { |
13 | |
14 | class QScissorTestPrivate; |
15 | |
16 | class Q_3DRENDERSHARED_EXPORT QScissorTest : public QRenderState |
17 | { |
18 | Q_OBJECT |
19 | Q_PROPERTY(int left READ left WRITE setLeft NOTIFY leftChanged) |
20 | Q_PROPERTY(int bottom READ bottom WRITE setBottom NOTIFY bottomChanged) |
21 | Q_PROPERTY(int width READ width WRITE setWidth NOTIFY widthChanged) |
22 | Q_PROPERTY(int height READ height WRITE setHeight NOTIFY heightChanged) |
23 | |
24 | public: |
25 | explicit QScissorTest(Qt3DCore::QNode *parent = nullptr); |
26 | ~QScissorTest(); |
27 | |
28 | int left() const; |
29 | int bottom() const; |
30 | int width() const; |
31 | int height() const; |
32 | |
33 | public Q_SLOTS: |
34 | void setLeft(int left); |
35 | void setBottom(int bottom); |
36 | void setWidth(int width); |
37 | void setHeight(int height); |
38 | |
39 | Q_SIGNALS: |
40 | void leftChanged(int left); |
41 | void bottomChanged(int bottom); |
42 | void widthChanged(int width); |
43 | void heightChanged(int height); |
44 | |
45 | private: |
46 | Q_DECLARE_PRIVATE(QScissorTest) |
47 | }; |
48 | |
49 | } // namespace Qt3DRender |
50 | |
51 | QT_END_NAMESPACE |
52 | |
53 | #endif // QT3DRENDER_QSCISSORTEST_H |
54 | |