Public Member Functions

gnash::HaikuGui Class Reference

#include <haikusup.h>

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

List of all members.

Public Member Functions

 HaikuGui (unsigned long xid, float scale, bool loop, RunResources &r)
virtual ~HaikuGui ()
virtual bool init (int argc, char **argv[])
 Initialise the gui and the associated renderer.
void init_dumpfile ()
virtual bool createWindow (const char *title, 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 createMenuBar ()
virtual bool setupEvents ()
virtual void setFullscreen ()
virtual void unsetFullscreen ()
virtual void setFullscreenEtc ()
virtual void unsetFullscreenEtc ()
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 error (const std::string &msg)
 Handle error message from the core.
virtual bool yesno (const std::string &question)
 Prompt user with a question she can answer with yes/no.
void GnashPulse ()
unsigned int getInterval ()
virtual void resize_view (int width, int height)
 Resize the client area view and the window accordingly.
void Shown ()
void Hidden ()
void setInvalidatedRegions (const InvalidatedRanges &ranges)

Constructor & Destructor Documentation

gnash::HaikuGui::HaikuGui ( unsigned long  xid,
float  scale,
bool  loop,
RunResources r 
)

References QQ.

gnash::HaikuGui::~HaikuGui (  )  [virtual]

Member Function Documentation

bool gnash::HaikuGui::createMenu (  )  [virtual]
bool gnash::HaikuGui::createMenuBar (  )  [virtual]
bool gnash::HaikuGui::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, gnash::Gui::_xid, gnash::key::b, and gnash::RunResources::setRenderer().

void gnash::HaikuGui::error ( const std::string &   )  [virtual]

Handle error message from the core.

Parameters:
msg The error message recieved

Reimplemented from gnash::Gui.

unsigned int gnash::HaikuGui::getInterval (  ) 

References gnash::Gui::_interval.

void gnash::HaikuGui::GnashPulse (  ) 
void gnash::HaikuGui::Hidden (  ) 
bool gnash::HaikuGui::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::_renderer, s2x::c, getopt(), optarg, optind, and QQ.

void gnash::HaikuGui::init_dumpfile (  ) 
void gnash::HaikuGui::renderBuffer (  )  [virtual]

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

Implements gnash::Gui.

void gnash::HaikuGui::resize_view ( int  width,
int  height 
) [virtual]

Resize the client area view and the window accordingly.

Parameters:
width The desired width in pixels.
height The desired height in pixels.

Reimplemented from gnash::Gui.

bool gnash::HaikuGui::run (  )  [virtual]

Start main rendering loop.

Implements gnash::Gui.

void gnash::HaikuGui::setFullscreen (  )  [virtual]

Attempt to run in a fullscreen window both for plugin and standalone player. Use isFullscreen() to see if gnash thinks it's running in fullscreen or not. The switch to fullscreen may fail if, for instance, the window manager refuses to allow it, but the flag will be set anyway.

Reimplemented from gnash::Gui.

References gnash::GNASH_SET_FULLSCREEN, and gnash::key::m.

void gnash::HaikuGui::setFullscreenEtc (  )  [virtual]
void gnash::HaikuGui::setInterval ( unsigned int  interval  )  [virtual]

Set main loop delay in milliseconds.

Reimplemented from gnash::Gui.

References gnash::Gui::_interval.

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

Reimplemented from gnash::Gui.

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

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

Implements gnash::Gui.

bool gnash::HaikuGui::setupEvents (  )  [virtual]
void gnash::HaikuGui::Shown (  ) 
void gnash::HaikuGui::unsetFullscreen (  )  [virtual]

Return from fullscreen to normal mode.

Reimplemented from gnash::Gui.

References gnash::GNASH_UNSET_FULLSCREEN, and gnash::key::m.

void gnash::HaikuGui::unsetFullscreenEtc (  )  [virtual]

References gnash::Gui::_xid.

bool gnash::HaikuGui::yesno ( const std::string &  question  )  [virtual]

Prompt user with a question she can answer with yes/no.

Parameters:
question The question to ask user
Returns:
true for YES, false for NO

The default implementation always returns true.

Reimplemented from gnash::Gui.


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