Gnash  0.8.11dev
Public Member Functions | Protected Attributes | List of all members
gnash::gui::FBAggGlue Class Reference

#include <fb_glue_agg.h>

Inheritance diagram for gnash::gui::FBAggGlue:
gnash::gui::FBGlue gnash::DeviceGlue

Public Member Functions

 FBAggGlue ()
 
 FBAggGlue (int fd)
 
 ~FBAggGlue ()
 
bool init (int argc, char ***argv)
 Initialise the Framebuffer GUI and the AGG renderer. More...
 
RenderercreateRenderHandler ()
 Create the renderer handler. More...
 
void prepDrawingArea (void *drawing_area)
 Hand off a handle to the native drawing area to the renderer. More...
 
void setInvalidatedRegion (const SWFRect &bounds)
 Gives the GUI a hint which region of the stage should be redrawn. More...
 
void setInvalidatedRegions (const InvalidatedRanges &ranges)
 
int width ()
 The Width of the drawing area, in pixels. For framebuffer based devices, this is the size of the display screen. More...
 
int height ()
 
void render ()
 Render the current buffer. More...
 
void render (void *const )
 
size_t getWidth ()
 
size_t getHeight ()
 
size_t getDepth ()
 
- Public Member Functions inherited from gnash::gui::FBGlue
 FBGlue ()
 
virtual ~FBGlue ()
 
virtual bool init (int argc, char **argv[])=0
 
virtual void setRenderHandlerSize (int, int)
 
virtual void beforeRendering (movie_root *)
 
- Public Member Functions inherited from gnash::DeviceGlue
 DeviceGlue ()
 
 ~DeviceGlue ()
 
boost::shared_array
< renderer::GnashDevice::dtype_t
probeDevices ()
 
void resetDevice ()
 Reset the the current device, which disables output. More...
 
renderer::GnashDevice::dtype_t getDevice ()
 Get the current active device type. More...
 
void setDevice (renderer::GnashDevice::dtype_t dtype)
 
bool initDevice (int argc, char *argv[])
 
bool attachWindow (renderer::GnashDevice::native_window_t window)
 
bool bindClient (renderer::GnashDevice::rtype_t rtype)
 
size_t getWidth ()
 
size_t getHeight ()
 
size_t getDepth ()
 Depth of the display. More...
 
bool swapBuffers ()
 Make the current buffer the active one. More...
 

Protected Attributes

int _fd
 This is the file descriptor for the framebuffer memory. More...
 
struct fb_fix_screeninfo _fixinfo
 
struct fb_var_screeninfo _varinfo
 
boost::scoped_ptr< Renderer_renderer
 
geometry::Range2d< int > _validbounds
 
std::vector< geometry::Range2d
< int > > 
_drawbounds
 
- Protected Attributes inherited from gnash::gui::FBGlue
boost::scoped_ptr< Renderer_renderer
 
- Protected Attributes inherited from gnash::DeviceGlue
boost::scoped_ptr
< renderer::GnashDevice
_device
 

Constructor & Destructor Documentation

gnash::gui::FBAggGlue::FBAggGlue ( )

References _fixinfo, and _varinfo.

gnash::gui::FBAggGlue::FBAggGlue ( int  fd)
gnash::gui::FBAggGlue::~FBAggGlue ( )

References _fd.

Member Function Documentation

Renderer * gnash::gui::FBAggGlue::createRenderHandler ( )
virtual
size_t gnash::gui::FBAggGlue::getDepth ( )
inline
size_t gnash::gui::FBAggGlue::getHeight ( )
inline
size_t gnash::gui::FBAggGlue::getWidth ( )
inline
int gnash::gui::FBAggGlue::height ( )
virtual

Height of the drawing area, in pixels. For framebuffer based devices, this is the size of the display screen.

Implements gnash::gui::FBGlue.

References gnash::DeviceGlue::_device.

Referenced by createRenderHandler(), and gnash::gui::FBGui::init().

bool gnash::gui::FBAggGlue::init ( int  argc,
char ***  argv 
)

Initialise the Framebuffer GUI and the AGG renderer.

Parameters
argcThe commandline argument count.
argvThe commandline arguments.
Returns
True on success; false on failure.

References _, gnash::DeviceGlue::_device, _renderer, _varinfo, createRenderHandler(), gnash::renderer::rawfb::RawFBDevice::getHandle(), and gnash::renderer::rawfb::RawFBDevice::setGrayscaleLUT8().

void gnash::gui::FBAggGlue::prepDrawingArea ( void drawing_area)
virtual

Hand off a handle to the native drawing area to the renderer.

Implements gnash::gui::FBGlue.

void gnash::gui::FBAggGlue::render ( )
virtual

Render the current buffer.

Implements gnash::gui::FBGlue.

References _, __FUNCTION__, gnash::DeviceGlue::_device, and _drawbounds.

void gnash::gui::FBAggGlue::render ( void const)
inlinevirtual

Reimplemented from gnash::gui::FBGlue.

void gnash::gui::FBAggGlue::setInvalidatedRegion ( const SWFRect bounds)

Gives the GUI a hint which region of the stage should be redrawn.

There is no restriction what the GUI might do with these coordinates. Normally the GUI forwards the information to the renderer so that it avoids rendering regions that did not change anyway. The GUI can also alter the bounds before passing them to the renderer and it's absolutely legal for the GUI to simply ignore the call.

Coordinates are in TWIPS!

Note this information is given to the GUI and not directly to the renderer because both of them need to support this feature for correct results. It is up to the GUI to forward this information to the renderer.

References _, and _renderer.

void gnash::gui::FBAggGlue::setInvalidatedRegions ( const InvalidatedRanges ranges)
virtual
int gnash::gui::FBAggGlue::width ( )
virtual

The Width of the drawing area, in pixels. For framebuffer based devices, this is the size of the display screen.

Implements gnash::gui::FBGlue.

References gnash::DeviceGlue::_device.

Referenced by createRenderHandler(), and gnash::gui::FBGui::init().

Member Data Documentation

std::vector< geometry::Range2d<int> > gnash::gui::FBAggGlue::_drawbounds
protected

Referenced by render(), and setInvalidatedRegions().

int gnash::gui::FBAggGlue::_fd
protected

This is the file descriptor for the framebuffer memory.

Referenced by ~FBAggGlue().

struct fb_fix_screeninfo gnash::gui::FBAggGlue::_fixinfo
protected

Referenced by FBAggGlue().

boost::scoped_ptr<Renderer> gnash::gui::FBAggGlue::_renderer
protected
geometry::Range2d<int> gnash::gui::FBAggGlue::_validbounds
protected
struct fb_var_screeninfo gnash::gui::FBAggGlue::_varinfo
protected

Referenced by FBAggGlue(), and init().


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