Public Member Functions

gnash::RiscosGui Class Reference

#include <riscossup.h>

Inheritance diagram for gnash::RiscosGui:
Inheritance graph
[legend]
Collaboration diagram for gnash::RiscosGui:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 RiscosGui (unsigned long xid, float scale, bool loop, RunResources &r)
virtual ~RiscosGui ()
virtual bool init (int argc, char **argv[])
 Initialise the gui and the associated renderer.
virtual bool createWindow (int width, int height)
virtual bool createWindow (const char *title, int width, int height, int xPosition=0, int yPosition=0)
 Create and display our window.
virtual bool run ()
 Start main rendering loop.
virtual bool createMenu ()
virtual bool setupEvents ()
virtual void renderBuffer ()
virtual void setInterval (unsigned int interval)
 Set main loop delay in milliseconds.
virtual void setTimeout (unsigned int timeout)
 Set the time in milliseconds after which the programme should exit.
virtual void setInvalidatedRegion (const SWFRect &bounds)
 Gives the GUI a *hint* which region of the stage should be redrawn.

Constructor & Destructor Documentation

gnash::RiscosGui::RiscosGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources r 
)

References gnash::key::r, and ~RiscosGui().

gnash::RiscosGui::~RiscosGui (  )  [virtual]

Referenced by RiscosGui().


Member Function Documentation

bool gnash::RiscosGui::createMenu (  )  [virtual]
bool gnash::RiscosGui::createWindow ( int  width,
int  height 
) [virtual]
bool gnash::RiscosGui::createWindow ( const char *  title,
int  width,
int  height,
int  xPosition = 0,
int  yPosition = 0 
) [virtual]

Create and display our window.

Parameters:
title The window title.
width The desired window width in pixels.
height The desired window height in pixels.
xPosition The desired window X position from the top left corner.
yPosition The desired window Y position from the top left corner.

Implements gnash::Gui.

bool gnash::RiscosGui::init ( int  argc,
char **  argv[] 
) [virtual]

Initialise the gui and the associated renderer.

Parameters:
argc The commandline argument count.
argv The commandline arguments.
Returns:
True on success; false on failure.

Implements gnash::Gui.

void gnash::RiscosGui::renderBuffer (  )  [virtual]

Render the current buffer. For OpenGL, this means that the front and back buffers are swapped.

Implements gnash::Gui.

bool gnash::RiscosGui::run (  )  [virtual]

Start main rendering loop.

Implements gnash::Gui.

void gnash::RiscosGui::setInterval ( unsigned int  interval  )  [virtual]

Set main loop delay in milliseconds.

Reimplemented from gnash::Gui.

void gnash::RiscosGui::setInvalidatedRegion ( const SWFRect bounds  )  [virtual]

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.

Reimplemented from gnash::Gui.

References gnash::Gui::_interval.

void gnash::RiscosGui::setTimeout ( unsigned int  timeout  )  [virtual]

Set the time in milliseconds after which the programme should exit.

Implements gnash::Gui.

bool gnash::RiscosGui::setupEvents (  )  [virtual]

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