Gnash  0.8.11dev
Public Member Functions | List of all members
gnash::Trigger Class Reference

A trigger that can be associated with a property name. More...

#include <as_object.h>

Public Member Functions

 Trigger (std::string propname, as_function &trig, as_value customArg)
 
as_value call (const as_value &oldval, const as_value &newval, as_object &this_obj)
 Call the trigger. More...
 
bool dead () const
 True if this Trigger has been disposed of. More...
 
void kill ()
 
void setReachable () const
 

Detailed Description

A trigger that can be associated with a property name.

Constructor & Destructor Documentation

§ Trigger()

gnash::Trigger::Trigger ( std::string  propname,
as_function trig,
as_value  customArg 
)
inline

References call().

Member Function Documentation

§ call()

as_value gnash::Trigger::call ( const as_value oldval,
const as_value newval,
as_object this_obj 
)

Call the trigger.

Parameters
oldvalOld value being modified
newvalNew value requested
this_objObject of which the property is being changed

References gnash::getVM().

Referenced by gnash::as_object::add_property(), gnash::as_object::set_prototype(), Trigger(), and gnash::as_object::~as_object().

§ dead()

bool gnash::Trigger::dead ( ) const
inline

True if this Trigger has been disposed of.

Referenced by gnash::as_object::set_prototype().

§ kill()

void gnash::Trigger::kill ( )
inline

References setReachable().

§ setReachable()

void gnash::Trigger::setReachable ( ) const

Referenced by kill().


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