CAknButtonState Class Reference
#include
<mw/aknbutton.h>
Link against: eikcoctl.lib
| class CAknButtonState : public CBase |
| Public Member Functions |
|---|
| ~CAknButtonState() |
| IMPORT_C const CGulIcon * | DimmedIcon() |
| IMPORT_C TInt | Flags() |
| IMPORT_C const TDesC & | HelpText() |
| IMPORT_C const CGulIcon * | HoverIcon() |
| IMPORT_C const CGulIcon * | Icon() |
| IMPORT_C const CGulIcon * | PressedIcon() |
| IMPORT_C void | SetDimmedIcon(CGulIcon *) |
| IMPORT_C void | SetFlags(const TInt) |
| IMPORT_C void | SetHelpTextL(const TDesC &) |
| IMPORT_C void | SetHoverIcon(CGulIcon *) |
| IMPORT_C void | SetIcon(CGulIcon *) |
| IMPORT_C void | SetPressedIcon(CGulIcon *) |
| IMPORT_C void | SetTextL(const TDesC &) |
| IMPORT_C const TDesC & | Text() |
| void | UpdateExtensionInfoL(TInt) |
| void | UpdateIconL(const TDesC &, const TInt, const TInt, const TInt, const TInt, const TInt, const TInt, const TInt, const TInt, const TAknsItemID &, const TAknsItemID &, const TAknsItemID &, const TAknsItemID &) |
| Protected Member Functions |
|---|
| CAknButtonState(const TInt) |
| virtual IMPORT_C void | ConstructFromResourceL(TResourceReader &) |
| IMPORT_C void | ConstructL(CGulIcon *, CGulIcon *, CGulIcon *, CGulIcon *, const TDesC &, const TDesC &) |
| IMPORT_C void | ConstructL(const TDesC &, const TInt, const TInt, const TInt, const TInt, const TInt, const TInt, const TInt, const TInt, const TDesC &, const TDesC &, const TAknsItemID &, const TAknsItemID &, const TAknsItemID &, const TAknsItemID &) |
| void | HandleResourceChange(TInt) |
| IMPORT_C TBool | HasHelp() |
| IMPORT_C TBool | HasText() |
| void | SetIconScaleMode(const TScaleMode) |
| virtual IMPORT_C void | SizeChanged(const TRect &, TScaleMode) |
Detailed Description
Class which represents one of the button states.
Member Attribute Documentation
iExtension
| CAknButtonStateExtension * | iExtension | [protected] |
iHelpText
|
HBufC * | iHelpText | [protected] |
Constructor & Destructor Documentation
CAknButtonState ( const TInt )
| IMPORT_C | CAknButtonState | ( | const TInt | aFlags | ) | [protected] |
| Parameter | Description | | aFlags | The flags for the button state |
~CAknButtonState ( )
| IMPORT_C | ~CAknButtonState | ( | ) | |
Member Function Documentation
ConstructFromResourceL ( TResourceReader & )
| IMPORT_C void | ConstructFromResourceL | ( | TResourceReader & | aReader | ) | [protected, virtual] |
Constructs controls from a resource file.
| Parameter | Description | | aReader | The resource reader with which to access the control's resource values. |
ConstructL ( CGulIcon *, CGulIcon *, CGulIcon *, CGulIcon *, const TDesC &, const TDesC & )
Symbian 2nd phase constructor.
| Parameter | Description | | aIcon | The icon for the normal state. Takes ownership. |
| aDimmedIcon | The icon for the dimmed state. Takes ownership. |
| aPressedIcon | The icon for the pressed down. Takes ownership. |
| aHoverIcon | The icon for the hover state. Takes ownership. |
| aText | The text inside the button. |
| aHelpText | The text for the tooltip. |
ConstructL ( const TDesC &, const TInt, const TInt, const TInt, const TInt, const TInt, const TInt, const TInt, const TInt, const TDesC &, const TDesC &, const TAknsItemID &, const TAknsItemID &, const TAknsItemID &, const TAknsItemID & )
| IMPORT_C void | ConstructL | ( | const TDesC & | aFilePath, |
| | const TInt | aBmpId, |
| | const TInt | aMaskId, |
| | const TInt | aDimmedBmpId, |
| | const TInt | aDimmedMaskId, |
| | const TInt | aPressedBmpId, |
| | const TInt | aPressedMaskId, |
| | const TInt | aHoverBmpId, |
| | const TInt | aHoverMaskId, |
| | const TDesC & | aText, |
| | const TDesC & | aHelpText, |
| | const TAknsItemID & | aId =
KAknsIIDNone
, |
| | const TAknsItemID & | aDimmedId =
KAknsIIDNone
, |
| | const TAknsItemID & | aPressedId =
KAknsIIDNone
, |
| | const TAknsItemID & | aHoverId =
KAknsIIDNone
|
| | ) | [protected] |
Symbian 2nd phase constructor.
| Parameter | Description | | aFilePath | The path to the file which contains icons. |
| aBmpId | The bitmap ID for the normal state icon. |
| aMaskId | The mask ID for the normal state icon. |
| aDimmedBmpId | The bitmap ID for the dimmed state icon. |
| aDimmedMaskId | The mask ID for the dimmed state icon. |
| aPressedBmpId | The bitmap ID for the pressed down state. |
| aPressedMaskId | The mask ID for the pressed down state. |
| aHoverBmpId | The bitmap ID for the hover state icon. |
| aHoverMaskId | The mask ID for the hover state icon. |
| aText | The text inside the button. |
| aHelpText | The text for the tooltip. |
| aId | Item ID of the masked bitmap to be created for skin specific icon. |
| aDimmedId | Item ID of the dimmed masked bitmap to be created for skin specific icon. |
| aPressedId | Item ID of the pressed masked bitmap to be created for skin specific icon. |
| aHoverId | Item ID of the masked hover bitmap to be created for skin specific icon. |
DimmedIcon ( )
| IMPORT_C const CGulIcon * | DimmedIcon | ( | ) | const |
Provides the icon for the dimmed state.
Returns: The icon for the dimmed state.
Flags ( )
| IMPORT_C TInt | Flags | ( | ) | const |
Provides the flags for the state.
Returns: The state flags.
HandleResourceChange ( TInt )
| void | HandleResourceChange | ( | TInt | aType | ) | [protected] |
Handles changes in state's environment.
| Parameter | Description | | aType | Resource change's type. |
HasHelp ( )
| IMPORT_C TBool | HasHelp | ( | ) | const [protected] |
Returns: ETrue if the button has valid tooltip text (not empty and not space).
HasText ( )
| IMPORT_C TBool | HasText | ( | ) | const [protected] |
Returns: ETrue if the button has valid text (not empty and not space).
HelpText ( )
| IMPORT_C const TDesC & | HelpText | ( | ) | const |
Provides the text inside the help note.
Returns: The tooltip text.
HoverIcon ( )
| IMPORT_C const CGulIcon * | HoverIcon | ( | ) | const |
Provides the icon for the hover state.
Returns: The icon for the hover state.
Icon ( )
Provides the icon for the normal state.
Returns: The icon for the normal state.
PressedIcon ( )
| IMPORT_C const CGulIcon * | PressedIcon | ( | ) | const |
Provides the icon for the pressed down (not released) state.
Returns: The icon for the pressed down (not released) state.
SetDimmedIcon ( CGulIcon * )
| IMPORT_C void | SetDimmedIcon | ( | CGulIcon * | aDimmedIcon | ) | |
Sets the icon for the dimmed state. Takes ownership.
| Parameter | Description | | aDimmedIcon | The icon for the dimmed state. |
SetFlags ( const TInt )
| IMPORT_C void | SetFlags | ( | const TInt | aFlags | ) | |
Sets the flags for the state.
| Parameter | Description | | aFlags | The flags for the state. |
SetHelpTextL ( const TDesC & )
| IMPORT_C void | SetHelpTextL | ( | const TDesC & | aHelpText | ) | |
Sets the text inside the help note.
| Parameter | Description | | aHelpText | The text inside the tooltip. |
SetHoverIcon ( CGulIcon * )
| IMPORT_C void | SetHoverIcon | ( | CGulIcon * | aHoverIcon | ) | |
Sets the icon for the hover state. Takes ownership.
| Parameter | Description | | aHoverIcon | The icon for the hover state. |
SetIcon ( CGulIcon * )
Sets the icon for the normal state. Takes ownership.
| Parameter | Description | | aIcon | The icon for the normal state. |
SetIconScaleMode ( const TScaleMode )
| void | SetIconScaleMode | ( | const TScaleMode | aScaleMode | ) | [protected] |
Sets default scaling mode.
| Parameter | Description | | aScaleMode | Scaling mode. |
SetPressedIcon ( CGulIcon * )
| IMPORT_C void | SetPressedIcon | ( | CGulIcon * | aPressedIcon | ) | |
Sets the icon for the pressed down state. Takes ownership.
| Parameter | Description | | aPressedIcon | The icon for the pressed down state. |
SetTextL ( const TDesC & )
| IMPORT_C void | SetTextL | ( | const TDesC & | aText | ) | |
Sets the text inside the button.
| Parameter | Description | | aText | The text inside the button. |
SizeChanged ( const TRect &, TScaleMode )
| IMPORT_C void | SizeChanged | ( | const TRect & | aRect, |
| | TScaleMode | aScaleMode |
| | ) | [protected, virtual] |
| Parameter | Description | | aRect | The new rectangle for the icons. |
| aScaleMode | The scale mode which was set for the button. |
Text ( )
| IMPORT_C const TDesC & | Text | ( | ) | const |
Provides the text inside the button.
Returns: The button text.
UpdateExtensionInfoL ( TInt )
| void | UpdateExtensionInfoL | ( | TInt | aResource | ) | |
UpdateIconL ( const TDesC &, const TInt, const TInt, const TInt, const TInt, const TInt, const TInt, const TInt, const TInt, const TAknsItemID &, const TAknsItemID &, const TAknsItemID &, const TAknsItemID & )
| void | UpdateIconL | ( | const TDesC & | aFilePath, |
| | const TInt | aBmpId, |
| | const TInt | aMaskId, |
| | const TInt | aDimmedBmpId, |
| | const TInt | aDimmedMaskId, |
| | const TInt | aPressedBmpId, |
| | const TInt | aPressedMaskId, |
| | const TInt | aHoverBmpId, |
| | const TInt | aHoverMaskId, |
| | const TAknsItemID & | aId =
KAknsIIDNone
, |
| | const TAknsItemID & | aDimmedId =
KAknsIIDNone
, |
| | const TAknsItemID & | aPressedId =
KAknsIIDNone
, |
| | const TAknsItemID & | aHoverId =
KAknsIIDNone
|
| | ) | |
Sets the icon for the normal state