Gnash
0.8.11dev
|
Immutable data representing the definition of a movie display element. More...
#include <DefinitionTag.h>
Public Member Functions | |
virtual | ~DefinitionTag () |
virtual DisplayObject * | createDisplayObject (Global_as &gl, DisplayObject *parent) const =0 |
Create a DisplayObject with the given parent. More... | |
virtual DSOTEXPORT void | executeState (MovieClip *m, DisplayList &) const |
Executing a DefinitionTag adds its id to list of known characters. More... | |
std::uint16_t | id () const |
The immutable id of the DefinitionTag. More... | |
![]() | |
virtual | ~ControlTag () |
virtual void | executeActions (MovieClip *, DisplayList &) const |
Execute Action tags. More... | |
![]() | |
ref_counted () | |
ref_counted (const ref_counted &) | |
void | add_ref () const |
void | drop_ref () const |
long | get_ref_count () const |
Protected Member Functions | |
DefinitionTag (std::uint16_t id) | |
![]() | |
virtual | ~ref_counted () |
Additional Inherited Members | |
![]() | |
enum | Type { TAG_ACTION = 1 << 0, TAG_DLIST = 1 << 1 } |
Type of ControlTag. More... | |
Immutable data representing the definition of a movie display element.
TODO: rename this class so it's not the same as the SWF spec. It doesn't exactly correspond to the DefinitionTag defined there.
|
inlinevirtual |
|
inlineprotected |
|
pure virtual |
Create a DisplayObject with the given parent.
This function will determine the correct prototype and associated object using the passed global.
gl | The global object used to set prototype and associated object. Calling this function creates a new DisplayObject from the DefinitionTag and adds it as a child of the specified parent DisplayObject. |
Implemented in gnash::SWF::DefineVideoStreamTag, gnash::SWF::DefineTextTag, gnash::SWF::DefineShapeTag, gnash::SWF::DefineMorphShapeTag, gnash::SWF::DefineEditTextTag, gnash::SWF::DefineButtonTag, gnash::sprite_definition, gnash::SWFMovieDefinition, and gnash::BitmapMovieDefinition.
Referenced by gnash::MovieClip::add_display_object(), and gnash::MovieClip::replace_display_object().
|
virtual |
Executing a DefinitionTag adds its id to list of known characters.
The process is different for imported DefinitionTags, which are added with a new id.
Reimplemented from gnash::SWF::ControlTag.
References gnash::key::m.
|
inline |
The immutable id of the DefinitionTag.
Referenced by gnash::SWFMovieDefinition::registerExport(), and gnash::sprite_definition::set_loading_sound_stream_id().