Gnash  0.8.11dev
Public Types | Public Member Functions | Static Public Member Functions | List of all members
gnash::SWF::PlaceObject2Tag Class Reference

SWF Tag PlaceObject (4) or PlaceObject2 (9) More...

#include <PlaceObject2Tag.h>

Inheritance diagram for gnash::SWF::PlaceObject2Tag:
gnash::SWF::DisplayListTag gnash::SWF::ControlTag gnash::ref_counted

Public Types

typedef boost::ptr_vector< action_bufferActionBuffers
 
typedef boost::ptr_vector< swf_eventEventHandlers
 
- Public Types inherited from gnash::SWF::ControlTag

Public Member Functions

 PlaceObject2Tag (const movie_definition &def)
 
 ~PlaceObject2Tag ()
 
void read (SWFStream &in, TagType tag)
 Read SWF::PLACEOBJECT or SWF::PLACEOBJECT2. More...
 
void executeState (MovieClip *m, DisplayList &dlist) const
 Place/move/whatever our object in the given movie. More...
 
int getPlaceType () const
 
std::uint16_t getRatio () const
 
int getClipDepth () const
 
std::uint16_t getID () const
 
const std::string & getName () const
 
const SWFMatrixgetMatrix () const
 
const SWFCxFormgetCxform () const
 
const EventHandlersgetEventHandlers () 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
 
std::uint8_t getBlendMode () const
 Get an associated blend mode. More...
 
- Public Member Functions inherited from gnash::SWF::DisplayListTag
 DisplayListTag (int depth)
 
virtual ~DisplayListTag ()
 
int getDepth () const
 Return the depth affected by this DisplayList tag. More...
 
- Public Member Functions inherited from gnash::SWF::ControlTag
virtual ~ControlTag ()
 
virtual void executeActions (MovieClip *, DisplayList &) const
 Execute Action tags. More...
 
- Public Member Functions inherited from gnash::ref_counted
 ref_counted ()
 
 ref_counted (const ref_counted &)
 
void add_ref () const
 
void drop_ref () const
 
long get_ref_count () const
 

Static Public Member Functions

static void loader (SWFStream &in, TagType tag, movie_definition &m, const RunResources &r)
 

Additional Inherited Members

- Protected Member Functions inherited from gnash::ref_counted
virtual ~ref_counted ()
 
- Protected Attributes inherited from gnash::SWF::DisplayListTag
int _depth
 

Detailed Description

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.

Member Typedef Documentation

Constructor & Destructor Documentation

gnash::SWF::PlaceObject2Tag::PlaceObject2Tag ( const movie_definition def)
gnash::SWF::PlaceObject2Tag::~PlaceObject2Tag ( )

Member Function Documentation

void gnash::SWF::PlaceObject2Tag::executeState ( MovieClip m,
DisplayList dlist 
) const
virtual
std::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
const SWFCxForm& gnash::SWF::PlaceObject2Tag::getCxform ( ) const
inline
const EventHandlers& gnash::SWF::PlaceObject2Tag::getEventHandlers ( ) const
inline
std::uint16_t gnash::SWF::PlaceObject2Tag::getID ( ) const
inline
const SWFMatrix& gnash::SWF::PlaceObject2Tag::getMatrix ( ) const
inline
const std::string& gnash::SWF::PlaceObject2Tag::getName ( ) const
inline
int gnash::SWF::PlaceObject2Tag::getPlaceType ( ) const
inline

Referenced by executeState(), and PlaceObject2Tag().

std::uint16_t gnash::SWF::PlaceObject2Tag::getRatio ( ) const
inline
bool gnash::SWF::PlaceObject2Tag::hasBitmapCaching ( ) const
inline

Referenced by PlaceObject2Tag().

bool gnash::SWF::PlaceObject2Tag::hasBlendMode ( ) const
inline
bool gnash::SWF::PlaceObject2Tag::hasCharacter ( ) const
inline

Referenced by PlaceObject2Tag().

bool gnash::SWF::PlaceObject2Tag::hasClassName ( ) const
inline

Referenced by PlaceObject2Tag().

bool gnash::SWF::PlaceObject2Tag::hasClipActions ( ) const
inline

Referenced by PlaceObject2Tag().

bool gnash::SWF::PlaceObject2Tag::hasClipDepth ( ) const
inline

Referenced by PlaceObject2Tag().

bool gnash::SWF::PlaceObject2Tag::hasCxform ( ) const
inline
bool gnash::SWF::PlaceObject2Tag::hasFilters ( ) const
inline

Referenced by PlaceObject2Tag().

bool gnash::SWF::PlaceObject2Tag::hasImage ( ) const
inline

Referenced by PlaceObject2Tag().

bool gnash::SWF::PlaceObject2Tag::hasMatrix ( ) const
inline
bool gnash::SWF::PlaceObject2Tag::hasName ( ) const
inline
bool gnash::SWF::PlaceObject2Tag::hasRatio ( ) const
inline
void gnash::SWF::PlaceObject2Tag::loader ( SWFStream in,
TagType  tag,
movie_definition m,
const RunResources r 
)
static
void gnash::SWF::PlaceObject2Tag::read ( SWFStream in,
TagType  tag 
)

The documentation for this class was generated from the following files: