![]() |
Public API Reference |
#include <subrec.h>
Public Methods | |
| csSubRectangles (const csRect ®ion) | |
| Allocate a new empty region with the given size. More... | |
| ~csSubRectangles () | |
| 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... | |
| bool | Alloc (int w, int h, csRect &rect) |
| Allocate a new rectangle. More... | |
| void | Dump () |
| For debugging: dump all free rectangles. More... | |
Protected Attributes | |
| csRect | region |
| Dimensions of this region. More... | |
| csSubRect * | first |
| 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 51 of file subrec.h.
|
|
Allocate a new empty region with the given size.
|
|
|
Remove this region and sub-regions.
|
|
||||||||||||||||
|
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.
|
|
|
First empty region.
|
|
|
Dimensions of this region.
|