|
Gnash
0.8.11dev
|
A class for parsing an ActionRecord. More...
#include <DefineButtonTag.h>
Public Member Functions | |
| ButtonAction (SWFStream &in, TagType t, unsigned long endPos, movie_definition &mdef) | |
| bool | triggeredBy (const event_id &ev) const |
| Return true if this action should be triggered by the given event. More... | |
| bool | triggeredByKeyPress () const |
| Return true if this action is triggered by a keypress. More... | |
| int | getKeyCode () const |
| Return the keycode triggering this action. More... | |
Public Attributes | |
| action_buffer | _actions |
A class for parsing an ActionRecord.
| gnash::SWF::ButtonAction::ButtonAction | ( | SWFStream & | in, |
| TagType | t, | ||
| unsigned long | endPos, | ||
| movie_definition & | mdef | ||
| ) |
| endPos | One past last valid-to-read byte position |
| mdef | The movie_definition this button action was read from |
|
inline |
Return the keycode triggering this action.
Return 0 if no key is supposed to trigger us
Referenced by triggeredBy(), and gnash::SWF::DefineButtonTag::visitKeyCodes().
| bool gnash::SWF::ButtonAction::triggeredBy | ( | const event_id & | ev | ) | const |
Return true if this action should be triggered by the given event.
References gnash::key::codeMap, gnash::event_id::DRAG_OUT, gnash::event_id::DRAG_OVER, getKeyCode(), gnash::event_id::id(), gnash::event_id::KEY_PRESS, gnash::event_id::keyCode(), gnash::event_id::PRESS, gnash::event_id::RELEASE, gnash::event_id::RELEASE_OUTSIDE, gnash::event_id::ROLL_OUT, gnash::event_id::ROLL_OVER, and gnash::key::SWF.
Referenced by gnash::SWF::DefineButtonTag::forEachTrigger().
|
inline |
Return true if this action is triggered by a keypress.
Referenced by gnash::SWF::DefineButtonTag::hasKeyPressHandler().
| action_buffer gnash::SWF::ButtonAction::_actions |
Referenced by gnash::SWF::DefineButtonTag::forEachTrigger().
1.8.12