20 #ifndef GNASH_SWF_DEFINEBUTTONTAG_H 21 #define GNASH_SWF_DEFINEBUTTONTAG_H 24 #include <boost/ptr_container/ptr_vector.hpp> 42 class movie_definition;
65 _definitionTag(nullptr),
103 unsigned long endPos);
110 return _definitionTag.get();
125 std::uint8_t _blendMode;
133 boost::intrusive_ptr<const DefinitionTag> _definitionTag;
162 bool triggeredBy(
const event_id& ev)
const;
166 return (_conditions & KEYPRESS);
173 return (_conditions & KEYPRESS) >> 9;
180 IDLE_TO_OVER_UP = 1 << 0,
181 OVER_UP_TO_IDLE = 1 << 1,
182 OVER_UP_TO_OVER_DOWN = 1 << 2,
183 OVER_DOWN_TO_OVER_UP = 1 << 3,
184 OVER_DOWN_TO_OUT_DOWN = 1 << 4,
185 OUT_DOWN_TO_OVER_DOWN = 1 << 5,
186 OUT_DOWN_TO_IDLE = 1 << 6,
187 IDLE_TO_OVER_DOWN = 1 << 7,
188 OVER_DOWN_TO_IDLE = 1 << 8,
192 std::uint16_t _conditions;
222 bool hasSound()
const {
return (_soundTag.get()); }
226 void addSoundTag(std::unique_ptr<SWF::DefineButtonSoundTag> soundTag) {
228 assert(!_soundTag.get());
229 _soundTag.reset(soundTag.release());
237 assert(_soundTag.get());
238 return _soundTag->getSound(index);
249 bool hasKeyPressHandler()
const;
257 for (
size_t i = 0,
e = _buttonActions.size();
i <
e; ++
i) {
270 std::bind(f, std::bind(
291 std::unique_ptr<SWF::DefineButtonSoundTag> _soundTag;
293 ButtonRecords _buttonRecords;
295 ButtonActions _buttonActions;
320 #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:690
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
std::vector< std::unique_ptr< BitmapFilter > > Filters
Definition: filter_factory.h:32
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:47
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:53
SWFCxForm readCxFormRGB(SWFStream &in)
Read a RGB CxForm from the input stream.
Definition: TypesParser.cpp:322
int getSWFVersion(const as_environment &env)
Definition: as_environment.cpp:657
The Global object ultimately contains all objects in an ActionScript run.
Definition: Global_as.h:49
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:149
Definition: GnashKey.h:331
SWF stream wrapper class.
Definition: SWFStream.h:58