Public Member Functions

gnash::CachedBitmap Class Reference

A CachedBitmap is created by the renderer in a format of its choosing. More...

#include <CachedBitmap.h>

Inheritance diagram for gnash::CachedBitmap:
Inheritance graph
[legend]
Collaboration diagram for gnash::CachedBitmap:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CachedBitmap ()
virtual ~CachedBitmap ()
virtual image::GnashImageimage ()=0
 Return a GnashImage for manipulation.
virtual void dispose ()=0
 Free the memory associated with this CachedBitmap.
virtual bool disposed () const =0
 Whether the CachedBitmap has been disposed.

Detailed Description

A CachedBitmap is created by the renderer in a format of its choosing.

CachedBitmaps are generally left alone by libcore, but the BitmapData API provides a way of manipulating bitmaps. For this reason an image() function is required, which must return a GnashImage for manipulation.


Constructor & Destructor Documentation

gnash::CachedBitmap::CachedBitmap (  )  [inline]
virtual gnash::CachedBitmap::~CachedBitmap (  )  [inline, virtual]

Member Function Documentation

virtual void gnash::CachedBitmap::dispose (  )  [pure virtual]

Free the memory associated with this CachedBitmap.

This allows ActionScript a little bit of control over memory.

Implemented in gnash::agg_bitmap_info.

virtual bool gnash::CachedBitmap::disposed (  )  const [pure virtual]

Whether the CachedBitmap has been disposed.

A disposed CachedBitmap has no data and should not be rendered.

Implemented in gnash::agg_bitmap_info.

virtual image::GnashImage& gnash::CachedBitmap::image (  )  [pure virtual]

Return a GnashImage for manipulation.

The changes to the data must be cached before the next rendering.

Implemented in gnash::agg_bitmap_info.


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