class RDirectGdiDrawableSource |
This class is a handle to a DirectGDI adaptation-specific resource that is bound to a non-image resource ( RSgDrawable ). The intention of creating this class is to allow a non-image resource (global and sharable between processes) to be used as a source from the DirectGDI rendering API. This class and its DirectGDI adaptation-specific resource are non-sharable and will be local to the calling thread.
This class is part of generic code and will forward creation and deletion requests to the CDirectGdiDriver singleton object for the calling thread.
Public Member Functions | |
---|---|
RDirectGdiDrawableSource () | |
RDirectGdiDrawableSource ( CDirectGdiDriver &) | |
IMPORT_C void | Close () |
IMPORT_C TInt | Create (const RSgDrawable &) |
TInt | Handle () |
Private Attributes | |
---|---|
CDirectGdiDriver * | iDriver |
TInt | iHandle |
IMPORT_C | RDirectGdiDrawableSource | ( | ) |
Default constructor. Only for embedding instances of RDirectGdiDrawableSource into other classes as data members. Before a RDirectGdiDrawableSource can be used the other constructor must be called.
IMPORT_C | RDirectGdiDrawableSource | ( | CDirectGdiDriver & | aDriver | ) |
Constructor.
CDirectGdiDriver & aDriver | The CDirectGdiDriver for this thread. |
IMPORT_C void | Close | ( | ) |
Destroys the DirectGDI adaptation-specific resource associated with this handle. Calling this method on a handle that is not associated with any DirectGDI adaptation-specific resource will do nothing. Once Close() is called, this handle can be reused.
IMPORT_C TInt | Create | ( | const RSgDrawable & | aDrawable | ) |
Creates a DirectGDI adaptation-specific resource that is bound to the specified drawable resource so it can be drawn using the DirectGDI rendering API.
const RSgDrawable & aDrawable | The drawable resource. |
TInt | Handle | ( | ) | const [inline] |
Accessor for reference to adaptation object.
RDirectGdiImageTarget::SetHandle()
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.