TBidiText Class Reference

#include <biditext.h>

class TBidiText
Public Member Enumerations
enumTDirectionality { ELeftToRight, ERightToLeft }
enumTPanicCodes { EPanicRunArrayNull }
Public Member Functions
IMPORT_C TDirectionalityDirectionality()
IMPORT_C TPtrCDisplayText()
IMPORT_C voidDrawText(CGraphicsContext &, const TPoint &)
IMPORT_C voidDrawText(CGraphicsContext &, const TPoint &, TInt, CGraphicsContext::TTextAlign)
IMPORT_C voidDrawText(CGraphicsContext &, const TPoint &, TInt)
IMPORT_C TPtrCLineOfDisplayText(TInt, TInt &)
IMPORT_C TSizeMinimumSize(TInt, const CFont &, TInt, TInt, const MLineBreaker *)
IMPORT_C TBidiText *NewL(TInt, TInt)
IMPORT_C TBidiText *NewL(const TDesC &, TInt)
IMPORT_C TBidiText *NewL(const TDesC &, TInt, TDirectionality)
IMPORT_C TIntNumberOfLinesInDisplayText()
IMPORT_C TDirectionalityScriptDirectionality(TLanguage)
IMPORT_C TIntSetText(const TDesC &, RRunInfoArray &)
IMPORT_C TIntSetText(const TDesC &, TDirectionality, RRunInfoArray &)
IMPORT_C voidSetTruncationChar(TChar)
IMPORT_C TPtrCText()
IMPORT_C TDirectionalityTextDirectionality(const TDesC &, TBool *)
IMPORT_C TCharTruncationChar()
IMPORT_C voidWrapText(TInt, const CFont &, const MLineBreaker *, TInt)
IMPORT_C voidWrapText(TInt, const CFont &, const MLineBreaker *)
IMPORT_C TIntWrappingWidth()
Protected Member Functions
TBidiText()

Detailed Description

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.

Member Enumeration Documentation

Enum TDirectionality

Overall directionality of the text.

EnumeratorValueDescription
ELeftToRight0

Text reading begins on the left.

ERightToLeft1

Text reading begins on the right.

Enum TPanicCodes

Class specific panic codes DeprecatedThis enum has been replaced by TBidiPanic.

EnumeratorValueDescription
EPanicRunArrayNull

Constructor & Destructor Documentation

TBidiText ( )

TBidiText()[protected]

Member Function Documentation

Directionality ( )

IMPORT_C TDirectionalityDirectionality()const

DisplayText ( )

IMPORT_C TPtrCDisplayText()const

DrawText ( CGraphicsContext &, const TPoint & )

IMPORT_C voidDrawText(CGraphicsContext &aGc,
const TPoint &aLeft
)const

DrawText ( CGraphicsContext &, const TPoint &, TInt, CGraphicsContext::TTextAlign )

IMPORT_C voidDrawText(CGraphicsContext &aGc,
const TPoint &aLeft,
TIntaBaseLineSpacing,
CGraphicsContext::TTextAlignaAlignment
)const

DrawText ( CGraphicsContext &, const TPoint &, TInt )

IMPORT_C voidDrawText(CGraphicsContext &aGc,
const TPoint &aLeft,
TIntaBaseLineSpacing
)const

LineOfDisplayText ( TInt, TInt & )

IMPORT_C TPtrCLineOfDisplayText(TIntaLine,
TInt &aWidthInPixels
)const

MinimumSize ( TInt, const CFont &, TInt, TInt, const MLineBreaker * )

IMPORT_C TSizeMinimumSize(TIntaWrappingWidth,
const CFont &aFont,
TIntaLineGap,
TIntaMaxLines = -1,
const MLineBreaker *aBreaker = 0
)const

NewL ( TInt, TInt )

IMPORT_C TBidiText *NewL(TIntaReservedMaxLength,
TIntaMaxLines
)[static]

NewL ( const TDesC &, TInt )

IMPORT_C TBidiText *NewL(const TDesC &aText,
TIntaMaxLines
)[static]

NewL ( const TDesC &, TInt, TDirectionality )

IMPORT_C TBidiText *NewL(const TDesC &aText,
TIntaMaxLines,
TDirectionalityaDirectionality
)[static]

NumberOfLinesInDisplayText ( )

IMPORT_C TIntNumberOfLinesInDisplayText()const

ScriptDirectionality ( TLanguage )

IMPORT_C TDirectionalityScriptDirectionality(TLanguageaLanguage)[static]

SetText ( const TDesC &, RRunInfoArray & )

IMPORT_C TIntSetText(const TDesC &aText,
RRunInfoArray &aRunInfoArray
)

SetText ( const TDesC &, TDirectionality, RRunInfoArray & )

IMPORT_C TIntSetText(const TDesC &aText,
TDirectionalityaDirectionality,
RRunInfoArray &aRunInfoArray
)

SetTruncationChar ( TChar )

IMPORT_C voidSetTruncationChar(TCharaTruncateWith)

Text ( )

IMPORT_C TPtrCText()const

TextDirectionality ( const TDesC &, TBool * )

IMPORT_C TDirectionalityTextDirectionality(const TDesC &aText,
TBool *aFound = 0
)[static]

TruncationChar ( )

IMPORT_C TCharTruncationChar()const

WrapText ( TInt, const CFont &, const MLineBreaker *, TInt )

IMPORT_C voidWrapText(TIntaWrappingWidth,
const CFont &aFont,
const MLineBreaker *aBreaker,
TIntaMaxLines
)

WrapText ( TInt, const CFont &, const MLineBreaker * )

IMPORT_C voidWrapText(TIntaWrappingWidth,
const CFont &aFont,
const MLineBreaker *aBreaker = 0
)

WrappingWidth ( )

IMPORT_C TIntWrappingWidth()const