Gnash  0.8.10
Public Member Functions
gnash::HaikuGui Class Reference

#include <haikusup.h>

Inheritance diagram for gnash::HaikuGui:
gnash::Gui

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]

References GNASH_REPORT_FUNCTION.


Member Function Documentation

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

References GNASH_REPORT_FUNCTION.

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

References GNASH_REPORT_FUNCTION.

bool gnash::HaikuGui::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_REPORT_FUNCTION, gnash::Gui::_width, width, gnash::Gui::_height, height, gnash::Gui::_xid, gnash::key::b, gnash::Gui::_runResources, gnash::RunResources::setRenderer(), and gnash::Gui::_renderer.

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

Handle error message from the core.

Parameters:
msgThe 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:
argcThe commandline argument count.
argvThe commandline arguments.
Returns:
True on success; false on failure.

Implements gnash::Gui.

References QQ, GNASH_REPORT_FUNCTION, gnash::key::c, optind, getopt(), optarg, _, and gnash::Gui::_renderer.

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:
widthThe desired width in pixels.
heightThe desired height in pixels.

Reimplemented from gnash::Gui.

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

Start main rendering loop.

Implements gnash::Gui.

References GNASH_REPORT_FUNCTION.

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::key::m, and gnash::GNASH_SET_FULLSCREEN.

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]

References GNASH_REPORT_FUNCTION.

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

Return from fullscreen to normal mode.

Reimplemented from gnash::Gui.

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

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:
questionThe 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: