Gnash 0.8.10dev
|
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. | |
bool | triggeredByKeyPress () const |
Return true if this action is triggered by a keypress. | |
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 |
References _, _actions, assert, gnash::SWF::DEFINEBUTTON, gnash::SWF::DEFINEBUTTON2, endPos, gnash::SWFStream::ensureBytes(), IF_VERBOSE_MALFORMED_SWF, IF_VERBOSE_PARSE, gnash::action_buffer::read(), gnash::SWFStream::read_u16(), and gnash::SWFStream::tell().
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, 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().
bool gnash::SWF::ButtonAction::triggeredByKeyPress | ( | ) | const [inline] |
Return true if this action is triggered by a keypress.
Referenced by gnash::SWF::DefineButtonTag::hasKeyPressHandler().
Referenced by ButtonAction(), and gnash::SWF::DefineButtonTag::forEachTrigger().