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) {
220 _soundTag.reset(soundTag.release());
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;
311 #endif // GNASH_BUTTON_CHARACTER_DEF_H