Gnash
0.8.10
|
#include <haikusup.h>
Public Member Functions | |
HaikuGui (unsigned long xid, float scale, bool loop, RunResources &r) | |
virtual | ~HaikuGui () |
virtual bool | init (int argc, char **argv[]) |
/ Initialise the gui and the associated renderer. | |
void | init_dumpfile () |
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 | createMenuBar () |
virtual bool | setupEvents () |
virtual void | setFullscreen () |
virtual void | unsetFullscreen () |
virtual void | setFullscreenEtc () |
virtual void | unsetFullscreenEtc () |
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 | error (const std::string &msg) |
Handle error message from the core. | |
virtual bool | yesno (const std::string &question) |
Prompt user with a question she can answer with yes/no. | |
void | GnashPulse () |
unsigned int | getInterval () |
virtual void | resize_view (int width, int height) |
Resize the client area view and the window accordingly. | |
void | Shown () |
void | Hidden () |
void | setInvalidatedRegions (const InvalidatedRanges &ranges) |
gnash::HaikuGui::HaikuGui | ( | unsigned long | xid, |
float | scale, | ||
bool | loop, | ||
RunResources & | r | ||
) |
References QQ.
gnash::HaikuGui::~HaikuGui | ( | ) | [virtual] |
References GNASH_REPORT_FUNCTION.
bool gnash::HaikuGui::createMenu | ( | ) | [virtual] |
References GNASH_REPORT_FUNCTION.
bool gnash::HaikuGui::createMenuBar | ( | ) | [virtual] |
References GNASH_REPORT_FUNCTION.
bool gnash::HaikuGui::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_REPORT_FUNCTION, gnash::Gui::_width, width, gnash::Gui::_height, height, gnash::Gui::_xid, gnash::key::b, gnash::Gui::_runResources, gnash::RunResources::setRenderer(), and gnash::Gui::_renderer.
void gnash::HaikuGui::error | ( | const std::string & | ) | [virtual] |
Handle error message from the core.
msg | The error message recieved |
Reimplemented from gnash::Gui.
unsigned int gnash::HaikuGui::getInterval | ( | ) |
References gnash::Gui::_interval.
void gnash::HaikuGui::GnashPulse | ( | ) |
References gnash::Gui::advance_movie().
void gnash::HaikuGui::Hidden | ( | ) |
bool gnash::HaikuGui::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 QQ, GNASH_REPORT_FUNCTION, gnash::key::c, optind, getopt(), optarg, _, and gnash::Gui::_renderer.
void gnash::HaikuGui::init_dumpfile | ( | ) |
void gnash::HaikuGui::renderBuffer | ( | ) | [virtual] |
Render the current buffer. For OpenGL, this means that the front and back buffers are swapped.
Implements gnash::Gui.
void gnash::HaikuGui::resize_view | ( | int | width, |
int | height | ||
) | [virtual] |
Resize the client area view and the window accordingly.
width | The desired width in pixels. |
height | The desired height in pixels. |
Reimplemented from gnash::Gui.
bool gnash::HaikuGui::run | ( | ) | [virtual] |
void gnash::HaikuGui::setFullscreen | ( | ) | [virtual] |
Attempt to run in a fullscreen window both for plugin and standalone player. Use isFullscreen() to see if gnash thinks it's running in fullscreen or not. The switch to fullscreen may fail if, for instance, the window manager refuses to allow it, but the flag will be set anyway.
Reimplemented from gnash::Gui.
References gnash::key::m, and gnash::GNASH_SET_FULLSCREEN.
void gnash::HaikuGui::setFullscreenEtc | ( | ) | [virtual] |
References gnash::Gui::_xid, gnash::key::b, gnash::Gui::_width, and gnash::Gui::_height.
void gnash::HaikuGui::setInterval | ( | unsigned int | interval | ) | [virtual] |
Set main loop delay in milliseconds.
Reimplemented from gnash::Gui.
References gnash::Gui::_interval.
void gnash::HaikuGui::setInvalidatedRegions | ( | const InvalidatedRanges & | ranges | ) | [virtual] |
Reimplemented from gnash::Gui.
void gnash::HaikuGui::setTimeout | ( | unsigned int | timeout | ) | [virtual] |
Set the time in milliseconds after which the programme should exit.
Implements gnash::Gui.
bool gnash::HaikuGui::setupEvents | ( | ) | [virtual] |
References GNASH_REPORT_FUNCTION.
void gnash::HaikuGui::Shown | ( | ) |
void gnash::HaikuGui::unsetFullscreen | ( | ) | [virtual] |
Return from fullscreen to normal mode.
Reimplemented from gnash::Gui.
References gnash::key::m, and gnash::GNASH_UNSET_FULLSCREEN.
void gnash::HaikuGui::unsetFullscreenEtc | ( | ) | [virtual] |
References gnash::Gui::_xid.
bool gnash::HaikuGui::yesno | ( | const std::string & | question | ) | [virtual] |
Prompt user with a question she can answer with yes/no.
question | The question to ask user |
The default implementation always returns true.
Reimplemented from gnash::Gui.