Gnash
0.8.10
|
This class implements functions native to the player. More...
#include <NativeFunction.h>
Public Member Functions | |
NativeFunction (Global_as &gl, ASFunction func) | |
Construct a builtin function/class with a default interface. | |
virtual as_value | call (const fn_call &fn) |
Invoke this function. | |
bool | isBuiltin () |
Return true if this is a built-in class. |
This class implements functions native to the player.
They are not implemented in ActionScript in the reference player, but rather have access to internal functions. Native functions include methods for handling SharedObjects, NetConnections and MovieClips, but also constructors for types such as String, Number, Array, Boolean, and MovieClip.
gnash::NativeFunction::NativeFunction | ( | Global_as & | gl, |
ASFunction | func | ||
) | [inline] |
Construct a builtin function/class with a default interface.
The default interface will have a constructor member set as 'this'
func | The C function to call when this as_function is invoked. For classes, the function pointer is the constructor. |
bool gnash::NativeFunction::isBuiltin | ( | ) | [inline, virtual] |
Return true if this is a built-in class.
Reimplemented from gnash::as_function.