class MFormCustomWrap |
An interface class that can be derived from to implement custom line breaking.
Custom line breaking allows the Text Views line wrapping algorithm to break lines in any way. For instance, it may be used to avoid the jagged white space at the right edge of text windows caused by normal line wrapping on a small screen.
All of these functions have a default implementation. To change the default behaviour, a pointer to an object that overrides any or all of the functions in the interface needs to be passed to the function CTextLayout::SetCustomWrap(). 6.2
Public Member Functions | |
---|---|
IMPORT_C TBool | GetLineBreakInContext(const TDesC &, TInt, TInt, TBool, TInt &) |
IMPORT_C TBool | IsHangingCharacter(TUint) |
IMPORT_C TUint | LineBreakClass(TUint, TUint &, TUint &) |
IMPORT_C TBool | LineBreakPossible(TUint, TUint, TBool) |
Private Member Functions | |
---|---|
IMPORT_C void | MFormCustomWrap_Reserved_1() |
IMPORT_C void | MFormCustomWrap_Reserved_2() |
IMPORT_C TBool | GetLineBreakInContext | ( | const TDesC & | aText, |
TInt | aMinBreakPos, | |||
TInt | aMaxBreakPos, | |||
TBool | aForwards, | |||
TInt & | aBreakPos | |||
) | const [virtual] |
IMPORT_C TBool | IsHangingCharacter | ( | TUint | aChar | ) | const [virtual] |
TUint aChar |
IMPORT_C TUint | LineBreakClass | ( | TUint | aCode, |
TUint & | aRangeStart, | |||
TUint & | aRangeEnd | |||
) | const [virtual] |