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
enum  Type { TAG_ACTION = 1 << 0, TAG_DLIST = 1 << 1 }
 Type of ControlTag. More...
 

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

§ ActionBuffers

§ EventHandlers

Constructor & Destructor Documentation

§ PlaceObject2Tag()

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

Referenced by loader().

§ ~PlaceObject2Tag()

gnash::SWF::PlaceObject2Tag::~PlaceObject2Tag ( )

Member Function Documentation

§ executeState()

void gnash::SWF::PlaceObject2Tag::executeState ( MovieClip m,
DisplayList dlist 
) const
virtual

§ getBlendMode()

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().

§ getClipDepth()

int gnash::SWF::PlaceObject2Tag::getClipDepth ( ) const
inline

§ getCxform()

const SWFCxForm& gnash::SWF::PlaceObject2Tag::getCxform ( ) const
inline

§ getEventHandlers()

const EventHandlers& gnash::SWF::PlaceObject2Tag::getEventHandlers ( ) const
inline

§ getID()

std::uint16_t gnash::SWF::PlaceObject2Tag::getID ( ) const
inline

§ getMatrix()

const SWFMatrix& gnash::SWF::PlaceObject2Tag::getMatrix ( ) const
inline

§ getName()

const std::string& gnash::SWF::PlaceObject2Tag::getName ( ) const
inline

§ getPlaceType()

int gnash::SWF::PlaceObject2Tag::getPlaceType ( ) const
inline

Referenced by executeState().

§ getRatio()

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

§ hasBitmapCaching()

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

§ hasBlendMode()

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

§ hasCharacter()

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

§ hasClassName()

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

§ hasClipActions()

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

§ hasClipDepth()

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

§ hasCxform()

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

§ hasFilters()

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

§ hasImage()

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

§ hasMatrix()

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

§ hasName()

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

§ hasRatio()

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

§ loader()

void gnash::SWF::PlaceObject2Tag::loader ( SWFStream in,
TagType  tag,
movie_definition m,
const RunResources r 
)
static

§ read()

void gnash::SWF::PlaceObject2Tag::read ( SWFStream in,
TagType  tag 
)

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