Symbian
Symbian OS Library

SYMBIAN OS V9.3

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



Location: GraphicsAccelerator.h

Class TGopFilledPolygon

class TGopFilledPolygon : public TGraphicsOperation;

Description

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

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.

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

Derivation

Members

Defined in TGopFilledPolygon:
AddPoints(), TGopFilledPolygon(), iColor, iFillRule, iNumPoints

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


TGopFilledPolygon()

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()

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