|
CartoType API
|
Public Member Functions | |
| CBitmapGraphicsContext (CEngine &aEngine, const TRect &aBounds, CBitmap *aBitmap) | |
| TBitmap * | Bitmap () |
| CT_IMPORT TBitmap * | PushBitmap (TResult &aError) |
| CT_IMPORT TResult | PopBitmap (TBitmap *aSavedBitmap) |
| CT_IMPORT TBitmap * | DeleteButKeepBitmap (CGraphicsContext *&aGc) |
| void | DeleteBitmap () |
| void | SetBitmap (TBitmap *aBitmap) |
Protected Attributes | |
| TBitmap * | iBitmap |
| TBitmap* CartoType::CBitmapGraphicsContext::Bitmap | ( | ) | [inline, virtual] |
Return the bitmap drawn to by the graphics context, if any. If the graphics context does not draw to a bitmap return NULL. The default implementation returns null.
Reimplemented from CartoType::CGraphicsContext.
| void CartoType::CBitmapGraphicsContext::DeleteBitmap | ( | ) | [inline] |
Delete the bitmap so that it can be replaced by an arbitrary one: dangerous.
| CT_EXPORT TBitmap * CBitmapGraphicsContext::DeleteButKeepBitmap | ( | CGraphicsContext *& | aGc | ) | [virtual] |
Delete the graphics context, setting the pointer aGc to null, but preserve and return its bitmap.
Reimplemented from CartoType::CGraphicsContext.
Draw the current bitmap on top of aBitmap before deleting it and restoring aBitmap as the current bitmap. If successful, the function consumes aBitmap.
Reimplemented from CartoType::CGraphicsContext.
Replace the current bitmap with a new one of the same type and size, returning the original one. The base implementation does nothing.
Reimplemented from CartoType::CGraphicsContext.
| void CartoType::CBitmapGraphicsContext::SetBitmap | ( | TBitmap * | aBitmap | ) | [inline] |
Replace the bitmap with an arbitrary one: dangerous.
TBitmap* CartoType::CBitmapGraphicsContext::iBitmap [protected] |
If non-null, the bitmap owned by the graphics context.
1.7.5.1