| class CEikCbaButton : public CAknControl |
EIKON CBA button class definition.
| Public Member Functions | |
|---|---|
| ~CEikCbaButton() | |
| void | AddCommandL(const TDesC &) |
| void | ConstructEmptyButtonL() |
| void | ConstructFromResourceL(TResourceReader &, TGulAlignmentValue) |
| void | ConstructL(TGulAlignmentValue) |
| void | DrawToContext(CBitmapContext &, CBitmapContext &, const TPoint &) |
| TPtrC | FullLabelText() |
| IMPORT_C void | HandlePointerEventL(const TPointerEvent &) |
| TBool | IsEmptyText() |
| TBool | IsImageOn() |
| TSize | MinimumSize() |
| TInt | PopCommand() |
| TBool | PressedDown() |
| void | PushCommandL(TInt, const TDesC &) |
| void | RemoveCommand(TInt) |
| void | RemovePreviousCommand() |
| void | ReplaceImageByLabel() |
| void | SetContainerWindowL(const CCoeControl &) |
| void | SetDimmed(TBool) |
| void | SetImage(CEikImage &) |
| void | SetLabelFont(const CFont *) |
| void | SetPressedDown(const TBool) |
| void | SetTextBitmapMode(TBool) |
| void | SwitchToShortTextL(TBool) |
| void | TruncateLabelText() |
| Protected Member Functions | |
|---|---|
| TInt | IndexFromCommandId(TInt) |
| void | UpdateLabelText(TPtrC) |
| Private Member Functions | |
|---|---|
| CCoeControl * | ComponentControl(TInt) |
| TInt | CountComponentControls() |
| IMPORT_C void * | ExtensionInterface(TUid) |
| void | PrepareImageL() |
| void | SizeChanged() |
| Inherited Enumerations | |
|---|---|
| CCoeControl:TZoomType | |
| Protected Attributes | |
|---|---|
| CArrayFix< SButtonOptions > * | iButtonOptions |
| TBool | iDoImage |
| TBuf< KMaxCbaLabelLength > | iFullLabelText |
| CEikImage * | iImage |
| CEikLabel * | iLabel |
| TPtrC | iLongLabelText |
| const CFbsBitmap * | iMask |
| TBool | iPressedDown |
| CFbsBitmap * | iSfeMask |
| TPtrC | iShortLabelText |
| CDesCArray * | iText |
| TBool | iUseTextBitmap |
| Inherited Attributes | |
|---|---|
| CCoeControl::iCoeEnv | |
| CCoeControl::iContext | |
| CCoeControl::iPosition | |
| CCoeControl::iSize | |
| void | AddCommandL | ( | const TDesC & | aText | ) |
Updates the label text with the given label.
| const TDesC & aText | The new label text. |
| CCoeControl * | ComponentControl | ( | TInt | aIndex | ) | const [private, virtual] |
From CCoeControl. Gets an indexed component of a compound control.
The component control with an index of aIndex.
| TInt aIndex |
| void | ConstructEmptyButtonL | ( | ) |
Constructs empty button with id EAknSoftkeyEmpty
| void | ConstructFromResourceL | ( | TResourceReader & | aReader, |
| TGulAlignmentValue | anAlignment | |||
| ) | ||||
Constructs the control from a resource file.
| TResourceReader & aReader | The resource reader. |
| TGulAlignmentValue anAlignment | Alignment for label. |
| void | ConstructL | ( | TGulAlignmentValue | aAlignment | ) |
Constructs a new CBA button instance.
| TGulAlignmentValue aAlignment | Alignment for label. |
| TInt | CountComponentControls | ( | ) | const [private, virtual] |
From CCoeControl. Gets the number of controls contained in a compound control.
The number of component controls contained by this control.
| void | DrawToContext | ( | CBitmapContext & | aContext, |
| CBitmapContext & | aMaskContext, | |||
| const TPoint & | aOffset | |||
| ) | const | |||
Draws the button text and mask to give graphics contexts. Background is not drawn.
| CBitmapContext & aContext | |
| CBitmapContext & aMaskContext | |
| const TPoint & aOffset |
| 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.
| const TPointerEvent & aPointerEvent | The pointer event. |
| TInt | IndexFromCommandId | ( | TInt | aCommandId | ) | [protected] |
Returns the button's index by command id.
The button's index.
| TInt aCommandId | The button's command id. |
| TBool | IsImageOn | ( | ) | const [inline] |
Returns whether the button has image set.
ETrue if the button has image set, EFalse otherwise.
| TSize | MinimumSize | ( | ) | [virtual] |
From CCoeControl. Sets the control's minimum required size.
The minimum size required by the control.
| TInt | PopCommand | ( | ) |
Pops a command from the button stack.
The button's command id. KErrNotFound if the button stack is empty.
| TBool | PressedDown | ( | ) | const |
Returns the state of CEikCbaButton.
Boolean value for CEikCbaButtons state. ETrue if button is pressed down. Otherwise returns EFalse.
| void | PushCommandL | ( | TInt | aCommandId, |
| const TDesC & | aText | |||
| ) | ||||
Pushes a command into button stack.
| void | RemoveCommand | ( | TInt | aCommandId | ) |
Removes a command from the button stack.
| TInt aCommandId | The command to be removed. |
| void | RemovePreviousCommand | ( | ) |
Removes the previous command from the button stack.
| void | SetContainerWindowL | ( | const CCoeControl & | aContainer | ) | [virtual] |
From CCoeControl. Sets the control's containing window by copying it from aContainer.
| const CCoeControl & aContainer | The compound control that is the container for this control. |
| void | SetDimmed | ( | TBool | aDimmed | ) | [virtual] |
From CCoeControl. Sets the control to be dimmed.
| TBool aDimmed | ETrue to dim the control, EFalse to set the control as not dimmed. |
| void | SetImage | ( | CEikImage & | aImage | ) |
Sets the button's image.
| CEikImage & aImage | The image to be set. |
| void | SetLabelFont | ( | const CFont * | aLabelFont | ) |
Sets the labels font.
| const CFont * aLabelFont | The font to be used. |
| void | SetPressedDown | ( | const TBool | aPressedDown | ) |
Changes the state of CEikCbaButton. Button's state is stored in a member variable.
| const TBool aPressedDown | The state that button has. ETrue if button's state is pressed down. EFalse for normal, not pressed state. |
| void | SetTextBitmapMode | ( | TBool | aEnableBitmap | ) |
Enables bitmap mode and hides the label. The text is drawn by CEikCba in bitmap mode.
| TBool aEnableBitmap |
| void | SizeChanged | ( | ) | [private, virtual] |
From CCoeControl. Responds to changes to the size and position of the contents of this control.
| void | SwitchToShortTextL | ( | TBool | aShortText | ) |
Switches the button's text to short or long depending on the parameter given.
| TBool aShortText | ETrue for short text, EFalse for the long text. |
| void | UpdateLabelText | ( | TPtrC | aLabelText | ) | [protected] |
Updates the label text with the given label.
| TPtrC aLabelText |
| CFbsBitmap * | iSfeMask | [protected] |
Feedback effects transparency mask for softkey image.