|
Gnash
0.8.10
|
#include <fltksup.h>
Public Member Functions | |
| FltkGui (unsigned long xid, float scale, bool loop, RunResources &r) | |
| virtual | ~FltkGui () |
| virtual bool | init (int argc, char **argv[]) |
| / Initialise the gui and the associated renderer. | |
| virtual void | setInterval (unsigned int) |
| Set main loop delay in milliseconds. | |
| virtual void | setTimeout (unsigned int) |
| Set the time in milliseconds after which the programme should exit. | |
| virtual bool | createWindow (const char *title, int width, int height, int xPosition=0, int yPosition=0) |
| Create and display our window. | |
| virtual void | renderBuffer () |
| virtual bool | run () |
| Start main rendering loop. | |
| virtual bool | createMenu () |
| virtual void | setCursor (gnash_cursor_type newcursor) |
| Sets the current mouse cursor for the Gui window. | |
| virtual bool | setupEvents () |
| void | setInvalidatedRegions (const InvalidatedRanges &ranges) |
| void | create () |
| int | handle (int event) |
| void | layout () |
| void | addMenuItems () |
| gnash::FltkGui::FltkGui | ( | unsigned long | xid, |
| float | scale, | ||
| bool | loop, | ||
| RunResources & | r | ||
| ) |
| gnash::FltkGui::~FltkGui | ( | ) | [virtual] |
| void gnash::FltkGui::addMenuItems | ( | ) |
Referenced by createMenu(), and createWindow().
| void gnash::FltkGui::create | ( | ) |
References gnash::Gui::_xid.
| bool gnash::FltkGui::createMenu | ( | ) | [virtual] |
References addMenuItems(), gnash::key::h, and test::w.
Referenced by createWindow().
| bool gnash::FltkGui::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::_runResources, gnash::Gui::_xid, addMenuItems(), gnash::image::begin(), createMenu(), gnash::FltkCairoGlue::createRenderHandler(), gnash::image::end(), gnash::FltkCairoGlue::initBuffer(), and gnash::RunResources::setRenderer().
| int gnash::FltkGui::handle | ( | int | event | ) |
| bool gnash::FltkGui::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::FltkGui::layout | ( | ) |
References gnash::key::h, gnash::Gui::resize_view(), and test::w.
| void gnash::FltkGui::renderBuffer | ( | ) | [virtual] |
Render the current buffer. For OpenGL, this means that the front and back buffers are swapped.
Implements gnash::Gui.
References gnash::Gui::_height, gnash::Gui::_width, assert, and gnash::geometry::Range2d< T >::isFinite().
| bool gnash::FltkGui::run | ( | ) | [virtual] |
Start main rendering loop.
Implements gnash::Gui.
| void gnash::FltkGui::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::FltkGui::setInterval | ( | unsigned int | interval | ) | [virtual] |
Set main loop delay in milliseconds.
Reimplemented from gnash::Gui.
| void gnash::FltkGui::setInvalidatedRegions | ( | const InvalidatedRanges & | ranges | ) | [virtual] |
Reimplemented from gnash::Gui.
References gnash::Gui::_renderer, gnash::Gui::_validbounds, assert, gnash::geometry::SnappingRanges2d< T >::getRange(), gnash::geometry::Intersection(), gnash::geometry::Range2d< T >::isFinite(), gnash::geometry::Range2d< T >::isNull(), and gnash::geometry::SnappingRanges2d< T >::size().
| virtual void gnash::FltkGui::setTimeout | ( | unsigned | timeout | ) | [inline, virtual] |
Set the time in milliseconds after which the programme should exit.
Implements gnash::Gui.
| virtual bool gnash::FltkGui::setupEvents | ( | ) | [inline, virtual] |
1.7.6.1