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
void DrawLine ( CGraphicsContext &, const TPoint &, const TPoint &)
void DrawRect ( CGraphicsContext &, const TRect &)
void DrawText ( CGraphicsContext &, const TDesC &, const TPoint &)

Member Functions Documentation

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

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

Parameters

CGraphicsContext & aGc
const TPoint & aPt1
const TPoint & aPt2

DrawRect(CGraphicsContext &, const TRect &)

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

Parameters

CGraphicsContext & aGc
const TRect & aRc

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

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

Parameters

CGraphicsContext & aGc
const TDesC & aText
const TPoint & aPt