CListBoxData Class Reference
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.
Constructor & Destructor Documentation
CListBoxData()
IMPORT_C
|
CListBoxData
|
(
|
)
|
|
~CListBoxData()
IMPORT_C
|
~CListBoxData
|
(
|
)
|
|
Member Functions Documentation
Alignment()
Queries used 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
.
Parameters
const
CFont
* aBaseFont
|
Base fontused in construction
|
TFontStyle
aFontStyle
|
A new font's style
|
CFontsWithStyle & 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.
Parameters
const
CFont
* 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.
Font Draws list item text so that search string is drawed as bold underlined.
Parameters
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
|
Font(const TListItemProperties &)
Returns a pointer to the type of font wanted.
IsSearchString()
IMPORT_C
TBool
|
IsSearchString
|
(
|
)
|
const
|
Query is search string set
Returns ETrue if a search string with a non-zero length has been set for this list box.
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.
Parameters
CFontsWithStyle & aFonts
|
Font set to modify
|
TInt
aFontHeightInTwips
|
New font height
|
Reserved_1()
IMPORT_C void
|
Reserved_1
|
(
|
)
|
[private, virtual]
|
Reserved_2()
IMPORT_C void
|
Reserved_2
|
(
|
)
|
[private, virtual]
|
SetAlignmentL(CGraphicsContext::TTextAlign)
Sets list item's text alignment.
SetFontHeight(TInt)
IMPORT_C
TInt
|
SetFontHeight
|
(
|
TInt
|
aFontHeightInTwips
|
)
|
|
Sets a new height of fonts
Parameters
TInt
aFontHeightInTwips
|
New height for fonts.
|
SetSearchStringL(const TDesC *)
IMPORT_C void
|
SetSearchStringL
|
(
|
const
TDesC
*
|
aSearchString
|
)
|
|
Setter for a search string used for viewing search results
Set search string for search result viewing.
Parameters
const
TDesC
* aSearchString
|
The search string.
|
SetSkinBackgroundControlContextL(MAknsControlContext *)
Sets a background skinning context. Set
NULL
to disable background skinning.
SetSkinEnabledL(TBool)
IMPORT_C void
|
SetSkinEnabledL
|
(
|
TBool
|
aEnabled
|
)
|
[protected]
|
Sets whether skins are enabled.
Parameters
TBool
aEnabled
|
EFalse disable skinning, ETrue enable
|
SetupGc(const TListItemProperties &, CWindowGc &)
Sets properties (underlining on / off, pen colorm and font) of graphical context.
SkinBackgroundControlContext()
Access to skin contexts from plain listboxes.
UpdateFontBoundValues(const CFont &)
IMPORT_C void
|
UpdateFontBoundValues
|
(
|
const
CFont
&
|
aFont
|
)
|
[protected]
|
Updates width and heigh information. Used when font is changed.
Parameters
const
CFont
& aFont
|
A font from which bound values are taken.
|
Member Data Documentation
CGraphicsContext::TTextAlign
iAlign
CFontsWithStyle iBoldFont
CFontsWithStyle
|
iBoldFont
|
[protected]
|
CFontsWithStyle iBoldItalicFont
CFontsWithStyle
|
iBoldItalicFont
|
[protected]
|
Font with normal and italic styles
TListFontBoundValues
iFontBoundValues
CFontsWithStyle iItalicFont
CFontsWithStyle
|
iItalicFont
|
[protected]
|
CListBoxDataExtension * iLBDExtension
CListBoxDataExtension *
|
iLBDExtension
|
[private]
|
CFontsWithStyle iNormalFont
CFontsWithStyle
|
iNormalFont
|
[protected]
|
HBufC * iSearchString
HBufC
*
|
iSearchString
|
[protected]
|
String used in list box search field.
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.