Gnash  0.8.10
Public Member Functions
gnash::Trigger Class Reference

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

#include <as_object.h>

List of all members.

Public Member Functions

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

Detailed Description

A trigger that can be associated with a property name.


Constructor & Destructor Documentation

gnash::Trigger::Trigger ( const std::string &  propname,
as_function trig,
const as_value customArg 
) [inline]

Member Function Documentation

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 assert, gnash::getVM(), and gnash::as_function::call().

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

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

True if this Trigger has been disposed of.

void gnash::Trigger::kill ( ) [inline]
void gnash::Trigger::setReachable ( ) const

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