Location:
eiklbd.h
Link against:
eikcoctl.lib
CListBoxData
Supported from 6.0
Base class for list box data classes.
The class stores one or more instances of fonts in normal, bold and italic styles.
|
Defined in CListBoxData
:
Alignment()
, CListBoxData()
, ConstructFontL()
, ConstructL()
, DrawItem()
, Font()
, FontBoundValues()
, IsSearchString()
, RegenerateFonts()
, SetAlignmentL()
, SetFontHeight()
, SetSearchStringL()
, SetupGc()
, UpdateFontBoundValues()
, iBoldFont
, iBoldItalicFont
, iItalicFont
, iNormalFont
, iSearchString
, ~CListBoxData()
Inherited from CBase
:
operator new()
void ConstructL(const CFont* aBaseFont);
Completes construction. Constructs normal, bold, italic and bold italic fonts based on the specified aBaseFont
.
|
CGraphicsContext::TTextAlign Alignment() const;
Gets the text alignment.
|
void SetAlignmentL(CGraphicsContext::TTextAlign aAlign);
Sets list item text alignment.
|
CFont* Font(const TListItemProperties& aItemProperties) const;
Gets the font in which the item is drawn.
|
|
void SetFontHeight(TInt aFontHeightInTwips);
Sets font height in twips.
|
const TListFontBoundValues& FontBoundValues() const;
Gets the font bound values. These are global font properties such as the normal character width in pixels.
|
protected: void UpdateFontBoundValues(const CFont& aFont);
Updates the font bound values. These are global font properties such as the normal character width in pixels.
|
void DrawItem (CWindowGc& aGc, const TRect& aItemTextRect,const TDesC& aItemText, const CFont& aItemFont,const TInt aBaseLineOffset,const CGraphicsContext::TTextAlign aAlign) const;
Draws list item text. Supports different drawing for the search string.
|
void SetSearchStringL(const TDesC* aSearchString);
Sets the search string for search result viewing.
|
TBool IsSearchString() const;
Tests whether a search string has been set for this list box.
|
void SetupGc(const TListItemProperties& aItemProperties, CWindowGc& aGc) const;
Sets list box item underline style, pen colour and font.
|
protected: void ConstructFontL(const CFont* aBaseFont, TFontStyle aFontStyle, CFontsWithStyle& aFonts);
Constructs a font based on the specified font. This function is called by CListBoxData::ConstructL()
.
|
protected: void RegenerateFonts(CFontsWithStyle& aFonts, TInt aFontHeightInTwips);
Regenerates a font based on the font height. Called by CListBoxData::SetFontHeight()
.
|
HBufC* iSearchString
Search string.