CSvgEngineInterfaceImpl Class Reference

class CSvgEngineInterfaceImpl : public CBase

This class implements the interface for a SVGT Engine, providing methods to load svg contents and manipulate the output, such as zooming, panning and rotating the display.

Inherits from

  • CSvgEngineInterfaceImpl
Public Member Functions
CSvgEngineInterfaceImpl()
~CSvgEngineInterfaceImpl()
IMPORT_C voidADDCloseTo(CGfxGeneralPath *)
IMPORT_C voidADDCurveTo(CGfxGeneralPath *, TReal32, TReal32, TReal32, TReal32, TReal32, TReal32)
IMPORT_C voidADDLineTo(CGfxGeneralPath *, TReal32, TReal32)
IMPORT_C voidADDMoveTo(CGfxGeneralPath *, TReal32, TReal32)
IMPORT_C voidADDQuadTo(CGfxGeneralPath *, TReal32, TReal32, TReal32, TReal32)
IMPORT_C voidActivateObjectInFocus()
IMPORT_C voidAddAnimationListener(MSvgAnimationListener *, TInt)
IMPORT_C CSvgElementImpl *AddExternalData(CSvgDocumentImpl *, const TDesC &, const TDesC8 &, TBool, TInt, TInt)
IMPORT_C voidAddHyperlinkListener(MSvgHyperlinkListener *, TInt)
IMPORT_C voidAddListener(const MSvgListener *, TSvgListenerType, TInt)
IMPORT_C TBoolAddTextAreaListener(MSvgTextAreaListener *, TInt)
IMPORT_C TBoolAddTextListener(MSvgTextListener *, TInt)
IMPORT_C voidAddToEventReceiverList(CXmlElementImpl *, const TUint8)
IMPORT_C voidAppendChild(CXmlElementImpl *, CXmlElementImpl *, TBool)
IMPORT_C voidAssignImageData(const TDesC &, HBufC8 *)
IMPORT_C voidCancelLoad(TInt)
IMPORT_C voidChooseViewBoxIfNotSet(TInt)
IMPORT_C voidClearFrameBuffer(CFbsBitmap *, TUint32, TInt)
IMPORT_C TSizeContentDimensions(TInt)
IMPORT_C voidContentDimensions(TReal32 &, TReal32 &, TInt)
IMPORT_C TSizeContentDimensionsInPercentage(TInt)
IMPORT_C CXmlElementImpl *CreateElementL(CSvgDocumentImpl *, TInt)
IMPORT_C TIntCurrentState(TInt)
EXPORT_C voidCustomOption(TBool, TInt)
IMPORT_C MSvgError *DeleteDom(TInt)
IMPORT_C voidDestroy()
IMPORT_C voidDestroyDocument(CSvgDocumentImpl *)
IMPORT_C voidDestroyElement(CXmlElementImpl *)
IMPORT_C voidDestroyEngine(CSvgEngineImpl *)
IMPORT_C voidDispatchFocusInEvent(CSvgDocumentImpl *, CSvgElementImpl *)
IMPORT_C voidDispatchFocusOutEvent(CSvgDocumentImpl *, CSvgElementImpl *)
IMPORT_C TIntDispatchMouseEventsAt(CSvgDocumentImpl *, TInt, TInt, MSvgMouseListener *)
IMPORT_C CSvgElementImpl *DrawBox(TRect, TInt)
IMPORT_C TUint32Duration(TInt)
IMPORT_C voidFillDocumentL(CSvgDocumentImpl *, const TDesC16 &)
IMPORT_C voidFindAllElements(CSvgElementImpl *, TInt, RPointerArray< CSvgElementImpl > &, TInt)
IMPORT_C TRectFocusNext()
IMPORT_C TRectFocusPrevious()
IMPORT_C TRealFramesPerSecond(TBool, TInt)
IMPORT_C voidGenerateMask(CFbsBitmap *, TInt)
IMPORT_C voidGetElementBoundingbox(CSvgElementImpl *, TReal32 &, TReal32 &, TReal32 &, TReal32 &)
IMPORT_C CXmlElementImpl *GetElementById(CSvgDocumentImpl *, const TDesC &)
IMPORT_C TInt32GetElementColorAttribute(CSvgElementImpl *, const TInt)
IMPORT_C TIntGetElementDesAttribute(CSvgElementImpl *, const TInt, TPtrC16 &)
IMPORT_C TReal32GetElementFloatAttribute(CSvgElementImpl *, const TInt)
IMPORT_C TIntGetElementType(CXmlElementImpl *)
IMPORT_C voidGetElementUnScaledBoundingBox(CSvgElementImpl *, TReal32 &, TReal32 &, TReal32 &, TReal32 &)
IMPORT_C TIntGetEnumAttribute(CSvgElementImpl *, const TInt, TInt32 &)
IMPORT_C voidGetExternalListItemL(CSvgDocumentImpl *, TInt, TPtrC16 &)
IMPORT_C TIntGetExternalListSize(CSvgDocumentImpl *)
IMPORT_C CXmlElementImpl *GetFirstChild(CXmlElementImpl *)
IMPORT_C CXmlElementImpl *GetFocusedElement(CSvgDocumentImpl *)
IMPORT_C voidGetFourPointElementBoundingBox(CSvgTextElementImpl *, TPoint &, TPoint &, TPoint &, TPoint &)
IMPORT_C TDesC *GetId(CSvgDocumentImpl *, TInt)
IMPORT_C voidGetMatrixAttribute(CXmlElementImpl *, float *, float *, float *, float *, float *, float *)
IMPORT_C voidGetMatrixAttribute(CXmlElementImpl *, TInt, float *, float *, float *, float *, float *, float *)
IMPORT_C CXmlElementImpl *GetNextSibling(CXmlElementImpl *)
IMPORT_C TIntGetNumberOfIds(CSvgDocumentImpl *)
IMPORT_C CSvgDocumentImpl *GetOwnerDocument(CXmlElementImpl *)
IMPORT_C CXmlElementImpl *GetParentElement(CXmlElementImpl *)
IMPORT_C CGfxGeneralPath *GetPathAttribute(CXmlElementImpl *, TInt)
IMPORT_C TBoolGetRectAttribute(CXmlElementImpl *, float *, float *, float *, float *)
IMPORT_C TRenderingQualityGetRenderQuality()
IMPORT_C CXmlElementImpl *GetRootElement(CSvgDocumentImpl *)
IMPORT_C TIntGetSegmentCount(CGfxGeneralPath *)
IMPORT_C TReal32GetSegmentParameter(CGfxGeneralPath *, TInt, TInt)
IMPORT_C TIntGetSegmentType(CGfxGeneralPath *, TInt)
IMPORT_C TRectGetSvgBoundingBox(TInt)
IMPORT_C TBoolGetTextForTextAreaElement(TInt, TBool &, TDes &)
IMPORT_C TBoolGetTextForTextElement(TInt, TBool &, TDes &)
IMPORT_C TSizeGetUnscaledContentSize(TInt)
IMPORT_C TIntGetViewportHeight(CSvgDocumentImpl *)
IMPORT_C TIntGetViewportUnits(CSvgDocumentImpl *)
IMPORT_C TIntGetViewportWidth(CSvgDocumentImpl *)
IMPORT_C voidInitRootElement(CSvgDocumentImpl *)
IMPORT_C voidInitSvgStylePropertiesWithNullL(CSvgElementImpl *)
IMPORT_C voidInitializeEngine(CSvgEngineImpl *, TBool)
IMPORT_C TBoolIsContentInteractive(CSvgDocumentImpl *, TInt)
IMPORT_C TBoolIsElementActive(CSvgElementImpl *)
IMPORT_C TBoolIsElementVisible(TInt, TInt)
IMPORT_C TBoolIsLoading(TInt)
IMPORT_C TBoolIsPanPossible(TInt, TInt, TInt)
IMPORT_C voidIsPanPossibleFourWay(TBool &, TBool &, TBool &, TBool &, TInt)
IMPORT_C TBoolIsRemoveable(CSvgElementImpl *, TBool)
IMPORT_C voidKeyPress(const TKeyEvent &, TInt)
IMPORT_C MSvgError *Load(const TDesC &)
IMPORT_C MSvgError *Load(const TDesC8 &)
IMPORT_C MSvgError *Load(RFile &)
IMPORT_C TInt32MediaTime(TInt)
IMPORT_C TIntMouseDown(TInt, TInt, TInt)
IMPORT_C voidMouseMove(TInt, TInt, TInt)
IMPORT_C voidMouseUp(TInt, TInt, TInt)
IMPORT_C voidMuteAudioVolume(TInt)
IMPORT_C CSvgEngineInterfaceImpl *NewL(CFbsBitmap *, MSvgRequestObserver *, TFontSpec &)
IMPORT_C CSvgEngineInterfaceImpl *NewL(CFbsBitmap *, MSvgRequestObserver *, TFontSpec &, SVGRendererId)
IMPORT_C CSvgEngineInterfaceImpl *NewLC(CFbsBitmap *, MSvgRequestObserver *, TFontSpec &)
IMPORT_C CSvgEngineInterfaceImpl *NewLC(CFbsBitmap *, MSvgRequestObserver *, TFontSpec &, SVGRendererId)
IMPORT_C voidOriginalView(TInt)
IMPORT_C voidPan(TInt, TInt, TInt)
IMPORT_C TPointPanPosition(TInt)
IMPORT_C voidPause(CSvgEngineImpl *)
IMPORT_C TPointPosition(TInt)
IMPORT_C MSvgError *PrepareDom(const TDesC &, TInt &, TInt)
IMPORT_C MSvgError *PrepareDom(const TDesC8 &, TInt &, TInt)
IMPORT_C MSvgError *PrepareDom(RFile &, TInt &, TInt)
IMPORT_C voidPrintAllElements(CSvgDocumentImpl *)
IMPORT_C voidPrintElementsStyles(CSvgElementImpl *)
IMPORT_C voidRedraw(TBool, TInt)
IMPORT_C voidRemoveAnimationListener(MSvgAnimationListener *, TInt)
IMPORT_C voidRemoveChild(CXmlElementImpl *, CXmlElementImpl *)
IMPORT_C voidRemoveFromEventReceiverList(CXmlElementImpl *)
IMPORT_C voidRemoveHyperlinkListener(MSvgHyperlinkListener *, TInt)
IMPORT_C voidRemoveListener(const MSvgListener *, TSvgListenerType, TInt)
IMPORT_C TBoolRemoveTextAreaListener(MSvgTextAreaListener *, TInt)
IMPORT_C TBoolRemoveTextListener(MSvgTextListener *, TInt)
IMPORT_C MSvgError *RenderDom(TInt, CFbsBitmap *, CFbsBitmap *)
IMPORT_C voidRenderFrame(CSvgEngineImpl *, TUint)
IMPORT_C MSvgError *RenderFrames(TInt, const TSize &, TUint, TUint, TUint, TDisplayMode, TDisplayMode, RPointerArray< CFbsBitmap > &, RPointerArray< CFbsBitmap > &, RArray< TUint > &, TBool)
IMPORT_C MSvgError *Replay(TInt)
IMPORT_C voidResetContext(TInt)
voidResetFocusIndex(TInt32)
IMPORT_C voidResume(CSvgEngineImpl *)
IMPORT_C voidRotate(TReal32, TInt, TInt, TInt)
IMPORT_C CXmlElementImpl *SVGElementGetUsedElement(CXmlElementImpl *)
IMPORT_C TBoolSVGElementInDom(CSvgDocumentImpl *, CXmlElementImpl *)
IMPORT_C voidSaveSvg(TBool, const TDesC &, TInt)
IMPORT_C MSvgError *SaveSvgDom(TInt, const TDesC &, TInt)
IMPORT_C TBoolSearchForText(const TDesC &, RPointerArray< MRect > &, RArray< TPtrC > &, RArray< TInt > &, TBool, TInt)
IMPORT_C voidSetAnimFrameDuration(TUint, TInt)
IMPORT_C voidSetAudioVolume(TInt, TInt)
IMPORT_C voidSetBackgroundColor(TUint32, CSvgEngineImpl *)
IMPORT_C voidSetClientWindow(RWindow *)
IMPORT_C voidSetDRMMode(TBool, TInt)
IMPORT_C voidSetDRMRights(TBool)
IMPORT_C voidSetDataRetrievalTimeOut(TUint, TInt)
IMPORT_C voidSetDocument(CSvgEngineImpl *, CSvgDocumentImpl *)
IMPORT_C voidSetElementColorAttribute(CSvgElementImpl *, const TInt, TInt32)
IMPORT_C voidSetElementDesAttribute(CSvgElementImpl *, const TInt, const TDesC &)
IMPORT_C voidSetElementFloatAttribute(CSvgElementImpl *, const TInt, TReal32)
IMPORT_C voidSetEnumAttribute(CSvgElementImpl *, const TInt, TInt32)
IMPORT_C voidSetFirstChildElement(CXmlElementImpl *, CXmlElementImpl *)
IMPORT_C voidSetFocusElement(CXmlElementImpl *, CSvgDocumentImpl *)
IMPORT_C voidSetFrameBuffer(CFbsBitmap *, TInt)
IMPORT_C voidSetGdiContextL(CSvgEngineImpl *, CFbsBitmap *)
IMPORT_C voidSetMatrixAttribute(CXmlElementImpl *, float, float, float, float, float, float)
IMPORT_C voidSetMediaTime(TInt32, TInt)
IMPORT_C voidSetNextSibling(CXmlElementImpl *, CXmlElementImpl *)
IMPORT_C voidSetParentElement(CXmlElementImpl *, CXmlElementImpl *)
IMPORT_C voidSetPathAttribute(CSvgElementImpl *, TInt, CGfxGeneralPath *)
IMPORT_C voidSetPreserveAspectRatio(CSvgDocumentImpl *, TSvgPreserveAspectAlignType, TSvgMeetOrSliceType, TBool)
IMPORT_C voidSetRectAttribute(CXmlElementImpl *, float, float, float, float)
IMPORT_C voidSetRenderQuality(TRenderingQuality, TInt)
IMPORT_C voidSetRequestObserver(CSvgEngineImpl *, MSvgRequestObserver *)
IMPORT_C voidSetSvgDimensionToFrameBuffer(TUint, TUint, TInt)
IMPORT_C TBoolSetTextForTextAreaElement(TInt, TDesC &)
IMPORT_C TBoolSetTextForTextElement(TInt, TDesC &)
IMPORT_C voidSetThumbNailMode(TBool, TInt)
IMPORT_C voidSetViewportHeight(CSvgDocumentImpl *, TInt)
IMPORT_C voidSetViewportWidth(CSvgDocumentImpl *, TInt)
IMPORT_C TSizeSize(TInt)
IMPORT_C voidStart(CSvgEngineImpl *, TBool)
IMPORT_C voidStart(MSvgError *&, CSvgEngineImpl *)
IMPORT_C voidStart(MSvgError *&, const TDesC8 *, CSvgEngineImpl *)
IMPORT_C voidStart(const TDesC8 *, CSvgEngineImpl *, TBool)
IMPORT_C voidStartEngine(CSvgEngineImpl *)
IMPORT_C voidStop(CSvgEngineImpl *)
IMPORT_C voidSvgActivateAnimation(CSvgDocumentImpl *)
IMPORT_C voidSvgBeginElementAt(CXmlElementImpl *, TUint32, CSvgDocumentImpl *)
IMPORT_C CGfxGeneralPath *SvgCreatePath()
IMPORT_C voidSvgDestroyPath(CGfxGeneralPath *)
IMPORT_C CSvgDocumentImpl *SvgDocument()
IMPORT_C CSvgDocumentImpl *SvgDocumentNewL()
voidSvgElementAssignDocument(CSvgElementImpl *, CSvgDocumentImpl *)
IMPORT_C voidSvgEndElementAt(CXmlElementImpl *, TUint32, CSvgDocumentImpl *)
IMPORT_C CSvgEngineImpl *SvgEngineNewL()
IMPORT_C TReal32SvgGetMediaTime(CSvgDocumentImpl *)
IMPORT_C TBoolSvgHasAnimation(CSvgDocumentImpl *)
IMPORT_C voidSvgSetMediaTime(CSvgDocumentImpl *, TUint32)
IMPORT_C voidSwitchDebugInfo(TInt)
IMPORT_C const TPtrC8TLVEncodedData()
IMPORT_C voidUpdatePath(TInt, CSvgElementImpl *)
IMPORT_C MSvgError *UseDom(TInt, CFbsBitmap *, CFbsBitmap *, TInt)
IMPORT_C MSvgError *UseDom(TInt, CFbsBitmap *, CFbsBitmap *, TSize, TDisplayMode, TDisplayMode, TInt)
IMPORT_C voidViewportInit(CSvgDocumentImpl *)
IMPORT_C voidWaitForImages(TBool, TInt)
IMPORT_C voidZoom(TReal32, TInt)
Protected Member Functions
IMPORT_C voidConstructL(CFbsBitmap *, MSvgRequestObserver *, TFontSpec &)
IMPORT_C voidConstructL(CFbsBitmap *, MSvgRequestObserver *, TFontSpec &, SVGRendererId)
IMPORT_C voidConstructL()
IMPORT_C voidConstructL(TFontSpec &)
Private Member Functions
TBool AreBitmapsTheSame(CFbsBitmap &, CFbsBitmap &)
CSvgEngineImpl *ChooseEngine(TInt)
voidConvertBitmapToFileL(CFbsBitmap *, const TDesC &)
CFbsBitmap *CreateBitmapL(TSize, TDisplayMode, CSvgErrorImpl &)
CSvgElementImpl *FirstElementChild(CSvgElementImpl *)
TReal FramesPerSecondL(TInt)
TRect GetFocusBbox(TBool, TInt)
voidImageLoadingCompleted(TInt)
TBool IsDomCached(TInt)
CSvgElementImpl *LastElementChild(CSvgElementImpl *)
CSvgElementImpl *NextElementSibling(CSvgElementImpl *)
voidPostLoadProcessing(TInt)
CSvgElementImpl *PreviousElementSibling(CSvgElementImpl *)
voidRestoreAnimStyleProperties(TInt)
voidResume(TInt32, TInt)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Protected Attributes
TBool iFileIsLoaded
RPointerArray< CSvgDocumentImpl >iSvgDocumentPointers
CSvgEngineImpl *iSvgEngine
RPointerArray< CSvgEngineImpl >iSvgEnginePointers
CSvgErrorImpl *iSvgError
CSvgDocumentImpl *iSvgLoadedDocument
TReal32 iTotalRotation
Private Attributes
TBool iDrmEnabled
TBool iDrmRightsConsumptionEnabled
TBool iIsLoadingRequest
TBool iIsThumbNailMode
TBool iMouseDownFlag
CSvgBitmapFontProvider *iSvgBitmapFontProvider
RPointerArray< MSvgLoadingListener >iSvgLoadingListeners
RPointerArray< CSvgElementImpl >iSvgMouseEnteredElements

