TCoeTextTypeAdaptor Class Reference

class TCoeTextTypeAdaptor

This class allows the XCoeTextDrawer to draw text that is in the form of a TBidiText object as well as pre-reordered new-line separated plain text descriptors. (The descriptor text is especially useful when using the XCoeTextDrawer together with the FORM component).

This removes the need to implement two versions of the DrawText() method.

Public Member Functions
TCoeTextTypeAdaptor(const TDesC &)
TCoeTextTypeAdaptor(const TBidiText &)
IMPORT_C TBoolHasRightToLeftDirectionality()
IMPORT_C TPtrCLineOfText(TInt, TInt &, const CFont &)
IMPORT_C TIntNumberOfLines()
Private Member Enumerations
enumTTextType { ENewlineSeparated, EBidiText }
Private Attributes
const TAny *iText
TTextType iTextType

Constructor & Destructor Documentation

TCoeTextTypeAdaptor(const TDesC &)

IMPORT_CTCoeTextTypeAdaptor(const TDesC &aText)

Parameters

const TDesC & aText

TCoeTextTypeAdaptor(const TBidiText &)

IMPORT_CTCoeTextTypeAdaptor(const TBidiText &aText)

Parameters

const TBidiText & aText

Member Functions Documentation

HasRightToLeftDirectionality()

IMPORT_C TBoolHasRightToLeftDirectionality()const

LineOfText(TInt, TInt &, const CFont &)

IMPORT_C TPtrCLineOfText(TIntaLineNumber,
TInt &aWidthInPixels,
const CFont &aFont
)const

Parameters

TInt aLineNumber
TInt & aWidthInPixels
const CFont & aFont

NumberOfLines()

IMPORT_C TIntNumberOfLines()const

Member Enumerations Documentation

Enum TTextType

Enumerators

ENewlineSeparated
EBidiText

Member Data Documentation

const TAny * iText

const TAny *iText[private]

TTextType iTextType

TTextType iTextType[private]