UIQ Technology
 Developer Library

UIQ 3 SDK

UIQ developer portal

FEEDBACK 

[Index] [Spacer] [Previous] [Next]



Location: EIKLBD.H
Link against: eiklbx.lib

Class CListBoxData

Interface status: deprecated6.0

class CListBoxData : public CBase;

Description

Base class for list box data classes.

The class stores one or more instances of fonts in normal, bold and italic styles.

Derivation

Members

Defined in CListBoxData:
Alignment(), CListBoxData(), ConstructFontL(), ConstructL(), DrawItem(), DrawItem(), Font(), FontBoundValues(), IsSearchString(), RegenerateFonts(), SetAlignmentL(), SetFontHeight(), SetSearchStringL(), SetupGc(), TFontStyle, UpdateFontBoundValues(), iFontProvider, iSearchString, iZoomFactor, ~CListBoxData()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


CListBoxData()

Interface status: deprecatedInherited from: CListBoxData

IMPORT_C CListBoxData();

Description

Constructor.

Sets data as left aligned.


~CListBoxData()

Interface status: deprecatedInherited from: CListBoxData

IMPORT_C ~CListBoxData();

Description

Destructor.

Deletes the search string if present.


ConstructL()

Interface status: deprecatedInherited from: CListBoxData

IMPORT_C void ConstructL(const CFont *aBaseFont);

Description

Completes construction.

Constructs normal, bold, italic and bold italic fonts based on the specified aBaseFont .

Parameters

const CFont *aBaseFont

[Top]


Member functions


Font()

Interface status: deprecatedInherited from: CListBoxData

virtual IMPORT_C CFont *Font(const TListItemProperties &aItemProperties) const;

Description

Gets the font in which the item is drawn.

Parameters

const TListItemProperties &aItemProperties

Return value

CFont *

"CFont*" The list box items font.


SetupGc()

Interface status: deprecatedInherited from: CListBoxData

IMPORT_C void SetupGc(const TListItemProperties &aItemProperties, CWindowGc &aGc) const;

Description

Sets list box item underline style, pen colour and font.

Parameters

const TListItemProperties &aItemProperties

CWindowGc &aGc


FontBoundValues()

Interface status: deprecatedInherited from: CListBoxData

IMPORT_C TListFontBoundValues FontBoundValues() const;

Description

Gets the font bound values.

These are global font properties such as the normal character width in pixels.

Return value

TListFontBoundValues

"TListFontBoundValues" The font bound values.


SetFontHeight()

Interface status: deprecatedInherited from: CListBoxData

IMPORT_C TInt SetFontHeight(TInt aFontHeightInTwips);

Description

Sets font height in twips.

Parameters

TInt aFontHeightInTwips

Return value

TInt


SetSearchStringL()

Interface status: deprecatedInherited from: CListBoxData

IMPORT_C void SetSearchStringL(const TDesC *aSearchString);

Description

Sets the search string for search result viewing.

Parameters

const TDesC *aSearchString


IsSearchString()

Interface status: deprecatedInherited from: CListBoxData

IMPORT_C TBool IsSearchString() const;

Description

Tests whether a search string has been set for this list box.

Return value

TBool

"TBool" ETrue if a search string with a non-zero length has been set for this list box. Otherwise EFalse .


DrawItem()

Interface status: deprecatedInherited from: CListBoxData

IMPORT_C void DrawItem(CWindowGc &aGc, const TRect &aItemTextRect, const TDesC &aItemText, const CFont &aItemFont, const TInt aBaseLineOffset, TInt aMargin, const CGraphicsContext::TTextAlign aAlign=CGraphicsContext::ELeft) const;

Description

Draws list item text into the graphics context CWindowGc& aGc , in the rectangle const TRect& aItemTextRect .

Depending on the string, it will either be responsible for drawing a normal text string or a search text string in a rectangle.

Parameters

CWindowGc &aGc

const TRect &aItemTextRect

const TDesC &aItemText

const CFont &aItemFont

const TInt aBaseLineOffset

TInt aMargin

const CGraphicsContext::TTextAlign aAlign


DrawItem()

Interface status: deprecatedInherited from: CListBoxData

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;

Description

Draws list item text into the graphics context CWindowGc& aGc , in the rectangle const TRect& aItemTextRect .

Supports different drawing for the search string.

Parameters

CWindowGc &aGc

const TRect &aItemTextRect

const TDesC &aItemText

const CFont &aItemFont

const TInt aBaseLineOffset

const CGraphicsContext::TTextAlign aAlign


SetAlignmentL()

Interface status: deprecatedInherited from: CListBoxData

inline void SetAlignmentL(CGraphicsContext::TTextAlign aAlign);

Description

Sets list item text alignment.

Parameters

CGraphicsContext::TTextAlign aAlign


Alignment()

Interface status: deprecatedInherited from: CListBoxData

inline CGraphicsContext::TTextAlign Alignment() const;

Description

Gets the text alignment.

Return value

CGraphicsContext::TTextAlign

"CGraphicsContext::TTextAlign" The text alignment.


ConstructFontL()

Interface status: deprecated

protected: IMPORT_C void ConstructFontL(const CFont *, TFontStyle, CFontsWithStyle &);

Description

Deprecated. Does nothing.

Parameters

const CFont *

TFontStyle

CFontsWithStyle &


UpdateFontBoundValues()

Interface status: deprecated

protected: IMPORT_C void UpdateFontBoundValues(const CFont &);

Description

Deprecated. Does nothing.

Parameters

const CFont &


RegenerateFonts()

Interface status: deprecated

protected: IMPORT_C TInt RegenerateFonts(CFontsWithStyle &, TInt);

Description

Deprecated. Does nothing.

Parameters

CFontsWithStyle &

TInt

Return value

TInt

[Top]


Member type definitions


Typedef TFontStyle

Interface status: deprecatedInherited from: CListBoxData

protected: typedef TInt CListBoxData::TFontStyle;

Description

[Top]


Member data


iSearchString

Interface status: deprecatedInherited from: CListBoxData

protected: HBufC * iSearchString;

Description


iFontProvider

Interface status: deprecatedInherited from: CListBoxData

protected: const CCoeFontProvider * iFontProvider;

Description


iZoomFactor

Interface status: deprecatedInherited from: CListBoxData

protected: const TZoomFactor * iZoomFactor;

Description

Terms and conditions of use of the material