Gnash  0.8.11dev
Public Member Functions | Protected Attributes | List of all members
gnash::SWF::DisplayListTag Class Referenceabstract

DisplayList tag. More...

#include <DisplayListTag.h>

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

Public Member Functions

 DisplayListTag (int depth)
 
virtual ~DisplayListTag ()
 
virtual void executeState (MovieClip *m, DisplayList &dlist) const =0
 All DisplayList tags are state tags. More...
 
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
 

Protected Attributes

int _depth
 

Additional Inherited Members

- Public Types inherited from gnash::SWF::ControlTag
enum  Type { TAG_ACTION = 1 << 0, TAG_DLIST = 1 << 1 }
 Type of ControlTag. More...
 
- Protected Member Functions inherited from gnash::ref_counted
virtual ~ref_counted ()
 

Detailed Description

DisplayList tag.

DisplayList tags are all versions of PlaceObject and RemoveObject. They modify the DisplayList of a movie or sprite by placing, moving, replacing or removing DisplayObjects at depths.

Constructor & Destructor Documentation

◆ DisplayListTag()

gnash::SWF::DisplayListTag::DisplayListTag ( int  depth)
inline

◆ ~DisplayListTag()

virtual gnash::SWF::DisplayListTag::~DisplayListTag ( )
inlinevirtual

References executeState(), and gnash::key::m.

Member Function Documentation

◆ executeState()

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

All DisplayList tags are state tags.

Reimplemented from gnash::SWF::ControlTag.

Implemented in gnash::SWF::PlaceObject2Tag, and gnash::SWF::RemoveObjectTag.

Referenced by ~DisplayListTag().

◆ getDepth()

int gnash::SWF::DisplayListTag::getDepth ( ) const
inline

Return the depth affected by this DisplayList tag.

NOTE: the returned depth is always in the static depth zone (DisplayObject::staticDepthOffset .. -1)

References _depth.

Referenced by gnash::MovieClip::add_display_object(), gnash::MovieClip::move_display_object(), gnash::MovieClip::remove_display_object(), and gnash::MovieClip::replace_display_object().

Member Data Documentation

◆ _depth

int gnash::SWF::DisplayListTag::_depth
protected

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