Gnash
0.8.10
|
Null GUI, used when rendering is disabled. More...
#include <NullGui.h>
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. |
Null GUI, used when rendering is disabled.
gnash::NullGui::NullGui | ( | bool | do_loop, |
RunResources & | r | ||
) | [inline] |
gnash::NullGui::~NullGui | ( | ) | [inline] |
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.
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::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] |
Start main rendering loop.
Implements gnash::Gui.
References gnash::SystemClock::elapsed(), gnash::Gui::advanceMovie(), gnash::Gui::_interval, and gnash::gnashSleep().
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] |