Gnash  0.8.10
Public Member Functions
gnash::AOS4Gui Class Reference

#include <aos4sup.h>

Inheritance diagram for gnash::AOS4Gui:
gnash::Gui

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 
)
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:
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::Gui::_width, width, gnash::Gui::_height, height, _orig_width, _orig_height, gnash::Gui::_runResources, gnash::RunResources::setRenderer(), gnash::Gui::_renderer, _window, and malloc().

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

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

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

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