20 #ifndef GNASH_SWF_DEFINEBUTTONTAG_H
21 #define GNASH_SWF_DEFINEBUTTONTAG_H
24 #include <boost/ptr_container/ptr_vector.hpp>
25 #include <boost/scoped_ptr.hpp>
26 #include <boost/cstdint.hpp>
41 class movie_definition;
101 return (_definitionTag);
116 boost::uint8_t _blendMode;
124 boost::intrusive_ptr<const DefinitionTag> _definitionTag;
157 return (_conditions & KEYPRESS);
164 return (_conditions & KEYPRESS) >> 9;
171 IDLE_TO_OVER_UP = 1 << 0,
172 OVER_UP_TO_IDLE = 1 << 1,
173 OVER_UP_TO_OVER_DOWN = 1 << 2,
174 OVER_DOWN_TO_OVER_UP = 1 << 3,
175 OVER_DOWN_TO_OUT_DOWN = 1 << 4,
176 OUT_DOWN_TO_OVER_DOWN = 1 << 5,
177 OUT_DOWN_TO_IDLE = 1 << 6,
178 IDLE_TO_OVER_DOWN = 1 << 7,
179 OVER_DOWN_TO_IDLE = 1 << 8,
183 boost::uint16_t _conditions;
213 bool hasSound()
const {
return (_soundTag.get()); }
217 void addSoundTag(std::auto_ptr<SWF::DefineButtonSoundTag> soundTag) {
219 assert(!_soundTag.get());
220 _soundTag.reset(soundTag.release());
228 assert(_soundTag.get());
229 return _soundTag->getSound(index);
248 for (
size_t i = 0,
e = _buttonActions.size();
i <
e; ++
i) {
261 boost::bind(f, boost::bind(
282 boost::scoped_ptr<SWF::DefineButtonSoundTag> _soundTag;
284 ButtonRecords _buttonRecords;
286 ButtonActions _buttonActions;
311 #endif // GNASH_BUTTON_CHARACTER_DEF_H
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:95
void for_each(C &container, R(T::*pmf)(const A &), const A &arg)
Definition: Renderer_ogl.cpp:692
Definition: GnashKey.h:117
DisplayObject is the base class for all DisplayList objects.
Definition: DisplayObject.h:168
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:30
Definition: SWFMatrix.h:53
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
Immutable data representing the definition of a movie display element.
Definition: DefinitionTag.h:48
Definition: GnashKey.h:152
Definition: GnashKey.h:164
Definition: GnashKey.h:166
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:43
SWFCxForm readCxFormRGB(SWFStream &in)
Read a RGB CxForm from the input stream.
Definition: TypesParser.cpp:315
std::streampos endPos
Definition: DefineBitsTag.cpp:75
std::vector< boost::shared_ptr< BitmapFilter > > Filters
Definition: filter_factory.h:32
The Global object ultimately contains all objects in an ActionScript run.
Definition: Global_as.h:55
Definition: GnashKey.h:155
Definition: GnashKey.h:151
Definition: GnashKey.h:159
A class to identify 'static' SWF events (system events).
Definition: event_id.h:52
Definition: GnashKey.h:95
A code segment.
Definition: action_buffer.h:49
std::string name
Definition: LocalConnection_as.cpp:151
Definition: GnashKey.h:331
SWF stream wrapper class.
Definition: SWFStream.h:58