Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <GraphicsAccelerator.h>

Class TGopFilledPolygon

class TGopFilledPolygon : public TGraphicsOperation;

Description

An accelerated graphics operation that fills a polygon with a colour.

TGopFilledPolygon::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.

How a graphics accelerator can fill polygons is given by TGraphicsAcceleratorCaps::iPolygon.

Derivation

Members

Defined in TGopFilledPolygon:

Inherited from TGraphicsOperation:

See also:


Construction and destruction


TGopFilledPolygon(TRgb,CGraphicsContext::TFillRule)

inline TGopFilledPolygon(TRgb aColor, CGraphicsContext::TFillRule aFillRule);

Description

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

Parameters

TRgb aColor

The fill colour.

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.

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

Parameters

TInt aNumPoints

The number of points in the polygon.

TPoint *aPoints

Pointer to the first point in the polygon.

[Top]


Member data


iColor

TRgb iColor;

Description

The fill colour.


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.