![]() |
Qt 6.x
The Qt SDK
|
#include <qsgareaallocator_p.h>
Collaboration diagram for QSGAreaAllocator:Public Member Functions | |
| QSGAreaAllocator (const QSize &size) | |
| ~QSGAreaAllocator () | |
| QRect | allocate (const QSize &size) |
| bool | deallocate (const QRect &rect) |
| bool | isEmpty () const |
| QSize | size () const |
| QByteArray | serialize () |
| const char * | deserialize (const char *data, int size) |
Definition at line 26 of file qsgareaallocator_p.h.
| QSGAreaAllocator::QSGAreaAllocator | ( | const QSize & | size | ) |
Definition at line 59 of file qsgareaallocator.cpp.
| QSGAreaAllocator::~QSGAreaAllocator | ( | ) |
Definition at line 64 of file qsgareaallocator.cpp.
Definition at line 69 of file qsgareaallocator.cpp.
Referenced by QSGRhiAtlasTexture::Atlas::create(), QSGCompressedAtlasTexture::Atlas::create(), and QSGRhiDistanceFieldGlyphCache::requestGlyphs().
Here is the caller graph for this function:| bool QSGAreaAllocator::deallocate | ( | const QRect & | rect | ) |
Definition at line 76 of file qsgareaallocator.cpp.
References rect.
Referenced by QSGRhiAtlasTexture::AtlasBase::remove(), and QSGRhiDistanceFieldGlyphCache::requestGlyphs().
Here is the caller graph for this function:| const char * QSGAreaAllocator::deserialize | ( | const char * | data, |
| int | size | ||
| ) |
Definition at line 335 of file qsgareaallocator.cpp.
References QList< T >::isEmpty(), QSGAreaAllocatorNode::isOccupied, QSGAreaAllocatorNode::left, QStack< T >::pop(), QStack< T >::push(), Q_ASSERT, qWarning, QSGAreaAllocatorNode::right, size(), QSGAreaAllocatorNode::split, and QSGAreaAllocatorNode::splitType.
Here is the call graph for this function:
|
inline |
Definition at line 34 of file qsgareaallocator_p.h.
| QByteArray QSGAreaAllocator::serialize | ( | ) |
Definition at line 294 of file qsgareaallocator.cpp.
References QVarLengthArray< T, Prealloc >::append(), QSize::height(), QList< T >::isEmpty(), QSGAreaAllocatorNode::isOccupied, QSGAreaAllocatorNode::left, QStack< T >::pop(), QStack< T >::push(), ret, QSGAreaAllocatorNode::right, QVLABaseBase::size(), QSGAreaAllocatorNode::split, QSGAreaAllocatorNode::splitType, and QSize::width().
Here is the call graph for this function:
|
inline |
Definition at line 35 of file qsgareaallocator_p.h.
Referenced by deserialize().
Here is the caller graph for this function: