Public Member Functions

gnash::AOS4Gui Class Reference

#include <aos4sup.h>

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

List of all members.

Public Member Functions

 AOS4Gui (unsigned long xid, float scale, bool loop, RunResources &r)
virtual ~AOS4Gui ()
virtual bool init (int argc, char **argv[])
 Initialise the gui and the associated renderer.
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 setupEvents ()
virtual void renderBuffer ()
virtual void setInterval (unsigned int interval)
 Set main loop delay in milliseconds.
virtual void disableCoreTrap ()
virtual void setTimeout (unsigned int timeout)
 Set the time in milliseconds after which the programme should exit.
void setInvalidatedRegions (const InvalidatedRanges &ranges)
void key_event (gnash::key::code key, int state, bool down)
void resize (int width, int height)
virtual bool showMouse (bool show)
 Sets whether the gui should show the system mouse pointer.
virtual void setFullscreen ()
virtual void unsetFullscreen ()
virtual void showAboutDialog ()
virtual struct GnashPrefsReadPrefs (void)

Constructor & Destructor Documentation

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

References FALSE.

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

Member Function Documentation

bool gnash::AOS4Gui::createMenu (  )  [virtual]
bool gnash::AOS4Gui::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, _orig_height, _orig_width, gnash::Gui::_renderer, gnash::Gui::_runResources, gnash::Gui::_width, _window, malloc(), and gnash::RunResources::setRenderer().

void gnash::AOS4Gui::disableCoreTrap (  )  [virtual]
bool gnash::AOS4Gui::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 _, _depth, and gnash::Gui::_renderer.

void gnash::AOS4Gui::key_event ( gnash::key::code  key,
int  state,
bool  down 
)

References gnash::key::INVALID, and gnash::Gui::notify_key_event().

Referenced by run().

struct GnashPrefs * gnash::AOS4Gui::ReadPrefs ( void   )  [read, virtual]

References _rcfile, GnashPrefs::connectlocaldomain, GnashPrefs::connectlocalhost, GnashPrefs::detectedos, GnashPrefs::disablelocal, GnashPrefs::disablessl, GnashPrefs::dontwriteso, gnash::RcInitFile::getDebugLog(), gnash::RcInitFile::getDefaultInstance(), gnash::RcInitFile::getFlashSystemOS(), gnash::RcInitFile::getFlashVersionString(), gnash::RcInitFile::getLCTrace(), gnash::RcInitFile::getLocalConnection(), gnash::RcInitFile::getMediaDir(), gnash::RcInitFile::getMovieLibraryLimit(), gnash::RcInitFile::getSOLLocalDomain(), gnash::RcInitFile::getSOLReadOnly(), gnash::RcInitFile::getSOLSafeDir(), gnash::RcInitFile::getStreamsTimeout(), gnash::RcInitFile::getURLOpenerFormat(), gnash::RcInitFile::insecureSSL(), GnashPrefs::logactionscript, GnashPrefs::logfilename, GnashPrefs::loglocalconn, GnashPrefs::logmalformedswf, GnashPrefs::logparser, GnashPrefs::logswf, GnashPrefs::logtofile, malloc(), GnashPrefs::maxsizemovielib, GnashPrefs::nettimeout, GnashPrefs::onlylocalso, GnashPrefs::playerversion, GnashPrefs::savedynamic, gnash::RcInitFile::saveLoadedMedia(), GnashPrefs::savemedia, GnashPrefs::savemediadir, gnash::RcInitFile::saveStreamingMedia(), GnashPrefs::sharedobjdir, gnash::RcInitFile::showASCodingErrors(), gnash::RcInitFile::showMalformedSWFErrors(), GnashPrefs::startpaused, gnash::RcInitFile::startStopped(), GnashPrefs::urlopener, gnash::RcInitFile::useActionDump(), gnash::RcInitFile::useLocalDomain(), gnash::RcInitFile::useLocalHost(), gnash::RcInitFile::useParserDump(), gnash::RcInitFile::useSound(), GnashPrefs::usesound, gnash::RcInitFile::useWriteLog(), GnashPrefs::verbosity, and gnash::RcInitFile::verbosityLevel().

Referenced by run().

void gnash::AOS4Gui::renderBuffer (  )  [virtual]

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

Implements gnash::Gui.

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

Start main rendering loop.

Implements gnash::Gui.

