API published in: S60 1st Ed
Link against: eikcoctl.lib
Required Capabilities
None
#include <eikimage.h>
Inherits CEikAlignedControl.
CEikImage
enables bitmaps to be packaged into an image.
Two bitmaps can be packaged, one for the image itself and, optionally, another for the image’s mask.
Public Member Functions |
|
IMPORT_C | CEikImage () |
C++ default constructor. |
|
IMPORT_C | ~CEikImage () |
Destructor. |
|
IMPORT_C TSize | MinimumSize () |
Gets the minimum size required to draw the image. |
|
IMPORT_C void | ConstructFromResourceL (TResourceReader &aReader) |
Constructs an image from resource using the specified resource reader. |
|
IMPORT_C void | CreatePictureFromFileL (const TDesC &aFilename, TInt aMainId, TInt aMaskId=-1) |
Creates a bitmap and a mask for an icon. |
|
IMPORT_C void | SetPicture (const CFbsBitmap *aBitmap, const CFbsBitmap *aMaskBitmap=NULL) |
Sets picture parameters. |
|
IMPORT_C void | SetEmphasis (TBool aEmphasis) |
Sets emphasis. |
|
IMPORT_C void | SetPictureOwnedExternally (TBool aOwnership) |
Sets the owner of the picture. |
|
IMPORT_C const CFbsBitmap * | Bitmap () const |
Gets a pointer of CFbsBitmap object. |
|
IMPORT_C const CFbsBitmap * | Mask () const |
Gets pointer of CFbsBitmap object. |
|
IMPORT_C void | SetBitmap (const CFbsBitmap *aBitmap) |
Sets new bitmap. |
|
IMPORT_C void | SetMask (const CFbsBitmap *aMaskBitmap) |
Sets new bitmap mask. |
|
IMPORT_C void | SetNewBitmaps (const CFbsBitmap *aNewBitmap, const CFbsBitmap *aNewMask) |
Sets new bitmap and bitmap's mask. |
|
IMPORT_C TBool | IsPictureOwnedExternally () |
Checks whether picture is owned externally. |
|
IMPORT_C void | SetBrushStyle (CGraphicsContext::TBrushStyle aBrushStyle) |
Sets the brush style. |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl . |
|
Protected Member Functions |
|
IMPORT_C void | WriteInternalStateL (RWriteStream &aWriteStream) const |
From CCoeControl . |
|
C++ default constructor. |
|
Destructor. |
|
Gets a pointer of
|
|
Constructs an image from resource using the specified resource reader.
|
|
Creates a bitmap and a mask for an icon.
If
If
|
|
From Handles pointer events. This function gets called whenever a pointer event occurs in the control, i.e. when the pointer is within the control's extent, or when the control has grabbed the pointer. The control should implement this function to handle pointer events.
Note: events of type
If overriding
Reimplemented from CEikAlignedControl. |
|
Checks whether picture is owned externally.
|
|
Gets pointer of
|
|
Gets the minimum size required to draw the image.
|
|
Sets new bitmap.
|
|
Sets the brush style.
|
|
Sets emphasis.
|
|
Sets new bitmap mask.
|
|
Sets new bitmap and bitmap's mask.
|
|
Sets picture parameters.
|
|
Sets the owner of the picture.
|
|
From Writes the internal state of the control and its components to a stream. Does nothing in release mode. Designed to be overidden and base called by subclasses.
Reimplemented from CEikAlignedControl. |