|
Oolite
|
Go to the source code of this file.
Functions | |
| void | InitOOJSVector (JSContext *context, JSValueConst global) |
| JSValue | JSVectorWithVector (JSContext *context, Vector vector) NONNULL_FUNC |
| JSValue | JSVectorWithHPVector (JSContext *context, HPVector vector) NONNULL_FUNC |
| BOOL | VectorToJSValue (JSContext *context, Vector vector, JSValue *outValue) NONNULL_FUNC |
| BOOL | HPVectorToJSValue (JSContext *context, HPVector vector, JSValue *outValue) NONNULL_FUNC |
| BOOL | NSPointToVectorJSValue (JSContext *context, NSPoint point, JSValue *outValue) NONNULL_FUNC |
| BOOL | JSValueToVector (JSContext *context, JSValueConst value, Vector *outVector) NONNULL_FUNC |
| BOOL | JSValueToHPVector (JSContext *context, JSValueConst value, HPVector *outVector) NONNULL_FUNC |
| BOOL | JSObjectGetVector (JSContext *context, JSValueConst vectorObj, HPVector *outVector) GCC_ATTR((nonnull(1 |
| BOOL BOOL | JSVectorSetVector (JSContext *context, JSValueConst vectorObj, Vector vector) GCC_ATTR((nonnull(1))) |
| BOOL | JSVectorSetHPVector (JSContext *context, JSValueConst vectorObj, HPVector vector) GCC_ATTR((nonnull(1))) |
| BOOL | VectorFromArgumentList (JSContext *context, NSString *scriptClass, NSString *function, int argc, JSValueConst *argv, HPVector *outVector, int *outConsumed) GCC_ATTR((nonnull(1 |
| BOOL BOOL | VectorFromArgumentListNoError (JSContext *context, int argc, JSValueConst *argv, HPVector *outVector, int *outConsumed) GCC_ATTR((nonnull(1 |
| BOOL HPVectorToJSValue | ( | JSContext * | context, |
| HPVector | vector, | ||
| JSValue * | outValue ) |
Definition at line 183 of file OOJSVector.m.
References EXPECT_NOT, JSVectorWithHPVector(), OOJS_PROFILE_ENTER, and OOJS_PROFILE_EXIT.
| void InitOOJSVector | ( | JSContext * | context, |
| JSValueConst | global ) |
Definition at line 129 of file OOJSVector.m.
References OOJS_COUNT, OOJSInitClass(), OOJSRegisterClass(), sVectorClass, sVectorClassID, sVectorMethods, sVectorProperties, sVectorStaticMethods, and VectorConstruct().
| BOOL JSObjectGetVector | ( | JSContext * | context, |
| JSValueConst | vectorObj, | ||
| HPVector * | outVector ) |
| BOOL JSValueToHPVector | ( | JSContext * | context, |
| JSValueConst | value, | ||
| HPVector * | outVector ) |
Definition at line 206 of file OOJSVector.m.
References EXPECT_NOT, and JSObjectGetVector().
| BOOL JSValueToVector | ( | JSContext * | context, |
| JSValueConst | value, | ||
| Vector * | outVector ) |
Definition at line 214 of file OOJSVector.m.
References EXPECT_NOT, HPVectorToVector(), JSObjectGetVector(), and kZeroHPVector.
| BOOL JSVectorSetHPVector | ( | JSContext * | context, |
| JSValueConst | vectorObj, | ||
| HPVector | vector ) |
Definition at line 309 of file OOJSVector.m.
References EXPECT_NOT, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, and sVectorClassID.
Referenced by JSVectorSetVector(), and VectorSetProperty().
| BOOL BOOL JSVectorSetVector | ( | JSContext * | context, |
| JSValueConst | vectorObj, | ||
| Vector | vector ) |
Definition at line 304 of file OOJSVector.m.
References JSVectorSetHPVector(), and vectorToHPVector().
| JSValue JSVectorWithHPVector | ( | JSContext * | context, |
| HPVector | vector ) |
Definition at line 282 of file OOJSVector.m.
References EXPECT_NOT, OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, and sVectorClassID.
Referenced by HPVectorToJSValue(), HPVectorToJSValue(), JSVectorWithVector(), and VectorConstruct().
| JSValue JSVectorWithVector | ( | JSContext * | context, |
| Vector | vector ) |
Definition at line 236 of file OOJSVector.m.
References JSVectorWithHPVector(), OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, and vectorToHPVector().
Referenced by VectorToJSValue().
| BOOL NSPointToVectorJSValue | ( | JSContext * | context, |
| NSPoint | point, | ||
| JSValue * | outValue ) |
Definition at line 201 of file OOJSVector.m.
References make_vector(), and VectorToJSValue().
| BOOL VectorFromArgumentList | ( | JSContext * | context, |
| NSString * | scriptClass, | ||
| NSString * | function, | ||
| int | argc, | ||
| JSValueConst * | argv, | ||
| HPVector * | outVector, | ||
| int * | outConsumed ) |
| BOOL BOOL VectorFromArgumentListNoError | ( | JSContext * | context, |
| int | argc, | ||
| JSValueConst * | argv, | ||
| HPVector * | outVector, | ||
| int * | outConsumed ) |
| BOOL VectorToJSValue | ( | JSContext * | context, |
| Vector | vector, | ||
| JSValue * | outValue ) |
Definition at line 147 of file OOJSVector.m.
References HPVectorToJSValue(), OOJS_PROFILE_ENTER, OOJS_PROFILE_EXIT, and vectorToHPVector().