Location:
e32std.h
Link against: euser.lib
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.
TRegion
- Clipping region - abstract base class
RRegion
- Expandable region
Defined in RRegion
:
CheckSpare()
, Close()
, Destroy()
, RRegion()
, RRegion()
, RRegion()
, RRegion()
, RRegion()
, RRegion()
Inherited from TRegion
:
AddRect()
,
BoundingRect()
,
CheckError()
,
Clear()
,
ClipRect()
,
Contains()
,
Copy()
,
Count()
,
ERRegionBuf
,
ForceError()
,
Intersect()
,
Intersection()
,
Intersects()
,
IsContainedBy()
,
IsEmpty()
,
Offset()
,
RectangleList()
,
RectangleListW()
,
Sort()
,
SubRect()
,
SubRegion()
,
Tidy()
,
Union()
,
anonymous
,
iAllocedRects
,
iCount
,
iError
,
operator[]()
IMPORT_C RRegion(TInt aGran);
Constructs the object with the specified granularity.
|
IMPORT_C RRegion(const RRegion &aRegion);
Copy constructor.
Constructs a new object from an existing one.
|
IMPORT_C RRegion(const TRect &aRect, TInt aGran=EDefaultGranularity);
Constructs the object with the specified rectangle and granularity.
The resulting region consists of the specified single rectangle.
|
IMPORT_C RRegion(TInt aCount, TRect *aRectangleList, TInt aGran=EDefaultGranularity);
Constructor that takes ownership of an already created rectangle list.
|
IMPORT_C void Close();
Closes the region.
Frees up any memory which has been allocated, and unsets the error flag, if set.
The region is not deleted, so that it can be re-used. Its granularity is preserved.
IMPORT_C void Destroy();
Deletes the region.
Frees all memory.
Note this method will delete the RRegion object and therefore it should not be invoked on RRegion objects that are not allocated
on the heap. RRegion::Close()
should be used for RRegion objects stored on the stack.
|
inline TInt CheckSpare() const;
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.
|