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);
111 std::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 std::uint8_t m_has_flags2;
166 std::uint8_t m_has_flags3;
170 std::uint16_t _ratio;
174 std::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
208 ActionBuffers _actionBuffers;
210 EventHandlers _eventHandlers;
217 #endif // GNASH_SWF_PLACEOBJECT2TAG_H bool hasName() const
Definition: PlaceObject2Tag.h:119
bool hasClassName() const
Definition: PlaceObject2Tag.h:127
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
~PlaceObject2Tag()
Definition: PlaceObject2Tag.cpp:480
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:30
bool hasRatio() const
Definition: PlaceObject2Tag.h:120
Definition: SWFMatrix.h:53
void executeState(MovieClip *m, DisplayList &dlist) const
Place/move/whatever our object in the given movie.
Definition: PlaceObject2Tag.cpp:458
const EventHandlers & getEventHandlers() const
Definition: PlaceObject2Tag.h:115
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
int getPlaceType() const
Definition: PlaceObject2Tag.h:105
std::uint16_t getID() const
Definition: PlaceObject2Tag.h:111
SWF Tag PlaceObject (4) or PlaceObject2 (9)
Definition: PlaceObject2Tag.h:85
std::uint16_t getRatio() const
Definition: PlaceObject2Tag.h:109
void read(SWFStream &in, TagType tag)
Read SWF::PLACEOBJECT or SWF::PLACEOBJECT2.
Definition: PlaceObject2Tag.cpp:443
Definition: GnashKey.h:164
DisplayList tag.
Definition: DisplayListTag.h:41
bool hasBlendMode() const
Definition: PlaceObject2Tag.h:135
PlaceObject2Tag(const movie_definition &def)
Definition: PlaceObject2Tag.cpp:45
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:53
boost::ptr_vector< swf_event > EventHandlers
Definition: PlaceObject2Tag.h:90
bool hasMatrix() const
Definition: PlaceObject2Tag.h:122
bool hasCharacter() const
Definition: PlaceObject2Tag.h:123
const SWFCxForm & getCxform() const
Definition: PlaceObject2Tag.h:114
int getClipDepth() const
Definition: PlaceObject2Tag.h:110
boost::ptr_vector< action_buffer > ActionBuffers
Definition: PlaceObject2Tag.h:89
bool hasClipDepth() const
Definition: PlaceObject2Tag.h:118
std::uint8_t getBlendMode() const
Get an associated blend mode.
Definition: PlaceObject2Tag.h:147
bool hasImage() const
Definition: PlaceObject2Tag.h:125
bool hasBitmapCaching() const
Definition: PlaceObject2Tag.h:131
bool hasClipActions() const
Definition: PlaceObject2Tag.h:117
bool hasCxform() const
Definition: PlaceObject2Tag.h:121
bool hasFilters() const
Definition: PlaceObject2Tag.h:139
static void loader(SWFStream &in, TagType tag, movie_definition &m, const RunResources &r)
Definition: PlaceObject2Tag.cpp:485
Definition: GnashKey.h:159
const std::string & getName() const
Definition: PlaceObject2Tag.h:112
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
const SWFMatrix & getMatrix() const
Definition: PlaceObject2Tag.h:113