Constructor & Destructor Documentation

CSvgEngineInterfaceImpl()

IMPORT_CCSvgEngineInterfaceImpl()

This method is a special case Constructor method used for polymorphic DLL loading, which enforces this method to be public.

Since
1.0

~CSvgEngineInterfaceImpl()

IMPORT_C~CSvgEngineInterfaceImpl()

Svg Engine interface Destructor.

Since
1.0

Member Functions Documentation

ADDCloseTo(CGfxGeneralPath *)

IMPORT_C voidADDCloseTo(CGfxGeneralPath *aPathHandle)

ADDCloseTo Closes a given path element.

Parameters

CGfxGeneralPath * aPathHandle

ADDCurveTo(CGfxGeneralPath *, TReal32, TReal32, TReal32, TReal32, TReal32, TReal32)

IMPORT_C voidADDCurveTo(CGfxGeneralPath *aPathHandle,
TReal32aX1,
TReal32aY1,
TReal32aX2,
TReal32aY2,
TReal32aX3,
TReal32aY3
)

ADDCurveTo Adds a curveTo segment to a path element.

Parameters

CGfxGeneralPath * aPathHandle
TReal32 aX1
TReal32 aY1
TReal32 aX2
TReal32 aY2
TReal32 aX3
TReal32 aY3

ADDLineTo(CGfxGeneralPath *, TReal32, TReal32)

IMPORT_C voidADDLineTo(CGfxGeneralPath *aPathHandle,
TReal32aX,
TReal32aY
)

ADDLineTo Adds a LineTo segment to a path element.

Parameters

CGfxGeneralPath * aPathHandle
TReal32 aX
TReal32 aY

ADDMoveTo(CGfxGeneralPath *, TReal32, TReal32)

IMPORT_C voidADDMoveTo(CGfxGeneralPath *aPathHandle,
TReal32aX,
TReal32aY
)

ADDMoveTo Adds a moveTo segment to a path element.

Parameters

CGfxGeneralPath * aPathHandle
TReal32 aX
TReal32 aY

ADDQuadTo(CGfxGeneralPath *, TReal32, TReal32, TReal32, TReal32)

IMPORT_C voidADDQuadTo(CGfxGeneralPath *aPathHandle,
TReal32aX1,
TReal32aY1,
TReal32aX2,
TReal32aY2
)

ADDQuadTo Adds a QuadTo segment to a path element.

Parameters

CGfxGeneralPath * aPathHandle
TReal32 aX1
TReal32 aY1
TReal32 aX2
TReal32 aY2

ActivateObjectInFocus()

IMPORT_C voidActivateObjectInFocus()

Activate currently focussed object.

Since
1.0

AddAnimationListener(MSvgAnimationListener *, TInt)

IMPORT_C voidAddAnimationListener(MSvgAnimationListener *aListener,
TIntaEngine = NULL
)

Add a HyperlinkListener to the SVG Engine..

Parameters

MSvgAnimationListener * aListener
TInt aEngine = NULL

AddExternalData(CSvgDocumentImpl *, const TDesC &, const TDesC8 &, TBool, TInt, TInt)

IMPORT_C CSvgElementImpl *AddExternalData(CSvgDocumentImpl *aDocument,
const TDesC &aUri,
const TDesC8 &aData,
TBoolaMakeCopy = EFalse,
TIntaSize = 0,
TIntaEngine = NULL
)

Given a document handle and a url this call attaches the given data (ldata) to every element that references that url

Parameters

CSvgDocumentImpl * aDocument- Document Pointer
const TDesC & aUri
const TDesC8 & aData
TBool aMakeCopy = EFalse
TInt aSize = 0
TInt aEngine = NULL

