Gnash
0.8.10
|
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 gnash::SWF::DEFINEBUTTON, assert, gnash::SWF::DEFINEBUTTON2, gnash::SWFStream::tell(), endPos, IF_VERBOSE_MALFORMED_SWF, _, gnash::SWFStream::ensureBytes(), gnash::SWFStream::read_u16(), IF_VERBOSE_PARSE, _actions, and gnash::action_buffer::read().
bool gnash::SWF::ButtonAction::triggeredBy | ( | const event_id & | ev | ) | const |
Return true if this action should be triggered by the given event.
References gnash::event_id::id(), gnash::key::codeMap, gnash::event_id::keyCode(), and gnash::key::SWF.
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().