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. 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
 

Detailed Description

A class for parsing an ActionRecord.

Constructor & Destructor Documentation

§ ButtonAction()

gnash::SWF::ButtonAction::ButtonAction ( SWFStream in,
TagType  t,
unsigned long  endPos,
movie_definition mdef 
)
Parameters
endPosOne past last valid-to-read byte position
mdefThe movie_definition this button action was read from

Member Function Documentation

§ getKeyCode()

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().

§ triggeredBy()

bool gnash::SWF::ButtonAction::triggeredBy ( const event_id ev) const

§ triggeredByKeyPress()

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

§ _actions

action_buffer gnash::SWF::ButtonAction::_actions

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