|
CartoType API
|
#include <cartotype_map.h>
Public Member Functions | |
| TTestZGraphicsContext (CEngine &aEngine, int32 aWidth, int32 aHeight, CLabelGraphicsContext &aGc) | |
| void | Sync () |
| TResult | DrawBitmap (const TBitmap &, const TPoint &) |
| TResult | DrawRect (const TRect &aRect) |
| TResult | DrawShape (const MPath &aPath, uint32 aFlags) |
| void | Clear () |
| void | Set (int32 aZ, bool aDraw) |
This special-purpose graphics context allows drawing to be allowed or forbidden according to whether an object overlaps an object with a higher Z-level.
| void CartoType::TTestZGraphicsContext::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::TTestZGraphicsContext::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::TTestZGraphicsContext::DrawShape | ( | const MPath & | aPath, |
| uint32 | aFlags | ||
| ) | [inline, virtual] |
Draw a filled shape in the current color.
Implements CartoType::CGraphicsContext.
| void CartoType::TTestZGraphicsContext::Sync | ( | ) | [inline, virtual] |
Synchronize the private graphics state to take account of any changes in iChangeFlags.
Implements CartoType::CGraphicsContext.
1.7.5.1