CartoType API
Public Member Functions | Protected Attributes
CartoType::CBitmapGraphicsContext Class Reference
Inheritance diagram for CartoType::CBitmapGraphicsContext:
CartoType::CGraphicsContext CartoType::C16BitColorBitmapGraphicsContext CartoType::C24BitColorBitmapGraphicsContext CartoType::C8BitMonoBitmapGraphicsContext CartoType::CLabelGraphicsContext CartoType::C32BitColorBitmapGraphicsContext CartoType::C8BitTwinBitmapGraphicsContext

List of all members.

Public Member Functions

 CBitmapGraphicsContext (CEngine &aEngine, const TRect &aBounds, CBitmap *aBitmap)
TBitmapBitmap ()
CT_IMPORT TBitmapPushBitmap (TResult &aError)
CT_IMPORT TResult PopBitmap (TBitmap *aSavedBitmap)
CT_IMPORT TBitmapDeleteButKeepBitmap (CGraphicsContext *&aGc)
void DeleteBitmap ()
void SetBitmap (TBitmap *aBitmap)

Protected Attributes

TBitmapiBitmap

Member Function Documentation

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.

CT_EXPORT TResult CBitmapGraphicsContext::PopBitmap ( TBitmap aBitmap) [virtual]

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.

CT_EXPORT TBitmap * CBitmapGraphicsContext::PushBitmap ( TResult aError) [virtual]

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.


Member Data Documentation

If non-null, the bitmap owned by the graphics context.


The documentation for this class was generated from the following files: