#include <mw/eikcmbut.h>
class CEikBitmapButton : public CEikCommandButtonBase |
Public Member Functions | |
---|---|
CEikBitmapButton() | |
~CEikBitmapButton() | |
virtual IMPORT_C void | ConstructFromResourceL(TResourceReader &) |
virtual IMPORT_C void | HandlePointerEventL(const TPointerEvent &) |
IMPORT_C CEikImage * | Picture(TWhichComponent) |
IMPORT_C void | SetPictureFromFileL(const TDesC &, TInt, TInt, TWhichComponent) |
IMPORT_C void | SetPictureL(const CFbsBitmap *, const CFbsBitmap *, TWhichComponent) |
A command button with a single bitmap
This specialization of CEikCommandButtonBase supports a single bitmap, optionally with a mask.
IMPORT_C void | ConstructFromResourceL | ( | TResourceReader & | aReader | ) | [virtual] |
Reimplemented from CCoeControl::ConstructFromResourceL(TResourceReader &)
From CCoeControl
Construct the object from resource
Parameter | Description |
---|---|
aReader | Fully constructed resource reader |
IMPORT_C void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
Reimplemented from CEikCommandButtonBase::HandlePointerEventL(const TPointerEvent &)
From CCoeControl
Handle a pointer event coming from the CONE framework
Parameter | Description |
---|---|
aPointerEvent | Event to handle |
IMPORT_C CEikImage * | Picture | ( | TWhichComponent | aWhich = EFirst | ) | const |
Access to the image
Parameter | Description |
---|---|
aWhich | Which picture to access |
Returns: pointer to the image. No ownership is transferred
IMPORT_C void | SetPictureFromFileL | ( | const TDesC & | aFilename, |
TInt | aMain, | |||
TInt | aMask = -1, | |||
TWhichComponent | aWhich = EFirst | |||
) |
Sets the bitmap and optional mask from an mbm file.
Parameter | Description |
---|---|
aMain | Index of the bitmap to use |
aMask | Index of the mask. If -1, then a null mask will be used |
aWhich | The component for which the picture is to be set. |
IMPORT_C void | SetPictureL | ( | const CFbsBitmap * | aMain, |
const CFbsBitmap * | aMask = NULL, | |||
TWhichComponent | aWhich = EFirst | |||
) |
Sets the bitmap and optional mask for the button
Parameter | Description |
---|---|
aMain | The bitmap to use |
aMask | The mask. If null, then no mask will be used |
aWhich | The component for which the picture is to be set. |