Gnash  0.8.11dev
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:
gnash::ref_counted gnash::agg_bitmap_info gnash::renderer::openvg::OpenVGBitmap

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.
- 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

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

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

Referenced by gnash::renderer::openvg::StyleHandler::operator()(), and gnash::AddStyles::operator()().

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(), and test_renderer().


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