#include <mw/coetextdrawer.h>
class CCoePlainTextDrawer : public CCoeTextDrawerBase |
Public Member Enumerations | |
---|---|
enum | anonymous { ETypeId } |
Public Member Functions | |
---|---|
IMPORT_C CCoePlainTextDrawer * | New(TRgb) |
virtual IMPORT_C void | SetTextColor(TRgb) |
virtual IMPORT_C TRgb | TextColor() |
Protected Member Functions | |
---|---|
virtual IMPORT_C TTypeUid::Ptr | MopSupplyObject(TTypeUid) |
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.
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.
See also: MObjectProvider
Parameter | Description |
---|---|
aId | The type of the desired object. |
Returns: A pointer to an object.
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().
Parameter | Description |
---|---|
aTextColor | The color that will be used to draw text. |
Returns: A new CCoePlainTextDrawer instance or null if the creation of a new instance failed.
IMPORT_C void | SetTextColor | ( | TRgb | aTextColor | ) | [virtual] |
Reimplemented from CCoeTextDrawerBase::SetTextColor(TRgb)
See CCoeTextDrawerBase::SetTextColor().
See also: CCoeTextDrawerBase
IMPORT_C TRgb | TextColor | ( | ) | const [virtual] |
Reimplemented from CCoeTextDrawerBase::TextColor()const
See CCoeTextDrawerBase::TextColor().
See also: CCoeTextDrawerBase