19 #ifndef GNASH_SWF_PLACEOBJECT2TAG_H
20 #define GNASH_SWF_PLACEOBJECT2TAG_H
23 #include <boost/ptr_container/ptr_vector.hpp>
35 class movie_definition;
106 return m_has_flags2 & (HAS_CHARACTER_MASK | MOVE_MASK);
109 boost::uint16_t
getRatio()
const {
return _ratio; }
111 boost::uint16_t
getID()
const {
return _id; }
112 const std::string&
getName()
const {
return m_name; }
118 bool hasClipDepth()
const {
return m_has_flags2 & HAS_CLIP_DEPTH_MASK; };
119 bool hasName()
const {
return m_has_flags2 & HAS_NAME_MASK; }
120 bool hasRatio()
const {
return m_has_flags2 & HAS_RATIO_MASK; }
121 bool hasCxform()
const {
return m_has_flags2 & HAS_CXFORM_MASK; }
122 bool hasMatrix()
const {
return m_has_flags2 & HAS_MATRIX_MASK; }
123 bool hasCharacter()
const {
return m_has_flags2 & HAS_CHARACTER_MASK; }
125 bool hasImage()
const {
return m_has_flags3 & HAS_IMAGE_MASK; }
128 return m_has_flags3 & HAS_CLASS_NAME_MASK;
132 return m_has_flags3 & HAS_BITMAP_CACHING_MASK;
136 return m_has_flags3 & HAS_BLEND_MODE_MASK;
140 return m_has_flags3 & HAS_FILTERS_MASK;
165 boost::uint8_t m_has_flags2;
166 boost::uint8_t m_has_flags3;
170 boost::uint16_t _ratio;
174 boost::uint8_t _blendMode;
185 enum has_flags2_mask_e
187 HAS_CLIP_ACTIONS_MASK = 1 << 7,
188 HAS_CLIP_DEPTH_MASK = 1 << 6,
189 HAS_NAME_MASK = 1 << 5,
190 HAS_RATIO_MASK = 1 << 4,
191 HAS_CXFORM_MASK = 1 << 3,
192 HAS_MATRIX_MASK = 1 << 2,
193 HAS_CHARACTER_MASK = 1 << 1,
197 enum has_flags3_mask_e
199 HAS_IMAGE_MASK = 1 << 4,
200 HAS_CLASS_NAME_MASK = 1 << 3,
201 HAS_BITMAP_CACHING_MASK = 1 << 2,
202 HAS_BLEND_MODE_MASK = 1 << 1,
203 HAS_FILTERS_MASK = 1 << 0
206 const movie_definition& _movie_def;
208 ActionBuffers _actionBuffers;
210 EventHandlers _eventHandlers;
217 #endif // GNASH_SWF_PLACEOBJECT2TAG_H
int getClipDepth() const
Definition: PlaceObject2Tag.h:110
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:95
A MovieClip is a container for DisplayObjects.
Definition: MovieClip.h:83
bool hasClipDepth() const
Definition: PlaceObject2Tag.h:118
~PlaceObject2Tag()
Definition: PlaceObject2Tag.cpp:479
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:30
Definition: SWFMatrix.h:53
bool hasBlendMode() const
Definition: PlaceObject2Tag.h:135
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
void executeState(MovieClip *m, DisplayList &dlist) const
Place/move/whatever our object in the given movie.
Definition: PlaceObject2Tag.cpp:457
int getPlaceType() const
Definition: PlaceObject2Tag.h:105
bool hasName() const
Definition: PlaceObject2Tag.h:119
SWF Tag PlaceObject (4) or PlaceObject2 (9)
Definition: PlaceObject2Tag.h:85
bool hasMatrix() const
Definition: PlaceObject2Tag.h:122
bool hasCxform() const
Definition: PlaceObject2Tag.h:121
void read(SWFStream &in, TagType tag)
Read SWF::PLACEOBJECT or SWF::PLACEOBJECT2.
Definition: PlaceObject2Tag.cpp:442
Definition: GnashKey.h:164
bool hasClipActions() const
Definition: PlaceObject2Tag.h:117
boost::uint16_t getID() const
Definition: PlaceObject2Tag.h:111
bool hasClassName() const
Definition: PlaceObject2Tag.h:127
DisplayList tag.
Definition: DisplayListTag.h:41
const SWFCxForm & getCxform() const
Definition: PlaceObject2Tag.h:114
PlaceObject2Tag(const movie_definition &def)
Definition: PlaceObject2Tag.cpp:44
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:43
boost::ptr_vector< swf_event > EventHandlers
Definition: PlaceObject2Tag.h:90
boost::uint8_t getBlendMode() const
Get an associated blend mode.
Definition: PlaceObject2Tag.h:147
const SWFMatrix & getMatrix() const
Definition: PlaceObject2Tag.h:113
boost::ptr_vector< action_buffer > ActionBuffers
Definition: PlaceObject2Tag.h:89
const std::string & getName() const
Definition: PlaceObject2Tag.h:112
bool hasRatio() const
Definition: PlaceObject2Tag.h:120
const EventHandlers & getEventHandlers() const
Definition: PlaceObject2Tag.h:115
boost::uint16_t getRatio() const
Definition: PlaceObject2Tag.h:109
static void loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &r)
Definition: PlaceObject2Tag.cpp:484
bool hasBitmapCaching() const
Definition: PlaceObject2Tag.h:131
Definition: GnashKey.h:159
bool hasCharacter() const
Definition: PlaceObject2Tag.h:123
bool hasImage() const
Definition: PlaceObject2Tag.h:125
bool hasFilters() const
Definition: PlaceObject2Tag.h:139
A list of on-stage DisplayObjects, ordered by depth.
Definition: DisplayList.h:64
Definition: GnashKey.h:331
SWF stream wrapper class.
Definition: SWFStream.h:58