#include <biditext.h>
class TBidiText |
Public Member Enumerations | |
---|---|
enum | TDirectionality { ELeftToRight, ERightToLeft } |
enum | TPanicCodes { EPanicRunArrayNull } |
Protected Member Functions | |
---|---|
TBidiText() |
This class works as a replacement for HBufC in those cases where a small amount of text is being formatted simply. The text must be all of one style and broken into lines of all the same length. The number of lines and the text itself is specified on construction, and the text may then be re-broken, re-truncated and re-drawn with non-leaving functions.
Overall directionality of the text.
Enumerator | Value | Description |
---|---|---|
ELeftToRight | 0 |
Text reading begins on the left. |
ERightToLeft | 1 |
Text reading begins on the right. |
Class specific panic codes DeprecatedThis enum has been replaced by TBidiPanic.
Enumerator | Value | Description |
---|---|---|
EPanicRunArrayNull |
TBidiText | ( | ) | [protected] |
IMPORT_C TDirectionality | Directionality | ( | ) | const |
IMPORT_C TPtrC | DisplayText | ( | ) | const |
IMPORT_C void | DrawText | ( | CGraphicsContext & | aGc, |
const TPoint & | aLeft | |||
) | const |
IMPORT_C void | DrawText | ( | CGraphicsContext & | aGc, |
const TPoint & | aLeft, | |||
TInt | aBaseLineSpacing, | |||
CGraphicsContext::TTextAlign | aAlignment | |||
) | const |
IMPORT_C void | DrawText | ( | CGraphicsContext & | aGc, |
const TPoint & | aLeft, | |||
TInt | aBaseLineSpacing | |||
) | const |
IMPORT_C TSize | MinimumSize | ( | TInt | aWrappingWidth, |
const CFont & | aFont, | |||
TInt | aLineGap, | |||
TInt | aMaxLines = -1, | |||
const MLineBreaker * | aBreaker = 0 | |||
) | const |
IMPORT_C TBidiText * | NewL | ( | const TDesC & | aText, |
TInt | aMaxLines, | |||
TDirectionality | aDirectionality | |||
) | [static] |
IMPORT_C TInt | NumberOfLinesInDisplayText | ( | ) | const |
IMPORT_C TDirectionality | ScriptDirectionality | ( | TLanguage | aLanguage | ) | [static] |
IMPORT_C TInt | SetText | ( | const TDesC & | aText, |
RRunInfoArray & | aRunInfoArray | |||
) |
IMPORT_C TInt | SetText | ( | const TDesC & | aText, |
TDirectionality | aDirectionality, | |||
RRunInfoArray & | aRunInfoArray | |||
) |
IMPORT_C void | SetTruncationChar | ( | TChar | aTruncateWith | ) |
IMPORT_C TPtrC | Text | ( | ) | const |
IMPORT_C TDirectionality | TextDirectionality | ( | const TDesC & | aText, |
TBool * | aFound = 0 | |||
) | [static] |