class RRegion : public TRegion |
Expandable region.
This class provides for the construction and destruction of a TRegion, including a granularity for expanding the region. A region;s granularity represents the number of memory slots allocated when the object is created, and the number of new memory slots allocated each time an RRegion is expanded beyond the number of free slots. The default granularity is five.
Public Member Functions | |
---|---|
RRegion() | |
RRegion(TInt) | |
RRegion(const RRegion &) | |
RRegion(const TRect &, TInt) | |
RRegion(TInt, TRect *, TInt) | |
TInt | CheckSpare() |
IMPORT_C void | Close() |
IMPORT_C void | Destroy() |
Protected Member Functions | |
---|---|
RRegion(TInt, TInt) |
Inherited Enumerations | |
---|---|
TRegion:@23 |
Private Attributes | |
---|---|
TInt | iGranularity |
TRect * | iRectangleList |
Inherited Attributes | |
---|---|
TRegion::iAllocedRects | |
TRegion::iCount | |
TRegion::iError |
IMPORT_C | RRegion | ( | TInt | aCount, |
TRect * | aRectangleList, | |||
TInt | aGran = EDefaultGranularity | |||
) |
TInt | CheckSpare | ( | ) | const [inline] |
Gets the number of free memory slots in the region.
This is the number of slots which have been allocated, minus the number in use.
The number of free memory slots in the region.