Gnash  0.8.10
Public Member Functions
gnash::AquaGui Class Reference

#include <aquasup.h>

Inheritance diagram for gnash::AquaGui:
gnash::Gui

List of all members.

Public Member Functions

 AquaGui (unsigned long xid, float scale, bool loop, RunResources &r)
virtual ~AquaGui ()
virtual bool init (int argc, char **argv[])
 / Initialise the gui and the associated renderer.
virtual void setCursor (gnash_cursor_type newcursor)
 Sets the current mouse cursor for the Gui window.
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 setTimeout (unsigned int timeout)
 Set the time in milliseconds after which the programme should exit.

Constructor & Destructor Documentation

gnash::AquaGui::AquaGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources r 
)
gnash::AquaGui::~AquaGui ( ) [virtual]

Member Function Documentation

bool gnash::AquaGui::createMenu ( ) [virtual]

Referenced by createWindow().

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

Create and display our window.

Parameters:
titleThe window title.
widthThe desired window width in pixels.
heightThe desired window height in pixels.
xPositionThe desired window X position from the top left corner.
yPositionThe desired window Y position from the top left corner.

Implements gnash::Gui.

References gnash::Gui::_width, width, gnash::Gui::_height, height, gnash::myWindow, createMenu(), gnash::DoWindowClose(), and assert.

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

/ Initialise the gui and the associated renderer.

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

Implements gnash::Gui.

References gnash::Gui::_renderer, gnash::Gui::_runResources, and gnash::RunResources::setRenderer().

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

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

Implements gnash::Gui.

References gnash::myWindow.

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

Start main rendering loop.

Implements gnash::Gui.

References gnash::Gui::_interval, gnash::DoAdvanceMovie(), and gnash::myWindow.

void gnash::AquaGui::setCursor ( gnash_cursor_type  newcursor) [virtual]

Sets the current mouse cursor for the Gui window.

Reimplemented from gnash::Gui.

References gnash::CURSOR_HAND, and gnash::CURSOR_INPUT.

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

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

Implements gnash::Gui.

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

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