TGopFilledPolygonWithPattern Class Reference

#include <graphicsaccelerator.h>

class TGopFilledPolygonWithPattern : public TGraphicsOperation

Inherits from

Detailed Description

An accelerated graphics operation that fills a polygon with a pattern held in another bitmap.

AddPoints() must be called to specify the polygon to be filled. Objects of this class can be passed to a graphics accelerator's Operation() function either individually, or in a buffer.

See also: TGraphicsAcceleratorCaps::iPolygon TGopFillPattern

Member Attribute Documentation

iFillRule

Bit flags for how self-crossing polygons are filled.

See also: CGraphicsContext::TFillRule

iNumPoints

TInt iNumPoints

The number of points in the polygon.

iPattern

TGopFillPattern iPattern

The pattern of bitmaps that is used to fill the polygon.

Constructor & Destructor Documentation

TGopFilledPolygonWithPattern ( TGopFillPattern, CGraphicsContext::TFillRule )

TGopFilledPolygonWithPattern(TGopFillPatternaPattern,
CGraphicsContext::TFillRuleaFillRule
)[inline]

Constructor with a fill pattern and a fill rule. The number of points is initialised to zero.

ParameterDescription
aPatternThe fill pattern.
aFillRuleBit flags for how self-crossing polygons are filled.

Member Function Documentation

AddPoints ( TInt, TPoint * )

voidAddPoints(TIntaNumPoints,
TPoint *aPoints
)[inline]

Specifies the polygon to be filled as a number of 2D point coordinates.

AddPoints() should only be called once the TGopFilledPolygonWithPattern object has been stored into a buffer. There must be enough room in the buffer after the TGopFilledPolygonWithPattern object to hold aNumPoints TPoint sized structures. This is because the points are copied into the memory space directly following the TGopFilledPolygonWithPattern object.

ParameterDescription
aNumPointsThe number of points in the polygon.
aPointsPointer to the first point in the polygon.