Gnash  0.8.11dev
Public Member Functions | Public Attributes | List of all members
gnash::SWF::ButtonAction Class Reference

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.
int getKeyCode () const
 Return the keycode triggering this action.

Public Attributes

action_buffer _actions

Detailed Description

A class for parsing an ActionRecord.

Constructor & Destructor Documentation

gnash::SWF::ButtonAction::ButtonAction ( SWFStream in,
TagType  t,
unsigned long  endPos,
movie_definition mdef 
)

Member Function Documentation

int gnash::SWF::ButtonAction::getKeyCode ( ) const
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
bool gnash::SWF::ButtonAction::triggeredByKeyPress ( ) const
inline

Return true if this action is triggered by a keypress.

Referenced by gnash::SWF::DefineButtonTag::hasKeyPressHandler().

Member Data Documentation

action_buffer gnash::SWF::ButtonAction::_actions

The documentation for this class was generated from the following files: