|
CartoType API
|
#include <cartotype_graphics.h>
Public Member Functions | |
| virtual TResult | TestBitmap (const TBitmap &aBitmap, const TPoint &aTopLeft, bool aCanOverlapEdge)=0 |
| virtual TResult | TestTexture (const CTexture &aTexture, const TPointFP &aTopLeft, const TTransformFP &aTransform, bool aCanOverlapEdge)=0 |
| virtual TResult | TestRectZ (const TRect &aRect, bool aCanOverlapEdge, uint32 aZ)=0 |
| virtual TResult | TestShapeZ (const MPath &aPath, uint32 aFlags, uint32 aZ)=0 |
| virtual TResult | DrawRectZ (const TRect &aRect, uint32 aZ)=0 |
| virtual TResult | DrawShapeZ (const MPath &aPath, uint32 aFlags, uint32 aZ)=0 |
| virtual void | SetGlow (TColor aColor, TFixed aWidth, const TPointFixed &aOffset)=0 |
| virtual const MPalette * | BitmapPalette ()=0 |
| TResult | TestRect (const TRect &aRect, bool aCanOverlapEdge) |
| TResult | TestShape (const MPath &aPath, uint32 aFlags) |
Protected Member Functions | |
| CLabelGraphicsContext (CEngine &aEngine, const TRect &aBounds, CBitmap *aBitmap) | |
A base class for graphics contexts that are suitable for drawing labels.
| virtual const MPalette* CartoType::CLabelGraphicsContext::BitmapPalette | ( | ) | [pure virtual] |
Return a pointer to the palette associated with the bitmap owned by the graphics context. If the bitmap has no palette return null.
Implemented in CartoType::C8BitTwinBitmapGraphicsContext, and CartoType::C32BitColorBitmapGraphicsContext.
| virtual TResult CartoType::CLabelGraphicsContext::DrawRectZ | ( | const TRect & | aRect, |
| uint32 | aZ | ||
| ) | [pure virtual] |
Set a Z value indicating a priority or other front-to-back ordering by setting all the pixels of a rectangle to the value aZ unless their existing value is higher.
Implemented in CartoType::C8BitTwinBitmapGraphicsContext, and CartoType::C32BitColorBitmapGraphicsContext.
| virtual TResult CartoType::CLabelGraphicsContext::DrawShapeZ | ( | const MPath & | aPath, |
| uint32 | aFlags, | ||
| uint32 | aZ | ||
| ) | [pure virtual] |
Set a Z value indicating a priority or other front-to-back ordering by setting all the non-transparent pixels of a shape to the value aZ unless their existing value is higher.
Implemented in CartoType::C8BitTwinBitmapGraphicsContext, and CartoType::C32BitColorBitmapGraphicsContext.
| virtual void CartoType::CLabelGraphicsContext::SetGlow | ( | TColor | aColor, |
| TFixed | aWidth, | ||
| const TPointFixed & | aOffset | ||
| ) | [pure virtual] |
Set the current glow parameters. Bitmaps are drawn with a glowing border if the glow color is not fully transparent and the glow width is greater than zero.
Implemented in CartoType::C8BitTwinBitmapGraphicsContext, and CartoType::C32BitColorBitmapGraphicsContext.
| virtual TResult CartoType::CLabelGraphicsContext::TestBitmap | ( | const TBitmap & | aBitmap, |
| const TPoint & | aTopLeft, | ||
| bool | aCanOverlapEdge | ||
| ) | [pure virtual] |
Find out whether any of the non-transparent pixels of aBitmap would overlap pixels with a non-zero value and return KErrorOverlap if so, or if aCanOverlapEdge is false and aBitmap is partly outside the drawable area of the GC. If not, return KErrorNone or an error code if some actual error occurred.
Implemented in CartoType::C8BitTwinBitmapGraphicsContext, and CartoType::C32BitColorBitmapGraphicsContext.
| virtual TResult CartoType::CLabelGraphicsContext::TestRectZ | ( | const TRect & | aRect, |
| bool | aCanOverlapEdge, | ||
| uint32 | aZ | ||
| ) | [pure virtual] |
Find out whether any of the pixels of aRect would overlap pixels with a value of aZ or more and return KErrorOverlap if so. If not, return KErrorNone or an error code if some actual error occurred. If aCanOverlapEdge is true the rectangle may overlap the edge of the display.
Implemented in CartoType::C8BitTwinBitmapGraphicsContext, and CartoType::C32BitColorBitmapGraphicsContext.
| virtual TResult CartoType::CLabelGraphicsContext::TestShapeZ | ( | const MPath & | aPath, |
| uint32 | aFlags, | ||
| uint32 | aZ | ||
| ) | [pure virtual] |
Find out whether any of the pixels drawn when drawing aPath would overlap pixels with a value of aZ or more and return KErrorOverlap if so. If not, return KErrorNone or an error code if some actual error occurred.
Implemented in CartoType::C8BitTwinBitmapGraphicsContext, and CartoType::C32BitColorBitmapGraphicsContext.
| virtual TResult CartoType::CLabelGraphicsContext::TestTexture | ( | const CTexture & | aTexture, |
| const TPointFP & | aTopLeft, | ||
| const TTransformFP & | aTransform, | ||
| bool | aCanOverlapEdge | ||
| ) | [pure virtual] |
Find out whether any of the non-transparent pixels of aTexture would overlap pixels with a non-zero value and return KErrorOverlap if so, or if aCanOverlapEdge is false and aBitmap is partly outside the drawable area of the GC. If not, return KErrorNone or an error code if some actual error occurred.
Implemented in CartoType::C8BitTwinBitmapGraphicsContext, and CartoType::C32BitColorBitmapGraphicsContext.
1.7.5.1