RWsDrawableSource Class Reference

class RWsDrawableSource : public MWsClientClass

The intention of this class is to enable drawing of drawables (RSgDrawable and RSgImage) using CWindowGc and CRemoteGc.

You have to use the extension interface MWsDrawResource in order to use this class with CWindowGc and CRemoteGc.

RSgDrawable RSgImage MWsDrawResource

Inherits from

Public Member Functions
RWsDrawableSource()
RWsDrawableSource(RWsSession &)
IMPORT_C voidClose()
IMPORT_C TIntCreate(const RSgDrawable &)
IMPORT_C TIntCreate(const RSgDrawable &, TInt)
IMPORT_C const TSgDrawableId &DrawableId()
IMPORT_C TIntScreenNumber()
Inherited Functions
MWsClientClass::AddToBitmapArray(const TInt)const
MWsClientClass::AsyncRequest(TRequestStatus &,TUint)const
MWsClientClass::CachedWindowSize(TSize &)const
MWsClientClass::DestroyWindowNativeSizeCacheEntry()
MWsClientClass::DestroyWindowSizeCacheEntry()
MWsClientClass::EnableWindowNativeSizeCacheL()
MWsClientClass::MWsClientClass()
MWsClientClass::MWsClientClass(RWsBuffer *)
MWsClientClass::MarkWindowSizeCacheDirty()
MWsClientClass::RefreshWindowSizeCache(const TSize &)const
MWsClientClass::SetWindowNativeSize(const TSize &)const
MWsClientClass::WindowNativeSize(TSize &)const
MWsClientClass::WindowNativeSizeCacheEnabled()const
MWsClientClass::WindowSizeCacheEnabled()const
MWsClientClass::Write(TUint)const
MWsClientClass::Write(const TAny *,TInt,TUint)const
MWsClientClass::Write(const TAny *,TInt,const TAny *,TInt,TUint)const
MWsClientClass::WriteInt(TInt,TUint)const
MWsClientClass::WritePoint(const TPoint &,TUint)const
MWsClientClass::WriteRect(const TRect &,TUint)const
MWsClientClass::WriteReply(TUint,const TIpcArgs *)const
MWsClientClass::WriteReply(const TAny *,TInt,TUint,const TIpcArgs *)const
MWsClientClass::WriteReply(const TAny *,TInt,const TAny *,TInt,TUint,const TIpcArgs *)const
MWsClientClass::WriteReplyByProvidingRemoteReadAccess(const TAny *,TInt,const TReadDescriptorType &,TUint)const
MWsClientClass::WriteReplyInt(TInt,TUint,const TIpcArgs *)const
MWsClientClass::WriteReplyIntP(TInt,const TWriteDescriptorType &,TUint)const
MWsClientClass::WriteReplyP(const TAny *,TInt,const TAny *,TInt,const TWriteDescriptorType &,TUint)const
MWsClientClass::WriteReplyP(const TAny *,TInt,const TWriteDescriptorType &,TUint)const
MWsClientClass::WriteReplyP(const TWriteDescriptorType &,TUint)const
MWsClientClass::WriteSize(const TSize &,TUint)const
MWsClientClass::WsHandle()const
Private Attributes
TSgDrawableIdiDrawableId
TInt iReserved
TInt iScreenNumber
Inherited Attributes
MWsClientClass::iBuffer
MWsClientClass::iWsHandle

Constructor & Destructor Documentation

RWsDrawableSource()

IMPORT_CRWsDrawableSource()

Default constructor. Only for embedding instances of RWsDrawableSource into other classes as data members. Before a RWsDrawableSource can be used the other constructor must be called.

RWsDrawableSource(RWsSession &)

IMPORT_CRWsDrawableSource(RWsSession &aWs)
Constructor.
Pre-condition
Connection to the window server is established

Parameters

RWsSession & aWsSession to the window server

Member Functions Documentation

Close()

IMPORT_C voidClose()

Destroy the window server drawable source. Calling this method on a object that is not associated with any RSgDrawable resource will have no effect. Once Close() is called, this drawable source object can be reused.

Post-condition
The window server drawable object is destroyed. The instance is no longer associated with a RSgDrawable specific resource. The reference counter of the underlying image resource is decremented.

Create(const RSgDrawable &)

IMPORT_C TIntCreate(const RSgDrawable &aDrawable)

Create window server object for resource drawing operation via window server.

This object will be identified by a unique handle and will be associated with drawable resource which is passed as a parameter.

This object will be created for drawing onto the default screen only.

CWindowGc
Post-condition
Drawable source is created and can be used by window server. The reference counter of the underlying image resource is incremented.

Parameters

const RSgDrawable & aDrawableDrawable resource.

Create(const RSgDrawable &, TInt)

IMPORT_C TIntCreate(const RSgDrawable &aDrawable,
TIntaScreenNumber
)

Create window server object for resource drawing operation via window server.

This object will be identified by unique handle and will be associated with drawable resource which is passed as a parameter.

This object will be created for drawing onto the specified screen only.

CWindowGc
Post-condition
Drawable source is created and can be used by window server. The reference counter of the underlying image resource is incremented.

Parameters

const RSgDrawable & aDrawableDrawable resource.
TInt aScreenNumberThe screen onto which this drawable resource can be drawn.

DrawableId()

IMPORT_C const TSgDrawableId &DrawableId()const

Get the unique ID of the associated drawable resource.

ScreenNumber()

IMPORT_C TIntScreenNumber()const

Get the screen number of the drawable source.

Member Data Documentation

TSgDrawableId iDrawableId

TSgDrawableIdiDrawableId[private]

TInt iReserved

TInt iReserved[private]

TInt iScreenNumber

TInt iScreenNumber[private]