|
|
|
|
Location:
coetextdrawer.h
Link against: cone.lib
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.
MObjectProvider - An interface that allows an object to be part of a network of object providers
CBase - Base class for all classes to be instantiated on the heap
CCoeTextDrawerBase - This is the base class for all text drawers implementing different text effects (for example shadow or glowing/outlined
text)
CCoePlainTextDrawer - This is a basic text drawer without any text effects
Defined in CCoePlainTextDrawer:
DrawText(), ETypeId, MopSupplyObject(), New(), Reset(), SetTextColor(), TextColor(), anonymous
Inherited from CBase:
Delete(),
Extension_(),
operator new()
Inherited from CCoeTextDrawerBase:
ActualHorizontalAlignment(),
Alignment(),
Construct(),
EffectMargins(),
IsReusable(),
LineGapInPixels(),
Margins(),
SetAlignment(),
SetAppLanguage(),
SetLineGapInPixels(),
SetMargins(),
SetReusable()
Inherited from MObjectProvider:
MObjectProvider_Reserved1(),
MObjectProvider_Reserved2(),
MopGetObject(),
MopGetObjectNoChaining(),
MopNext()
static IMPORT_C CCoePlainTextDrawer *New(TRgb aTextColor);
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().
|
|
virtual IMPORT_C TRgb TextColor() const;
See CCoeTextDrawerBase::TextColor().
|
virtual IMPORT_C void SetTextColor(TRgb aTextColor);
See CCoeTextDrawerBase::SetTextColor().
|
protected: virtual IMPORT_C TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
This function is defined by the MObjectProvider class. It allows the actual type of text drawer to be identified.
|
|
private: virtual void DrawText(CGraphicsContext &aGc, const TCoeTextTypeAdaptor &aText, const CFont &aFont, const TRect &aTextRect,
const TRect &aClipRect) const;
Draws the text provided as parameter.
|