Sub-rectangle.
More...
#include <csgeom/subrec.h>
List of all members.
Protected Member Functions |
SubRect * | Alloc (int w, int h, const AllocInfo &ai, csRect &r) |
| Do the actual allocation.
|
void | DecideBestSplit (const csRect &rect, int splitX, int splitY, SubRect::SplitType &splitType) |
| Decide whether a H or V split is better.
|
const csRect & | GetAllocedRect () const |
| Return the area allocated from this subrectangle.
|
const csRect & | GetRect () const |
| Return the area this subrectangle covers.
|
bool | IsEmpty () const |
| Test if allocated area is empty.
|
void | MakeEmpty () |
| Clear allocated area.
|
void | Reclaim () |
| De-allocate.
|
void | TestAlloc (int w, int h, AllocInfo &ai) |
| searches for the "ideal" position of a rectangle
|
void | TestCollapse () |
| Test whether both children are empty.
|
Friends |
class | csBlockAllocator< SubRect > |
Detailed Description
Sub-rectangle.
Definition at line 54 of file subrec.h.
Member Function Documentation
Do the actual allocation.
Decide whether a H or V split is better.
The better split is the one where the bigger chunk results.
Return the area allocated from this subrectangle.
Definition at line 103 of file subrec.h.
Return the area this subrectangle covers.
Definition at line 101 of file subrec.h.
Test if allocated area is empty.
Definition at line 108 of file subrec.h.
Clear allocated area.
Definition at line 105 of file subrec.h.
searches for the "ideal" position of a rectangle
Test whether both children are empty.
The documentation for this class was generated from the following file: