|
Gnash
0.8.10
|
#include <sdlsup.h>
Public Member Functions | |
| SDLGui (unsigned long xid, float scale, bool loop, RunResources &r) | |
| virtual | ~SDLGui () |
| virtual bool | init (int argc, char **argv[]) |
| / Initialise the gui and the associated renderer. | |
| 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 | disableCoreTrap () |
| virtual void | setTimeout (unsigned int timeout) |
| Set the time in milliseconds after which the programme should exit. | |
| void | key_event (SDL_KeyboardEvent *key, bool down) |
| void | setInvalidatedRegions (const InvalidatedRanges &ranges) |
| gnash::SDLGui::SDLGui | ( | unsigned long | xid, |
| float | scale, | ||
| bool | loop, | ||
| RunResources & | r | ||
| ) |
| gnash::SDLGui::~SDLGui | ( | ) | [virtual] |
| bool gnash::SDLGui::createMenu | ( | ) | [virtual] |
| bool gnash::SDLGui::createWindow | ( | const char * | title, |
| int | width, | ||
| int | height, | ||
| int | xPosition = 0, |
||
| int | yPosition = 0 |
||
| ) | [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.
References gnash::Gui::_height, gnash::Gui::_renderer, gnash::Gui::_runResources, gnash::Gui::_width, gnash::Gui::_xid, height, gnash::RunResources::setRenderer(), and width.
| void gnash::SDLGui::disableCoreTrap | ( | ) | [virtual] |
Referenced by init().
| bool gnash::SDLGui::init | ( | int | argc, |
| char ** | argv[] | ||
| ) | [virtual] |
/ Initialise the gui and the associated renderer.
| argc | The commandline argument count. |
| argv | The commandline arguments. |
Implements gnash::Gui.
References gnash::Gui::_renderer, gnash::Gui::_xid, and disableCoreTrap().
| void gnash::SDLGui::key_event | ( | SDL_KeyboardEvent * | key, |
| bool | down | ||
| ) |
References gnash::key::c, gnash::key::INVALID, and gnash::Gui::notify_key_event().
Referenced by run().
| void gnash::SDLGui::renderBuffer | ( | ) | [virtual] |
Render the current buffer. For OpenGL, this means that the front and back buffers are swapped.
Implements gnash::Gui.
| bool gnash::SDLGui::run | ( | ) | [virtual] |
Start main rendering loop.
Implements gnash::Gui.
References gnash::Gui::_interval, gnash::Gui::advanceMovie(), key_event(), gnash::Gui::notifyMouseClick(), and gnash::Gui::notifyMouseMove().
| void gnash::SDLGui::setInterval | ( | unsigned int | interval | ) | [virtual] |
Set main loop delay in milliseconds.
Reimplemented from gnash::Gui.
References gnash::Gui::_interval.
| void gnash::SDLGui::setInvalidatedRegions | ( | const InvalidatedRanges & | ranges | ) | [virtual] |
Reimplemented from gnash::Gui.
| void gnash::SDLGui::setTimeout | ( | unsigned int | timeout | ) | [virtual] |
Set the time in milliseconds after which the programme should exit.
Implements gnash::Gui.
| bool gnash::SDLGui::setupEvents | ( | ) | [virtual] |
1.7.6.1