OpenCoverage

qsgareaallocator_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/util/qsgareaallocator_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4class QRect;-
5class QPoint;-
6struct QSGAreaAllocatorNode;-
7class __attribute__((visibility("default"))) QSGAreaAllocator-
8{-
9public:-
10 QSGAreaAllocator(const QSize &size);-
11 ~QSGAreaAllocator();-
12-
13 QRect allocate(const QSize &size);-
14 bool deallocate(const QRect &rect);-
15 bool isEmpty() const { return
never executed: return m_root == nullptr;
m_root == nullptr;
never executed: return m_root == nullptr;
}
0
16 QSize size() const { return
never executed: return m_size;
m_size;
never executed: return m_size;
}
0
17private:-
18 bool allocateInNode(const QSize &size, QPoint &result, const QRect &currentRect, QSGAreaAllocatorNode *node);-
19 bool deallocateInNode(const QPoint &pos, QSGAreaAllocatorNode *node);-
20 void mergeNodeWithNeighbors(QSGAreaAllocatorNode *node);-
21-
22 QSGAreaAllocatorNode *m_root;-
23 QSize m_size;-
24};-
25-
26-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0