Gnash  0.8.11dev
Player.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010,
3 // 2011 Free Software Foundation, Inc
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 //
19 
20 #ifndef GNASH_PLAYER_H
21 #define GNASH_PLAYER_H
22 
23 #ifdef HAVE_CONFIG_H
24 #include "gnashconfig.h"
25 #endif
26 
27 #include "HostInterface.h" // for HostInterface, FsCallback, etc
28 #include "StringPredicates.h" // for StringNoCaseLessThan
29 #include "movie_definition.h"
30 #include "NetworkAdapter.h" // for setCookiesIn
31 
32 #include <boost/intrusive_ptr.hpp>
33 #include <string>
34 #include <map>
35 #include <memory>
36 
37 // Forward declarations
38 namespace gnash {
39  class MovieClip;
40  class RunResources;
41  class Gui;
42  namespace media {
43  class MediaHandler;
44  }
45  namespace sound {
46  class sound_handler;
47  }
48 }
49 
50 namespace gnash {
51 
57 class Player
58 {
59 public:
60 
61  Player();
62 
63  ~Player();
64 
66  //
79  void run(int argc, char* argv[],
80  const std::string& infile, const std::string& url = "");
81 
82  float setScale(float s);
83 
84  // milliseconds per frame
85  void setDelay(unsigned int d) { _delay=d; }
86 
87 #ifdef GNASH_FPS_DEBUG
88  //
95  void setFpsPrintTime(float time)
96  {
97  assert(time >= 0.0);
98  _fpsDebugTime = time;
99  }
100 #endif // def GNASH_FPS_DEBUG
101 
102  void setWidth(size_t w) { _width = w; }
103  size_t getWidth() const { return _width; }
104 
105  void setHeight(size_t h) { _height = h; }
106  size_t getHeight() const { return _height; }
107 
108  void setXPosition(int xPos) { _xPosition = xPos; }
109  size_t getXPosition() const { return _xPosition; }
110 
111  void setYPosition(int yPos) { _yPosition = yPos; }
112  size_t getYPosition() const { return _yPosition; }
113 
114  void setWindowId(unsigned long x) { _windowID = x; }
115 
116  void setDoLoop(bool b) { _doLoop = b; }
117 
118  void setDoRender(bool b) { _doRender = b; }
119 
120  void setDoSound(bool b) { _doSound = b; }
121 
122  void setMaxAdvances(unsigned long ul) { if (ul > 0) _maxAdvances = ul; }
123 
125  //
129  void setBaseUrl(const std::string& baseurl) {
130  _baseurl = baseurl;
131  }
132 
133  float setExitTimeout(float n) {
134  float oldtimeout = _exitTimeout;
135  _exitTimeout = n;
136  return oldtimeout;
137  }
138 
139  void setParam(const std::string& name, const std::string& value) {
140  _params[name] = value;
141  }
142 
143  void setHostFD(int fd) {
144  _hostfd = fd;
145  }
146 
147  int getHostFD() const {
148  return _hostfd;
149  }
150 
151  void setMedia(const std::string& media) {
152  _media = media;
153  }
154 
155  void setControlFD(int fd) {
156  _controlfd = fd;
157  }
158 
159  int getControlFD() const {
160  return _controlfd;
161  }
162 
163  void setCookiesIn(const std::string& filename) {
165  }
166 
167  void setStartFullscreen(bool x) {
168  _startFullscreen = x;
169  }
170 
171  void hideMenu(bool x) {
172  _hideMenu = x;
173  }
174 
175  void setAudioDumpfile(const std::string& filespec) {
176  _audioDump = filespec;
177  }
178 
182  void setRenderer(const std::string& x) { _renderer = x; }
183 
187  void setHWAccel(const std::string& x) { _hwaccel = x; }
188 
190  //
192  //
195  void setScreenShots(const std::string& screenshots) {
196  _screenshots = screenshots;
197  }
198 
200  //
202  void setScreenShotFile(const std::string& file) {
203  _screenshotFile = file;
204  }
205 
207  //
209  void setScreenShotQuality(int quality) {
210  _screenshotQuality = quality;
211  }
212 
213 private:
214 
218  std::string _hwaccel;
219 
223  std::string _renderer;
224 
225  class CallbacksHandler : public HostInterface, public FsCallback
226  {
227  public:
228  CallbacksHandler(Gui& gui, const Player& player)
229  :
230  _gui(gui),
231  _player(player)
232  {
233  }
234 
235  boost::any call(const HostInterface::Message& e);
236 
237  void exit();
238 
239  // For handling notification callbacks from ActionScript.
240  // The callback is always sent to a hosting application
241  // (i.e. if a file descriptor is supplied). It is never
242  // acted on by Gnash when running as a plugin.
243  void notify(const std::string& event, const std::string& arg);
244 
245  private:
246 
247  Gui& _gui;
248 
249  const Player& _player;
250  };
251 
252  std::shared_ptr<CallbacksHandler> _callbacksHandler;
253 
254  void init();
255 
270  static unsigned int silentStream(void* udata, std::int16_t* stream,
271  unsigned int len, bool& atEOF);
272 
273  void init_sound();
274 
275  void init_logfile();
276 
277  void init_gui();
278 
280  //
283  std::unique_ptr<Gui> getGui();
284 
285  void setFlashVars(const std::string& varstr);
286 
287  typedef std::map<std::string, std::string, StringNoCaseLessThan> Params;
288 
289  // Movie parameters (for -P)
290  Params _params;
291 
292  // the scale at which to play
293  float _scale;
294  unsigned int _delay;
295  size_t _width;
296  size_t _height;
297  int _xPosition;
298  int _yPosition;
299  unsigned long _windowID;
300  bool _doLoop;
301  bool _doRender;
302  bool _doSound;
303  float _exitTimeout;
304  std::string _baseurl;
305 
307  //
313  //
317  //
321  std::shared_ptr<sound::sound_handler> _soundHandler;
322 
323  std::shared_ptr<media::MediaHandler> _mediaHandler;
324 
326  //
329  std::shared_ptr<RunResources> _runResources;
330 
332  std::shared_ptr<Gui> _gui;
333 
334  std::string _url;
335 
336  std::string _infile;
337 
338  boost::intrusive_ptr<movie_definition> _movieDef;
339 
340  unsigned long _maxAdvances;
341 
343  //
348  boost::intrusive_ptr<movie_definition> load_movie();
349 
350 #ifdef GNASH_FPS_DEBUG
351  float _fpsDebugTime;
352 #endif
353 
354  // Filedescriptor to use for host application requests, -1 if none
355  int _hostfd;
356 
357  int _controlfd;
358 
359  // Whether to start Gnash in fullscreen mode.
360  // (Or what did you think it meant?)
361  bool _startFullscreen;
362  bool _hideMenu;
363 
365  std::string _audioDump;
366 
368  //
370  std::string _screenshots;
371 
373  //
375  std::string _screenshotFile;
376 
378  //
380  int _screenshotQuality;
381 
383  //
385  std::string _media;
386 
387 };
388 
389 } // end of gnash namespace
390 
391 // end of _PLAYER_H_
392 #endif
393 
394 // local Variables:
395 // mode: C++
396 // indent-tabs-mode: nil
397 // End:
gnash::Player::setScreenShots
void setScreenShots(const std::string &screenshots)
This should be a comma-separated list of frames.
Definition: Player.h:195
gnash::RcInitFile::verbosityLevel
int verbosityLevel() const
Definition: rc.h:112
gnash::LogFile::getDefaultInstance
static LogFile & getDefaultInstance()
Definition: log.cpp:77
sound_handler.h
gnash::Player
Definition: Player.h:58
gnash::Player::setScreenShotQuality
void setScreenShotQuality(int quality)
Set the quality for screenshot output.
Definition: Player.h:209
gnash::FsCallback
Abstract base class for FS handlers.
Definition: HostInterface.h:200
gnash::RcInitFile::useActionDump
bool useActionDump() const
Definition: rc.h:74
path
VGPath path
Definition: testr_gtk.cpp:84
gnash::HostInterface::Message
boost::variant< HostMessage, CustomMessage > Message
Definition: HostInterface.h:213
NetworkAdapter.h
SystemClock.h
gnash::RcInitFile::getTimerDelay
int getTimerDelay() const
Definition: rc.h:83
gnash::movie_root::registerFSCommandCallback
DSOEXPORT void registerFSCommandCallback(FsCallback *handler)
Definition: movie_root.h:718
movie_root.h
gnash::MovieFactory::makeMovie
static DSOEXPORT boost::intrusive_ptr< movie_definition > makeMovie(const URL &url, const RunResources &runResources, const char *real_url=nullptr, bool startLoaderThread=true, const std::string *postdata=nullptr)
Create a gnash::movie_definition from the given URL.
Definition: MovieFactory.cpp:109
Player.h
name
std::string name
Definition: LocalConnection_as.cpp:149
ScreenShotter.h
gnash::HostMessage::EXTERNALINTERFACE_PAN
@ EXTERNALINTERFACE_PAN
Definition: HostInterface.h:176
gnash::key::d
@ d
Definition: GnashKey.h:150
noseek_fd_adapter.h
gnash::Player::setWindowId
void setWindowId(unsigned long x)
Definition: Player.h:114
gnash::Gui::VariableMap
std::map< std::string, std::string > VariableMap
Definition: gui.h:390
gnash::GnashException
Top-level gnash exception.
Definition: GnashException.h:31
gnash::Player::setScale
float setScale(float s)
Definition: Player.cpp:224
gnash::HostMessage::NOTIFY_ERROR
@ NOTIFY_ERROR
Definition: HostInterface.h:166
gnash::Player::getControlFD
int getControlFD() const
Definition: Player.h:159
gnash::Player::setCookiesIn
void setCookiesIn(const std::string &filename)
Definition: Player.h:163
gnash::log_debug
void log_debug(StringType msg, Args... args)
Definition: log.h:301
gnash::ExternalInterface::makeInvoke
static DSOEXPORT std::string makeInvoke(const std::string &method, const std::vector< as_value > &args)
Definition: ExternalInterface.cpp:302
HostInterface.h
gnash::key::i
@ i
Definition: GnashKey.h:155
gnash::LogFile
Definition: log.h:64
NamingPolicy.h
TagLoadersTable.h
rc.h
_
#define _(String)
Definition: log.h:44
gnash::LogFile::setLogFilename
void setLogFilename(const std::string &fname)
Set log filename.
Definition: log.cpp:274
gnash::NetworkAdapter::setCookiesIn
static void setCookiesIn(const std::string &cookiesin)
Set CookiesIn variable to cookiefile path.
Definition: NetworkAdapter.h:96
gnash::Player::setParam
void setParam(const std::string &name, const std::string &value)
Definition: Player.h:139
gnash::Player::setMedia
void setMedia(const std::string &media)
Definition: Player.h:151
MediaHandler.h
gnash::Player::setControlFD
void setControlFD(int fd)
Definition: Player.h:155
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
gnash::Gui
Parent class from which all GUI implementations will depend.
Definition: gui.h:88
DefaultTagLoaders.h
gnash::SoundException
An exception from SoundHandler subsystem.
Definition: GnashException.h:70
gnash::Player::getHostFD
int getHostFD() const
Definition: Player.h:147
gnash::key::g
@ g
Definition: GnashKey.h:153
gnash::HostInterface
Abstract base class for hosting app handler.
Definition: HostInterface.h:208
GnashFactory.h
gnash::movie_root::setAllowScriptAccess
void setAllowScriptAccess(AllowScriptAccessMode mode)
The mode is one of never, always, with sameDomain the default.
Definition: movie_root.cpp:1237
gnash::URL::parse_querystring
static void parse_querystring(const std::string &query_string, std::map< std::string, std::string > &target_map)
Parse a query string filling the provided map.
Definition: URL.cpp:354
NullGui.h
gnash::key::s
@ s
Definition: GnashKey.h:165
gnash::movie_root::SCRIPT_ACCESS_NEVER
@ SCRIPT_ACCESS_NEVER
Definition: movie_root.h:481
gnash::key::n
@ n
Definition: GnashKey.h:160
gnash::Player::setHostFD
void setHostFD(int fd)
Definition: Player.h:143
gnash::Player::setDoSound
void setDoSound(bool b)
Definition: Player.h:120
gnash::HostMessage::EXTERNALINTERFACE_STOPPLAY
@ EXTERNALINTERFACE_STOPPLAY
Definition: HostInterface.h:180
gnash::Player::setExitTimeout
float setExitTimeout(float n)
Definition: Player.h:133
gnash::RcInitFile::getDebugLog
const std::string & getDebugLog() const
Definition: rc.h:116
gnash::HostMessage::EXTERNALINTERFACE_ZOOM
@ EXTERNALINTERFACE_ZOOM
Definition: HostInterface.h:181
gnash::HostMessage::SCREEN_COLOR
@ SCREEN_COLOR
Definition: HostInterface.h:160
gnash::createFLTKGui
std::unique_ptr< Gui > createFLTKGui(unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
Definition: gui_fltk.cpp:40
gnash::createKDEGui
std::unique_ptr< Gui > createKDEGui(unsigned long xid, float scale, bool loop, RunResources &r)
gnash::Player::setStartFullscreen
void setStartFullscreen(bool x)
Definition: Player.h:167
gnash::HostMessage::SET_CLIPBOARD
@ SET_CLIPBOARD
Definition: HostInterface.h:130
gnash::log_error
void log_error(StringType msg, Args... args)
Definition: log.h:283
gnash::movie_root::AllowScriptAccessMode
AllowScriptAccessMode
The possibile values of AllowScriptAccess.
Definition: movie_root.h:480
gnash::movie_root::setStageScaleMode
void setStageScaleMode(ScaleMode sm)
Sets the Stage object's align mode.
Definition: movie_root.cpp:1303
gnash::movie_root::SCRIPT_ACCESS_SAME_DOMAIN
@ SCRIPT_ACCESS_SAME_DOMAIN
Definition: movie_root.h:482
gnash::createSDLGui
std::unique_ptr< Gui > createSDLGui(unsigned long xid, float scale, bool loop, RunResources &r)
gnash::Player::setDoRender
void setDoRender(bool b)
Definition: Player.h:118
gnash::Player::getXPosition
size_t getXPosition() const
Definition: Player.h:109
gnash::media::MediaHandler
The MediaHandler class acts as a factory to provide parser and decoders.
Definition: MediaHandler.h:70
gnash::MovieFactory::clear
static DSOEXPORT void clear()
Clear the MovieFactory resources.
Definition: MovieFactory.cpp:157
MovieFactory.h
gnash::Player::setWidth
void setWidth(size_t w)
Definition: Player.h:102
gnash::Player::setScreenShotFile
void setScreenShotFile(const std::string &file)
Set the filename for screenshot output.
Definition: Player.h:202
gnash::amf::write
void write(SimpleBuffer &buf, const std::string &str)
Write a string to an AMF buffer.
Definition: AMF.cpp:161
gnash::HostMessage::SHOW_MENU
@ SHOW_MENU
Definition: HostInterface.h:117
gnash::IncrementalRename
Definition: NamingPolicy.h:54
StringPredicates.h
gnash::Player::getHeight
size_t getHeight() const
Definition: Player.h:106
gnash::LogFile::setActionDump
void setActionDump(int x)
Definition: log.h:135
gnash::HostMessage::SET_DISPLAYSTATE
@ SET_DISPLAYSTATE
Definition: HostInterface.h:124
gnash::movie_root::DisplayState
DisplayState
The possible values of Stage.displayState.
Definition: movie_root.h:444
gnash::HostMessage::EXTERNALINTERFACE_ISPLAYING
@ EXTERNALINTERFACE_ISPLAYING
Definition: HostInterface.h:175
ExternalInterface.h
gnash::HostMessage::EXTERNALINTERFACE_PLAY
@ EXTERNALINTERFACE_PLAY
Definition: HostInterface.h:177
gnash::Player::setMaxAdvances
void setMaxAdvances(unsigned long ul)
Definition: Player.h:122
gnash::get
T * get(as_object *o)
Extract the DisplayObject attached to an object.
Definition: as_object.h:842
gnash::Player::setDelay
void setDelay(unsigned int d)
Definition: Player.h:85
gnash::key::h
@ h
Definition: GnashKey.h:154
gnash::StringNoCaseEqual
A case-insensitive string equality operator.
Definition: StringPredicates.h:42
gnash::stringToStageAlign
short stringToStageAlign(const std::string &str)
Definition: movie_root.cpp:2406
URL.h
MovieClip.h
gnash::key::p
@ p
Definition: GnashKey.h:162
gnash::Player::setDoLoop
void setDoLoop(bool b)
Definition: Player.h:116
test.w
w
Definition: test.py:8
gnash::Player::run
void run(int argc, char *argv[], const std::string &infile, const std::string &url="")
Play the movie at the given url/path.
Definition: Player.cpp:385
gnash::movie_root::registerEventCallback
DSOEXPORT void registerEventCallback(HostInterface *handler)
Definition: movie_root.h:732
gnash::movie_root::SCALEMODE_NOSCALE
@ SCALEMODE_NOSCALE
Definition: movie_root.h:452
gnash::Player::setHeight
void setHeight(size_t h)
Definition: Player.h:105
gnash::ScreenShotter
Handles screen dumps.
Definition: ScreenShotter.h:37
GnashSystemIOHeaders.h
gnash::HostMessage::PLAYER_TYPE
@ PLAYER_TYPE
Definition: HostInterface.h:154
gnash::ScreenShotter::FrameList
std::vector< size_t > FrameList
Definition: ScreenShotter.h:40
gnash::movie_root::setStageAlignment
void setStageAlignment(short s)
Definition: movie_root.cpp:1229
gnash::RunResources
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:54
gnash::movie_root::DISPLAYSTATE_FULLSCREEN
@ DISPLAYSTATE_FULLSCREEN
Definition: movie_root.h:446
gnash::RcInitFile::useParserDump
bool useParserDump() const
Definition: rc.h:77
gnash::CustomMessage
A custom form of communication with the host application.
Definition: HostInterface.h:67
gnash::as_value
ActionScript value type.
Definition: as_value.h:95
gnash::createRISCOSGui
std::unique_ptr< Gui > createRISCOSGui(unsigned long xid, float scale, bool loop, RunResources &r)
gnash::HostMessage::PIXEL_ASPECT_RATIO
@ PIXEL_ASPECT_RATIO
Definition: HostInterface.h:148
gnash::createAOS4Gui
std::unique_ptr< Gui > createAOS4Gui(unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
Definition: gui_aos4.cpp:40
VM.h
gnash::movie_root::SCALEMODE_SHOWALL
@ SCALEMODE_SHOWALL
Definition: movie_root.h:451
gnash::createGTKGui
std::unique_ptr< Gui > createGTKGui(unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
Definition: gui_gtk.cpp:41
gnash::createQt4Gui
std::unique_ptr< Gui > createQt4Gui(unsigned long xid, float scale, bool loop, RunResources &r)
gnash::sound::create_sound_handler_mkit
sound_handler * create_sound_handler_mkit(media::MediaHandler *m)
Definition: sound_handler_mkit.cpp:269
gnash::Player::Player
Player()
Definition: Player.cpp:197
gnash::createAQUAGui
std::unique_ptr< Gui > createAQUAGui(unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
Definition: gui_aqua.cpp:40
gnash::RcInitFile::addLocalSandboxPath
void addLocalSandboxPath(const std::string &dir)
Add a directory to the local sandbox list.
Definition: rc.h:181
gnash::Player::hideMenu
void hideMenu(bool x)
Definition: Player.h:171
log.h
gnash::movie_root::SCRIPT_ACCESS_ALWAYS
@ SCRIPT_ACCESS_ALWAYS
Definition: movie_root.h:483
gnash::RcInitFile::ignoreFSCommand
bool ignoreFSCommand() const
Definition: rc.h:294
url
std::string url
Definition: gnash.cpp:59
gnash::dbglogfile
LogFile & dbglogfile
Definition: fileio.cpp:76
gnash::key::f
@ f
Definition: GnashKey.h:152
gnash::HostMessage::SCREEN_RESOLUTION
@ SCREEN_RESOLUTION
Definition: HostInterface.h:136
gnash::HostMessage::UPDATE_STAGE
@ UPDATE_STAGE
Definition: HostInterface.h:110
gnashconfig.h
gnash::movie_root::setHostFD
void setHostFD(int fd)
Definition: movie_root.h:686
gnash::RcInitFile::getDefaultInstance
static RcInitFile & getDefaultInstance()
Return the default instance of RC file.
Definition: rc.cpp:61
gnash::movie_root
This class represents the 'Stage' and top-level movie.
Definition: movie_root.h:151
gnash::Player::setXPosition
void setXPosition(int xPos)
Definition: Player.h:108
gnash::Player::setAudioDumpfile
void setAudioDumpfile(const std::string &filespec)
Definition: Player.h:175
gnash::HostMessage
Built-in forms of communication with the host application.
Definition: HostInterface.h:86
gnash::HostMessage::RESIZE_STAGE
@ RESIZE_STAGE
Definition: HostInterface.h:104
gnash::GnashFactory::instance
static GnashFactory & instance()
Get the GnashFactory singleton.
Definition: GnashFactory.h:78
RunResources.h
gnash::Player::setBaseUrl
void setBaseUrl(const std::string &baseurl)
Set the base url for this run.
Definition: Player.h:129
gnash::sound::create_sound_handler_aos4
sound_handler * create_sound_handler_aos4(media::MediaHandler *m)
Definition: sound_handler_ahi.cpp:259
gnash::HostMessage::SHOW_MOUSE
@ SHOW_MOUSE
Definition: HostInterface.h:98
gnash::Player::setHWAccel
void setHWAccel(const std::string &x)
Definition: Player.h:187
gnash::Player::~Player
~Player()
Definition: Player.cpp:866
gnash::HostMessage::EXTERNALINTERFACE_SETZOOMRECT
@ EXTERNALINTERFACE_SETZOOMRECT
Definition: HostInterface.h:179
gnash::movie_root::SCALEMODE_EXACTFIT
@ SCALEMODE_EXACTFIT
Definition: movie_root.h:453
movie_definition.h
gnash::sound::create_sound_handler_sdl
sound_handler * create_sound_handler_sdl(media::MediaHandler *m)
Definition: sound_handler_sdl.cpp:234
gnash::RcInitFile::startStopped
bool startStopped() const
Return true if user is willing to start the gui in "stop" mode.
Definition: rc.h:103
gui.h
gnash::HostMessage::EXTERNALINTERFACE_REWIND
@ EXTERNALINTERFACE_REWIND
Definition: HostInterface.h:178
gnash::URL
Uniform Resource Locator.
Definition: URL.h:35
gnash::Player::setRenderer
void setRenderer(const std::string &x)
Definition: Player.h:182
gnash::noseek_fd_adapter::make_stream
IOChannel * make_stream(int fd, const char *cachefilename)
Returns a read-only IOChannel that fetches data from an file descriptor open for read.
Definition: noseek_fd_adapter.cpp:364
gnash::createDumpGui
std::unique_ptr< Gui > createDumpGui(unsigned long, float, bool, RunResourcesfloat, bool, unsigned int)
Definition: gui_dump.cpp:40
StreamProvider.h
gnash::movie_root::ScaleMode
ScaleMode
The possibile values of Stage.scaleMode.
Definition: movie_root.h:450
gnash::movie_root::setControlFD
void setControlFD(int fd)
Definition: movie_root.h:693
gnash::Player::getWidth
size_t getWidth() const
Definition: Player.h:103
gnash::log_unimpl
void log_unimpl(StringType msg, Args... args)
Definition: log.h:289
gnash::gui::createFBGui
std::unique_ptr< Gui > createFBGui(unsigned long windowid, float scale, bool do_loop, RunResources &r)
Definition: fb.cpp:141
gnash::RcInitFile::useWriteLog
bool useWriteLog() const
Definition: rc.h:80
gnash::Player::getYPosition
size_t getYPosition() const
Definition: Player.h:112
gnash::NullGui
Null GUI, used when rendering is disabled.
Definition: NullGui.h:34
GnashException.h
gnash::movie_root::DISPLAYSTATE_NORMAL
@ DISPLAYSTATE_NORMAL
Definition: movie_root.h:445
x
std::int32_t x
Definition: BitmapData_as.cpp:434
gnash::createHaikuGui
std::unique_ptr< Gui > createHaikuGui(unsigned long xid, float scale, bool loop, RunResources &r)
gnash::URL::str
std::string str() const
Return the full absolute URL as a string.
Definition: URL.cpp:272
gnash::LogFile::setVerbosity
void setVerbosity()
Definition: log.h:123
gnash::LogFile::setWriteDisk
void setWriteDisk(bool b)
Set whether to write logs to file.
Definition: log.cpp:281
gnash::SWF::addDefaultLoaders
void addDefaultLoaders(TagLoadersTable &table)
Add the default parsing functions for SWF files to a TagLoadersTable.
Definition: DefaultTagLoaders.cpp:107
gnash::key::b
@ b
Definition: GnashKey.h:148
gnash::HostMessage::SCREEN_DPI
@ SCREEN_DPI
Definition: HostInterface.h:142
test.v
v
Definition: test.py:11
IOChannel.h
gnash::key::e
@ e
Definition: GnashKey.h:151
gnash::HostMessage::QUERY
@ QUERY
Definition: HostInterface.h:172
gnash::LogFile::setParserDump
void setParserDump(int x)
Definition: log.h:151
gnash::movie_root::SCALEMODE_NOBORDER
@ SCALEMODE_NOBORDER
Definition: movie_root.h:454
gnash::LogFile::getVerbosity
int getVerbosity() const
Definition: log.h:131
gnash::RcInitFile
Definition: rc.h:44
gnash::Player::setYPosition
void setYPosition(int yPos)
Definition: Player.h:111