CCoePlainTextDrawer Class Reference

class CCoePlainTextDrawer : public CCoeTextDrawerBase

This is a basic text drawer without any text effects. The default text drawer that can be used if no other (device specific) text drawers has been added to the system.

Inherits from

Constructor & Destructor Documentation

CCoePlainTextDrawer(TRgb)

CCoePlainTextDrawer(TRgbaTextColor)[private]

Constructor.

Parameters

TRgb aTextColor

Member Functions Documentation

Construct()

TInt Construct()[private]

Second-phase construction. This method is non-leaving as it will have been called indirectly from a control's draw method which cannot leave.

DrawText(CGraphicsContext &, const TCoeTextTypeAdaptor &, const CFont &, const TRect &, const TRect &)

voidDrawText(CGraphicsContext &aGc,
const TCoeTextTypeAdaptor &aText,
const CFont &aFont,
const TRect &aTextRect,
const TRect &aClipRect
)const [private, virtual]

Draws the text provided as parameter.

CCoeTextDrawerBase

Parameters

CGraphicsContext & aGcThe graphics context.
const TCoeTextTypeAdaptor & aTextThe TCoeTextTypeAdaptor text object to draw.
const CFont & aFontFont to be used for drawing the text.
const TRect & aTextRectThe rectangle to draw the text in.
const TRect & aClipRectThe clipping rectangle.

MopSupplyObject(TTypeUid)

IMPORT_C TTypeUid::PtrMopSupplyObject(TTypeUidaId)[protected, virtual]

This function is defined by the MObjectProvider class. It allows the actual type of text drawer to be identified.

MObjectProvider

Parameters

TTypeUid aIdThe type of the desired object.

New(TRgb)

IMPORT_C CCoePlainTextDrawer *New(TRgbaTextColor)[static]

Created a new plain text drawer on the heap. This shall typically be done in the CCoeControl::GetTextDrawer() method, or better, in the constructor of the owner of the text drawer.

Do not call this method from within a CCoeControl::Draw() method. If all you want is access to a text drawer, call CCoeControl::TextDrawer().

Parameters

TRgb aTextColorThe color that will be used to draw text.

Reset()

voidReset()[private, virtual]

SetTextColor(TRgb)

IMPORT_C voidSetTextColor(TRgbaTextColor)[virtual]

Parameters

TRgb aTextColor

TextColor()

IMPORT_C TRgbTextColor()const [virtual]

Member Data Documentation

TRgb iTextColor

TRgb iTextColor[private]