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.
Public Member Functions | |
---|---|
IMPORT_C CCoePlainTextDrawer * | New(TRgb) |
IMPORT_C void | SetTextColor(TRgb) |
IMPORT_C TRgb | TextColor() |
Protected Member Functions | |
---|---|
IMPORT_C TTypeUid::Ptr | MopSupplyObject(TTypeUid) |
Private Member Functions | |
---|---|
CCoePlainTextDrawer(TRgb) | |
TInt | Construct() |
void | DrawText(CGraphicsContext &, const TCoeTextTypeAdaptor &, const CFont &, const TRect &, const TRect &) |
void | Reset() |
Private Attributes | |
---|---|
TRgb | iTextColor |
void | DrawText | ( | 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.
CGraphicsContext & aGc | |
const TCoeTextTypeAdaptor & aText | |
const CFont & aFont | |
const TRect & aTextRect | |
const TRect & aClipRect |
IMPORT_C TTypeUid::Ptr | MopSupplyObject | ( | TTypeUid | aId | ) | [protected, virtual] |
TTypeUid aId |
IMPORT_C void | SetTextColor | ( | TRgb | aColor | ) | [virtual] |
This method sets the main color to use to draw text.
TRgb aColor | The color to use to draw text. |
IMPORT_C TRgb | TextColor | ( | ) | const [virtual] |
This method returns the main color used by the CCoeTextDrawer to draw text. The color used to draw text.