Gnash
0.8.10
|
SWF Tag PlaceObject (4) or PlaceObject2 (9) More...
#include <PlaceObject2Tag.h>
Public Types | |
typedef boost::ptr_vector < action_buffer > | ActionBuffers |
typedef boost::ptr_vector < swf_event > | EventHandlers |
Public Member Functions | |
PlaceObject2Tag (const movie_definition &def) | |
~PlaceObject2Tag () | |
void | read (SWFStream &in, TagType tag) |
Read SWF::PLACEOBJECT or SWF::PLACEOBJECT2. | |
void | executeState (MovieClip *m, DisplayList &dlist) const |
Place/move/whatever our object in the given movie. | |
int | getPlaceType () const |
boost::uint16_t | getRatio () const |
int | getClipDepth () const |
boost::uint16_t | getID () const |
const std::string & | getName () const |
const SWFMatrix & | getMatrix () const |
const SWFCxForm & | getCxform () const |
const EventHandlers & | getEventHandlers () const |
bool | hasClipActions () const |
bool | hasClipDepth () const |
bool | hasName () const |
bool | hasRatio () const |
bool | hasCxform () const |
bool | hasMatrix () const |
bool | hasCharacter () const |
bool | hasImage () const |
bool | hasClassName () const |
bool | hasBitmapCaching () const |
bool | hasBlendMode () const |
bool | hasFilters () const |
boost::uint8_t | getBlendMode () const |
Get an associated blend mode. | |
Static Public Member Functions | |
static void | loader (SWFStream &in, TagType tag, movie_definition &m, const RunResources &r) |
SWF Tag PlaceObject (4) or PlaceObject2 (9)
This tag is owned by the movie_definiton class
The PlaceObject tags can be used to:
In any case a single Timeline depth is affected. Postcondition of this tag execution is presence of an instance at the affected depth. See getDepth().
_id: The ID of the DisplayObject to be added. It will be seeked in the CharacterDictionary.
m_name: The name to give to the newly created instance if m_has_name is true. If m_has_name is false, the new instance will be assigned a sequential name in the form 'instanceN', where N is incremented at each call, starting from 1.
event_handlers
m_depth: The depth to assign to the newly created instance.
m_color_transform: The color transform to apply to the newly created instance.
m_matrix: The SWFMatrix transform to apply to the newly created instance.
_ratio
m_clip_depth: If != DisplayObject::noClipDepthValue, mark the created instance as a clipping layer. The shape of the placed DisplayObject will be used as a mask for all higher depths up to this value.
typedef boost::ptr_vector<action_buffer> gnash::SWF::PlaceObject2Tag::ActionBuffers |
typedef boost::ptr_vector<swf_event> gnash::SWF::PlaceObject2Tag::EventHandlers |
gnash::SWF::PlaceObject2Tag::PlaceObject2Tag | ( | const movie_definition & | def | ) |
Referenced by loader().
gnash::SWF::PlaceObject2Tag::~PlaceObject2Tag | ( | ) |
void gnash::SWF::PlaceObject2Tag::executeState | ( | MovieClip * | m, |
DisplayList & | dlist | ||
) | const [virtual] |
Place/move/whatever our object in the given movie.
Implements gnash::SWF::DisplayListTag.
References getPlaceType(), gnash::MovieClip::add_display_object(), gnash::MovieClip::move_display_object(), gnash::MovieClip::replace_display_object(), and gnash::MovieClip::remove_display_object().
boost::uint8_t gnash::SWF::PlaceObject2Tag::getBlendMode | ( | ) | const [inline] |
Get an associated blend mode.
This is stored as a uint8_t to allow for future expansion of blend modes.
Referenced by gnash::MovieClip::add_display_object().
int gnash::SWF::PlaceObject2Tag::getClipDepth | ( | ) | const [inline] |
Referenced by gnash::MovieClip::add_display_object().
const SWFCxForm& gnash::SWF::PlaceObject2Tag::getCxform | ( | ) | const [inline] |
const EventHandlers& gnash::SWF::PlaceObject2Tag::getEventHandlers | ( | ) | const [inline] |
Referenced by gnash::MovieClip::add_display_object().
boost::uint16_t gnash::SWF::PlaceObject2Tag::getID | ( | ) | const [inline] |
Referenced by gnash::MovieClip::add_display_object(), and gnash::MovieClip::replace_display_object().
const SWFMatrix& gnash::SWF::PlaceObject2Tag::getMatrix | ( | ) | const [inline] |
const std::string& gnash::SWF::PlaceObject2Tag::getName | ( | ) | const [inline] |
Referenced by gnash::MovieClip::add_display_object(), and gnash::MovieClip::replace_display_object().
int gnash::SWF::PlaceObject2Tag::getPlaceType | ( | ) | const [inline] |
Referenced by executeState().
boost::uint16_t gnash::SWF::PlaceObject2Tag::getRatio | ( | ) | const [inline] |
bool gnash::SWF::PlaceObject2Tag::hasBitmapCaching | ( | ) | const [inline] |
bool gnash::SWF::PlaceObject2Tag::hasBlendMode | ( | ) | const [inline] |
Referenced by gnash::MovieClip::add_display_object().
bool gnash::SWF::PlaceObject2Tag::hasCharacter | ( | ) | const [inline] |
bool gnash::SWF::PlaceObject2Tag::hasClassName | ( | ) | const [inline] |
bool gnash::SWF::PlaceObject2Tag::hasClipActions | ( | ) | const [inline] |
bool gnash::SWF::PlaceObject2Tag::hasClipDepth | ( | ) | const [inline] |
bool gnash::SWF::PlaceObject2Tag::hasCxform | ( | ) | const [inline] |
Referenced by gnash::MovieClip::move_display_object(), and gnash::MovieClip::replace_display_object().
bool gnash::SWF::PlaceObject2Tag::hasFilters | ( | ) | const [inline] |
bool gnash::SWF::PlaceObject2Tag::hasImage | ( | ) | const [inline] |
bool gnash::SWF::PlaceObject2Tag::hasMatrix | ( | ) | const [inline] |
Referenced by gnash::MovieClip::move_display_object(), and gnash::MovieClip::replace_display_object().
bool gnash::SWF::PlaceObject2Tag::hasName | ( | ) | const [inline] |
Referenced by gnash::MovieClip::add_display_object(), and gnash::MovieClip::replace_display_object().
bool gnash::SWF::PlaceObject2Tag::hasRatio | ( | ) | const [inline] |
Referenced by gnash::MovieClip::move_display_object(), and gnash::MovieClip::replace_display_object().
void gnash::SWF::PlaceObject2Tag::loader | ( | SWFStream & | in, |
TagType | tag, | ||
movie_definition & | m, | ||
const RunResources & | r | ||
) | [static] |
References assert, gnash::SWF::PLACEOBJECT, gnash::SWF::PLACEOBJECT2, gnash::SWF::PLACEOBJECT3, PlaceObject2Tag(), and gnash::movie_definition::addControlTag().
Referenced by gnash::SWF::addDefaultLoaders().
Read SWF::PLACEOBJECT or SWF::PLACEOBJECT2.
References gnash::SWF::PLACEOBJECT, and gnash::SWF::PLACEOBJECT2.