CEikMenuBarTitle Class Reference
class CEikMenuBarTitle : public CBase |
Nested Classes and Structures
Detailed Description
The CEikMenuBarTitle class encapsulates the data needed to define a menu bar title and provides some of the functionality required to display the title.
Member Attribute Documentation
iPos
The title s position on the menu bar.
iTitleFlags
Flags used internally by the menu bar title.
Constructor & Destructor Documentation
CEikMenuBarTitle ( )
IMPORT_C | CEikMenuBarTitle | ( | ) | |
~CEikMenuBarTitle ( )
IMPORT_C | ~CEikMenuBarTitle | ( | ) | |
Member Function Documentation
CalculateBaseLine ( TInt &, TInt & )
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.
Parameter | Description | aBaseLine | Gets result of baseline. |
aTitleHeight | Gets result of height. |
CreateIconL ( CFbsBitmap *, CFbsBitmap * )
Constructs a new icon for the title, taking ownership of the picture bitmap and the mask bitmap unless they are externally owned.
Parameter | Description | aBitmap | Bitmap. |
aMask | Mask of the bitmap. |
DrawIcon ( CWindowGc &, TRect, TInt )
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.
Parameter | Description | aGc | Window graphic context. |
aRect | Rectangle area. |
aLeftMargin | Left margin. |
ExtraLeftMargin ( )
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.
Returns: Value of extra left margin.
IconBitmap ( )
Gets a pointer to the title icon s bitmap. Does not imply transfer of ownership.
Returns: Pointer to the title icon s bitmap.
IconMask ( )
Gets a pointer to the title icon s bitmap mask. Does not imply transfer of ownership.
Returns: Pointer to the title icon s bitmap mask.
SetBitmapsOwnedExternally ( TBool )
IMPORT_C void | SetBitmapsOwnedExternally | ( | TBool | aOwnedExternally | ) | |
Sets whether the bitmap and mask are owned externally or not.
Parameter | Description | aOwnedExternally | ETrue if bitmaps are set as externally owned. EFalse if bitmaps are set as not being externally owned. |
SetIcon ( CGulIcon * )
Parameter | Description | aIcon | The icon to set. |
SetIconBitmapL ( CFbsBitmap * )
Sets the bitmap for the icon. Transfers ownership unless the bitmaps are owned externally.
Parameter | Description | aBitmap | Bitmap |
SetIconMaskL ( CFbsBitmap * )
Sets the bitmap mask for the icon. Transfers ownership unless the bitmaps are owned externally.
Parameter | Description | aMask | Mask of a bitmap. |