Gnash  0.8.10
Public Member Functions
gnash::NullGui Class Reference

Null GUI, used when rendering is disabled. More...

#include <NullGui.h>

Inheritance diagram for gnash::NullGui:
gnash::Gui

List of all members.

Public Member Functions

 NullGui (bool do_loop, RunResources &r)
 ~NullGui ()
void setInterval (unsigned int interval)
 Set main loop delay in milliseconds.
void setTimeout (unsigned int to)
 Set the time in milliseconds after which the programme should exit.
bool init (int, char ***)
bool createWindow (const char *, int, int, int, int)
 Create and display our window.
bool run ()
 Start main rendering loop.
bool createMenu ()
bool setupEvents ()
void renderBuffer ()
void quitUI ()
 End main rendering loop calling GUI-specific exit functions.

Detailed Description

Null GUI, used when rendering is disabled.


Constructor & Destructor Documentation

gnash::NullGui::NullGui ( bool  do_loop,
RunResources r 
) [inline]
gnash::NullGui::~NullGui ( ) [inline]

Member Function Documentation

bool gnash::NullGui::createMenu ( ) [inline]
bool gnash::NullGui::createWindow ( const char *  title,
int  width,
int  height,
int  xPosition,
int  yPosition 
) [inline, 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.

bool gnash::NullGui::init ( int  ,
char ***   
) [inline]
void gnash::NullGui::quitUI ( ) [inline, virtual]

End main rendering loop calling GUI-specific exit functions.

Do not call this directly. Call quit() instead. The default implementation calls exit(EXIT_SUCCESS), which isn't nice. Please implement the proper main loop quitter in the subclasses.

Reimplemented from gnash::Gui.

void gnash::NullGui::renderBuffer ( ) [inline, virtual]

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

Implements gnash::Gui.

bool gnash::NullGui::run ( ) [virtual]
void gnash::NullGui::setInterval ( unsigned int  interval) [inline, virtual]

Set main loop delay in milliseconds.

Reimplemented from gnash::Gui.

References gnash::Gui::_interval.

void gnash::NullGui::setTimeout ( unsigned int  timeout) [inline, virtual]

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

Implements gnash::Gui.

bool gnash::NullGui::setupEvents ( ) [inline]

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