blob: ce194f57821ea5ba819540ae0cd32a53c962f66c [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
#include "swt.h"
#include "os_structs.h"
#include "os_stats.h"
#define OS_NATIVE(func) Java_org_eclipse_swt_internal_carbon_OS_##func
#ifndef NO_AECountItems
JNIEXPORT jint JNICALL OS_NATIVE(AECountItems)
(JNIEnv *env, jclass that, jobject arg0, jintArray arg1)
{
AEDesc _arg0, *lparg0=NULL;
jint *lparg1=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, AECountItems_FUNC);
if (arg0) if ((lparg0 = getAEDescFields(env, arg0, &_arg0)) == NULL) goto fail;
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail;
rc = (jint)AECountItems((const AEDescList *)lparg0, (long *)lparg1);
fail:
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
if (arg0 && lparg0) setAEDescFields(env, arg0, lparg0);
OS_NATIVE_EXIT(env, that, AECountItems_FUNC);
return rc;
}
#endif
#ifndef NO_AEGetNthPtr
JNIEXPORT jint JNICALL OS_NATIVE(AEGetNthPtr)
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2, jintArray arg3, jintArray arg4, jint arg5, jint arg6, jintArray arg7)
{
AEDesc _arg0, *lparg0=NULL;
jint *lparg3=NULL;
jint *lparg4=NULL;
jint *lparg7=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, AEGetNthPtr_FUNC);
if (arg0) if ((lparg0 = getAEDescFields(env, arg0, &_arg0)) == NULL) goto fail;
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail;
rc = (jint)AEGetNthPtr((const AEDescList *)lparg0, arg1, (DescType)arg2, (AEKeyword *)lparg3, (DescType *)lparg4, (void *)arg5, (Size)arg6, (Size *)lparg7);
fail:
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0);
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
if (arg0 && lparg0) setAEDescFields(env, arg0, lparg0);
OS_NATIVE_EXIT(env, that, AEGetNthPtr_FUNC);
return rc;
}
#endif
#ifndef NO_AEInstallEventHandler
JNIEXPORT jint JNICALL OS_NATIVE(AEInstallEventHandler)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jboolean arg4)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, AEInstallEventHandler_FUNC);
rc = (jint)AEInstallEventHandler((AEEventClass)arg0, (AEEventID)arg1, (AEEventHandlerUPP)arg2, (long)arg3, arg4);
OS_NATIVE_EXIT(env, that, AEInstallEventHandler_FUNC);
return rc;
}
#endif
#ifndef NO_AEProcessAppleEvent
JNIEXPORT jint JNICALL OS_NATIVE(AEProcessAppleEvent)
(JNIEnv *env, jclass that, jobject arg0)
{
EventRecord _arg0, *lparg0=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, AEProcessAppleEvent_FUNC);
if (arg0) if ((lparg0 = getEventRecordFields(env, arg0, &_arg0)) == NULL) goto fail;
rc = (jint)AEProcessAppleEvent((const EventRecord *)lparg0);
fail:
if (arg0 && lparg0) setEventRecordFields(env, arg0, lparg0);
OS_NATIVE_EXIT(env, that, AEProcessAppleEvent_FUNC);
return rc;
}
#endif
#ifndef NO_ATSFontActivateFromFileSpecification
JNIEXPORT jint JNICALL OS_NATIVE(ATSFontActivateFromFileSpecification)
(JNIEnv *env, jclass that, jbyteArray arg0, jint arg1, jint arg2, jint arg3, jint arg4, jintArray arg5)
{
jbyte *lparg0=NULL;
jint *lparg5=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSFontActivateFromFileSpecification_FUNC);
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail;
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail;
rc = (jint)ATSFontActivateFromFileSpecification((const FSSpec *)lparg0, (ATSFontContext)arg1, (ATSFontFormat)arg2, (void *)arg3, (ATSOptionFlags)arg4, (ATSFontContainerRef *)lparg5);
fail:
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0);
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
OS_NATIVE_EXIT(env, that, ATSFontActivateFromFileSpecification_FUNC);
return rc;
}
#endif
#ifndef NO_ATSFontDeactivate
JNIEXPORT jint JNICALL OS_NATIVE(ATSFontDeactivate)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSFontDeactivate_FUNC);
rc = (jint)ATSFontDeactivate((ATSFontContainerRef)arg0, (void *)arg1, (ATSOptionFlags)arg2);
OS_NATIVE_EXIT(env, that, ATSFontDeactivate_FUNC);
return rc;
}
#endif
#ifndef NO_ATSFontFindFromName
JNIEXPORT jint JNICALL OS_NATIVE(ATSFontFindFromName)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSFontFindFromName_FUNC);
rc = (jint)ATSFontFindFromName((CFStringRef)arg0, (ATSOptionFlags)arg1);
OS_NATIVE_EXIT(env, that, ATSFontFindFromName_FUNC);
return rc;
}
#endif
#ifndef NO_ATSFontGetHorizontalMetrics
JNIEXPORT jint JNICALL OS_NATIVE(ATSFontGetHorizontalMetrics)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2)
{
ATSFontMetrics _arg2, *lparg2=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSFontGetHorizontalMetrics_FUNC);
if (arg2) if ((lparg2 = getATSFontMetricsFields(env, arg2, &_arg2)) == NULL) goto fail;
rc = (jint)ATSFontGetHorizontalMetrics((ATSFontRef)arg0, arg1, lparg2);
fail:
if (arg2 && lparg2) setATSFontMetricsFields(env, arg2, lparg2);
OS_NATIVE_EXIT(env, that, ATSFontGetHorizontalMetrics_FUNC);
return rc;
}
#endif
#ifndef NO_ATSFontGetName
JNIEXPORT jint JNICALL OS_NATIVE(ATSFontGetName)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
{
jint *lparg2=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSFontGetName_FUNC);
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail;
rc = (jint)ATSFontGetName((ATSFontRef)arg0, (ATSOptionFlags)arg1, (CFStringRef*)lparg2);
fail:
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
OS_NATIVE_EXIT(env, that, ATSFontGetName_FUNC);
return rc;
}
#endif
#ifndef NO_ATSFontGetPostScriptName
JNIEXPORT jint JNICALL OS_NATIVE(ATSFontGetPostScriptName)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
{
jint *lparg2=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSFontGetPostScriptName_FUNC);
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail;
rc = (jint)ATSFontGetPostScriptName((ATSFontRef)arg0, (ATSOptionFlags)arg1, (CFStringRef *)lparg2);
fail:
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
OS_NATIVE_EXIT(env, that, ATSFontGetPostScriptName_FUNC);
return rc;
}
#endif
#ifndef NO_ATSFontGetVerticalMetrics
JNIEXPORT jint JNICALL OS_NATIVE(ATSFontGetVerticalMetrics)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2)
{
ATSFontMetrics _arg2, *lparg2=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSFontGetVerticalMetrics_FUNC);
if (arg2) if ((lparg2 = getATSFontMetricsFields(env, arg2, &_arg2)) == NULL) goto fail;
rc = (jint)ATSFontGetVerticalMetrics((ATSFontRef)arg0, (ATSOptionFlags)arg1, lparg2);
fail:
if (arg2 && lparg2) setATSFontMetricsFields(env, arg2, lparg2);
OS_NATIVE_EXIT(env, that, ATSFontGetVerticalMetrics_FUNC);
return rc;
}
#endif
#ifndef NO_ATSFontIteratorCreate
JNIEXPORT jint JNICALL OS_NATIVE(ATSFontIteratorCreate)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4)
{
jint *lparg4=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSFontIteratorCreate_FUNC);
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
rc = (jint)ATSFontIteratorCreate((ATSFontContext)arg0, (const ATSFontFilter *)arg1, (void *)arg2, (ATSOptionFlags)arg3, (ATSFontIterator *)lparg4);
fail:
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
OS_NATIVE_EXIT(env, that, ATSFontIteratorCreate_FUNC);
return rc;
}
#endif
#ifndef NO_ATSFontIteratorNext
JNIEXPORT jint JNICALL OS_NATIVE(ATSFontIteratorNext)
(JNIEnv *env, jclass that, jint arg0, jintArray arg1)
{
jint *lparg1=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSFontIteratorNext_FUNC);
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail;
rc = (jint)ATSFontIteratorNext((ATSFontIterator)arg0, (ATSFontRef *)lparg1);
fail:
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0);
OS_NATIVE_EXIT(env, that, ATSFontIteratorNext_FUNC);
return rc;
}
#endif
#ifndef NO_ATSFontIteratorRelease
JNIEXPORT jint JNICALL OS_NATIVE(ATSFontIteratorRelease)
(JNIEnv *env, jclass that, jintArray arg0)
{
jint *lparg0=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSFontIteratorRelease_FUNC);
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail;
rc = (jint)ATSFontIteratorRelease((ATSFontIterator *)lparg0);
fail:
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
OS_NATIVE_EXIT(env, that, ATSFontIteratorRelease_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUBatchBreakLines
JNIEXPORT jint JNICALL OS_NATIVE(ATSUBatchBreakLines)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4)
{
jint *lparg4=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUBatchBreakLines_FUNC);
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
rc = (jint)ATSUBatchBreakLines((ATSUTextLayout)arg0, arg1, arg2, arg3, (ItemCount *)lparg4);
fail:
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
OS_NATIVE_EXIT(env, that, ATSUBatchBreakLines_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUCreateStyle
JNIEXPORT jint JNICALL OS_NATIVE(ATSUCreateStyle)
(JNIEnv *env, jclass that, jintArray arg0)
{
jint *lparg0=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUCreateStyle_FUNC);
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail;
rc = (jint)ATSUCreateStyle((ATSUStyle *)lparg0);
fail:
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
OS_NATIVE_EXIT(env, that, ATSUCreateStyle_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUCreateTextLayout
JNIEXPORT jint JNICALL OS_NATIVE(ATSUCreateTextLayout)
(JNIEnv *env, jclass that, jintArray arg0)
{
jint *lparg0=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUCreateTextLayout_FUNC);
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail;
rc = (jint)ATSUCreateTextLayout((ATSUTextLayout *)lparg0);
fail:
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
OS_NATIVE_EXIT(env, that, ATSUCreateTextLayout_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUCreateTextLayoutWithTextPtr
JNIEXPORT jint JNICALL OS_NATIVE(ATSUCreateTextLayoutWithTextPtr)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jintArray arg5, jintArray arg6, jintArray arg7)
{
jint *lparg5=NULL;
jint *lparg6=NULL;
jint *lparg7=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUCreateTextLayoutWithTextPtr_FUNC);
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail;
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail;
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail;
rc = (jint)ATSUCreateTextLayoutWithTextPtr((ConstUniCharArrayPtr)arg0, arg1, arg2, arg3, arg4, (const UniCharCount *)lparg5, (ATSUStyle *)lparg6, (ATSUTextLayout *)lparg7);
fail:
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0);
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0);
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0);
OS_NATIVE_EXIT(env, that, ATSUCreateTextLayoutWithTextPtr_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUDirectGetLayoutDataArrayPtrFromTextLayout
JNIEXPORT jint JNICALL OS_NATIVE(ATSUDirectGetLayoutDataArrayPtrFromTextLayout)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jintArray arg4)
{
jint *lparg3=NULL;
jint *lparg4=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUDirectGetLayoutDataArrayPtrFromTextLayout_FUNC);
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
rc = (jint)ATSUDirectGetLayoutDataArrayPtrFromTextLayout((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (ATSUDirectDataSelector)arg2, (void *)lparg3, (ItemCount *)lparg4);
fail:
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
OS_NATIVE_EXIT(env, that, ATSUDirectGetLayoutDataArrayPtrFromTextLayout_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUDirectReleaseLayoutDataArrayPtr
JNIEXPORT jint JNICALL OS_NATIVE(ATSUDirectReleaseLayoutDataArrayPtr)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUDirectReleaseLayoutDataArrayPtr_FUNC);
rc = (jint)ATSUDirectReleaseLayoutDataArrayPtr((ATSULineRef)arg0, (ATSUDirectDataSelector)arg1, (void *)arg2);
OS_NATIVE_EXIT(env, that, ATSUDirectReleaseLayoutDataArrayPtr_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUDisposeStyle
JNIEXPORT jint JNICALL OS_NATIVE(ATSUDisposeStyle)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUDisposeStyle_FUNC);
rc = (jint)ATSUDisposeStyle((ATSUStyle)arg0);
OS_NATIVE_EXIT(env, that, ATSUDisposeStyle_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUDisposeTextLayout
JNIEXPORT jint JNICALL OS_NATIVE(ATSUDisposeTextLayout)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUDisposeTextLayout_FUNC);
rc = (jint)ATSUDisposeTextLayout((ATSUTextLayout)arg0);
OS_NATIVE_EXIT(env, that, ATSUDisposeTextLayout_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUDrawText
JNIEXPORT jint JNICALL OS_NATIVE(ATSUDrawText)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUDrawText_FUNC);
rc = (jint)ATSUDrawText((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (UniCharCount)arg2, (ATSUTextMeasurement)arg3, (ATSUTextMeasurement)arg4);
OS_NATIVE_EXIT(env, that, ATSUDrawText_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUFindFontFromName
JNIEXPORT jint JNICALL OS_NATIVE(ATSUFindFontFromName)
(JNIEnv *env, jclass that, jbyteArray arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jintArray arg6)
{
jbyte *lparg0=NULL;
jint *lparg6=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUFindFontFromName_FUNC);
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail;
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail;
rc = (jint)ATSUFindFontFromName((const void *)lparg0, arg1, arg2, arg3, arg4, arg5, (ATSUFontID *)lparg6);
fail:
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0);
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0);
OS_NATIVE_EXIT(env, that, ATSUFindFontFromName_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUFindFontName
JNIEXPORT jint JNICALL OS_NATIVE(ATSUFindFontName)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jbyteArray arg6, jintArray arg7, jintArray arg8)
{
jbyte *lparg6=NULL;
jint *lparg7=NULL;
jint *lparg8=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUFindFontName_FUNC);
if (arg6) if ((lparg6 = (*env)->GetByteArrayElements(env, arg6, NULL)) == NULL) goto fail;
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail;
if (arg8) if ((lparg8 = (*env)->GetIntArrayElements(env, arg8, NULL)) == NULL) goto fail;
rc = (jint)ATSUFindFontName((ATSUFontID)arg0, arg1, arg2, arg3, arg4, arg5, (Ptr)lparg6, (ByteCount *)lparg7, (ItemCount *)lparg8);
fail:
if (arg8 && lparg8) (*env)->ReleaseIntArrayElements(env, arg8, lparg8, 0);
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0);
if (arg6 && lparg6) (*env)->ReleaseByteArrayElements(env, arg6, lparg6, 0);
OS_NATIVE_EXIT(env, that, ATSUFindFontName_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUGetFontIDs
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetFontIDs)
(JNIEnv *env, jclass that, jintArray arg0, jint arg1, jintArray arg2)
{
jint *lparg0=NULL;
jint *lparg2=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUGetFontIDs_FUNC);
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail;
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail;
rc = (jint)ATSUGetFontIDs((ATSUFontID *)lparg0, arg1, (ItemCount *)lparg2);
fail:
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0);
OS_NATIVE_EXIT(env, that, ATSUGetFontIDs_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUGetGlyphBounds__IIIIISII_3I
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetGlyphBounds__IIIIISII_3I)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jshort arg5, jint arg6, jint arg7, jintArray arg8)
{
jint *lparg8=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUGetGlyphBounds__IIIIISII_3I_FUNC);
if (arg8) if ((lparg8 = (*env)->GetIntArrayElements(env, arg8, NULL)) == NULL) goto fail;
rc = (jint)ATSUGetGlyphBounds((ATSUTextLayout)arg0, (ATSUTextMeasurement)arg1, (ATSUTextMeasurement)arg2, (UniCharArrayOffset)arg3, arg4, arg5, arg6, (ATSTrapezoid *)arg7, (ItemCount *)lparg8);
fail:
if (arg8 && lparg8) (*env)->ReleaseIntArrayElements(env, arg8, lparg8, 0);
OS_NATIVE_EXIT(env, that, ATSUGetGlyphBounds__IIIIISII_3I_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUGetGlyphBounds__IIIIISILorg_eclipse_swt_internal_carbon_ATSTrapezoid_2_3I
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetGlyphBounds__IIIIISILorg_eclipse_swt_internal_carbon_ATSTrapezoid_2_3I)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jshort arg5, jint arg6, jobject arg7, jintArray arg8)
{
ATSTrapezoid _arg7, *lparg7=NULL;
jint *lparg8=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUGetGlyphBounds__IIIIISILorg_eclipse_swt_internal_carbon_ATSTrapezoid_2_3I_FUNC);
if (arg7) if ((lparg7 = getATSTrapezoidFields(env, arg7, &_arg7)) == NULL) goto fail;
if (arg8) if ((lparg8 = (*env)->GetIntArrayElements(env, arg8, NULL)) == NULL) goto fail;
rc = (jint)ATSUGetGlyphBounds((ATSUTextLayout)arg0, (ATSUTextMeasurement)arg1, (ATSUTextMeasurement)arg2, (UniCharArrayOffset)arg3, arg4, arg5, arg6, (ATSTrapezoid *)lparg7, (ItemCount *)lparg8);
fail:
if (arg8 && lparg8) (*env)->ReleaseIntArrayElements(env, arg8, lparg8, 0);
if (arg7 && lparg7) setATSTrapezoidFields(env, arg7, lparg7);
OS_NATIVE_EXIT(env, that, ATSUGetGlyphBounds__IIIIISILorg_eclipse_swt_internal_carbon_ATSTrapezoid_2_3I_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUGetLayoutControl
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetLayoutControl)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jintArray arg4)
{
jint *lparg3=NULL;
jint *lparg4=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUGetLayoutControl_FUNC);
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
rc = (jint)ATSUGetLayoutControl((ATSUTextLayout)arg0, (ATSUAttributeTag)arg1, arg2, (ATSUAttributeValuePtr)lparg3, (ByteCount *)lparg4);
fail:
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
OS_NATIVE_EXIT(env, that, ATSUGetLayoutControl_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUGetLineControl
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetLineControl)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4, jintArray arg5)
{
jint *lparg4=NULL;
jint *lparg5=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUGetLineControl_FUNC);
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail;
rc = (jint)ATSUGetLineControl((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (ATSUAttributeTag)arg2, (ByteCount)arg3, (ATSUAttributeValuePtr)lparg4, (ByteCount *)lparg5);
fail:
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0);
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
OS_NATIVE_EXIT(env, that, ATSUGetLineControl_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUGetSoftLineBreaks
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetSoftLineBreaks)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4, jintArray arg5)
{
jint *lparg4=NULL;
jint *lparg5=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUGetSoftLineBreaks_FUNC);
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail;
rc = (jint)ATSUGetSoftLineBreaks((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (UniCharCount)arg2, (ItemCount)arg3, (UniCharArrayOffset *)lparg4, (ItemCount *)lparg5);
fail:
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0);
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
OS_NATIVE_EXIT(env, that, ATSUGetSoftLineBreaks_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUGetTextHighlight
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetTextHighlight)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUGetTextHighlight_FUNC);
rc = (jint)ATSUGetTextHighlight((ATSUTextLayout)arg0, arg1, arg2, arg3, arg4, (RgnHandle)arg5);
OS_NATIVE_EXIT(env, that, ATSUGetTextHighlight_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUGetUnjustifiedBounds
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetUnjustifiedBounds)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jintArray arg4, jintArray arg5, jintArray arg6)
{
jint *lparg3=NULL;
jint *lparg4=NULL;
jint *lparg5=NULL;
jint *lparg6=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUGetUnjustifiedBounds_FUNC);
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail;
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail;
rc = (jint)ATSUGetUnjustifiedBounds((ATSUTextLayout)arg0, arg1, arg2, (ATSUTextMeasurement *)lparg3, (ATSUTextMeasurement *)lparg4, (ATSUTextMeasurement *)lparg5, (ATSUTextMeasurement *)lparg6);
fail:
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0);
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0);
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
OS_NATIVE_EXIT(env, that, ATSUGetUnjustifiedBounds_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUGlyphGetQuadraticPaths
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGlyphGetQuadraticPaths)
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6, jintArray arg7)
{
jint *lparg7=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUGlyphGetQuadraticPaths_FUNC);
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail;
rc = (jint)ATSUGlyphGetQuadraticPaths((ATSUStyle)arg0, (GlyphID)arg1, (ATSQuadraticNewPathUPP)arg2, (ATSQuadraticLineUPP)arg3, (ATSQuadraticCurveUPP)arg4, (ATSQuadraticClosePathUPP)arg5, (void *)arg6, (OSStatus *)lparg7);
fail:
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0);
OS_NATIVE_EXIT(env, that, ATSUGlyphGetQuadraticPaths_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUHighlightText
JNIEXPORT jint JNICALL OS_NATIVE(ATSUHighlightText)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUHighlightText_FUNC);
rc = (jint)ATSUHighlightText((ATSUTextLayout)arg0, (ATSUTextMeasurement)arg1, (ATSUTextMeasurement)arg2, arg3, arg4);
OS_NATIVE_EXIT(env, that, ATSUHighlightText_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUNextCursorPosition
JNIEXPORT jint JNICALL OS_NATIVE(ATSUNextCursorPosition)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3)
{
jint *lparg3=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUNextCursorPosition_FUNC);
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
rc = (jint)ATSUNextCursorPosition((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (ATSUCursorMovementType)arg2, (UniCharArrayOffset *)lparg3);
fail:
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
OS_NATIVE_EXIT(env, that, ATSUNextCursorPosition_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUOffsetToPosition
JNIEXPORT jint JNICALL OS_NATIVE(ATSUOffsetToPosition)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2, jobject arg3, jobject arg4, jbooleanArray arg5)
{
ATSUCaret _arg3, *lparg3=NULL;
ATSUCaret _arg4, *lparg4=NULL;
jboolean *lparg5=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUOffsetToPosition_FUNC);
if (arg3) if ((lparg3 = getATSUCaretFields(env, arg3, &_arg3)) == NULL) goto fail;
if (arg4) if ((lparg4 = getATSUCaretFields(env, arg4, &_arg4)) == NULL) goto fail;
if (arg5) if ((lparg5 = (*env)->GetBooleanArrayElements(env, arg5, NULL)) == NULL) goto fail;
rc = (jint)ATSUOffsetToPosition((ATSUTextLayout)arg0, arg1, arg2, lparg3, lparg4, (Boolean *)lparg5);
fail:
if (arg5 && lparg5) (*env)->ReleaseBooleanArrayElements(env, arg5, lparg5, 0);
if (arg4 && lparg4) setATSUCaretFields(env, arg4, lparg4);
if (arg3 && lparg3) setATSUCaretFields(env, arg3, lparg3);
OS_NATIVE_EXIT(env, that, ATSUOffsetToPosition_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUPositionToOffset
JNIEXPORT jint JNICALL OS_NATIVE(ATSUPositionToOffset)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jbooleanArray arg4, jintArray arg5)
{
jint *lparg3=NULL;
jboolean *lparg4=NULL;
jint *lparg5=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUPositionToOffset_FUNC);
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
if (arg4) if ((lparg4 = (*env)->GetBooleanArrayElements(env, arg4, NULL)) == NULL) goto fail;
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail;
rc = (jint)ATSUPositionToOffset((ATSUTextLayout)arg0, arg1, arg2, (UniCharArrayOffset *)lparg3, (Boolean *)lparg4, (UniCharArrayOffset *)lparg5);
fail:
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0);
if (arg4 && lparg4) (*env)->ReleaseBooleanArrayElements(env, arg4, lparg4, 0);
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
OS_NATIVE_EXIT(env, that, ATSUPositionToOffset_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUPreviousCursorPosition
JNIEXPORT jint JNICALL OS_NATIVE(ATSUPreviousCursorPosition)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3)
{
jint *lparg3=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUPreviousCursorPosition_FUNC);
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
rc = (jint)ATSUPreviousCursorPosition((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (ATSUCursorMovementType)arg2, (UniCharArrayOffset *)lparg3);
fail:
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
OS_NATIVE_EXIT(env, that, ATSUPreviousCursorPosition_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUSetAttributes
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetAttributes)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2, jintArray arg3, jintArray arg4)
{
jint *lparg2=NULL;
jint *lparg3=NULL;
jint *lparg4=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUSetAttributes_FUNC);
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail;
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
rc = (jint)ATSUSetAttributes((ATSUStyle)arg0, (ItemCount)arg1, (ATSUAttributeTag *)lparg2, (ByteCount *)lparg3, (ATSUAttributeValuePtr *)lparg4);
fail:
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
OS_NATIVE_EXIT(env, that, ATSUSetAttributes_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUSetFontFeatures
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetFontFeatures)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshortArray arg2, jshortArray arg3)
{
jshort *lparg2=NULL;
jshort *lparg3=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUSetFontFeatures_FUNC);
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail;
if (arg3) if ((lparg3 = (*env)->GetShortArrayElements(env, arg3, NULL)) == NULL) goto fail;
rc = (jint)ATSUSetFontFeatures((ATSUStyle)arg0, (ItemCount)arg1, (const ATSUFontFeatureType *)lparg2, (const ATSUFontFeatureSelector *)lparg3);
fail:
if (arg3 && lparg3) (*env)->ReleaseShortArrayElements(env, arg3, lparg3, 0);
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0);
OS_NATIVE_EXIT(env, that, ATSUSetFontFeatures_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUSetHighlightingMethod
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetHighlightingMethod)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2)
{
ATSUUnhighlightData _arg2, *lparg2=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUSetHighlightingMethod_FUNC);
if (arg2) if ((lparg2 = getATSUUnhighlightDataFields(env, arg2, &_arg2)) == NULL) goto fail;
rc = (jint)ATSUSetHighlightingMethod((ATSUTextLayout)arg0, arg1, lparg2);
fail:
if (arg2 && lparg2) setATSUUnhighlightDataFields(env, arg2, lparg2);
OS_NATIVE_EXIT(env, that, ATSUSetHighlightingMethod_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUSetLayoutControls
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetLayoutControls)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2, jintArray arg3, jintArray arg4)
{
jint *lparg2=NULL;
jint *lparg3=NULL;
jint *lparg4=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUSetLayoutControls_FUNC);
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail;
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
rc = (jint)ATSUSetLayoutControls((ATSUTextLayout)arg0, (ItemCount)arg1, (ATSUAttributeTag *)lparg2, (ByteCount *)lparg3, (ATSUAttributeValuePtr *)lparg4);
fail:
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
OS_NATIVE_EXIT(env, that, ATSUSetLayoutControls_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUSetLineControls
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetLineControls)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jintArray arg4, jintArray arg5)
{
jint *lparg3=NULL;
jint *lparg4=NULL;
jint *lparg5=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUSetLineControls_FUNC);
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail;
rc = (jint)ATSUSetLineControls((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (ItemCount)arg2, (const ATSUAttributeTag *)lparg3, (const ByteCount *)lparg4, (const ATSUAttributeValuePtr *)lparg5);
fail:
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0);
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
OS_NATIVE_EXIT(env, that, ATSUSetLineControls_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUSetRunStyle
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetRunStyle)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUSetRunStyle_FUNC);
rc = (jint)ATSUSetRunStyle((ATSUTextLayout)arg0, (ATSUStyle)arg1, (UniCharArrayOffset)arg2, (UniCharCount)arg3);
OS_NATIVE_EXIT(env, that, ATSUSetRunStyle_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUSetSoftLineBreak
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetSoftLineBreak)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUSetSoftLineBreak_FUNC);
rc = (jint)ATSUSetSoftLineBreak((ATSUTextLayout)arg0, arg1);
OS_NATIVE_EXIT(env, that, ATSUSetSoftLineBreak_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUSetTabArray
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetTabArray)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUSetTabArray_FUNC);
rc = (jint)ATSUSetTabArray((ATSUTextLayout)arg0, (const ATSUTab *)arg1, arg2);
OS_NATIVE_EXIT(env, that, ATSUSetTabArray_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUSetTextPointerLocation
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetTextPointerLocation)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUSetTextPointerLocation_FUNC);
rc = (jint)ATSUSetTextPointerLocation((ATSUTextLayout)arg0, (ConstUniCharArrayPtr)arg1, (UniCharArrayOffset)arg2, (UniCharCount)arg3, (UniCharCount)arg4);
OS_NATIVE_EXIT(env, that, ATSUSetTextPointerLocation_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUSetTransientFontMatching
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetTransientFontMatching)
(JNIEnv *env, jclass that, jint arg0, jboolean arg1)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUSetTransientFontMatching_FUNC);
rc = (jint)ATSUSetTransientFontMatching((ATSUTextLayout)arg0, arg1);
OS_NATIVE_EXIT(env, that, ATSUSetTransientFontMatching_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUTextDeleted
JNIEXPORT jint JNICALL OS_NATIVE(ATSUTextDeleted)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUTextDeleted_FUNC);
rc = (jint)ATSUTextDeleted((ATSUTextLayout)arg0, arg1, arg2);
OS_NATIVE_EXIT(env, that, ATSUTextDeleted_FUNC);
return rc;
}
#endif
#ifndef NO_ATSUTextInserted
JNIEXPORT jint JNICALL OS_NATIVE(ATSUTextInserted)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, ATSUTextInserted_FUNC);
rc = (jint)ATSUTextInserted((ATSUTextLayout)arg0, arg1, arg2);
OS_NATIVE_EXIT(env, that, ATSUTextInserted_FUNC);
return rc;
}
#endif
#ifndef NO_AXNotificationHIObjectNotify
JNIEXPORT void JNICALL OS_NATIVE(AXNotificationHIObjectNotify)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jlong arg2)
{
OS_NATIVE_ENTER(env, that, AXNotificationHIObjectNotify_FUNC);
AXNotificationHIObjectNotify((CFStringRef)arg0, (HIObjectRef)arg1, (UInt64)arg2);
OS_NATIVE_EXIT(env, that, AXNotificationHIObjectNotify_FUNC);
}
#endif
#ifndef NO_AXUIElementCreateWithHIObjectAndIdentifier
JNIEXPORT jint JNICALL OS_NATIVE(AXUIElementCreateWithHIObjectAndIdentifier)
(JNIEnv *env, jclass that, jint arg0, jlong arg1)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, AXUIElementCreateWithHIObjectAndIdentifier_FUNC);
rc = (jint)AXUIElementCreateWithHIObjectAndIdentifier((HIObjectRef)arg0, (UInt64)arg1);
OS_NATIVE_EXIT(env, that, AXUIElementCreateWithHIObjectAndIdentifier_FUNC);
return rc;
}
#endif
#ifndef NO_AXUIElementGetIdentifier
JNIEXPORT void JNICALL OS_NATIVE(AXUIElementGetIdentifier)
(JNIEnv *env, jclass that, jint arg0, jlongArray arg1)
{
jlong *lparg1=NULL;
OS_NATIVE_ENTER(env, that, AXUIElementGetIdentifier_FUNC);
if (arg1) if ((lparg1 = (*env)->GetLongArrayElements(env, arg1, NULL)) == NULL) goto fail;
AXUIElementGetIdentifier((AXUIElementRef)arg0, (UInt64 *)lparg1);
fail:
if (arg1 && lparg1) (*env)->ReleaseLongArrayElements(env, arg1, lparg1, 0);
OS_NATIVE_EXIT(env, that, AXUIElementGetIdentifier_FUNC);
}
#endif
#ifndef NO_AXValueCreate
JNIEXPORT jint JNICALL OS_NATIVE(AXValueCreate)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
CFRange _arg1, *lparg1=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, AXValueCreate_FUNC);
if (arg1) if ((lparg1 = getCFRangeFields(env, arg1, &_arg1)) == NULL) goto fail;
rc = (jint)AXValueCreate((AXValueType)arg0, (CFRange *)lparg1);
fail:
if (arg1 && lparg1) setCFRangeFields(env, arg1, lparg1);
OS_NATIVE_EXIT(env, that, AXValueCreate_FUNC);
return rc;
}
#endif
#ifndef NO_AcquireFirstMatchingEventInQueue
JNIEXPORT jint JNICALL OS_NATIVE(AcquireFirstMatchingEventInQueue)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2, jint arg3)
{
jint *lparg2=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, AcquireFirstMatchingEventInQueue_FUNC);
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail;
rc = (jint)AcquireFirstMatchingEventInQueue((EventQueueRef)arg0, arg1, (const EventTypeSpec *)lparg2, arg3);
fail:
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
OS_NATIVE_EXIT(env, that, AcquireFirstMatchingEventInQueue_FUNC);
return rc;
}
#endif
#ifndef NO_ActiveNonFloatingWindow
JNIEXPORT jint JNICALL OS_NATIVE(ActiveNonFloatingWindow)
(JNIEnv *env, jclass that)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, ActiveNonFloatingWindow_FUNC);
rc = (jint)ActiveNonFloatingWindow();
OS_NATIVE_EXIT(env, that, ActiveNonFloatingWindow_FUNC);
return rc;
}
#endif
#ifndef NO_AddDataBrowserItems
JNIEXPORT jint JNICALL OS_NATIVE(AddDataBrowserItems)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4)
{
jint *lparg3=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, AddDataBrowserItems_FUNC);
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
rc = (jint)AddDataBrowserItems((ControlRef)arg0, (DataBrowserItemID)arg1, (UInt32)arg2, (const DataBrowserItemID *)lparg3, (DataBrowserPropertyID)arg4);
fail:
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
OS_NATIVE_EXIT(env, that, AddDataBrowserItems_FUNC);
return rc;
}
#endif
#ifndef NO_AddDataBrowserListViewColumn
JNIEXPORT jint JNICALL OS_NATIVE(AddDataBrowserListViewColumn)
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2)
{
DataBrowserListViewColumnDesc _arg1, *lparg1=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, AddDataBrowserListViewColumn_FUNC);
if (arg1) if ((lparg1 = getDataBrowserListViewColumnDescFields(env, arg1, &_arg1)) == NULL) goto fail;
rc = (jint)AddDataBrowserListViewColumn((ControlRef)arg0, (DataBrowserListViewColumnDesc *)lparg1, (DataBrowserTableViewColumnIndex)arg2);
fail:
if (arg1 && lparg1) setDataBrowserListViewColumnDescFields(env, arg1, lparg1);
OS_NATIVE_EXIT(env, that, AddDataBrowserListViewColumn_FUNC);
return rc;
}
#endif
#ifndef NO_AddDragItemFlavor
JNIEXPORT jint JNICALL OS_NATIVE(AddDragItemFlavor)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jbyteArray arg3, jint arg4, jint arg5)
{
jbyte *lparg3=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, AddDragItemFlavor_FUNC);
if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail;
rc = (jint)AddDragItemFlavor((DragRef)arg0, (DragItemRef)arg1, (FlavorType)arg2, (const void *)lparg3, (Size)arg4, (FlavorFlags)arg5);
fail:
if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0);
OS_NATIVE_EXIT(env, that, AddDragItemFlavor_FUNC);
return rc;
}
#endif
#ifndef NO_AppendMenuItemTextWithCFString
JNIEXPORT jint JNICALL OS_NATIVE(AppendMenuItemTextWithCFString)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jshortArray arg4)
{
jshort *lparg4=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, AppendMenuItemTextWithCFString_FUNC);
if (arg4) if ((lparg4 = (*env)->GetShortArrayElements(env, arg4, NULL)) == NULL) goto fail;
rc = (jint)AppendMenuItemTextWithCFString((MenuRef)arg0, (CFStringRef)arg1, (MenuItemAttributes)arg2, (MenuCommand)arg3, (MenuItemIndex *)lparg4);
fail:
if (arg4 && lparg4) (*env)->ReleaseShortArrayElements(env, arg4, lparg4, 0);
OS_NATIVE_EXIT(env, that, AppendMenuItemTextWithCFString_FUNC);
return rc;
}
#endif
#ifndef NO_AutoSizeDataBrowserListViewColumns
JNIEXPORT jint JNICALL OS_NATIVE(AutoSizeDataBrowserListViewColumns)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, AutoSizeDataBrowserListViewColumns_FUNC);
rc = (jint)AutoSizeDataBrowserListViewColumns((ControlRef)arg0);
OS_NATIVE_EXIT(env, that, AutoSizeDataBrowserListViewColumns_FUNC);
return rc;
}
#endif
#ifndef NO_BringToFront
JNIEXPORT void JNICALL OS_NATIVE(BringToFront)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, BringToFront_FUNC);
BringToFront((WindowRef)arg0);
OS_NATIVE_EXIT(env, that, BringToFront_FUNC);
}
#endif
#ifndef NO_CFArrayAppendValue
JNIEXPORT void JNICALL OS_NATIVE(CFArrayAppendValue)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
OS_NATIVE_ENTER(env, that, CFArrayAppendValue_FUNC);
CFArrayAppendValue((CFMutableArrayRef)arg0, (const void *)arg1);
OS_NATIVE_EXIT(env, that, CFArrayAppendValue_FUNC);
}
#endif
#ifndef NO_CFArrayCreateMutable
JNIEXPORT jint JNICALL OS_NATIVE(CFArrayCreateMutable)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFArrayCreateMutable_FUNC);
rc = (jint)CFArrayCreateMutable((CFAllocatorRef)arg0, (CFIndex)arg1, (const CFArrayCallBacks *)arg2);
OS_NATIVE_EXIT(env, that, CFArrayCreateMutable_FUNC);
return rc;
}
#endif
#ifndef NO_CFArrayGetCount
JNIEXPORT jint JNICALL OS_NATIVE(CFArrayGetCount)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFArrayGetCount_FUNC);
rc = (jint)CFArrayGetCount((CFArrayRef)arg0);
OS_NATIVE_EXIT(env, that, CFArrayGetCount_FUNC);
return rc;
}
#endif
#ifndef NO_CFArrayGetValueAtIndex
JNIEXPORT jint JNICALL OS_NATIVE(CFArrayGetValueAtIndex)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFArrayGetValueAtIndex_FUNC);
rc = (jint)CFArrayGetValueAtIndex((CFArrayRef)arg0, arg1);
OS_NATIVE_EXIT(env, that, CFArrayGetValueAtIndex_FUNC);
return rc;
}
#endif
#ifndef NO_CFDataGetBytePtr
JNIEXPORT jint JNICALL OS_NATIVE(CFDataGetBytePtr)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFDataGetBytePtr_FUNC);
rc = (jint)CFDataGetBytePtr((CFDataRef)arg0);
OS_NATIVE_EXIT(env, that, CFDataGetBytePtr_FUNC);
return rc;
}
#endif
#ifndef NO_CFDataGetBytes
JNIEXPORT void JNICALL OS_NATIVE(CFDataGetBytes)
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jbyteArray arg2)
{
CFRange _arg1, *lparg1=NULL;
jbyte *lparg2=NULL;
OS_NATIVE_ENTER(env, that, CFDataGetBytes_FUNC);
if (arg1) if ((lparg1 = getCFRangeFields(env, arg1, &_arg1)) == NULL) goto fail;
if (arg2) if ((lparg2 = (*env)->GetByteArrayElements(env, arg2, NULL)) == NULL) goto fail;
CFDataGetBytes((CFDataRef)arg0, *lparg1, (UInt8 *)lparg2);
fail:
if (arg2 && lparg2) (*env)->ReleaseByteArrayElements(env, arg2, lparg2, 0);
if (arg1 && lparg1) setCFRangeFields(env, arg1, lparg1);
OS_NATIVE_EXIT(env, that, CFDataGetBytes_FUNC);
}
#endif
#ifndef NO_CFDataGetLength
JNIEXPORT jint JNICALL OS_NATIVE(CFDataGetLength)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFDataGetLength_FUNC);
rc = (jint)CFDataGetLength((CFDataRef)arg0);
OS_NATIVE_EXIT(env, that, CFDataGetLength_FUNC);
return rc;
}
#endif
#ifndef NO_CFDictionaryGetValueIfPresent
JNIEXPORT jboolean JNICALL OS_NATIVE(CFDictionaryGetValueIfPresent)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2)
{
jint *lparg2=NULL;
jboolean rc = 0;
OS_NATIVE_ENTER(env, that, CFDictionaryGetValueIfPresent_FUNC);
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail;
rc = (jboolean)CFDictionaryGetValueIfPresent((CFDictionaryRef)arg0, (const void *)arg1, (const void **)lparg2);
fail:
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
OS_NATIVE_EXIT(env, that, CFDictionaryGetValueIfPresent_FUNC);
return rc;
}
#endif
#ifndef NO_CFEqual
JNIEXPORT jboolean JNICALL OS_NATIVE(CFEqual)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
jboolean rc = 0;
OS_NATIVE_ENTER(env, that, CFEqual_FUNC);
rc = (jboolean)CFEqual((CFStringRef)arg0, (CFStringRef)arg1);
OS_NATIVE_EXIT(env, that, CFEqual_FUNC);
return rc;
}
#endif
#ifndef NO_CFLocaleCopyCurrent
JNIEXPORT jint JNICALL OS_NATIVE(CFLocaleCopyCurrent)
(JNIEnv *env, jclass that)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFLocaleCopyCurrent_FUNC);
rc = (jint)CFLocaleCopyCurrent();
OS_NATIVE_EXIT(env, that, CFLocaleCopyCurrent_FUNC);
return rc;
}
#endif
#ifndef NO_CFNumberFormatterCopyProperty
JNIEXPORT jint JNICALL OS_NATIVE(CFNumberFormatterCopyProperty)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFNumberFormatterCopyProperty_FUNC);
rc = (jint)CFNumberFormatterCopyProperty((CFNumberFormatterRef)arg0, (CFStringRef)arg1);
OS_NATIVE_EXIT(env, that, CFNumberFormatterCopyProperty_FUNC);
return rc;
}
#endif
#ifndef NO_CFNumberFormatterCreate
JNIEXPORT jint JNICALL OS_NATIVE(CFNumberFormatterCreate)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFNumberFormatterCreate_FUNC);
rc = (jint)CFNumberFormatterCreate((CFAllocatorRef)arg0, (CFLocaleRef)arg1, (CFNumberFormatterStyle)arg2);
OS_NATIVE_EXIT(env, that, CFNumberFormatterCreate_FUNC);
return rc;
}
#endif
#ifndef NO_CFRelease
JNIEXPORT void JNICALL OS_NATIVE(CFRelease)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, CFRelease_FUNC);
CFRelease((CFTypeRef)arg0);
OS_NATIVE_EXIT(env, that, CFRelease_FUNC);
}
#endif
#ifndef NO_CFRetain
JNIEXPORT void JNICALL OS_NATIVE(CFRetain)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, CFRetain_FUNC);
CFRetain((CFTypeRef)arg0);
OS_NATIVE_EXIT(env, that, CFRetain_FUNC);
}
#endif
#ifndef NO_CFRunLoopAddObserver
JNIEXPORT void JNICALL OS_NATIVE(CFRunLoopAddObserver)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
OS_NATIVE_ENTER(env, that, CFRunLoopAddObserver_FUNC);
CFRunLoopAddObserver((CFRunLoopRef)arg0, (CFRunLoopObserverRef)arg1, (CFStringRef)arg2);
OS_NATIVE_EXIT(env, that, CFRunLoopAddObserver_FUNC);
}
#endif
#ifndef NO_CFRunLoopAddSource
JNIEXPORT void JNICALL OS_NATIVE(CFRunLoopAddSource)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
OS_NATIVE_ENTER(env, that, CFRunLoopAddSource_FUNC);
CFRunLoopAddSource((CFRunLoopRef)arg0, (CFRunLoopSourceRef)arg1, (CFStringRef)arg2);
OS_NATIVE_EXIT(env, that, CFRunLoopAddSource_FUNC);
}
#endif
#ifndef NO_CFRunLoopObserverCreate
JNIEXPORT jint JNICALL OS_NATIVE(CFRunLoopObserverCreate)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2, jint arg3, jint arg4, jint arg5)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFRunLoopObserverCreate_FUNC);
rc = (jint)CFRunLoopObserverCreate((CFAllocatorRef)arg0, (CFOptionFlags)arg1, arg2, (CFIndex)arg3, (CFRunLoopObserverCallBack)arg4, (CFRunLoopObserverContext *)arg5);
OS_NATIVE_EXIT(env, that, CFRunLoopObserverCreate_FUNC);
return rc;
}
#endif
#ifndef NO_CFRunLoopObserverInvalidate
JNIEXPORT void JNICALL OS_NATIVE(CFRunLoopObserverInvalidate)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, CFRunLoopObserverInvalidate_FUNC);
CFRunLoopObserverInvalidate((CFRunLoopObserverRef)arg0);
OS_NATIVE_EXIT(env, that, CFRunLoopObserverInvalidate_FUNC);
}
#endif
#ifndef NO_CFRunLoopRunInMode
JNIEXPORT jint JNICALL OS_NATIVE(CFRunLoopRunInMode)
(JNIEnv *env, jclass that, jint arg0, jdouble arg1, jboolean arg2)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFRunLoopRunInMode_FUNC);
rc = (jint)CFRunLoopRunInMode((CFStringRef)arg0, (CFTimeInterval)arg1, arg2);
OS_NATIVE_EXIT(env, that, CFRunLoopRunInMode_FUNC);
return rc;
}
#endif
#ifndef NO_CFRunLoopSourceCreate
JNIEXPORT jint JNICALL OS_NATIVE(CFRunLoopSourceCreate)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2)
{
CFRunLoopSourceContext _arg2, *lparg2=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFRunLoopSourceCreate_FUNC);
if (arg2) if ((lparg2 = getCFRunLoopSourceContextFields(env, arg2, &_arg2)) == NULL) goto fail;
rc = (jint)CFRunLoopSourceCreate((CFAllocatorRef)arg0, (CFIndex)arg1, lparg2);
fail:
if (arg2 && lparg2) setCFRunLoopSourceContextFields(env, arg2, lparg2);
OS_NATIVE_EXIT(env, that, CFRunLoopSourceCreate_FUNC);
return rc;
}
#endif
#ifndef NO_CFRunLoopSourceInvalidate
JNIEXPORT void JNICALL OS_NATIVE(CFRunLoopSourceInvalidate)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, CFRunLoopSourceInvalidate_FUNC);
CFRunLoopSourceInvalidate((CFRunLoopSourceRef)arg0);
OS_NATIVE_EXIT(env, that, CFRunLoopSourceInvalidate_FUNC);
}
#endif
#ifndef NO_CFRunLoopSourceSignal
JNIEXPORT void JNICALL OS_NATIVE(CFRunLoopSourceSignal)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, CFRunLoopSourceSignal_FUNC);
CFRunLoopSourceSignal((CFRunLoopSourceRef)arg0);
OS_NATIVE_EXIT(env, that, CFRunLoopSourceSignal_FUNC);
}
#endif
#ifndef NO_CFRunLoopStop
JNIEXPORT void JNICALL OS_NATIVE(CFRunLoopStop)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, CFRunLoopStop_FUNC);
CFRunLoopStop((CFRunLoopRef)arg0);
OS_NATIVE_EXIT(env, that, CFRunLoopStop_FUNC);
}
#endif
#ifndef NO_CFRunLoopWakeUp
JNIEXPORT void JNICALL OS_NATIVE(CFRunLoopWakeUp)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, CFRunLoopWakeUp_FUNC);
CFRunLoopWakeUp((CFRunLoopRef)arg0);
OS_NATIVE_EXIT(env, that, CFRunLoopWakeUp_FUNC);
}
#endif
#ifndef NO_CFStringCreateWithBytes
JNIEXPORT jint JNICALL OS_NATIVE(CFStringCreateWithBytes)
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2, jint arg3, jboolean arg4)
{
jbyte *lparg1=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFStringCreateWithBytes_FUNC);
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail;
rc = (jint)CFStringCreateWithBytes((CFAllocatorRef)arg0, (const UInt8 *)lparg1, (CFIndex)arg2, (CFStringEncoding)arg3, arg4);
fail:
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
OS_NATIVE_EXIT(env, that, CFStringCreateWithBytes_FUNC);
return rc;
}
#endif
#ifndef NO_CFStringCreateWithCharacters__III
JNIEXPORT jint JNICALL OS_NATIVE(CFStringCreateWithCharacters__III)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFStringCreateWithCharacters__III_FUNC);
rc = (jint)CFStringCreateWithCharacters((CFAllocatorRef)arg0, (const UniChar *)arg1, (CFIndex)arg2);
OS_NATIVE_EXIT(env, that, CFStringCreateWithCharacters__III_FUNC);
return rc;
}
#endif
#ifndef NO_CFStringCreateWithCharacters__I_3CI
JNIEXPORT jint JNICALL OS_NATIVE(CFStringCreateWithCharacters__I_3CI)
(JNIEnv *env, jclass that, jint arg0, jcharArray arg1, jint arg2)
{
jchar *lparg1=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFStringCreateWithCharacters__I_3CI_FUNC);
if (arg1) if ((lparg1 = (*env)->GetCharArrayElements(env, arg1, NULL)) == NULL) goto fail;
rc = (jint)CFStringCreateWithCharacters((CFAllocatorRef)arg0, (const UniChar *)lparg1, (CFIndex)arg2);
fail:
if (arg1 && lparg1) (*env)->ReleaseCharArrayElements(env, arg1, lparg1, 0);
OS_NATIVE_EXIT(env, that, CFStringCreateWithCharacters__I_3CI_FUNC);
return rc;
}
#endif
#ifndef NO_CFStringGetBytes
JNIEXPORT jint JNICALL OS_NATIVE(CFStringGetBytes)
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jbyte arg3, jboolean arg4, jbyteArray arg5, jint arg6, jintArray arg7)
{
CFRange _arg1, *lparg1=NULL;
jbyte *lparg5=NULL;
jint *lparg7=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFStringGetBytes_FUNC);
if (arg1) if ((lparg1 = getCFRangeFields(env, arg1, &_arg1)) == NULL) goto fail;
if (arg5) if ((lparg5 = (*env)->GetByteArrayElements(env, arg5, NULL)) == NULL) goto fail;
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail;
rc = (jint)CFStringGetBytes((CFStringRef)arg0, *(CFRange *)lparg1, (CFStringEncoding)arg2, (UInt8)arg3, (Boolean)arg4, (UInt8 *)lparg5, (CFIndex)arg6, (CFIndex *)lparg7);
fail:
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0);
if (arg5 && lparg5) (*env)->ReleaseByteArrayElements(env, arg5, lparg5, 0);
if (arg1 && lparg1) setCFRangeFields(env, arg1, lparg1);
OS_NATIVE_EXIT(env, that, CFStringGetBytes_FUNC);
return rc;
}
#endif
#ifndef NO_CFStringGetCharacters
JNIEXPORT void JNICALL OS_NATIVE(CFStringGetCharacters)
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jcharArray arg2)
{
CFRange _arg1, *lparg1=NULL;
jchar *lparg2=NULL;
OS_NATIVE_ENTER(env, that, CFStringGetCharacters_FUNC);
if (arg1) if ((lparg1 = getCFRangeFields(env, arg1, &_arg1)) == NULL) goto fail;
if (arg2) if ((lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL)) == NULL) goto fail;
CFStringGetCharacters((CFStringRef)arg0, *(CFRange *)lparg1, (UniChar *)lparg2);
fail:
if (arg2 && lparg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0);
if (arg1 && lparg1) setCFRangeFields(env, arg1, lparg1);
OS_NATIVE_EXIT(env, that, CFStringGetCharacters_FUNC);
}
#endif
#ifndef NO_CFStringGetLength
JNIEXPORT jint JNICALL OS_NATIVE(CFStringGetLength)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFStringGetLength_FUNC);
rc = (jint)CFStringGetLength((CFStringRef)arg0);
OS_NATIVE_EXIT(env, that, CFStringGetLength_FUNC);
return rc;
}
#endif
#ifndef NO_CFStringGetSystemEncoding
JNIEXPORT jint JNICALL OS_NATIVE(CFStringGetSystemEncoding)
(JNIEnv *env, jclass that)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFStringGetSystemEncoding_FUNC);
rc = (jint)CFStringGetSystemEncoding();
OS_NATIVE_EXIT(env, that, CFStringGetSystemEncoding_FUNC);
return rc;
}
#endif
#ifndef NO_CFURLCopyFileSystemPath
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCopyFileSystemPath)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFURLCopyFileSystemPath_FUNC);
rc = (jint)CFURLCopyFileSystemPath((CFURLRef)arg0, (CFURLPathStyle)arg1);
OS_NATIVE_EXIT(env, that, CFURLCopyFileSystemPath_FUNC);
return rc;
}
#endif
#ifndef NO_CFURLCopyLastPathComponent
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCopyLastPathComponent)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFURLCopyLastPathComponent_FUNC);
rc = (jint)CFURLCopyLastPathComponent((CFURLRef)arg0);
OS_NATIVE_EXIT(env, that, CFURLCopyLastPathComponent_FUNC);
return rc;
}
#endif
#ifndef NO_CFURLCopyPathExtension
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCopyPathExtension)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFURLCopyPathExtension_FUNC);
rc = (jint)CFURLCopyPathExtension((CFURLRef)arg0);
OS_NATIVE_EXIT(env, that, CFURLCopyPathExtension_FUNC);
return rc;
}
#endif
#ifndef NO_CFURLCreateCopyAppendingPathComponent
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCreateCopyAppendingPathComponent)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jboolean arg3)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFURLCreateCopyAppendingPathComponent_FUNC);
rc = (jint)CFURLCreateCopyAppendingPathComponent((CFAllocatorRef)arg0, (CFURLRef)arg1, (CFStringRef)arg2, (Boolean)arg3);
OS_NATIVE_EXIT(env, that, CFURLCreateCopyAppendingPathComponent_FUNC);
return rc;
}
#endif
#ifndef NO_CFURLCreateCopyDeletingLastPathComponent
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCreateCopyDeletingLastPathComponent)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFURLCreateCopyDeletingLastPathComponent_FUNC);
rc = (jint)CFURLCreateCopyDeletingLastPathComponent((CFAllocatorRef)arg0, (CFURLRef)arg1);
OS_NATIVE_EXIT(env, that, CFURLCreateCopyDeletingLastPathComponent_FUNC);
return rc;
}
#endif
#ifndef NO_CFURLCreateData
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCreateData)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jboolean arg3)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFURLCreateData_FUNC);
rc = (jint)CFURLCreateData((CFAllocatorRef)arg0, (CFURLRef)arg1, (CFStringEncoding)arg2, (Boolean)arg3);
OS_NATIVE_EXIT(env, that, CFURLCreateData_FUNC);
return rc;
}
#endif
#ifndef NO_CFURLCreateFromFSRef
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCreateFromFSRef)
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1)
{
jbyte *lparg1=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFURLCreateFromFSRef_FUNC);
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail;
rc = (jint)CFURLCreateFromFSRef((CFAllocatorRef)arg0, (const struct FSRef *)lparg1);
fail:
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
OS_NATIVE_EXIT(env, that, CFURLCreateFromFSRef_FUNC);
return rc;
}
#endif
#ifndef NO_CFURLCreateFromFileSystemRepresentation
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCreateFromFileSystemRepresentation)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jboolean arg3)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFURLCreateFromFileSystemRepresentation_FUNC);
rc = (jint)CFURLCreateFromFileSystemRepresentation((CFAllocatorRef)arg0, (const UInt8 *)arg1, arg2, arg3);
OS_NATIVE_EXIT(env, that, CFURLCreateFromFileSystemRepresentation_FUNC);
return rc;
}
#endif
#ifndef NO_CFURLCreateStringByAddingPercentEscapes
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCreateStringByAddingPercentEscapes)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFURLCreateStringByAddingPercentEscapes_FUNC);
rc = (jint)CFURLCreateStringByAddingPercentEscapes((CFAllocatorRef)arg0, (CFStringRef)arg1, (CFStringRef)arg2, (CFStringRef)arg3, arg4);
OS_NATIVE_EXIT(env, that, CFURLCreateStringByAddingPercentEscapes_FUNC);
return rc;
}
#endif
#ifndef NO_CFURLCreateWithBytes
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCreateWithBytes)
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2, jint arg3, jint arg4)
{
jbyte *lparg1=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFURLCreateWithBytes_FUNC);
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail;
rc = (jint)CFURLCreateWithBytes((CFAllocatorRef)arg0, (const UInt8 *)lparg1, (CFIndex)arg2, (CFStringEncoding)arg3, (CFURLRef)arg4);
fail:
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
OS_NATIVE_EXIT(env, that, CFURLCreateWithBytes_FUNC);
return rc;
}
#endif
#ifndef NO_CFURLCreateWithFileSystemPath
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCreateWithFileSystemPath)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jboolean arg3)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFURLCreateWithFileSystemPath_FUNC);
rc = (jint)CFURLCreateWithFileSystemPath((CFAllocatorRef)arg0, (CFStringRef)arg1, (CFURLPathStyle)arg2, arg3);
OS_NATIVE_EXIT(env, that, CFURLCreateWithFileSystemPath_FUNC);
return rc;
}
#endif
#ifndef NO_CFURLCreateWithString
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCreateWithString)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CFURLCreateWithString_FUNC);
rc = (jint)CFURLCreateWithString((CFAllocatorRef)arg0, (CFStringRef)arg1, (CFURLRef)arg2);
OS_NATIVE_EXIT(env, that, CFURLCreateWithString_FUNC);
return rc;
}
#endif
#ifndef NO_CFURLGetFSRef
JNIEXPORT jboolean JNICALL OS_NATIVE(CFURLGetFSRef)
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1)
{
jbyte *lparg1=NULL;
jboolean rc = 0;
OS_NATIVE_ENTER(env, that, CFURLGetFSRef_FUNC);
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail;
rc = (jboolean)CFURLGetFSRef((CFURLRef)arg0, (struct FSRef *)lparg1);
fail:
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
OS_NATIVE_EXIT(env, that, CFURLGetFSRef_FUNC);
return rc;
}
#endif
#ifndef NO_CGBitmapContextCreate
JNIEXPORT jint JNICALL OS_NATIVE(CGBitmapContextCreate)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CGBitmapContextCreate_FUNC);
rc = (jint)CGBitmapContextCreate((void *)arg0, (size_t)arg1, (size_t)arg2, (size_t)arg3, (size_t)arg4, (CGColorSpaceRef)arg5, (CGImageAlphaInfo)arg6);
OS_NATIVE_EXIT(env, that, CGBitmapContextCreate_FUNC);
return rc;
}
#endif
#ifndef NO_CGBitmapContextCreateImage
JNIEXPORT jint JNICALL OS_NATIVE(CGBitmapContextCreateImage)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CGBitmapContextCreateImage_FUNC);
/*
rc = (jint)CGBitmapContextCreateImage(arg0);
*/
{
static int initialized = 0;
static CFBundleRef bundle = NULL;
typedef jint (*FPTR)(jint);
static FPTR fptr;
rc = 0;
if (!initialized) {
if (!bundle) bundle = CFBundleGetBundleWithIdentifier(CFSTR(CGBitmapContextCreateImage_LIB));
if (bundle) fptr = (FPTR)CFBundleGetFunctionPointerForName(bundle, CFSTR("CGBitmapContextCreateImage"));
initialized = 1;
}
if (fptr) {
rc = (jint)(*fptr)(arg0);
}
}
OS_NATIVE_EXIT(env, that, CGBitmapContextCreateImage_FUNC);
return rc;
}
#endif
#ifndef NO_CGColorCreate
JNIEXPORT jint JNICALL OS_NATIVE(CGColorCreate)
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1)
{
jfloat *lparg1=NULL;
jint rc = 0;
OS_NATIVE_ENTER(env, that, CGColorCreate_FUNC);
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail;
rc = (jint)CGColorCreate((CGColorSpaceRef)arg0, lparg1);
fail:
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0);
OS_NATIVE_EXIT(env, that, CGColorCreate_FUNC);
return rc;
}
#endif
#ifndef NO_CGColorRelease
JNIEXPORT void JNICALL OS_NATIVE(CGColorRelease)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, CGColorRelease_FUNC);
CGColorRelease((CGColorRef)arg0);
OS_NATIVE_EXIT(env, that, CGColorRelease_FUNC);
}
#endif
#ifndef NO_CGColorSpaceCreateDeviceRGB
JNIEXPORT jint JNICALL OS_NATIVE(CGColorSpaceCreateDeviceRGB)
(JNIEnv *env, jclass that)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CGColorSpaceCreateDeviceRGB_FUNC);
rc = (jint)CGColorSpaceCreateDeviceRGB();
OS_NATIVE_EXIT(env, that, CGColorSpaceCreateDeviceRGB_FUNC);
return rc;
}
#endif
#ifndef NO_CGColorSpaceCreatePattern
JNIEXPORT jint JNICALL OS_NATIVE(CGColorSpaceCreatePattern)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CGColorSpaceCreatePattern_FUNC);
rc = (jint)CGColorSpaceCreatePattern((CGColorSpaceRef)arg0);
OS_NATIVE_EXIT(env, that, CGColorSpaceCreatePattern_FUNC);
return rc;
}
#endif
#ifndef NO_CGColorSpaceRelease
JNIEXPORT void JNICALL OS_NATIVE(CGColorSpaceRelease)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, CGColorSpaceRelease_FUNC);
CGColorSpaceRelease((CGColorSpaceRef)arg0);
OS_NATIVE_EXIT(env, that, CGColorSpaceRelease_FUNC);
}
#endif
#ifndef NO_CGContextAddArc
JNIEXPORT void JNICALL OS_NATIVE(CGContextAddArc)
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2, jfloat arg3, jfloat arg4, jfloat arg5, jboolean arg6)
{
OS_NATIVE_ENTER(env, that, CGContextAddArc_FUNC);
CGContextAddArc((CGContextRef)arg0, (float)arg1, (float)arg2, (float)arg3, (float)arg4, (float)arg5, (Boolean)arg6);
OS_NATIVE_EXIT(env, that, CGContextAddArc_FUNC);
}
#endif
#ifndef NO_CGContextAddArcToPoint
JNIEXPORT void JNICALL OS_NATIVE(CGContextAddArcToPoint)
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2, jfloat arg3, jfloat arg4, jfloat arg5)
{
OS_NATIVE_ENTER(env, that, CGContextAddArcToPoint_FUNC);
CGContextAddArcToPoint((CGContextRef)arg0, arg1, arg2, arg3, arg4, arg5);
OS_NATIVE_EXIT(env, that, CGContextAddArcToPoint_FUNC);
}
#endif
#ifndef NO_CGContextAddLineToPoint
JNIEXPORT void JNICALL OS_NATIVE(CGContextAddLineToPoint)
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2)
{
OS_NATIVE_ENTER(env, that, CGContextAddLineToPoint_FUNC);
CGContextAddLineToPoint((CGContextRef)arg0, arg1, arg2);
OS_NATIVE_EXIT(env, that, CGContextAddLineToPoint_FUNC);
}
#endif
#ifndef NO_CGContextAddLines
JNIEXPORT void JNICALL OS_NATIVE(CGContextAddLines)
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1, jint arg2)
{
jfloat *lparg1=NULL;
OS_NATIVE_ENTER(env, that, CGContextAddLines_FUNC);
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail;
CGContextAddLines((CGContextRef)arg0, (const CGPoint *)lparg1, (size_t)arg2);
fail:
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0);
OS_NATIVE_EXIT(env, that, CGContextAddLines_FUNC);
}
#endif
#ifndef NO_CGContextAddPath
JNIEXPORT void JNICALL OS_NATIVE(CGContextAddPath)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
OS_NATIVE_ENTER(env, that, CGContextAddPath_FUNC);
CGContextAddPath((CGContextRef)arg0, (CGPathRef)arg1);
OS_NATIVE_EXIT(env, that, CGContextAddPath_FUNC);
}
#endif
#ifndef NO_CGContextAddRect
JNIEXPORT void JNICALL OS_NATIVE(CGContextAddRect)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
CGRect _arg1, *lparg1=NULL;
OS_NATIVE_ENTER(env, that, CGContextAddRect_FUNC);
if (arg1) if ((lparg1 = getCGRectFields(env, arg1, &_arg1)) == NULL) goto fail;
CGContextAddRect((CGContextRef)arg0, *lparg1);
fail:
if (arg1 && lparg1) setCGRectFields(env, arg1, lparg1);
OS_NATIVE_EXIT(env, that, CGContextAddRect_FUNC);
}
#endif
#ifndef NO_CGContextBeginPath
JNIEXPORT void JNICALL OS_NATIVE(CGContextBeginPath)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, CGContextBeginPath_FUNC);
CGContextBeginPath((CGContextRef)arg0);
OS_NATIVE_EXIT(env, that, CGContextBeginPath_FUNC);
}
#endif
#ifndef NO_CGContextClearRect
JNIEXPORT void JNICALL OS_NATIVE(CGContextClearRect)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
CGRect _arg1, *lparg1=NULL;
OS_NATIVE_ENTER(env, that, CGContextClearRect_FUNC);
if (arg1) if ((lparg1 = getCGRectFields(env, arg1, &_arg1)) == NULL) goto fail;
CGContextClearRect((CGContextRef)arg0, *(CGRect *)lparg1);
fail:
if (arg1 && lparg1) setCGRectFields(env, arg1, lparg1);
OS_NATIVE_EXIT(env, that, CGContextClearRect_FUNC);
}
#endif
#ifndef NO_CGContextClip
JNIEXPORT void JNICALL OS_NATIVE(CGContextClip)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, CGContextClip_FUNC);
CGContextClip((CGContextRef)arg0);
OS_NATIVE_EXIT(env, that, CGContextClip_FUNC);
}
#endif
#ifndef NO_CGContextClosePath
JNIEXPORT void JNICALL OS_NATIVE(CGContextClosePath)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, CGContextClosePath_FUNC);
CGContextClosePath((CGContextRef)arg0);
OS_NATIVE_EXIT(env, that, CGContextClosePath_FUNC);
}
#endif
#ifndef NO_CGContextConcatCTM
JNIEXPORT void JNICALL OS_NATIVE(CGContextConcatCTM)
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1)
{
jfloat *lparg1=NULL;
OS_NATIVE_ENTER(env, that, CGContextConcatCTM_FUNC);
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail;
CGContextConcatCTM((CGContextRef)arg0, *(CGAffineTransform *)lparg1);
fail:
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0);
OS_NATIVE_EXIT(env, that, CGContextConcatCTM_FUNC);
}
#endif
#ifndef NO_CGContextDrawImage
JNIEXPORT void JNICALL OS_NATIVE(CGContextDrawImage)
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2)
{
CGRect _arg1, *lparg1=NULL;
OS_NATIVE_ENTER(env, that, CGContextDrawImage_FUNC);
if (arg1) if ((lparg1 = getCGRectFields(env, arg1, &_arg1)) == NULL) goto fail;
CGContextDrawImage((CGContextRef)arg0, *(CGRect *)lparg1, (CGImageRef)arg2);
fail:
if (arg1 && lparg1) setCGRectFields(env, arg1, lparg1);
OS_NATIVE_EXIT(env, that, CGContextDrawImage_FUNC);
}
#endif
#ifndef NO_CGContextDrawShading
JNIEXPORT void JNICALL OS_NATIVE(CGContextDrawShading)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
OS_NATIVE_ENTER(env, that, CGContextDrawShading_FUNC);
CGContextDrawShading((CGContextRef)arg0, (CGShadingRef)arg1);
OS_NATIVE_EXIT(env, that, CGContextDrawShading_FUNC);
}
#endif
#ifndef NO_CGContextEOClip
JNIEXPORT void JNICALL OS_NATIVE(CGContextEOClip)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, CGContextEOClip_FUNC);
CGContextEOClip((CGContextRef)arg0);
OS_NATIVE_EXIT(env, that, CGContextEOClip_FUNC);
}
#endif
#ifndef NO_CGContextEOFillPath
JNIEXPORT void JNICALL OS_NATIVE(CGContextEOFillPath)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, CGContextEOFillPath_FUNC);
CGContextEOFillPath((CGContextRef)arg0);
OS_NATIVE_EXIT(env, that, CGContextEOFillPath_FUNC);
}
#endif
#ifndef NO_CGContextFillPath
JNIEXPORT void JNICALL OS_NATIVE(CGContextFillPath)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, CGContextFillPath_FUNC);
CGContextFillPath((CGContextRef)arg0);
OS_NATIVE_EXIT(env, that, CGContextFillPath_FUNC);
}
#endif
#ifndef NO_CGContextFillRect
JNIEXPORT void JNICALL OS_NATIVE(CGContextFillRect)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
CGRect _arg1, *lparg1=NULL;
OS_NATIVE_ENTER(env, that, CGContextFillRect_FUNC);
if (arg1) if ((lparg1 = getCGRectFields(env, arg1, &_arg1)) == NULL) goto fail;
CGContextFillRect((CGContextRef)arg0, *(CGRect *)lparg1);
fail:
if (arg1 && lparg1) setCGRectFields(env, arg1, lparg1);
OS_NATIVE_EXIT(env, that, CGContextFillRect_FUNC);
}
#endif
#ifndef NO_CGContextFlush
JNIEXPORT void JNICALL OS_NATIVE(CGContextFlush)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, CGContextFlush_FUNC);
CGContextFlush((CGContextRef)arg0);
OS_NATIVE_EXIT(env, that, CGContextFlush_FUNC);
}
#endif
#ifndef NO_CGContextGetInterpolationQuality
JNIEXPORT jint JNICALL OS_NATIVE(CGContextGetInterpolationQuality)
(JNIEnv *env, jclass that, jint arg0)
{
jint rc = 0;
OS_NATIVE_ENTER(env, that, CGContextGetInterpolationQuality_FUNC);
rc = (jint)CGContextGetInterpolationQuality((CGContextRef)arg0);
OS_NATIVE_EXIT(env, that, CGContextGetInterpolationQuality_FUNC);
return rc;
}
#endif
#ifndef NO_CGContextMoveToPoint
JNIEXPORT void JNICALL OS_NATIVE(CGContextMoveToPoint)
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2)
{
OS_NATIVE_ENTER(env, that, CGContextMoveToPoint_FUNC);
CGContextMoveToPoint((CGContextRef)arg0, (float)arg1, (float)arg2);
OS_NATIVE_EXIT(env, that, CGContextMoveToPoint_FUNC);
}
#endif
#ifndef NO_CGContextRelease
JNIEXPORT void JNICALL OS_NATIVE(CGContextRelease)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, CGContextRelease_FUNC);
CGContextRelease((CGContextRef)arg0);
OS_NATIVE_EXIT(env, that, CGContextRelease_FUNC);
}
#endif
#ifndef NO_CGContextRestoreGState
JNIEXPORT void JNICALL OS_NATIVE(CGContextRestoreGState)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, CGContextRestoreGState_FUNC);
CGContextRestoreGState((CGContextRef)arg0);
OS_NATIVE_EXIT(env, that, CGContextRestoreGState_FUNC);
}
#endif
#ifndef NO_CGContextSaveGState
JNIEXPORT void JNICALL OS_NATIVE(CGContextSaveGState)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, CGContextSaveGState_FUNC);
CGContextSaveGState((CGContextRef)arg0);
OS_NATIVE_EXIT(env, that, CGContextSaveGState_FUNC);
}
#endif
#ifndef NO_CGContextScaleCTM
JNIEXPORT void JNICALL OS_NATIVE(CGContextScaleCTM)
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2)
{
OS_NATIVE_ENTER(env, that, CGContextScaleCTM_FUNC);
CGContextScaleCTM((CGContextRef)arg0, (float)arg1, (float)arg2);
OS_NATIVE_EXIT(env, that, CGContextScaleCTM_FUNC);
}
#endif
#ifndef NO_CGContextSelectFont
JNIEXPORT void JNICALL OS_NATIVE(CGContextSelectFont)
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jfloat arg2, jint arg3)
{
jbyte *lparg1=NULL;
OS_NATIVE_ENTER(env, that, CGContextSelectFont_FUNC);
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail;
CGContextSelectFont((CGContextRef)arg0, (const char *)lparg1, (float)arg2, (CGTextEncoding)arg3);
fail:
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
OS_NATIVE_EXIT(env, that, CGContextSelectFont_FUNC);
}
#endif
#ifndef NO_CGContextSetAlpha
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetAlpha)
(JNIEnv *env, jclass that, jint arg0, jfloat arg1)
{
OS_NATIVE_ENTER(env, that, CGContextSetAlpha_FUNC);
CGContextSetAlpha((CGContextRef)arg0, arg1);
OS_NATIVE_EXIT(env, that, CGContextSetAlpha_FUNC);
}
#endif
#ifndef NO_CGContextSetFillColor
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetFillColor)
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1)
{
jfloat *lparg1=NULL;
OS_NATIVE_ENTER(env, that, CGContextSetFillColor_FUNC);
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail;
CGContextSetFillColor((CGContextRef)arg0, (const float *)lparg1);
fail:
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0);
OS_NATIVE_EXIT(env, that, CGContextSetFillColor_FUNC);
}
#endif
#ifndef NO_CGContextSetFillColorSpace
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetFillColorSpace)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
OS_NATIVE_ENTER(env, that, CGContextSetFillColorSpace_FUNC);
CGContextSetFillColorSpace((CGContextRef)arg0, (CGColorSpaceRef)arg1);
OS_NATIVE_EXIT(env, that, CGContextSetFillColorSpace_FUNC);
}
#endif
#ifndef NO_CGContextSetFillPattern
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetFillPattern)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jfloatArray arg2)
{
jfloat *lparg2=NULL;
OS_NATIVE_ENTER(env, that, CGContextSetFillPattern_FUNC);
if (arg2) if ((lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL)) == NULL) goto fail;
CGContextSetFillPattern((CGContextRef)arg0, (CGPatternRef)arg1, lparg2);
fail:
if (arg2 && lparg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
OS_NATIVE_EXIT(env, that, CGContextSetFillPattern_FUNC);
}
#endif
#ifndef NO_CGContextSetFont
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetFont)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
OS_NATIVE_ENTER(env, that, CGContextSetFont_FUNC);
CGContextSetFont((CGContextRef)arg0, (CGFontRef)arg1);
OS_NATIVE_EXIT(env, that, CGContextSetFont_FUNC);
}
#endif
#ifndef NO_CGContextSetFontSize
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetFontSize)
(JNIEnv *env, jclass that, jint arg0, jfloat arg1)
{
OS_NATIVE_ENTER(env, that, CGContextSetFontSize_FUNC);
CGContextSetFontSize((CGContextRef)arg0, (float)arg1);
OS_NATIVE_EXIT(env, that, CGContextSetFontSize_FUNC);
}
#endif
#ifndef NO_CGContextSetInterpolationQuality
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetInterpolationQuality)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
OS_NATIVE_ENTER(env, that, CGContextSetInterpolationQuality_FUNC);
CGContextSetInterpolationQuality((CGContextRef)arg0, arg1);
OS_NATIVE_EXIT(env, that, CGContextSetInterpolationQuality_FUNC);
}
#endif
#ifndef NO_CGContextSetLineCap
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetLineCap)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
OS_NATIVE_ENTER(env, that, CGContextSetLineCap_FUNC);
CGContextSetLineCap((CGContextRef)arg0, arg1);
OS_NATIVE_EXIT(env, that, CGContextSetLineCap_FUNC);
}
#endif
#ifndef NO_CGContextSetLineDash
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetLineDash)
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloatArray arg2, jint arg3)
{
jfloat *lparg2=NULL;
OS_NATIVE_ENTER(env, that, CGContextSetLineDash_FUNC);
if (arg2) if ((lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL)) == NULL) goto fail;
CGContextSetLineDash((CGContextRef)arg0, (float)arg1, (const float *)lparg2, (size_t)arg3);
fail:
if (arg2 && lparg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
OS_NATIVE_EXIT(env, that, CGContextSetLineDash_FUNC);
}
#endif
#ifndef NO_CGContextSetLineJoin
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetLineJoin)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
OS_NATIVE_ENTER(env, that, CGContextSetLineJoin_FUNC);
CGContextSetLineJoin((CGContextRef)arg0, arg1);
OS_NATIVE_EXIT(env, that, CGContextSetLineJoin_FUNC);
}
#endif
#ifndef NO_CGContextSetLineWidth
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetLineWidth)
(JNIEnv *env, jclass that, jint arg0, jfloat arg1)
{
OS_NATIVE_ENTER(env, that, CGContextSetLineWidth_FUNC);
CGContextSetLineWidth((CGContextRef)arg0, (float)arg1);
OS_NATIVE_EXIT(env, that, CGContextSetLineWidth_FUNC);
}
#endif
#ifndef NO_CGContextSetMiterLimit
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetMiterLimit)
(JNIEnv *env, jclass that, jint arg0, jfloat arg1)
{
OS_NATIVE_ENTER(env, that, CGContextSetMiterLimit_FUNC);
CGContextSetMiterLimit((CGContextRef)arg0, arg1);
OS_NATIVE_EXIT(env, that, CGContextSetMiterLimit_FUNC);
}
#endif
#ifndef NO_CGContextSetRGBFillColor
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetRGBFillColor)
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2, jfloat arg3, jfloat arg4)
{
OS_NATIVE_ENTER(env, that, CGContextSetRGBFillColor_FUNC);
CGContextSetRGBFillColor((CGContextRef)arg0, (float)arg1, (float)arg2, (float)arg3, (float)arg4);
OS_NATIVE_EXIT(env, that, CGContextSetRGBFillColor_FUNC);
}
#endif
#ifndef NO_CGContextSetRGBStrokeColor
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetRGBStrokeColor)
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2, jfloat arg3, jfloat arg4)
{
OS_NATIVE_ENTER(env, that, CGContextSetRGBStrokeColor_FUNC);
CGContextSetRGBStrokeColor((CGContextRef)arg0, (float)arg1, (float)arg2, (float)arg3, (float)arg4);
OS_NATIVE_EXIT(env, that, CGContextSetRGBStrokeColor_FUNC);
}
#endif
#ifndef NO_CGContextSetRenderingIntent
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetRenderingIntent)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
OS_NATIVE_ENTER(env, that, CGContextSetRenderingIntent_FUNC);
CGContextSetRenderingIntent((CGContextRef)arg0, arg1);
OS_NATIVE_EXIT(env, that, CGContextSetRenderingIntent_FUNC);
}
#endif
#ifndef NO_CGContextSetShouldAntialias
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetShouldAntialias)
(JNIEnv *env, jclass that, jint arg0, jboolean arg1)
{
OS_NATIVE_ENTER(env, that, CGContextSetShouldAntialias_FUNC);
CGContextSetShouldAntialias((CGContextRef)arg0, arg1);
OS_NATIVE_EXIT(env, that, CGContextSetShouldAntialias_FUNC);
}
#endif
#ifndef NO_CGContextSetShouldSmoothFonts
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetShouldSmoothFonts)
(JNIEnv *env, jclass that, jint arg0, jboolean arg1)
{
OS_NATIVE_ENTER(env, that, CGContextSetShouldSmoothFonts_FUNC);
CGContextSetShouldSmoothFonts((CGContextRef)arg0, arg1);
OS_NATIVE_EXIT(env, that, CGContextSetShouldSmoothFonts_FUNC);
}
#endif
#ifndef NO_CGContextSetStrokeColor
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetStrokeColor)
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1)
{
jfloat *lparg1=NULL;
OS_NATIVE_ENTER(env, that, CGContextSetStrokeColor_FUNC);
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail;
CGContextSetStrokeColor((CGContextRef)arg0, (const float *)lparg1);
fail:
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0);
OS_NATIVE_EXIT(env, that, CGContextSetStrokeColor_FUNC);
}
#endif
#ifndef NO_CGContextSetStrokeColorSpace
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetStrokeColorSpace)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
OS_NATIVE_ENTER(env, that, CGContextSetStrokeColorSpace_FUNC);
CGContextSetStrokeColorSpace((CGContextRef)arg0, (CGColorSpaceRef)arg1);
OS_NATIVE_EXIT(env, that, CGContextSetStrokeColorSpace_FUNC);
}
#endif
#ifndef NO_CGContextSetStrokePattern
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetStrokePattern)
(JNIEnv *env, jclass that, jint arg0, jint arg1, jfloatArray arg2)
{
jfloat *lparg2=NULL;
OS_NATIVE_ENTER(env, that, CGContextSetStrokePattern_FUNC);
if (arg2) if ((lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL)) == NULL) goto fail;
CGContextSetStrokePattern((CGContextRef)arg0, (CGPatternRef)arg1, lparg2);
fail:
if (arg2 && lparg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0);
OS_NATIVE_EXIT(env, that, CGContextSetStrokePattern_FUNC);
}
#endif
#ifndef NO_CGContextSetTextDrawingMode
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetTextDrawingMode)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
{
OS_NATIVE_ENTER(env, that, CGContextSetTextDrawingMode_FUNC);
CGContextSetTextDrawingMode((CGContextRef)arg0, (CGTextDrawingMode)arg1);
OS_NATIVE_EXIT(env, that, CGContextSetTextDrawingMode_FUNC);
}
#endif
#ifndef NO_CGContextSetTextMatrix
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetTextMatrix)
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1)
{
jfloat *lparg1=NULL;
OS_NATIVE_ENTER(env, that, CGContextSetTextMatrix_FUNC);
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail;
CGContextSetTextMatrix((CGContextRef)arg0, *(CGAffineTransform *)lparg1);
fail:
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0);
OS_NATIVE_EXIT(env, that, CGContextSetTextMatrix_FUNC);
}
#endif
#ifndef NO_CGContextSetTextPosition
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetTextPosition)
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2)
{
OS_NATIVE_ENTER(env, that, CGContextSetTextPosition_FUNC);
CGContextSetTextPosition((CGContextRef)arg0, (float)arg1, (float)arg2);
OS_NATIVE_EXIT(env, that, CGContextSetTextPosition_FUNC);
}
#endif
#ifndef NO_CGContextShowText
JNIEXPORT void JNICALL OS_NATIVE(CGContextShowText)
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2)
{
jbyte *lparg1=NULL;
OS_NATIVE_ENTER(env, that, CGContextShowText_FUNC);
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail;
CGContextShowText((CGContextRef)arg0, (const char *)lparg1, (size_t)arg2);
fail:
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0);
OS_NATIVE_EXIT(env, that, CGContextShowText_FUNC);
}
#endif
#ifndef NO_CGContextShowTextAtPoint
JNIEXPORT void JNICALL OS_NATIVE(CGContextShowTextAtPoint)
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2, jbyteArray arg3, jint arg4)
{
jbyte *lparg3=NULL;
OS_NATIVE_ENTER(env, that, CGContextShowTextAtPoint_FUNC);
if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail;
CGContextShowTextAtPoint((CGContextRef)arg0, (float)arg1, (float)arg2, (const char *)lparg3, (size_t)arg4);
fail:
if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0);
OS_NATIVE_EXIT(env, that, CGContextShowTextAtPoint_FUNC);
}
#endif
#ifndef NO_CGContextStrokePath
JNIEXPORT void JNICALL OS_NATIVE(CGContextStrokePath)
(JNIEnv *env, jclass that, jint arg0)
{
OS_NATIVE_ENTER(env, that, CGContextStrokePath_FUNC);
CGContextStrokePath((CGContextRef)arg0);
OS_NATIVE_EXIT(env, that, CGContextStrokePath_FUNC);
}
#endif
#ifndef NO_CGContextStrokeRect
JNIEXPORT void JNICALL OS_NATIVE(CGContextStrokeRect)
(JNIEnv *env, jclass that, jint arg0, jobject arg1)
{
CGRect _arg1, *lparg1=NULL;
OS_NATIVE_ENTER(env, that, CGContextStrokeRect_FUNC);
if (arg1) if ((lparg1 = getCGRectFields(env, arg1, &_arg1)) == NULL) goto fail;
CGContextStrokeRect((CGContextRef)arg0, *(CGRect *)lparg1);
fail:
if (arg1 && lparg1) setCGRectFields(env, arg1, lparg1);
OS_NATIVE_EXIT(env, that,