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 ( TRgb aTextColor ) [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 &)

void DrawText ( 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 & aGc The graphics context.
const TCoeTextTypeAdaptor & aText The TCoeTextTypeAdaptor text object to draw.
const CFont & aFont Font to be used for drawing the text.
const TRect & aTextRect The rectangle to draw the text in.
const TRect & aClipRect The clipping rectangle.

MopSupplyObject(TTypeUid)

IMPORT_C TTypeUid::Ptr MopSupplyObject ( TTypeUid aId ) [protected, virtual]

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

MObjectProvider

Parameters

TTypeUid aId The type of the desired object.

New(TRgb)

IMPORT_C CCoePlainTextDrawer * New ( TRgb aTextColor ) [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 aTextColor The color that will be used to draw text.

Reset()

void Reset ( ) [private, virtual]

SetTextColor(TRgb)

IMPORT_C void SetTextColor ( TRgb aTextColor ) [virtual]

Parameters

TRgb aTextColor

TextColor()

IMPORT_C TRgb TextColor ( ) const [virtual]

Member Data Documentation

TRgb iTextColor

TRgb iTextColor [private]