|
Gnash
0.8.11dev
|
SWF Tag PlaceObject (4) or PlaceObject2 (9) More...
#include <PlaceObject2Tag.h>
Public Types | |
| typedef boost::ptr_vector< action_buffer > | ActionBuffers |
| typedef boost::ptr_vector< swf_event > | EventHandlers |
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 SWFMatrix & | getMatrix () const |
| const SWFCxForm & | getCxform () const |
| const EventHandlers & | getEventHandlers () 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 |
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.
| typedef boost::ptr_vector<action_buffer> gnash::SWF::PlaceObject2Tag::ActionBuffers |
| typedef boost::ptr_vector<swf_event> gnash::SWF::PlaceObject2Tag::EventHandlers |
| gnash::SWF::PlaceObject2Tag::PlaceObject2Tag | ( | const movie_definition & | def | ) |
References _, gnash::SWF::DisplayListTag::_depth, gnash::SWFStream::align(), gnash::arraySize(), gnash::event_id::CONSTRUCT, gnash::event_id::DATA, gnash::event_id::DRAG_OUT, gnash::event_id::DRAG_OVER, gnash::SWFStream::ensureBytes(), gnash::event_id::ENTER_FRAME, gnash::SWFStream::get_tag_end_position(), gnash::movie_definition::get_version(), getPlaceType(), hasBitmapCaching(), hasBlendMode(), hasCharacter(), hasClassName(), hasClipActions(), hasClipDepth(), hasCxform(), hasFilters(), hasImage(), hasMatrix(), hasName(), hasRatio(), gnash::key::i, IF_VERBOSE_MALFORMED_SWF, IF_VERBOSE_PARSE, gnash::event_id::INITIALIZE, gnash::key::INVALID, gnash::event_id::KEY_DOWN, gnash::event_id::KEY_PRESS, gnash::event_id::KEY_UP, gnash::event_id::LOAD, LOG_ONCE, gnash::log_parse(), gnash::log_swferror(), gnash::log_unimpl(), gnash::event_id::MOUSE_DOWN, gnash::event_id::MOUSE_MOVE, gnash::event_id::MOUSE_UP, gnash::DisplayObject::noClipDepthValue, gnash::event_id::PRESS, gnash::filter_factory::read(), gnash::SWFStream::read_string(), gnash::SWFStream::read_u16(), gnash::SWFStream::read_u32(), gnash::SWFStream::read_u8(), gnash::readCxFormRGB(), gnash::readCxFormRGBA(), gnash::readSWFMatrix(), gnash::event_id::RELEASE, gnash::event_id::RELEASE_OUTSIDE, gnash::event_id::ROLL_OUT, gnash::event_id::ROLL_OVER, gnash::DisplayObject::staticDepthOffset, gnash::SWFStream::tell(), gnash::event_id::UNLOAD, UNUSED, and test::v.
Referenced by loader().
| gnash::SWF::PlaceObject2Tag::~PlaceObject2Tag | ( | ) |
|
virtual |
Place/move/whatever our object in the given movie.
Implements gnash::SWF::DisplayListTag.
References gnash::MovieClip::add_display_object(), getPlaceType(), gnash::MovieClip::move_display_object(), gnash::MovieClip::remove_display_object(), and gnash::MovieClip::replace_display_object().
|
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().
|
inline |
Referenced by gnash::MovieClip::add_display_object().
|
inline |
|
inline |
Referenced by gnash::MovieClip::add_display_object().
|
inline |
Referenced by gnash::MovieClip::add_display_object(), and gnash::MovieClip::replace_display_object().
|
inline |
|
inline |
Referenced by gnash::MovieClip::add_display_object(), and gnash::MovieClip::replace_display_object().
|
inline |
Referenced by executeState(), and PlaceObject2Tag().
|
inline |
|
inline |
Referenced by PlaceObject2Tag().
|
inline |
Referenced by gnash::MovieClip::add_display_object(), and PlaceObject2Tag().
|
inline |
Referenced by PlaceObject2Tag().
|
inline |
Referenced by PlaceObject2Tag().
|
inline |
Referenced by PlaceObject2Tag().
|
inline |
Referenced by PlaceObject2Tag().
|
inline |
|
inline |
Referenced by PlaceObject2Tag().
|
inline |
Referenced by PlaceObject2Tag().
|
inline |
|
inline |
|
inline |
|
static |
References gnash::movie_definition::addControlTag(), gnash::SWF::PLACEOBJECT, gnash::SWF::PLACEOBJECT2, PlaceObject2Tag(), and gnash::SWF::PLACEOBJECT3.
Referenced by gnash::SWF::addDefaultLoaders().
Read SWF::PLACEOBJECT or SWF::PLACEOBJECT2.
References gnash::SWF::PLACEOBJECT, and gnash::SWF::PLACEOBJECT2.
1.8.11