| class CListBoxData : public CBase |
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.
ER5U
| Public Member Functions | |
|---|---|
| CListBoxData() | |
| ~CListBoxData() | |
| CGraphicsContext::TTextAlign | Alignment() |
| IMPORT_C void | ConstructL(const CFont *) |
| IMPORT_C void | DrawItem(CWindowGc &, const TRect &, const TDesC &, const CFont &, const TInt, const CGraphicsContext::TTextAlign) |
| IMPORT_C CFont * | Font(const TListItemProperties &) |
| IMPORT_C const TListFontBoundValues & | FontBoundValues() |
| IMPORT_C TBool | IsSearchString() |
| void | SetAlignmentL(CGraphicsContext::TTextAlign) |
| IMPORT_C TInt | SetFontHeight(TInt) |
| IMPORT_C void | SetSearchStringL(const TDesC *) |
| IMPORT_C void | SetupGc(const TListItemProperties &, CWindowGc &) |
| IMPORT_C MAknsControlContext * | SkinBackgroundControlContext() |
| Protected Member Functions | |
|---|---|
| IMPORT_C void | ConstructFontL(const CFont *, TFontStyle, CFontsWithStyle &) |
| IMPORT_C TInt | RegenerateFonts(CFontsWithStyle &, TInt) |
| IMPORT_C void | SetSkinBackgroundControlContextL(MAknsControlContext *) |
| IMPORT_C void | SetSkinEnabledL(TBool) |
| IMPORT_C void | UpdateFontBoundValues(const CFont &) |
| Private Member Functions | |
|---|---|
| IMPORT_C void | Reserved_1() |
| IMPORT_C void | Reserved_2() |
| Protected Attributes | |
|---|---|
| CFontsWithStyle | iBoldFont |
| CFontsWithStyle | iBoldItalicFont |
| CFontsWithStyle | iItalicFont |
| CFontsWithStyle | iNormalFont |
| HBufC * | iSearchString |
| Private Attributes | |
|---|---|
| CGraphicsContext::TTextAlign | iAlign |
| TListFontBoundValues | iFontBoundValues |
| CListBoxDataExtension * | iLBDExtension |
| CGraphicsContext::TTextAlign | Alignment | ( | ) | const [inline] |
Queries used text alignment.
CGraphicsContext::TTextAlign The text alignment.
| 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.
| const CFont * aBaseFont | Base fontused in construction |
| TFontStyle aFontStyle | A new font's style |
| CFontsWithStyle & aFonts | New font is added to this font container. |
| IMPORT_C void | ConstructL | ( | const CFont * | aBaseFont | ) |
By default Symbian 2nd phase constructor is private. This one is public.
| const CFont * aBaseFont | Parameter not used in the code. |
| IMPORT_C void | DrawItem | ( | CWindowGc & | aGc, |
| const TRect & | aItemTextRect, | |||
| const TDesC & | aItemText, | |||
| const CFont & | aItemFont, | |||
| const TInt | aBaseLineOffset, | |||
| const CGraphicsContext::TTextAlign | aAlign = CGraphicsContext::ELeft | |||
| ) | const | |||
Draws list item text. Supports different drawing for the search string.
| CWindowGc & aGc | Graphics context used. |
| const TRect & aItemTextRect | The item's text rectangle. |
| const TDesC & aItemText | Text of the item. |
| const CFont & aItemFont | Used font. |
| const TInt aBaseLineOffset | Item's base line offset. |
| const CGraphicsContext::TTextAlign aAlign = CGraphicsContext::ELeft | Text alignment. Default alignment is CGraphicsContext::ELeft |
| IMPORT_C CFont * | Font | ( | const TListItemProperties & | aItemProperties | ) | const [virtual] |
Returns a pointer to the type of font wanted.
CFont* Handle to the font or NULL.
| const TListItemProperties & aItemProperties | Definition of font type wanted. |
| IMPORT_C const TListFontBoundValues & | FontBoundValues | ( | ) | const |
Queries boundary values of font size.
TListFontBoundValues& Reference to boundary value object.
| IMPORT_C TBool | IsSearchString | ( | ) | const |
Query is search string set
TBool ETrue if search string set and has non zero length. EFalse if no search string set or length is 0.
| 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.
| CFontsWithStyle & aFonts | Font set to modify |
| TInt aFontHeightInTwips | New font height |
| void | SetAlignmentL | ( | CGraphicsContext::TTextAlign | aAlign | ) | [inline] |
Sets list item's text alignment.
| CGraphicsContext::TTextAlign aAlign | Text alignment to use. |
| IMPORT_C TInt | SetFontHeight | ( | TInt | aFontHeightInTwips | ) |
Sets a new height of fonts
TInt Symbian error code, KErrNone if success.
| TInt aFontHeightInTwips | New height for fonts. |
| IMPORT_C void | SetSearchStringL | ( | const TDesC * | aSearchString | ) |
Setter for a search string used for viewing search results
| const TDesC * aSearchString | The search string. |
| IMPORT_C void | SetSkinBackgroundControlContextL | ( | MAknsControlContext * | aContext | ) | [protected] |
Sets a background skinning context. Set NULL to disable background skinning.
Series 60 2.0
| MAknsControlContext * aContext | Background skinning context. |
| IMPORT_C void | SetSkinEnabledL | ( | TBool | aEnabled | ) | [protected] |
Sets whether skins are enabled.
| TBool aEnabled | EFalse disable skinning, ETrue enable |
| IMPORT_C void | SetupGc | ( | const TListItemProperties & | aItemProperties, |
| CWindowGc & | aGc | |||
| ) | const | |||
Sets properties (underlining on / off, pen colorm and font) of graphical context.
| const TListItemProperties & aItemProperties | Contains properties to set. |
| CWindowGc & aGc | Target of settings. |
| IMPORT_C MAknsControlContext * | SkinBackgroundControlContext | ( | ) | const |
Access to skin contexts from plain listboxes.
Series 60 2.0
MAknsControlContext* Used skin context
| IMPORT_C void | UpdateFontBoundValues | ( | const CFont & | aFont | ) | [protected] |
Updates width and heigh information. Used when font is changed.
| const CFont & aFont | A font from which bound values are taken. |
| CFontsWithStyle | iBoldItalicFont | [protected] |
Font with normal and italic styles