AddHyperlinkListener(MSvgHyperlinkListener *, TInt)

IMPORT_C voidAddHyperlinkListener(MSvgHyperlinkListener *aListener,
TIntaEngine = NULL
)

Add a HyperlinkListener to the SVG Engine..

Parameters

MSvgHyperlinkListener * aListener
TInt aEngine = NULL

AddListener(const MSvgListener *, TSvgListenerType, TInt)

IMPORT_C voidAddListener(const MSvgListener *aListener,
TSvgListenerTypeaType,
TIntaEngine = NULL
)

Add a specific event listener to the engine

Parameters

const MSvgListener * aListener
TSvgListenerType aType
TInt aEngine = NULL

AddTextAreaListener(MSvgTextAreaListener *, TInt)

IMPORT_C TBoolAddTextAreaListener(MSvgTextAreaListener *aListener,
TIntaEngine = NULL
)

Add a TextAreaListener to the SVG Engine..

Parameters

MSvgTextAreaListener * aListener
TInt aEngine = NULL

AddTextListener(MSvgTextListener *, TInt)

IMPORT_C TBoolAddTextListener(MSvgTextListener *aListener,
TIntaEngine = NULL
)

Add a TextListener to the SVG Engine..

Parameters

MSvgTextListener * aListener
TInt aEngine = NULL

AddToEventReceiverList(CXmlElementImpl *, const TUint8)

IMPORT_C voidAddToEventReceiverList(CXmlElementImpl *aElement,
const TUint8aEventMask
)

This API will add the given element to the event receiver list.

Parameters

CXmlElementImpl * aElement
const TUint8 aEventMask

AppendChild(CXmlElementImpl *, CXmlElementImpl *, TBool)

IMPORT_C voidAppendChild(CXmlElementImpl *aParentElement,
CXmlElementImpl *aChildElement,
TBoolaIsJSR226Element = EFalse
)

Append the given child element to the given parent element.

Parameters

CXmlElementImpl * aParentElement
CXmlElementImpl * aChildElement
TBool aIsJSR226Element = EFalse

AreBitmapsTheSame(CFbsBitmap &, CFbsBitmap &)

TBool AreBitmapsTheSame(CFbsBitmap &aBitmapA,
CFbsBitmap &aBitmapB
)[private]

Return whether the two given bitmaps are the same.

Since
1.0

Parameters

CFbsBitmap & aBitmapA
CFbsBitmap & aBitmapB

AssignImageData(const TDesC &, HBufC8 *)

IMPORT_C voidAssignImageData(const TDesC &aUri,
HBufC8 *aData
)

This API provides a delayed (asynchronous) assignment of image data to <image> elements. This is used when the clients returns a non-KErrNone value for FetchImage callback, so that FetchImage does not block the parsing thread.

Parameters

const TDesC & aUri
HBufC8 * aData- byte array containing the image data to be decoded. This object will be managed (deleted) by svg-engine.

CancelLoad(TInt)

IMPORT_C voidCancelLoad(TIntaEngine = NULL)
Request canceling of parsing of the current document being parsed (through Load API). This API allows a different thread other than the loading thread to cancel a Load call.
Since
1.0

Parameters

TInt aEngine = NULL

ChooseEngine(TInt)

CSvgEngineImpl *ChooseEngine(TIntaEngine)[private]

Parameters

TInt aEngine

ChooseViewBoxIfNotSet(TInt)

IMPORT_C voidChooseViewBoxIfNotSet(TIntaDomHandle)

Defines view box for SVG content associated with handle if not set.

Parameters

TInt aDomHandle

ClearFrameBuffer(CFbsBitmap *, TUint32, TInt)

IMPORT_C voidClearFrameBuffer(CFbsBitmap *aFrameBuffer,
TUint32aClearingColor,
TIntaEngine = NULL
)

Parameters

CFbsBitmap * aFrameBuffer
TUint32 aClearingColor
TInt aEngine = NULL

ConstructL(CFbsBitmap *, MSvgRequestObserver *, TFontSpec &)

IMPORT_C voidConstructL(CFbsBitmap *aFrameBuffer,
MSvgRequestObserver *aReqObserver,
TFontSpec &aFontSpec
)[protected]

This method is a special case "ConstructL" method used for polymorphic DLL loading, which enforces this method to be public.

Since
1.0

Parameters

CFbsBitmap * aFrameBuffer
MSvgRequestObserver * aReqObserver
TFontSpec & aFontSpec

ConstructL(CFbsBitmap *, MSvgRequestObserver *, TFontSpec &, SVGRendererId)

IMPORT_C voidConstructL(CFbsBitmap *aFrameBuffer,
MSvgRequestObserver *aReqObserver,
TFontSpec &aFontSpec,
SVGRendererIdaRendererType
)[protected]

Parameters

CFbsBitmap * aFrameBuffer
MSvgRequestObserver * aReqObserver
TFontSpec & aFontSpec
SVGRendererId aRendererType

ConstructL()

IMPORT_C voidConstructL()[protected]

This method is a special case "ConstructL" method used for polymorphic DLL loading, which enforces this method to be public.

Since
1.0

ConstructL(TFontSpec &)

IMPORT_C voidConstructL(TFontSpec &aFontSpec)[protected]

Parameters

TFontSpec & aFontSpec

ContentDimensions(TInt)

IMPORT_C TSizeContentDimensions(TIntaEngine = NULL)

This is the integer version of ContentDimensions. 1) Return the size of the <svg> width/height if given in non-percentage.

2) If <svg> width/height are given as percentages: A) If viewbox attribute is specified, return the viewbox width/height times the <svg> width/height percentages. B) Else return the content bounding-box size times times the <svg> width/height percentages.

Since
1.0

Parameters

TInt aEngine = NULL

ContentDimensions(TReal32 &, TReal32 &, TInt)

IMPORT_C voidContentDimensions(TReal32 &aWidth,
TReal32 &aHeight,
TIntaEngine = NULL
)

This is the floating-point version of ContentDimensions. 1) Return the size of the <svg> width/height if given in non-percentage.

2) If <svg> width/height are given as percentages: A) If viewbox attribute is specified, return the viewbox width/height times the <svg> width/height percentages. B) Else return the content bounding-box size times times the <svg> width/height percentages.

Since
1.0

Parameters

TReal32 & aWidth
TReal32 & aHeight
TInt aEngine = NULL

ContentDimensionsInPercentage(TInt)

IMPORT_C TSizeContentDimensionsInPercentage(TIntaEngine = NULL)

Retrieve the content size in user-coordinates if specified as percentage.

Since
3.1

Parameters

TInt aEngine = NULL

ConvertBitmapToFileL(CFbsBitmap *, const TDesC &)

voidConvertBitmapToFileL(CFbsBitmap *aBitmap,
const TDesC &aText
)[private]

Parameters

CFbsBitmap * aBitmap
const TDesC & aText

CreateBitmapL(TSize, TDisplayMode, CSvgErrorImpl &)

CFbsBitmap *CreateBitmapL(TSizeaSize,
TDisplayModeaColorMode,
CSvgErrorImpl &aError
)[private]

Create a new CFbsBitmap object with the specific size and color mode.

Since
1.0

Parameters

TSize aSize
TDisplayMode aColorMode
CSvgErrorImpl & aError

CreateElementL(CSvgDocumentImpl *, TInt)

IMPORT_C CXmlElementImpl *CreateElementL(CSvgDocumentImpl *aDocument,
TIntaElementType
)

Create an element of the given type.

Parameters

CSvgDocumentImpl * aDocument
TInt aElementType

CurrentState(TInt)

IMPORT_C TIntCurrentState(TIntaEngine = NULL)

Returns SVG Engine State

Since
1.0

Parameters

TInt aEngine = NULL

CustomOption(TBool, TInt)

EXPORT_C voidCustomOption(TBoolaCustomOption = EFalse,
TIntaEngine = NULL
)

Used for testing purpose.

Parameters

TBool aCustomOption = EFalse
TInt aEngine = NULL

DeleteDom(TInt)

IMPORT_C MSvgError *DeleteDom(TIntaHandle)

Deletes the DOM tree associated with the Handle.

Parameters

TInt aHandle

Destroy()

IMPORT_C voidDestroy()

Destroy the currently "loaded" svg document. Prepared documents, must be destroy through DeleteDom, or the engine will destroy them in its destructor function.

Since
1.0

DestroyDocument(CSvgDocumentImpl *)

IMPORT_C voidDestroyDocument(CSvgDocumentImpl *aDocument)

Destroy the given SVG document

Parameters

CSvgDocumentImpl * aDocument

DestroyElement(CXmlElementImpl *)

IMPORT_C voidDestroyElement(CXmlElementImpl *aElement)

Create an element of the given type.

Parameters

CXmlElementImpl * aElement

DestroyEngine(CSvgEngineImpl *)

IMPORT_C voidDestroyEngine(CSvgEngineImpl *aEngine)

Destroy the given SVG engine

Parameters

CSvgEngineImpl * aEngine

DispatchFocusInEvent(CSvgDocumentImpl *, CSvgElementImpl *)

IMPORT_C voidDispatchFocusInEvent(CSvgDocumentImpl *aDocumentHandle,
CSvgElementImpl *aElement
)

This API provides client the functionality to trigger focus-in event for a particular element

Parameters

CSvgDocumentImpl * aDocumentHandle
CSvgElementImpl * aElement

DispatchFocusOutEvent(CSvgDocumentImpl *, CSvgElementImpl *)

IMPORT_C voidDispatchFocusOutEvent(CSvgDocumentImpl *aDocumentHandle,
CSvgElementImpl *aElement
)

This API provides client the functionality to trigger focus-in event for a particular element

Parameters

CSvgDocumentImpl * aDocumentHandle
CSvgElementImpl * aElement

DispatchMouseEventsAt(CSvgDocumentImpl *, TInt, TInt, MSvgMouseListener *)

IMPORT_C TIntDispatchMouseEventsAt(CSvgDocumentImpl *aDocumentHandle,
TIntaMouseX,
TIntaMouseY,
MSvgMouseListener *aListener
)

DispatchMouseEventsAt This will send mouse events to the Engine at this points.

Parameters

CSvgDocumentImpl * aDocumentHandle
TInt aMouseX
TInt aMouseY
MSvgMouseListener * aListener

DrawBox(TRect, TInt)

IMPORT_C CSvgElementImpl *DrawBox(TRectaRect,
TIntaEngine = NULL
)

Create an svg element that can be added to the a document to draw the given rectangle.

Parameters

TRect aRect
TInt aEngine = NULL

Duration(TInt)

IMPORT_C TUint32Duration(TIntaEngine = NULL)

Get the animation duration of a svg content, in milliseconds, for non-indefinite animations.

Since
1.0

Parameters

TInt aEngine = NULL

FillDocumentL(CSvgDocumentImpl *, const TDesC16 &)

IMPORT_C voidFillDocumentL(CSvgDocumentImpl *aDocument,
const TDesC16 &aByteData
)

Fill a SVG document by parsing the given byte array.

Parameters

CSvgDocumentImpl * aDocument
const TDesC16 & aByteData

FindAllElements(CSvgElementImpl *, TInt, RPointerArray< CSvgElementImpl > &, TInt)

