CListBoxData Class Reference
Link against: mpxcommoncontainer.lib
class CListBoxData : public CBase |
Detailed Description
The CListBoxData class is the base class for list box data classes. It stores one or more instances of fonts in normal, bold and italic styles.
Member Attribute Documentation
iBoldFont
CFontsWithStyle | iBoldFont | [protected] |
iBoldItalicFont
CFontsWithStyle | iBoldItalicFont | [protected] |
Font with normal and italic styles
iItalicFont
CFontsWithStyle | iItalicFont | [protected] |
iNormalFont
CFontsWithStyle | iNormalFont | [protected] |
iSearchString
HBufC * | iSearchString | [protected] |
String used in list box search field.
Constructor & Destructor Documentation
Member Function Documentation
Alignment ( )
Queries used text alignment.
Returns: CGraphicsContext::TTextAlign The text alignment.
ConstructFontL ( const CFont *, TFontStyle, CFontsWithStyle & )
IMPORT_C void | ConstructFontL | ( | const CFont * | aBaseFont, |
| TFontStyle | aFontStyle, |
| CFontsWithStyle & | aFonts |
| ) | [protected] |
Constructs a new font based on the base font and font style given. Constructed font is added to CFontsWithStyle.
Parameter | Description | aBaseFont | Base fontused in construction |
aFontStyle | A new font's style |
aFonts | New font is added to this font container. |
ConstructL ( const CFont * )
IMPORT_C void | ConstructL | ( | const CFont * | aBaseFont | ) | |
By default Symbian 2nd phase constructor is private. This one is public.
Parameter | Description | aBaseFont | Parameter not used in the code. |
DrawItem ( CWindowGc &, const TRect &, const TDesC &, const CFont &, const TInt, const CGraphicsContext::TTextAlign )
Draws list item text. Supports different drawing for the search string.
Parameter | Description | aGc | Graphics context used. |
aItemTextRect | The item's text rectangle. |
aItemText | Text of the item. |
aItemFont | Used font. |
aBaseLineOffset | Item's base line offset. |
aAlign | Text alignment. Default alignment is CGraphicsContext::ELeft |
Font ( const TListItemProperties & )
Returns a pointer to the type of font wanted.
Parameter | Description | aItemProperties | Definition of font type wanted. |
Returns: CFont* Handle to the font or NULL.
IsSearchString ( )
IMPORT_C TBool | IsSearchString | ( | ) | const |
Query is search string set
Returns: TBool ETrue if search string set and has non zero length. EFalse if no search string set or length is 0.
NONSHARABLE_CLASS ( CFontsWithStyle )
NONSHARABLE_CLASS | ( | CFontsWithStyle | | ) | [protected, inline] |
RegenerateFonts ( CFontsWithStyle &, TInt )
IMPORT_C TInt | RegenerateFonts | ( | CFontsWithStyle & | aFonts, |
| TInt | aFontHeightInTwips |
| ) | [protected] |
Changes fonts' height. Takes new height as argument and regenerates font set so that height is modified.
Parameter | Description | aFonts | Font set to modify |
aFontHeightInTwips | New font height |
SetAlignmentL ( CGraphicsContext::TTextAlign )
Sets list item's text alignment.
Parameter | Description | aAlign | Text alignment to use. |
SetFontHeight ( TInt )
IMPORT_C TInt | SetFontHeight | ( | TInt | aFontHeightInTwips | ) | |
Sets a new height of fonts
Parameter | Description | aFontHeightInTwips | New height for fonts. |
Returns: TInt Symbian error code, KErrNone if success.
SetSearchStringL ( const TDesC * )
IMPORT_C void | SetSearchStringL | ( | const TDesC * | aSearchString | ) | |
Setter for a search string used for viewing search results
Parameter | Description | aSearchString | The search string. |
SetSkinBackgroundControlContextL ( MAknsControlContext * )
Sets a background skinning context. Set NULL to disable background skinning.
Parameter | Description | aContext | Background skinning context. |
SetSkinEnabledL ( TBool )
IMPORT_C void | SetSkinEnabledL | ( | TBool | aEnabled | ) | [protected] |
Sets whether skins are enabled.
Parameter | Description | aEnabled | EFalse disable skinning, ETrue enable |
SetupGc ( const TListItemProperties &, CWindowGc & )
Sets properties (underlining on / off, pen colorm and font) of graphical context.
Parameter | Description | aItemProperties | Contains properties to set. |
aGc | Target of settings. |
SkinBackgroundControlContext ( )
Access to skin contexts from plain listboxes.
Returns: MAknsControlContext* Used skin context
UpdateFontBoundValues ( const CFont & )
IMPORT_C void | UpdateFontBoundValues | ( | const CFont & | aFont | ) | [protected] |
Updates width and heigh information. Used when font is changed.
Parameter | Description | aFont | A font from which bound values are taken. |