Public Member Functions

gnash::KdeGui Class Reference

#include <kdesup.h>

Inheritance diagram for gnash::KdeGui:
Inheritance graph
[legend]
Collaboration diagram for gnash::KdeGui:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 KdeGui (unsigned long xid, float scale, bool loop, RunResources &r)
virtual ~KdeGui ()
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 bool run ()
 Start main rendering loop.
virtual bool createMenu ()
virtual bool setupEvents ()
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.
void setInvalidatedRegions (const InvalidatedRanges &ranges)
void resize (int width, int height)
void quitUI ()
 End main rendering loop calling GUI-specific exit functions.

Constructor & Destructor Documentation

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

Member Function Documentation

bool gnash::KdeGui::createMenu (  )  [virtual]
bool gnash::KdeGui::createWindow ( const char *  title,
int  width,
int  height,
int  xPosition = 0,
int  yPosition = 0 
) [virtual]

Create and display our window.

Parameters:
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::_width, and gnash::RunResources::setRenderer().

void gnash::KdeGui::handleKeyEvent ( QKeyEvent *  event,
bool  down 
) [virtual]
bool gnash::KdeGui::init ( int  argc,
char **  argv[] 
) [virtual]

Initialise the gui and the associated renderer.

Parameters:
argc The commandline argument count.
argv The commandline arguments.
Returns:
True on success; false on failure.

Implements gnash::Gui.

References gnash::Gui::_xid.

void gnash::KdeGui::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::KdeGui::renderBuffer (  )  [virtual]

Render the current buffer. For OpenGL, this means that the front and back buffers are swapped.

Implements gnash::Gui.

Referenced by gnash::qwidget::paintEvent().

void gnash::KdeGui::resize ( int  width,
int  height 
)
bool gnash::KdeGui::run (  )  [virtual]

Start main rendering loop.

Implements gnash::Gui.

void gnash::KdeGui::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::KdeGui::setInterval ( unsigned int  interval  )  [virtual]

Set main loop delay in milliseconds.

Reimplemented from gnash::Gui.

void gnash::KdeGui::setInvalidatedRegions ( const InvalidatedRanges ranges  )  [virtual]

Reimplemented from gnash::Gui.

Referenced by gnash::qwidget::paintEvent().

void gnash::KdeGui::setTimeout ( unsigned int  timeout  )  [virtual]

Set the time in milliseconds after which the programme should exit.

Implements gnash::Gui.

References gnash::Gui::quit().

bool gnash::KdeGui::setupEvents (  )  [virtual]

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