csSubRectangles Class Reference
[Geometry utilities]
A class managing allocations of sub-rectangles.
More...
#include <subrec.h>
Public Methods | |
csSubRectangles (const csRect ®ion) | |
Allocate a new empty region with the given size. | |
~csSubRectangles () | |
Remove this region and sub-regions. | |
const csRect & | GetRectangle () const |
Get the rectangle for this region. | |
void | Clear () |
Free all rectangles in this region. | |
bool | Alloc (int w, int h, csRect &rect) |
Allocate a new rectangle. | |
void | Dump () |
For debugging: dump all free rectangles. | |
Protected Attributes | |
csRect | region |
Dimensions of this region. | |
csSubRect * | first |
First empty region. |
Detailed Description
A class managing allocations of sub-rectangles.i.e. this class represents a rectangular region from which a client can allocate smaller rectangles until the region is full.
Definition at line 51 of file subrec.h.
Constructor & Destructor Documentation
|
Allocate a new empty region with the given size.
|
|
Remove this region and sub-regions.
|
Member Function Documentation
|
Allocate a new rectangle. Return false if there is no room |
|
Free all rectangles in this region.
|
|
For debugging: dump all free rectangles.
|
|
Get the rectangle for this region.
|
Member Data Documentation
|
First empty region.
|
|
Dimensions of this region.
|
The documentation for this class was generated from the following file:
- csgeom/subrec.h
Generated for Crystal Space by doxygen 1.2.18