#include <ScriptableObject.h>
|
typedef jsval(T::* | TGetFn )(JSContext *) |
|
typedef void(T::* | TSetFn )(JSContext *, jsval value) |
|
typedef boost::unordered_map
< CStrW, IJSProperty * > | PropertyTable |
|
typedef jsval(IJSObject::* | GetFn )(JSContext *cx) |
|
typedef void(IJSObject::* | SetFn )(JSContext *cx, jsval value) |
|
|
static void | ScriptingInit (const char *ClassName, JSNative Constructor=NULL, uintN ConstructorMinArgs=0) |
|
static void | ScriptingShutdown () |
|
static void | AddProperty (const CStrW &PropertyName, TGetFn Getter, TSetFn Setter=NULL) |
|
template<typename ReturnType , ReturnType(T::*)(JSContext *cx, uintN argc, jsval *argv) NativeFunction> |
static void | AddMethod (const char *Name, uintN MinArgs) |
|
template<typename PropType > |
static void | AddProperty (const CStrW &PropertyName, PropType T::*Native, bool PropReadOnly=ReadOnly) |
|
|
static JSBool | JSGetProperty (JSContext *cx, JSObject *obj, jsid id, jsval *vp) |
|
static JSBool | JSSetProperty (JSContext *cx, JSObject *obj, jsid id, JSBool strict, jsval *vp) |
|
static void | DefaultFinalize (JSContext *cx, JSObject *obj) |
|
template<typename T, bool ReadOnly = false>
class CJSObject< T, ReadOnly >
Definition at line 66 of file ScriptableObject.h.
template<typename T , bool ReadOnly = false>
typedef jsval(T::* CJSObject< T, ReadOnly >::TGetFn)(JSContext *) |
template<typename T , bool ReadOnly = false>
typedef void(T::* CJSObject< T, ReadOnly >::TSetFn)(JSContext *, jsval value) |
template<typename T , bool ReadOnly = false>
template<typename T , bool ReadOnly = false>
template<typename T , bool ReadOnly = false>
template<typename PropType >
void CJSObject< T, ReadOnly >::AddLocalProperty |
( |
const CStrW & |
PropertyName, |
|
|
PropType * |
Native, |
|
|
bool |
PropReadOnly = ReadOnly |
|
) |
| |
|
inline |
template<typename T , bool ReadOnly = false>
template<typename ReturnType , ReturnType(T::*)(JSContext *cx, uintN argc, jsval *argv) NativeFunction>
static void CJSObject< T, ReadOnly >::AddMethod |
( |
const char * |
Name, |
|
|
uintN |
MinArgs |
|
) |
| |
|
inlinestatic |
template<typename T , bool ReadOnly = false>
void CJSObject< T, ReadOnly >::AddProperty |
( |
const CStrW & |
PropertyName, |
|
|
jsval |
Value |
|
) |
| |
|
inlinevirtual |
template<typename T , bool ReadOnly = false>
static void CJSObject< T, ReadOnly >::AddProperty |
( |
const CStrW & |
PropertyName, |
|
|
TGetFn |
Getter, |
|
|
TSetFn |
Setter = NULL |
|
) |
| |
|
inlinestatic |
template<typename T , bool ReadOnly = false>
template<typename PropType >
static void CJSObject< T, ReadOnly >::AddProperty |
( |
const CStrW & |
PropertyName, |
|
|
PropType T::* |
Native, |
|
|
bool |
PropReadOnly = ReadOnly |
|
) |
| |
|
inlinestatic |
template<typename T , bool ReadOnly = false>
void CJSObject< T, ReadOnly >::CreateScriptObject |
( |
| ) |
|
|
inline |
template<typename T , bool ReadOnly = false>
static void CJSObject< T, ReadOnly >::DefaultFinalize |
( |
JSContext * |
cx, |
|
|
JSObject * |
obj |
|
) |
| |
|
inlinestaticprivate |
template<typename T , bool ReadOnly = false>
bool CJSObject< T, ReadOnly >::GetProperty |
( |
JSContext * |
cx, |
|
|
const CStrW & |
PropertyName, |
|
|
jsval * |
vp |
|
) |
| |
|
inlinevirtual |
template<typename T , bool ReadOnly = false>
template<typename T , bool ReadOnly = false>
template<typename T , bool ReadOnly = false>
static JSBool CJSObject< T, ReadOnly >::JSGetProperty |
( |
JSContext * |
cx, |
|
|
JSObject * |
obj, |
|
|
jsid |
id, |
|
|
jsval * |
vp |
|
) |
| |
|
inlinestaticprivate |
template<typename T , bool ReadOnly = false>
static JSBool CJSObject< T, ReadOnly >::JSSetProperty |
( |
JSContext * |
cx, |
|
|
JSObject * |
obj, |
|
|
jsid |
id, |
|
|
JSBool |
strict, |
|
|
jsval * |
vp |
|
) |
| |
|
inlinestaticprivate |
template<typename T , bool ReadOnly = false>
void CJSObject< T, ReadOnly >::ReleaseScriptObject |
( |
| ) |
|
|
inline |
template<typename T , bool ReadOnly = false>
static void CJSObject< T, ReadOnly >::ScriptingInit |
( |
const char * |
ClassName, |
|
|
JSNative |
Constructor = NULL , |
|
|
uintN |
ConstructorMinArgs = 0 |
|
) |
| |
|
inlinestatic |
template<typename T , bool ReadOnly = false>
static void CJSObject< T, ReadOnly >::ScriptingShutdown |
( |
| ) |
|
|
inlinestatic |
template<typename T , bool ReadOnly = false>
void CJSObject< T, ReadOnly >::SetProperty |
( |
JSContext * |
cx, |
|
|
const CStrW & |
PropertyName, |
|
|
jsval * |
vp |
|
) |
| |
|
inline |
template<typename T , bool ReadOnly = false>
template<typename T , bool ReadOnly = false>
Initial value:= {
NULL, JSCLASS_HAS_PRIVATE,
JS_PropertyStub, JS_PropertyStub,
JS_EnumerateStub, JS_ResolveStub,
NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL
}
Definition at line 237 of file ScriptableObject.h.
template<typename T , bool ReadOnly = false>
JSPropertySpec CJSObject< T, ReadOnly >::JSI_props |
|
staticprivate |
template<typename T , bool ReadOnly = false>
template<typename T , bool ReadOnly = false>
template<typename T , bool ReadOnly = false>
std::vector< JSFunctionSpec > CJSObject< T, ReadOnly >::m_Methods |
|
staticprivate |
template<typename T , bool ReadOnly = false>
template<typename T , bool ReadOnly = false>
template<typename T , bool ReadOnly = false>
The documentation for this class was generated from the following file: