|
CartoType API
|
#include <cartotype_map.h>
Public Member Functions | |
| TTestLabelGraphicsContext (CEngine &aEngine, int32 aWidth, int32 aHeight, CLabelGraphicsContext &aGc) | |
| void | Sync () |
| TResult | DrawBitmap (const TBitmap &aBitmap, const TPoint &aTopLeft) |
| TResult | DrawTexture (const CTexture &aTexture, const TPointFP &aTopLeft, const TTransformFP &aTransform) |
| TResult | DrawRect (const TRect &aRect) |
| TResult | DrawShape (const MPath &aOutline, uint32 aFlags) |
| void | Clear () |
Overlapping text is avoided by drawing to the special-purpose graphics context TTestLabelGraphicsContext, which has drawing functions that do no drawing but return KErrorOverlap if newly drawn graphics would overlap what is already there.
| void CartoType::TTestLabelGraphicsContext::Clear | ( | ) | [inline, virtual] |
Clear the drawing area to transparent black. If colors are not stored set all pixels to zero intensity. If transparency levels are not stored set all pixels to black.
Implements CartoType::CGraphicsContext.
| TResult CartoType::TTestLabelGraphicsContext::DrawBitmap | ( | const TBitmap & | aBitmap, |
| const TPoint & | aTopLeft | ||
| ) | [inline, virtual] |
Draw a bitmap. If the bitmap has no color information use the current color. Combine any alpha information from the bitmap with the current alpha level. The coordinates are whole pixels.
Implements CartoType::CGraphicsContext.
Draw a filled rectangle in the current color. The coordinates are whole pixels.
Reimplemented from CartoType::CGraphicsContext.
| TResult CartoType::TTestLabelGraphicsContext::DrawShape | ( | const MPath & | aPath, |
| uint32 | aFlags | ||
| ) | [inline, virtual] |
Draw a filled shape in the current color.
Implements CartoType::CGraphicsContext.
| TResult CartoType::TTestLabelGraphicsContext::DrawTexture | ( | const CTexture & | aTexture, |
| const TPointFP & | aTopLeft, | ||
| const TTransformFP & | aTransform | ||
| ) | [inline, virtual] |
Draw a texture at aTopLeft, transforming it by aTransform. The baseimplementation returns KErrorUnimplemented.
Reimplemented from CartoType::CGraphicsContext.
| void CartoType::TTestLabelGraphicsContext::Sync | ( | ) | [inline, virtual] |
Synchronize the private graphics state to take account of any changes in iChangeFlags.
Implements CartoType::CGraphicsContext.
1.7.5.1