RRegion Class Reference

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.

Inherits from

Public Member Functions
RRegion()
RRegion(TInt)
RRegion(const RRegion &)
RRegion(const TRect &, TInt)
RRegion(TInt, TRect *, TInt)
TInt CheckSpare()
IMPORT_C voidClose()
IMPORT_C voidDestroy()
Protected Member Functions
RRegion(TInt, TInt)
Inherited Functions
TRegion::AddRect(const TRect &)
TRegion::AppendRect(const TRect &)
TRegion::AppendRegion(TRegion &)
TRegion::BoundingRect()const
TRegion::CheckError()const
TRegion::Clear()
TRegion::ClipRect(const TRect &)
TRegion::Contains(const TPoint &)const
TRegion::Copy(const TRegion &)
TRegion::Count()const
TRegion::DeleteRect(TRect *)
TRegion::ExpandRegion(TInt)
TRegion::ForceError()
TRegion::Intersect(const TRegion &)
TRegion::Intersection(const TRegion &,const TRegion &)
TRegion::Intersects(const TRect &)const
TRegion::IsContainedBy(const TRect &)const
TRegion::IsEmpty()const
TRegion::MergeRect(const TRect &,TBool)
TRegion::Offset(TInt,TInt)
TRegion::Offset(const TPoint &)
TRegion::RectangleList()const
TRegion::RectangleListW()
TRegion::SetListSize(TInt)
TRegion::ShrinkRegion()
TRegion::Sort()
TRegion::Sort(const TPoint &)
TRegion::SubRect(const TRect &,TRegion *)
TRegion::SubRegion(const TRegion &,TRegion *)
TRegion::SubtractRegion(const TRegion &,TRegion *)
TRegion::TRegion()
TRegion::TRegion(TInt)
TRegion::Tidy()
TRegion::Union(const TRegion &)
TRegion::operator[](TInt)const
Inherited Enumerations
TRegion:@23
Private Attributes
TInt iGranularity
TRect *iRectangleList
Inherited Attributes
TRegion::iAllocedRects
TRegion::iCount
TRegion::iError

Constructor & Destructor Documentation

RRegion(TInt, TInt)

IMPORT_CRRegion(TIntaBuf,
TIntaGran
)[protected]

Parameters

TInt aBuf
TInt aGran

RRegion()

IMPORT_CRRegion()

RRegion(TInt)

IMPORT_CRRegion(TIntaGran)

Parameters

TInt aGran

RRegion(const RRegion &)

IMPORT_CRRegion(const RRegion &aRegion)

Parameters

const RRegion & aRegion

RRegion(const TRect &, TInt)

IMPORT_CRRegion(const TRect &aRect,
TIntaGran = EDefaultGranularity
)

Parameters

const TRect & aRect
TInt aGran = EDefaultGranularity

RRegion(TInt, TRect *, TInt)

IMPORT_CRRegion(TIntaCount,
TRect *aRectangleList,
TIntaGran = EDefaultGranularity
)

Parameters

TInt aCount
TRect * aRectangleList
TInt aGran = EDefaultGranularity

Member Functions Documentation

CheckSpare()

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.

Close()

IMPORT_C voidClose()

Destroy()

IMPORT_C voidDestroy()

Member Data Documentation

TInt iGranularity

TInt iGranularity[private]

TRect * iRectangleList

TRect *iRectangleList[private]