Gnash
0.8.10
|
#include <kdesup.h>
Public Member Functions | |
KdeGui (unsigned long xid, float scale, bool loop, RunResources &r) | |
virtual | ~KdeGui () |
virtual bool | init (int argc, char **argv[]) |
/ Initialise the gui and the associated renderer. | |
virtual bool | createWindow (const char *windowtitle, 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 | setTimeout (unsigned int timeout) |
Set the time in milliseconds after which the programme should exit. | |
virtual void | handleKeyEvent (QKeyEvent *event, bool down) |
virtual void | setCursor (gnash_cursor_type newcursor) |
Sets the current mouse cursor for the Gui window. | |
void | setInvalidatedRegions (const InvalidatedRanges &ranges) |
void | resize (int width, int height) |
void | quitUI () |
End main rendering loop calling GUI-specific exit functions. |
gnash::KdeGui::KdeGui | ( | unsigned long | xid, |
float | scale, | ||
bool | loop, | ||
RunResources & | r | ||
) |
gnash::KdeGui::~KdeGui | ( | ) | [virtual] |
bool gnash::KdeGui::createMenu | ( | ) | [virtual] |
bool gnash::KdeGui::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::_renderer, gnash::Gui::_width, width, gnash::Gui::_height, height, gnash::Gui::_runResources, and gnash::RunResources::setRenderer().
void gnash::KdeGui::handleKeyEvent | ( | QKeyEvent * | event, |
bool | down | ||
) | [virtual] |
References gnash::Gui::notify_key_event().
Referenced by gnash::qwidget::keyPressEvent(), and gnash::qwidget::keyReleaseEvent().
bool gnash::KdeGui::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::_xid.
void gnash::KdeGui::quitUI | ( | ) | [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::KdeGui::renderBuffer | ( | ) | [virtual] |
Render the current buffer. For OpenGL, this means that the front and back buffers are swapped.
Implements gnash::Gui.
Referenced by gnash::qwidget::paintEvent().
void gnash::KdeGui::resize | ( | int | width, |
int | height | ||
) |
References gnash::Gui::resize_view().
Referenced by gnash::qwidget::resizeEvent().
bool gnash::KdeGui::run | ( | ) | [virtual] |
Start main rendering loop.
Implements gnash::Gui.
void gnash::KdeGui::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::KdeGui::setInterval | ( | unsigned int | interval | ) | [virtual] |
Set main loop delay in milliseconds.
Reimplemented from gnash::Gui.
void gnash::KdeGui::setInvalidatedRegions | ( | const InvalidatedRanges & | ranges | ) | [virtual] |
Reimplemented from gnash::Gui.
Referenced by gnash::qwidget::paintEvent().
void gnash::KdeGui::setTimeout | ( | unsigned int | timeout | ) | [virtual] |
Set the time in milliseconds after which the programme should exit.
Implements gnash::Gui.
References gnash::Gui::quit().
bool gnash::KdeGui::setupEvents | ( | ) | [virtual] |