Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qsgareaallocator_p.h>
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().
bool QSGAreaAllocator::deallocate | ( | const QRect & | rect | ) |
Definition at line 76 of file qsgareaallocator.cpp.
References rect.
Referenced by QSGRhiAtlasTexture::AtlasBase::remove(), and QSGRhiDistanceFieldGlyphCache::requestGlyphs().
const char * QSGAreaAllocator::deserialize | ( | const char * | data, |
int | size ) |
Definition at line 335 of file qsgareaallocator.cpp.
References QSGAreaAllocatorNode::isOccupied, QSGAreaAllocatorNode::left, Q_ASSERT, qWarning, QSGAreaAllocatorNode::right, size(), QSGAreaAllocatorNode::split, and QSGAreaAllocatorNode::splitType.
|
inline |
Definition at line 34 of file qsgareaallocator_p.h.
QByteArray QSGAreaAllocator::serialize | ( | ) |
Definition at line 294 of file qsgareaallocator.cpp.
References QSize::height(), QSGAreaAllocatorNode::isOccupied, QSGAreaAllocatorNode::left, QByteArray::resize(), ret, QSGAreaAllocatorNode::right, QSGAreaAllocatorNode::split, QSGAreaAllocatorNode::splitType, and QSize::width().
|
inline |
Definition at line 35 of file qsgareaallocator_p.h.
Referenced by deserialize().