Location:
e32std.h
Link against: euser.lib
RRegion
Supported from 5.0
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.
|
Defined in RRegion
:
CheckSpare()
, Close()
, Destroy()
, RRegion()
Inherited from TRegion
:
AddRect()
,
BoundingRect()
,
CheckError()
,
Clear()
,
ClipRect()
,
Contains()
,
Copy()
,
Count()
,
ForceError()
,
Intersect()
,
Intersection()
,
IsContainedBy()
,
IsEmpty()
,
Offset()
,
RectangleList()
,
Sort()
,
SubRect()
,
SubRegion()
,
Tidy()
,
Union()
,
operator[]()
RRegion(TInt aGran);
Constructs the object with the specified granularity.
|
RRegion(const RRegion& aRegion);
Copy constructor — constructs a new
TRegion
object from an existing one.
|
RRegion(const TRect& aRect,TInt aGran=EDefaultGranularity);
Constructs the object with the specified rectangle and a granularity. The resulting region consists of the specified single rectangle.
|
void Close();
Clears 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.
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.
|