#include <Kde4Gui.h>
Public Member Functions | |
Kde4Gui (unsigned long xid, float scale, bool loop, RunResources &r) | |
virtual | ~Kde4Gui () |
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 void | resizeWindow (int width, int height) |
virtual bool | run () |
Start main rendering loop. | |
virtual bool | watchFD (int fd) |
Watch a file descriptor. | |
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. | |
virtual void | setFullscreen () |
virtual bool | showMouse (bool show) |
Sets whether the gui should show the system mouse pointer. | |
virtual void | unsetFullscreen () |
void | setInvalidatedRegions (const InvalidatedRanges &ranges) |
void | resize (int width, int height) |
void | showProperties () |
void | showPreferences () |
void | quitUI () |
End main rendering loop calling GUI-specific exit functions. | |
bool | want_multiple_regions () |
void | renderWidget (const QRect &updateRect) |
void | popupMenu (const QPoint &point) |
Kde4Gui (unsigned long xid, float scale, bool loop, RunResources &r) | |
virtual | ~Kde4Gui () |
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 void | resizeWindow (int width, int height) |
virtual bool | run () |
Start main rendering loop. | |
virtual bool | watchFD (int fd) |
Watch a file descriptor. | |
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. | |
virtual void | setFullscreen () |
virtual bool | showMouse (bool show) |
Sets whether the gui should show the system mouse pointer. | |
virtual void | unsetFullscreen () |
void | setInvalidatedRegions (const InvalidatedRanges &ranges) |
void | resize (int width, int height) |
void | showProperties () |
void | showPreferences () |
void | quitUI () |
End main rendering loop calling GUI-specific exit functions. | |
bool | want_multiple_regions () |
void | renderWidget (const QRect &updateRect) |
void | popupMenu (const QPoint &point) |
gnash::Kde4Gui::Kde4Gui | ( | unsigned long | xid, | |
float | scale, | |||
bool | loop, | |||
RunResources & | r | |||
) |
gnash::Kde4Gui::~Kde4Gui | ( | ) | [virtual] |
gnash::Kde4Gui::Kde4Gui | ( | unsigned long | xid, | |
float | scale, | |||
bool | loop, | |||
RunResources & | r | |||
) |
virtual gnash::Kde4Gui::~Kde4Gui | ( | ) | [virtual] |
bool gnash::Kde4Gui::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::_validbounds, gnash::Gui::_width, gnash::Gui::_xid, gnash::RunResources::setRenderer(), and gnash::geometry::Range2d< T >::setTo().
virtual bool gnash::Kde4Gui::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.
void gnash::Kde4Gui::handleKeyEvent | ( | QKeyEvent * | event, | |
bool | down | |||
) | [virtual] |
References s2x::c, and gnash::Gui::notify_key_event().
virtual void gnash::Kde4Gui::handleKeyEvent | ( | QKeyEvent * | event, | |
bool | down | |||
) | [virtual] |
bool gnash::Kde4Gui::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::_runResources, gnash::Gui::_xid, gnash::EmbedWidget::drawingWidget(), gnash::RcInitFile::getDefaultInstance(), gnash::RunResources::getRenderBackend(), gnash::RcInitFile::getRenderer(), gnash::key::i, and gnash::key::r.
virtual bool gnash::Kde4Gui::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.
void gnash::Kde4Gui::popupMenu | ( | const QPoint & | point | ) |
void gnash::Kde4Gui::popupMenu | ( | const QPoint & | point | ) |
void gnash::Kde4Gui::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::Kde4Gui::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.
virtual void gnash::Kde4Gui::renderBuffer | ( | ) | [virtual] |
Render the current buffer. For OpenGL, this means that the front and back buffers are swapped.
Implements gnash::Gui.
void gnash::Kde4Gui::renderBuffer | ( | ) | [virtual] |
Render the current buffer. For OpenGL, this means that the front and back buffers are swapped.
Implements gnash::Gui.
References gnash::key::e, and gnash::key::i.
void gnash::Kde4Gui::renderWidget | ( | const QRect & | updateRect | ) |
void gnash::Kde4Gui::renderWidget | ( | const QRect & | updateRect | ) |
void gnash::Kde4Gui::resize | ( | int | width, | |
int | height | |||
) |
void gnash::Kde4Gui::resize | ( | int | width, | |
int | height | |||
) |
References gnash::Gui::resize_view().
virtual void gnash::Kde4Gui::resizeWindow | ( | int | width, | |
int | height | |||
) | [virtual] |
Reimplemented from gnash::Gui.
void gnash::Kde4Gui::resizeWindow | ( | int | width, | |
int | height | |||
) | [virtual] |
Reimplemented from gnash::Gui.
References gnash::Gui::_height, and gnash::Gui::_width.
bool gnash::Kde4Gui::run | ( | ) | [virtual] |
Start main rendering loop.
Implements gnash::Gui.
virtual bool gnash::Kde4Gui::run | ( | ) | [virtual] |
Start main rendering loop.
Implements gnash::Gui.
void gnash::Kde4Gui::setCursor | ( | gnash_cursor_type | newcursor | ) | [virtual] |
Sets the current mouse cursor for the Gui window.
Reimplemented from gnash::Gui.
References gnash::Gui::_mouseShown, gnash::CURSOR_HAND, and gnash::CURSOR_INPUT.
virtual void gnash::Kde4Gui::setCursor | ( | gnash_cursor_type | newcursor | ) | [virtual] |
Sets the current mouse cursor for the Gui window.
Reimplemented from gnash::Gui.
virtual void gnash::Kde4Gui::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.
void gnash::Kde4Gui::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::Gui::_fullscreen.
virtual void gnash::Kde4Gui::setInterval | ( | unsigned int | interval | ) | [virtual] |
Set main loop delay in milliseconds.
Reimplemented from gnash::Gui.
void gnash::Kde4Gui::setInterval | ( | unsigned int | interval | ) | [virtual] |
Set main loop delay in milliseconds.
Reimplemented from gnash::Gui.
void gnash::Kde4Gui::setInvalidatedRegions | ( | const InvalidatedRanges & | ranges | ) | [virtual] |
Reimplemented from gnash::Gui.
void gnash::Kde4Gui::setInvalidatedRegions | ( | const InvalidatedRanges & | ranges | ) | [virtual] |
Reimplemented from gnash::Gui.
References gnash::Gui::_renderer, gnash::Gui::_validbounds, gnash::key::e, gnash::geometry::SnappingRanges2d< T >::getRange(), gnash::key::i, gnash::geometry::Intersection(), gnash::geometry::Range2d< T >::isFinite(), gnash::geometry::Range2d< T >::isNull(), and gnash::geometry::SnappingRanges2d< T >::size().
void gnash::Kde4Gui::setTimeout | ( | unsigned int | timeout | ) | [virtual] |
Set the time in milliseconds after which the programme should exit.
Implements gnash::Gui.
References gnash::Gui::quit().
virtual void gnash::Kde4Gui::setTimeout | ( | unsigned int | timeout | ) | [virtual] |
Set the time in milliseconds after which the programme should exit.
Implements gnash::Gui.
virtual bool gnash::Kde4Gui::showMouse | ( | bool | show | ) | [virtual] |
Sets whether the gui should show the system mouse pointer.
show | true if the mouse should be shown. |
Reimplemented from gnash::Gui.
bool gnash::Kde4Gui::showMouse | ( | bool | show | ) | [virtual] |
Sets whether the gui should show the system mouse pointer.
show | true if the mouse should be shown. |
Reimplemented from gnash::Gui.
References gnash::Gui::_mouseShown.
void gnash::Kde4Gui::showPreferences | ( | ) |
void gnash::Kde4Gui::showPreferences | ( | ) |
void gnash::Kde4Gui::showProperties | ( | ) |
void gnash::Kde4Gui::showProperties | ( | ) |
References _q, ogl::close(), gnash::key::e, gnash::key::i, info, gnash::key::j, and gnash::key::p.
virtual void gnash::Kde4Gui::unsetFullscreen | ( | ) | [virtual] |
Return from fullscreen to normal mode.
Reimplemented from gnash::Gui.
void gnash::Kde4Gui::unsetFullscreen | ( | ) | [virtual] |
Return from fullscreen to normal mode.
Reimplemented from gnash::Gui.
References gnash::Gui::_fullscreen, and gnash::Gui::_xid.
bool gnash::Kde4Gui::want_multiple_regions | ( | ) | [inline, virtual] |
Reimplemented from gnash::Gui.
bool gnash::Kde4Gui::want_multiple_regions | ( | ) | [inline, virtual] |
Reimplemented from gnash::Gui.
virtual bool gnash::Kde4Gui::watchFD | ( | int | ) | [virtual] |
Watch a file descriptor.
An implementing Gui should monitor the file descriptor in its main loop. When the file descriptor is triggered, the implementation should call callCallback().
fd | The file descriptor to be watched |
Reimplemented from gnash::Gui.
bool gnash::Kde4Gui::watchFD | ( | int | ) | [virtual] |
Watch a file descriptor.
An implementing Gui should monitor the file descriptor in its main loop. When the file descriptor is triggered, the implementation should call callCallback().
fd | The file descriptor to be watched |
Reimplemented from gnash::Gui.
References gnash::FDMonitor::addFD().