JNIEXPORT void JNICALL OS_NATIVE(CGPointApplyAffineTransform) (JNIEnv *env, jclass that, jobject arg0, jfloatArray arg1, jobject arg2) { CGPoint _arg0, *lparg0=NULL; jfloat *lparg1=NULL; CGPoint _arg2, *lparg2=NULL; OS_NATIVE_ENTER(env, that, CGPointApplyAffineTransform_FUNC); if (arg0) if ((lparg0 = getCGPointFields(env, arg0, &_arg0)) == NULL) goto fail; if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; if (arg2) if ((lparg2 = getCGPointFields(env, arg2, &_arg2)) == NULL) goto fail; *(CGPoint *)lparg2 = CGPointApplyAffineTransform(*(CGPoint *)lparg0, *(CGAffineTransform *)lparg1); fail: if (arg2 && lparg2) setCGPointFields(env, arg2, lparg2); if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, JNI_ABORT); OS_NATIVE_EXIT(env, that, CGPointApplyAffineTransform_FUNC); }
JNIEXPORT void JNICALL OS_NATIVE(CGContextGetTextPosition) (JNIEnv *env, jclass that, jint arg0, jobject arg1) { CGPoint _arg1, *lparg1=NULL; OS_NATIVE_ENTER(env, that, CGContextGetTextPosition_FUNC) if (arg1) if ((lparg1 = getCGPointFields(env, arg1, &_arg1)) == NULL) goto failTag; *lparg1 = CGContextGetTextPosition((CGContextRef)arg0); failTag: if (arg1 && lparg1) setCGPointFields(env, arg1, lparg1); OS_NATIVE_EXIT(env, that, CGContextGetTextPosition_FUNC) }
JNIEXPORT void JNICALL OS_NATIVE(CGPathGetCurrentPoint) (JNIEnv *env, jclass that, jint arg0, jobject arg1) { CGPoint _arg1, *lparg1=NULL; OS_NATIVE_ENTER(env, that, CGPathGetCurrentPoint_FUNC); if (arg1) if ((lparg1 = getCGPointFields(env, arg1, &_arg1)) == NULL) goto fail; *lparg1 = CGPathGetCurrentPoint((CGPathRef)arg0); fail: if (arg1 && lparg1) setCGPointFields(env, arg1, lparg1); OS_NATIVE_EXIT(env, that, CGPathGetCurrentPoint_FUNC); }
CGRect *getCGRectFields(JNIEnv *env, jobject lpObject, CGRect *lpStruct) { if (!CGRectFc.cached) cacheCGRectFields(env, lpObject); { jobject lpObject1 = (*env)->GetObjectField(env, lpObject, CGRectFc.origin); if (lpObject1 != NULL) getCGPointFields(env, lpObject1, &lpStruct->origin); } { jobject lpObject1 = (*env)->GetObjectField(env, lpObject, CGRectFc.size); if (lpObject1 != NULL) getCGSizeFields(env, lpObject1, &lpStruct->size); } return lpStruct; }