#include <fb_glue_agg.h>
Public Member Functions | |
FBAggGlue () | |
FBAggGlue (int fd) | |
~FBAggGlue () | |
bool | init (int argc, char ***argv) |
Initialise the Framebuffer GUI and the AGG renderer. | |
Renderer * | createRenderHandler () |
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 |
gnash::gui::FBAggGlue::FBAggGlue | ( | ) |
gnash::gui::FBAggGlue::FBAggGlue | ( | int | fd | ) |
gnash::gui::FBAggGlue::~FBAggGlue | ( | ) |
Renderer * gnash::gui::FBAggGlue::createRenderHandler | ( | ) | [virtual] |
Create the renderer handler.
Implements gnash::gui::FBGlue.
size_t gnash::gui::FBAggGlue::getDepth | ( | ) | [inline] |
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.
bool gnash::gui::FBAggGlue::init | ( | int | argc, | |
char *** | argv | |||
) |
Initialise the Framebuffer GUI and the AGG renderer.
argc | The commandline argument count. | |
argv | The commandline arguments. |
void gnash::gui::FBAggGlue::prepDrawingArea | ( | void * | drawing_area | ) |
Hand off a handle to the native drawing area to the renderer.
void gnash::gui::FBAggGlue::render | ( | ) | [virtual] |
Render the current buffer.
Implements gnash::gui::FBGlue.
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 _fd.
void gnash::gui::FBAggGlue::setInvalidatedRegions | ( | const InvalidatedRanges & | ranges | ) | [virtual] |
Reimplemented from gnash::gui::FBGlue.
References _.
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.
std::vector< geometry::Range2d<int> > gnash::gui::FBAggGlue::_drawbounds [protected] |
int gnash::gui::FBAggGlue::_fd [protected] |
This is the file descriptor for the framebuffer memory.
Referenced by setInvalidatedRegion().
struct fb_fix_screeninfo gnash::gui::FBAggGlue::_fixinfo [protected] |
boost::scoped_ptr<Renderer> gnash::gui::FBAggGlue::_renderer [protected] |
Reimplemented from gnash::gui::FBGlue.
geometry::Range2d<int> gnash::gui::FBAggGlue::_validbounds [protected] |
struct fb_var_screeninfo gnash::gui::FBAggGlue::_varinfo [protected] |