26 #include <boost/intrusive_ptr.hpp>
27 #include <boost/scoped_ptr.hpp>
61 #define ENABLE_KEYBOARD_MOUSE_MOVEMENTS 1
69 class movie_definition;
99 virtual bool init(
int argc,
char **argv[]) = 0;
114 virtual void setTimeout(
unsigned int timeout) = 0;
127 int xPosition = 0,
int yPosition = 0) = 0;
132 virtual bool run() = 0;
189 return std::make_pair(0, 0);
371 #ifdef GNASH_FPS_DEBUG
376 void setFpsTimerInterval(
float interval)
378 assert(interval >= 0.0);
379 fps_timer_interval = interval;
381 #endif // def GNASH_FPS_DEBUG
385 std::auto_ptr<movie_root::InfoTree> getMovieInfo()
const;
412 virtual void error(
const std::string& ) {}
424 virtual bool yesno(
const std::string& question);
433 float getFPS()
const {
return (_movieDef) ? _movieDef->get_frame_rate() : 0;
464 std::exit(EXIT_SUCCESS);
476 log_unimpl(
"This GUI does not implement FD watching.");
548 boost::int32_t _xoffset;
551 boost::int32_t _yoffset;
555 #ifdef GNASH_FPS_DEBUG
556 unsigned int fps_counter;
558 float fps_rate_min, fps_rate_max;
562 unsigned int fps_counter_total;
564 boost::uint64_t fps_timer, fps_start_timer;
570 float fps_timer_interval;
573 unsigned int frames_dropped;
581 void fpsCounterTick();
583 #endif // def GNASH_FPS_DEBUG
587 boost::intrusive_ptr<movie_definition> _movieDef;
599 bool _showUpdatedRegions;
605 boost::scoped_ptr<ScreenShotter> _screenShotter;
607 #ifdef ENABLE_KEYBOARD_MOUSE_MOVEMENTS
610 bool _keyboardMouseMovements;
611 int _keyboardMouseMovementsStep;
612 #endif // ENABLE_KEYBOARD_MOUSE_MOVEMENTS
617 std::auto_ptr<Gui>
createFBGui(
unsigned long xid,
float scale,
bool loop, RunResources&
r);
619 std::auto_ptr<Gui>
createGTKGui(
unsigned long xid,
float scale,
bool loop, RunResources&
r);
620 std::auto_ptr<Gui>
createKDEGui(
unsigned long xid,
float scale,
bool loop, RunResources&
r);
621 std::auto_ptr<Gui>
createQt4Gui(
unsigned long xid,
float scale,
bool loop, RunResources&
r);
622 std::auto_ptr<Gui>
createSDLGui(
unsigned long xid,
float scale,
bool loop, RunResources&
r);
623 std::auto_ptr<Gui>
createFLTKGui(
unsigned long xid,
float scale,
bool loop, RunResources&
r);
624 std::auto_ptr<Gui>
createAQUAGui(
unsigned long xid,
float scale,
bool loop, RunResources&
r);
625 std::auto_ptr<Gui>
createRISCOSGui(
unsigned long xid,
float scale,
bool loop, RunResources&
r);
626 std::auto_ptr<Gui>
createAOS4Gui(
unsigned long xid,
float scale,
bool loop, RunResources&
r);
627 std::auto_ptr<Gui>
createHaikuGui(
unsigned long xid,
float scale,
bool loop, RunResources&
r);
628 std::auto_ptr<Gui>
createDumpGui(
unsigned long xid,
float scale,
bool loop, RunResources&
r);