MAknPictographDrawer Class Reference
class MAknPictographDrawer |
Pictograph drawer interface
Public Member Functions |
---|
| ~MAknPictographDrawer() |
TBool
| ContainsPictographs(const TDesC &) |
void | DrawPictograph(CBitmapContext &, const TPoint &, TText, TAknPictographHeight) |
void | DrawPictograph(CBitmapContext &, const TRect &, TText, TAknPictographHeight) |
void | DrawPictograph(CBitmapContext &, const TRect &, const TRect &, TText, TAknPictographHeight) |
void | DrawPictographsInText(CBitmapContext &, const CFont &, const TDesC &, const TPoint &) |
void | DrawPictographsInText(CBitmapContext &, const CFont &, const TDesC &, const TRect &, TInt, CGraphicsContext::TTextAlign, TInt) |
void | DrawText(CBitmapContext &, const CFont &, const TDesC &, const TPoint &) |
void | DrawText(CBitmapContext &, const CFont &, const TDesC &, const TRect &, TInt, CGraphicsContext::TTextAlign, TInt) |
TBool
| IsAnimated(TText, TAknPictographHeight) |
TBool
| IsPictograph(TText) |
TInt
| SelectPictographHeightForFont(const CFont &, TAknPictographHeight &) |
TAknPictographDrawingMode
| SetPictographDrawingMode(TAknPictographDrawingMode) |
HBufC * | SupportedPictographCodesL() |
Constructor & Destructor Documentation
~MAknPictographDrawer()
~MAknPictographDrawer | ( | ) | [inline, virtual] |
Member Functions Documentation
ContainsPictographs(const TDesC &)
TBool
| ContainsPictographs | ( | const TDesC & | aText | ) | const [pure virtual] |
Tells whether the text contains any pictographs.
DrawPictograph(CBitmapContext &, const TPoint &, TText, TAknPictographHeight)
DrawPictograph(CBitmapContext &, const TRect &, TText, TAknPictographHeight)
DrawPictograph(CBitmapContext &, const TRect &, const TRect &, TText, TAknPictographHeight)
DrawPictographsInText(CBitmapContext &, const CFont &, const TDesC &, const TPoint &)
Draws pictographs that are encountered in the text. Suitable pictograph height is chosen based on aFont. This method sets aGc to use CGraphicsContext::ENullBrush.
Parameters
CBitmapContext & aGc | Graphics context. |
const CFont & aFont | Used font. |
const TDesC & aText | Text. |
const TPoint & aPosition | Text baseline coordinates of the starting position. |
DrawPictographsInText(CBitmapContext &, const CFont &, const TDesC &, const TRect &, TInt, CGraphicsContext::TTextAlign, TInt)
Parameters
CBitmapContext & aGc | Graphics context. |
const CFont & aFont | Used font. |
const TDesC & aText | Text. |
const TRect & aBox | Rectangle, where the text is rendered. |
TInt aBaselineOffset | Offset from the top of the rectangle to the baseline to the text. |
CGraphicsContext::TTextAlign aAlignment = CGraphicsContext::ELeft | Text alignment. |
TInt aLeftMargin = 0 | The left margin for left-aligned text, or the right margin for right-aligned text |
DrawText(CBitmapContext &, const CFont &, const TDesC &, const TPoint &)
Draws text using CGraphicsContext::DrawText and then draws pictographs on top of that.
Suitable pictograph height is chosen based on aFont.
The graphics context aGc must be set to use font aFont before calling this method.
This method sets aGc to use CGraphicsContext::ENullBrush.
Parameters
CBitmapContext & aGc | Graphics context. |
const CFont & aFont | Used font. |
const TDesC & aText | Text. |
const TPoint & aPosition | Text baseline coordinates of the starting position. |
DrawText(CBitmapContext &, const CFont &, const TDesC &, const TRect &, TInt, CGraphicsContext::TTextAlign, TInt)
Draws text using CGraphicsContext::DrawText and then draws pictographs on top of that.
Suitable pictograph height is chosen based on aFont.
The graphics context aGc must be set to use font aFont before calling this method.
This method sets aGc to use CGraphicsContext::ENullBrush.
Parameters
CBitmapContext & aGc | Graphics context. |
const CFont & aFont | Used font. |
const TDesC & aText | Text. |
const TRect & aBox | Rectangle, where the text is rendered. |
TInt aBaselineOffset | Offset from the top of the rectangle to the baseline to the text. |
CGraphicsContext::TTextAlign aAlignment = CGraphicsContext::ELeft | Text alignment. |
TInt aLeftMargin = 0 | The left margin for left-aligned text, or the right margin for right-aligned text |
IsAnimated(TText, TAknPictographHeight)
Tells whether the given pictograph is animated or not.
IsPictograph(TText)
TBool
| IsPictograph | ( | TText | aCode | ) | const [pure virtual] |
Tells whether the character is in the pictograph code range.
Parameters
TText aCode | Character code in Unicode. |
SelectPictographHeightForFont(const CFont &, TAknPictographHeight &)
Tries to find a matching pictograph height for a given font.
SetPictographDrawingMode(TAknPictographDrawingMode)
Sets the pictograph drawing mode for DrawPictograph calls. Other functions e.g. DrawText, etc are unaffected by this function. The drawing mode is set to EDrawingModeNormal by default. Note: When drawing mode EDrawingModeWhite is set only a single DrawPictograph call is supported per component->Draw() call.
SupportedPictographCodesL()
HBufC * | SupportedPictographCodesL | ( | ) | const [pure virtual] |
Returns a heap descriptor filled with all supported pictograph codes. They are sorted in ascending pictograph code order. Ownership of the returned object is transferred to the caller.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.