CNvgEngine Class Reference
| class CNvgEngine : public CBase |
| Private Member Functions |
|---|
| CNvgEngine() |
| void | ApplyRotation() |
| void | ApplyScissoring(VGfloat, const TSize &) |
| void | ApplyViewboxToViewPortTransformationL(const TSize &, TReal32, TReal32, TReal32, TReal32) |
| void | ClearBackground() |
| void | ConstructL() |
|
TInt
| CreatePathHandle(TInt16, TReal32, TReal32) |
| void | DoDrawNVGL(const TDesC8 &, const TSize &, CFbsBitmap *, CFbsBitmap *) |
|
TInt
| DrawCommandSectionL(TDereferencer *, const TSize &, CFbsBitmap *, CFbsBitmap *) |
| void | DrawPathL(TDereferencer *) |
|
TInt
| DrawTLVL(const TDesC8 &, const TSize &, CFbsBitmap *, CFbsBitmap *) |
| void | ExecuteNVGCSCommandLoopL(TUint16, TDereferencer *, TDereferencer *, TDereferencer *, TInt) |
| void | GenerateMask(CFbsBitmap *) |
|
TPoint
| GetTranslatedPoint(VGfloat, TPoint) |
|
TInt
| InitializeGC() |
|
TBool
| IsIdentity(VGfloat) |
|
VGfloat
| MaxVal4(VGfloat, VGfloat, VGfloat, VGfloat) |
|
VGfloat
| MinVal4(VGfloat, VGfloat, VGfloat, VGfloat) |
| void | RestoreClientMatrices() |
|
TInt
| SetColorRampL(TDereferencer *) |
|
TInt
| SetFillPaintL(TDereferencer *) |
| void | SetStrokeMiterLimit(const TUint8 *) |
| void | SetStrokePaintL(TDereferencer *) |
| void | SetStrokeWidth(const TUint8 *) |
| void | SetTransformL(TDereferencer *, TUint32 &, const VGfloat *) |
| void | UpdateClientMatrices() |
Constructor & Destructor Documentation
Member Functions Documentation
ApplyRotation()
| void | ApplyRotation | ( | ) | [private] |
ApplyScissoring(VGfloat, const TSize &)
| void | ApplyScissoring | ( | VGfloat | aMatrix, |
| | const TSize & | aTargetSize |
| | ) | [private] |
ApplyViewboxToViewPortTransformationL(const TSize &, TReal32, TReal32, TReal32, TReal32)
Applies viewbox to viewport transformation
ClearBackground()
| void | ClearBackground | ( | ) | [private] |
To clear the background of the target
ConstructL()
| void | ConstructL | ( | ) | [private] |
ContentDimensions(const TDesC8 &)
Parameters
| const TDesC8 & aBuf | NVG byte data of the file |
CreateNVGIcon(const TDesC8 &, const TSize &)
Parameters
| const TDesC8 & aBuf | byte data of NVG file aSize Size in pixels of the target |
| const TSize & aSize | |
CreatePathHandle(TInt16, TReal32, TReal32)
DoDrawNVGL(const TDesC8 &, const TSize &, CFbsBitmap *, CFbsBitmap *)
DrawCommandSectionL(TDereferencer *, const TSize &, CFbsBitmap *, CFbsBitmap *)
DrawNvg(const TDesC8 &, const TSize &, CFbsBitmap *, CFbsBitmap *)
Parameters
| const TDesC8 & aBuf | byte data of NVG file aSize Size in pixels of the target aDstBitmap Target bitmap aMask Target mask |
| const TSize & aSize | |
| CFbsBitmap * aDstBitmap | |
| CFbsBitmap * aMask | |
DrawPathL(TDereferencer *)
Call vgDrawPath in OpenVG
DrawTLVL(const TDesC8 &, const TSize &, CFbsBitmap *, CFbsBitmap *)
ExecuteNVGCSCommandLoopL(TUint16, TDereferencer *, TDereferencer *, TDereferencer *, TInt)
Executes the nvg-cs commands
GenerateMask(CFbsBitmap *)
Generate Mask for modes not supported by custom binding API
GetTranslatedPoint(VGfloat, TPoint)
Point transforms according to the given matrix
InitializeGC()
|
TInt
| InitializeGC | ( | ) | [private] |
Initializes the OpenVg handles
IsIdentity(VGfloat)
Checks whether the given matrix is identity
MaxVal4(VGfloat, VGfloat, VGfloat, VGfloat)
Gives the maximum of the given arguments
MinVal4(VGfloat, VGfloat, VGfloat, VGfloat)
Gives the minimum of the given arguments
OpenVGErrorToSymbianError(TInt)
|
TInt
| OpenVGErrorToSymbianError | ( | TInt | aError | ) | [static] |
ResetNvgState()
| IMPORT_C void | ResetNvgState | ( | ) | |
RestoreClientMatrices()
| void | RestoreClientMatrices | ( | ) | [private] |
Restores the callres matrix mode and matricies
Rotate(TReal32, TReal32, TReal32)
Parameters
| TReal32 aAngle | counter-clockwise rotation by a given angle (expressed in degrees) aX, aY point around which the rotation must take place |
| TReal32 aX | |
| TReal32 aY | |
SetBackgroundColor(TUint32)
| IMPORT_C void | SetBackgroundColor | ( | TUint32 | aRGBA8888Color | ) | |
Parameters
| TUint32 aRGBA8888Color | colour in 32 bit RGBA format |
SetColorRampL(TDereferencer *)
SetFillPaintL(TDereferencer *)
SetPaint gradient or solid in OpenVG
SetPreserveAspectRatio(TNvgAlignStatusType, TNvgMeetOrSliceType)
SetStrokeMiterLimit(const TUint8 *)
| void | SetStrokeMiterLimit | ( | const TUint8 * | aBuf | ) | [private] |
SetStrokePaintL(TDereferencer *)
Set stroke color in Openvg
SetStrokeWidth(const TUint8 *)
| void | SetStrokeWidth | ( | const TUint8 * | aBuf | ) | [private] |
SetTransformL(TDereferencer *, TUint32 &, const VGfloat *)
call SetTranslate in OpenVG
SetVGImageBinder(MVGImageBinder *)
UpdateClientMatrices()
| void | UpdateClientMatrices | ( | ) | [private] |
Stores the callres matrix mode and matricies
Member Data Documentation
TSize
iCurrentBufferSize
|
TSize
| iCurrentBufferSize | [private] |
CNvgFitToViewBoxImpl * iFitToViewBoxImpl
TNVGEngineInternal * iInternal
| TNVGEngineInternal * | iInternal | [private] |
This class is added to maintain BC. If you want to add new member variable you can add in this class, without breaking BC. It is better to add members which are depend on macro's in this class.
TInt16
iLastPathDataType
|
TInt16
| iLastPathDataType | [private] |
VGint
iMatrixMode
|
VGint
| iMatrixMode | [private] |
TNvgAlignStatusType
iPreserveAspectSetting
TBool
iRotateApplied
|
TBool
| iRotateApplied | [private] |
TNvgMeetOrSliceType
iSmilFitSetting
TInt
iStrokeAlpha
|
TInt
| iStrokeAlpha | [private] |
TReal32
iStrokePaintMatrix
|
TReal32
| iStrokePaintMatrix | [private] |
TUint32
iUserStrokePaintColor
|
TUint32
| iUserStrokePaintColor | [private] |
MVGImageBinder * iVGImageBinder
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.