#include <w32std.h>
Link against: ws32.lib
class CWsBitmap : public CFbsBitmap, public MWsClientClass, public CFbsBitmap, public MWsClientClass |
Public Member Functions | |
---|---|
CWsBitmap() | |
CWsBitmap(RWsSession &) | |
~CWsBitmap() | |
IMPORT_C TInt | Create(const TSize &, TDisplayMode) |
IMPORT_C TInt | Duplicate(TInt) |
IMPORT_C void | InternalizeL(RReadStream &) |
IMPORT_C TInt | Load(const TDesC &, TInt32, TBool) |
IMPORT_C void | Reset() |
Inherited Enumerations | |
---|---|
CFbsBitmap:@43 |
Window server bitmap.
This is a bitmap to which the window server already has a handle. Functions which take a window server bitmap are faster than equivalent functions which take a CFbsBitmap.
IMPORT_C | CWsBitmap | ( | ) |
Default constructor. Developers should use the other constructor overload.
IMPORT_C | CWsBitmap | ( | RWsSession & | aWs | ) |
Constructor which takes a window server session as an argument.
Parameters | |
---|---|
aWs | Handle to window server session. |
IMPORT_C TInt | Create | ( | const TSize & | aSizeInPixels, |
TDisplayMode | aDispMode | |||
) |
Reimplemented from CFbsBitmap::Create(const TSize &,TDisplayMode)
Creates a bitmap, specifying the size and display mode.
This function, if successful, always causes a flush of the window server buffer.
See also: CFbsBitmap::Create()
Parameters | |
---|---|
aSizeInPixels | The size of the bitmap to be created. |
aDispMode | The display-mode of the bitmap to be created. |
Reimplemented from CFbsBitmap::Duplicate(TInt)
Makes this bitmap a duplicate of the specified bitmap.
This function, if successful, always causes a flush of the window server buffer.
See also: CFbsBitmap::Duplicate()
Parameters | |
---|---|
aHandle | The handle of the bitmap to be duplicated. |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
Reimplemented from CFbsBitmap::InternalizeL(RReadStream &)
Internalises a CWsBitmap from the read stream.
The presence of this function means that the standard templated operator>>() can be used to internalise objects of this class.
This function always causes a flush of the window server buffer.
Parameters | |
---|---|
aStream | The stream from which to internalise the bitmap. |
Reimplemented from CFbsBitmap::Load(const TDesC &,TInt32,TBool)
Loads a bitmap from a file.
If aShareIfLoaded is ETrue the bitmap will be allowed to be shared by a number of font and bitmap server clients.
This function, if successful, always causes a flush of the window server buffer.
See also: CFbsBitmap::Load()
Parameters | |
---|---|
aFileName | The filename of the multibitmap (.mbm) file containing the bitmap to be loaded. |
aId | The identifier of the bitmap in the .mbm file which should be loaded. |
aShareIfLoaded | Specifies whether or not the loaded bitmap will be made available for sharing between font and bitmap server clients. |
IMPORT_C void | Reset | ( | ) |
Reimplemented from CFbsBitmap::Reset()
Releases the bitmap's handle from the font and bitmap server.
The function also decrements the bitmap's access count in the font and bitmap server. The server-side bitmap is deleted only if the access count for the bitmap decrements to zero.