MField template.
More...
#include <H3D/SpiderMonkeyTypes.h>
|
static JSObject * | newInstance (JSContext *cx, Field *field, bool internal_field, int array_index=-1) |
| Returns a new JSObject object encapsulating a field. More...
|
|
static JSBool | setProperty (JSContext *cx, JSObject *obj, jsval id, jsval *vp) |
| Callback setter function for properties of a JS_MField object.
|
|
static JSBool | getProperty (JSContext *cx, JSObject *obj, jsval id, jsval *vp) |
| Callback getter function for properties of a JS_MField object.
|
|
static JSBool | construct (JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) |
| Construct callback function for creating a new instance of JS_MField. More...
|
|
|
static JSFunctionSpec | functions [2] |
| Member functions.
|
|
template<class MFieldType, class ElementType>
struct H3D::SpiderMonkey::JS_MField< MFieldType, ElementType >
MField template.
◆ construct()
template<class MFieldType , class ElementType >
JSBool SpiderMonkey::JS_MField::construct |
( |
JSContext * |
cx, |
|
|
JSObject * |
obj, |
|
|
uintN |
argc, |
|
|
jsval * |
argv, |
|
|
jsval * |
rval |
|
) |
| |
|
static |
◆ newInstance()
template<class MFieldType , class ElementType >
Returns a new JSObject object encapsulating a field.
- Parameters
-
cx | The context in which to create the object. |
field | The field to encapsulate. |
internal_field | If true, the encapsulated field will be deleted upon destruction of the JSObject encapsulating it. |
array_index | Index into MF type. |
The documentation for this struct was generated from the following files: