Gnash  0.8.10
Public Member Functions
gnash::NativeFunction Class Reference

This class implements functions native to the player. More...

#include <NativeFunction.h>

Inheritance diagram for gnash::NativeFunction:
gnash::as_function gnash::as_object gnash::GcResource

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

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'

Parameters:
funcThe C function to call when this as_function is invoked. For classes, the function pointer is the constructor.

Member Function Documentation

virtual as_value gnash::NativeFunction::call ( const fn_call fn) [inline, virtual]

Invoke this function.

Implements gnash::as_function.

References assert.

bool gnash::NativeFunction::isBuiltin ( ) [inline, virtual]

Return true if this is a built-in class.

Reimplemented from gnash::as_function.


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