Gnash  0.8.10
Public Member Functions | Protected Attributes
gnash::gui::FBAggGlue Class Reference

#include <fb_glue_agg.h>

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

List of all members.

Public Member Functions

 FBAggGlue ()
 FBAggGlue (int fd)
 ~FBAggGlue ()
bool init (int argc, char ***argv)
 Initialise the Framebuffer GUI and the AGG renderer.
RenderercreateRenderHandler ()
 Create the renderer handler.
void prepDrawingArea (void *drawing_area)
 Hand off a handle to the native drawing area to the renderer.
void setInvalidatedRegion (const SWFRect &bounds)
 Gives the GUI a *hint* which region of the stage should be redrawn.
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.
int height ()
void render ()
 Render the current buffer.
void render (void *const )
size_t getWidth ()
size_t getHeight ()
size_t getDepth ()
 Depth of the display.

Protected Attributes

int _fd
 This is the file descriptor for the framebuffer memory.
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

Constructor & Destructor Documentation

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

References _varinfo, and _fixinfo.

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]

Depth of the display.

Reimplemented from gnash::DeviceGlue.

References gnash::DeviceGlue::_device.

size_t gnash::gui::FBAggGlue::getHeight ( ) [inline]

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

Reimplemented from gnash::DeviceGlue.

References gnash::DeviceGlue::_device.

size_t gnash::gui::FBAggGlue::getWidth ( ) [inline]

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

Reimplemented from gnash::DeviceGlue.

References gnash::DeviceGlue::_device.

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 gnash::gui::FBGui::init(), and createRenderHandler().

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, gnash::renderer::rawfb::RawFBDevice::getHandle(), createRenderHandler(), _renderer, _, _varinfo, 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 _drawbounds, _, __FUNCTION__, and gnash::DeviceGlue::_device.

void gnash::gui::FBAggGlue::render ( void *  const) [inline, virtual]

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 _renderer, and _.

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 gnash::gui::FBGui::init(), and createRenderHandler().


Member Data Documentation

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

Referenced by setInvalidatedRegions(), and render().

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]
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: