API published in: S60 1st Ed
Link against: avkon.lib eikctl.lib eikcoctl.lib
Required Capabilities
None
#include <eiklbd.h>
Inherited by CColumnListBoxData, and CFormattedCellListBoxData.
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.
Public Member Functions |
|
IMPORT_C | CListBoxData () |
C++ default constructor. |
|
IMPORT_C | ~CListBoxData () |
Destructor. |
|
IMPORT_C void | ConstructL (const CFont *aBaseFont) |
By default Symbian 2nd phase constructor is private. |
|
virtual IMPORT_C CFont * | Font (const TListItemProperties &aItemProperties) const |
Returns a pointer to the type of font wanted. |
|
IMPORT_C void | SetupGc (const TListItemProperties &aItemProperties, CWindowGc &aGc) const |
Sets properties (underlining on / off, pen colorm and font) of graphical context. |
|
IMPORT_C const TListFontBoundValues & | FontBoundValues () const |
Queries boundary values of font size. |
|
IMPORT_C TInt | SetFontHeight (TInt aFontHeightInTwips) |
Sets a new height of fonts. |
|
IMPORT_C void | SetSearchStringL (const TDesC *aSearchString) |
Setter for a search string used for viewing search results. |
|
IMPORT_C TBool | IsSearchString () const |
Query is search string set. |
|
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. |
|
void | SetAlignmentL (CGraphicsContext::TTextAlign aAlign) |
Sets list item's text alignment. |
|
CGraphicsContext::TTextAlign | Alignment () const |
Queries used text alignment. |
|
IMPORT_C MAknsControlContext * | SkinBackgroundControlContext () const |
Access to skin contexts from plain listboxes. |
|
Protected Member Functions |
|
IMPORT_C void | SetSkinBackgroundControlContextL (MAknsControlContext *aContext) |
Sets a background skinning context. |
|
IMPORT_C void | SetSkinEnabledL (TBool aEnabled) |
Sets whether skins are enabled. |
|
IMPORT_C void | ConstructFontL (const CFont *aBaseFont, TFontStyle aFontStyle, CFontsWithStyle &aFonts) |
Constructs a new font based on the base font and font style given. |
|
IMPORT_C void | UpdateFontBoundValues (const CFont &aFont) |
Updates width and heigh information. |
|
IMPORT_C TInt | RegenerateFonts (CFontsWithStyle &aFonts, TInt aFontHeightInTwips) |
Changes fonts' height. |
|
Protected Attributes |
|
CFontsWithStyle | iNormalFont |
Normal style font. |
|
CFontsWithStyle | iBoldFont |
Bold style font. |
|
CFontsWithStyle | iItalicFont |
Italic style font. |
|
CFontsWithStyle | iBoldItalicFont |
Font with normal and italic styles. |
|
HBufC * | iSearchString |
String used in list box search field. |
|
Friends |
|
class | CListItemDrawer |
Data Structures |
|
class | CFontsWithStyle |
|
C++ default constructor. |
|
Destructor. |
|
Queries used text alignment.
|
|
Constructs a new font based on the base font and font style given.
Constructed font is added to
|
|
By default Symbian 2nd phase constructor is private. This one is public.
|
|
Draws list item text. Supports different drawing for the search string.
|
|
Returns a pointer to the type of font wanted.
|
|
Queries boundary values of font size. TListFontBoundValues& Reference to boundary value object. |
|
Query is search string set.
|
|
Changes fonts' height. Takes new height as argument and regenerates font set so that height is modified.
|
|
Sets list item's text alignment.
|
|
Sets a new height of fonts.
|
|
Setter for a search string used for viewing search results.
|
|
Sets a background skinning context.
Set
|
|
Sets whether skins are enabled.
Reimplemented in CColumnListBoxData, and CFormattedCellListBoxData. |
|
Sets properties (underlining on / off, pen colorm and font) of graphical context.
|
|
Access to skin contexts from plain listboxes.
|
|
Updates width and heigh information. Used when font is changed.
|
|
|
Bold style font. |
|
Font with normal and italic styles. |
|
Italic style font. |
|
Normal style font. |
|
String used in list box search field. |