MFormCustomDraw Class Reference

class MFormCustomDraw

An abstract class which specifies the protocol for customising the way text and its background are drawn.

Common uses for this are to implement custom highlighting or to draw a background bitmap. You must create an object of a class derived from this class and call CTextLayout::SetCustomDraw(), passing a pointer to the object. All of these functions have default implementations. Your class can override any of the virtual functions listed below.

Public Member Functions
IMPORT_C voidDrawBackground(const TParam &, const TRgb &, TRect &)
IMPORT_C voidDrawLineGraphics(const TParam &, const TLineInfo &)
IMPORT_C voidDrawText(const TParam &, const TLineInfo &, const TCharFormat &, const TDesC &, const TPoint &, TInt)
IMPORT_C voidDrawText(const TParam &, const TLineInfo &, const TCharFormat &, const TDesC &, const TInt, const TInt, const TPoint &, TInt)
IMPORT_C voidMFormCustomDraw_Reserved_2()
IMPORT_C TRgbSystemColor(TUint, TRgb)

Member Functions Documentation

DrawBackground(const TParam &, const TRgb &, TRect &)

IMPORT_C voidDrawBackground(const TParam &aParam,
const TRgb &aBackground,
TRect &aDrawn
)const [virtual]

Parameters

const TParam & aParam
const TRgb & aBackground
TRect & aDrawn

DrawLineGraphics(const TParam &, const TLineInfo &)

IMPORT_C voidDrawLineGraphics(const TParam &aParam,
const TLineInfo &aLineInfo
)const [virtual]

Parameters

const TParam & aParam
const TLineInfo & aLineInfo

DrawText(const TParam &, const TLineInfo &, const TCharFormat &, const TDesC &, const TPoint &, TInt)

IMPORT_C voidDrawText(const TParam &aParam,
const TLineInfo &aLineInfo,
const TCharFormat &aFormat,
const TDesC &aText,
const TPoint &aTextOrigin,
TIntaExtraPixels
)const [virtual]

Parameters

const TParam & aParam
const TLineInfo & aLineInfo
const TCharFormat & aFormat
const TDesC & aText
const TPoint & aTextOrigin
TInt aExtraPixels

DrawText(const TParam &, const TLineInfo &, const TCharFormat &, const TDesC &, const TInt, const TInt, const TPoint &, TInt)

IMPORT_C voidDrawText(const TParam &aParam,
const TLineInfo &aLineInfo,
const TCharFormat &aFormat,
const TDesC &aText,
const TIntaStart,
const TIntaEnd,
const TPoint &aTextOrigin,
TIntaExtraPixels
)const [virtual]

Parameters

const TParam & aParam
const TLineInfo & aLineInfo
const TCharFormat & aFormat
const TDesC & aText
const TInt aStart
const TInt aEnd
const TPoint & aTextOrigin
TInt aExtraPixels

MFormCustomDraw_Reserved_2()

IMPORT_C voidMFormCustomDraw_Reserved_2()[virtual]

SystemColor(TUint, TRgb)

IMPORT_C TRgbSystemColor(TUintaColorIndex,
TRgbaDefaultColor
)const [virtual]

Parameters

TUint aColorIndex
TRgb aDefaultColor