![Symbian Developer Library](../../../../a_stock/images/mainheading.gif)
![]() |
![]() |
|
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.
Defined in TCoeTextTypeAdaptor
:
HasRightToLeftDirectionality()const
This function checks the directionality of the text. LineOfText(TInt,TInt &,const CFont &)const
Extracts a line of text. The width (in pixels) of the line is returned in aWidth...NumberOfLines()const
Calculates the number of lines in the text. TCoeTextTypeAdaptor(const TBidiText &)
Constructor taking a TBidiText object as parameter. TCoeTextTypeAdaptor(const TDesC &)
Constructor taking a plain descriptor as parameter. The directionality of the te...IMPORT_C TCoeTextTypeAdaptor(const TDesC &aText);
Constructor taking a plain descriptor as parameter. The directionality of the text separated with ' ' must always be left-to-right display order.
|
IMPORT_C TCoeTextTypeAdaptor(const TBidiText &aText);
Constructor taking a TBidiText
object as parameter.
|
IMPORT_C TInt NumberOfLines() const;
Calculates the number of lines in the text.
|
IMPORT_C TPtrC LineOfText(TInt aLineNumber, TInt &aWidthInPixels, const CFont &aFont) const;
Extracts a line of text. The width (in pixels) of the line is returned in aWidthInPixels.
|
|
IMPORT_C TBool HasRightToLeftDirectionality() const;
This function checks the directionality of the text.
|