IMPORT_C voidFindAllElements(CSvgElementImpl *aStartElement,
TIntaElementId,
RPointerArray< CSvgElementImpl > &aList,
TIntaEngine = NULL
)

Parameters

CSvgElementImpl * aStartElement
TInt aElementId
RPointerArray< CSvgElementImpl > & aList
TInt aEngine = NULL

FirstElementChild(CSvgElementImpl *)

CSvgElementImpl *FirstElementChild(CSvgElementImpl *aParentElement)[private]

Returns the first child element node of this element. null if this element has no child elements

Since
1.2

Parameters

CSvgElementImpl * aParentElement- a handle to a parent element

FocusNext()

IMPORT_C TRectFocusNext()

Set focus coordinates to the next focusable object.

Since
1.0

FocusPrevious()

IMPORT_C TRectFocusPrevious()

Set focus coordinates to the previous focusable object.

Since
1.0

FramesPerSecond(TBool, TInt)

IMPORT_C TRealFramesPerSecond(TBoolisShowOn = EFalse,
TIntaEngine = NULL
)

Adds a text element to display the frames per second if isShowOn = true

Parameters

TBool isShowOn = EFalse
TInt aEngine = NULL

FramesPerSecondL(TInt)

TReal FramesPerSecondL(TIntaEngine = NULL)[private]

Adds a text element to display the frames per second if isShowOn = true

Parameters

TInt aEngine = NULL

GenerateMask(CFbsBitmap *, TInt)

IMPORT_C voidGenerateMask(CFbsBitmap *aMask,
TIntaEngine = NULL
)

Generate mask bitmap from the current frame

Since
1.0

Parameters

CFbsBitmap * aMask- bitmap to hold masking info.
TInt aEngine = NULL

GetElementBoundingbox(CSvgElementImpl *, TReal32 &, TReal32 &, TReal32 &, TReal32 &)

IMPORT_C voidGetElementBoundingbox(CSvgElementImpl *aElementHandle,
TReal32 &aX,
TReal32 &aY,
TReal32 &aWidth,
TReal32 &aHeight
)

Get the Bounding Box for an element.

Parameters

CSvgElementImpl * aElementHandle
TReal32 & aX
TReal32 & aY
TReal32 & aWidth
TReal32 & aHeight

GetElementById(CSvgDocumentImpl *, const TDesC &)

IMPORT_C CXmlElementImpl *GetElementById(CSvgDocumentImpl *aDocument,
const TDesC &aId
)

Return the root element of the given document.

Parameters

CSvgDocumentImpl * aDocument
const TDesC & aId

GetElementColorAttribute(CSvgElementImpl *, const TInt)

IMPORT_C TInt32GetElementColorAttribute(CSvgElementImpl *aElementHandle,
const TIntaAttributeId
)

Get the CoLor attribute for the element. // this basically means the fill and stroke.

Parameters

CSvgElementImpl * aElementHandle
const TInt aAttributeId

GetElementDesAttribute(CSvgElementImpl *, const TInt, TPtrC16 &)

IMPORT_C TIntGetElementDesAttribute(CSvgElementImpl *aElementHandle,
const TIntaAttributeId,
TPtrC16 &aValue
)

Get the Desc attribute for the element.

Parameters

CSvgElementImpl * aElementHandle
const TInt aAttributeId
TPtrC16 & aValue

GetElementFloatAttribute(CSvgElementImpl *, const TInt)

IMPORT_C TReal32GetElementFloatAttribute(CSvgElementImpl *aElementHandle,
const TIntaAttributeId
)

Get the Float attribute for the element.

Parameters

CSvgElementImpl * aElementHandle
const TInt aAttributeId

GetElementType(CXmlElementImpl *)

IMPORT_C TIntGetElementType(CXmlElementImpl *aElement)

Get the element type, such as rect, circle, etc. for the given element.

Parameters

CXmlElementImpl * aElement

GetElementUnScaledBoundingBox(CSvgElementImpl *, TReal32 &, TReal32 &, TReal32 &, TReal32 &)

IMPORT_C voidGetElementUnScaledBoundingBox(CSvgElementImpl *aElementHandle,
TReal32 &aX,
TReal32 &aY,
TReal32 &aWidth,
TReal32 &aHeight
)

Get the unscaled Bounding Box for an element.

Parameters

CSvgElementImpl * aElementHandle
TReal32 & aX
TReal32 & aY
TReal32 & aWidth
TReal32 & aHeight

GetEnumAttribute(CSvgElementImpl *, const TInt, TInt32 &)

IMPORT_C TIntGetEnumAttribute(CSvgElementImpl *aElementHandle,
const TIntaAttributeId,
TInt32 &lValue
)

Set the Enum attribute for the element. // this basically means the fill and stroke.

Parameters

CSvgElementImpl * aElementHandle
const TInt aAttributeId
TInt32 & lValue

GetExternalListItemL(CSvgDocumentImpl *, TInt, TPtrC16 &)

IMPORT_C voidGetExternalListItemL(CSvgDocumentImpl *aDocument,
TIntaIndex,
TPtrC16 &aUri
)

Given an index number and a document handle returns an external resource uri associated with an element

Parameters

CSvgDocumentImpl * aDocument- Document Pointer index - index in external list
TInt aIndex
TPtrC16 & aUri

GetExternalListSize(CSvgDocumentImpl *)

IMPORT_C TIntGetExternalListSize(CSvgDocumentImpl *aDocument)

Returns the size (number of external elements) in the given document

Parameters

CSvgDocumentImpl * aDocument- Document Pointer

GetFirstChild(CXmlElementImpl *)

IMPORT_C CXmlElementImpl *GetFirstChild(CXmlElementImpl *aParentElement)

Get the first child element in the given parent.

Parameters

CXmlElementImpl * aParentElement

GetFocusBbox(TBool, TInt)

TRect GetFocusBbox(TBoolaNextObject,
TIntaEngine = NULL
)[private]

Get the current focus object's bounding box.

Since
1.0

Parameters

TBool aNextObject
TInt aEngine = NULL

GetFocusedElement(CSvgDocumentImpl *)

IMPORT_C CXmlElementImpl *GetFocusedElement(CSvgDocumentImpl *aDocument)

returns the pointer to the focussed element.

Parameters

CSvgDocumentImpl * aDocument

GetFourPointElementBoundingBox(CSvgTextElementImpl *, TPoint &, TPoint &, TPoint &, TPoint &)

IMPORT_C voidGetFourPointElementBoundingBox(CSvgTextElementImpl *aElementHandle,
TPoint &aPoint1,
TPoint &aPoint2,
TPoint &aPoint3,
TPoint &aPoint4
)

Get the Bounding Box for an element.

Parameters

CSvgTextElementImpl * aElementHandle
TPoint & aPoint1
TPoint & aPoint2
TPoint & aPoint3
TPoint & aPoint4

GetId(CSvgDocumentImpl *, TInt)

IMPORT_C TDesC *GetId(CSvgDocumentImpl *aDocument,
TIntindex
)

Return the id at from the document at index

Parameters

CSvgDocumentImpl * aDocument
TInt index

GetMatrixAttribute(CXmlElementImpl *, float *, float *, float *, float *, float *, float *)

IMPORT_C voidGetMatrixAttribute(CXmlElementImpl *aElementHandle,
float *aAVal,
float *aBVal,
float *aCVal,
float *aDVal,
float *aEVal,
float *aFVal
)

Get the matrix values.

Parameters

CXmlElementImpl * aElementHandle
float * aAVal
float * aBVal
float * aCVal
float * aDVal
float * aEVal
float * aFVal

GetMatrixAttribute(CXmlElementImpl *, TInt, float *, float *, float *, float *, float *, float *)

IMPORT_C voidGetMatrixAttribute(CXmlElementImpl *aElementHandle,
TIntaAttributeType,
float *aAVal,
float *aBVal,
float *aCVal,
float *aDVal,
float *aEVal,
float *aFVal
)

Get the matrix values for a given matrix type.

Parameters

CXmlElementImpl * aElementHandle
TInt aAttributeType
float * aAVal
float * aBVal
float * aCVal
float * aDVal
float * aEVal
float * aFVal

GetNextSibling(CXmlElementImpl *)

IMPORT_C CXmlElementImpl *GetNextSibling(CXmlElementImpl *aElement)

Get the next sibling element of the given element.

Parameters

CXmlElementImpl * aElement

GetNumberOfIds(CSvgDocumentImpl *)

IMPORT_C TIntGetNumberOfIds(CSvgDocumentImpl *aDocument)

Return the number of ids in a given document

Parameters

CSvgDocumentImpl * aDocument

GetOwnerDocument(CXmlElementImpl *)

IMPORT_C CSvgDocumentImpl *GetOwnerDocument(CXmlElementImpl *aElement)

Get the document that is associated with the given element.

Parameters

CXmlElementImpl * aElement

GetParentElement(CXmlElementImpl *)

IMPORT_C CXmlElementImpl *GetParentElement(CXmlElementImpl *aElement)

Return parent element of the given element.

Parameters

CXmlElementImpl * aElement

GetPathAttribute(CXmlElementImpl *, TInt)

IMPORT_C CGfxGeneralPath *GetPathAttribute(CXmlElementImpl *aElementHandle,
TIntaAttributeId
)

GetPathAttribute gets a pointer to the path attribuite for a given element.

Parameters

CXmlElementImpl * aElementHandle
TInt aAttributeId

GetRectAttribute(CXmlElementImpl *, float *, float *, float *, float *)

IMPORT_C TBoolGetRectAttribute(CXmlElementImpl *aElementHandle,
float *aX,
float *aY,
float *aWidth,
float *aHeight
)

Get the rect values.

Parameters

CXmlElementImpl * aElementHandle
float * aX
float * aY
float * aWidth
float * aHeight

GetRenderQuality()

IMPORT_C TRenderingQualityGetRenderQuality()

Retrieve the rendering quality setting. See TRenderingQuality for possible values.

Since
1.0

GetRootElement(CSvgDocumentImpl *)

IMPORT_C CXmlElementImpl *GetRootElement(CSvgDocumentImpl *aDocument)

Return the root element of the given document.

Parameters

CSvgDocumentImpl * aDocument

GetSegmentCount(CGfxGeneralPath *)

IMPORT_C TIntGetSegmentCount(CGfxGeneralPath *aPathHandle)

GetSegmentCount Returns the number of segments in a PATH.

Parameters

CGfxGeneralPath * aPathHandle

GetSegmentParameter(CGfxGeneralPath *, TInt, TInt)

IMPORT_C TReal32GetSegmentParameter(CGfxGeneralPath *aPathHandle,
TIntaSegmentIndex,
TIntaSegmentParameterIndex
)

GetSegmentParameter Returns the segment parameter for a specific segment in a path element.

Parameters

CGfxGeneralPath * aPathHandle
TInt aSegmentIndex
TInt aSegmentParameterIndex

GetSegmentType(CGfxGeneralPath *, TInt)

IMPORT_C TIntGetSegmentType(CGfxGeneralPath *aPathHandle,
TIntaSegmentIndex
)

GetSegmentType Returns the segment type for a specific segment in a path element.

Parameters

CGfxGeneralPath * aPathHandle
TInt aSegmentIndex

GetSvgBoundingBox(TInt)

IMPORT_C TRectGetSvgBoundingBox(TIntaEngine = NULL)

Return the scaled bounding box for the whole svg document.

Parameters

TInt aEngine = NULL

GetTextForTextAreaElement(TInt, TBool &, TDes &)

IMPORT_C TBoolGetTextForTextAreaElement(TIntaTextAreaElementId,
TBool &editable,
TDes &aXmlString
)

Get the entire text string from the specified text area

Parameters

TInt aTextAreaElementId
TBool & editable
TDes & aXmlString

GetTextForTextElement(TInt, TBool &, TDes &)

IMPORT_C TBoolGetTextForTextElement(TIntaTextElementId,
TBool &editable,
TDes &aXmlString
)

Get the entire text string from the specified text element

Parameters

TInt aTextElementId
TBool & editable
TDes & aXmlString

GetUnscaledContentSize(TInt)

IMPORT_C TSizeGetUnscaledContentSize(TIntaDomHandle)

Return the default size of the given document handle, defined by the union of the bounding boxes of the elements. This function is independent of frame-buffer or any other document.

Since
1.0

Parameters

TInt aDomHandle- Handle to svg document (thru PrepareDom)

GetViewportHeight(CSvgDocumentImpl *)

IMPORT_C TIntGetViewportHeight(CSvgDocumentImpl *aDocumentHandle)

Get the Viewport Height.

Parameters

CSvgDocumentImpl * aDocumentHandle

GetViewportUnits(CSvgDocumentImpl *)

IMPORT_C TIntGetViewportUnits(CSvgDocumentImpl *aDocumentHandle)

Get the Viewport Units. This means the units in which the width and height of <svg> element are specified.

Parameters

CSvgDocumentImpl * aDocumentHandle

GetViewportWidth(CSvgDocumentImpl *)

IMPORT_C TIntGetViewportWidth(CSvgDocumentImpl *aDocumentHandle)

Get the Viewport Width .

Parameters

CSvgDocumentImpl * aDocumentHandle

ImageLoadingCompleted(TInt)

voidImageLoadingCompleted(TIntaErrorStatus)[private]

ImageLoadingObserver interface method. Called from Image loading class to notify image loading completion.

Since
1.0

Parameters

TInt aErrorStatus

InitRootElement(CSvgDocumentImpl *)

IMPORT_C voidInitRootElement(CSvgDocumentImpl *aDocument)

Set a default SvgSvg root element of the given document.

Parameters

CSvgDocumentImpl * aDocument

InitSvgStylePropertiesWithNullL(CSvgElementImpl *)

IMPORT_C voidInitSvgStylePropertiesWithNullL(CSvgElementImpl *aElement)

Used when creating an element from the java interface initializes all of the style properties attribute array to null for a newly created element so that attributes can be added to that element

Parameters

CSvgElementImpl * aElement

InitializeEngine(CSvgEngineImpl *, TBool)

IMPORT_C voidInitializeEngine(CSvgEngineImpl *aEngine = NULL,
TBoolaIsMainThread = ETrue
)

Request the given engine (or internal engine) to initialize from information in the svg-document attached to it (if any). This is used to setup the display information from the <svg> tag. Usually called from MSvgLoadingListener method when <svg> reached. If aEngine is NULL, then the internal engine is used.

Since
1.0

Parameters

CSvgEngineImpl * aEngine = NULL
TBool aIsMainThread = ETrue

IsContentInteractive(CSvgDocumentImpl *, TInt)

IMPORT_C TBoolIsContentInteractive(CSvgDocumentImpl *aDocument,
TIntaEngine = NULL
)

Check for interactive/non-interactive content.

Parameters

CSvgDocumentImpl * aDocument- Document Pointer
TInt aEngine = NULL

IsDomCached(TInt)

TBool IsDomCached(TIntaHandle)[private]

Checks whether the Handle is associated with a DOM

Parameters

TInt aHandle

IsElementActive(CSvgElementImpl *)

IMPORT_C TBoolIsElementActive(CSvgElementImpl *hElement)

Return true if element is removeable (no id or children with ids)

Parameters

CSvgElementImpl * hElement

IsElementVisible(TInt, TInt)

IMPORT_C TBoolIsElementVisible(TIntaElementHandle,
TIntaEngine = NULL
)

Return whether an element is visible on the frame buffer.

Parameters

TInt aElementHandle
TInt aEngine = NULL

IsLoading(TInt)

IMPORT_C TBoolIsLoading(TIntaEngine = NULL)
Query wether a document is currently bieng parsed through the Load API. EFalse is returned when a document has completed parsing or CancelLoad has completed successfully.
Since
1.0

Parameters

TInt aEngine = NULL

IsPanPossible(TInt, TInt, TInt)

IMPORT_C TBoolIsPanPossible(TIntaX,
TIntaY,
TIntaEngine = NULL
)

Shift the center of the content in both x and y coordinates. The values are in user-coordinate values and may be negative.

Since
1.0

Parameters

TInt aX
TInt aY
TInt aEngine = NULL

IsPanPossibleFourWay(TBool &, TBool &, TBool &, TBool &, TInt)

IMPORT_C voidIsPanPossibleFourWay(TBool &left,
TBool &right,
TBool &up,
TBool &down,
TIntaEngine = NULL
)

Checks the panning possibility in four directions. A efficient API for clients which want to show 4 way panning indicators. It is efficient for these clients to get the all four direction information at one go. Saves rendering time significantly per frame.

Since
1.0

Parameters

TBool & left
TBool & right
TBool & up
TBool & down
TInt aEngine = NULL

IsRemoveable(CSvgElementImpl *, TBool)

IMPORT_C TBoolIsRemoveable(CSvgElementImpl *hElement,
TBoolaCheckSibling = EFalse
)

Return true if element is removeable (no id or children with ids)

Parameters

CSvgElementImpl * hElement
TBool aCheckSibling = EFalse

KeyPress(const TKeyEvent &, TInt)

IMPORT_C voidKeyPress(const TKeyEvent &aKeyEvent,
TIntaEngine = NULL
)
Notify the SVG Engine that a "key press" event. The engine will initiate key-related events if appropriate.
Since
1.0

Parameters

const TKeyEvent & aKeyEvent
TInt aEngine = NULL

LastElementChild(CSvgElementImpl *)

CSvgElementImpl *LastElementChild(CSvgElementImpl *aParentElement)[private]

last child element node of this element. null if this element has no child elements

Since
1.2

Parameters

CSvgElementImpl * aParentElement- a handle to a parent element

Load(const TDesC &)

IMPORT_C MSvgError *Load(const TDesC &aFileName)

Load a svg document from a file. An error is return if one is encountered. Some errors may be more like warnings, which may allow the svg content to display nevertheless.

Since
1.0

Parameters

const TDesC & aFileName-- Name of svg file

Load(const TDesC8 &)

IMPORT_C MSvgError *Load(const TDesC8 &aByteData)

Load a svg document from a byte array. An error is return if one is encountered. Some errors may be more like warnings, which may allow the svg content to display nevertheless.

Since
1.0

Parameters

const TDesC8 & aByteData-- Byte array of svg document.

Load(RFile &)

IMPORT_C MSvgError *Load(RFile &aFileHandle)

Load a svg document from from the RFile Handle passed. An error is return if one is encountered. Some errors may be more like warnings, which may allow the svg content to display nevertheless.

Since
1.0

Parameters

RFile & aFileHandle-- RFile handle of svg document.

MediaTime(TInt)

IMPORT_C TInt32MediaTime(TIntaEngine = NULL)

Get the current animation frame time, in milliseconds.

Since
1.0

Parameters

TInt aEngine = NULL

MouseDown(TInt, TInt, TInt)

IMPORT_C TIntMouseDown(TIntaX,
TIntaY,
TIntaEngine = NULL
)

Notify the SVG Engine that a "mouse down" event. The engine will initiate mouse-related events, such as links, if appropriate.

Since
1.0

Parameters

TInt aX
TInt aY
TInt aEngine = NULL

MouseMove(TInt, TInt, TInt)

IMPORT_C voidMouseMove(TIntaX,
TIntaY,
TIntaEngine = NULL
)

Notify the SVG Engine that a "mouse move" event. The engine will initiate mouse-related events, such as links, if appropriate.

Since
1.0

Parameters

TInt aX
TInt aY
TInt aEngine = NULL

MouseUp(TInt, TInt, TInt)

IMPORT_C voidMouseUp(TIntaX,
TIntaY,
TIntaEngine = NULL
)

Notify the SVG Engine that a "mouse up" event. The engine will initiate mouse-related events, such as links, if appropriate.

Since
1.0

Parameters

TInt aX
TInt aY
TInt aEngine = NULL

MuteAudioVolume(TInt)

IMPORT_C voidMuteAudioVolume(TIntaEngine = NULL)

This method mutes the volume of the SVG content

Since
S60 3.1

Parameters

TInt aEngine = NULL

NewL(CFbsBitmap *, MSvgRequestObserver *, TFontSpec &)

IMPORT_C CSvgEngineInterfaceImpl *NewL(CFbsBitmap *aFrameBuffer,
MSvgRequestObserver *aReqObserver,
TFontSpec &aFontSpec
)[static]

Two phase construction

Parameters

CFbsBitmap * aFrameBuffer
MSvgRequestObserver * aReqObserver
TFontSpec & aFontSpec

NewL(CFbsBitmap *, MSvgRequestObserver *, TFontSpec &, SVGRendererId)

IMPORT_C CSvgEngineInterfaceImpl *NewL(CFbsBitmap *aFrameBuffer,
MSvgRequestObserver *aReqObserver,
TFontSpec &aFontSpec,
SVGRendererIdaRendererType
)[static]

Parameters

CFbsBitmap * aFrameBuffer
MSvgRequestObserver * aReqObserver
TFontSpec & aFontSpec
SVGRendererId aRendererType

NewLC(CFbsBitmap *, MSvgRequestObserver *, TFontSpec &)

IMPORT_C CSvgEngineInterfaceImpl *NewLC(CFbsBitmap *aFrameBuffer,
MSvgRequestObserver *aReqObserver,
TFontSpec &aFontSpec
)[static]

Create a new Svg Engine interface.

Since
1.0

Parameters

CFbsBitmap * aFrameBuffer
MSvgRequestObserver * aReqObserver
TFontSpec & aFontSpec

NewLC(CFbsBitmap *, MSvgRequestObserver *, TFontSpec &, SVGRendererId)

IMPORT_C CSvgEngineInterfaceImpl *NewLC(CFbsBitmap *aFrameBuffer,
MSvgRequestObserver *aReqObserver,
TFontSpec &aFontSpec,
SVGRendererIdaRendererType
)[static]

Parameters

CFbsBitmap * aFrameBuffer
MSvgRequestObserver * aReqObserver
TFontSpec & aFontSpec
SVGRendererId aRendererType

NextElementSibling(CSvgElementImpl *)

CSvgElementImpl *NextElementSibling(CSvgElementImpl *aSiblingElement)[private]

previous sibling element node of this element. null if this element has no element sibling nodes that come before this one in the document tree.

Since
1.2

Parameters

CSvgElementImpl * aSiblingElement

OriginalView(TInt)

IMPORT_C voidOriginalView(TIntaEngine = NULL)

Reset the view to the default values. Redraw() must be called to update the output image.

Since
1.0

Parameters

TInt aEngine = NULL

Pan(TInt, TInt, TInt)

IMPORT_C voidPan(TIntaX,
TIntaY,
TIntaEngine = NULL
)

Shift the center of the content in both x and y coordinates. The values are in user-coordinate values and may be negative. Redraw() must be called to update the output image.

Since
1.0

Parameters

TInt aX
TInt aY
TInt aEngine = NULL

PanPosition(TInt)

IMPORT_C TPointPanPosition(TIntaEngine = NULL)

Returns SVG Engine Pan Position

Since
1.0

Parameters

TInt aEngine = NULL

Pause(CSvgEngineImpl *)

IMPORT_C voidPause(CSvgEngineImpl *aEngine = NULL)

Request the SVG Engine to pause an animation.

Since
Series 60 3.0

Parameters

CSvgEngineImpl * aEngine = NULL

Position(TInt)

IMPORT_C TPointPosition(TIntaEngine = NULL)

Returns the Position of Viewport

Since
1.0

Parameters

TInt aEngine = NULL

PostLoadProcessing(TInt)

voidPostLoadProcessing(TIntaDocumentHandle)[private]

Utility function to clean-up after loading a file -- mainly, removing the prepared dom from Dom-list, since it's loaded and more prepared.

Since
1.0

Parameters

TInt aDocumentHandle

PrepareDom(const TDesC &, TInt &, TInt)

IMPORT_C MSvgError *PrepareDom(const TDesC &aFileName,
TInt &aHandle,
TIntaEngine = NULL
)

Added for DOM Caching API changes Parses and Prepares DOM for given SVG or SVGB file. Provides a Handle to the created DOM. A prepared DOM may be delete with DeleteDom or when the engine is deleted.

Parameters

const TDesC & aFileName
TInt & aHandle
TInt aEngine = NULL

PrepareDom(const TDesC8 &, TInt &, TInt)

IMPORT_C MSvgError *PrepareDom(const TDesC8 &aByteData,
TInt &aHandle,
TIntaEngine = NULL
)

Parses and Prepares DOM for both svg and svg binary data. Provides a Handle to the created DOM. A prepared DOM may be delete with DeleteDom or when the engine is deleted.

Parameters

const TDesC8 & aByteData
TInt & aHandle
TInt aEngine = NULL

PrepareDom(RFile &, TInt &, TInt)

IMPORT_C MSvgError *PrepareDom(RFile &aFileHandle,
TInt &aHandle,
TIntaEngine = NULL
)

Parses and Prepares DOM for given SVG or SVGB file. Provides a Handle to the created DOM. A prepared DOM may be delete with DeleteDom or when the engine is deleted.

Parameters

RFile & aFileHandle
TInt & aHandle
TInt aEngine = NULL

PreviousElementSibling(CSvgElementImpl *)

CSvgElementImpl *PreviousElementSibling(CSvgElementImpl *aSiblingElement)[private]

Returns the next sibling element node of this element. null if this element has no element sibling nodes that come after this one in the document tree

Since
1.2

Parameters

CSvgElementImpl * aSiblingElement- a handle to a sibling element

PrintAllElements(CSvgDocumentImpl *)

IMPORT_C voidPrintAllElements(CSvgDocumentImpl *aDocument)

In _DEBUG mode all elements in the documents DOM will be printed out this method may be used in the future to regenerate the DOM tree could also be used as an encoder

Parameters

CSvgDocumentImpl * aDocument

PrintElementsStyles(CSvgElementImpl *)

IMPORT_C voidPrintElementsStyles(CSvgElementImpl *aElement)

In _DEBUG mode print all of the values that are in the styles for the element

Parameters

CSvgElementImpl * aElement

Redraw(TBool, TInt)

IMPORT_C voidRedraw(TBoolaIsMainThread = ETrue,
TIntaEngine = NULL
)

Request for updating the off-screen image buffer with the svg content.

Since
1.0

Parameters

TBool aIsMainThread = ETrue-- indicate whether this redraw request is called in the main thread (executed immediately). Otherwise, this request is to be executed asynchronously. 'Main thread' used here means the thread which instantiated this CSvgEngineInterfaceImpl object.
TInt aEngine = NULL

RemoveAnimationListener(MSvgAnimationListener *, TInt)

IMPORT_C voidRemoveAnimationListener(MSvgAnimationListener *aListener,
TIntaEngine = NULL
)

Remove a HyperlinkListener from the SVG Engine..

Parameters

MSvgAnimationListener * aListener
TInt aEngine = NULL

RemoveChild(CXmlElementImpl *, CXmlElementImpl *)

IMPORT_C voidRemoveChild(CXmlElementImpl *aParentElement,
CXmlElementImpl *aChildElement
)

Remove the given child element from the given parent element.

Parameters

CXmlElementImpl * aParentElement
CXmlElementImpl * aChildElement

RemoveFromEventReceiverList(CXmlElementImpl *)

IMPORT_C voidRemoveFromEventReceiverList(CXmlElementImpl *aElement)

This API will remove the given element to the event receiver list.

Parameters

CXmlElementImpl * aElement

RemoveHyperlinkListener(MSvgHyperlinkListener *, TInt)

IMPORT_C voidRemoveHyperlinkListener(MSvgHyperlinkListener *aListener,
TIntaEngine = NULL
)

Remove a HyperlinkListener from the SVG Engine..

Parameters

MSvgHyperlinkListener * aListener
TInt aEngine = NULL

RemoveListener(const MSvgListener *, TSvgListenerType, TInt)

IMPORT_C voidRemoveListener(const MSvgListener *aListener,
TSvgListenerTypeaType,
TIntaEngine = NULL
)

Remove a specific event listener from the engine

Parameters

const MSvgListener * aListener
TSvgListenerType aType
TInt aEngine = NULL

RemoveTextAreaListener(MSvgTextAreaListener *, TInt)

IMPORT_C TBoolRemoveTextAreaListener(MSvgTextAreaListener *aListener,
TIntaEngine = NULL
)

Remove a TextAreaListener from the SVG Engine..

Parameters

MSvgTextAreaListener * aListener
TInt aEngine = NULL

RemoveTextListener(MSvgTextListener *, TInt)

IMPORT_C TBoolRemoveTextListener(MSvgTextListener *aListener,
TIntaEngine = NULL
)

Remove a TextListener from the SVG Engine..

Parameters

MSvgTextListener * aListener
TInt aEngine = NULL

RenderDom(TInt, CFbsBitmap *, CFbsBitmap *)

IMPORT_C MSvgError *RenderDom(TIntaHandle,
CFbsBitmap *aBitmap,
CFbsBitmap *aMaskBuffer = NULL
)

Renders the DOM tree associated with the Handle (UseDom).

Parameters

TInt aHandle
CFbsBitmap * aBitmap
CFbsBitmap * aMaskBuffer = NULL

RenderFrame(CSvgEngineImpl *, TUint)

IMPORT_C voidRenderFrame(CSvgEngineImpl *aEngine,
TUintaCurrentTime
)

Parameters

CSvgEngineImpl * aEngine
TUint aCurrentTime

RenderFrames(TInt, const TSize &, TUint, TUint, TUint, TDisplayMode, TDisplayMode, RPointerArray< CFbsBitmap > &, RPointerArray< CFbsBitmap > &, RArray< TUint > &, TBool)

IMPORT_C MSvgError *RenderFrames(TIntaDomHandle,
const TSize &aDimensionOfBitmaps,
TUintaStartTime,
TUintaDuration,
TUintaMillisecondsPerFrame,
TDisplayModeaColorDepth,
TDisplayModeaMaskType,
RPointerArray< CFbsBitmap > &aBitmapFrames,
RPointerArray< CFbsBitmap > &aMaskFrames,
RArray< TUint > &aDelayIntervals,
TBoolaRemoveRedundantFrames = EFalse
)

Generate frames, defined by the given duration, delay per seconds, etc. The calling client will be responsible for managing the bitmaps created by this method that are appended to the given bitmap arrays. The starting frame can be specified with the starting time parameter.

Note: Embedded images/svg files will not be rendered, due to asynchronous image decoder.

Redundant frames removal is implemented, defaulted to EFalse.

aDomHandle -- Handle to the svg dom. aDimensionOfBitmaps -- Size of bitmaps to generate (same for mask) aStartTime -- Start time of first frame (in milliseconds) aDuration -- Total time of animation (in milliseconds) aMillisecondsPerFrame -- Request delay time between each frame. aColorDepth -- Color display mode for main bitmaps aMaskType -- Color display mode for mask bitmaps aBitmapFrames -- Array to hold animation bitmaps aMaskFrames -- Array to hold mask bitmaps aDelayIntervals -- Delay interval between each frame (in milliseconds) aRemoveRedundantFrames -- If ETrue, remove consecutive frames that are the same and set the correct delay. Return Non-NULL Pointer to a svg error (MSvgError*)

Parameters

TInt aDomHandle
const TSize & aDimensionOfBitmaps
TUint aStartTime
TUint aDuration
TUint aMillisecondsPerFrame
TDisplayMode aColorDepth
TDisplayMode aMaskType
RPointerArray< CFbsBitmap > & aBitmapFrames
RPointerArray< CFbsBitmap > & aMaskFrames
RArray< TUint > & aDelayIntervals
TBool aRemoveRedundantFrames = EFalse

Replay(TInt)

IMPORT_C MSvgError *Replay(TIntaEngine = NULL)

Replay the Current Animation.

Since
1.0

Parameters

TInt aEngine = NULL

ResetContext(TInt)

IMPORT_C voidResetContext(TIntaEngine = NULL)

Parameters

TInt aEngine = NULL

ResetFocusIndex(TInt32)

voidResetFocusIndex(TInt32aIndex)

Reset the focus list This happens in the event of new additions to EventReceiver list and/or sorting of this list

Since
1.0

Parameters

TInt32 aIndex- index of object to reset focus.

RestoreAnimStyleProperties(TInt)

voidRestoreAnimStyleProperties(TIntaEngine = NULL)[private]

This mathod restores some style properties back to the original value of the animatied elements' iSvgStyleProperties.

Since
S60 3.0

Parameters

TInt aEngine = NULL

Resume(CSvgEngineImpl *)

IMPORT_C voidResume(CSvgEngineImpl *aEngine = NULL)

Request the SVG Engine to resume an animation.

Since
1.0

Parameters

CSvgEngineImpl * aEngine = NULL

Resume(TInt32, TInt)

voidResume(TInt32aTime,
TIntaEngine = NULL
)[private]

Request the SVG Engine to resume an animation after certain amount of time

Since
1.0

Parameters

TInt32 aTime
TInt aEngine = NULL

Rotate(TReal32, TInt, TInt, TInt)

IMPORT_C voidRotate(TReal32aAngle,
TIntaX,
TIntaY,
TIntaEngine = NULL
)

Rotate the content about the given point by the given angle. The point is in user-coordinates. Redraw() must be called to update the output image.

Since
1.0

Parameters

TReal32 aAngle
TInt aX
TInt aY
TInt aEngine = NULL

SVGElementGetUsedElement(CXmlElementImpl *)

IMPORT_C CXmlElementImpl *SVGElementGetUsedElement(CXmlElementImpl *aElement)

SVGElement_GetUsedElement :- This API will return a pointer to the original element which was cloned to use it. i.e.the cloned element is made a chld of the <use> element.

Parameters

CXmlElementImpl * aElement

SVGElementInDom(CSvgDocumentImpl *, CXmlElementImpl *)

