Gnash  0.8.11dev
Public Member Functions | List of all members
gnash::CachedBitmap Class Referenceabstract

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

#include <CachedBitmap.h>

Inheritance diagram for gnash::CachedBitmap:
gnash::ref_counted gnash::agg_bitmap_info gnash::renderer::openvg::OpenVGBitmap

Public Member Functions

 CachedBitmap ()
 
virtual ~CachedBitmap ()
 
virtual image::GnashImageimage ()=0
 Return a GnashImage for manipulation. More...
 
virtual void dispose ()=0
 Free the memory associated with this CachedBitmap. More...
 
virtual bool disposed () const =0
 Whether the CachedBitmap has been disposed. More...
 
- Public Member Functions inherited from gnash::ref_counted
 ref_counted ()
 
 ref_counted (const ref_counted &)
 
void add_ref () const
 
void drop_ref () const
 
long get_ref_count () const
 

Additional Inherited Members

- Protected Member Functions inherited from gnash::ref_counted
virtual ~ref_counted ()
 

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

§ CachedBitmap()

gnash::CachedBitmap::CachedBitmap ( )
inline

§ ~CachedBitmap()

virtual gnash::CachedBitmap::~CachedBitmap ( )
inlinevirtual

Member Function Documentation

§ dispose()

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::renderer::openvg::OpenVGBitmap, and gnash::agg_bitmap_info.

§ disposed()

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, and gnash::renderer::openvg::OpenVGBitmap.

Referenced by gnash::renderer::openvg::StyleHandler::operator()().

§ image()

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::renderer::openvg::OpenVGBitmap, and gnash::agg_bitmap_info.

Referenced by gnash::renderer::openvg::OpenVGBitmap::applyPatternBitmap(), gnash::renderer::openvg::OpenVGBitmap::OpenVGBitmap(), gnash::registerBitmapDataNative(), and test_renderer().


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