References _, gnash::Gui::_height, gnash::Gui::_interval, _rcfile, gnash::Gui::_width, _window, gnash::Gui::advance_movie(), GnashPrefs::detectedos, FALSE, GAD, gnash::RcInitFile::getDefaultInstance(), gnash::gnashSleep(), gnash::RcInitFile::insecureSSL(), key_event(), gnash::key::L, GnashPrefs::logfilename, make_window(), gnash::Gui::notifyMouseClick(), gnash::Gui::notifyMouseMove(), OBJ, OBJ_CANCEL, OBJ_CONNECTLOCALDOMAIN, OBJ_CONNECTLOCALHOST, OBJ_DISABLELOCALCONNOBJ, OBJ_DISABLESSL, OBJ_DONTWRITESHAREDOBJ, OBJ_LOGACTIONSCRIPT, OBJ_LOGFILENAME_VALUE, OBJ_LOGLOCALCONNECTION, OBJ_LOGMALFORMEDSWF, OBJ_LOGPARSER, OBJ_LOGSWF, OBJ_LOGTOFILE, OBJ_MEDIASAVEDIR_VALUE, OBJ_NETWORKTIMEOUT, OBJ_OK, OBJ_ONLYLOCALSHAREDOBJ, OBJ_OS_VALUE, OBJ_PLAYERVERSION_VALUE, OBJ_SAVEMEDIASTREAMS, OBJ_SCROLLER, OBJ_SCROLLER_VALUE, OBJ_SEVEDYNAMICSTREAMS, OBJ_SHAREDOBJDIR_VALUE, OBJ_SIZEMOVIELIB, OBJ_STARTINPAUSE, OBJ_URLOPENER_VALUE, OBJ_USESOUNDHANDLER, gnash::Gui::pause(), gnash::Gui::play(), GnashPrefs::playerversion, ReadPrefs(), gnash::Gui::refreshView(), RESET_TIME, gnash::Gui::resize_view(), gnash::Gui::restart(), gnash::RcInitFile::saveLoadedMedia(), GnashPrefs::savemediadir, gnash::RcInitFile::saveStreamingMedia(), gnash::RcInitFile::setDebugLog(), gnash::RcInitFile::setFlashSystemOS(), gnash::RcInitFile::setFlashVersionString(), gnash::RcInitFile::setLCTrace(), gnash::RcInitFile::setLocalConnection(), gnash::RcInitFile::setMediaDir(), gnash::RcInitFile::setMovieLibraryLimit(), gnash::RcInitFile::setSOLLocalDomain(), gnash::RcInitFile::setSOLReadOnly(), gnash::RcInitFile::setSOLSafeDir(), gnash::RcInitFile::setStreamsTimeout(), gnash::RcInitFile::setURLOpenerFormat(), GnashPrefs::sharedobjdir, showAboutDialog(), gnash::RcInitFile::showASCodingErrors(), gnash::RcInitFile::showMalformedSWFErrors(), gnash::Gui::showUpdatedRegions(), gnash::RcInitFile::startStopped(), gnash::Gui::stop(), gnash::Gui::toggleFullscreen(), TRUE, gnash::RcInitFile::updateFile(), GnashPrefs::urlopener, gnash::RcInitFile::useActionDump(), gnash::RcInitFile::useLocalDomain(), gnash::RcInitFile::useLocalHost(), gnash::RcInitFile::useParserDump(), gnash::RcInitFile::useSound(), gnash::RcInitFile::useWriteLog(), and gnash::RcInitFile::verbosityLevel().

void gnash::AOS4Gui::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::Gui::_fullscreen, _window, and gnash::Gui::resize_view().

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

Set main loop delay in milliseconds.

Reimplemented from gnash::Gui.

References gnash::Gui::_interval.

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

Reimplemented from gnash::Gui.

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

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

Implements gnash::Gui.

bool gnash::AOS4Gui::setupEvents (  )  [virtual]
void gnash::AOS4Gui::showAboutDialog ( void   )  [virtual]

Referenced by run().

bool gnash::AOS4Gui::showMouse ( bool  show  )  [virtual]

Sets whether the gui should show the system mouse pointer.

Parameters:
show true if the mouse should be shown.
Returns:
true if the state changed.

Reimplemented from gnash::Gui.

References gnash::Gui::_mouseShown, and _window.

void gnash::AOS4Gui::unsetFullscreen (  )  [virtual]

Return from fullscreen to normal mode.

Reimplemented from gnash::Gui.

References gnash::Gui::_fullscreen, _window, and gnash::Gui::resize_view().


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