IMPORT_C TBoolSVGElementInDom(CSvgDocumentImpl *aDocument,
CXmlElementImpl *aElement
)

checks whether a given element is present in DOM.

Parameters

CSvgDocumentImpl * aDocument
CXmlElementImpl * aElement

SaveSvg(TBool, const TDesC &, TInt)

IMPORT_C voidSaveSvg(TBoolaIsEncodeOn,
const TDesC &aFileName,
TIntaEngine
)

Method to output the currently loaded SVG content in standard SVG XML form or output a binary encoded version to a file

Parameters

TBool aIsEncodeOntell whether or not to output binary or standard SVG file.
const TDesC & aFileName
TInt aEngine

SaveSvgDom(TInt, const TDesC &, TInt)

IMPORT_C MSvgError *SaveSvgDom(TIntaHandle,
const TDesC &aFileName,
TIntaEngine = NULL
)

Parameters

TInt aHandle
const TDesC & aFileName
TInt aEngine = NULL

SearchForText(const TDesC &, RPointerArray< MRect > &, RArray< TPtrC > &, RArray< TInt > &, TBool, TInt)

IMPORT_C TBoolSearchForText(const TDesC &aSearchString,
RPointerArray< MRect > &aBoundingBoxes,
RArray< TPtrC > &aTexts,
RArray< TInt > &aElementIds,
TBoolaCaseSensitive = ETrue,
TIntaEngine = NULL
)

Search for all occurrences of a string in the current svg document, in the cdata of the <text> elements. The bounding-boxes are transformed, accounted for zooming/panning.

Parameters

const TDesC & aSearchString
RPointerArray< MRect > & aBoundingBoxes
RArray< TPtrC > & aTexts
RArray< TInt > & aElementIds
TBool aCaseSensitive = ETrue
TInt aEngine = NULL

SetAnimFrameDuration(TUint, TInt)

IMPORT_C voidSetAnimFrameDuration(TUintaAFDur,
TIntaEngine = NULL
)

Set the minimum delay between each frame, in milliseconds. Frames per Second = 1000 / aFrameDelay

The default/minimum value is 67 milliseconds (15 fps).

Since
1.0

Parameters

TUint aAFDur
TInt aEngine = NULL

SetAudioVolume(TInt, TInt)

IMPORT_C voidSetAudioVolume(TIntaPercentage,
TIntaEngine = NULL
)

This method sets the volume with user input as a percentage value (unsigned between 0 and 100 )

Since
S60 3.1

Parameters

TInt aPercentagepercentage value of volume
TInt aEngine = NULL

SetBackgroundColor(TUint32, CSvgEngineImpl *)

IMPORT_C voidSetBackgroundColor(TUint32aRGBA8888Color,
CSvgEngineImpl *aEngine = NULL
)

Set the color for clearing background.

Since
1.0

Parameters

TUint32 aRGBA8888Color- 32-bit color value
CSvgEngineImpl * aEngine = NULL

SetClientWindow(RWindow *)

IMPORT_C voidSetClientWindow(RWindow *aWindow)

This API provides API for client to set RWindow so that svgengine is aware of the window that client is using. This will benefit video rendering.

Parameters

RWindow * aWindow

SetDRMMode(TBool, TInt)

IMPORT_C voidSetDRMMode(TBoolaEnable,
TIntaEngine = NULL
)

Enable/Disable DRM.

Parameters

TBool aEnable
TInt aEngine = NULL

SetDRMRights(TBool)

IMPORT_C voidSetDRMRights(TBoolaEnable)

Set the engine to enable/disable consuming DRM rights

Parameters

TBool aEnable

SetDataRetrievalTimeOut(TUint, TInt)

IMPORT_C voidSetDataRetrievalTimeOut(TUintaTimeoutSeconds,
TIntaEngine = NULL
)

Set the timeout duration for fetching external data (Fetchimage calls). A value of zero, indicates no timeout (by default). This is designed mainly for SVGT Plugin.

Parameters

TUint aTimeoutSeconds
TInt aEngine = NULL

SetDocument(CSvgEngineImpl *, CSvgDocumentImpl *)

IMPORT_C voidSetDocument(CSvgEngineImpl *aEngine,
CSvgDocumentImpl *aDocument
)

Associate the given document with the given engine.

Parameters

CSvgEngineImpl * aEngine
CSvgDocumentImpl * aDocument

SetElementColorAttribute(CSvgElementImpl *, const TInt, TInt32)

IMPORT_C voidSetElementColorAttribute(CSvgElementImpl *aElementHandle,
const TIntaAttributeId,
TInt32aColorValue
)

Set the Color attribute for the element.

Parameters

CSvgElementImpl * aElementHandle
const TInt aAttributeId
TInt32 aColorValue

SetElementDesAttribute(CSvgElementImpl *, const TInt, const TDesC &)

IMPORT_C voidSetElementDesAttribute(CSvgElementImpl *aElementHandle,
const TIntaAttributeId,
const TDesC &aAttributeValue
)

Set the Descriptor attribute for the element.

Parameters

CSvgElementImpl * aElementHandle
const TInt aAttributeId
const TDesC & aAttributeValue

SetElementFloatAttribute(CSvgElementImpl *, const TInt, TReal32)

IMPORT_C voidSetElementFloatAttribute(CSvgElementImpl *aElementHandle,
const TIntaAttributeId,
TReal32aValue
)

Set the Float attribute for the element.

Parameters

CSvgElementImpl * aElementHandle
const TInt aAttributeId
TReal32 aValue

SetEnumAttribute(CSvgElementImpl *, const TInt, TInt32)

IMPORT_C voidSetEnumAttribute(CSvgElementImpl *aElementHandle,
const TIntaAttributeId,
TInt32lValue
)

Get the Enum attribute for the element. // this basically means the fill and stroke.

Parameters

CSvgElementImpl * aElementHandle
const TInt aAttributeId
TInt32 lValue

SetFirstChildElement(CXmlElementImpl *, CXmlElementImpl *)

IMPORT_C voidSetFirstChildElement(CXmlElementImpl *aFirstChildElement,
CXmlElementImpl *aParentElement
)

Set the first child for the given element.

Parameters

CXmlElementImpl * aFirstChildElement
CXmlElementImpl * aParentElement

SetFocusElement(CXmlElementImpl *, CSvgDocumentImpl *)

IMPORT_C voidSetFocusElement(CXmlElementImpl *aElement,
CSvgDocumentImpl *aDocument
)

Sets the focus on a specific element.

Parameters

CXmlElementImpl * aElement
CSvgDocumentImpl * aDocument

SetFrameBuffer(CFbsBitmap *, TInt)

IMPORT_C voidSetFrameBuffer(CFbsBitmap *aRenderBuffer,
TIntaEngine = NULL
)

Change the frame Buffer dynamically

:- Buffer for drawing the DOM Tree.

Parameters

CFbsBitmap * aRenderBuffer
TInt aEngine = NULL

SetGdiContextL(CSvgEngineImpl *, CFbsBitmap *)

IMPORT_C voidSetGdiContextL(CSvgEngineImpl *aEngine,
CFbsBitmap *aFrameBuffer
)

Set the GDI context for the given SVG Engine.

Parameters

CSvgEngineImpl * aEngine
CFbsBitmap * aFrameBuffer

SetMatrixAttribute(CXmlElementImpl *, float, float, float, float, float, float)

IMPORT_C voidSetMatrixAttribute(CXmlElementImpl *aElementHandle,
floataAVal,
floataBVal,
floataCVal,
floataDVal,
floataEVal,
floataFVal
)

Set the matrix values.

Parameters

CXmlElementImpl * aElementHandle
float aAVal
float aBVal
float aCVal
float aDVal
float aEVal
float aFVal

SetMediaTime(TInt32, TInt)

IMPORT_C voidSetMediaTime(TInt32aTime,
TIntaEngine = NULL
)

Set the current animation frame time, in millseconds.

Since
1.0

Parameters

TInt32 aTime-- time to forward/rewind to.
TInt aEngine = NULL

SetNextSibling(CXmlElementImpl *, CXmlElementImpl *)

IMPORT_C voidSetNextSibling(CXmlElementImpl *aElement,
CXmlElementImpl *aSibling
)

Set the next sibling element for the given element.

Parameters

CXmlElementImpl * aElement
CXmlElementImpl * aSibling

SetParentElement(CXmlElementImpl *, CXmlElementImpl *)

IMPORT_C voidSetParentElement(CXmlElementImpl *aElement,
CXmlElementImpl *aParentElement
)

Set parent element for the given element.

Parameters

CXmlElementImpl * aElement
CXmlElementImpl * aParentElement

SetPathAttribute(CSvgElementImpl *, TInt, CGfxGeneralPath *)

IMPORT_C voidSetPathAttribute(CSvgElementImpl *aElementHandle,
TIntlSvgAttrId,
CGfxGeneralPath *aPathHandle
)

SetPathAttribute sets the path attribute for a given element.

Parameters

CSvgElementImpl * aElementHandle
TInt lSvgAttrId
CGfxGeneralPath * aPathHandle

SetPreserveAspectRatio(CSvgDocumentImpl *, TSvgPreserveAspectAlignType, TSvgMeetOrSliceType, TBool)

IMPORT_C voidSetPreserveAspectRatio(CSvgDocumentImpl *aDocument,
TSvgPreserveAspectAlignTypeaPreserveAspectSetting,
TSvgMeetOrSliceTypeaSmilFitSetting,
TBoolaFrameBufferOverridesViewport = EFalse
)

Set the preserve aspect ratio setting for the current document

Parameters

CSvgDocumentImpl * aDocument
TSvgPreserveAspectAlignType aPreserveAspectSetting
TSvgMeetOrSliceType aSmilFitSetting
TBool aFrameBufferOverridesViewport = EFalse

SetRectAttribute(CXmlElementImpl *, float, float, float, float)

IMPORT_C voidSetRectAttribute(CXmlElementImpl *aElementHandle,
floataX,
floataY,
floataWidth,
floataHeight
)

Set the rect values.

Parameters

CXmlElementImpl * aElementHandle
float aX
float aY
float aWidth
float aHeight

SetRenderQuality(TRenderingQuality, TInt)

IMPORT_C voidSetRenderQuality(TRenderingQualityaQualityLevel,
TIntaEngine = NULL
)

Set the rendering quality. Low-level graphics is always set to high -- no effect from this call. Redraw() must be called to update the output image.

Since
1.0

Parameters

TRenderingQuality aQualityLevel
TInt aEngine = NULL

SetRequestObserver(CSvgEngineImpl *, MSvgRequestObserver *)

IMPORT_C voidSetRequestObserver(CSvgEngineImpl *aEngine,
MSvgRequestObserver *aObserver
)

Set the given request-observer for the given svg engine.

Parameters

CSvgEngineImpl * aEngine
MSvgRequestObserver * aObserver

SetSvgDimensionToFrameBuffer(TUint, TUint, TInt)

IMPORT_C voidSetSvgDimensionToFrameBuffer(TUintaWidth,
TUintaHeight,
TIntaEngine = NULL
)

Set the SVG dimensions to the root buffer size.

Parameters

TUint aWidth- width to set root size.
TUint aHeight- height to set root size.
TInt aEngine = NULL

SetTextForTextAreaElement(TInt, TDesC &)

