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 createWindow(), and createMenu().
void gnash::FltkGui::create | ( | ) |
References gnash::Gui::_xid.
bool gnash::FltkGui::createMenu | ( | ) | [virtual] |
References test::w, gnash::key::h, and addMenuItems().
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::image::begin(), gnash::Gui::_xid, addMenuItems(), createMenu(), gnash::image::end(), gnash::Gui::_renderer, gnash::FltkCairoGlue::createRenderHandler(), gnash::Gui::_runResources, gnash::RunResources::setRenderer(), and gnash::FltkCairoGlue::initBuffer().
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 test::w, gnash::key::h, and gnash::Gui::resize_view().
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::_width, gnash::Gui::_height, assert, and gnash::geometry::Range2d::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] |
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] |