![]() |
Public API Reference |
#include <subrec2.h>
Public Methods | |
csSubRectangles2 (const csRect ®ion) | |
Allocate a new empty region with the given size. More... | |
~csSubRectangles2 () | |
Remove this region and sub-regions. More... | |
const csRect & | GetRectangle () const |
Get the rectangle for this region. More... | |
void | Clear () |
Free all rectangles in this region. More... | |
csSubRect2 * | Alloc (int w, int h, csRect &rect) |
Allocate a new rectangle. More... | |
void | Reclaim (csSubRect2 *subrect) |
Reclaim a subrectangle. More... | |
void | Dump () |
For debugging: dump all free rectangles. More... | |
Protected Attributes | |
csRect | region |
Dimensions of this region. More... | |
csSubRect2 * | root |
First empty region. More... |
i.e. this class represents a rectangular region from which a client can allocate smaller rectangles until the region is full.
Definition at line 38 of file subrec2.h.
|
Allocate a new empty region with the given size.
|
|
Remove this region and sub-regions.
|
|
Allocate a new rectangle. Returns 0 if there is no room |
|
Free all rectangles in this region.
|
|
For debugging: dump all free rectangles.
|
|
Get the rectangle for this region.
|
|
Reclaim a subrectangle.
|
|
Dimensions of this region.
|
|
First empty region.
|