IMPORT_C TBoolSetTextForTextAreaElement(TIntaTextAreaElementId,
TDesC &aXmlString
)

Add a text string to a text area

Parameters

TInt aTextAreaElementId
TDesC & aXmlString

SetTextForTextElement(TInt, TDesC &)

IMPORT_C TBoolSetTextForTextElement(TIntaTextElementId,
TDesC &aXmlString
)

Add a text string to a text element

Parameters

TInt aTextElementId
TDesC & aXmlString

SetThumbNailMode(TBool, TInt)

IMPORT_C voidSetThumbNailMode(TBoolaThumbNailMode,
TIntaEngine = NULL
)

Set the engine to load SVG contents as thumbnails: a) Only DRM protected contents are affected by this API. b) In thumbnail mode, DRM rights in not consumed. c) In thumbnail mode, the svg contents are drawn only to frame-buffers of 64x64 or smaller.

Parameters

TBool aThumbNailMode
TInt aEngine = NULL

SetViewportHeight(CSvgDocumentImpl *, TInt)

IMPORT_C voidSetViewportHeight(CSvgDocumentImpl *aDocumentHandle,
TIntaHeight
)

Set the Viewport Height.

Parameters

CSvgDocumentImpl * aDocumentHandle
TInt aHeight

SetViewportWidth(CSvgDocumentImpl *, TInt)

IMPORT_C voidSetViewportWidth(CSvgDocumentImpl *aDocumentHandle,
TIntaWidth
)

Set the Viewport Width.

Parameters

CSvgDocumentImpl * aDocumentHandle
TInt aWidth

Size(TInt)

IMPORT_C TSizeSize(TIntaEngine = NULL)

Returns the Size of Viewport

Since
1.0

Parameters

TInt aEngine = NULL

Start(CSvgEngineImpl *, TBool)

IMPORT_C voidStart(CSvgEngineImpl *aEngine = NULL,
TBoolaIsMainThread = ETrue
)

Request the SVG Engine to begin an animation.

Since
1.0

Parameters

CSvgEngineImpl * aEngine = NULL
TBool aIsMainThread = ETrue

Start(MSvgError *&, CSvgEngineImpl *)

IMPORT_C voidStart(MSvgError *&aError,
CSvgEngineImpl *aEngine = NULL
)
Request the SVG Engine to begin an animation. This method returns an error code.
Since
1.0

Parameters

MSvgError *& aError
CSvgEngineImpl * aEngine = NULL

Start(MSvgError *&, const TDesC8 *, CSvgEngineImpl *)

IMPORT_C voidStart(MSvgError *&aError,
const TDesC8 *aHeaderData,
CSvgEngineImpl *aEngine = NULL
)

Parameters

MSvgError *& aError
const TDesC8 * aHeaderData
CSvgEngineImpl * aEngine = NULL

Start(const TDesC8 *, CSvgEngineImpl *, TBool)

IMPORT_C voidStart(const TDesC8 *aHeaderData,
CSvgEngineImpl *aEngine = NULL,
TBoolaIsMainThread = ETrue
)

Parameters

const TDesC8 * aHeaderData
CSvgEngineImpl * aEngine = NULL
TBool aIsMainThread = ETrue

StartEngine(CSvgEngineImpl *)

IMPORT_C voidStartEngine(CSvgEngineImpl *aEngine)

Intialize the given SVG Engine.

Parameters

CSvgEngineImpl * aEngine

Stop(CSvgEngineImpl *)

IMPORT_C voidStop(CSvgEngineImpl *aEngine = NULL)

Request the SVG Engine to stop an animation.

Since
1.0

Parameters

CSvgEngineImpl * aEngine = NULL

SvgActivateAnimation(CSvgDocumentImpl *)

IMPORT_C voidSvgActivateAnimation(CSvgDocumentImpl *aDocument)

This API will start the animation if the focussed object is an animation element.

Parameters

CSvgDocumentImpl * aDocument

SvgBeginElementAt(CXmlElementImpl *, TUint32, CSvgDocumentImpl *)

IMPORT_C voidSvgBeginElementAt(CXmlElementImpl *aElementHandle,
TUint32aOffsetTime,
CSvgDocumentImpl *aDocumentHandle = NULL
)

Set the Begin time for an animation element.

Parameters

CXmlElementImpl * aElementHandle
TUint32 aOffsetTime
CSvgDocumentImpl * aDocumentHandle = NULL

SvgCreatePath()

IMPORT_C CGfxGeneralPath *SvgCreatePath()

SvgCreatePath his will create a new empty path.

SvgDestroyPath(CGfxGeneralPath *)

IMPORT_C voidSvgDestroyPath(CGfxGeneralPath *aPathHandle)

SvgDestroyPath this will delete a path given a pointer to it.

Parameters

CGfxGeneralPath * aPathHandle

SvgDocument()

IMPORT_C CSvgDocumentImpl *SvgDocument()

Retrieve the reference to the svg document object.

Since
1.0

SvgDocumentNewL()

IMPORT_C CSvgDocumentImpl *SvgDocumentNewL()

Create an empty instance of a SVG document.

SvgElementAssignDocument(CSvgElementImpl *, CSvgDocumentImpl *)

voidSvgElementAssignDocument(CSvgElementImpl *aElement,
CSvgDocumentImpl *aDoc
)

Parameters

CSvgElementImpl * aElement
CSvgDocumentImpl * aDoc

SvgEndElementAt(CXmlElementImpl *, TUint32, CSvgDocumentImpl *)

IMPORT_C voidSvgEndElementAt(CXmlElementImpl *aElementHandle,
TUint32aOffsetTime,
CSvgDocumentImpl *aDocumentHandle = NULL
)

Set the end time for an animation element.

Parameters

CXmlElementImpl * aElementHandle
TUint32 aOffsetTime
CSvgDocumentImpl * aDocumentHandle = NULL

SvgEngineNewL()

IMPORT_C CSvgEngineImpl *SvgEngineNewL()

Create an instance of a CSvgEngineImpl.

SvgGetMediaTime(CSvgDocumentImpl *)

IMPORT_C TReal32SvgGetMediaTime(CSvgDocumentImpl *aDocumentHandle)

Gets the Media time for a Document.

Parameters

CSvgDocumentImpl * aDocumentHandle

SvgHasAnimation(CSvgDocumentImpl *)

IMPORT_C TBoolSvgHasAnimation(CSvgDocumentImpl *aDocumentHandle)

checks whether the document has any animation elements present.

Parameters

CSvgDocumentImpl * aDocumentHandle

SvgSetMediaTime(CSvgDocumentImpl *, TUint32)

IMPORT_C voidSvgSetMediaTime(CSvgDocumentImpl *aDocumentHandle,
TUint32aTimeInMilliSeconds
)

Sets the Media time for a Document.

Parameters

CSvgDocumentImpl * aDocumentHandle
TUint32 aTimeInMilliSeconds

SwitchDebugInfo(TInt)

IMPORT_C voidSwitchDebugInfo(TIntaEngine = NULL)

Switch the debugging mode on/off.

Since
1.0

Parameters

TInt aEngine = NULL

TLVEncodedData()

IMPORT_C const TPtrC8TLVEncodedData()const
Added for getting the NVG-TLV from S60SVGTEngine in QT S60 baseport.
Since
1.0

UpdatePath(TInt, CSvgElementImpl *)

IMPORT_C voidUpdatePath(TInthPath,
CSvgElementImpl *hElement
)

Update the path information with the given element

Parameters

TInt hPath- path handle
CSvgElementImpl * hElement- element handle

UseDom(TInt, CFbsBitmap *, CFbsBitmap *, TInt)

IMPORT_C MSvgError *UseDom(TIntaHandle,
CFbsBitmap *aRenderBuffer,
CFbsBitmap *aMaskBuffer = NULL,
TIntaEngine = NULL
)

initialization of the engine according to a particular cached DOM tree.

Parameters

TInt aHandle
CFbsBitmap * aRenderBuffer
CFbsBitmap * aMaskBuffer = NULL
TInt aEngine = NULL

UseDom(TInt, CFbsBitmap *, CFbsBitmap *, TSize, TDisplayMode, TDisplayMode, TInt)

IMPORT_C MSvgError *UseDom(TIntaHandle,
CFbsBitmap *aRenderBuffer,
CFbsBitmap *aMaskBuffer,
TSizeaRenderBufferSize,
TDisplayModeaRenderDisplayMode,
TDisplayModeaMaskDisplayMode,
TIntaEngine = NULL
)

Parameters

TInt aHandle
CFbsBitmap * aRenderBuffer
CFbsBitmap * aMaskBuffer
TSize aRenderBufferSize
TDisplayMode aRenderDisplayMode
TDisplayMode aMaskDisplayMode
TInt aEngine = NULL

ViewportInit(CSvgDocumentImpl *)

IMPORT_C voidViewportInit(CSvgDocumentImpl *aDocumentHandle)

Parameters

CSvgDocumentImpl * aDocumentHandle

WaitForImages(TBool, TInt)

IMPORT_C voidWaitForImages(TBoolaBool = ETrue,
TIntaEngine = NULL
)

Set to indicate whether the contents should be rendered or wait for all images in a content to be decoded, defaults to waiting for all images.

Parameters

TBool aBool = ETrue
TInt aEngine = NULL

Zoom(TReal32, TInt)

IMPORT_C voidZoom(TReal32aScaleFactor,
TIntaEngine = NULL
)

Request the SVG Engine to zoom-in on the content given the zoom factor. The value range is greater than zero. The current zoom factor is multiplied with the given value to yield the final result. Redraw() must be called to update the output image.

Since
1.0

Parameters

TReal32 aScaleFactor
TInt aEngine = NULL

Member Data Documentation

TBool iDrmEnabled

TBool iDrmEnabled[private]

TBool iDrmRightsConsumptionEnabled

TBool iDrmRightsConsumptionEnabled[private]

TBool iFileIsLoaded

TBool iFileIsLoaded[protected]

TBool iIsLoadingRequest

TBool iIsLoadingRequest[private]

TBool iIsThumbNailMode

TBool iIsThumbNailMode[private]

TBool iMouseDownFlag

TBool iMouseDownFlag[private]

CSvgBitmapFontProvider * iSvgBitmapFontProvider

CSvgBitmapFontProvider *iSvgBitmapFontProvider[private]

RPointerArray< CSvgDocumentImpl > iSvgDocumentPointers

RPointerArray< CSvgDocumentImpl >iSvgDocumentPointers[protected]

CSvgEngineImpl * iSvgEngine

CSvgEngineImpl *iSvgEngine[protected]

RPointerArray< CSvgEngineImpl > iSvgEnginePointers

RPointerArray< CSvgEngineImpl >iSvgEnginePointers[protected]

CSvgErrorImpl * iSvgError

CSvgErrorImpl *iSvgError[protected]

CSvgDocumentImpl * iSvgLoadedDocument

CSvgDocumentImpl *iSvgLoadedDocument[protected]

RPointerArray< MSvgLoadingListener > iSvgLoadingListeners

RPointerArray< MSvgLoadingListener >iSvgLoadingListeners[private]

RPointerArray< CSvgElementImpl > iSvgMouseEnteredElements

RPointerArray< CSvgElementImpl >iSvgMouseEnteredElements[private]

TReal32 iTotalRotation

TReal32 iTotalRotation[protected]