#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. More... | |
| void | Dump () |
| For debugging: dump all free rectangles. | |
Protected Attributes | |
| csRect | region |
| Dimensions of this region. | |
| csSubRect* | first |
| First empty region. | |
i.e. this class represents a rectangular region from which a client can allocate smaller rectangles until the region is full.
|
|
Allocate a new rectangle. Return false if there is no room |