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]

Parameters

TRgb aTextColor

Member Functions Documentation

Construct()

TInt Construct()[private]

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]

Any actual text drawer must implement this method to draw the text passed as argument. The implementation must draw the text inside the text rectangle, cropped to the clipping rectangle, and with the given margins and alignment taken into account.

Note that the actual horizontal alignment shall depend on the script directionality. Calling ActualHorizontalAlignment() will return the horizontal alignment where left and right has been swapped for right-to-left scripts.

Parameters

CGraphicsContext & aGc
const TCoeTextTypeAdaptor & aText
const CFont & aFont
const TRect & aTextRect
const TRect & aClipRect

MopSupplyObject(TTypeUid)

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

Parameters

TTypeUid aId

New(TRgb)

IMPORT_C CCoePlainTextDrawer *New(TRgbaTextColor)[static]

Parameters

TRgb aTextColor

Reset()

voidReset()[private, virtual]

SetTextColor(TRgb)

IMPORT_C voidSetTextColor(TRgbaColor)[virtual]

This method sets the main color to use to draw text.

Parameters

TRgb aColorThe color to use to draw text.

TextColor()

IMPORT_C TRgbTextColor()const [virtual]

This method returns the main color used by the CCoeTextDrawer to draw text. The color used to draw text.

Member Data Documentation

TRgb iTextColor

TRgb iTextColor[private]