Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <GraphicsAccelerator.h>

Class TGopFilledPolygonWithPattern

class TGopFilledPolygonWithPattern : public TGraphicsOperation;

Description

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

TGopFilledPolygonWithPattern::AddPoints(TInt,TPoint *) 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:

Inherited from TGraphicsOperation:

See also:


Construction and destruction


TGopFilledPolygonWithPattern(TGopFillPattern,CGraphicsContext::TFillRule)

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(TInt,TPoint *)

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

Description

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

TGopFilledPolygonWithPattern::AddPoints(TInt,TPoint *) 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.