class CEikMenuBarTitle : public CBase |
The CEikMenuBarTitle class encapsulates the data needed to define a menu bar title and provides some of the functionality required to display the title.
ER5U
Public Member Functions | |
---|---|
CEikMenuBarTitle() | |
~CEikMenuBarTitle() | |
void | CalculateBaseLine(TInt &, TInt &) |
IMPORT_C void | CreateIconL(CFbsBitmap *, CFbsBitmap *) |
IMPORT_C void | DrawIcon(CWindowGc &, TRect, TInt) |
TInt | ExtraLeftMargin() |
IMPORT_C CFbsBitmap * | IconBitmap() |
IMPORT_C CFbsBitmap * | IconMask() |
IMPORT_C void | SetBitmapsOwnedExternally(TBool) |
IMPORT_C void | SetIcon(CGulIcon *) |
IMPORT_C void | SetIconBitmapL(CFbsBitmap *) |
IMPORT_C void | SetIconMaskL(CFbsBitmap *) |
Public Attributes | |
---|---|
SData | iData |
TInt | iPos |
TInt | iTitleFlags |
TInt | iWidth |
Private Attributes | |
---|---|
CGulIcon * | iIcon |
void | CalculateBaseLine | ( | TInt & | aBaseLine, |
TInt & | aTitleHeight | |||
) |
Adjusts the value of the title text baseline offset aBaseLine to take into account any size of the title icon.
IMPORT_C void | CreateIconL | ( | CFbsBitmap * | aBitmap, |
CFbsBitmap * | aMask | |||
) |
Constructs a new icon for the title, taking ownership of the picture bitmap and the mask bitmap unless they are externally owned.
CFbsBitmap * aBitmap | Bitmap. |
CFbsBitmap * aMask | Mask of the bitmap. |
IMPORT_C void | DrawIcon | ( | CWindowGc & | aGc, |
TRect | aRect, | |||
TInt | aLeftMargin | |||
) | const |
Draws the title icon to the graphics context aGc, inside the rect aRect with an offset from the left side of the rectangle of size aLeftMargin.
TInt | ExtraLeftMargin | ( | ) | const |
Gets the value of the extra left margin for the title text which will take into account the width of the title icon.
Value of extra left margin.
IMPORT_C CFbsBitmap * | IconBitmap | ( | ) | const |
Gets a pointer to the title icon s bitmap. Does not imply transfer of ownership.
Pointer to the title icon s bitmap.
IMPORT_C CFbsBitmap * | IconMask | ( | ) | const |
Gets a pointer to the title icon s bitmap mask. Does not imply transfer of ownership.
Pointer to the title icon s bitmap mask.
IMPORT_C void | SetBitmapsOwnedExternally | ( | TBool | aOwnedExternally | ) |
Sets whether the bitmap and mask are owned externally or not.
TBool aOwnedExternally | ETrue if bitmaps are set as externally owned. EFalse if bitmaps are set as not being externally owned. |
IMPORT_C void | SetIcon | ( | CGulIcon * | aIcon | ) |
Sets the title icon.
CGulIcon * aIcon | The icon to set. |
IMPORT_C void | SetIconBitmapL | ( | CFbsBitmap * | aBitmap | ) |
Sets the bitmap for the icon. Transfers ownership unless the bitmaps are owned externally.
CFbsBitmap * aBitmap | Bitmap |
IMPORT_C void | SetIconMaskL | ( | CFbsBitmap * | aMask | ) |
Sets the bitmap mask for the icon. Transfers ownership unless the bitmaps are owned externally.
CFbsBitmap * aMask | Mask of a bitmap. |