Gnash
0.8.11dev
|
A top-level movie displaying a still bitmap. More...
#include <BitmapMovie.h>
Public Member Functions | |
BitmapMovie (as_object *object, const BitmapMovieDefinition *def, DisplayObject *parent) | |
virtual | ~BitmapMovie () |
virtual void | advance () |
BitmapMovies do need an advance method. | |
virtual float | frameRate () const |
virtual size_t | widthPixels () const |
virtual size_t | heightPixels () const |
virtual const std::string & | url () const |
Get the URL the Movie was loaded from. | |
virtual int | version () const |
Get the version of the Movie. | |
virtual const movie_definition * | definition () const |
![]() | |
Movie (as_object *object, const movie_definition *def, DisplayObject *parent) | |
virtual | ~Movie () |
virtual bool | ensureFrameLoaded (size_t) const |
virtual SWF::DefinitionTag * | exportedCharacter (const std::string &) |
Get an exported character definition by its symbol name. | |
virtual void | addCharacter (boost::uint16_t) |
Add a character to the list of known characters. | |
virtual bool | initializeCharacter (boost::uint16_t) |
Attempt to mark a character as initialized. | |
![]() | |
MovieClip (as_object *object, const movie_definition *def, Movie *root, DisplayObject *parent) | |
Construct a MovieClip instance. | |
virtual | ~MovieClip () |
virtual Movie * | get_root () const |
Return the relative root of this DisplayObject. | |
virtual bool | trackAsMenu () |
ActionScript property of Buttons and MovieClips altering mouse handling. | |
void | queueEvent (const event_id &id, int lvl) |
Queue event in the global action queue. | |
void | queueLoad () |
virtual MovieClip * | getAsRoot () |
Return the _root ActionScript property of this sprite. | |
virtual SWFRect | getBounds () const |
Get the composite bounds of all component drawing elements. | |
virtual bool | pointInShape (boost::int32_t x, boost::int32_t y) const |
Return true if the given point falls in this DisplayObject's shape. | |
virtual bool | pointInVisibleShape (boost::int32_t x, boost::int32_t y) const |
true if the given point falls in this DisplayObject's visible shape | |
virtual bool | pointInHitableShape (boost::int32_t x, boost::int32_t y) const |
size_t | get_current_frame () const |
Return 0-based index to current frame. | |
size_t | get_frame_count () const |
size_t | get_loaded_frames () const |
Return number of completely loaded frames of this sprite/movie. | |
size_t | get_bytes_total () const |
size_t | get_bytes_loaded () const |
const SWFRect & | get_frame_size () const |
DSOEXPORT void | setPlayState (PlayState s) |
Stop or play the sprite. | |
PlayState | getPlayState () const |
void | set_background_color (const rgba &color) |
virtual bool | mouseEnabled () const |
Return true if we have any mouse event handlers. | |
virtual InteractiveObject * | topmostMouseEntity (boost::int32_t x, boost::int32_t y) |
Return the topmost entity that the given point covers that can receive mouse events. NULL if none. Coords are in parent's frame. | |
const DisplayObject * | findDropTarget (boost::int32_t x, boost::int32_t y, DisplayObject *dragging) const |
Point coordinates in global twips. | |
void | setDropTarget (const std::string &tgt) |
const std::string & | getDropTarget () const |
DSOEXPORT void | goto_frame (size_t target_frame_number) |
Set the sprite state at the specified frame number. | |
bool | get_frame_number (const as_value &frame_spec, size_t &frameno) const |
Parse frame spec and return a 0-based frame number. | |
bool | goto_labeled_frame (const std::string &label) |
Look up the labeled frame, and jump to it. | |
virtual void | display (Renderer &renderer, const Transform &xform) |
Render this MovieClip. | |
void | draw (Renderer &renderer, const Transform &xform) |
Draw this MovieClip. | |
void | omit_display () |
void | swapDepths (DisplayObject *ch1, int newdepth) |
Swap depth of the given DisplayObjects in the DisplayList. | |
DisplayObject * | getDisplayObjectAtDepth (int depth) |
Return the DisplayObject at given depth in our DisplayList. | |
DisplayObject * | addDisplayListObject (DisplayObject *obj, int depth) |
Attach a DisplayObject at the specified depth. | |
DisplayObject * | add_display_object (const SWF::PlaceObject2Tag *tag, DisplayList &dlist) |
Place a DisplayObject or mask to the DisplayList. | |
void | move_display_object (const SWF::PlaceObject2Tag *tag, DisplayList &dlist) |
Proxy of DisplayList::moveDisplayObject() | |
void | replace_display_object (const SWF::PlaceObject2Tag *tag, DisplayList &dlist) |
Proxy of DisplayList::replaceDisplayObject() | |
void | remove_display_object (const SWF::PlaceObject2Tag *tag, DisplayList &dlist) |
Proxy of DisplayList::removeDisplayObject() | |
void | remove_display_object (int depth, int) |
Remove the object at the specified depth. | |
void | unloadMovie () |
void | attachCharacter (DisplayObject &newch, int depth, as_object *initObject) |
Attach the given DisplayObject instance to current display list. | |
virtual void | construct (as_object *initObj=0) |
Handle placement event. | |
void | destroy () |
Mark this sprite as destroyed. | |
void | add_action_buffer (const action_buffer *a) |
void | execute_init_action_buffer (const action_buffer &a, int cid) |
Execute the given init action buffer, if not done yet for the target DisplayObject id. | |
void | execute_action (const action_buffer &ab) |
Execute a single action buffer (DOACTION block) | |
MovieClip * | to_movie () |
virtual void | getLoadedMovie (Movie *newMovie) |
Accept a loaded Movie. | |
void | loadVariables (const std::string &urlstr, VariablesMethod sendVarsMethod) |
Load url-encoded variables from the given url, optionally sending variables from this timeline too. | |
bool | getTextFieldVariables (const ObjectURI &uri, as_value &val) |
Get TextField variables. | |
bool | setTextFieldVariables (const ObjectURI &uri, const as_value &val) |
TODO: this is also unlikely to be the best way to do it. | |
DisplayObject * | getDisplayListObject (const ObjectURI &uri) |
Search for a named object on the DisplayList. | |
as_object * | pathElement (const ObjectURI &uri) |
Overridden to look in DisplayList for a match. | |
virtual void | call_frame_actions (const as_value &frame_spec) |
Execute the actions for the specified frame. | |
MovieClip * | duplicateMovieClip (const std::string &newname, int newdepth, as_object *init_object=0) |
Duplicate this sprite in its timeline. | |
virtual void | mouseEvent (const event_id &id) |
Called when a mouse event affects this MovieClip. | |
void | notifyEvent (const event_id &id) |
Dispatch event handler(s), if any. | |
virtual as_environment & | get_environment () |
Return a reference to the variable scope of this DisplayObject. | |
void | set_textfield_variable (const ObjectURI &name, TextField *ch) |
Set a TextField variable to this timeline. | |
void | add_invalidated_bounds (InvalidatedRanges &ranges, bool force) |
Add the DisplayObject's invalidated bounds to the given ranges list. | |
const DisplayList & | getDisplayList () const |
int | getNextHighestDepth () const |
Return the next highest available depth. | |
void | setStreamSoundId (int id) |
Set the currently playing m_sound_stream_id. | |
void | removeMovieClip () |
Remove this sprite from the stage. | |
DynamicShape & | graphics () |
Direct access to the Graphics object for drawing. | |
virtual bool | handleFocus () |
Set focus to this MovieClip. | |
DSOEXPORT void | setVariables (const MovieVariables &vars) |
Set all variables in the given map with their corresponding values. | |
virtual void | visitNonProperties (KeyVisitor &v) const |
Enumerate child DisplayObjects. | |
void | cleanupDisplayList () |
void | queueAction (const action_buffer &buf) |
Queue the given action buffer. | |
void | constructAsScriptObject () |
Construct this instance as an ActionScript object. | |
bool | getLockRoot () const |
void | setLockRoot (bool lr) |
virtual int | getDefinitionVersion () const |
Return the version of the SWF this MovieClip was parsed from. | |
![]() | |
DisplayObjectContainer (as_object *object, DisplayObject *parent) | |
virtual | ~DisplayObjectContainer () |
size_t | numChildren () const |
![]() | |
InteractiveObject (as_object *object, DisplayObject *parent) | |
virtual | ~InteractiveObject () |
virtual StaticText * | getStaticText (std::vector< const SWF::TextRecord * > &, size_t &) |
Allow extraction of static text. | |
![]() | |
DisplayObject (movie_root &mr, as_object *object, DisplayObject *parent) | |
Construct a DisplayObject. | |
virtual | ~DisplayObject () |
DisplayObject * | parent () const |
Return the parent of this DisplayObject, or NULL if the DisplayObject has no parent. | |
void | set_parent (DisplayObject *parent) |
Set the parent of this DisplayObject. | |
int | get_depth () const |
void | set_depth (int d) |
int | getVolume () const |
Get sound volume for this DisplayObject. | |
void | setVolume (int vol) |
Set sound volume for this DisplayObject. | |
int | getWorldVolume () const |
Get concatenated sound volume for this DisplayObject. | |
const Transform & | transform () const |
void | setMatrix (const SWFMatrix &m, bool updateCache=false) |
Set local transform SWFMatrix for this DisplayObject. | |
void | set_x_scale (double factor) |
Set the xscale value of current SWFMatrix. | |
void | set_y_scale (double factor) |
Set the yscale value of current SWFMatrix. | |
void | set_rotation (double rot) |
Set the rotation value of current SWFMatrix. | |
virtual void | setWidth (double width) |
Set the width of this DisplayObject, modifying its SWFMatrix. | |
virtual void | setHeight (double height) |
Set the height of this DisplayObject, modifying its SWFMatrix. | |
void | setCxForm (const SWFCxForm &cx) |
boost::uint16_t | get_ratio () const |
void | set_ratio (boost::uint16_t r) |
int | get_clip_depth () const |
void | set_clip_depth (int d) |
See get_clip_depth() | |
bool | isMaskLayer () const |
bool | isDynamicMask () const |
DisplayObject * | getMask () const |
Return the DisplayObject masking this instance (if any) | |
void | setMask (DisplayObject *mask) |
void | set_name (const ObjectURI &uri) |
Set DisplayObject name, initializing the original target member. | |
const ObjectURI & | get_name () const |
std::auto_ptr< ExecutableCode > | get_event_handler (const event_id &id) const |
Get the built-in function handlers code for the given event. | |
void | add_event_handler (const event_id &id, const action_buffer &code) |
Set a built-in function handler for the given event. | |
bool | pointInBounds (boost::int32_t x, boost::int32_t y) const |
Return true if the given point falls in this DisplayObject's bounds. | |
bool | get_accept_anim_moves () const |
Return true if PlaceObjects tag are allowed to move this DisplayObject. | |
bool | isDynamic () const |
Was this DisplayObject dynamically created ? | |
void | setDynamic () |
Mark this DisplayObject as dynamically created. | |
void | transformedByScript () |
Call this function when the sprite has been transformed due to ActionScript code. | |
void | set_visible (bool visible) |
Set whether this DisplayObject should be rendered. | |
bool | visible () const |
bool | hasEventHandler (const event_id &id) const |
Return true if an handler for the given event is defined. | |
bool | invalidated () const |
Return whether this DisplayObject has been invalidated or not. | |
bool | childInvalidated () const |
Return whether this DisplayObject has and invalidated child or not. | |
virtual void | update () |
Notify a change in the DisplayObject's appearance. | |
void | set_invalidated () |
This function marks the DisplayObject as being modified in aspect and keeps track of current invalidated bounds the first time it's called after each call to clear_invalidated(). | |
void | set_invalidated (const char *debug_file, int debug_line) |
void | extend_invalidated_bounds (const InvalidatedRanges &ranges) |
void | set_child_invalidated () |
void | clear_invalidated () |
bool | unload () |
Unload this instance from the stage. | |
bool | unloaded () const |
Return true if this DisplayObject was unloaded from the stage. | |
bool | isDestroyed () const |
Return true if this DisplayObject was destroyed. | |
bool | boundsInClippingArea (Renderer &renderer) const |
std::string | getTargetPath () const |
Return full path to this object, in slash notation. | |
const std::string & | getOrigTarget () const |
std::string DSOEXPORT | getTarget () const |
Return full path to this object, in dot notation. | |
virtual bool | isSelectableTextField () const |
Return true if this DisplayObject is a selectable TextField. | |
bool DSOEXPORT | allowHandCursor () const |
Return true if this DisplayObject allows turning the cursor into an hand shape when it happens to be the one receiving mouse events. | |
ObjectURI | getNextUnnamedInstanceName () |
Used to assign a name to unnamed instances. | |
BlendMode | getBlendMode () const |
void | setBlendMode (BlendMode bm) |
virtual void | killFocus () |
Some DisplayObjects require actions on losing focus. | |
double | rotation () const |
double | scaleX () const |
double | scaleY () const |
as_object * | object () const |
virtual void | markReachableResources () const |
Mark all reachable resources. | |
boost::tribool | focusRect () const |
void | focusRect (boost::tribool focus) |
![]() | |
GcResource (GC &gc) | |
Create a Garbage-collected resource associated with a GC. | |
void | setReachable () const |
Mark this resource as being reachable. | |
bool | isReachable () const |
Return true if this object is marked as reachable. | |
void | clearReachable () const |
Clear the reachable flag. |
A top-level movie displaying a still bitmap.
A loaded BitmapMovie is tested in misc-ming.all/loadMovieTest.swf to have a DisplayList, so it is appropriate that it inherits from MovieClip.
gnash::BitmapMovie::BitmapMovie | ( | as_object * | object, |
const BitmapMovieDefinition * | def, | ||
DisplayObject * | parent | ||
) |
|
inlinevirtual |
|
inlinevirtual |
BitmapMovies do need an advance method.
This may be for play() or other inherited methods.
Implements gnash::Movie.
|
inlinevirtual |
Implements gnash::Movie.
|
inlinevirtual |
Implements gnash::Movie.
References gnash::BitmapMovieDefinition::get_frame_rate().
|
inlinevirtual |
Implements gnash::Movie.
References gnash::BitmapMovieDefinition::get_height_pixels().
|
inlinevirtual |
Get the URL the Movie was loaded from.
Implements gnash::Movie.
References gnash::BitmapMovieDefinition::get_url().
|
inlinevirtual |
Get the version of the Movie.
Implements gnash::Movie.
References gnash::BitmapMovieDefinition::get_version().
|
inlinevirtual |
Implements gnash::Movie.
References gnash::BitmapMovieDefinition::get_width_pixels().