class CTmText : public CBase |
A self-contained text object. It owns both layout and content. It is intended for labels and the general display of small-to-medium-sized amounts of text.
Public Member Functions | |
---|---|
~CTmText() | |
IMPORT_C void | ChangeFormatL(const TTmFormatParamBase &) |
IMPORT_C void | Clear() |
IMPORT_C void | CustomizeL(const MTmCustom *) |
void | Draw(CGraphicsContext &, const TPoint &, const TRect &, const TLogicalRgb *, TBool) |
IMPORT_C void | GetFormat(TTmFormatParamBase &) |
IMPORT_C void | InsertL(TInt, const TDesC &, const TTmCharFormat *, const RTmParFormat *, TRect *, TInt *) |
IMPORT_C TInt | MemoryUsed() |
IMPORT_C CTmText * | NewL(MGraphicsDeviceMap *, const TTmFormatParamBase *) |
IMPORT_C CTmText * | NewL(MGraphicsDeviceMap &, const TTmFormatParamBase &) |
IMPORT_C CTmText * | NewL(MGraphicsDeviceMap &, TInt, TInt) |
IMPORT_C void | SetWrapWidthL(TInt) |
Private Member Functions | |
---|---|
CTmText() | |
IMPORT_C void | Spare1() |
const CTmTextLayout & | TextLayout() |
Private Attributes | |
---|---|
CTmTextImp * | iImp |
IMPORT_C void | ChangeFormatL | ( | const TTmFormatParamBase & | aFormatParam | ) |
const TTmFormatParamBase & aFormatParam |
IMPORT_C void | CustomizeL | ( | const MTmCustom * | aCustom | ) |
const MTmCustom * aCustom |
void | Draw | ( | CGraphicsContext & | aGc, |
const TPoint & | aTopLeft, | |||
const TRect & | aClipRect, | |||
const TLogicalRgb * | aDocBackground, | |||
TBool | aDrawParBackground | |||
) | [inline] |
Draws the formatted text. This inline function just calls CTmText::DrawLayout and is identical to it. It is provided for coding convenience because of the expectation that a drawing function called Draw exists.
CGraphicsContext & aGc | |
const TPoint & aTopLeft | |
const TRect & aClipRect | |
const TLogicalRgb * aDocBackground | |
TBool aDrawParBackground |
IMPORT_C void | GetFormat | ( | TTmFormatParamBase & | aFormatParam | ) | const |
TTmFormatParamBase & aFormatParam |
IMPORT_C void | InsertL | ( | TInt | aPos, |
const TDesC & | aText, | |||
const TTmCharFormat * | aCharFormat = NULL, | |||
const RTmParFormat * | aParFormat = NULL, | |||
TRect * | aRedrawRect = NULL, | |||
TInt * | aScroll = NULL | |||
) |
TInt aPos | |
const TDesC & aText | |
const TTmCharFormat * aCharFormat = NULL | |
const RTmParFormat * aParFormat = NULL | |
TRect * aRedrawRect = NULL | |
TInt * aScroll = NULL |
IMPORT_C CTmText * | NewL | ( | MGraphicsDeviceMap * | aDevice = NULL, |
const TTmFormatParamBase * | aFormatParam = NULL | |||
) | [static] |
MGraphicsDeviceMap * aDevice = NULL | |
const TTmFormatParamBase * aFormatParam = NULL |
IMPORT_C CTmText * | NewL | ( | MGraphicsDeviceMap & | aDevice, |
const TTmFormatParamBase & | aFormatParam | |||
) | [static] |
MGraphicsDeviceMap & aDevice | |
const TTmFormatParamBase & aFormatParam |
IMPORT_C CTmText * | NewL | ( | MGraphicsDeviceMap & | aDevice, |
TInt | aWrapWidth, | |||
TInt | aFlags | |||
) | [static] |
MGraphicsDeviceMap & aDevice | |
TInt aWrapWidth | |
TInt aFlags |