class 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.
Protected Member Functions | |
---|---|
TBidiText() |
Private Member Functions | |
---|---|
TInt | DoWrapText(TInt, const CFont &, const MLineBreaker *, TInt, TText *&, TInt &, TInt16 *) |
Public Member Enumerations | |
---|---|
enum | TDirectionality { ELeftToRight = 0, ERightToLeft = 1 } |
enum | TPanicCodes { EPanicRunArrayNull } |
TInt | DoWrapText | ( | TInt | aWrappingWidth, |
const CFont & | aFont, | |||
const MLineBreaker * | aBreaker, | |||
TInt | aMaxLines, | |||
TText *& | aOutputText, | |||
TInt & | aNumLines, | |||
TInt16 * | aLineWidthArray | |||
) | const [private] |
IMPORT_C void | DrawText | ( | CGraphicsContext & | aGc, |
const TPoint & | aLeft | |||
) | const |
CGraphicsContext & aGc | |
const TPoint & aLeft |
IMPORT_C void | DrawText | ( | CGraphicsContext & | aGc, |
const TPoint & | aLeft, | |||
TInt | aBaseLineSpacing, | |||
CGraphicsContext::TTextAlign | aAlignment | |||
) | const |
CGraphicsContext & aGc | |
const TPoint & aLeft | |
TInt aBaseLineSpacing | |
CGraphicsContext::TTextAlign aAlignment |
IMPORT_C void | DrawText | ( | CGraphicsContext & | aGc, |
const TPoint & | aLeft, | |||
TInt | aBaseLineSpacing | |||
) | const |
CGraphicsContext & aGc | |
const TPoint & aLeft | |
TInt aBaseLineSpacing |
IMPORT_C TPtrC | LineOfDisplayText | ( | TInt | aLine, |
TInt & | aWidthInPixels | |||
) | const |
IMPORT_C TSize | MinimumSize | ( | TInt | aWrappingWidth, |
const CFont & | aFont, | |||
TInt | aLineGap, | |||
TInt | aMaxLines = -1, | |||
const MLineBreaker * | aBreaker = NULL | |||
) | const |
TInt aWrappingWidth | |
const CFont & aFont | |
TInt aLineGap | |
TInt aMaxLines = -1 | |
const MLineBreaker * aBreaker = NULL |
IMPORT_C TBidiText * | NewL | ( | const TDesC & | aText, |
TInt | aMaxLines, | |||
TDirectionality | aDirectionality | |||
) | [static] |
const TDesC & aText | |
TInt aMaxLines | |
TDirectionality aDirectionality |
IMPORT_C TDirectionality | ScriptDirectionality | ( | TLanguage | aLanguage | ) | [static] |
TLanguage aLanguage |
IMPORT_C TInt | SetText | ( | const TDesC & | aText, |
RRunInfoArray & | aRunInfoArray | |||
) |
const TDesC & aText | |
RRunInfoArray & aRunInfoArray |
IMPORT_C TInt | SetText | ( | const TDesC & | aText, |
TDirectionality | aDirectionality, | |||
RRunInfoArray & | aRunInfoArray | |||
) |
const TDesC & aText | |
TDirectionality aDirectionality | |
RRunInfoArray & aRunInfoArray |
IMPORT_C void | SetTruncationChar | ( | TChar | aTruncateWith | ) |
TChar aTruncateWith |
IMPORT_C TDirectionality | TextDirectionality | ( | const TDesC & | aText, |
TBool * | aFound = 0 | |||
) | [static] |
IMPORT_C void | WrapText | ( | TInt | aWrappingWidth, |
const CFont & | aFont, | |||
const MLineBreaker * | aBreaker, | |||
TInt | aMaxLines | |||
) |
TInt aWrappingWidth | |
const CFont & aFont | |
const MLineBreaker * aBreaker | |
TInt aMaxLines |
IMPORT_C void | WrapText | ( | TInt | aWrappingWidth, |
const CFont & | aFont, | |||
const MLineBreaker * | aBreaker = NULL | |||
) |
TInt aWrappingWidth | |
const CFont & aFont | |
const MLineBreaker * aBreaker = NULL |