CFsControlButtonVisualiser Class Reference
class CFsControlButtonVisualiser : public CBase |
Visualiser class of the button.
fs_generic.lib
Inherits from
- CFsControlButtonVisualiser
Constructor & Destructor Documentation
CFsControlButtonVisualiser(CAlfControl &, CAlfDeckLayout &, CFsTextStyleManager *)
CFsControlButtonVisualiser()
IMPORT_C | CFsControlButtonVisualiser | ( | ) | [protected] |
~CFsControlButtonVisualiser()
IMPORT_C | ~CFsControlButtonVisualiser | ( | ) | [virtual] |
Member Functions Documentation
CalculateButtonSize()
IMPORT_C TInt | CalculateButtonSize | ( | ) | [protected, virtual] |
Calculates button size according to content.
ClearBackgroundColor()
IMPORT_C void | ClearBackgroundColor | ( | ) | [virtual] |
Clears button's background color. Button is transparent.
ClearBackgroundImage()
IMPORT_C void | ClearBackgroundImage | ( | ) | [virtual] |
Clears button's background image.
ConstructL()
IMPORT_C void | ConstructL | ( | ) | [protected, virtual] |
Second phase constructor.
ContentLayout()
Retrieves the content layout of the button.
CreateButtonVisualsL()
IMPORT_C void | CreateButtonVisualsL | ( | ) | [protected, virtual] |
Creates needed visuals for specified button type.
GetBottomRight()
TInt
| GetBottomRight | ( | ) | const |
Retrieves end X coordinate of the button.
Hide()
IMPORT_C void | Hide | ( | ) | [virtual] |
InitializeL(CFsControlButtonModel &)
IMPORT_C void | InitializeL | ( | CFsControlButtonModel & | aButtonModel | ) | [virtual] |
Attaches model to visualiser.
Parameters
CFsControlButtonModel & aButtonModel | button's model. |
IsVisible()
Checks if button is visible or not.
Layout()
Retrieves the background layout of the button.
MakeFocusVisible(TBool)
void | MakeFocusVisible | ( | TBool | aShow | ) | |
Enables focus drawing for item and draws it. NOTE: Do not change focus state. Item might be focused altough selector is not visible.
Parameters
TBool aShow | If ETrue visibility of focus is drawn if EFalse visibility of focus is hidden. |
NewL(CAlfControl &, CAlfDeckLayout &, CFsTextStyleManager *)
Pos()
Retrieves position of the button.
PrepareDrawDimmed()
IMPORT_C void | PrepareDrawDimmed | ( | ) | [protected, virtual] |
Sets colors and bitmaps for drawing button in "dimmed" state.
PrepareDrawFocused()
IMPORT_C void | PrepareDrawFocused | ( | ) | [protected, virtual] |
Sets colors and bitmaps for drawing button in "focused" state.
PrepareDrawNormal()
IMPORT_C void | PrepareDrawNormal | ( | ) | [protected, virtual] |
Sets colors and bitmaps for drawing button in "normal
(no focus, enabled)" state.
Refresh()
IMPORT_C void | Refresh | ( | ) | [virtual] |
Refreshes button on the display.
Refresh(TPoint)
IMPORT_C void | Refresh | ( | TPoint | aStartAt | ) | [virtual] |
Refreshes button on the display placing it at specified point.
Parameters
TPoint aStartAt | start point of the buton. |
ResolveCharFormat(TCharFormat &, CAlfTextVisual *)
Resolve the character format from current text visual.
SetBackgroundColor(const TRgb &)
IMPORT_C void | SetBackgroundColor | ( | const TRgb & | aColor | ) | [virtual] |
Sets button's background color.
Parameters
const TRgb & aColor | background color to be set. |
SetBackgroundImageL(CAlfImageBrush *)
IMPORT_C void | SetBackgroundImageL | ( | CAlfImageBrush * | aImage | ) | [virtual] |
Sets background image of the button. Ownership of the object is transfered.
Parameters
CAlfImageBrush * aImage | Image brush that is used at background. |
SetElemAlignL(TFsControlButtonElem, TAlfAlignHorizontal, TAlfAlignVertical)
Sets alignment of element of the button.
SetImageAlign(CAlfImageVisual *, TAlfAlignHorizontal, TAlfAlignVertical)
Sets alignment of specified image of the button.
SetParentControlL(CAlfControl *)
SetParentLayoutL(CAlfDeckLayout *)
SetTextAlign(CAlfTextVisual *, TAlfAlignHorizontal, TAlfAlignVertical)
Sets alignment of specified text of the button.
SetTextFontL(const TFontSpec &)
IMPORT_C void | SetTextFontL | ( | const TFontSpec & | aFontSpec | ) | [virtual] |
Parameters
const TFontSpec & aFontSpec | Font specification. |
SetTextHeight(const TInt)
IMPORT_C void | SetTextHeight | ( | const TInt | aTextHeight | ) | [virtual] |
Set new height for the button text. Setting a negative or zero value changes the value back to default.
Parameters
const TInt aTextHeight | Height in pixels. |
SetTextStyleManager(CFsTextStyleManager *)
Assign a new text style manager.
ShowL()
IMPORT_C void | ShowL | ( | ) | [virtual] |
Size()
Retrieves size of the button.
TextureLoadingCompleted(CAlfTexture &, TInt, TInt)
IMPORT_C void | TextureLoadingCompleted | ( | CAlfTexture & | aTexture, |
| TInt | aTextureId, |
| TInt | aErrorCode |
| ) | [virtual] |
Update elemets after texture loading is completed.
Parameters
CAlfTexture & aTexture | Reference to the texture that has been loaded. |
TInt aTextureId | Id of the texture in the texture manager. Can be used to identify the loaded texture, provided that an id was assigned to the texture. |
TInt aErrorCode | KErrNone if the load was successful, otherwise one of the system-wide error codes indicating reason why the texture loading failed. |
UpdateBarLayout()
void | UpdateBarLayout | ( | ) | [protected] |
UpdateButtonPos()
void | UpdateButtonPos | ( | ) | [protected] |
Updates position of button.
UpdateButtonSize()
IMPORT_C void | UpdateButtonSize | ( | ) | [virtual] |
UpdateElementL(TFsControlButtonElem)
Updates element content from the model.
UpdateElementsSizeL(TFsControlButtonType)
Updates size of columns in grid layouter for button's elements.
UpdateTextStyles()
IMPORT_C void | UpdateTextStyles | ( | ) | [protected, virtual] |
Sets text styles for specified button type.
UpdateVisualThemeL()
void | UpdateVisualThemeL | ( | ) | [virtual] |
Called when the colors etc should be refreshed
Width()
Retrieves width of the button.
Member Data Documentation
TAlfAlignHorizontal
iAIconHAlign
Horizontal alignement of A icon.
TAlfAlignVertical
iAIconVAlign
Vertical alignement of A icon.
TAlfAlignHorizontal
iBIconHAlign
Horizontal alignement of B icon.
TAlfAlignVertical
iBIconVAlign
Vertical alignement of B icon.
TRgb
iBackgroundColor
TRgb
| iBackgroundColor | [protected] |
CAlfBrush * iBgBrush
Brush with background image. Owned.
CAlfGradientBrush * iBgColorBrush
CAlfGradientBrush * | iBgColorBrush | [protected] |
CAlfLayout * iButtonContentLayout
Layout for button content. Not own.
CAlfLayout * iButtonLayout
Layout of the button control. Owned (because of possibility to change visualiser - old one has to be removed from parent and layout tree).
CFsControlButtonModel * iButtonModel
CFsControlButtonModel * | iButtonModel | [protected] |
Model of the button. Not owned.
CAlfVisual * iButtonPane
Visual for button pane. Not own.
CAlfFrameBrush * iDefaultBgBrush
CAlfFrameBrush * | iDefaultBgBrush | [protected] |
Default brush for background. Owned.
TBool
iDrawFocus
TBool
| iDrawFocus | [protected] |
States that can focus been drawn.
TBool
iFirstDraw
TBool
| iFirstDraw | [protected] |
CAlfImageVisual * iIconA
Visual for the A icon. Not own.
CAlfLayout * iIconAContainer
Container for icon A. Not own.
CAlfImageVisual * iIconB
Visual for the B icon. Not own.
CAlfLayout * iIconBContainer
Container for icon B. Not own.
CAlfTextVisual * iLabelFirstLine
Visual for first line of text. Not own.
CAlfTextVisual * iLabelSecondLine
Visual for second line of text. Not own.
CAlfDeckLayout * iParentLayout
Layout of the parent control. Not owned.
CAlfShadowBorderBrush * iShadowBorderBrush
CAlfShadowBorderBrush * | iShadowBorderBrush | [protected] |
Brush for shadowed button borders. Owned.
TBool
iShowShadow
TBool
| iShowShadow | [protected] |
Show dropdown shadow for buttons
TFontSpec * iTextFontSpec
Font specification. Owned.
TInt
iTextHeight
TInt
| iTextHeight | [protected] |
Height of the button's text in pixels.
TBool
iTextHeightSet
TBool
| iTextHeightSet | [protected] |
Flag to determine if the text size has been changed.
CFsTextStyleManager * iTextStyleManager
Text style manager. Not own.
TBool
iUpdateIconsAlign
TBool
| iUpdateIconsAlign | [protected] |
Flag for recalculate positions of icons.
TBool
iUseDefaultBackground
TBool
| iUseDefaultBackground | [protected] |
ETrue if default theme background is used
TBool
iVisible
TBool
| iVisible | [protected] |
Flag for visible/hidden state.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.