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 TBool | HasRightToLeftDirectionality() |
IMPORT_C TPtrC | LineOfText(TInt, TInt &, const CFont &) |
IMPORT_C TInt | NumberOfLines() |
Private Member Enumerations | |
---|---|
enum | TTextType { ENewlineSeparated, EBidiText } |
Private Attributes | |
---|---|
const TAny * | iText |
TTextType | iTextType |
IMPORT_C | TCoeTextTypeAdaptor | ( | const TDesC & | aText | ) |
const TDesC & aText |
IMPORT_C | TCoeTextTypeAdaptor | ( | const TBidiText & | aText | ) |
const TBidiText & aText |
IMPORT_C TPtrC | LineOfText | ( | TInt | aLineNumber, |
TInt & | aWidthInPixels, | |||
const CFont & | aFont | |||
) | const |