class CDirectScreenBitmap : public CBase |
Direct Screen Bitmap. API to allow provide synchronisation of the display of images with the displays refresh to prevent tearing.
This is an abstract base class, so must be derived from on a per-variant basis.
Note: this class is likely to be deprecated in the future
Public Member Functions | |
---|---|
TInt | BeginUpdate ( TAcceleratedBitmapInfo &) |
void | Close () |
TInt | Create (const TRect &, TSettingsFlags ) |
void | EndUpdate ( TRequestStatus &) |
void | EndUpdate (const TRect &, TRequestStatus &) |
IMPORT_C CDirectScreenBitmap * | NewL () |
IMPORT_C CDirectScreenBitmap * | NewL ( TInt ) |
Public Member Enumerations | |
---|---|
enum | TSettingsFlags { ENone = 0, EDoubleBuffer = 1, EIncrementalUpdate = 2 } |
TInt | BeginUpdate | ( | TAcceleratedBitmapInfo & | aBitmapInfo | ) | [pure virtual] |
Returns a TAcceleratedBitmapInfo referring to a bitmap which the applicationcan render to.
TAcceleratedBitmapInfo & aBitmapInfo | The Bitmap |
void | Close | ( | ) | [pure virtual] |
Deletes all resources associated with the CDirectScreenBitmap object.
TInt | Create | ( | const TRect & | aScreenRect, |
TSettingsFlags | aSettingsFlags | |||
) | [pure virtual] |
Creates a CDirectScreenBitmap object which can be used for drawing to a region of the screen indicated by aScreenRect. This region must have previously been 'claimed' via the Window Servers Direct Screen Access API.
const TRect & aScreenRect | The region to be displayed |
TSettingsFlags aSettingsFlags | The mode of operation. The upper 3 bits are used for the screen number value: 0..7. By default the screen with number 0 will be used. |
void | EndUpdate | ( | TRequestStatus & | aComplete | ) | [pure virtual] |
Indicates to the Video Driver that the bitmap corresponding to the update has been fully rendered. The video driver will perform the actions required to copy this to the frame buffer.
The request status aComplete will be signalled when the copying has completed.
TRequestStatus & aComplete | Asynchronous completion status |
void | EndUpdate | ( | const TRect & | aScreenRect, |
TRequestStatus & | aComplete | |||
) | [pure virtual] |
Indicates to the Video Driver that the area indicated in aScreenRect has been fully rendered. The video driver will perform the actions required to copy this to the frame buffer.
The request status aComplete will be signalled when the copying has completed.
Note: aScreenRects coordinates are relative to the screen, not the update region specified in Create() . aScreenRect must fit entirely within the bounds of the original region passed to Create() .
const TRect & aScreenRect | The region to update |
TRequestStatus & aComplete | Asynchronous completion status |
IMPORT_C CDirectScreenBitmap * | NewL | ( | ) | [static] |
IMPORT_C CDirectScreenBitmap * | NewL | ( | TInt | aScreenNo | ) | [static] |
TInt aScreenNo | Screen number, used by the CDirectScreenBitmap object. |
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.