Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: GraphicsAccelerator.h

Class TGopFilledPolygonWithPattern

class TGopFilledPolygonWithPattern : public TGraphicsOperation;

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.

Derivation

Members

Defined in TGopFilledPolygonWithPattern:
AddPoints(), TGopFilledPolygonWithPattern(), iFillRule, iNumPoints, iPattern

Inherited from TGraphicsOperation:
Append(), EAlphaBlendOneBitmap, EAlphaBlendTwoBitmaps, EBitBlt, EBitBltAlphaBitmap, EBitBltAlphaChannel, EBitBltMasked, EBitBltTransparent, EFadeRect, EFilledPolygon, EFilledPolygonWithPattern, EFilledRect, EFilledRectUsingDrawMode, EFilledRectWithPattern, EInvertRect, EScaledBitBlt, EScaledBitBltAlphaBitmap, EScaledBitBltAlphaChannel, EScaledBitBltMasked, EScaledBitBltTransparent, Function(), Next(), Size(), TGopFunction, iFunction, iSize

See also:


Construction and destruction


TGopFilledPolygonWithPattern()

inline TGopFilledPolygonWithPattern(TGopFillPattern aPattern, CGraphicsContext::TFillRule aFillRule);

Description

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

Parameters

TGopFillPattern aPattern

The fill pattern.

CGraphicsContext::TFillRule aFillRule

Bit flags for how self-crossing polygons are filled.

[Top]


Member functions


AddPoints()

inline void AddPoints(TInt aNumPoints, TPoint *aPoints);

Description

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.

Parameters

TInt aNumPoints

The number of points in the polygon.

TPoint *aPoints

Pointer to the first point in the polygon.

[Top]


Member data


iPattern

TGopFillPattern iPattern;

Description

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


iFillRule

CGraphicsContext::TFillRule iFillRule;

Description

Bit flags for how self-crossing polygons are filled.

See also:


iNumPoints

TInt iNumPoints;

Description

The number of points in the polygon.