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 QT3DEXTRAS_AREAALLOCATOR_P_H |
5 | #define |
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 | // |
19 | // This file is copied from qtdeclarative/src/quick/scenegraph/util/qsgareaallocator_p.h |
20 | // |
21 | |
22 | #include <QtCore/qsize.h> |
23 | #include <private/qglobal_p.h> |
24 | |
25 | QT_BEGIN_NAMESPACE |
26 | |
27 | class QRect; |
28 | class QPoint; |
29 | |
30 | namespace Qt3DExtras { |
31 | |
32 | struct ; |
33 | |
34 | class |
35 | { |
36 | public: |
37 | (const QSize &size); |
38 | (); |
39 | |
40 | QRect (const QSize &size); |
41 | bool (const QRect &rect); |
42 | bool () const { return m_root == 0; } |
43 | QSize () const { return m_size; } |
44 | private: |
45 | bool (const QSize &size, QPoint &result, const QRect ¤tRect, AreaAllocatorNode *node); |
46 | bool (const QPoint &pos, AreaAllocatorNode *node); |
47 | void (AreaAllocatorNode *node); |
48 | |
49 | AreaAllocatorNode *; |
50 | QSize ; |
51 | }; |
52 | |
53 | } // namespace Qt3DExtras |
54 | |
55 | QT_END_NAMESPACE |
56 | |
57 | #endif // QT3DEXTRAS_AREAALLOCATOR_P_H |
58 | |