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>.
Loading...
Searching...
No Matches
QSGAreaAllocator Class Reference

#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)
 

Detailed Description

Definition at line 26 of file qsgareaallocator_p.h.

Constructor & Destructor Documentation

◆ QSGAreaAllocator()

QSGAreaAllocator::QSGAreaAllocator ( const QSize & size)

Definition at line 59 of file qsgareaallocator.cpp.

◆ ~QSGAreaAllocator()

QSGAreaAllocator::~QSGAreaAllocator ( )

Definition at line 64 of file qsgareaallocator.cpp.

Member Function Documentation

◆ allocate()

QRect QSGAreaAllocator::allocate ( const QSize & size)

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:

◆ deallocate()

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:

◆ deserialize()

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.

+ Here is the call graph for this function:

◆ isEmpty()

bool QSGAreaAllocator::isEmpty ( ) const
inline

Definition at line 34 of file qsgareaallocator_p.h.

◆ serialize()

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().

+ Here is the call graph for this function:

◆ size()

QSize QSGAreaAllocator::size ( ) const
inline

Definition at line 35 of file qsgareaallocator_p.h.

Referenced by deserialize().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: