Link against: eikcoctl.lib
#include <AknButton.h>
Public Member Functions |
|
| IMPORT_C | ~CAknButtonState () |
| Destructor. |
|
| IMPORT_C const CGulIcon * | Icon () const |
| Provides the icon for the normal state. |
|
| IMPORT_C const CGulIcon * | DimmedIcon () const |
| Provides the icon for the dimmed state. |
|
| IMPORT_C const CGulIcon * | PressedIcon () const |
| Provides the icon for the pressed down (not released) state. |
|
| IMPORT_C const CGulIcon * | HoverIcon () const |
| Provides the icon for the hover state. |
|
| IMPORT_C const TDesC & | Text () const |
| Provides the text inside the button. |
|
| IMPORT_C const TDesC & | HelpText () const |
| Provides the text inside the help note. |
|
| IMPORT_C TInt | Flags () const |
| Provides the flags for the state. |
|
| IMPORT_C void | SetIcon (CGulIcon *aIcon) |
| Sets the icon for the normal state. |
|
| IMPORT_C void | SetDimmedIcon (CGulIcon *aDimmedIcon) |
| Sets the icon for the dimmed state. |
|
| IMPORT_C void | SetPressedIcon (CGulIcon *aPressedIcon) |
| Sets the icon for the pressed down state. |
|
| IMPORT_C void | SetHoverIcon (CGulIcon *aHoverIcon) |
| Sets the icon for the hover state. |
|
| IMPORT_C void | SetTextL (const TDesC &aText) |
| Sets the text inside the button. |
|
| IMPORT_C void | SetHelpTextL (const TDesC &aHelpText) |
| Sets the text inside the help note. |
|
| IMPORT_C void | SetFlags (const TInt aFlags) |
| Sets the flags for the state. |
|
| 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. |
|
Protected Member Functions |
|
| IMPORT_C | CAknButtonState (const TInt aFlags) |
| Constructor. |
|
| IMPORT_C void | ConstructL (CGulIcon *aIcon, CGulIcon *aDimmedIcon, CGulIcon *aPressedIcon, CGulIcon *aHoverIcon, const TDesC &aText, const TDesC &aHelpText) |
| Symbian 2nd phase constructor. |
|
| 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) |
| Symbian 2nd phase constructor. |
|
| virtual IMPORT_C void | ConstructFromResourceL (TResourceReader &aReader) |
| Constructs controls from a resource file. |
|
| virtual IMPORT_C void | SizeChanged (const TRect &aRect, TScaleMode aScaleMode) |
| Updates the size of icons. |
|
| IMPORT_C TBool | HasText () const |
| IMPORT_C TBool | HasHelp () const |
| void | HandleResourceChange (TInt aType) |
| Handles changes in state's environment. |
|
| void | SetIconScaleMode (const TScaleMode aScaleMode) |
| Sets default scaling mode. |
|
Protected Attributes |
|
| CGulIcon * | iIcon |
| CGulIcon * | iDimmedIcon |
| CGulIcon * | iPressedIcon |
| CGulIcon * | iHoverIcon |
| HBufC * | iText |
| HBufC * | iHelpText |
| TInt | iFlags |
| CAknButtonStateExtension * | iExtension |
Friends |
|
| class | CAknButton |
|
|
Destructor. |
|
|
Constructor.
|
|
|
Constructs controls from a resource file.
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Symbian 2nd phase constructor.
|
|
||||||||||||||||||||||||||||
|
Symbian 2nd phase constructor.
|
|
|
Provides the icon for the dimmed state.
|
|
|
Provides the flags for the state.
|
|
|
Handles changes in state's environment.
|
|
|
|
|
|
|
Provides the text inside the help note.
|
|
|
Provides the icon for the hover state.
|
|
|
Provides the icon for the normal state.
|
|
|
Provides the icon for the pressed down (not released) state.
|
|
|
Sets the icon for the dimmed state. Takes ownership.
|
|
|
Sets the flags for the state.
|
|
|
Sets the text inside the help note.
|
|
|
Sets the icon for the hover state. Takes ownership.
|
|
|
Sets the icon for the normal state. Takes ownership.
|
|
|
Sets default scaling mode.
|
|
|
Sets the icon for the pressed down state. Takes ownership.
|
|
|
Sets the text inside the button.
|
|
||||||||||||
|
Updates the size of icons. Called from CAknButton::SizeChanged() function.
|
|
|
Provides the text inside the button.
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Sets the icon for the normal state.
|
|
|
|
|
|
|
|
|
|