class CEikImage : public CEikAlignedControl |
The package class 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 | |
---|---|
CEikImage() | |
~CEikImage() | |
IMPORT_C const CFbsBitmap * | Bitmap() |
IMPORT_C void | ConstructFromResourceL(TResourceReader &) |
IMPORT_C void | CreatePictureFromFileL(const TDesC &, TInt, TInt) |
IMPORT_C void | HandlePointerEventL(const TPointerEvent &) |
IMPORT_C TBool | IsPictureOwnedExternally() |
IMPORT_C const CFbsBitmap * | Mask() |
IMPORT_C TSize | MinimumSize() |
IMPORT_C void | SetBitmap(const CFbsBitmap *) |
IMPORT_C void | SetBrushStyle(CGraphicsContext::TBrushStyle) |
IMPORT_C void | SetEmphasis(TBool) |
IMPORT_C void | SetMask(const CFbsBitmap *) |
IMPORT_C void | SetNewBitmaps(const CFbsBitmap *, const CFbsBitmap *) |
IMPORT_C void | SetPicture(const CFbsBitmap *, const CFbsBitmap *) |
IMPORT_C void | SetPictureOwnedExternally(TBool) |
Protected Member Functions | |
---|---|
IMPORT_C void | WriteInternalStateL(RWriteStream &) |
Private Member Functions | |
---|---|
IMPORT_C void | Draw(const TRect &) |
IMPORT_C void * | ExtensionInterface(TUid) |
IMPORT_C void | Reserved_2() |
Inherited Enumerations | |
---|---|
CCoeControl:TZoomType |
Private Attributes | |
---|---|
const CFbsBitmap * | iBitmap |
CGraphicsContext::TBrushStyle | iBrushStyle |
TInt | iImFlags |
const CFbsBitmap * | iMaskBitmap |
TInt | iSpare |
Inherited Attributes | |
---|---|
CCoeControl::iCoeEnv | |
CCoeControl::iContext | |
CCoeControl::iPosition | |
CCoeControl::iSize | |
CEikAlignedControl::iAlignment | |
CEikAlignedControl::iMargin |
IMPORT_C const CFbsBitmap * | Bitmap | ( | ) | const |
Gets a pointer of CFbsBitmap object.
Pointer to handle to the bitmap or NULL.
IMPORT_C void | ConstructFromResourceL | ( | TResourceReader & | aReader | ) | [virtual] |
Constructs an image from resource using the specified resource reader.
TResourceReader & aReader | The resource reader. |
IMPORT_C void | CreatePictureFromFileL | ( | const TDesC & | aFilename, |
TInt | aMainId, | |||
TInt | aMaskId = -1 | |||
) |
Creates a bitmap and a mask for an icon. If aMaskId is not negative then function allocates bitmap and mask objects and sets member variables to point at them. These bitmaps are not ready for drawing until they are initialized with SetSize() method. Usually, UI controls do this. Note also that a single SetSize() call initializes both the bitmap and the mask.
If aMaskId is not needed and not given then this function creates the bitmap for an icon. Returned object is saved to the member variable. The bitmap is not ready for drawing until it is initialized with SetSize() method. Usually, UI controls do this.
IMPORT_C void | Draw | ( | const TRect & | aRect | ) | const [private, virtual] |
const TRect & aRect |
IMPORT_C void * | ExtensionInterface | ( | TUid | aInterface | ) | [private, virtual] |
From CAknControl
TUid aInterface |
IMPORT_C void | HandlePointerEventL | ( | const TPointerEvent & | aPointerEvent | ) | [virtual] |
From CCoeControl.
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 EButton1Down are processed before HandlePointerEventL() is called in order to transfer keyboard focus to the control in which the EButton1Down event occurred.
If overriding HandlePointerEventL(), the implementation must include a base call to CCoeControl's HandlePointerEventL().
const TPointerEvent & aPointerEvent | The pointer event. |
IMPORT_C TBool | IsPictureOwnedExternally | ( | ) |
Checks whether picture is owned externally.
ETrue if picture owned externally and EFalse if not.
IMPORT_C const CFbsBitmap * | Mask | ( | ) | const |
Gets pointer of CFbsBitmap object.
Pointer to handle to the bitmap's mask or NULL.
IMPORT_C TSize | MinimumSize | ( | ) | [virtual] |
Gets the minimum size required to draw the image.
The minimum size required to draw the image.
IMPORT_C void | SetBitmap | ( | const CFbsBitmap * | aBitmap | ) |
Sets new bitmap.
const CFbsBitmap * aBitmap | Pointer to CFbsBitmap object containing the bitmap. |
IMPORT_C void | SetBrushStyle | ( | CGraphicsContext::TBrushStyle | aBrushStyle | ) |
Sets the brush style.
CGraphicsContext::TBrushStyle aBrushStyle | A brush style. |
IMPORT_C void | SetEmphasis | ( | TBool | aEmphasis | ) |
Sets emphasis.
TBool aEmphasis | Full emphasis if ETrue and if not then EFalse. |
IMPORT_C void | SetMask | ( | const CFbsBitmap * | aMaskBitmap | ) |
Sets new bitmap mask.
const CFbsBitmap * aMaskBitmap | Pointer to CFbsBitmap object containing the bitmap mask. |
IMPORT_C void | SetNewBitmaps | ( | const CFbsBitmap * | aNewBitmap, |
const CFbsBitmap * | aNewMask | |||
) |
Sets new bitmap and bitmap's mask.
const CFbsBitmap * aNewBitmap | A bitmap. |
const CFbsBitmap * aNewMask | A bitmap mask. |
IMPORT_C void | SetPicture | ( | const CFbsBitmap * | aBitmap, |
const CFbsBitmap * | aMaskBitmap = NULL | |||
) |
Sets picture parameters.
const CFbsBitmap * aBitmap | A bitmap. |
const CFbsBitmap * aMaskBitmap = NULL | A bitmap mask. |
IMPORT_C void | SetPictureOwnedExternally | ( | TBool | aOwnership | ) |
Sets the owner of the picture.
TBool aOwnership | Etrue if owner is external and EFalse if not. |
IMPORT_C void | WriteInternalStateL | ( | RWriteStream & | aWriteStream | ) | const [protected, virtual] |
From CCoeControl
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.
App-Framework_6.1
RWriteStream & aWriteStream | The pointer writestream. |