|
||
class TRegionFix : public TRegion;
A fixed size region.
The region consists of a fixed number of rectangles; this number is specified in the templated argument. The region cannot be expanded to contain more than this number of rectangles. If an attempt is made to do so, the region's error flag is set, and the region is cleared.
Note that when adding a rectangle to a region, if that rectangle overlaps an existing rectangle, the operation causes more than one rectangle to be created.
TRegion
-
Clipping region - abstract base class.
TRegionFix
- A fixed size region.
Defined in TRegionFix
:
TRegionFix()
Constructs a default fixed size region. TRegionFix(const TRect &)
Constructs a fixed size region with a TRect.TRegionFix(const TRegionFix< S > &)
Copy constructor.Inherited from TRegion
:
AddRect(const TRect &)
Adds a rectangle to this region.BoundingRect()const
Gets the minimal rectangle that bounds the entire region.CheckError()const
Tests whether the region's error flag is set.Clear()
Clears this region.ClipRect(const TRect &)
Clips the region to the specified rectangle.Contains(const TPoint &)const
Tests whether a point is located within the region.Copy(const TRegion &)
Copies another region to this region.Count()const
Gets the number of rectangles in this region.ERRegionBuf
ForceError()
Sets the error flag, and clears the region.Intersect(const TRegion &)
Replaces this region with the area of intersection between it and the specified ...Intersection(const TRegion &,const TRegion &)
Replaces this region with the area of intersection between two specified regions...Intersects(const TRect &)const
Tests whether where there is any intersection between this region and the specif...IsContainedBy(const TRect &)const
Tests whether the region is fully enclosed within the specified rectangle.IsEmpty()const
Tests whether the region is empty.Offset(TInt,TInt)
Moves the region by adding X and Y offsets to the co-ordinates of its corners.Offset(const TPoint &)
Moves the region by adding a TPoint offset to the co-ordinates of its corners.RectangleList()const
Gets a pointer to the array of rectangles defining this region.RectangleListW()
Sort()
Sorts the region's array of rectangles according to their vertical position on t...Sort(const TPoint &)
Sorts the region's array of rectangles according to a specified sort order.SubRect(const TRect &,TRegion *)
Removes a rectangle from this region.SubRegion(const TRegion &,TRegion *)
Removes a region.TRegion(TInt)
Tidy()
Merges all rectangles within this region which share an adjacent edge of the sam...Union(const TRegion &)
Replaces this region with the union of it and the specified region.anonymous
iAllocedRects
iCount
iError
operator[](TInt)const
Gets a rectangle from the region.inline TRegionFix(const TRect &aRect);
Constructs a fixed size region with a TRect
.
|
inline TRegionFix(const TRegionFix< S > &aRegion);
Copy constructor.
|