Gnash  0.8.10
Public Member Functions
gnash::FltkGui Class Reference

#include <fltksup.h>

Inheritance diagram for gnash::FltkGui:
gnash::Gui

List of all members.

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 ()

Constructor & Destructor Documentation

gnash::FltkGui::FltkGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources r 
)
gnash::FltkGui::~FltkGui ( ) [virtual]

Member Function Documentation

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.

Parameters:
titleThe window title.
widthThe desired window width in pixels.
heightThe desired window height in pixels.
xPositionThe desired window X position from the top left corner.
yPositionThe 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.

Parameters:
argcThe commandline argument count.
argvThe commandline arguments.
Returns:
True on success; false on failure.

Implements gnash::Gui.

void gnash::FltkGui::layout ( )
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]

The documentation for this class was generated from the following files: