#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 gnash::key::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(), createMenu(), s2x::end, and gnash::RunResources::setRenderer().
| int gnash::FltkGui::handle | ( | int | event | ) |
| virtual 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::VM::isInitialized(), gnash::Gui::resize_view(), and gnash::key::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, 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, 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.1