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
Public Member Functions | |
---|---|
RWsDrawableSource() | |
RWsDrawableSource(RWsSession &) | |
IMPORT_C void | Close() |
IMPORT_C TInt | Create(const RSgDrawable &) |
IMPORT_C TInt | Create(const RSgDrawable &, TInt) |
IMPORT_C const TSgDrawableId & | DrawableId() |
IMPORT_C TInt | ScreenNumber() |
Private Attributes | |
---|---|
TSgDrawableId | iDrawableId |
TInt | iReserved |
TInt | iScreenNumber |
Inherited Attributes | |
---|---|
MWsClientClass::iBuffer | |
MWsClientClass::iWsHandle |
IMPORT_C | RWsDrawableSource | ( | ) |
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.
IMPORT_C | RWsDrawableSource | ( | RWsSession & | aWs | ) |
RWsSession & aWs | Session to the window server |
IMPORT_C void | Close | ( | ) |
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.
IMPORT_C TInt | Create | ( | 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.
const RSgDrawable & aDrawable | Drawable resource. |
IMPORT_C TInt | Create | ( | const RSgDrawable & | aDrawable, |
TInt | aScreenNumber | |||
) |
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.
const RSgDrawable & aDrawable | Drawable resource. |
TInt aScreenNumber | The screen onto which this drawable resource can be drawn. |
IMPORT_C const TSgDrawableId & | DrawableId | ( | ) | const |
Get the unique ID of the associated drawable resource.
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.