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 ()
 
std::unique_ptr< 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
 
std::unique_ptr< Renderer_renderer
 
geometry::Range2d< int > _validbounds
 
std::vector< geometry::Range2d< int > > _drawbounds
 
- Protected Attributes inherited from gnash::gui::FBGlue
std::unique_ptr< Renderer_renderer
 
- Protected Attributes inherited from gnash::DeviceGlue
std::unique_ptr< renderer::GnashDevice_device
 

Constructor & Destructor Documentation

§ FBAggGlue() [1/2]

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

§ FBAggGlue() [2/2]

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

§ ~FBAggGlue()

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

References _fd.

Member Function Documentation

§ createRenderHandler()

Renderer * gnash::gui::FBAggGlue::createRenderHandler ( )
virtual

§ getDepth()

size_t gnash::gui::FBAggGlue::getDepth ( )
inline

References gnash::DeviceGlue::_device, and _fd.

§ getHeight()

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

§ getWidth()

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

§ height()

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

§ 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(), gnash::log_error(), and gnash::renderer::rawfb::RawFBDevice::setGrayscaleLUT8().

§ prepDrawingArea()

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.

§ render() [1/2]

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

Render the current buffer.

Implements gnash::gui::FBGlue.

References _, __FUNCTION__, gnash::DeviceGlue::_device, _drawbounds, and gnash::log_error().

§ render() [2/2]

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

Reimplemented from gnash::gui::FBGlue.

§ setInvalidatedRegion()

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 gnash::log_error().

§ setInvalidatedRegions()

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

§ width()

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

§ _drawbounds

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

Referenced by render(), and setInvalidatedRegions().

§ _fd

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

This is the file descriptor for the framebuffer memory.

Referenced by getDepth(), and ~FBAggGlue().

§ _fixinfo

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

§ _renderer

std::unique_ptr<Renderer> gnash::gui::FBAggGlue::_renderer
protected

§ _validbounds

geometry::Range2d<int> gnash::gui::FBAggGlue::_validbounds
protected

§ _varinfo

struct fb_var_screeninfo gnash::gui::FBAggGlue::_varinfo
protected

Referenced by init().


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