22 #ifndef GNASH_SWF_MOVIE_H 23 #define GNASH_SWF_MOVIE_H 25 #include <boost/intrusive_ptr.hpp> 54 typedef std::map<std::uint16_t, bool> Characters;
66 return _def->get_frame_rate();
70 return _def->get_width_pixels();
74 return _def->get_height_pixels();
78 return _def->ensure_frame_loaded(frameNo);
90 const std::string&
url()
const {
91 return _def->get_url();
98 return _def->get_version();
142 Characters _characters;
145 const boost::intrusive_ptr<const SWFMovieDefinition> _def;
151 #endif // GNASH_MOVIE_INSTANCE_H virtual SWF::DefinitionTag * exportedCharacter(const std::string &symbol)
Get an exported character definition by its symbol name.
Definition: SWFMovie.cpp:86
virtual size_t widthPixels() const
Definition: SWFMovie.h:69
DSOTEXPORT SWFMovie(as_object *object, const SWFMovieDefinition *def, DisplayObject *parent)
Definition: SWFMovie.cpp:34
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:95
const movie_definition * definition() const
Definition: SWFMovie.h:135
DisplayObject is the base class for all DisplayList objects.
Definition: DisplayObject.h:168
virtual float frameRate() const
Definition: SWFMovie.h:65
DisplayObject * parent() const
Return the parent of this DisplayObject, or NULL if the DisplayObject has no parent.
Definition: DisplayObject.h:252
virtual ~SWFMovie()
Definition: SWFMovie.h:61
void construct(as_object *init=nullptr)
Handle a top-level movie on stage placement.
Definition: SWFMovie.cpp:44
A top-level, standalone Movie that can be loaded and played.
Definition: Movie.h:46
virtual bool ensureFrameLoaded(size_t frameNo) const
Definition: SWFMovie.h:77
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
Immutable data representing the definition of a movie display element.
Definition: DefinitionTag.h:47
The base class for all ActionScript objects.
Definition: as_object.h:161
Immutable definition of a SWF movie's contents.
Definition: SWFMovieDefinition.h:158
bool initializeCharacter(std::uint16_t id)
Attempt to mark a character as initialized.
Definition: SWFMovie.cpp:104
const std::string & url() const
Get the URL of the SWFMovie's definition.
Definition: SWFMovie.h:90
virtual void advance()
Advance to the next frame of the MovieClip.
Definition: SWFMovie.cpp:65
Stateful Movie object (a special kind of sprite)
Definition: SWFMovie.h:50
int version() const
Get the version of the SWFMovie.
Definition: SWFMovie.h:97
virtual size_t heightPixels() const
Definition: SWFMovie.h:73
#define DSOTEXPORT
Definition: dsodefs.h:63
void addCharacter(std::uint16_t id)
Add a character to the list of known characters.
Definition: SWFMovie.cpp:96