MWsDrawableSourceProvider Class Reference

class MWsDrawableSourceProvider : public MWsObjectProvider

Window server evokes this interface from rendering stage plugin every time client requests resource drawing operations.

Inherits from

Member Functions Documentation

CloseDrawableSource(TAny *)

voidCloseDrawableSource(TAny *aSource)[pure virtual]
Destroy a source object associated with a drawable resource.
Post-condition
Drawing of the associated drawable resource is no longer possible.

Parameters

TAny * aSourceA pointer to a source object created by a previous call to CreateDrawableSource().

CreateDrawableSource(const TSgDrawableId &, TAny *&)

TInt CreateDrawableSource(const TSgDrawableId &aDrawableId,
TAny *&aSource
)[pure virtual]
Create a source object for future drawing of the drawable resource with the specified ID.
Post-condition
If successful, a new source object is created and the associated drawable resource is ready to use.

Parameters

const TSgDrawableId & aDrawableIdThe ID of the drawable resource.
TAny *& aSourceOn output, a pointer to the new source object associated with the drawable resource, which must be passed in calls to DrawResource() and CloseDrawableSource(). After the call to CloseDrawableSource() the source object is destroyed and this pointer becomes invalid. The type of the source object is defined by the implementation of MWsDrawableSourceProvider.

DrawResource(const TAny *, const TPoint &, CWindowGc::TGraphicsRotation)

voidDrawResource(const TAny *aSource,
const TPoint &aPos,
CWindowGc::TGraphicsRotationaRotation = CWindowGc::EGraphicsRotationNone
)[pure virtual]
Draw a graphics resource.
Pre-condition
A source object must have been created for the drawable resource by a previous call to CreateDrawableSource().

Parameters

const TAny * aSourceA pointer to the source object associated with the drawable resource.
const TPoint & aPosDestination position for the top-left corner of the drawable resource.
CWindowGc::TGraphicsRotation aRotation = CWindowGc::EGraphicsRotationNoneRotation to be applied to the drawable resource before it is drawn.

DrawResource(const TAny *, const TRect &, CWindowGc::TGraphicsRotation)

voidDrawResource(const TAny *aSource,
const TRect &aRect,
CWindowGc::TGraphicsRotationaRotation = CWindowGc::EGraphicsRotationNone
)[pure virtual]
Draw a graphics resource.
Pre-condition
A source object must have been created for the drawable resource by a previous call to CreateDrawableSource().

Parameters

const TAny * aSourceA pointer to the source object associated with the drawable resource.
const TRect & aRectDestination rectangle. The drawable resource could be scaled if its size doesn't match the destination rectangle.
CWindowGc::TGraphicsRotation aRotation = CWindowGc::EGraphicsRotationNoneRotation to be applied to the drawable resource before it is drawn.

DrawResource(const TAny *, const TRect &, const TRect &, CWindowGc::TGraphicsRotation)

voidDrawResource(const TAny *aSource,
const TRect &aRectDest,
const TRect &aRectSrc,
CWindowGc::TGraphicsRotationaRotation = CWindowGc::EGraphicsRotationNone
)[pure virtual]
Draw a graphics resource.
Pre-condition
A source object must have been created for the drawable resource by a previous call to CreateDrawableSource().

Parameters

const TAny * aSourceA pointer to the source object associated with the drawable resource.
const TRect & aRectDestDestination rectangle. The drawable resource could be scaled if its size doesn't match the destination rectangle.
const TRect & aRectSrcA rectangle defining the piece of the drawable resource to be drawn, in the co-ordinate system of the drawable resource.
CWindowGc::TGraphicsRotation aRotation = CWindowGc::EGraphicsRotationNoneRotation to be applied to the drawable resource before it is drawn.

DrawResource(const TAny *, const TRect &, const TDesC8 &)

voidDrawResource(const TAny *aSource,
const TRect &aRect,
const TDesC8 &aParam
)[pure virtual]
Draw a graphics resource.
Pre-condition
A source object must have been created for the drawable resource by a previous call to CreateDrawableSource().

Parameters

const TAny * aSourceA pointer to the source object associated with the drawable resource.
const TRect & aRectDestination rectangle. The drawable resource could be scaled if its size doesn't match the destination rectangle.
const TDesC8 & aParamParameters specifying how to draw the drawable resource.