|
CartoType API
|
#include <cartotype_graphics.h>
Public Member Functions | |
| void | Sync () |
| TResult | DrawBitmap (const TBitmap &aBitmap, const TPoint &aTopLeft) |
| TResult | DrawRect (const TRect &aRect) |
| TResult | DrawShape (const MPath &aPath, uint32 aFlags) |
| void | Clear () |
| CT_IMPORT TResult | TestBitmap (const TBitmap &aBitmap, const TPoint &aTopLeft, bool aCanOverlapEdge) |
| TResult | TestTexture (const CTexture &, const TPointFP &, const TTransformFP &, bool) |
| CT_IMPORT TResult | TestRectZ (const TRect &aRect, bool aCanOverlapEdge, uint32 aZ) |
| CT_IMPORT TResult | TestShapeZ (const MPath &aOutline, uint32 aFlags, uint32 aZ) |
| CT_IMPORT TResult | DrawRectZ (const TRect &aRect, uint32 aZ) |
| CT_IMPORT TResult | DrawShapeZ (const MPath &aPath, uint32 aFlags, uint32 aZ) |
| CT_IMPORT void | SetGlow (TColor aColor, TFixed aWidth, const TPointFixed &aOffset) |
| const MPalette * | BitmapPalette () |
Static Public Member Functions | |
|
static CT_IMPORT C8BitTwinBitmapGraphicsContext * | New (TResult &aError, CEngine &aEngine, int32 aWidth, int32 aHeight) |
An 8-bit twin-purpose (4bpp intensity plus 4bpp color index) bitmap graphics context. This graphics context does not support alpha blending or paint servers.
| const MPalette* CartoType::C8BitTwinBitmapGraphicsContext::BitmapPalette | ( | ) | [inline, virtual] |
Return a pointer to the palette associated with the bitmap owned by the graphics context. If the bitmap has no palette return null.
Implements CartoType::CLabelGraphicsContext.
| void C8BitTwinBitmapGraphicsContext::Clear | ( | ) | [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 C8BitTwinBitmapGraphicsContext::DrawBitmap | ( | const TBitmap & | aBitmap, |
| const TPoint & | aTopLeft | ||
| ) | [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.
| CT_EXPORT TResult C8BitTwinBitmapGraphicsContext::DrawRectZ | ( | const TRect & | aRect, |
| uint32 | aZ | ||
| ) | [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.
Implements CartoType::CLabelGraphicsContext.
Draw a filled shape in the current color.
Implements CartoType::CGraphicsContext.
| CT_EXPORT TResult C8BitTwinBitmapGraphicsContext::DrawShapeZ | ( | const MPath & | aPath, |
| uint32 | aFlags, | ||
| uint32 | aZ | ||
| ) | [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.
Implements CartoType::CLabelGraphicsContext.
| CT_EXPORT void C8BitTwinBitmapGraphicsContext::SetGlow | ( | TColor | aColor, |
| TFixed | aWidth, | ||
| const TPointFixed & | aOffset | ||
| ) | [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.
Implements CartoType::CLabelGraphicsContext.
| void C8BitTwinBitmapGraphicsContext::Sync | ( | ) | [virtual] |
Synchronize the private graphics state to take account of any changes in iChangeFlags.
Implements CartoType::CGraphicsContext.
| CT_EXPORT TResult C8BitTwinBitmapGraphicsContext::TestBitmap | ( | const TBitmap & | aBitmap, |
| const TPoint & | aTopLeft, | ||
| bool | aCanOverlapEdge | ||
| ) | [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 aBitmap is partly outside the drawable area of the GC. If not, return KErrorNone or an error code if some actual error occurred.
Implements CartoType::CLabelGraphicsContext.
| CT_EXPORT TResult C8BitTwinBitmapGraphicsContext::TestRectZ | ( | const TRect & | aRect, |
| bool | aCanOverlapEdge, | ||
| uint32 | aZ | ||
| ) | [virtual] |
Find out whether any of the pixels of aRect would overlap pixels with a value greater gthan or equal to aZ 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.
Implements CartoType::CLabelGraphicsContext.
| TResult C8BitTwinBitmapGraphicsContext::TestShapeZ | ( | const MPath & | aPath, |
| uint32 | aFlags, | ||
| uint32 | aZ | ||
| ) | [virtual] |
Find out whether any of the pixels drawn when drawing aPath would overlap pixels with a value of aZ or less and return KErrorOverlap if so. If not, return KErrorNone or an error code if some actual error occurred.
Implements CartoType::CLabelGraphicsContext.
| TResult CartoType::C8BitTwinBitmapGraphicsContext::TestTexture | ( | const CTexture & | aTexture, |
| const TPointFP & | aTopLeft, | ||
| const TTransformFP & | aTransform, | ||
| bool | aCanOverlapEdge | ||
| ) | [inline, 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.
Implements CartoType::CLabelGraphicsContext.
1.7.5.1