MTmTextDrawExt Class Reference

class MTmTextDrawExt

Text drawing - an extension interface. It offfers DrawLine(), DrawText() and DrawRect() methods. The idea is to move out from RTm<Name>Interpreter implementations all CGraphicsContext::Draw<Item> calls and replace them with the corresponding MTmTextDrawExt::Draw<Item> calls. The implementations of MTmTextDrawExt interface can customize drawing methods implementations - for example - including opaque drawing support. The MTmTextDrawExt interface UID is KTmTextDrawExtId. The interface implementation can be queried through a MTmSource::GetExtendedInterface() call.

Public Member Functions
voidDrawLine(CGraphicsContext &, const TPoint &, const TPoint &)
voidDrawRect(CGraphicsContext &, const TRect &)
voidDrawText(CGraphicsContext &, const TDesC &, const TPoint &)

Member Functions Documentation

DrawLine(CGraphicsContext &, const TPoint &, const TPoint &)

voidDrawLine(CGraphicsContext &aGc,
const TPoint &aPt1,
const TPoint &aPt2
)const [pure virtual]

Parameters

CGraphicsContext & aGc
const TPoint & aPt1
const TPoint & aPt2

DrawRect(CGraphicsContext &, const TRect &)

voidDrawRect(CGraphicsContext &aGc,
const TRect &aRc
)const [pure virtual]

Parameters

CGraphicsContext & aGc
const TRect & aRc

DrawText(CGraphicsContext &, const TDesC &, const TPoint &)

voidDrawText(CGraphicsContext &aGc,
const TDesC &aText,
const TPoint &aPt
)const [pure virtual]

Parameters

CGraphicsContext & aGc
const TDesC & aText
const TPoint & aPt