|
Lines 1-11149
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2000, 2004 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2004 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Common Public License v1.0 |
4 |
* are made available under the terms of the Common Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
| 6 |
* http://www.eclipse.org/legal/cpl-v10.html |
6 |
* http://www.eclipse.org/legal/cpl-v10.html |
| 7 |
* |
7 |
* |
| 8 |
* Contributors: |
8 |
* Contributors: |
| 9 |
* IBM Corporation - initial API and implementation |
9 |
* IBM Corporation - initial API and implementation |
| 10 |
*******************************************************************************/ |
10 |
*******************************************************************************/ |
| 11 |
|
11 |
|
| 12 |
#include "swt.h" |
12 |
#include "swt.h" |
| 13 |
#include "os_structs.h" |
13 |
#include "os_structs.h" |
| 14 |
#include "os_stats.h" |
14 |
#include "os_stats.h" |
| 15 |
|
15 |
|
| 16 |
#define OS_NATIVE(func) Java_org_eclipse_swt_internal_carbon_OS_##func |
16 |
#define OS_NATIVE(func) Java_org_eclipse_swt_internal_carbon_OS_##func |
| 17 |
|
17 |
|
| 18 |
#ifndef NO_AECountItems |
18 |
#ifndef NO_AECountItems |
| 19 |
JNIEXPORT jint JNICALL OS_NATIVE(AECountItems) |
19 |
JNIEXPORT jint JNICALL OS_NATIVE(AECountItems) |
| 20 |
(JNIEnv *env, jclass that, jobject arg0, jintArray arg1) |
20 |
(JNIEnv *env, jclass that, jobject arg0, jintArray arg1) |
| 21 |
{ |
21 |
{ |
| 22 |
AEDesc _arg0, *lparg0=NULL; |
22 |
AEDesc _arg0, *lparg0=NULL; |
| 23 |
jint *lparg1=NULL; |
23 |
jint *lparg1=NULL; |
| 24 |
jint rc = 0; |
24 |
jint rc = 0; |
| 25 |
OS_NATIVE_ENTER(env, that, AECountItems_FUNC); |
25 |
OS_NATIVE_ENTER(env, that, AECountItems_FUNC); |
| 26 |
if (arg0) if ((lparg0 = getAEDescFields(env, arg0, &_arg0)) == NULL) goto fail; |
26 |
if (arg0) if ((lparg0 = getAEDescFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 27 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
27 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 28 |
rc = (jint)AECountItems((const AEDescList *)lparg0, (long *)lparg1); |
28 |
rc = (jint)AECountItems((const AEDescList *)lparg0, (long *)lparg1); |
| 29 |
fail: |
29 |
fail: |
| 30 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
30 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 31 |
if (arg0 && lparg0) setAEDescFields(env, arg0, lparg0); |
31 |
if (arg0 && lparg0) setAEDescFields(env, arg0, lparg0); |
| 32 |
OS_NATIVE_EXIT(env, that, AECountItems_FUNC); |
32 |
OS_NATIVE_EXIT(env, that, AECountItems_FUNC); |
| 33 |
return rc; |
33 |
return rc; |
| 34 |
} |
34 |
} |
| 35 |
#endif |
35 |
#endif |
| 36 |
|
36 |
|
| 37 |
#ifndef NO_AEGetNthPtr |
37 |
#ifndef NO_AECreateDesc |
| 38 |
JNIEXPORT jint JNICALL OS_NATIVE(AEGetNthPtr) |
38 |
JNIEXPORT jint JNICALL OS_NATIVE(AECreateDesc) |
| 39 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2, jintArray arg3, jintArray arg4, jint arg5, jint arg6, jintArray arg7) |
39 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jobject arg3) |
| 40 |
{ |
40 |
{ |
| 41 |
AEDesc _arg0, *lparg0=NULL; |
41 |
AEDesc _arg3, *lparg3=NULL; |
| 42 |
jint *lparg3=NULL; |
42 |
jint rc = 0; |
| 43 |
jint *lparg4=NULL; |
43 |
OS_NATIVE_ENTER(env, that, AECreateDesc_FUNC); |
| 44 |
jint *lparg7=NULL; |
44 |
if (arg3) if ((lparg3 = &_arg3) == NULL) goto fail; |
| 45 |
jint rc = 0; |
45 |
rc = (jint)AECreateDesc((DescType)arg0, (const void *)arg1, (Size)arg2, lparg3); |
| 46 |
OS_NATIVE_ENTER(env, that, AEGetNthPtr_FUNC); |
46 |
fail: |
| 47 |
if (arg0) if ((lparg0 = getAEDescFields(env, arg0, &_arg0)) == NULL) goto fail; |
47 |
if (arg3 && lparg3) setAEDescFields(env, arg3, lparg3); |
| 48 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
48 |
OS_NATIVE_EXIT(env, that, AECreateDesc_FUNC); |
| 49 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
49 |
return rc; |
| 50 |
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail; |
50 |
} |
| 51 |
rc = (jint)AEGetNthPtr((const AEDescList *)lparg0, arg1, (DescType)arg2, (AEKeyword *)lparg3, (DescType *)lparg4, (void *)arg5, (Size)arg6, (Size *)lparg7); |
51 |
#endif |
| 52 |
fail: |
52 |
|
| 53 |
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0); |
53 |
#ifndef NO_AEDisposeDesc |
| 54 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
54 |
JNIEXPORT jint JNICALL OS_NATIVE(AEDisposeDesc) |
| 55 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
55 |
(JNIEnv *env, jclass that, jobject arg0) |
| 56 |
if (arg0 && lparg0) setAEDescFields(env, arg0, lparg0); |
56 |
{ |
| 57 |
OS_NATIVE_EXIT(env, that, AEGetNthPtr_FUNC); |
57 |
AEDesc _arg0, *lparg0=NULL; |
| 58 |
return rc; |
58 |
jint rc = 0; |
| 59 |
} |
59 |
OS_NATIVE_ENTER(env, that, AEDisposeDesc_FUNC); |
| 60 |
#endif |
60 |
if (arg0) if ((lparg0 = getAEDescFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 61 |
|
61 |
rc = (jint)AEDisposeDesc(lparg0); |
| 62 |
#ifndef NO_AEProcessAppleEvent |
62 |
fail: |
| 63 |
JNIEXPORT jint JNICALL OS_NATIVE(AEProcessAppleEvent) |
63 |
OS_NATIVE_EXIT(env, that, AEDisposeDesc_FUNC); |
| 64 |
(JNIEnv *env, jclass that, jobject arg0) |
64 |
return rc; |
| 65 |
{ |
65 |
} |
| 66 |
EventRecord _arg0, *lparg0=NULL; |
66 |
#endif |
| 67 |
jint rc = 0; |
67 |
|
| 68 |
OS_NATIVE_ENTER(env, that, AEProcessAppleEvent_FUNC); |
68 |
#ifndef NO_AEGetNthPtr |
| 69 |
if (arg0) if ((lparg0 = getEventRecordFields(env, arg0, &_arg0)) == NULL) goto fail; |
69 |
JNIEXPORT jint JNICALL OS_NATIVE(AEGetNthPtr) |
| 70 |
rc = (jint)AEProcessAppleEvent((const EventRecord *)lparg0); |
70 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2, jintArray arg3, jintArray arg4, jint arg5, jint arg6, jintArray arg7) |
| 71 |
fail: |
71 |
{ |
| 72 |
if (arg0 && lparg0) setEventRecordFields(env, arg0, lparg0); |
72 |
AEDesc _arg0, *lparg0=NULL; |
| 73 |
OS_NATIVE_EXIT(env, that, AEProcessAppleEvent_FUNC); |
73 |
jint *lparg3=NULL; |
| 74 |
return rc; |
74 |
jint *lparg4=NULL; |
| 75 |
} |
75 |
jint *lparg7=NULL; |
| 76 |
#endif |
76 |
jint rc = 0; |
| 77 |
|
77 |
OS_NATIVE_ENTER(env, that, AEGetNthPtr_FUNC); |
| 78 |
#ifndef NO_ATSFontGetPostScriptName |
78 |
if (arg0) if ((lparg0 = getAEDescFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 79 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSFontGetPostScriptName) |
79 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 80 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
80 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 81 |
{ |
81 |
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail; |
| 82 |
jint *lparg2=NULL; |
82 |
rc = (jint)AEGetNthPtr((const AEDescList *)lparg0, arg1, (DescType)arg2, (AEKeyword *)lparg3, (DescType *)lparg4, (void *)arg5, (Size)arg6, (Size *)lparg7); |
| 83 |
jint rc = 0; |
83 |
fail: |
| 84 |
OS_NATIVE_ENTER(env, that, ATSFontGetPostScriptName_FUNC); |
84 |
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0); |
| 85 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
85 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 86 |
rc = (jint)ATSFontGetPostScriptName((ATSFontRef)arg0, (ATSOptionFlags)arg1, (CFStringRef *)lparg2); |
86 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 87 |
fail: |
87 |
if (arg0 && lparg0) setAEDescFields(env, arg0, lparg0); |
| 88 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
88 |
OS_NATIVE_EXIT(env, that, AEGetNthPtr_FUNC); |
| 89 |
OS_NATIVE_EXIT(env, that, ATSFontGetPostScriptName_FUNC); |
89 |
return rc; |
| 90 |
return rc; |
90 |
} |
| 91 |
} |
91 |
#endif |
| 92 |
#endif |
92 |
|
| 93 |
|
93 |
#ifndef NO_AEProcessAppleEvent |
| 94 |
#ifndef NO_ATSUBatchBreakLines |
94 |
JNIEXPORT jint JNICALL OS_NATIVE(AEProcessAppleEvent) |
| 95 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUBatchBreakLines) |
95 |
(JNIEnv *env, jclass that, jobject arg0) |
| 96 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4) |
96 |
{ |
| 97 |
{ |
97 |
EventRecord _arg0, *lparg0=NULL; |
| 98 |
jint *lparg4=NULL; |
98 |
jint rc = 0; |
| 99 |
jint rc = 0; |
99 |
OS_NATIVE_ENTER(env, that, AEProcessAppleEvent_FUNC); |
| 100 |
OS_NATIVE_ENTER(env, that, ATSUBatchBreakLines_FUNC); |
100 |
if (arg0) if ((lparg0 = getEventRecordFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 101 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
101 |
rc = (jint)AEProcessAppleEvent((const EventRecord *)lparg0); |
| 102 |
rc = (jint)ATSUBatchBreakLines((ATSUTextLayout)arg0, arg1, arg2, arg3, (ItemCount *)lparg4); |
102 |
fail: |
| 103 |
fail: |
103 |
if (arg0 && lparg0) setEventRecordFields(env, arg0, lparg0); |
| 104 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
104 |
OS_NATIVE_EXIT(env, that, AEProcessAppleEvent_FUNC); |
| 105 |
OS_NATIVE_EXIT(env, that, ATSUBatchBreakLines_FUNC); |
105 |
return rc; |
| 106 |
return rc; |
106 |
} |
| 107 |
} |
107 |
#endif |
| 108 |
#endif |
108 |
|
| 109 |
|
109 |
#ifndef NO_ATSFontGetPostScriptName |
| 110 |
#ifndef NO_ATSUCreateStyle |
110 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSFontGetPostScriptName) |
| 111 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUCreateStyle) |
111 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
| 112 |
(JNIEnv *env, jclass that, jintArray arg0) |
112 |
{ |
| 113 |
{ |
113 |
jint *lparg2=NULL; |
| 114 |
jint *lparg0=NULL; |
114 |
jint rc = 0; |
| 115 |
jint rc = 0; |
115 |
OS_NATIVE_ENTER(env, that, ATSFontGetPostScriptName_FUNC); |
| 116 |
OS_NATIVE_ENTER(env, that, ATSUCreateStyle_FUNC); |
116 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 117 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
117 |
rc = (jint)ATSFontGetPostScriptName((ATSFontRef)arg0, (ATSOptionFlags)arg1, (CFStringRef *)lparg2); |
| 118 |
rc = (jint)ATSUCreateStyle((ATSUStyle *)lparg0); |
118 |
fail: |
| 119 |
fail: |
119 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 120 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
120 |
OS_NATIVE_EXIT(env, that, ATSFontGetPostScriptName_FUNC); |
| 121 |
OS_NATIVE_EXIT(env, that, ATSUCreateStyle_FUNC); |
121 |
return rc; |
| 122 |
return rc; |
122 |
} |
| 123 |
} |
123 |
#endif |
| 124 |
#endif |
124 |
|
| 125 |
|
125 |
#ifndef NO_ATSUBatchBreakLines |
| 126 |
#ifndef NO_ATSUCreateTextLayout |
126 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUBatchBreakLines) |
| 127 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUCreateTextLayout) |
127 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4) |
| 128 |
(JNIEnv *env, jclass that, jintArray arg0) |
128 |
{ |
| 129 |
{ |
129 |
jint *lparg4=NULL; |
| 130 |
jint *lparg0=NULL; |
130 |
jint rc = 0; |
| 131 |
jint rc = 0; |
131 |
OS_NATIVE_ENTER(env, that, ATSUBatchBreakLines_FUNC); |
| 132 |
OS_NATIVE_ENTER(env, that, ATSUCreateTextLayout_FUNC); |
132 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 133 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
133 |
rc = (jint)ATSUBatchBreakLines((ATSUTextLayout)arg0, arg1, arg2, arg3, (ItemCount *)lparg4); |
| 134 |
rc = (jint)ATSUCreateTextLayout((ATSUTextLayout *)lparg0); |
134 |
fail: |
| 135 |
fail: |
135 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 136 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
136 |
OS_NATIVE_EXIT(env, that, ATSUBatchBreakLines_FUNC); |
| 137 |
OS_NATIVE_EXIT(env, that, ATSUCreateTextLayout_FUNC); |
137 |
return rc; |
| 138 |
return rc; |
138 |
} |
| 139 |
} |
139 |
#endif |
| 140 |
#endif |
140 |
|
| 141 |
|
141 |
#ifndef NO_ATSUCreateStyle |
| 142 |
#ifndef NO_ATSUCreateTextLayoutWithTextPtr |
142 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUCreateStyle) |
| 143 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUCreateTextLayoutWithTextPtr) |
143 |
(JNIEnv *env, jclass that, jintArray arg0) |
| 144 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jintArray arg5, jintArray arg6, jintArray arg7) |
144 |
{ |
| 145 |
{ |
145 |
jint *lparg0=NULL; |
| 146 |
jint *lparg5=NULL; |
146 |
jint rc = 0; |
| 147 |
jint *lparg6=NULL; |
147 |
OS_NATIVE_ENTER(env, that, ATSUCreateStyle_FUNC); |
| 148 |
jint *lparg7=NULL; |
148 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 149 |
jint rc = 0; |
149 |
rc = (jint)ATSUCreateStyle((ATSUStyle *)lparg0); |
| 150 |
OS_NATIVE_ENTER(env, that, ATSUCreateTextLayoutWithTextPtr_FUNC); |
150 |
fail: |
| 151 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
151 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 152 |
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail; |
152 |
OS_NATIVE_EXIT(env, that, ATSUCreateStyle_FUNC); |
| 153 |
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail; |
153 |
return rc; |
| 154 |
rc = (jint)ATSUCreateTextLayoutWithTextPtr((ConstUniCharArrayPtr)arg0, arg1, arg2, arg3, arg4, (const UniCharCount *)lparg5, (ATSUStyle *)lparg6, (ATSUTextLayout *)lparg7); |
154 |
} |
| 155 |
fail: |
155 |
#endif |
| 156 |
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0); |
156 |
|
| 157 |
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0); |
157 |
#ifndef NO_ATSUCreateTextLayout |
| 158 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
158 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUCreateTextLayout) |
| 159 |
OS_NATIVE_EXIT(env, that, ATSUCreateTextLayoutWithTextPtr_FUNC); |
159 |
(JNIEnv *env, jclass that, jintArray arg0) |
| 160 |
return rc; |
160 |
{ |
| 161 |
} |
161 |
jint *lparg0=NULL; |
| 162 |
#endif |
162 |
jint rc = 0; |
| 163 |
|
163 |
OS_NATIVE_ENTER(env, that, ATSUCreateTextLayout_FUNC); |
| 164 |
#ifndef NO_ATSUDirectGetLayoutDataArrayPtrFromTextLayout |
164 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 165 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUDirectGetLayoutDataArrayPtrFromTextLayout) |
165 |
rc = (jint)ATSUCreateTextLayout((ATSUTextLayout *)lparg0); |
| 166 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jintArray arg4) |
166 |
fail: |
| 167 |
{ |
167 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 168 |
jint *lparg3=NULL; |
168 |
OS_NATIVE_EXIT(env, that, ATSUCreateTextLayout_FUNC); |
| 169 |
jint *lparg4=NULL; |
169 |
return rc; |
| 170 |
jint rc = 0; |
170 |
} |
| 171 |
OS_NATIVE_ENTER(env, that, ATSUDirectGetLayoutDataArrayPtrFromTextLayout_FUNC); |
171 |
#endif |
| 172 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
172 |
|
| 173 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
173 |
#ifndef NO_ATSUCreateTextLayoutWithTextPtr |
| 174 |
rc = (jint)ATSUDirectGetLayoutDataArrayPtrFromTextLayout((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (ATSUDirectDataSelector)arg2, (void *)lparg3, (ItemCount *)lparg4); |
174 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUCreateTextLayoutWithTextPtr) |
| 175 |
fail: |
175 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jintArray arg5, jintArray arg6, jintArray arg7) |
| 176 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
176 |
{ |
| 177 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
177 |
jint *lparg5=NULL; |
| 178 |
OS_NATIVE_EXIT(env, that, ATSUDirectGetLayoutDataArrayPtrFromTextLayout_FUNC); |
178 |
jint *lparg6=NULL; |
| 179 |
return rc; |
179 |
jint *lparg7=NULL; |
| 180 |
} |
180 |
jint rc = 0; |
| 181 |
#endif |
181 |
OS_NATIVE_ENTER(env, that, ATSUCreateTextLayoutWithTextPtr_FUNC); |
| 182 |
|
182 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 183 |
#ifndef NO_ATSUDirectReleaseLayoutDataArrayPtr |
183 |
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail; |
| 184 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUDirectReleaseLayoutDataArrayPtr) |
184 |
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail; |
| 185 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
185 |
rc = (jint)ATSUCreateTextLayoutWithTextPtr((ConstUniCharArrayPtr)arg0, arg1, arg2, arg3, arg4, (const UniCharCount *)lparg5, (ATSUStyle *)lparg6, (ATSUTextLayout *)lparg7); |
| 186 |
{ |
186 |
fail: |
| 187 |
jint rc = 0; |
187 |
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0); |
| 188 |
OS_NATIVE_ENTER(env, that, ATSUDirectReleaseLayoutDataArrayPtr_FUNC); |
188 |
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0); |
| 189 |
rc = (jint)ATSUDirectReleaseLayoutDataArrayPtr((ATSULineRef)arg0, (ATSUDirectDataSelector)arg1, (void *)arg2); |
189 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 190 |
OS_NATIVE_EXIT(env, that, ATSUDirectReleaseLayoutDataArrayPtr_FUNC); |
190 |
OS_NATIVE_EXIT(env, that, ATSUCreateTextLayoutWithTextPtr_FUNC); |
| 191 |
return rc; |
191 |
return rc; |
| 192 |
} |
192 |
} |
| 193 |
#endif |
193 |
#endif |
| 194 |
|
194 |
|
| 195 |
#ifndef NO_ATSUDisposeStyle |
195 |
#ifndef NO_ATSUDirectGetLayoutDataArrayPtrFromTextLayout |
| 196 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUDisposeStyle) |
196 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUDirectGetLayoutDataArrayPtrFromTextLayout) |
| 197 |
(JNIEnv *env, jclass that, jint arg0) |
197 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jintArray arg4) |
| 198 |
{ |
198 |
{ |
| 199 |
jint rc = 0; |
199 |
jint *lparg3=NULL; |
| 200 |
OS_NATIVE_ENTER(env, that, ATSUDisposeStyle_FUNC); |
200 |
jint *lparg4=NULL; |
| 201 |
rc = (jint)ATSUDisposeStyle((ATSUStyle)arg0); |
201 |
jint rc = 0; |
| 202 |
OS_NATIVE_EXIT(env, that, ATSUDisposeStyle_FUNC); |
202 |
OS_NATIVE_ENTER(env, that, ATSUDirectGetLayoutDataArrayPtrFromTextLayout_FUNC); |
| 203 |
return rc; |
203 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 204 |
} |
204 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 205 |
#endif |
205 |
rc = (jint)ATSUDirectGetLayoutDataArrayPtrFromTextLayout((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (ATSUDirectDataSelector)arg2, (void *)lparg3, (ItemCount *)lparg4); |
| 206 |
|
206 |
fail: |
| 207 |
#ifndef NO_ATSUDisposeTextLayout |
207 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 208 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUDisposeTextLayout) |
208 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 209 |
(JNIEnv *env, jclass that, jint arg0) |
209 |
OS_NATIVE_EXIT(env, that, ATSUDirectGetLayoutDataArrayPtrFromTextLayout_FUNC); |
| 210 |
{ |
210 |
return rc; |
| 211 |
jint rc = 0; |
211 |
} |
| 212 |
OS_NATIVE_ENTER(env, that, ATSUDisposeTextLayout_FUNC); |
212 |
#endif |
| 213 |
rc = (jint)ATSUDisposeTextLayout((ATSUTextLayout)arg0); |
213 |
|
| 214 |
OS_NATIVE_EXIT(env, that, ATSUDisposeTextLayout_FUNC); |
214 |
#ifndef NO_ATSUDirectReleaseLayoutDataArrayPtr |
| 215 |
return rc; |
215 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUDirectReleaseLayoutDataArrayPtr) |
| 216 |
} |
216 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 217 |
#endif |
217 |
{ |
| 218 |
|
218 |
jint rc = 0; |
| 219 |
#ifndef NO_ATSUDrawText |
219 |
OS_NATIVE_ENTER(env, that, ATSUDirectReleaseLayoutDataArrayPtr_FUNC); |
| 220 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUDrawText) |
220 |
rc = (jint)ATSUDirectReleaseLayoutDataArrayPtr((ATSULineRef)arg0, (ATSUDirectDataSelector)arg1, (void *)arg2); |
| 221 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4) |
221 |
OS_NATIVE_EXIT(env, that, ATSUDirectReleaseLayoutDataArrayPtr_FUNC); |
| 222 |
{ |
222 |
return rc; |
| 223 |
jint rc = 0; |
223 |
} |
| 224 |
OS_NATIVE_ENTER(env, that, ATSUDrawText_FUNC); |
224 |
#endif |
| 225 |
rc = (jint)ATSUDrawText((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (UniCharCount)arg2, (ATSUTextMeasurement)arg3, (ATSUTextMeasurement)arg4); |
225 |
|
| 226 |
OS_NATIVE_EXIT(env, that, ATSUDrawText_FUNC); |
226 |
#ifndef NO_ATSUDisposeStyle |
| 227 |
return rc; |
227 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUDisposeStyle) |
| 228 |
} |
228 |
(JNIEnv *env, jclass that, jint arg0) |
| 229 |
#endif |
229 |
{ |
| 230 |
|
230 |
jint rc = 0; |
| 231 |
#ifndef NO_ATSUFindFontFromName |
231 |
OS_NATIVE_ENTER(env, that, ATSUDisposeStyle_FUNC); |
| 232 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUFindFontFromName) |
232 |
rc = (jint)ATSUDisposeStyle((ATSUStyle)arg0); |
| 233 |
(JNIEnv *env, jclass that, jbyteArray arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jintArray arg6) |
233 |
OS_NATIVE_EXIT(env, that, ATSUDisposeStyle_FUNC); |
| 234 |
{ |
234 |
return rc; |
| 235 |
jbyte *lparg0=NULL; |
235 |
} |
| 236 |
jint *lparg6=NULL; |
236 |
#endif |
| 237 |
jint rc = 0; |
237 |
|
| 238 |
OS_NATIVE_ENTER(env, that, ATSUFindFontFromName_FUNC); |
238 |
#ifndef NO_ATSUDisposeTextLayout |
| 239 |
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; |
239 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUDisposeTextLayout) |
| 240 |
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail; |
240 |
(JNIEnv *env, jclass that, jint arg0) |
| 241 |
rc = (jint)ATSUFindFontFromName(lparg0, arg1, arg2, arg3, arg4, arg5, lparg6); |
241 |
{ |
| 242 |
fail: |
242 |
jint rc = 0; |
| 243 |
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0); |
243 |
OS_NATIVE_ENTER(env, that, ATSUDisposeTextLayout_FUNC); |
| 244 |
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); |
244 |
rc = (jint)ATSUDisposeTextLayout((ATSUTextLayout)arg0); |
| 245 |
OS_NATIVE_EXIT(env, that, ATSUFindFontFromName_FUNC); |
245 |
OS_NATIVE_EXIT(env, that, ATSUDisposeTextLayout_FUNC); |
| 246 |
return rc; |
246 |
return rc; |
| 247 |
} |
247 |
} |
| 248 |
#endif |
248 |
#endif |
| 249 |
|
249 |
|
| 250 |
#ifndef NO_ATSUFindFontName |
250 |
#ifndef NO_ATSUDrawText |
| 251 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUFindFontName) |
251 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUDrawText) |
| 252 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jbyteArray arg6, jintArray arg7, jintArray arg8) |
252 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4) |
| 253 |
{ |
253 |
{ |
| 254 |
jbyte *lparg6=NULL; |
254 |
jint rc = 0; |
| 255 |
jint *lparg7=NULL; |
255 |
OS_NATIVE_ENTER(env, that, ATSUDrawText_FUNC); |
| 256 |
jint *lparg8=NULL; |
256 |
rc = (jint)ATSUDrawText((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (UniCharCount)arg2, (ATSUTextMeasurement)arg3, (ATSUTextMeasurement)arg4); |
| 257 |
jint rc = 0; |
257 |
OS_NATIVE_EXIT(env, that, ATSUDrawText_FUNC); |
| 258 |
OS_NATIVE_ENTER(env, that, ATSUFindFontName_FUNC); |
258 |
return rc; |
| 259 |
if (arg6) if ((lparg6 = (*env)->GetByteArrayElements(env, arg6, NULL)) == NULL) goto fail; |
259 |
} |
| 260 |
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail; |
260 |
#endif |
| 261 |
if (arg8) if ((lparg8 = (*env)->GetIntArrayElements(env, arg8, NULL)) == NULL) goto fail; |
261 |
|
| 262 |
rc = (jint)ATSUFindFontName((ATSUFontID)arg0, arg1, arg2, arg3, arg4, arg5, (Ptr)lparg6, lparg7, lparg8); |
262 |
#ifndef NO_ATSUFindFontFromName |
| 263 |
fail: |
263 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUFindFontFromName) |
| 264 |
if (arg8 && lparg8) (*env)->ReleaseIntArrayElements(env, arg8, lparg8, 0); |
264 |
(JNIEnv *env, jclass that, jbyteArray arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jintArray arg6) |
| 265 |
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0); |
265 |
{ |
| 266 |
if (arg6 && lparg6) (*env)->ReleaseByteArrayElements(env, arg6, lparg6, 0); |
266 |
jbyte *lparg0=NULL; |
| 267 |
OS_NATIVE_EXIT(env, that, ATSUFindFontName_FUNC); |
267 |
jint *lparg6=NULL; |
| 268 |
return rc; |
268 |
jint rc = 0; |
| 269 |
} |
269 |
OS_NATIVE_ENTER(env, that, ATSUFindFontFromName_FUNC); |
| 270 |
#endif |
270 |
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 271 |
|
271 |
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail; |
| 272 |
#ifndef NO_ATSUGetFontIDs |
272 |
rc = (jint)ATSUFindFontFromName(lparg0, arg1, arg2, arg3, arg4, arg5, lparg6); |
| 273 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetFontIDs) |
273 |
fail: |
| 274 |
(JNIEnv *env, jclass that, jintArray arg0, jint arg1, jintArray arg2) |
274 |
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0); |
| 275 |
{ |
275 |
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); |
| 276 |
jint *lparg0=NULL; |
276 |
OS_NATIVE_EXIT(env, that, ATSUFindFontFromName_FUNC); |
| 277 |
jint *lparg2=NULL; |
277 |
return rc; |
| 278 |
jint rc = 0; |
278 |
} |
| 279 |
OS_NATIVE_ENTER(env, that, ATSUGetFontIDs_FUNC); |
279 |
#endif |
| 280 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
280 |
|
| 281 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
281 |
#ifndef NO_ATSUFindFontName |
| 282 |
rc = (jint)ATSUGetFontIDs((ATSUFontID *)lparg0, arg1, lparg2); |
282 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUFindFontName) |
| 283 |
fail: |
283 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jbyteArray arg6, jintArray arg7, jintArray arg8) |
| 284 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
284 |
{ |
| 285 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
285 |
jbyte *lparg6=NULL; |
| 286 |
OS_NATIVE_EXIT(env, that, ATSUGetFontIDs_FUNC); |
286 |
jint *lparg7=NULL; |
| 287 |
return rc; |
287 |
jint *lparg8=NULL; |
| 288 |
} |
288 |
jint rc = 0; |
| 289 |
#endif |
289 |
OS_NATIVE_ENTER(env, that, ATSUFindFontName_FUNC); |
| 290 |
|
290 |
if (arg6) if ((lparg6 = (*env)->GetByteArrayElements(env, arg6, NULL)) == NULL) goto fail; |
| 291 |
#ifndef NO_ATSUGetGlyphBounds__IIIIISII_3I |
291 |
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail; |
| 292 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetGlyphBounds__IIIIISII_3I) |
292 |
if (arg8) if ((lparg8 = (*env)->GetIntArrayElements(env, arg8, NULL)) == NULL) goto fail; |
| 293 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jshort arg5, jint arg6, jint arg7, jintArray arg8) |
293 |
rc = (jint)ATSUFindFontName((ATSUFontID)arg0, arg1, arg2, arg3, arg4, arg5, (Ptr)lparg6, lparg7, lparg8); |
| 294 |
{ |
294 |
fail: |
| 295 |
jint *lparg8=NULL; |
295 |
if (arg8 && lparg8) (*env)->ReleaseIntArrayElements(env, arg8, lparg8, 0); |
| 296 |
jint rc = 0; |
296 |
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0); |
| 297 |
OS_NATIVE_ENTER(env, that, ATSUGetGlyphBounds__IIIIISII_3I_FUNC); |
297 |
if (arg6 && lparg6) (*env)->ReleaseByteArrayElements(env, arg6, lparg6, 0); |
| 298 |
if (arg8) if ((lparg8 = (*env)->GetIntArrayElements(env, arg8, NULL)) == NULL) goto fail; |
298 |
OS_NATIVE_EXIT(env, that, ATSUFindFontName_FUNC); |
| 299 |
rc = (jint)ATSUGetGlyphBounds((ATSUTextLayout)arg0, (ATSUTextMeasurement)arg1, (ATSUTextMeasurement)arg2, (UniCharArrayOffset)arg3, arg4, arg5, arg6, (ATSTrapezoid *)arg7, (ItemCount *)lparg8); |
299 |
return rc; |
| 300 |
fail: |
300 |
} |
| 301 |
if (arg8 && lparg8) (*env)->ReleaseIntArrayElements(env, arg8, lparg8, 0); |
301 |
#endif |
| 302 |
OS_NATIVE_EXIT(env, that, ATSUGetGlyphBounds__IIIIISII_3I_FUNC); |
302 |
|
| 303 |
return rc; |
303 |
#ifndef NO_ATSUGetFontIDs |
| 304 |
} |
304 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetFontIDs) |
| 305 |
#endif |
305 |
(JNIEnv *env, jclass that, jintArray arg0, jint arg1, jintArray arg2) |
| 306 |
|
306 |
{ |
| 307 |
#ifndef NO_ATSUGetGlyphBounds__IIIIISILorg_eclipse_swt_internal_carbon_ATSTrapezoid_2_3I |
307 |
jint *lparg0=NULL; |
| 308 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetGlyphBounds__IIIIISILorg_eclipse_swt_internal_carbon_ATSTrapezoid_2_3I) |
308 |
jint *lparg2=NULL; |
| 309 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jshort arg5, jint arg6, jobject arg7, jintArray arg8) |
309 |
jint rc = 0; |
| 310 |
{ |
310 |
OS_NATIVE_ENTER(env, that, ATSUGetFontIDs_FUNC); |
| 311 |
ATSTrapezoid _arg7, *lparg7=NULL; |
311 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 312 |
jint *lparg8=NULL; |
312 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 313 |
jint rc = 0; |
313 |
rc = (jint)ATSUGetFontIDs((ATSUFontID *)lparg0, arg1, lparg2); |
| 314 |
OS_NATIVE_ENTER(env, that, ATSUGetGlyphBounds__IIIIISILorg_eclipse_swt_internal_carbon_ATSTrapezoid_2_3I_FUNC); |
314 |
fail: |
| 315 |
if (arg7) if ((lparg7 = getATSTrapezoidFields(env, arg7, &_arg7)) == NULL) goto fail; |
315 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 316 |
if (arg8) if ((lparg8 = (*env)->GetIntArrayElements(env, arg8, NULL)) == NULL) goto fail; |
316 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 317 |
rc = (jint)ATSUGetGlyphBounds((ATSUTextLayout)arg0, (ATSUTextMeasurement)arg1, (ATSUTextMeasurement)arg2, (UniCharArrayOffset)arg3, arg4, arg5, arg6, (ATSTrapezoid *)lparg7, (ItemCount *)lparg8); |
317 |
OS_NATIVE_EXIT(env, that, ATSUGetFontIDs_FUNC); |
| 318 |
fail: |
318 |
return rc; |
| 319 |
if (arg8 && lparg8) (*env)->ReleaseIntArrayElements(env, arg8, lparg8, 0); |
319 |
} |
| 320 |
if (arg7 && lparg7) setATSTrapezoidFields(env, arg7, lparg7); |
320 |
#endif |
| 321 |
OS_NATIVE_EXIT(env, that, ATSUGetGlyphBounds__IIIIISILorg_eclipse_swt_internal_carbon_ATSTrapezoid_2_3I_FUNC); |
321 |
|
| 322 |
return rc; |
322 |
#ifndef NO_ATSUGetGlyphBounds__IIIIISII_3I |
| 323 |
} |
323 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetGlyphBounds__IIIIISII_3I) |
| 324 |
#endif |
324 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jshort arg5, jint arg6, jint arg7, jintArray arg8) |
| 325 |
|
325 |
{ |
| 326 |
#ifndef NO_ATSUGetLayoutControl |
326 |
jint *lparg8=NULL; |
| 327 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetLayoutControl) |
327 |
jint rc = 0; |
| 328 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jintArray arg4) |
328 |
OS_NATIVE_ENTER(env, that, ATSUGetGlyphBounds__IIIIISII_3I_FUNC); |
| 329 |
{ |
329 |
if (arg8) if ((lparg8 = (*env)->GetIntArrayElements(env, arg8, NULL)) == NULL) goto fail; |
| 330 |
jint *lparg3=NULL; |
330 |
rc = (jint)ATSUGetGlyphBounds((ATSUTextLayout)arg0, (ATSUTextMeasurement)arg1, (ATSUTextMeasurement)arg2, (UniCharArrayOffset)arg3, arg4, arg5, arg6, (ATSTrapezoid *)arg7, (ItemCount *)lparg8); |
| 331 |
jint *lparg4=NULL; |
331 |
fail: |
| 332 |
jint rc = 0; |
332 |
if (arg8 && lparg8) (*env)->ReleaseIntArrayElements(env, arg8, lparg8, 0); |
| 333 |
OS_NATIVE_ENTER(env, that, ATSUGetLayoutControl_FUNC); |
333 |
OS_NATIVE_EXIT(env, that, ATSUGetGlyphBounds__IIIIISII_3I_FUNC); |
| 334 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
334 |
return rc; |
| 335 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
335 |
} |
| 336 |
rc = (jint)ATSUGetLayoutControl((ATSUTextLayout)arg0, (ATSUAttributeTag)arg1, arg2, (ATSUAttributeValuePtr)lparg3, (ByteCount *)lparg4); |
336 |
#endif |
| 337 |
fail: |
337 |
|
| 338 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
338 |
#ifndef NO_ATSUGetGlyphBounds__IIIIISILorg_eclipse_swt_internal_carbon_ATSTrapezoid_2_3I |
| 339 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
339 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetGlyphBounds__IIIIISILorg_eclipse_swt_internal_carbon_ATSTrapezoid_2_3I) |
| 340 |
OS_NATIVE_EXIT(env, that, ATSUGetLayoutControl_FUNC); |
340 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jshort arg5, jint arg6, jobject arg7, jintArray arg8) |
| 341 |
return rc; |
341 |
{ |
| 342 |
} |
342 |
ATSTrapezoid _arg7, *lparg7=NULL; |
| 343 |
#endif |
343 |
jint *lparg8=NULL; |
| 344 |
|
344 |
jint rc = 0; |
| 345 |
#ifndef NO_ATSUGetLineControl |
345 |
OS_NATIVE_ENTER(env, that, ATSUGetGlyphBounds__IIIIISILorg_eclipse_swt_internal_carbon_ATSTrapezoid_2_3I_FUNC); |
| 346 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetLineControl) |
346 |
if (arg7) if ((lparg7 = getATSTrapezoidFields(env, arg7, &_arg7)) == NULL) goto fail; |
| 347 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4, jintArray arg5) |
347 |
if (arg8) if ((lparg8 = (*env)->GetIntArrayElements(env, arg8, NULL)) == NULL) goto fail; |
| 348 |
{ |
348 |
rc = (jint)ATSUGetGlyphBounds((ATSUTextLayout)arg0, (ATSUTextMeasurement)arg1, (ATSUTextMeasurement)arg2, (UniCharArrayOffset)arg3, arg4, arg5, arg6, (ATSTrapezoid *)lparg7, (ItemCount *)lparg8); |
| 349 |
jint *lparg4=NULL; |
349 |
fail: |
| 350 |
jint *lparg5=NULL; |
350 |
if (arg8 && lparg8) (*env)->ReleaseIntArrayElements(env, arg8, lparg8, 0); |
| 351 |
jint rc = 0; |
351 |
if (arg7 && lparg7) setATSTrapezoidFields(env, arg7, lparg7); |
| 352 |
OS_NATIVE_ENTER(env, that, ATSUGetLineControl_FUNC); |
352 |
OS_NATIVE_EXIT(env, that, ATSUGetGlyphBounds__IIIIISILorg_eclipse_swt_internal_carbon_ATSTrapezoid_2_3I_FUNC); |
| 353 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
353 |
return rc; |
| 354 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
354 |
} |
| 355 |
rc = (jint)ATSUGetLineControl((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (ATSUAttributeTag)arg2, (ByteCount)arg3, (ATSUAttributeValuePtr)lparg4, (ByteCount *)lparg5); |
355 |
#endif |
| 356 |
fail: |
356 |
|
| 357 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
357 |
#ifndef NO_ATSUGetLayoutControl |
| 358 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
358 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetLayoutControl) |
| 359 |
OS_NATIVE_EXIT(env, that, ATSUGetLineControl_FUNC); |
359 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jintArray arg4) |
| 360 |
return rc; |
360 |
{ |
| 361 |
} |
361 |
jint *lparg3=NULL; |
| 362 |
#endif |
362 |
jint *lparg4=NULL; |
| 363 |
|
363 |
jint rc = 0; |
| 364 |
#ifndef NO_ATSUGetSoftLineBreaks |
364 |
OS_NATIVE_ENTER(env, that, ATSUGetLayoutControl_FUNC); |
| 365 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetSoftLineBreaks) |
365 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 366 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4, jintArray arg5) |
366 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 367 |
{ |
367 |
rc = (jint)ATSUGetLayoutControl((ATSUTextLayout)arg0, (ATSUAttributeTag)arg1, arg2, (ATSUAttributeValuePtr)lparg3, (ByteCount *)lparg4); |
| 368 |
jint *lparg4=NULL; |
368 |
fail: |
| 369 |
jint *lparg5=NULL; |
369 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 370 |
jint rc = 0; |
370 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 371 |
OS_NATIVE_ENTER(env, that, ATSUGetSoftLineBreaks_FUNC); |
371 |
OS_NATIVE_EXIT(env, that, ATSUGetLayoutControl_FUNC); |
| 372 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
372 |
return rc; |
| 373 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
373 |
} |
| 374 |
rc = (jint)ATSUGetSoftLineBreaks((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (UniCharCount)arg2, (ItemCount)arg3, (UniCharArrayOffset *)lparg4, (ItemCount *)lparg5); |
374 |
#endif |
| 375 |
fail: |
375 |
|
| 376 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
376 |
#ifndef NO_ATSUGetLineControl |
| 377 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
377 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetLineControl) |
| 378 |
OS_NATIVE_EXIT(env, that, ATSUGetSoftLineBreaks_FUNC); |
378 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4, jintArray arg5) |
| 379 |
return rc; |
379 |
{ |
| 380 |
} |
380 |
jint *lparg4=NULL; |
| 381 |
#endif |
381 |
jint *lparg5=NULL; |
| 382 |
|
382 |
jint rc = 0; |
| 383 |
#ifndef NO_ATSUGetTextHighlight |
383 |
OS_NATIVE_ENTER(env, that, ATSUGetLineControl_FUNC); |
| 384 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetTextHighlight) |
384 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 385 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5) |
385 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 386 |
{ |
386 |
rc = (jint)ATSUGetLineControl((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (ATSUAttributeTag)arg2, (ByteCount)arg3, (ATSUAttributeValuePtr)lparg4, (ByteCount *)lparg5); |
| 387 |
jint rc = 0; |
387 |
fail: |
| 388 |
OS_NATIVE_ENTER(env, that, ATSUGetTextHighlight_FUNC); |
388 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 389 |
rc = (jint)ATSUGetTextHighlight((ATSUTextLayout)arg0, arg1, arg2, arg3, arg4, (RgnHandle)arg5); |
389 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 390 |
OS_NATIVE_EXIT(env, that, ATSUGetTextHighlight_FUNC); |
390 |
OS_NATIVE_EXIT(env, that, ATSUGetLineControl_FUNC); |
| 391 |
return rc; |
391 |
return rc; |
| 392 |
} |
392 |
} |
| 393 |
#endif |
393 |
#endif |
| 394 |
|
394 |
|
| 395 |
#ifndef NO_ATSUGetUnjustifiedBounds |
395 |
#ifndef NO_ATSUGetSoftLineBreaks |
| 396 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetUnjustifiedBounds) |
396 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetSoftLineBreaks) |
| 397 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jintArray arg4, jintArray arg5, jintArray arg6) |
397 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4, jintArray arg5) |
| 398 |
{ |
398 |
{ |
| 399 |
jint *lparg3=NULL; |
399 |
jint *lparg4=NULL; |
| 400 |
jint *lparg4=NULL; |
400 |
jint *lparg5=NULL; |
| 401 |
jint *lparg5=NULL; |
401 |
jint rc = 0; |
| 402 |
jint *lparg6=NULL; |
402 |
OS_NATIVE_ENTER(env, that, ATSUGetSoftLineBreaks_FUNC); |
| 403 |
jint rc = 0; |
403 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 404 |
OS_NATIVE_ENTER(env, that, ATSUGetUnjustifiedBounds_FUNC); |
404 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 405 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
405 |
rc = (jint)ATSUGetSoftLineBreaks((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (UniCharCount)arg2, (ItemCount)arg3, (UniCharArrayOffset *)lparg4, (ItemCount *)lparg5); |
| 406 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
406 |
fail: |
| 407 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
407 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 408 |
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail; |
408 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 409 |
rc = (jint)ATSUGetUnjustifiedBounds((ATSUTextLayout)arg0, arg1, arg2, (ATSUTextMeasurement *)lparg3, (ATSUTextMeasurement *)lparg4, (ATSUTextMeasurement *)lparg5, (ATSUTextMeasurement *)lparg6); |
409 |
OS_NATIVE_EXIT(env, that, ATSUGetSoftLineBreaks_FUNC); |
| 410 |
fail: |
410 |
return rc; |
| 411 |
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0); |
411 |
} |
| 412 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
412 |
#endif |
| 413 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
413 |
|
| 414 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
414 |
#ifndef NO_ATSUGetTextHighlight |
| 415 |
OS_NATIVE_EXIT(env, that, ATSUGetUnjustifiedBounds_FUNC); |
415 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetTextHighlight) |
| 416 |
return rc; |
416 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5) |
| 417 |
} |
417 |
{ |
| 418 |
#endif |
418 |
jint rc = 0; |
| 419 |
|
419 |
OS_NATIVE_ENTER(env, that, ATSUGetTextHighlight_FUNC); |
| 420 |
#ifndef NO_ATSUGlyphGetQuadraticPaths |
420 |
rc = (jint)ATSUGetTextHighlight((ATSUTextLayout)arg0, arg1, arg2, arg3, arg4, (RgnHandle)arg5); |
| 421 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGlyphGetQuadraticPaths) |
421 |
OS_NATIVE_EXIT(env, that, ATSUGetTextHighlight_FUNC); |
| 422 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6, jintArray arg7) |
422 |
return rc; |
| 423 |
{ |
423 |
} |
| 424 |
jint *lparg7=NULL; |
424 |
#endif |
| 425 |
jint rc = 0; |
425 |
|
| 426 |
OS_NATIVE_ENTER(env, that, ATSUGlyphGetQuadraticPaths_FUNC); |
426 |
#ifndef NO_ATSUGetUnjustifiedBounds |
| 427 |
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail; |
427 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGetUnjustifiedBounds) |
| 428 |
rc = (jint)ATSUGlyphGetQuadraticPaths((ATSUStyle)arg0, (GlyphID)arg1, (ATSQuadraticNewPathUPP)arg2, (ATSQuadraticLineUPP)arg3, (ATSQuadraticCurveUPP)arg4, (ATSQuadraticClosePathUPP)arg5, (void *)arg6, (OSStatus *)lparg7); |
428 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jintArray arg4, jintArray arg5, jintArray arg6) |
| 429 |
fail: |
429 |
{ |
| 430 |
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0); |
430 |
jint *lparg3=NULL; |
| 431 |
OS_NATIVE_EXIT(env, that, ATSUGlyphGetQuadraticPaths_FUNC); |
431 |
jint *lparg4=NULL; |
| 432 |
return rc; |
432 |
jint *lparg5=NULL; |
| 433 |
} |
433 |
jint *lparg6=NULL; |
| 434 |
#endif |
434 |
jint rc = 0; |
| 435 |
|
435 |
OS_NATIVE_ENTER(env, that, ATSUGetUnjustifiedBounds_FUNC); |
| 436 |
#ifndef NO_ATSUHighlightText |
436 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 437 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUHighlightText) |
437 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 438 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4) |
438 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 439 |
{ |
439 |
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail; |
| 440 |
jint rc = 0; |
440 |
rc = (jint)ATSUGetUnjustifiedBounds((ATSUTextLayout)arg0, arg1, arg2, (ATSUTextMeasurement *)lparg3, (ATSUTextMeasurement *)lparg4, (ATSUTextMeasurement *)lparg5, (ATSUTextMeasurement *)lparg6); |
| 441 |
OS_NATIVE_ENTER(env, that, ATSUHighlightText_FUNC); |
441 |
fail: |
| 442 |
rc = (jint)ATSUHighlightText((ATSUTextLayout)arg0, (ATSUTextMeasurement)arg1, (ATSUTextMeasurement)arg2, arg3, arg4); |
442 |
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0); |
| 443 |
OS_NATIVE_EXIT(env, that, ATSUHighlightText_FUNC); |
443 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 444 |
return rc; |
444 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 445 |
} |
445 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 446 |
#endif |
446 |
OS_NATIVE_EXIT(env, that, ATSUGetUnjustifiedBounds_FUNC); |
| 447 |
|
447 |
return rc; |
| 448 |
#ifndef NO_ATSUNextCursorPosition |
448 |
} |
| 449 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUNextCursorPosition) |
449 |
#endif |
| 450 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3) |
450 |
|
| 451 |
{ |
451 |
#ifndef NO_ATSUGlyphGetQuadraticPaths |
| 452 |
jint *lparg3=NULL; |
452 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUGlyphGetQuadraticPaths) |
| 453 |
jint rc = 0; |
453 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6, jintArray arg7) |
| 454 |
OS_NATIVE_ENTER(env, that, ATSUNextCursorPosition_FUNC); |
454 |
{ |
| 455 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
455 |
jint *lparg7=NULL; |
| 456 |
rc = (jint)ATSUNextCursorPosition((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (ATSUCursorMovementType)arg2, (UniCharArrayOffset *)lparg3); |
456 |
jint rc = 0; |
| 457 |
fail: |
457 |
OS_NATIVE_ENTER(env, that, ATSUGlyphGetQuadraticPaths_FUNC); |
| 458 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
458 |
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail; |
| 459 |
OS_NATIVE_EXIT(env, that, ATSUNextCursorPosition_FUNC); |
459 |
rc = (jint)ATSUGlyphGetQuadraticPaths((ATSUStyle)arg0, (GlyphID)arg1, (ATSQuadraticNewPathUPP)arg2, (ATSQuadraticLineUPP)arg3, (ATSQuadraticCurveUPP)arg4, (ATSQuadraticClosePathUPP)arg5, (void *)arg6, (OSStatus *)lparg7); |
| 460 |
return rc; |
460 |
fail: |
| 461 |
} |
461 |
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0); |
| 462 |
#endif |
462 |
OS_NATIVE_EXIT(env, that, ATSUGlyphGetQuadraticPaths_FUNC); |
| 463 |
|
463 |
return rc; |
| 464 |
#ifndef NO_ATSUOffsetToPosition |
464 |
} |
| 465 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUOffsetToPosition) |
465 |
#endif |
| 466 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2, jobject arg3, jobject arg4, jbooleanArray arg5) |
466 |
|
| 467 |
{ |
467 |
#ifndef NO_ATSUHighlightText |
| 468 |
ATSUCaret _arg3, *lparg3=NULL; |
468 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUHighlightText) |
| 469 |
ATSUCaret _arg4, *lparg4=NULL; |
469 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4) |
| 470 |
jboolean *lparg5=NULL; |
470 |
{ |
| 471 |
jint rc = 0; |
471 |
jint rc = 0; |
| 472 |
OS_NATIVE_ENTER(env, that, ATSUOffsetToPosition_FUNC); |
472 |
OS_NATIVE_ENTER(env, that, ATSUHighlightText_FUNC); |
| 473 |
if (arg3) if ((lparg3 = getATSUCaretFields(env, arg3, &_arg3)) == NULL) goto fail; |
473 |
rc = (jint)ATSUHighlightText((ATSUTextLayout)arg0, (ATSUTextMeasurement)arg1, (ATSUTextMeasurement)arg2, arg3, arg4); |
| 474 |
if (arg4) if ((lparg4 = getATSUCaretFields(env, arg4, &_arg4)) == NULL) goto fail; |
474 |
OS_NATIVE_EXIT(env, that, ATSUHighlightText_FUNC); |
| 475 |
if (arg5) if ((lparg5 = (*env)->GetBooleanArrayElements(env, arg5, NULL)) == NULL) goto fail; |
475 |
return rc; |
| 476 |
rc = (jint)ATSUOffsetToPosition((ATSUTextLayout)arg0, arg1, arg2, lparg3, lparg4, (Boolean *)lparg5); |
476 |
} |
| 477 |
fail: |
477 |
#endif |
| 478 |
if (arg5 && lparg5) (*env)->ReleaseBooleanArrayElements(env, arg5, lparg5, 0); |
478 |
|
| 479 |
if (arg4 && lparg4) setATSUCaretFields(env, arg4, lparg4); |
479 |
#ifndef NO_ATSUNextCursorPosition |
| 480 |
if (arg3 && lparg3) setATSUCaretFields(env, arg3, lparg3); |
480 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUNextCursorPosition) |
| 481 |
OS_NATIVE_EXIT(env, that, ATSUOffsetToPosition_FUNC); |
481 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3) |
| 482 |
return rc; |
482 |
{ |
| 483 |
} |
483 |
jint *lparg3=NULL; |
| 484 |
#endif |
484 |
jint rc = 0; |
| 485 |
|
485 |
OS_NATIVE_ENTER(env, that, ATSUNextCursorPosition_FUNC); |
| 486 |
#ifndef NO_ATSUPositionToOffset |
486 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 487 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUPositionToOffset) |
487 |
rc = (jint)ATSUNextCursorPosition((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (ATSUCursorMovementType)arg2, (UniCharArrayOffset *)lparg3); |
| 488 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jbooleanArray arg4, jintArray arg5) |
488 |
fail: |
| 489 |
{ |
489 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 490 |
jint *lparg3=NULL; |
490 |
OS_NATIVE_EXIT(env, that, ATSUNextCursorPosition_FUNC); |
| 491 |
jboolean *lparg4=NULL; |
491 |
return rc; |
| 492 |
jint *lparg5=NULL; |
492 |
} |
| 493 |
jint rc = 0; |
493 |
#endif |
| 494 |
OS_NATIVE_ENTER(env, that, ATSUPositionToOffset_FUNC); |
494 |
|
| 495 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
495 |
#ifndef NO_ATSUOffsetToPosition |
| 496 |
if (arg4) if ((lparg4 = (*env)->GetBooleanArrayElements(env, arg4, NULL)) == NULL) goto fail; |
496 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUOffsetToPosition) |
| 497 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
497 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2, jobject arg3, jobject arg4, jbooleanArray arg5) |
| 498 |
rc = (jint)ATSUPositionToOffset((ATSUTextLayout)arg0, arg1, arg2, (UniCharArrayOffset *)lparg3, (Boolean *)lparg4, (UniCharArrayOffset *)lparg5); |
498 |
{ |
| 499 |
fail: |
499 |
ATSUCaret _arg3, *lparg3=NULL; |
| 500 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
500 |
ATSUCaret _arg4, *lparg4=NULL; |
| 501 |
if (arg4 && lparg4) (*env)->ReleaseBooleanArrayElements(env, arg4, lparg4, 0); |
501 |
jboolean *lparg5=NULL; |
| 502 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
502 |
jint rc = 0; |
| 503 |
OS_NATIVE_EXIT(env, that, ATSUPositionToOffset_FUNC); |
503 |
OS_NATIVE_ENTER(env, that, ATSUOffsetToPosition_FUNC); |
| 504 |
return rc; |
504 |
if (arg3) if ((lparg3 = getATSUCaretFields(env, arg3, &_arg3)) == NULL) goto fail; |
| 505 |
} |
505 |
if (arg4) if ((lparg4 = getATSUCaretFields(env, arg4, &_arg4)) == NULL) goto fail; |
| 506 |
#endif |
506 |
if (arg5) if ((lparg5 = (*env)->GetBooleanArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 507 |
|
507 |
rc = (jint)ATSUOffsetToPosition((ATSUTextLayout)arg0, arg1, arg2, lparg3, lparg4, (Boolean *)lparg5); |
| 508 |
#ifndef NO_ATSUPreviousCursorPosition |
508 |
fail: |
| 509 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUPreviousCursorPosition) |
509 |
if (arg5 && lparg5) (*env)->ReleaseBooleanArrayElements(env, arg5, lparg5, 0); |
| 510 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3) |
510 |
if (arg4 && lparg4) setATSUCaretFields(env, arg4, lparg4); |
| 511 |
{ |
511 |
if (arg3 && lparg3) setATSUCaretFields(env, arg3, lparg3); |
| 512 |
jint *lparg3=NULL; |
512 |
OS_NATIVE_EXIT(env, that, ATSUOffsetToPosition_FUNC); |
| 513 |
jint rc = 0; |
513 |
return rc; |
| 514 |
OS_NATIVE_ENTER(env, that, ATSUPreviousCursorPosition_FUNC); |
514 |
} |
| 515 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
515 |
#endif |
| 516 |
rc = (jint)ATSUPreviousCursorPosition((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (ATSUCursorMovementType)arg2, (UniCharArrayOffset *)lparg3); |
516 |
|
| 517 |
fail: |
517 |
#ifndef NO_ATSUPositionToOffset |
| 518 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
518 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUPositionToOffset) |
| 519 |
OS_NATIVE_EXIT(env, that, ATSUPreviousCursorPosition_FUNC); |
519 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jbooleanArray arg4, jintArray arg5) |
| 520 |
return rc; |
520 |
{ |
| 521 |
} |
521 |
jint *lparg3=NULL; |
| 522 |
#endif |
522 |
jboolean *lparg4=NULL; |
| 523 |
|
523 |
jint *lparg5=NULL; |
| 524 |
#ifndef NO_ATSUSetAttributes |
524 |
jint rc = 0; |
| 525 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetAttributes) |
525 |
OS_NATIVE_ENTER(env, that, ATSUPositionToOffset_FUNC); |
| 526 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2, jintArray arg3, jintArray arg4) |
526 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 527 |
{ |
527 |
if (arg4) if ((lparg4 = (*env)->GetBooleanArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 528 |
jint *lparg2=NULL; |
528 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 529 |
jint *lparg3=NULL; |
529 |
rc = (jint)ATSUPositionToOffset((ATSUTextLayout)arg0, arg1, arg2, (UniCharArrayOffset *)lparg3, (Boolean *)lparg4, (UniCharArrayOffset *)lparg5); |
| 530 |
jint *lparg4=NULL; |
530 |
fail: |
| 531 |
jint rc = 0; |
531 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 532 |
OS_NATIVE_ENTER(env, that, ATSUSetAttributes_FUNC); |
532 |
if (arg4 && lparg4) (*env)->ReleaseBooleanArrayElements(env, arg4, lparg4, 0); |
| 533 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
533 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 534 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
534 |
OS_NATIVE_EXIT(env, that, ATSUPositionToOffset_FUNC); |
| 535 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
535 |
return rc; |
| 536 |
rc = (jint)ATSUSetAttributes((ATSUStyle)arg0, (ItemCount)arg1, (ATSUAttributeTag *)lparg2, (ByteCount *)lparg3, (ATSUAttributeValuePtr *)lparg4); |
536 |
} |
| 537 |
fail: |
537 |
#endif |
| 538 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
538 |
|
| 539 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
539 |
#ifndef NO_ATSUPreviousCursorPosition |
| 540 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
540 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUPreviousCursorPosition) |
| 541 |
OS_NATIVE_EXIT(env, that, ATSUSetAttributes_FUNC); |
541 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3) |
| 542 |
return rc; |
542 |
{ |
| 543 |
} |
543 |
jint *lparg3=NULL; |
| 544 |
#endif |
544 |
jint rc = 0; |
| 545 |
|
545 |
OS_NATIVE_ENTER(env, that, ATSUPreviousCursorPosition_FUNC); |
| 546 |
#ifndef NO_ATSUSetFontFeatures |
546 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 547 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetFontFeatures) |
547 |
rc = (jint)ATSUPreviousCursorPosition((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (ATSUCursorMovementType)arg2, (UniCharArrayOffset *)lparg3); |
| 548 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshortArray arg2, jshortArray arg3) |
548 |
fail: |
| 549 |
{ |
549 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 550 |
jshort *lparg2=NULL; |
550 |
OS_NATIVE_EXIT(env, that, ATSUPreviousCursorPosition_FUNC); |
| 551 |
jshort *lparg3=NULL; |
551 |
return rc; |
| 552 |
jint rc = 0; |
552 |
} |
| 553 |
OS_NATIVE_ENTER(env, that, ATSUSetFontFeatures_FUNC); |
553 |
#endif |
| 554 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
554 |
|
| 555 |
if (arg3) if ((lparg3 = (*env)->GetShortArrayElements(env, arg3, NULL)) == NULL) goto fail; |
555 |
#ifndef NO_ATSUSetAttributes |
| 556 |
rc = (jint)ATSUSetFontFeatures((ATSUStyle)arg0, (ItemCount)arg1, (const ATSUFontFeatureType *)lparg2, (const ATSUFontFeatureSelector *)lparg3); |
556 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetAttributes) |
| 557 |
fail: |
557 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2, jintArray arg3, jintArray arg4) |
| 558 |
if (arg3 && lparg3) (*env)->ReleaseShortArrayElements(env, arg3, lparg3, 0); |
558 |
{ |
| 559 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
559 |
jint *lparg2=NULL; |
| 560 |
OS_NATIVE_EXIT(env, that, ATSUSetFontFeatures_FUNC); |
560 |
jint *lparg3=NULL; |
| 561 |
return rc; |
561 |
jint *lparg4=NULL; |
| 562 |
} |
562 |
jint rc = 0; |
| 563 |
#endif |
563 |
OS_NATIVE_ENTER(env, that, ATSUSetAttributes_FUNC); |
| 564 |
|
564 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 565 |
#ifndef NO_ATSUSetHighlightingMethod |
565 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 566 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetHighlightingMethod) |
566 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 567 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2) |
567 |
rc = (jint)ATSUSetAttributes((ATSUStyle)arg0, (ItemCount)arg1, (ATSUAttributeTag *)lparg2, (ByteCount *)lparg3, (ATSUAttributeValuePtr *)lparg4); |
| 568 |
{ |
568 |
fail: |
| 569 |
ATSUUnhighlightData _arg2, *lparg2=NULL; |
569 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 570 |
jint rc = 0; |
570 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 571 |
OS_NATIVE_ENTER(env, that, ATSUSetHighlightingMethod_FUNC); |
571 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 572 |
if (arg2) if ((lparg2 = getATSUUnhighlightDataFields(env, arg2, &_arg2)) == NULL) goto fail; |
572 |
OS_NATIVE_EXIT(env, that, ATSUSetAttributes_FUNC); |
| 573 |
rc = (jint)ATSUSetHighlightingMethod((ATSUTextLayout)arg0, arg1, lparg2); |
573 |
return rc; |
| 574 |
fail: |
574 |
} |
| 575 |
if (arg2 && lparg2) setATSUUnhighlightDataFields(env, arg2, lparg2); |
575 |
#endif |
| 576 |
OS_NATIVE_EXIT(env, that, ATSUSetHighlightingMethod_FUNC); |
576 |
|
| 577 |
return rc; |
577 |
#ifndef NO_ATSUSetFontFeatures |
| 578 |
} |
578 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetFontFeatures) |
| 579 |
#endif |
579 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshortArray arg2, jshortArray arg3) |
| 580 |
|
580 |
{ |
| 581 |
#ifndef NO_ATSUSetLayoutControls |
581 |
jshort *lparg2=NULL; |
| 582 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetLayoutControls) |
582 |
jshort *lparg3=NULL; |
| 583 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2, jintArray arg3, jintArray arg4) |
583 |
jint rc = 0; |
| 584 |
{ |
584 |
OS_NATIVE_ENTER(env, that, ATSUSetFontFeatures_FUNC); |
| 585 |
jint *lparg2=NULL; |
585 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 586 |
jint *lparg3=NULL; |
586 |
if (arg3) if ((lparg3 = (*env)->GetShortArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 587 |
jint *lparg4=NULL; |
587 |
rc = (jint)ATSUSetFontFeatures((ATSUStyle)arg0, (ItemCount)arg1, (const ATSUFontFeatureType *)lparg2, (const ATSUFontFeatureSelector *)lparg3); |
| 588 |
jint rc = 0; |
588 |
fail: |
| 589 |
OS_NATIVE_ENTER(env, that, ATSUSetLayoutControls_FUNC); |
589 |
if (arg3 && lparg3) (*env)->ReleaseShortArrayElements(env, arg3, lparg3, 0); |
| 590 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
590 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
| 591 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
591 |
OS_NATIVE_EXIT(env, that, ATSUSetFontFeatures_FUNC); |
| 592 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
592 |
return rc; |
| 593 |
rc = (jint)ATSUSetLayoutControls((ATSUTextLayout)arg0, (ItemCount)arg1, (ATSUAttributeTag *)lparg2, (ByteCount *)lparg3, (ATSUAttributeValuePtr *)lparg4); |
593 |
} |
| 594 |
fail: |
594 |
#endif |
| 595 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
595 |
|
| 596 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
596 |
#ifndef NO_ATSUSetHighlightingMethod |
| 597 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
597 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetHighlightingMethod) |
| 598 |
OS_NATIVE_EXIT(env, that, ATSUSetLayoutControls_FUNC); |
598 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2) |
| 599 |
return rc; |
599 |
{ |
| 600 |
} |
600 |
ATSUUnhighlightData _arg2, *lparg2=NULL; |
| 601 |
#endif |
601 |
jint rc = 0; |
| 602 |
|
602 |
OS_NATIVE_ENTER(env, that, ATSUSetHighlightingMethod_FUNC); |
| 603 |
#ifndef NO_ATSUSetLineControls |
603 |
if (arg2) if ((lparg2 = getATSUUnhighlightDataFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 604 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetLineControls) |
604 |
rc = (jint)ATSUSetHighlightingMethod((ATSUTextLayout)arg0, arg1, lparg2); |
| 605 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jintArray arg4, jintArray arg5) |
605 |
fail: |
| 606 |
{ |
606 |
if (arg2 && lparg2) setATSUUnhighlightDataFields(env, arg2, lparg2); |
| 607 |
jint *lparg3=NULL; |
607 |
OS_NATIVE_EXIT(env, that, ATSUSetHighlightingMethod_FUNC); |
| 608 |
jint *lparg4=NULL; |
608 |
return rc; |
| 609 |
jint *lparg5=NULL; |
609 |
} |
| 610 |
jint rc = 0; |
610 |
#endif |
| 611 |
OS_NATIVE_ENTER(env, that, ATSUSetLineControls_FUNC); |
611 |
|
| 612 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
612 |
#ifndef NO_ATSUSetLayoutControls |
| 613 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
613 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetLayoutControls) |
| 614 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
614 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2, jintArray arg3, jintArray arg4) |
| 615 |
rc = (jint)ATSUSetLineControls((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (ItemCount)arg2, (const ATSUAttributeTag *)lparg3, (const ByteCount *)lparg4, (const ATSUAttributeValuePtr *)lparg5); |
615 |
{ |
| 616 |
fail: |
616 |
jint *lparg2=NULL; |
| 617 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
617 |
jint *lparg3=NULL; |
| 618 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
618 |
jint *lparg4=NULL; |
| 619 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
619 |
jint rc = 0; |
| 620 |
OS_NATIVE_EXIT(env, that, ATSUSetLineControls_FUNC); |
620 |
OS_NATIVE_ENTER(env, that, ATSUSetLayoutControls_FUNC); |
| 621 |
return rc; |
621 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 622 |
} |
622 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 623 |
#endif |
623 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 624 |
|
624 |
rc = (jint)ATSUSetLayoutControls((ATSUTextLayout)arg0, (ItemCount)arg1, (ATSUAttributeTag *)lparg2, (ByteCount *)lparg3, (ATSUAttributeValuePtr *)lparg4); |
| 625 |
#ifndef NO_ATSUSetRunStyle |
625 |
fail: |
| 626 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetRunStyle) |
626 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 627 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3) |
627 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 628 |
{ |
628 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 629 |
jint rc = 0; |
629 |
OS_NATIVE_EXIT(env, that, ATSUSetLayoutControls_FUNC); |
| 630 |
OS_NATIVE_ENTER(env, that, ATSUSetRunStyle_FUNC); |
630 |
return rc; |
| 631 |
rc = (jint)ATSUSetRunStyle((ATSUTextLayout)arg0, (ATSUStyle)arg1, (UniCharArrayOffset)arg2, (UniCharCount)arg3); |
631 |
} |
| 632 |
OS_NATIVE_EXIT(env, that, ATSUSetRunStyle_FUNC); |
632 |
#endif |
| 633 |
return rc; |
633 |
|
| 634 |
} |
634 |
#ifndef NO_ATSUSetLineControls |
| 635 |
#endif |
635 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetLineControls) |
| 636 |
|
636 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jintArray arg4, jintArray arg5) |
| 637 |
#ifndef NO_ATSUSetSoftLineBreak |
637 |
{ |
| 638 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetSoftLineBreak) |
638 |
jint *lparg3=NULL; |
| 639 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
639 |
jint *lparg4=NULL; |
| 640 |
{ |
640 |
jint *lparg5=NULL; |
| 641 |
jint rc = 0; |
641 |
jint rc = 0; |
| 642 |
OS_NATIVE_ENTER(env, that, ATSUSetSoftLineBreak_FUNC); |
642 |
OS_NATIVE_ENTER(env, that, ATSUSetLineControls_FUNC); |
| 643 |
rc = (jint)ATSUSetSoftLineBreak((ATSUTextLayout)arg0, arg1); |
643 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 644 |
OS_NATIVE_EXIT(env, that, ATSUSetSoftLineBreak_FUNC); |
644 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 645 |
return rc; |
645 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 646 |
} |
646 |
rc = (jint)ATSUSetLineControls((ATSUTextLayout)arg0, (UniCharArrayOffset)arg1, (ItemCount)arg2, (const ATSUAttributeTag *)lparg3, (const ByteCount *)lparg4, (const ATSUAttributeValuePtr *)lparg5); |
| 647 |
#endif |
647 |
fail: |
| 648 |
|
648 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 649 |
#ifndef NO_ATSUSetTabArray |
649 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 650 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetTabArray) |
650 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 651 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
651 |
OS_NATIVE_EXIT(env, that, ATSUSetLineControls_FUNC); |
| 652 |
{ |
652 |
return rc; |
| 653 |
jint rc = 0; |
653 |
} |
| 654 |
OS_NATIVE_ENTER(env, that, ATSUSetTabArray_FUNC); |
654 |
#endif |
| 655 |
rc = (jint)ATSUSetTabArray((ATSUTextLayout)arg0, (const ATSUTab *)arg1, arg2); |
655 |
|
| 656 |
OS_NATIVE_EXIT(env, that, ATSUSetTabArray_FUNC); |
656 |
#ifndef NO_ATSUSetRunStyle |
| 657 |
return rc; |
657 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetRunStyle) |
| 658 |
} |
658 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3) |
| 659 |
#endif |
659 |
{ |
| 660 |
|
660 |
jint rc = 0; |
| 661 |
#ifndef NO_ATSUSetTextPointerLocation |
661 |
OS_NATIVE_ENTER(env, that, ATSUSetRunStyle_FUNC); |
| 662 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetTextPointerLocation) |
662 |
rc = (jint)ATSUSetRunStyle((ATSUTextLayout)arg0, (ATSUStyle)arg1, (UniCharArrayOffset)arg2, (UniCharCount)arg3); |
| 663 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4) |
663 |
OS_NATIVE_EXIT(env, that, ATSUSetRunStyle_FUNC); |
| 664 |
{ |
664 |
return rc; |
| 665 |
jint rc = 0; |
665 |
} |
| 666 |
OS_NATIVE_ENTER(env, that, ATSUSetTextPointerLocation_FUNC); |
666 |
#endif |
| 667 |
rc = (jint)ATSUSetTextPointerLocation((ATSUTextLayout)arg0, (ConstUniCharArrayPtr)arg1, (UniCharArrayOffset)arg2, (UniCharCount)arg3, (UniCharCount)arg4); |
667 |
|
| 668 |
OS_NATIVE_EXIT(env, that, ATSUSetTextPointerLocation_FUNC); |
668 |
#ifndef NO_ATSUSetSoftLineBreak |
| 669 |
return rc; |
669 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetSoftLineBreak) |
| 670 |
} |
670 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 671 |
#endif |
671 |
{ |
| 672 |
|
672 |
jint rc = 0; |
| 673 |
#ifndef NO_ATSUSetTransientFontMatching |
673 |
OS_NATIVE_ENTER(env, that, ATSUSetSoftLineBreak_FUNC); |
| 674 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetTransientFontMatching) |
674 |
rc = (jint)ATSUSetSoftLineBreak((ATSUTextLayout)arg0, arg1); |
| 675 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
675 |
OS_NATIVE_EXIT(env, that, ATSUSetSoftLineBreak_FUNC); |
| 676 |
{ |
676 |
return rc; |
| 677 |
jint rc = 0; |
677 |
} |
| 678 |
OS_NATIVE_ENTER(env, that, ATSUSetTransientFontMatching_FUNC); |
678 |
#endif |
| 679 |
rc = (jint)ATSUSetTransientFontMatching((ATSUTextLayout)arg0, arg1); |
679 |
|
| 680 |
OS_NATIVE_EXIT(env, that, ATSUSetTransientFontMatching_FUNC); |
680 |
#ifndef NO_ATSUSetTabArray |
| 681 |
return rc; |
681 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetTabArray) |
| 682 |
} |
682 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 683 |
#endif |
683 |
{ |
| 684 |
|
684 |
jint rc = 0; |
| 685 |
#ifndef NO_ATSUTextDeleted |
685 |
OS_NATIVE_ENTER(env, that, ATSUSetTabArray_FUNC); |
| 686 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUTextDeleted) |
686 |
rc = (jint)ATSUSetTabArray((ATSUTextLayout)arg0, (const ATSUTab *)arg1, arg2); |
| 687 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
687 |
OS_NATIVE_EXIT(env, that, ATSUSetTabArray_FUNC); |
| 688 |
{ |
688 |
return rc; |
| 689 |
jint rc = 0; |
689 |
} |
| 690 |
OS_NATIVE_ENTER(env, that, ATSUTextDeleted_FUNC); |
690 |
#endif |
| 691 |
rc = (jint)ATSUTextDeleted((ATSUTextLayout)arg0, arg1, arg2); |
691 |
|
| 692 |
OS_NATIVE_EXIT(env, that, ATSUTextDeleted_FUNC); |
692 |
#ifndef NO_ATSUSetTextPointerLocation |
| 693 |
return rc; |
693 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetTextPointerLocation) |
| 694 |
} |
694 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4) |
| 695 |
#endif |
695 |
{ |
| 696 |
|
696 |
jint rc = 0; |
| 697 |
#ifndef NO_ATSUTextInserted |
697 |
OS_NATIVE_ENTER(env, that, ATSUSetTextPointerLocation_FUNC); |
| 698 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUTextInserted) |
698 |
rc = (jint)ATSUSetTextPointerLocation((ATSUTextLayout)arg0, (ConstUniCharArrayPtr)arg1, (UniCharArrayOffset)arg2, (UniCharCount)arg3, (UniCharCount)arg4); |
| 699 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
699 |
OS_NATIVE_EXIT(env, that, ATSUSetTextPointerLocation_FUNC); |
| 700 |
{ |
700 |
return rc; |
| 701 |
jint rc = 0; |
701 |
} |
| 702 |
OS_NATIVE_ENTER(env, that, ATSUTextInserted_FUNC); |
702 |
#endif |
| 703 |
rc = (jint)ATSUTextInserted((ATSUTextLayout)arg0, arg1, arg2); |
703 |
|
| 704 |
OS_NATIVE_EXIT(env, that, ATSUTextInserted_FUNC); |
704 |
#ifndef NO_ATSUSetTransientFontMatching |
| 705 |
return rc; |
705 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUSetTransientFontMatching) |
| 706 |
} |
706 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
| 707 |
#endif |
707 |
{ |
| 708 |
|
708 |
jint rc = 0; |
| 709 |
#ifndef NO_ActiveNonFloatingWindow |
709 |
OS_NATIVE_ENTER(env, that, ATSUSetTransientFontMatching_FUNC); |
| 710 |
JNIEXPORT jint JNICALL OS_NATIVE(ActiveNonFloatingWindow) |
710 |
rc = (jint)ATSUSetTransientFontMatching((ATSUTextLayout)arg0, arg1); |
| 711 |
(JNIEnv *env, jclass that) |
711 |
OS_NATIVE_EXIT(env, that, ATSUSetTransientFontMatching_FUNC); |
| 712 |
{ |
712 |
return rc; |
| 713 |
jint rc = 0; |
713 |
} |
| 714 |
OS_NATIVE_ENTER(env, that, ActiveNonFloatingWindow_FUNC); |
714 |
#endif |
| 715 |
rc = (jint)ActiveNonFloatingWindow(); |
715 |
|
| 716 |
OS_NATIVE_EXIT(env, that, ActiveNonFloatingWindow_FUNC); |
716 |
#ifndef NO_ATSUTextDeleted |
| 717 |
return rc; |
717 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUTextDeleted) |
| 718 |
} |
718 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 719 |
#endif |
719 |
{ |
| 720 |
|
720 |
jint rc = 0; |
| 721 |
#ifndef NO_AddDataBrowserItems |
721 |
OS_NATIVE_ENTER(env, that, ATSUTextDeleted_FUNC); |
| 722 |
JNIEXPORT jint JNICALL OS_NATIVE(AddDataBrowserItems) |
722 |
rc = (jint)ATSUTextDeleted((ATSUTextLayout)arg0, arg1, arg2); |
| 723 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4) |
723 |
OS_NATIVE_EXIT(env, that, ATSUTextDeleted_FUNC); |
| 724 |
{ |
724 |
return rc; |
| 725 |
jint *lparg3=NULL; |
725 |
} |
| 726 |
jint rc = 0; |
726 |
#endif |
| 727 |
OS_NATIVE_ENTER(env, that, AddDataBrowserItems_FUNC); |
727 |
|
| 728 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
728 |
#ifndef NO_ATSUTextInserted |
| 729 |
rc = (jint)AddDataBrowserItems((ControlRef)arg0, (DataBrowserItemID)arg1, (UInt32)arg2, (const DataBrowserItemID *)lparg3, (DataBrowserPropertyID)arg4); |
729 |
JNIEXPORT jint JNICALL OS_NATIVE(ATSUTextInserted) |
| 730 |
fail: |
730 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 731 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
731 |
{ |
| 732 |
OS_NATIVE_EXIT(env, that, AddDataBrowserItems_FUNC); |
732 |
jint rc = 0; |
| 733 |
return rc; |
733 |
OS_NATIVE_ENTER(env, that, ATSUTextInserted_FUNC); |
| 734 |
} |
734 |
rc = (jint)ATSUTextInserted((ATSUTextLayout)arg0, arg1, arg2); |
| 735 |
#endif |
735 |
OS_NATIVE_EXIT(env, that, ATSUTextInserted_FUNC); |
| 736 |
|
736 |
return rc; |
| 737 |
#ifndef NO_AddDataBrowserListViewColumn |
737 |
} |
| 738 |
JNIEXPORT jint JNICALL OS_NATIVE(AddDataBrowserListViewColumn) |
738 |
#endif |
| 739 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
739 |
|
| 740 |
{ |
740 |
#ifndef NO_ActiveNonFloatingWindow |
| 741 |
DataBrowserListViewColumnDesc _arg1={0}, *lparg1=NULL; |
741 |
JNIEXPORT jint JNICALL OS_NATIVE(ActiveNonFloatingWindow) |
| 742 |
jint rc = 0; |
742 |
(JNIEnv *env, jclass that) |
| 743 |
OS_NATIVE_ENTER(env, that, AddDataBrowserListViewColumn_FUNC); |
743 |
{ |
| 744 |
if (arg1) if ((lparg1 = getDataBrowserListViewColumnDescFields(env, arg1, &_arg1)) == NULL) goto fail; |
744 |
jint rc = 0; |
| 745 |
rc = (jint)AddDataBrowserListViewColumn((ControlRef)arg0, (DataBrowserListViewColumnDesc *)lparg1, (DataBrowserTableViewColumnIndex)arg2); |
745 |
OS_NATIVE_ENTER(env, that, ActiveNonFloatingWindow_FUNC); |
| 746 |
fail: |
746 |
rc = (jint)ActiveNonFloatingWindow(); |
| 747 |
if (arg1 && lparg1) setDataBrowserListViewColumnDescFields(env, arg1, lparg1); |
747 |
OS_NATIVE_EXIT(env, that, ActiveNonFloatingWindow_FUNC); |
| 748 |
OS_NATIVE_EXIT(env, that, AddDataBrowserListViewColumn_FUNC); |
748 |
return rc; |
| 749 |
return rc; |
749 |
} |
| 750 |
} |
750 |
#endif |
| 751 |
#endif |
751 |
|
| 752 |
|
752 |
#ifndef NO_AddDataBrowserItems |
| 753 |
#ifndef NO_AddDragItemFlavor |
753 |
JNIEXPORT jint JNICALL OS_NATIVE(AddDataBrowserItems) |
| 754 |
JNIEXPORT jint JNICALL OS_NATIVE(AddDragItemFlavor) |
754 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4) |
| 755 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jbyteArray arg3, jint arg4, jint arg5) |
755 |
{ |
| 756 |
{ |
756 |
jint *lparg3=NULL; |
| 757 |
jbyte *lparg3=NULL; |
757 |
jint rc = 0; |
| 758 |
jint rc = 0; |
758 |
OS_NATIVE_ENTER(env, that, AddDataBrowserItems_FUNC); |
| 759 |
OS_NATIVE_ENTER(env, that, AddDragItemFlavor_FUNC); |
759 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 760 |
if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail; |
760 |
rc = (jint)AddDataBrowserItems((ControlRef)arg0, (DataBrowserItemID)arg1, (UInt32)arg2, (const DataBrowserItemID *)lparg3, (DataBrowserPropertyID)arg4); |
| 761 |
rc = (jint)AddDragItemFlavor((DragRef)arg0, (DragItemRef)arg1, (FlavorType)arg2, (const void *)lparg3, (Size)arg4, (FlavorFlags)arg5); |
761 |
fail: |
| 762 |
fail: |
762 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 763 |
if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0); |
763 |
OS_NATIVE_EXIT(env, that, AddDataBrowserItems_FUNC); |
| 764 |
OS_NATIVE_EXIT(env, that, AddDragItemFlavor_FUNC); |
764 |
return rc; |
| 765 |
return rc; |
765 |
} |
| 766 |
} |
766 |
#endif |
| 767 |
#endif |
767 |
|
| 768 |
|
768 |
#ifndef NO_AddDataBrowserListViewColumn |
| 769 |
#ifndef NO_AppendMenuItemTextWithCFString |
769 |
JNIEXPORT jint JNICALL OS_NATIVE(AddDataBrowserListViewColumn) |
| 770 |
JNIEXPORT jint JNICALL OS_NATIVE(AppendMenuItemTextWithCFString) |
770 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
| 771 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jshortArray arg4) |
771 |
{ |
| 772 |
{ |
772 |
DataBrowserListViewColumnDesc _arg1={0}, *lparg1=NULL; |
| 773 |
jshort *lparg4=NULL; |
773 |
jint rc = 0; |
| 774 |
jint rc = 0; |
774 |
OS_NATIVE_ENTER(env, that, AddDataBrowserListViewColumn_FUNC); |
| 775 |
OS_NATIVE_ENTER(env, that, AppendMenuItemTextWithCFString_FUNC); |
775 |
if (arg1) if ((lparg1 = getDataBrowserListViewColumnDescFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 776 |
if (arg4) if ((lparg4 = (*env)->GetShortArrayElements(env, arg4, NULL)) == NULL) goto fail; |
776 |
rc = (jint)AddDataBrowserListViewColumn((ControlRef)arg0, (DataBrowserListViewColumnDesc *)lparg1, (DataBrowserTableViewColumnIndex)arg2); |
| 777 |
rc = (jint)AppendMenuItemTextWithCFString((MenuRef)arg0, (CFStringRef)arg1, (MenuItemAttributes)arg2, (MenuCommand)arg3, (MenuItemIndex *)lparg4); |
777 |
fail: |
| 778 |
fail: |
778 |
if (arg1 && lparg1) setDataBrowserListViewColumnDescFields(env, arg1, lparg1); |
| 779 |
if (arg4 && lparg4) (*env)->ReleaseShortArrayElements(env, arg4, lparg4, 0); |
779 |
OS_NATIVE_EXIT(env, that, AddDataBrowserListViewColumn_FUNC); |
| 780 |
OS_NATIVE_EXIT(env, that, AppendMenuItemTextWithCFString_FUNC); |
780 |
return rc; |
| 781 |
return rc; |
781 |
} |
| 782 |
} |
782 |
#endif |
| 783 |
#endif |
783 |
|
| 784 |
|
784 |
#ifndef NO_AddDragItemFlavor |
| 785 |
#ifndef NO_AutoSizeDataBrowserListViewColumns |
785 |
JNIEXPORT jint JNICALL OS_NATIVE(AddDragItemFlavor) |
| 786 |
JNIEXPORT jint JNICALL OS_NATIVE(AutoSizeDataBrowserListViewColumns) |
786 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jbyteArray arg3, jint arg4, jint arg5) |
| 787 |
(JNIEnv *env, jclass that, jint arg0) |
787 |
{ |
| 788 |
{ |
788 |
jbyte *lparg3=NULL; |
| 789 |
jint rc = 0; |
789 |
jint rc = 0; |
| 790 |
OS_NATIVE_ENTER(env, that, AutoSizeDataBrowserListViewColumns_FUNC); |
790 |
OS_NATIVE_ENTER(env, that, AddDragItemFlavor_FUNC); |
| 791 |
rc = (jint)AutoSizeDataBrowserListViewColumns((ControlRef)arg0); |
791 |
if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 792 |
OS_NATIVE_EXIT(env, that, AutoSizeDataBrowserListViewColumns_FUNC); |
792 |
rc = (jint)AddDragItemFlavor((DragRef)arg0, (DragItemRef)arg1, (FlavorType)arg2, (const void *)lparg3, (Size)arg4, (FlavorFlags)arg5); |
| 793 |
return rc; |
793 |
fail: |
| 794 |
} |
794 |
if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0); |
| 795 |
#endif |
795 |
OS_NATIVE_EXIT(env, that, AddDragItemFlavor_FUNC); |
| 796 |
|
796 |
return rc; |
| 797 |
#ifndef NO_BeginUpdate |
797 |
} |
| 798 |
JNIEXPORT void JNICALL OS_NATIVE(BeginUpdate) |
798 |
#endif |
| 799 |
(JNIEnv *env, jclass that, jint arg0) |
799 |
|
| 800 |
{ |
800 |
#ifndef NO_AppendMenuItemTextWithCFString |
| 801 |
OS_NATIVE_ENTER(env, that, BeginUpdate_FUNC); |
801 |
JNIEXPORT jint JNICALL OS_NATIVE(AppendMenuItemTextWithCFString) |
| 802 |
BeginUpdate((WindowRef)arg0); |
802 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jshortArray arg4) |
| 803 |
OS_NATIVE_EXIT(env, that, BeginUpdate_FUNC); |
803 |
{ |
| 804 |
} |
804 |
jshort *lparg4=NULL; |
| 805 |
#endif |
805 |
jint rc = 0; |
| 806 |
|
806 |
OS_NATIVE_ENTER(env, that, AppendMenuItemTextWithCFString_FUNC); |
| 807 |
#ifndef NO_BringToFront |
807 |
if (arg4) if ((lparg4 = (*env)->GetShortArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 808 |
JNIEXPORT void JNICALL OS_NATIVE(BringToFront) |
808 |
rc = (jint)AppendMenuItemTextWithCFString((MenuRef)arg0, (CFStringRef)arg1, (MenuItemAttributes)arg2, (MenuCommand)arg3, (MenuItemIndex *)lparg4); |
| 809 |
(JNIEnv *env, jclass that, jint arg0) |
809 |
fail: |
| 810 |
{ |
810 |
if (arg4 && lparg4) (*env)->ReleaseShortArrayElements(env, arg4, lparg4, 0); |
| 811 |
OS_NATIVE_ENTER(env, that, BringToFront_FUNC); |
811 |
OS_NATIVE_EXIT(env, that, AppendMenuItemTextWithCFString_FUNC); |
| 812 |
BringToFront((WindowRef)arg0); |
812 |
return rc; |
| 813 |
OS_NATIVE_EXIT(env, that, BringToFront_FUNC); |
813 |
} |
| 814 |
} |
814 |
#endif |
| 815 |
#endif |
815 |
|
| 816 |
|
816 |
#ifndef NO_AutoSizeDataBrowserListViewColumns |
| 817 |
#ifndef NO_CFArrayAppendValue |
817 |
JNIEXPORT jint JNICALL OS_NATIVE(AutoSizeDataBrowserListViewColumns) |
| 818 |
JNIEXPORT void JNICALL OS_NATIVE(CFArrayAppendValue) |
818 |
(JNIEnv *env, jclass that, jint arg0) |
| 819 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
819 |
{ |
| 820 |
{ |
820 |
jint rc = 0; |
| 821 |
OS_NATIVE_ENTER(env, that, CFArrayAppendValue_FUNC); |
821 |
OS_NATIVE_ENTER(env, that, AutoSizeDataBrowserListViewColumns_FUNC); |
| 822 |
CFArrayAppendValue((CFMutableArrayRef)arg0, (const void *)arg1); |
822 |
rc = (jint)AutoSizeDataBrowserListViewColumns((ControlRef)arg0); |
| 823 |
OS_NATIVE_EXIT(env, that, CFArrayAppendValue_FUNC); |
823 |
OS_NATIVE_EXIT(env, that, AutoSizeDataBrowserListViewColumns_FUNC); |
| 824 |
} |
824 |
return rc; |
| 825 |
#endif |
825 |
} |
| 826 |
|
826 |
#endif |
| 827 |
#ifndef NO_CFArrayCreateMutable |
827 |
|
| 828 |
JNIEXPORT jint JNICALL OS_NATIVE(CFArrayCreateMutable) |
828 |
#ifndef NO_BeginUpdate |
| 829 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
829 |
JNIEXPORT void JNICALL OS_NATIVE(BeginUpdate) |
| 830 |
{ |
830 |
(JNIEnv *env, jclass that, jint arg0) |
| 831 |
jint rc = 0; |
831 |
{ |
| 832 |
OS_NATIVE_ENTER(env, that, CFArrayCreateMutable_FUNC); |
832 |
OS_NATIVE_ENTER(env, that, BeginUpdate_FUNC); |
| 833 |
rc = (jint)CFArrayCreateMutable((CFAllocatorRef)arg0, (CFIndex)arg1, (const CFArrayCallBacks *)arg2); |
833 |
BeginUpdate((WindowRef)arg0); |
| 834 |
OS_NATIVE_EXIT(env, that, CFArrayCreateMutable_FUNC); |
834 |
OS_NATIVE_EXIT(env, that, BeginUpdate_FUNC); |
| 835 |
return rc; |
835 |
} |
| 836 |
} |
836 |
#endif |
| 837 |
#endif |
837 |
|
| 838 |
|
838 |
#ifndef NO_BringToFront |
| 839 |
#ifndef NO_CFArrayGetCount |
839 |
JNIEXPORT void JNICALL OS_NATIVE(BringToFront) |
| 840 |
JNIEXPORT jint JNICALL OS_NATIVE(CFArrayGetCount) |
840 |
(JNIEnv *env, jclass that, jint arg0) |
| 841 |
(JNIEnv *env, jclass that, jint arg0) |
841 |
{ |
| 842 |
{ |
842 |
OS_NATIVE_ENTER(env, that, BringToFront_FUNC); |
| 843 |
jint rc = 0; |
843 |
BringToFront((WindowRef)arg0); |
| 844 |
OS_NATIVE_ENTER(env, that, CFArrayGetCount_FUNC); |
844 |
OS_NATIVE_EXIT(env, that, BringToFront_FUNC); |
| 845 |
rc = (jint)CFArrayGetCount((CFArrayRef)arg0); |
845 |
} |
| 846 |
OS_NATIVE_EXIT(env, that, CFArrayGetCount_FUNC); |
846 |
#endif |
| 847 |
return rc; |
847 |
|
| 848 |
} |
848 |
#ifndef NO_CFArrayAppendValue |
| 849 |
#endif |
849 |
JNIEXPORT void JNICALL OS_NATIVE(CFArrayAppendValue) |
| 850 |
|
850 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 851 |
#ifndef NO_CFArrayGetValueAtIndex |
851 |
{ |
| 852 |
JNIEXPORT jint JNICALL OS_NATIVE(CFArrayGetValueAtIndex) |
852 |
OS_NATIVE_ENTER(env, that, CFArrayAppendValue_FUNC); |
| 853 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
853 |
CFArrayAppendValue((CFMutableArrayRef)arg0, (const void *)arg1); |
| 854 |
{ |
854 |
OS_NATIVE_EXIT(env, that, CFArrayAppendValue_FUNC); |
| 855 |
jint rc = 0; |
855 |
} |
| 856 |
OS_NATIVE_ENTER(env, that, CFArrayGetValueAtIndex_FUNC); |
856 |
#endif |
| 857 |
rc = (jint)CFArrayGetValueAtIndex((CFArrayRef)arg0, arg1); |
857 |
|
| 858 |
OS_NATIVE_EXIT(env, that, CFArrayGetValueAtIndex_FUNC); |
858 |
#ifndef NO_CFArrayCreateMutable |
| 859 |
return rc; |
859 |
JNIEXPORT jint JNICALL OS_NATIVE(CFArrayCreateMutable) |
| 860 |
} |
860 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 861 |
#endif |
861 |
{ |
| 862 |
|
862 |
jint rc = 0; |
| 863 |
#ifndef NO_CFRelease |
863 |
OS_NATIVE_ENTER(env, that, CFArrayCreateMutable_FUNC); |
| 864 |
JNIEXPORT void JNICALL OS_NATIVE(CFRelease) |
864 |
rc = (jint)CFArrayCreateMutable((CFAllocatorRef)arg0, (CFIndex)arg1, (const CFArrayCallBacks *)arg2); |
| 865 |
(JNIEnv *env, jclass that, jint arg0) |
865 |
OS_NATIVE_EXIT(env, that, CFArrayCreateMutable_FUNC); |
| 866 |
{ |
866 |
return rc; |
| 867 |
OS_NATIVE_ENTER(env, that, CFRelease_FUNC); |
867 |
} |
| 868 |
CFRelease((CFTypeRef)arg0); |
868 |
#endif |
| 869 |
OS_NATIVE_EXIT(env, that, CFRelease_FUNC); |
869 |
|
| 870 |
} |
870 |
#ifndef NO_CFArrayGetCount |
| 871 |
#endif |
871 |
JNIEXPORT jint JNICALL OS_NATIVE(CFArrayGetCount) |
| 872 |
|
872 |
(JNIEnv *env, jclass that, jint arg0) |
| 873 |
#ifndef NO_CFStringCreateWithBytes |
873 |
{ |
| 874 |
JNIEXPORT jint JNICALL OS_NATIVE(CFStringCreateWithBytes) |
874 |
jint rc = 0; |
| 875 |
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2, jint arg3, jboolean arg4) |
875 |
OS_NATIVE_ENTER(env, that, CFArrayGetCount_FUNC); |
| 876 |
{ |
876 |
rc = (jint)CFArrayGetCount((CFArrayRef)arg0); |
| 877 |
jbyte *lparg1=NULL; |
877 |
OS_NATIVE_EXIT(env, that, CFArrayGetCount_FUNC); |
| 878 |
jint rc = 0; |
878 |
return rc; |
| 879 |
OS_NATIVE_ENTER(env, that, CFStringCreateWithBytes_FUNC); |
879 |
} |
| 880 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
880 |
#endif |
| 881 |
rc = (jint)CFStringCreateWithBytes((CFAllocatorRef)arg0, (const UInt8 *)lparg1, (CFIndex)arg2, (CFStringEncoding)arg3, arg4); |
881 |
|
| 882 |
fail: |
882 |
#ifndef NO_CFArrayGetValueAtIndex |
| 883 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
883 |
JNIEXPORT jint JNICALL OS_NATIVE(CFArrayGetValueAtIndex) |
| 884 |
OS_NATIVE_EXIT(env, that, CFStringCreateWithBytes_FUNC); |
884 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 885 |
return rc; |
885 |
{ |
| 886 |
} |
886 |
jint rc = 0; |
| 887 |
#endif |
887 |
OS_NATIVE_ENTER(env, that, CFArrayGetValueAtIndex_FUNC); |
| 888 |
|
888 |
rc = (jint)CFArrayGetValueAtIndex((CFArrayRef)arg0, arg1); |
| 889 |
#ifndef NO_CFStringCreateWithCharacters |
889 |
OS_NATIVE_EXIT(env, that, CFArrayGetValueAtIndex_FUNC); |
| 890 |
JNIEXPORT jint JNICALL OS_NATIVE(CFStringCreateWithCharacters) |
890 |
return rc; |
| 891 |
(JNIEnv *env, jclass that, jint arg0, jcharArray arg1, jint arg2) |
891 |
} |
| 892 |
{ |
892 |
#endif |
| 893 |
jchar *lparg1=NULL; |
893 |
|
| 894 |
jint rc = 0; |
894 |
#ifndef NO_CFRelease |
| 895 |
OS_NATIVE_ENTER(env, that, CFStringCreateWithCharacters_FUNC); |
895 |
JNIEXPORT void JNICALL OS_NATIVE(CFRelease) |
| 896 |
if (arg1) if ((lparg1 = (*env)->GetCharArrayElements(env, arg1, NULL)) == NULL) goto fail; |
896 |
(JNIEnv *env, jclass that, jint arg0) |
| 897 |
rc = (jint)CFStringCreateWithCharacters((CFAllocatorRef)arg0, (const UniChar *)lparg1, (CFIndex)arg2); |
897 |
{ |
| 898 |
fail: |
898 |
OS_NATIVE_ENTER(env, that, CFRelease_FUNC); |
| 899 |
if (arg1 && lparg1) (*env)->ReleaseCharArrayElements(env, arg1, lparg1, 0); |
899 |
CFRelease((CFTypeRef)arg0); |
| 900 |
OS_NATIVE_EXIT(env, that, CFStringCreateWithCharacters_FUNC); |
900 |
OS_NATIVE_EXIT(env, that, CFRelease_FUNC); |
| 901 |
return rc; |
901 |
} |
| 902 |
} |
902 |
#endif |
| 903 |
#endif |
903 |
|
| 904 |
|
904 |
#ifndef NO_CFStringCreateWithBytes |
| 905 |
#ifndef NO_CFStringGetBytes |
905 |
JNIEXPORT jint JNICALL OS_NATIVE(CFStringCreateWithBytes) |
| 906 |
JNIEXPORT jint JNICALL OS_NATIVE(CFStringGetBytes) |
906 |
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2, jint arg3, jboolean arg4) |
| 907 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jbyte arg3, jboolean arg4, jbyteArray arg5, jint arg6, jintArray arg7) |
907 |
{ |
| 908 |
{ |
908 |
jbyte *lparg1=NULL; |
| 909 |
CFRange _arg1, *lparg1=NULL; |
909 |
jint rc = 0; |
| 910 |
jbyte *lparg5=NULL; |
910 |
OS_NATIVE_ENTER(env, that, CFStringCreateWithBytes_FUNC); |
| 911 |
jint *lparg7=NULL; |
911 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 912 |
jint rc = 0; |
912 |
rc = (jint)CFStringCreateWithBytes((CFAllocatorRef)arg0, (const UInt8 *)lparg1, (CFIndex)arg2, (CFStringEncoding)arg3, arg4); |
| 913 |
OS_NATIVE_ENTER(env, that, CFStringGetBytes_FUNC); |
913 |
fail: |
| 914 |
if (arg1) if ((lparg1 = getCFRangeFields(env, arg1, &_arg1)) == NULL) goto fail; |
914 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
| 915 |
if (arg5) if ((lparg5 = (*env)->GetByteArrayElements(env, arg5, NULL)) == NULL) goto fail; |
915 |
OS_NATIVE_EXIT(env, that, CFStringCreateWithBytes_FUNC); |
| 916 |
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail; |
916 |
return rc; |
| 917 |
rc = (jint)CFStringGetBytes((CFStringRef)arg0, *(CFRange *)lparg1, (CFStringEncoding)arg2, (UInt8)arg3, (Boolean)arg4, (UInt8 *)lparg5, (CFIndex)arg6, (CFIndex *)lparg7); |
917 |
} |
| 918 |
fail: |
918 |
#endif |
| 919 |
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0); |
919 |
|
| 920 |
if (arg5 && lparg5) (*env)->ReleaseByteArrayElements(env, arg5, lparg5, 0); |
920 |
#ifndef NO_CFStringCreateWithCharacters |
| 921 |
if (arg1 && lparg1) setCFRangeFields(env, arg1, lparg1); |
921 |
JNIEXPORT jint JNICALL OS_NATIVE(CFStringCreateWithCharacters) |
| 922 |
OS_NATIVE_EXIT(env, that, CFStringGetBytes_FUNC); |
922 |
(JNIEnv *env, jclass that, jint arg0, jcharArray arg1, jint arg2) |
| 923 |
return rc; |
923 |
{ |
| 924 |
} |
924 |
jchar *lparg1=NULL; |
| 925 |
#endif |
925 |
jint rc = 0; |
| 926 |
|
926 |
OS_NATIVE_ENTER(env, that, CFStringCreateWithCharacters_FUNC); |
| 927 |
#ifndef NO_CFStringGetCharacters |
927 |
if (arg1) if ((lparg1 = (*env)->GetCharArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 928 |
JNIEXPORT void JNICALL OS_NATIVE(CFStringGetCharacters) |
928 |
rc = (jint)CFStringCreateWithCharacters((CFAllocatorRef)arg0, (const UniChar *)lparg1, (CFIndex)arg2); |
| 929 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jcharArray arg2) |
929 |
fail: |
| 930 |
{ |
930 |
if (arg1 && lparg1) (*env)->ReleaseCharArrayElements(env, arg1, lparg1, 0); |
| 931 |
CFRange _arg1, *lparg1=NULL; |
931 |
OS_NATIVE_EXIT(env, that, CFStringCreateWithCharacters_FUNC); |
| 932 |
jchar *lparg2=NULL; |
932 |
return rc; |
| 933 |
OS_NATIVE_ENTER(env, that, CFStringGetCharacters_FUNC); |
933 |
} |
| 934 |
if (arg1) if ((lparg1 = getCFRangeFields(env, arg1, &_arg1)) == NULL) goto fail; |
934 |
#endif |
| 935 |
if (arg2) if ((lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL)) == NULL) goto fail; |
935 |
|
| 936 |
CFStringGetCharacters((CFStringRef)arg0, *(CFRange *)lparg1, (UniChar *)lparg2); |
936 |
#ifndef NO_CFStringGetBytes |
| 937 |
fail: |
937 |
JNIEXPORT jint JNICALL OS_NATIVE(CFStringGetBytes) |
| 938 |
if (arg2 && lparg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0); |
938 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jbyte arg3, jboolean arg4, jbyteArray arg5, jint arg6, jintArray arg7) |
| 939 |
if (arg1 && lparg1) setCFRangeFields(env, arg1, lparg1); |
939 |
{ |
| 940 |
OS_NATIVE_EXIT(env, that, CFStringGetCharacters_FUNC); |
940 |
CFRange _arg1, *lparg1=NULL; |
| 941 |
} |
941 |
jbyte *lparg5=NULL; |
| 942 |
#endif |
942 |
jint *lparg7=NULL; |
| 943 |
|
943 |
jint rc = 0; |
| 944 |
#ifndef NO_CFStringGetLength |
944 |
OS_NATIVE_ENTER(env, that, CFStringGetBytes_FUNC); |
| 945 |
JNIEXPORT jint JNICALL OS_NATIVE(CFStringGetLength) |
945 |
if (arg1) if ((lparg1 = getCFRangeFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 946 |
(JNIEnv *env, jclass that, jint arg0) |
946 |
if (arg5) if ((lparg5 = (*env)->GetByteArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 947 |
{ |
947 |
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail; |
| 948 |
jint rc = 0; |
948 |
rc = (jint)CFStringGetBytes((CFStringRef)arg0, *(CFRange *)lparg1, (CFStringEncoding)arg2, (UInt8)arg3, (Boolean)arg4, (UInt8 *)lparg5, (CFIndex)arg6, (CFIndex *)lparg7); |
| 949 |
OS_NATIVE_ENTER(env, that, CFStringGetLength_FUNC); |
949 |
fail: |
| 950 |
rc = (jint)CFStringGetLength((CFStringRef)arg0); |
950 |
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0); |
| 951 |
OS_NATIVE_EXIT(env, that, CFStringGetLength_FUNC); |
951 |
if (arg5 && lparg5) (*env)->ReleaseByteArrayElements(env, arg5, lparg5, 0); |
| 952 |
return rc; |
952 |
if (arg1 && lparg1) setCFRangeFields(env, arg1, lparg1); |
| 953 |
} |
953 |
OS_NATIVE_EXIT(env, that, CFStringGetBytes_FUNC); |
| 954 |
#endif |
954 |
return rc; |
| 955 |
|
955 |
} |
| 956 |
#ifndef NO_CFStringGetSystemEncoding |
956 |
#endif |
| 957 |
JNIEXPORT jint JNICALL OS_NATIVE(CFStringGetSystemEncoding) |
957 |
|
| 958 |
(JNIEnv *env, jclass that) |
958 |
#ifndef NO_CFStringGetCharacters |
| 959 |
{ |
959 |
JNIEXPORT void JNICALL OS_NATIVE(CFStringGetCharacters) |
| 960 |
jint rc = 0; |
960 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jcharArray arg2) |
| 961 |
OS_NATIVE_ENTER(env, that, CFStringGetSystemEncoding_FUNC); |
961 |
{ |
| 962 |
rc = (jint)CFStringGetSystemEncoding(); |
962 |
CFRange _arg1, *lparg1=NULL; |
| 963 |
OS_NATIVE_EXIT(env, that, CFStringGetSystemEncoding_FUNC); |
963 |
jchar *lparg2=NULL; |
| 964 |
return rc; |
964 |
OS_NATIVE_ENTER(env, that, CFStringGetCharacters_FUNC); |
| 965 |
} |
965 |
if (arg1) if ((lparg1 = getCFRangeFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 966 |
#endif |
966 |
if (arg2) if ((lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 967 |
|
967 |
CFStringGetCharacters((CFStringRef)arg0, *(CFRange *)lparg1, (UniChar *)lparg2); |
| 968 |
#ifndef NO_CFURLCopyFileSystemPath |
968 |
fail: |
| 969 |
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCopyFileSystemPath) |
969 |
if (arg2 && lparg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0); |
| 970 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
970 |
if (arg1 && lparg1) setCFRangeFields(env, arg1, lparg1); |
| 971 |
{ |
971 |
OS_NATIVE_EXIT(env, that, CFStringGetCharacters_FUNC); |
| 972 |
jint rc = 0; |
972 |
} |
| 973 |
OS_NATIVE_ENTER(env, that, CFURLCopyFileSystemPath_FUNC); |
973 |
#endif |
| 974 |
rc = (jint)CFURLCopyFileSystemPath((CFURLRef)arg0, (CFURLPathStyle)arg1); |
974 |
|
| 975 |
OS_NATIVE_EXIT(env, that, CFURLCopyFileSystemPath_FUNC); |
975 |
#ifndef NO_CFStringGetLength |
| 976 |
return rc; |
976 |
JNIEXPORT jint JNICALL OS_NATIVE(CFStringGetLength) |
| 977 |
} |
977 |
(JNIEnv *env, jclass that, jint arg0) |
| 978 |
#endif |
978 |
{ |
| 979 |
|
979 |
jint rc = 0; |
| 980 |
#ifndef NO_CFURLCopyLastPathComponent |
980 |
OS_NATIVE_ENTER(env, that, CFStringGetLength_FUNC); |
| 981 |
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCopyLastPathComponent) |
981 |
rc = (jint)CFStringGetLength((CFStringRef)arg0); |
| 982 |
(JNIEnv *env, jclass that, jint arg0) |
982 |
OS_NATIVE_EXIT(env, that, CFStringGetLength_FUNC); |
| 983 |
{ |
983 |
return rc; |
| 984 |
jint rc = 0; |
984 |
} |
| 985 |
OS_NATIVE_ENTER(env, that, CFURLCopyLastPathComponent_FUNC); |
985 |
#endif |
| 986 |
rc = (jint)CFURLCopyLastPathComponent((CFURLRef)arg0); |
986 |
|
| 987 |
OS_NATIVE_EXIT(env, that, CFURLCopyLastPathComponent_FUNC); |
987 |
#ifndef NO_CFStringGetSystemEncoding |
| 988 |
return rc; |
988 |
JNIEXPORT jint JNICALL OS_NATIVE(CFStringGetSystemEncoding) |
| 989 |
} |
989 |
(JNIEnv *env, jclass that) |
| 990 |
#endif |
990 |
{ |
| 991 |
|
991 |
jint rc = 0; |
| 992 |
#ifndef NO_CFURLCreateCopyAppendingPathComponent |
992 |
OS_NATIVE_ENTER(env, that, CFStringGetSystemEncoding_FUNC); |
| 993 |
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCreateCopyAppendingPathComponent) |
993 |
rc = (jint)CFStringGetSystemEncoding(); |
| 994 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jboolean arg3) |
994 |
OS_NATIVE_EXIT(env, that, CFStringGetSystemEncoding_FUNC); |
| 995 |
{ |
995 |
return rc; |
| 996 |
jint rc = 0; |
996 |
} |
| 997 |
OS_NATIVE_ENTER(env, that, CFURLCreateCopyAppendingPathComponent_FUNC); |
997 |
#endif |
| 998 |
rc = (jint)CFURLCreateCopyAppendingPathComponent((CFAllocatorRef)arg0, (CFURLRef)arg1, (CFStringRef)arg2, (Boolean)arg3); |
998 |
|
| 999 |
OS_NATIVE_EXIT(env, that, CFURLCreateCopyAppendingPathComponent_FUNC); |
999 |
#ifndef NO_CFURLCopyFileSystemPath |
| 1000 |
return rc; |
1000 |
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCopyFileSystemPath) |
| 1001 |
} |
1001 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 1002 |
#endif |
1002 |
{ |
| 1003 |
|
1003 |
jint rc = 0; |
| 1004 |
#ifndef NO_CFURLCreateCopyDeletingLastPathComponent |
1004 |
OS_NATIVE_ENTER(env, that, CFURLCopyFileSystemPath_FUNC); |
| 1005 |
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCreateCopyDeletingLastPathComponent) |
1005 |
rc = (jint)CFURLCopyFileSystemPath((CFURLRef)arg0, (CFURLPathStyle)arg1); |
| 1006 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
1006 |
OS_NATIVE_EXIT(env, that, CFURLCopyFileSystemPath_FUNC); |
| 1007 |
{ |
1007 |
return rc; |
| 1008 |
jint rc = 0; |
1008 |
} |
| 1009 |
OS_NATIVE_ENTER(env, that, CFURLCreateCopyDeletingLastPathComponent_FUNC); |
1009 |
#endif |
| 1010 |
rc = (jint)CFURLCreateCopyDeletingLastPathComponent((CFAllocatorRef)arg0, (CFURLRef)arg1); |
1010 |
|
| 1011 |
OS_NATIVE_EXIT(env, that, CFURLCreateCopyDeletingLastPathComponent_FUNC); |
1011 |
#ifndef NO_CFURLCopyLastPathComponent |
| 1012 |
return rc; |
1012 |
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCopyLastPathComponent) |
| 1013 |
} |
1013 |
(JNIEnv *env, jclass that, jint arg0) |
| 1014 |
#endif |
1014 |
{ |
| 1015 |
|
1015 |
jint rc = 0; |
| 1016 |
#ifndef NO_CFURLCreateFromFSRef |
1016 |
OS_NATIVE_ENTER(env, that, CFURLCopyLastPathComponent_FUNC); |
| 1017 |
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCreateFromFSRef) |
1017 |
rc = (jint)CFURLCopyLastPathComponent((CFURLRef)arg0); |
| 1018 |
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1) |
1018 |
OS_NATIVE_EXIT(env, that, CFURLCopyLastPathComponent_FUNC); |
| 1019 |
{ |
1019 |
return rc; |
| 1020 |
jbyte *lparg1=NULL; |
1020 |
} |
| 1021 |
jint rc = 0; |
1021 |
#endif |
| 1022 |
OS_NATIVE_ENTER(env, that, CFURLCreateFromFSRef_FUNC); |
1022 |
|
| 1023 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
1023 |
#ifndef NO_CFURLCreateCopyAppendingPathComponent |
| 1024 |
rc = (jint)CFURLCreateFromFSRef((CFAllocatorRef)arg0, (const struct FSRef *)lparg1); |
1024 |
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCreateCopyAppendingPathComponent) |
| 1025 |
fail: |
1025 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jboolean arg3) |
| 1026 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
1026 |
{ |
| 1027 |
OS_NATIVE_EXIT(env, that, CFURLCreateFromFSRef_FUNC); |
1027 |
jint rc = 0; |
| 1028 |
return rc; |
1028 |
OS_NATIVE_ENTER(env, that, CFURLCreateCopyAppendingPathComponent_FUNC); |
| 1029 |
} |
1029 |
rc = (jint)CFURLCreateCopyAppendingPathComponent((CFAllocatorRef)arg0, (CFURLRef)arg1, (CFStringRef)arg2, (Boolean)arg3); |
| 1030 |
#endif |
1030 |
OS_NATIVE_EXIT(env, that, CFURLCreateCopyAppendingPathComponent_FUNC); |
| 1031 |
|
1031 |
return rc; |
| 1032 |
#ifndef NO_CFURLCreateWithFileSystemPath |
1032 |
} |
| 1033 |
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCreateWithFileSystemPath) |
1033 |
#endif |
| 1034 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jboolean arg3) |
1034 |
|
| 1035 |
{ |
1035 |
#ifndef NO_CFURLCreateCopyDeletingLastPathComponent |
| 1036 |
jint rc = 0; |
1036 |
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCreateCopyDeletingLastPathComponent) |
| 1037 |
OS_NATIVE_ENTER(env, that, CFURLCreateWithFileSystemPath_FUNC); |
1037 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 1038 |
rc = (jint)CFURLCreateWithFileSystemPath((CFAllocatorRef)arg0, (CFStringRef)arg1, (CFURLPathStyle)arg2, arg3); |
1038 |
{ |
| 1039 |
OS_NATIVE_EXIT(env, that, CFURLCreateWithFileSystemPath_FUNC); |
1039 |
jint rc = 0; |
| 1040 |
return rc; |
1040 |
OS_NATIVE_ENTER(env, that, CFURLCreateCopyDeletingLastPathComponent_FUNC); |
| 1041 |
} |
1041 |
rc = (jint)CFURLCreateCopyDeletingLastPathComponent((CFAllocatorRef)arg0, (CFURLRef)arg1); |
| 1042 |
#endif |
1042 |
OS_NATIVE_EXIT(env, that, CFURLCreateCopyDeletingLastPathComponent_FUNC); |
| 1043 |
|
1043 |
return rc; |
| 1044 |
#ifndef NO_CFURLGetFSRef |
1044 |
} |
| 1045 |
JNIEXPORT jboolean JNICALL OS_NATIVE(CFURLGetFSRef) |
1045 |
#endif |
| 1046 |
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1) |
1046 |
|
| 1047 |
{ |
1047 |
#ifndef NO_CFURLCreateFromFSRef |
| 1048 |
jbyte *lparg1=NULL; |
1048 |
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCreateFromFSRef) |
| 1049 |
jboolean rc = 0; |
1049 |
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1) |
| 1050 |
OS_NATIVE_ENTER(env, that, CFURLGetFSRef_FUNC); |
1050 |
{ |
| 1051 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
1051 |
jbyte *lparg1=NULL; |
| 1052 |
rc = (jboolean)CFURLGetFSRef((CFURLRef)arg0, (struct FSRef *)lparg1); |
1052 |
jint rc = 0; |
| 1053 |
fail: |
1053 |
OS_NATIVE_ENTER(env, that, CFURLCreateFromFSRef_FUNC); |
| 1054 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
1054 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 1055 |
OS_NATIVE_EXIT(env, that, CFURLGetFSRef_FUNC); |
1055 |
rc = (jint)CFURLCreateFromFSRef((CFAllocatorRef)arg0, (const struct FSRef *)lparg1); |
| 1056 |
return rc; |
1056 |
fail: |
| 1057 |
} |
1057 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
| 1058 |
#endif |
1058 |
OS_NATIVE_EXIT(env, that, CFURLCreateFromFSRef_FUNC); |
| 1059 |
|
1059 |
return rc; |
| 1060 |
#ifndef NO_CGBitmapContextCreate |
1060 |
} |
| 1061 |
JNIEXPORT jint JNICALL OS_NATIVE(CGBitmapContextCreate) |
1061 |
#endif |
| 1062 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6) |
1062 |
|
| 1063 |
{ |
1063 |
#ifndef NO_CFURLCreateWithBytes |
| 1064 |
jint rc = 0; |
1064 |
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCreateWithBytes) |
| 1065 |
OS_NATIVE_ENTER(env, that, CGBitmapContextCreate_FUNC); |
1065 |
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2, jint arg3, jint arg4) |
| 1066 |
rc = (jint)CGBitmapContextCreate((void *)arg0, (size_t)arg1, (size_t)arg2, (size_t)arg3, (size_t)arg4, (CGColorSpaceRef)arg5, (CGImageAlphaInfo)arg6); |
1066 |
{ |
| 1067 |
OS_NATIVE_EXIT(env, that, CGBitmapContextCreate_FUNC); |
1067 |
jbyte *lparg1=NULL; |
| 1068 |
return rc; |
1068 |
jint rc = 0; |
| 1069 |
} |
1069 |
OS_NATIVE_ENTER(env, that, CFURLCreateWithBytes_FUNC); |
| 1070 |
#endif |
1070 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 1071 |
|
1071 |
rc = (jint)CFURLCreateWithBytes((CFAllocatorRef)arg0, lparg1, arg2, arg3, (CFURLRef)arg4); |
| 1072 |
#ifndef NO_CGColorSpaceCreateDeviceRGB |
1072 |
fail: |
| 1073 |
JNIEXPORT jint JNICALL OS_NATIVE(CGColorSpaceCreateDeviceRGB) |
1073 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
| 1074 |
(JNIEnv *env, jclass that) |
1074 |
OS_NATIVE_EXIT(env, that, CFURLCreateWithBytes_FUNC); |
| 1075 |
{ |
1075 |
return rc; |
| 1076 |
jint rc = 0; |
1076 |
} |
| 1077 |
OS_NATIVE_ENTER(env, that, CGColorSpaceCreateDeviceRGB_FUNC); |
1077 |
#endif |
| 1078 |
rc = (jint)CGColorSpaceCreateDeviceRGB(); |
1078 |
|
| 1079 |
OS_NATIVE_EXIT(env, that, CGColorSpaceCreateDeviceRGB_FUNC); |
1079 |
#ifndef NO_CFURLCreateWithFileSystemPath |
| 1080 |
return rc; |
1080 |
JNIEXPORT jint JNICALL OS_NATIVE(CFURLCreateWithFileSystemPath) |
| 1081 |
} |
1081 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jboolean arg3) |
| 1082 |
#endif |
1082 |
{ |
| 1083 |
|
1083 |
jint rc = 0; |
| 1084 |
#ifndef NO_CGColorSpaceRelease |
1084 |
OS_NATIVE_ENTER(env, that, CFURLCreateWithFileSystemPath_FUNC); |
| 1085 |
JNIEXPORT void JNICALL OS_NATIVE(CGColorSpaceRelease) |
1085 |
rc = (jint)CFURLCreateWithFileSystemPath((CFAllocatorRef)arg0, (CFStringRef)arg1, (CFURLPathStyle)arg2, arg3); |
| 1086 |
(JNIEnv *env, jclass that, jint arg0) |
1086 |
OS_NATIVE_EXIT(env, that, CFURLCreateWithFileSystemPath_FUNC); |
| 1087 |
{ |
1087 |
return rc; |
| 1088 |
OS_NATIVE_ENTER(env, that, CGColorSpaceRelease_FUNC); |
1088 |
} |
| 1089 |
CGColorSpaceRelease((CGColorSpaceRef)arg0); |
1089 |
#endif |
| 1090 |
OS_NATIVE_EXIT(env, that, CGColorSpaceRelease_FUNC); |
1090 |
|
| 1091 |
} |
1091 |
#ifndef NO_CFURLGetFSRef |
| 1092 |
#endif |
1092 |
JNIEXPORT jboolean JNICALL OS_NATIVE(CFURLGetFSRef) |
| 1093 |
|
1093 |
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1) |
| 1094 |
#ifndef NO_CGContextAddArc |
1094 |
{ |
| 1095 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextAddArc) |
1095 |
jbyte *lparg1=NULL; |
| 1096 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2, jfloat arg3, jfloat arg4, jfloat arg5, jboolean arg6) |
1096 |
jboolean rc = 0; |
| 1097 |
{ |
1097 |
OS_NATIVE_ENTER(env, that, CFURLGetFSRef_FUNC); |
| 1098 |
OS_NATIVE_ENTER(env, that, CGContextAddArc_FUNC); |
1098 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 1099 |
CGContextAddArc((CGContextRef)arg0, (float)arg1, (float)arg2, (float)arg3, (float)arg4, (float)arg5, (Boolean)arg6); |
1099 |
rc = (jboolean)CFURLGetFSRef((CFURLRef)arg0, (struct FSRef *)lparg1); |
| 1100 |
OS_NATIVE_EXIT(env, that, CGContextAddArc_FUNC); |
1100 |
fail: |
| 1101 |
} |
1101 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
| 1102 |
#endif |
1102 |
OS_NATIVE_EXIT(env, that, CFURLGetFSRef_FUNC); |
| 1103 |
|
1103 |
return rc; |
| 1104 |
#ifndef NO_CGContextAddArcToPoint |
1104 |
} |
| 1105 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextAddArcToPoint) |
1105 |
#endif |
| 1106 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2, jfloat arg3, jfloat arg4, jfloat arg5) |
1106 |
|
| 1107 |
{ |
1107 |
#ifndef NO_CGBitmapContextCreate |
| 1108 |
OS_NATIVE_ENTER(env, that, CGContextAddArcToPoint_FUNC); |
1108 |
JNIEXPORT jint JNICALL OS_NATIVE(CGBitmapContextCreate) |
| 1109 |
CGContextAddArcToPoint((CGContextRef)arg0, arg1, arg2, arg3, arg4, arg5); |
1109 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6) |
| 1110 |
OS_NATIVE_EXIT(env, that, CGContextAddArcToPoint_FUNC); |
1110 |
{ |
| 1111 |
} |
1111 |
jint rc = 0; |
| 1112 |
#endif |
1112 |
OS_NATIVE_ENTER(env, that, CGBitmapContextCreate_FUNC); |
| 1113 |
|
1113 |
rc = (jint)CGBitmapContextCreate((void *)arg0, (size_t)arg1, (size_t)arg2, (size_t)arg3, (size_t)arg4, (CGColorSpaceRef)arg5, (CGImageAlphaInfo)arg6); |
| 1114 |
#ifndef NO_CGContextAddLineToPoint |
1114 |
OS_NATIVE_EXIT(env, that, CGBitmapContextCreate_FUNC); |
| 1115 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextAddLineToPoint) |
1115 |
return rc; |
| 1116 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2) |
1116 |
} |
| 1117 |
{ |
1117 |
#endif |
| 1118 |
OS_NATIVE_ENTER(env, that, CGContextAddLineToPoint_FUNC); |
1118 |
|
| 1119 |
CGContextAddLineToPoint((CGContextRef)arg0, arg1, arg2); |
1119 |
#ifndef NO_CGColorSpaceCreateDeviceRGB |
| 1120 |
OS_NATIVE_EXIT(env, that, CGContextAddLineToPoint_FUNC); |
1120 |
JNIEXPORT jint JNICALL OS_NATIVE(CGColorSpaceCreateDeviceRGB) |
| 1121 |
} |
1121 |
(JNIEnv *env, jclass that) |
| 1122 |
#endif |
1122 |
{ |
| 1123 |
|
1123 |
jint rc = 0; |
| 1124 |
#ifndef NO_CGContextAddLines |
1124 |
OS_NATIVE_ENTER(env, that, CGColorSpaceCreateDeviceRGB_FUNC); |
| 1125 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextAddLines) |
1125 |
rc = (jint)CGColorSpaceCreateDeviceRGB(); |
| 1126 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1, jint arg2) |
1126 |
OS_NATIVE_EXIT(env, that, CGColorSpaceCreateDeviceRGB_FUNC); |
| 1127 |
{ |
1127 |
return rc; |
| 1128 |
jfloat *lparg1=NULL; |
1128 |
} |
| 1129 |
OS_NATIVE_ENTER(env, that, CGContextAddLines_FUNC); |
1129 |
#endif |
| 1130 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
1130 |
|
| 1131 |
CGContextAddLines((CGContextRef)arg0, (const CGPoint *)lparg1, (size_t)arg2); |
1131 |
#ifndef NO_CGColorSpaceRelease |
| 1132 |
fail: |
1132 |
JNIEXPORT void JNICALL OS_NATIVE(CGColorSpaceRelease) |
| 1133 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
1133 |
(JNIEnv *env, jclass that, jint arg0) |
| 1134 |
OS_NATIVE_EXIT(env, that, CGContextAddLines_FUNC); |
1134 |
{ |
| 1135 |
} |
1135 |
OS_NATIVE_ENTER(env, that, CGColorSpaceRelease_FUNC); |
| 1136 |
#endif |
1136 |
CGColorSpaceRelease((CGColorSpaceRef)arg0); |
| 1137 |
|
1137 |
OS_NATIVE_EXIT(env, that, CGColorSpaceRelease_FUNC); |
| 1138 |
#ifndef NO_CGContextAddPath |
1138 |
} |
| 1139 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextAddPath) |
1139 |
#endif |
| 1140 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
1140 |
|
| 1141 |
{ |
1141 |
#ifndef NO_CGContextAddArc |
| 1142 |
OS_NATIVE_ENTER(env, that, CGContextAddPath_FUNC); |
1142 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextAddArc) |
| 1143 |
CGContextAddPath((CGContextRef)arg0, (CGPathRef)arg1); |
1143 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2, jfloat arg3, jfloat arg4, jfloat arg5, jboolean arg6) |
| 1144 |
OS_NATIVE_EXIT(env, that, CGContextAddPath_FUNC); |
1144 |
{ |
| 1145 |
} |
1145 |
OS_NATIVE_ENTER(env, that, CGContextAddArc_FUNC); |
| 1146 |
#endif |
1146 |
CGContextAddArc((CGContextRef)arg0, (float)arg1, (float)arg2, (float)arg3, (float)arg4, (float)arg5, (Boolean)arg6); |
| 1147 |
|
1147 |
OS_NATIVE_EXIT(env, that, CGContextAddArc_FUNC); |
| 1148 |
#ifndef NO_CGContextBeginPath |
1148 |
} |
| 1149 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextBeginPath) |
1149 |
#endif |
| 1150 |
(JNIEnv *env, jclass that, jint arg0) |
1150 |
|
| 1151 |
{ |
1151 |
#ifndef NO_CGContextAddArcToPoint |
| 1152 |
OS_NATIVE_ENTER(env, that, CGContextBeginPath_FUNC); |
1152 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextAddArcToPoint) |
| 1153 |
CGContextBeginPath((CGContextRef)arg0); |
1153 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2, jfloat arg3, jfloat arg4, jfloat arg5) |
| 1154 |
OS_NATIVE_EXIT(env, that, CGContextBeginPath_FUNC); |
1154 |
{ |
| 1155 |
} |
1155 |
OS_NATIVE_ENTER(env, that, CGContextAddArcToPoint_FUNC); |
| 1156 |
#endif |
1156 |
CGContextAddArcToPoint((CGContextRef)arg0, arg1, arg2, arg3, arg4, arg5); |
| 1157 |
|
1157 |
OS_NATIVE_EXIT(env, that, CGContextAddArcToPoint_FUNC); |
| 1158 |
#ifndef NO_CGContextClearRect |
1158 |
} |
| 1159 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextClearRect) |
1159 |
#endif |
| 1160 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
1160 |
|
| 1161 |
{ |
1161 |
#ifndef NO_CGContextAddLineToPoint |
| 1162 |
CGRect _arg1, *lparg1=NULL; |
1162 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextAddLineToPoint) |
| 1163 |
OS_NATIVE_ENTER(env, that, CGContextClearRect_FUNC); |
1163 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2) |
| 1164 |
if (arg1) if ((lparg1 = getCGRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
1164 |
{ |
| 1165 |
CGContextClearRect((CGContextRef)arg0, *(CGRect *)lparg1); |
1165 |
OS_NATIVE_ENTER(env, that, CGContextAddLineToPoint_FUNC); |
| 1166 |
fail: |
1166 |
CGContextAddLineToPoint((CGContextRef)arg0, arg1, arg2); |
| 1167 |
if (arg1 && lparg1) setCGRectFields(env, arg1, lparg1); |
1167 |
OS_NATIVE_EXIT(env, that, CGContextAddLineToPoint_FUNC); |
| 1168 |
OS_NATIVE_EXIT(env, that, CGContextClearRect_FUNC); |
1168 |
} |
| 1169 |
} |
1169 |
#endif |
| 1170 |
#endif |
1170 |
|
| 1171 |
|
1171 |
#ifndef NO_CGContextAddLines |
| 1172 |
#ifndef NO_CGContextClip |
1172 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextAddLines) |
| 1173 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextClip) |
1173 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1, jint arg2) |
| 1174 |
(JNIEnv *env, jclass that, jint arg0) |
1174 |
{ |
| 1175 |
{ |
1175 |
jfloat *lparg1=NULL; |
| 1176 |
OS_NATIVE_ENTER(env, that, CGContextClip_FUNC); |
1176 |
OS_NATIVE_ENTER(env, that, CGContextAddLines_FUNC); |
| 1177 |
CGContextClip((CGContextRef)arg0); |
1177 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 1178 |
OS_NATIVE_EXIT(env, that, CGContextClip_FUNC); |
1178 |
CGContextAddLines((CGContextRef)arg0, (const CGPoint *)lparg1, (size_t)arg2); |
| 1179 |
} |
1179 |
fail: |
| 1180 |
#endif |
1180 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
| 1181 |
|
1181 |
OS_NATIVE_EXIT(env, that, CGContextAddLines_FUNC); |
| 1182 |
#ifndef NO_CGContextClosePath |
1182 |
} |
| 1183 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextClosePath) |
1183 |
#endif |
| 1184 |
(JNIEnv *env, jclass that, jint arg0) |
1184 |
|
| 1185 |
{ |
1185 |
#ifndef NO_CGContextAddPath |
| 1186 |
OS_NATIVE_ENTER(env, that, CGContextClosePath_FUNC); |
1186 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextAddPath) |
| 1187 |
CGContextClosePath((CGContextRef)arg0); |
1187 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 1188 |
OS_NATIVE_EXIT(env, that, CGContextClosePath_FUNC); |
1188 |
{ |
| 1189 |
} |
1189 |
OS_NATIVE_ENTER(env, that, CGContextAddPath_FUNC); |
| 1190 |
#endif |
1190 |
CGContextAddPath((CGContextRef)arg0, (CGPathRef)arg1); |
| 1191 |
|
1191 |
OS_NATIVE_EXIT(env, that, CGContextAddPath_FUNC); |
| 1192 |
#ifndef NO_CGContextConcatCTM |
1192 |
} |
| 1193 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextConcatCTM) |
1193 |
#endif |
| 1194 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1) |
1194 |
|
| 1195 |
{ |
1195 |
#ifndef NO_CGContextBeginPath |
| 1196 |
jfloat *lparg1=NULL; |
1196 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextBeginPath) |
| 1197 |
OS_NATIVE_ENTER(env, that, CGContextConcatCTM_FUNC); |
1197 |
(JNIEnv *env, jclass that, jint arg0) |
| 1198 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
1198 |
{ |
| 1199 |
CGContextConcatCTM((CGContextRef)arg0, *(CGAffineTransform *)lparg1); |
1199 |
OS_NATIVE_ENTER(env, that, CGContextBeginPath_FUNC); |
| 1200 |
fail: |
1200 |
CGContextBeginPath((CGContextRef)arg0); |
| 1201 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
1201 |
OS_NATIVE_EXIT(env, that, CGContextBeginPath_FUNC); |
| 1202 |
OS_NATIVE_EXIT(env, that, CGContextConcatCTM_FUNC); |
1202 |
} |
| 1203 |
} |
1203 |
#endif |
| 1204 |
#endif |
1204 |
|
| 1205 |
|
1205 |
#ifndef NO_CGContextClearRect |
| 1206 |
#ifndef NO_CGContextDrawImage |
1206 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextClearRect) |
| 1207 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextDrawImage) |
1207 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 1208 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
1208 |
{ |
| 1209 |
{ |
1209 |
CGRect _arg1, *lparg1=NULL; |
| 1210 |
CGRect _arg1, *lparg1=NULL; |
1210 |
OS_NATIVE_ENTER(env, that, CGContextClearRect_FUNC); |
| 1211 |
OS_NATIVE_ENTER(env, that, CGContextDrawImage_FUNC); |
1211 |
if (arg1) if ((lparg1 = getCGRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 1212 |
if (arg1) if ((lparg1 = getCGRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
1212 |
CGContextClearRect((CGContextRef)arg0, *(CGRect *)lparg1); |
| 1213 |
CGContextDrawImage((CGContextRef)arg0, *(CGRect *)lparg1, (CGImageRef)arg2); |
1213 |
fail: |
| 1214 |
fail: |
1214 |
if (arg1 && lparg1) setCGRectFields(env, arg1, lparg1); |
| 1215 |
if (arg1 && lparg1) setCGRectFields(env, arg1, lparg1); |
1215 |
OS_NATIVE_EXIT(env, that, CGContextClearRect_FUNC); |
| 1216 |
OS_NATIVE_EXIT(env, that, CGContextDrawImage_FUNC); |
1216 |
} |
| 1217 |
} |
1217 |
#endif |
| 1218 |
#endif |
1218 |
|
| 1219 |
|
1219 |
#ifndef NO_CGContextClip |
| 1220 |
#ifndef NO_CGContextEOClip |
1220 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextClip) |
| 1221 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextEOClip) |
1221 |
(JNIEnv *env, jclass that, jint arg0) |
| 1222 |
(JNIEnv *env, jclass that, jint arg0) |
1222 |
{ |
| 1223 |
{ |
1223 |
OS_NATIVE_ENTER(env, that, CGContextClip_FUNC); |
| 1224 |
OS_NATIVE_ENTER(env, that, CGContextEOClip_FUNC); |
1224 |
CGContextClip((CGContextRef)arg0); |
| 1225 |
CGContextEOClip((CGContextRef)arg0); |
1225 |
OS_NATIVE_EXIT(env, that, CGContextClip_FUNC); |
| 1226 |
OS_NATIVE_EXIT(env, that, CGContextEOClip_FUNC); |
1226 |
} |
| 1227 |
} |
1227 |
#endif |
| 1228 |
#endif |
1228 |
|
| 1229 |
|
1229 |
#ifndef NO_CGContextClosePath |
| 1230 |
#ifndef NO_CGContextEOFillPath |
1230 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextClosePath) |
| 1231 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextEOFillPath) |
1231 |
(JNIEnv *env, jclass that, jint arg0) |
| 1232 |
(JNIEnv *env, jclass that, jint arg0) |
1232 |
{ |
| 1233 |
{ |
1233 |
OS_NATIVE_ENTER(env, that, CGContextClosePath_FUNC); |
| 1234 |
OS_NATIVE_ENTER(env, that, CGContextEOFillPath_FUNC); |
1234 |
CGContextClosePath((CGContextRef)arg0); |
| 1235 |
CGContextEOFillPath((CGContextRef)arg0); |
1235 |
OS_NATIVE_EXIT(env, that, CGContextClosePath_FUNC); |
| 1236 |
OS_NATIVE_EXIT(env, that, CGContextEOFillPath_FUNC); |
1236 |
} |
| 1237 |
} |
1237 |
#endif |
| 1238 |
#endif |
1238 |
|
| 1239 |
|
1239 |
#ifndef NO_CGContextConcatCTM |
| 1240 |
#ifndef NO_CGContextFillPath |
1240 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextConcatCTM) |
| 1241 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextFillPath) |
1241 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1) |
| 1242 |
(JNIEnv *env, jclass that, jint arg0) |
1242 |
{ |
| 1243 |
{ |
1243 |
jfloat *lparg1=NULL; |
| 1244 |
OS_NATIVE_ENTER(env, that, CGContextFillPath_FUNC); |
1244 |
OS_NATIVE_ENTER(env, that, CGContextConcatCTM_FUNC); |
| 1245 |
CGContextFillPath((CGContextRef)arg0); |
1245 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 1246 |
OS_NATIVE_EXIT(env, that, CGContextFillPath_FUNC); |
1246 |
CGContextConcatCTM((CGContextRef)arg0, *(CGAffineTransform *)lparg1); |
| 1247 |
} |
1247 |
fail: |
| 1248 |
#endif |
1248 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
| 1249 |
|
1249 |
OS_NATIVE_EXIT(env, that, CGContextConcatCTM_FUNC); |
| 1250 |
#ifndef NO_CGContextFillRect |
1250 |
} |
| 1251 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextFillRect) |
1251 |
#endif |
| 1252 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
1252 |
|
| 1253 |
{ |
1253 |
#ifndef NO_CGContextDrawImage |
| 1254 |
CGRect _arg1, *lparg1=NULL; |
1254 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextDrawImage) |
| 1255 |
OS_NATIVE_ENTER(env, that, CGContextFillRect_FUNC); |
1255 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
| 1256 |
if (arg1) if ((lparg1 = getCGRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
1256 |
{ |
| 1257 |
CGContextFillRect((CGContextRef)arg0, *(CGRect *)lparg1); |
1257 |
CGRect _arg1, *lparg1=NULL; |
| 1258 |
fail: |
1258 |
OS_NATIVE_ENTER(env, that, CGContextDrawImage_FUNC); |
| 1259 |
if (arg1 && lparg1) setCGRectFields(env, arg1, lparg1); |
1259 |
if (arg1) if ((lparg1 = getCGRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 1260 |
OS_NATIVE_EXIT(env, that, CGContextFillRect_FUNC); |
1260 |
CGContextDrawImage((CGContextRef)arg0, *(CGRect *)lparg1, (CGImageRef)arg2); |
| 1261 |
} |
1261 |
fail: |
| 1262 |
#endif |
1262 |
if (arg1 && lparg1) setCGRectFields(env, arg1, lparg1); |
| 1263 |
|
1263 |
OS_NATIVE_EXIT(env, that, CGContextDrawImage_FUNC); |
| 1264 |
#ifndef NO_CGContextFlush |
1264 |
} |
| 1265 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextFlush) |
1265 |
#endif |
| 1266 |
(JNIEnv *env, jclass that, jint arg0) |
1266 |
|
| 1267 |
{ |
1267 |
#ifndef NO_CGContextEOClip |
| 1268 |
OS_NATIVE_ENTER(env, that, CGContextFlush_FUNC); |
1268 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextEOClip) |
| 1269 |
CGContextFlush((CGContextRef)arg0); |
1269 |
(JNIEnv *env, jclass that, jint arg0) |
| 1270 |
OS_NATIVE_EXIT(env, that, CGContextFlush_FUNC); |
1270 |
{ |
| 1271 |
} |
1271 |
OS_NATIVE_ENTER(env, that, CGContextEOClip_FUNC); |
| 1272 |
#endif |
1272 |
CGContextEOClip((CGContextRef)arg0); |
| 1273 |
|
1273 |
OS_NATIVE_EXIT(env, that, CGContextEOClip_FUNC); |
| 1274 |
#ifndef NO_CGContextGetInterpolationQuality |
1274 |
} |
| 1275 |
JNIEXPORT jint JNICALL OS_NATIVE(CGContextGetInterpolationQuality) |
1275 |
#endif |
| 1276 |
(JNIEnv *env, jclass that, jint arg0) |
1276 |
|
| 1277 |
{ |
1277 |
#ifndef NO_CGContextEOFillPath |
| 1278 |
jint rc = 0; |
1278 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextEOFillPath) |
| 1279 |
OS_NATIVE_ENTER(env, that, CGContextGetInterpolationQuality_FUNC); |
1279 |
(JNIEnv *env, jclass that, jint arg0) |
| 1280 |
rc = (jint)CGContextGetInterpolationQuality((CGContextRef)arg0); |
1280 |
{ |
| 1281 |
OS_NATIVE_EXIT(env, that, CGContextGetInterpolationQuality_FUNC); |
1281 |
OS_NATIVE_ENTER(env, that, CGContextEOFillPath_FUNC); |
| 1282 |
return rc; |
1282 |
CGContextEOFillPath((CGContextRef)arg0); |
| 1283 |
} |
1283 |
OS_NATIVE_EXIT(env, that, CGContextEOFillPath_FUNC); |
| 1284 |
#endif |
1284 |
} |
| 1285 |
|
1285 |
#endif |
| 1286 |
#ifndef NO_CGContextMoveToPoint |
1286 |
|
| 1287 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextMoveToPoint) |
1287 |
#ifndef NO_CGContextFillPath |
| 1288 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2) |
1288 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextFillPath) |
| 1289 |
{ |
1289 |
(JNIEnv *env, jclass that, jint arg0) |
| 1290 |
OS_NATIVE_ENTER(env, that, CGContextMoveToPoint_FUNC); |
1290 |
{ |
| 1291 |
CGContextMoveToPoint((CGContextRef)arg0, (float)arg1, (float)arg2); |
1291 |
OS_NATIVE_ENTER(env, that, CGContextFillPath_FUNC); |
| 1292 |
OS_NATIVE_EXIT(env, that, CGContextMoveToPoint_FUNC); |
1292 |
CGContextFillPath((CGContextRef)arg0); |
| 1293 |
} |
1293 |
OS_NATIVE_EXIT(env, that, CGContextFillPath_FUNC); |
| 1294 |
#endif |
1294 |
} |
| 1295 |
|
1295 |
#endif |
| 1296 |
#ifndef NO_CGContextRelease |
1296 |
|
| 1297 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextRelease) |
1297 |
#ifndef NO_CGContextFillRect |
| 1298 |
(JNIEnv *env, jclass that, jint arg0) |
1298 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextFillRect) |
| 1299 |
{ |
1299 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 1300 |
OS_NATIVE_ENTER(env, that, CGContextRelease_FUNC); |
1300 |
{ |
| 1301 |
CGContextRelease((CGContextRef)arg0); |
1301 |
CGRect _arg1, *lparg1=NULL; |
| 1302 |
OS_NATIVE_EXIT(env, that, CGContextRelease_FUNC); |
1302 |
OS_NATIVE_ENTER(env, that, CGContextFillRect_FUNC); |
| 1303 |
} |
1303 |
if (arg1) if ((lparg1 = getCGRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 1304 |
#endif |
1304 |
CGContextFillRect((CGContextRef)arg0, *(CGRect *)lparg1); |
| 1305 |
|
1305 |
fail: |
| 1306 |
#ifndef NO_CGContextRestoreGState |
1306 |
if (arg1 && lparg1) setCGRectFields(env, arg1, lparg1); |
| 1307 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextRestoreGState) |
1307 |
OS_NATIVE_EXIT(env, that, CGContextFillRect_FUNC); |
| 1308 |
(JNIEnv *env, jclass that, jint arg0) |
1308 |
} |
| 1309 |
{ |
1309 |
#endif |
| 1310 |
OS_NATIVE_ENTER(env, that, CGContextRestoreGState_FUNC); |
1310 |
|
| 1311 |
CGContextRestoreGState((CGContextRef)arg0); |
1311 |
#ifndef NO_CGContextFlush |
| 1312 |
OS_NATIVE_EXIT(env, that, CGContextRestoreGState_FUNC); |
1312 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextFlush) |
| 1313 |
} |
1313 |
(JNIEnv *env, jclass that, jint arg0) |
| 1314 |
#endif |
1314 |
{ |
| 1315 |
|
1315 |
OS_NATIVE_ENTER(env, that, CGContextFlush_FUNC); |
| 1316 |
#ifndef NO_CGContextSaveGState |
1316 |
CGContextFlush((CGContextRef)arg0); |
| 1317 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSaveGState) |
1317 |
OS_NATIVE_EXIT(env, that, CGContextFlush_FUNC); |
| 1318 |
(JNIEnv *env, jclass that, jint arg0) |
1318 |
} |
| 1319 |
{ |
1319 |
#endif |
| 1320 |
OS_NATIVE_ENTER(env, that, CGContextSaveGState_FUNC); |
1320 |
|
| 1321 |
CGContextSaveGState((CGContextRef)arg0); |
1321 |
#ifndef NO_CGContextGetInterpolationQuality |
| 1322 |
OS_NATIVE_EXIT(env, that, CGContextSaveGState_FUNC); |
1322 |
JNIEXPORT jint JNICALL OS_NATIVE(CGContextGetInterpolationQuality) |
| 1323 |
} |
1323 |
(JNIEnv *env, jclass that, jint arg0) |
| 1324 |
#endif |
1324 |
{ |
| 1325 |
|
1325 |
jint rc = 0; |
| 1326 |
#ifndef NO_CGContextScaleCTM |
1326 |
OS_NATIVE_ENTER(env, that, CGContextGetInterpolationQuality_FUNC); |
| 1327 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextScaleCTM) |
1327 |
rc = (jint)CGContextGetInterpolationQuality((CGContextRef)arg0); |
| 1328 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2) |
1328 |
OS_NATIVE_EXIT(env, that, CGContextGetInterpolationQuality_FUNC); |
| 1329 |
{ |
1329 |
return rc; |
| 1330 |
OS_NATIVE_ENTER(env, that, CGContextScaleCTM_FUNC); |
1330 |
} |
| 1331 |
CGContextScaleCTM((CGContextRef)arg0, (float)arg1, (float)arg2); |
1331 |
#endif |
| 1332 |
OS_NATIVE_EXIT(env, that, CGContextScaleCTM_FUNC); |
1332 |
|
| 1333 |
} |
1333 |
#ifndef NO_CGContextMoveToPoint |
| 1334 |
#endif |
1334 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextMoveToPoint) |
| 1335 |
|
1335 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2) |
| 1336 |
#ifndef NO_CGContextSelectFont |
1336 |
{ |
| 1337 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSelectFont) |
1337 |
OS_NATIVE_ENTER(env, that, CGContextMoveToPoint_FUNC); |
| 1338 |
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jfloat arg2, jint arg3) |
1338 |
CGContextMoveToPoint((CGContextRef)arg0, (float)arg1, (float)arg2); |
| 1339 |
{ |
1339 |
OS_NATIVE_EXIT(env, that, CGContextMoveToPoint_FUNC); |
| 1340 |
jbyte *lparg1=NULL; |
1340 |
} |
| 1341 |
OS_NATIVE_ENTER(env, that, CGContextSelectFont_FUNC); |
1341 |
#endif |
| 1342 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
1342 |
|
| 1343 |
CGContextSelectFont((CGContextRef)arg0, (const char *)lparg1, (float)arg2, (CGTextEncoding)arg3); |
1343 |
#ifndef NO_CGContextRelease |
| 1344 |
fail: |
1344 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextRelease) |
| 1345 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
1345 |
(JNIEnv *env, jclass that, jint arg0) |
| 1346 |
OS_NATIVE_EXIT(env, that, CGContextSelectFont_FUNC); |
1346 |
{ |
| 1347 |
} |
1347 |
OS_NATIVE_ENTER(env, that, CGContextRelease_FUNC); |
| 1348 |
#endif |
1348 |
CGContextRelease((CGContextRef)arg0); |
| 1349 |
|
1349 |
OS_NATIVE_EXIT(env, that, CGContextRelease_FUNC); |
| 1350 |
#ifndef NO_CGContextSetAlpha |
1350 |
} |
| 1351 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetAlpha) |
1351 |
#endif |
| 1352 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1) |
1352 |
|
| 1353 |
{ |
1353 |
#ifndef NO_CGContextRestoreGState |
| 1354 |
OS_NATIVE_ENTER(env, that, CGContextSetAlpha_FUNC); |
1354 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextRestoreGState) |
| 1355 |
CGContextSetAlpha((CGContextRef)arg0, arg1); |
1355 |
(JNIEnv *env, jclass that, jint arg0) |
| 1356 |
OS_NATIVE_EXIT(env, that, CGContextSetAlpha_FUNC); |
1356 |
{ |
| 1357 |
} |
1357 |
OS_NATIVE_ENTER(env, that, CGContextRestoreGState_FUNC); |
| 1358 |
#endif |
1358 |
CGContextRestoreGState((CGContextRef)arg0); |
| 1359 |
|
1359 |
OS_NATIVE_EXIT(env, that, CGContextRestoreGState_FUNC); |
| 1360 |
#ifndef NO_CGContextSetFillColor |
1360 |
} |
| 1361 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetFillColor) |
1361 |
#endif |
| 1362 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1) |
1362 |
|
| 1363 |
{ |
1363 |
#ifndef NO_CGContextSaveGState |
| 1364 |
jfloat *lparg1=NULL; |
1364 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSaveGState) |
| 1365 |
OS_NATIVE_ENTER(env, that, CGContextSetFillColor_FUNC); |
1365 |
(JNIEnv *env, jclass that, jint arg0) |
| 1366 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
1366 |
{ |
| 1367 |
CGContextSetFillColor((CGContextRef)arg0, (const float *)lparg1); |
1367 |
OS_NATIVE_ENTER(env, that, CGContextSaveGState_FUNC); |
| 1368 |
fail: |
1368 |
CGContextSaveGState((CGContextRef)arg0); |
| 1369 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
1369 |
OS_NATIVE_EXIT(env, that, CGContextSaveGState_FUNC); |
| 1370 |
OS_NATIVE_EXIT(env, that, CGContextSetFillColor_FUNC); |
1370 |
} |
| 1371 |
} |
1371 |
#endif |
| 1372 |
#endif |
1372 |
|
| 1373 |
|
1373 |
#ifndef NO_CGContextScaleCTM |
| 1374 |
#ifndef NO_CGContextSetFillColorSpace |
1374 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextScaleCTM) |
| 1375 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetFillColorSpace) |
1375 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2) |
| 1376 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
1376 |
{ |
| 1377 |
{ |
1377 |
OS_NATIVE_ENTER(env, that, CGContextScaleCTM_FUNC); |
| 1378 |
OS_NATIVE_ENTER(env, that, CGContextSetFillColorSpace_FUNC); |
1378 |
CGContextScaleCTM((CGContextRef)arg0, (float)arg1, (float)arg2); |
| 1379 |
CGContextSetFillColorSpace((CGContextRef)arg0, (CGColorSpaceRef)arg1); |
1379 |
OS_NATIVE_EXIT(env, that, CGContextScaleCTM_FUNC); |
| 1380 |
OS_NATIVE_EXIT(env, that, CGContextSetFillColorSpace_FUNC); |
1380 |
} |
| 1381 |
} |
1381 |
#endif |
| 1382 |
#endif |
1382 |
|
| 1383 |
|
1383 |
#ifndef NO_CGContextSelectFont |
| 1384 |
#ifndef NO_CGContextSetFont |
1384 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSelectFont) |
| 1385 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetFont) |
1385 |
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jfloat arg2, jint arg3) |
| 1386 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
1386 |
{ |
| 1387 |
{ |
1387 |
jbyte *lparg1=NULL; |
| 1388 |
OS_NATIVE_ENTER(env, that, CGContextSetFont_FUNC); |
1388 |
OS_NATIVE_ENTER(env, that, CGContextSelectFont_FUNC); |
| 1389 |
CGContextSetFont((CGContextRef)arg0, (CGFontRef)arg1); |
1389 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 1390 |
OS_NATIVE_EXIT(env, that, CGContextSetFont_FUNC); |
1390 |
CGContextSelectFont((CGContextRef)arg0, (const char *)lparg1, (float)arg2, (CGTextEncoding)arg3); |
| 1391 |
} |
1391 |
fail: |
| 1392 |
#endif |
1392 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
| 1393 |
|
1393 |
OS_NATIVE_EXIT(env, that, CGContextSelectFont_FUNC); |
| 1394 |
#ifndef NO_CGContextSetFontSize |
1394 |
} |
| 1395 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetFontSize) |
1395 |
#endif |
| 1396 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1) |
1396 |
|
| 1397 |
{ |
1397 |
#ifndef NO_CGContextSetAlpha |
| 1398 |
OS_NATIVE_ENTER(env, that, CGContextSetFontSize_FUNC); |
1398 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetAlpha) |
| 1399 |
CGContextSetFontSize((CGContextRef)arg0, (float)arg1); |
1399 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1) |
| 1400 |
OS_NATIVE_EXIT(env, that, CGContextSetFontSize_FUNC); |
1400 |
{ |
| 1401 |
} |
1401 |
OS_NATIVE_ENTER(env, that, CGContextSetAlpha_FUNC); |
| 1402 |
#endif |
1402 |
CGContextSetAlpha((CGContextRef)arg0, arg1); |
| 1403 |
|
1403 |
OS_NATIVE_EXIT(env, that, CGContextSetAlpha_FUNC); |
| 1404 |
#ifndef NO_CGContextSetInterpolationQuality |
1404 |
} |
| 1405 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetInterpolationQuality) |
1405 |
#endif |
| 1406 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
1406 |
|
| 1407 |
{ |
1407 |
#ifndef NO_CGContextSetFillColor |
| 1408 |
OS_NATIVE_ENTER(env, that, CGContextSetInterpolationQuality_FUNC); |
1408 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetFillColor) |
| 1409 |
CGContextSetInterpolationQuality((CGContextRef)arg0, arg1); |
1409 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1) |
| 1410 |
OS_NATIVE_EXIT(env, that, CGContextSetInterpolationQuality_FUNC); |
1410 |
{ |
| 1411 |
} |
1411 |
jfloat *lparg1=NULL; |
| 1412 |
#endif |
1412 |
OS_NATIVE_ENTER(env, that, CGContextSetFillColor_FUNC); |
| 1413 |
|
1413 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 1414 |
#ifndef NO_CGContextSetLineCap |
1414 |
CGContextSetFillColor((CGContextRef)arg0, (const float *)lparg1); |
| 1415 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetLineCap) |
1415 |
fail: |
| 1416 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
1416 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
| 1417 |
{ |
1417 |
OS_NATIVE_EXIT(env, that, CGContextSetFillColor_FUNC); |
| 1418 |
OS_NATIVE_ENTER(env, that, CGContextSetLineCap_FUNC); |
1418 |
} |
| 1419 |
CGContextSetLineCap((CGContextRef)arg0, arg1); |
1419 |
#endif |
| 1420 |
OS_NATIVE_EXIT(env, that, CGContextSetLineCap_FUNC); |
1420 |
|
| 1421 |
} |
1421 |
#ifndef NO_CGContextSetFillColorSpace |
| 1422 |
#endif |
1422 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetFillColorSpace) |
| 1423 |
|
1423 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 1424 |
#ifndef NO_CGContextSetLineDash |
1424 |
{ |
| 1425 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetLineDash) |
1425 |
OS_NATIVE_ENTER(env, that, CGContextSetFillColorSpace_FUNC); |
| 1426 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloatArray arg2, jint arg3) |
1426 |
CGContextSetFillColorSpace((CGContextRef)arg0, (CGColorSpaceRef)arg1); |
| 1427 |
{ |
1427 |
OS_NATIVE_EXIT(env, that, CGContextSetFillColorSpace_FUNC); |
| 1428 |
jfloat *lparg2=NULL; |
1428 |
} |
| 1429 |
OS_NATIVE_ENTER(env, that, CGContextSetLineDash_FUNC); |
1429 |
#endif |
| 1430 |
if (arg2) if ((lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL)) == NULL) goto fail; |
1430 |
|
| 1431 |
CGContextSetLineDash((CGContextRef)arg0, (float)arg1, (const float *)lparg2, (size_t)arg3); |
1431 |
#ifndef NO_CGContextSetFont |
| 1432 |
fail: |
1432 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetFont) |
| 1433 |
if (arg2 && lparg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0); |
1433 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 1434 |
OS_NATIVE_EXIT(env, that, CGContextSetLineDash_FUNC); |
1434 |
{ |
| 1435 |
} |
1435 |
OS_NATIVE_ENTER(env, that, CGContextSetFont_FUNC); |
| 1436 |
#endif |
1436 |
CGContextSetFont((CGContextRef)arg0, (CGFontRef)arg1); |
| 1437 |
|
1437 |
OS_NATIVE_EXIT(env, that, CGContextSetFont_FUNC); |
| 1438 |
#ifndef NO_CGContextSetLineJoin |
1438 |
} |
| 1439 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetLineJoin) |
1439 |
#endif |
| 1440 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
1440 |
|
| 1441 |
{ |
1441 |
#ifndef NO_CGContextSetFontSize |
| 1442 |
OS_NATIVE_ENTER(env, that, CGContextSetLineJoin_FUNC); |
1442 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetFontSize) |
| 1443 |
CGContextSetLineJoin((CGContextRef)arg0, arg1); |
1443 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1) |
| 1444 |
OS_NATIVE_EXIT(env, that, CGContextSetLineJoin_FUNC); |
1444 |
{ |
| 1445 |
} |
1445 |
OS_NATIVE_ENTER(env, that, CGContextSetFontSize_FUNC); |
| 1446 |
#endif |
1446 |
CGContextSetFontSize((CGContextRef)arg0, (float)arg1); |
| 1447 |
|
1447 |
OS_NATIVE_EXIT(env, that, CGContextSetFontSize_FUNC); |
| 1448 |
#ifndef NO_CGContextSetLineWidth |
1448 |
} |
| 1449 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetLineWidth) |
1449 |
#endif |
| 1450 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1) |
1450 |
|
| 1451 |
{ |
1451 |
#ifndef NO_CGContextSetInterpolationQuality |
| 1452 |
OS_NATIVE_ENTER(env, that, CGContextSetLineWidth_FUNC); |
1452 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetInterpolationQuality) |
| 1453 |
CGContextSetLineWidth((CGContextRef)arg0, (float)arg1); |
1453 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 1454 |
OS_NATIVE_EXIT(env, that, CGContextSetLineWidth_FUNC); |
1454 |
{ |
| 1455 |
} |
1455 |
OS_NATIVE_ENTER(env, that, CGContextSetInterpolationQuality_FUNC); |
| 1456 |
#endif |
1456 |
CGContextSetInterpolationQuality((CGContextRef)arg0, arg1); |
| 1457 |
|
1457 |
OS_NATIVE_EXIT(env, that, CGContextSetInterpolationQuality_FUNC); |
| 1458 |
#ifndef NO_CGContextSetRGBFillColor |
1458 |
} |
| 1459 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetRGBFillColor) |
1459 |
#endif |
| 1460 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2, jfloat arg3, jfloat arg4) |
1460 |
|
| 1461 |
{ |
1461 |
#ifndef NO_CGContextSetLineCap |
| 1462 |
OS_NATIVE_ENTER(env, that, CGContextSetRGBFillColor_FUNC); |
1462 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetLineCap) |
| 1463 |
CGContextSetRGBFillColor((CGContextRef)arg0, (float)arg1, (float)arg2, (float)arg3, (float)arg4); |
1463 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 1464 |
OS_NATIVE_EXIT(env, that, CGContextSetRGBFillColor_FUNC); |
1464 |
{ |
| 1465 |
} |
1465 |
OS_NATIVE_ENTER(env, that, CGContextSetLineCap_FUNC); |
| 1466 |
#endif |
1466 |
CGContextSetLineCap((CGContextRef)arg0, arg1); |
| 1467 |
|
1467 |
OS_NATIVE_EXIT(env, that, CGContextSetLineCap_FUNC); |
| 1468 |
#ifndef NO_CGContextSetRGBStrokeColor |
1468 |
} |
| 1469 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetRGBStrokeColor) |
1469 |
#endif |
| 1470 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2, jfloat arg3, jfloat arg4) |
1470 |
|
| 1471 |
{ |
1471 |
#ifndef NO_CGContextSetLineDash |
| 1472 |
OS_NATIVE_ENTER(env, that, CGContextSetRGBStrokeColor_FUNC); |
1472 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetLineDash) |
| 1473 |
CGContextSetRGBStrokeColor((CGContextRef)arg0, (float)arg1, (float)arg2, (float)arg3, (float)arg4); |
1473 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloatArray arg2, jint arg3) |
| 1474 |
OS_NATIVE_EXIT(env, that, CGContextSetRGBStrokeColor_FUNC); |
1474 |
{ |
| 1475 |
} |
1475 |
jfloat *lparg2=NULL; |
| 1476 |
#endif |
1476 |
OS_NATIVE_ENTER(env, that, CGContextSetLineDash_FUNC); |
| 1477 |
|
1477 |
if (arg2) if ((lparg2 = (*env)->GetFloatArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 1478 |
#ifndef NO_CGContextSetRenderingIntent |
1478 |
CGContextSetLineDash((CGContextRef)arg0, (float)arg1, (const float *)lparg2, (size_t)arg3); |
| 1479 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetRenderingIntent) |
1479 |
fail: |
| 1480 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
1480 |
if (arg2 && lparg2) (*env)->ReleaseFloatArrayElements(env, arg2, lparg2, 0); |
| 1481 |
{ |
1481 |
OS_NATIVE_EXIT(env, that, CGContextSetLineDash_FUNC); |
| 1482 |
OS_NATIVE_ENTER(env, that, CGContextSetRenderingIntent_FUNC); |
1482 |
} |
| 1483 |
CGContextSetRenderingIntent((CGContextRef)arg0, arg1); |
1483 |
#endif |
| 1484 |
OS_NATIVE_EXIT(env, that, CGContextSetRenderingIntent_FUNC); |
1484 |
|
| 1485 |
} |
1485 |
#ifndef NO_CGContextSetLineJoin |
| 1486 |
#endif |
1486 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetLineJoin) |
| 1487 |
|
1487 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 1488 |
#ifndef NO_CGContextSetShouldAntialias |
1488 |
{ |
| 1489 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetShouldAntialias) |
1489 |
OS_NATIVE_ENTER(env, that, CGContextSetLineJoin_FUNC); |
| 1490 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
1490 |
CGContextSetLineJoin((CGContextRef)arg0, arg1); |
| 1491 |
{ |
1491 |
OS_NATIVE_EXIT(env, that, CGContextSetLineJoin_FUNC); |
| 1492 |
OS_NATIVE_ENTER(env, that, CGContextSetShouldAntialias_FUNC); |
1492 |
} |
| 1493 |
CGContextSetShouldAntialias((CGContextRef)arg0, arg1); |
1493 |
#endif |
| 1494 |
OS_NATIVE_EXIT(env, that, CGContextSetShouldAntialias_FUNC); |
1494 |
|
| 1495 |
} |
1495 |
#ifndef NO_CGContextSetLineWidth |
| 1496 |
#endif |
1496 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetLineWidth) |
| 1497 |
|
1497 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1) |
| 1498 |
#ifndef NO_CGContextSetShouldSmoothFonts |
1498 |
{ |
| 1499 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetShouldSmoothFonts) |
1499 |
OS_NATIVE_ENTER(env, that, CGContextSetLineWidth_FUNC); |
| 1500 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
1500 |
CGContextSetLineWidth((CGContextRef)arg0, (float)arg1); |
| 1501 |
{ |
1501 |
OS_NATIVE_EXIT(env, that, CGContextSetLineWidth_FUNC); |
| 1502 |
OS_NATIVE_ENTER(env, that, CGContextSetShouldSmoothFonts_FUNC); |
1502 |
} |
| 1503 |
CGContextSetShouldSmoothFonts((CGContextRef)arg0, arg1); |
1503 |
#endif |
| 1504 |
OS_NATIVE_EXIT(env, that, CGContextSetShouldSmoothFonts_FUNC); |
1504 |
|
| 1505 |
} |
1505 |
#ifndef NO_CGContextSetRGBFillColor |
| 1506 |
#endif |
1506 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetRGBFillColor) |
| 1507 |
|
1507 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2, jfloat arg3, jfloat arg4) |
| 1508 |
#ifndef NO_CGContextSetStrokeColor |
1508 |
{ |
| 1509 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetStrokeColor) |
1509 |
OS_NATIVE_ENTER(env, that, CGContextSetRGBFillColor_FUNC); |
| 1510 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1) |
1510 |
CGContextSetRGBFillColor((CGContextRef)arg0, (float)arg1, (float)arg2, (float)arg3, (float)arg4); |
| 1511 |
{ |
1511 |
OS_NATIVE_EXIT(env, that, CGContextSetRGBFillColor_FUNC); |
| 1512 |
jfloat *lparg1=NULL; |
1512 |
} |
| 1513 |
OS_NATIVE_ENTER(env, that, CGContextSetStrokeColor_FUNC); |
1513 |
#endif |
| 1514 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
1514 |
|
| 1515 |
CGContextSetStrokeColor((CGContextRef)arg0, (const float *)lparg1); |
1515 |
#ifndef NO_CGContextSetRGBStrokeColor |
| 1516 |
fail: |
1516 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetRGBStrokeColor) |
| 1517 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
1517 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2, jfloat arg3, jfloat arg4) |
| 1518 |
OS_NATIVE_EXIT(env, that, CGContextSetStrokeColor_FUNC); |
1518 |
{ |
| 1519 |
} |
1519 |
OS_NATIVE_ENTER(env, that, CGContextSetRGBStrokeColor_FUNC); |
| 1520 |
#endif |
1520 |
CGContextSetRGBStrokeColor((CGContextRef)arg0, (float)arg1, (float)arg2, (float)arg3, (float)arg4); |
| 1521 |
|
1521 |
OS_NATIVE_EXIT(env, that, CGContextSetRGBStrokeColor_FUNC); |
| 1522 |
#ifndef NO_CGContextSetStrokeColorSpace |
1522 |
} |
| 1523 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetStrokeColorSpace) |
1523 |
#endif |
| 1524 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
1524 |
|
| 1525 |
{ |
1525 |
#ifndef NO_CGContextSetRenderingIntent |
| 1526 |
OS_NATIVE_ENTER(env, that, CGContextSetStrokeColorSpace_FUNC); |
1526 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetRenderingIntent) |
| 1527 |
CGContextSetStrokeColorSpace((CGContextRef)arg0, (CGColorSpaceRef)arg1); |
1527 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 1528 |
OS_NATIVE_EXIT(env, that, CGContextSetStrokeColorSpace_FUNC); |
1528 |
{ |
| 1529 |
} |
1529 |
OS_NATIVE_ENTER(env, that, CGContextSetRenderingIntent_FUNC); |
| 1530 |
#endif |
1530 |
CGContextSetRenderingIntent((CGContextRef)arg0, arg1); |
| 1531 |
|
1531 |
OS_NATIVE_EXIT(env, that, CGContextSetRenderingIntent_FUNC); |
| 1532 |
#ifndef NO_CGContextSetTextDrawingMode |
1532 |
} |
| 1533 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetTextDrawingMode) |
1533 |
#endif |
| 1534 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
1534 |
|
| 1535 |
{ |
1535 |
#ifndef NO_CGContextSetShouldAntialias |
| 1536 |
OS_NATIVE_ENTER(env, that, CGContextSetTextDrawingMode_FUNC); |
1536 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetShouldAntialias) |
| 1537 |
CGContextSetTextDrawingMode((CGContextRef)arg0, (CGTextDrawingMode)arg1); |
1537 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
| 1538 |
OS_NATIVE_EXIT(env, that, CGContextSetTextDrawingMode_FUNC); |
1538 |
{ |
| 1539 |
} |
1539 |
OS_NATIVE_ENTER(env, that, CGContextSetShouldAntialias_FUNC); |
| 1540 |
#endif |
1540 |
CGContextSetShouldAntialias((CGContextRef)arg0, arg1); |
| 1541 |
|
1541 |
OS_NATIVE_EXIT(env, that, CGContextSetShouldAntialias_FUNC); |
| 1542 |
#ifndef NO_CGContextSetTextMatrix |
1542 |
} |
| 1543 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetTextMatrix) |
1543 |
#endif |
| 1544 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1) |
1544 |
|
| 1545 |
{ |
1545 |
#ifndef NO_CGContextSetShouldSmoothFonts |
| 1546 |
jfloat *lparg1=NULL; |
1546 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetShouldSmoothFonts) |
| 1547 |
OS_NATIVE_ENTER(env, that, CGContextSetTextMatrix_FUNC); |
1547 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
| 1548 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
1548 |
{ |
| 1549 |
CGContextSetTextMatrix((CGContextRef)arg0, *(CGAffineTransform *)lparg1); |
1549 |
OS_NATIVE_ENTER(env, that, CGContextSetShouldSmoothFonts_FUNC); |
| 1550 |
fail: |
1550 |
CGContextSetShouldSmoothFonts((CGContextRef)arg0, arg1); |
| 1551 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
1551 |
OS_NATIVE_EXIT(env, that, CGContextSetShouldSmoothFonts_FUNC); |
| 1552 |
OS_NATIVE_EXIT(env, that, CGContextSetTextMatrix_FUNC); |
1552 |
} |
| 1553 |
} |
1553 |
#endif |
| 1554 |
#endif |
1554 |
|
| 1555 |
|
1555 |
#ifndef NO_CGContextSetStrokeColor |
| 1556 |
#ifndef NO_CGContextSetTextPosition |
1556 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetStrokeColor) |
| 1557 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetTextPosition) |
1557 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1) |
| 1558 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2) |
1558 |
{ |
| 1559 |
{ |
1559 |
jfloat *lparg1=NULL; |
| 1560 |
OS_NATIVE_ENTER(env, that, CGContextSetTextPosition_FUNC); |
1560 |
OS_NATIVE_ENTER(env, that, CGContextSetStrokeColor_FUNC); |
| 1561 |
CGContextSetTextPosition((CGContextRef)arg0, (float)arg1, (float)arg2); |
1561 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 1562 |
OS_NATIVE_EXIT(env, that, CGContextSetTextPosition_FUNC); |
1562 |
CGContextSetStrokeColor((CGContextRef)arg0, (const float *)lparg1); |
| 1563 |
} |
1563 |
fail: |
| 1564 |
#endif |
1564 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
| 1565 |
|
1565 |
OS_NATIVE_EXIT(env, that, CGContextSetStrokeColor_FUNC); |
| 1566 |
#ifndef NO_CGContextShowText |
1566 |
} |
| 1567 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextShowText) |
1567 |
#endif |
| 1568 |
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2) |
1568 |
|
| 1569 |
{ |
1569 |
#ifndef NO_CGContextSetStrokeColorSpace |
| 1570 |
jbyte *lparg1=NULL; |
1570 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetStrokeColorSpace) |
| 1571 |
OS_NATIVE_ENTER(env, that, CGContextShowText_FUNC); |
1571 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 1572 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
1572 |
{ |
| 1573 |
CGContextShowText((CGContextRef)arg0, (const char *)lparg1, (size_t)arg2); |
1573 |
OS_NATIVE_ENTER(env, that, CGContextSetStrokeColorSpace_FUNC); |
| 1574 |
fail: |
1574 |
CGContextSetStrokeColorSpace((CGContextRef)arg0, (CGColorSpaceRef)arg1); |
| 1575 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
1575 |
OS_NATIVE_EXIT(env, that, CGContextSetStrokeColorSpace_FUNC); |
| 1576 |
OS_NATIVE_EXIT(env, that, CGContextShowText_FUNC); |
1576 |
} |
| 1577 |
} |
1577 |
#endif |
| 1578 |
#endif |
1578 |
|
| 1579 |
|
1579 |
#ifndef NO_CGContextSetTextDrawingMode |
| 1580 |
#ifndef NO_CGContextShowTextAtPoint |
1580 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetTextDrawingMode) |
| 1581 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextShowTextAtPoint) |
1581 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 1582 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2, jbyteArray arg3, jint arg4) |
1582 |
{ |
| 1583 |
{ |
1583 |
OS_NATIVE_ENTER(env, that, CGContextSetTextDrawingMode_FUNC); |
| 1584 |
jbyte *lparg3=NULL; |
1584 |
CGContextSetTextDrawingMode((CGContextRef)arg0, (CGTextDrawingMode)arg1); |
| 1585 |
OS_NATIVE_ENTER(env, that, CGContextShowTextAtPoint_FUNC); |
1585 |
OS_NATIVE_EXIT(env, that, CGContextSetTextDrawingMode_FUNC); |
| 1586 |
if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail; |
1586 |
} |
| 1587 |
CGContextShowTextAtPoint((CGContextRef)arg0, (float)arg1, (float)arg2, (const char *)lparg3, (size_t)arg4); |
1587 |
#endif |
| 1588 |
fail: |
1588 |
|
| 1589 |
if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0); |
1589 |
#ifndef NO_CGContextSetTextMatrix |
| 1590 |
OS_NATIVE_EXIT(env, that, CGContextShowTextAtPoint_FUNC); |
1590 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetTextMatrix) |
| 1591 |
} |
1591 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1) |
| 1592 |
#endif |
1592 |
{ |
| 1593 |
|
1593 |
jfloat *lparg1=NULL; |
| 1594 |
#ifndef NO_CGContextStrokePath |
1594 |
OS_NATIVE_ENTER(env, that, CGContextSetTextMatrix_FUNC); |
| 1595 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextStrokePath) |
1595 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 1596 |
(JNIEnv *env, jclass that, jint arg0) |
1596 |
CGContextSetTextMatrix((CGContextRef)arg0, *(CGAffineTransform *)lparg1); |
| 1597 |
{ |
1597 |
fail: |
| 1598 |
OS_NATIVE_ENTER(env, that, CGContextStrokePath_FUNC); |
1598 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
| 1599 |
CGContextStrokePath((CGContextRef)arg0); |
1599 |
OS_NATIVE_EXIT(env, that, CGContextSetTextMatrix_FUNC); |
| 1600 |
OS_NATIVE_EXIT(env, that, CGContextStrokePath_FUNC); |
1600 |
} |
| 1601 |
} |
1601 |
#endif |
| 1602 |
#endif |
1602 |
|
| 1603 |
|
1603 |
#ifndef NO_CGContextSetTextPosition |
| 1604 |
#ifndef NO_CGContextStrokeRect |
1604 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSetTextPosition) |
| 1605 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextStrokeRect) |
1605 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2) |
| 1606 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
1606 |
{ |
| 1607 |
{ |
1607 |
OS_NATIVE_ENTER(env, that, CGContextSetTextPosition_FUNC); |
| 1608 |
CGRect _arg1, *lparg1=NULL; |
1608 |
CGContextSetTextPosition((CGContextRef)arg0, (float)arg1, (float)arg2); |
| 1609 |
OS_NATIVE_ENTER(env, that, CGContextStrokeRect_FUNC); |
1609 |
OS_NATIVE_EXIT(env, that, CGContextSetTextPosition_FUNC); |
| 1610 |
if (arg1) if ((lparg1 = getCGRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
1610 |
} |
| 1611 |
CGContextStrokeRect((CGContextRef)arg0, *(CGRect *)lparg1); |
1611 |
#endif |
| 1612 |
fail: |
1612 |
|
| 1613 |
if (arg1 && lparg1) setCGRectFields(env, arg1, lparg1); |
1613 |
#ifndef NO_CGContextShowText |
| 1614 |
OS_NATIVE_EXIT(env, that, CGContextStrokeRect_FUNC); |
1614 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextShowText) |
| 1615 |
} |
1615 |
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2) |
| 1616 |
#endif |
1616 |
{ |
| 1617 |
|
1617 |
jbyte *lparg1=NULL; |
| 1618 |
#ifndef NO_CGContextSynchronize |
1618 |
OS_NATIVE_ENTER(env, that, CGContextShowText_FUNC); |
| 1619 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSynchronize) |
1619 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 1620 |
(JNIEnv *env, jclass that, jint arg0) |
1620 |
CGContextShowText((CGContextRef)arg0, (const char *)lparg1, (size_t)arg2); |
| 1621 |
{ |
1621 |
fail: |
| 1622 |
OS_NATIVE_ENTER(env, that, CGContextSynchronize_FUNC); |
1622 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
| 1623 |
CGContextSynchronize((CGContextRef)arg0); |
1623 |
OS_NATIVE_EXIT(env, that, CGContextShowText_FUNC); |
| 1624 |
OS_NATIVE_EXIT(env, that, CGContextSynchronize_FUNC); |
1624 |
} |
| 1625 |
} |
1625 |
#endif |
| 1626 |
#endif |
1626 |
|
| 1627 |
|
1627 |
#ifndef NO_CGContextShowTextAtPoint |
| 1628 |
#ifndef NO_CGContextTranslateCTM |
1628 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextShowTextAtPoint) |
| 1629 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextTranslateCTM) |
1629 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2, jbyteArray arg3, jint arg4) |
| 1630 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2) |
1630 |
{ |
| 1631 |
{ |
1631 |
jbyte *lparg3=NULL; |
| 1632 |
OS_NATIVE_ENTER(env, that, CGContextTranslateCTM_FUNC); |
1632 |
OS_NATIVE_ENTER(env, that, CGContextShowTextAtPoint_FUNC); |
| 1633 |
CGContextTranslateCTM((CGContextRef)arg0, (float)arg1, (float)arg2); |
1633 |
if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 1634 |
OS_NATIVE_EXIT(env, that, CGContextTranslateCTM_FUNC); |
1634 |
CGContextShowTextAtPoint((CGContextRef)arg0, (float)arg1, (float)arg2, (const char *)lparg3, (size_t)arg4); |
| 1635 |
} |
1635 |
fail: |
| 1636 |
#endif |
1636 |
if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0); |
| 1637 |
|
1637 |
OS_NATIVE_EXIT(env, that, CGContextShowTextAtPoint_FUNC); |
| 1638 |
#ifndef NO_CGDataProviderCreateWithData |
1638 |
} |
| 1639 |
JNIEXPORT jint JNICALL OS_NATIVE(CGDataProviderCreateWithData) |
1639 |
#endif |
| 1640 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3) |
1640 |
|
| 1641 |
{ |
1641 |
#ifndef NO_CGContextStrokePath |
| 1642 |
jint rc = 0; |
1642 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextStrokePath) |
| 1643 |
OS_NATIVE_ENTER(env, that, CGDataProviderCreateWithData_FUNC); |
1643 |
(JNIEnv *env, jclass that, jint arg0) |
| 1644 |
rc = (jint)CGDataProviderCreateWithData((void *)arg0, (const void *)arg1, (size_t)arg2, (void *)arg3); |
1644 |
{ |
| 1645 |
OS_NATIVE_EXIT(env, that, CGDataProviderCreateWithData_FUNC); |
1645 |
OS_NATIVE_ENTER(env, that, CGContextStrokePath_FUNC); |
| 1646 |
return rc; |
1646 |
CGContextStrokePath((CGContextRef)arg0); |
| 1647 |
} |
1647 |
OS_NATIVE_EXIT(env, that, CGContextStrokePath_FUNC); |
| 1648 |
#endif |
1648 |
} |
| 1649 |
|
1649 |
#endif |
| 1650 |
#ifndef NO_CGDataProviderRelease |
1650 |
|
| 1651 |
JNIEXPORT void JNICALL OS_NATIVE(CGDataProviderRelease) |
1651 |
#ifndef NO_CGContextStrokeRect |
| 1652 |
(JNIEnv *env, jclass that, jint arg0) |
1652 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextStrokeRect) |
| 1653 |
{ |
1653 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 1654 |
OS_NATIVE_ENTER(env, that, CGDataProviderRelease_FUNC); |
1654 |
{ |
| 1655 |
CGDataProviderRelease((CGDataProviderRef)arg0); |
1655 |
CGRect _arg1, *lparg1=NULL; |
| 1656 |
OS_NATIVE_EXIT(env, that, CGDataProviderRelease_FUNC); |
1656 |
OS_NATIVE_ENTER(env, that, CGContextStrokeRect_FUNC); |
| 1657 |
} |
1657 |
if (arg1) if ((lparg1 = getCGRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 1658 |
#endif |
1658 |
CGContextStrokeRect((CGContextRef)arg0, *(CGRect *)lparg1); |
| 1659 |
|
1659 |
fail: |
| 1660 |
#ifndef NO_CGDisplayBaseAddress |
1660 |
if (arg1 && lparg1) setCGRectFields(env, arg1, lparg1); |
| 1661 |
JNIEXPORT jint JNICALL OS_NATIVE(CGDisplayBaseAddress) |
1661 |
OS_NATIVE_EXIT(env, that, CGContextStrokeRect_FUNC); |
| 1662 |
(JNIEnv *env, jclass that, jint arg0) |
1662 |
} |
| 1663 |
{ |
1663 |
#endif |
| 1664 |
jint rc = 0; |
1664 |
|
| 1665 |
OS_NATIVE_ENTER(env, that, CGDisplayBaseAddress_FUNC); |
1665 |
#ifndef NO_CGContextSynchronize |
| 1666 |
rc = (jint)CGDisplayBaseAddress((CGDirectDisplayID)arg0); |
1666 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextSynchronize) |
| 1667 |
OS_NATIVE_EXIT(env, that, CGDisplayBaseAddress_FUNC); |
1667 |
(JNIEnv *env, jclass that, jint arg0) |
| 1668 |
return rc; |
1668 |
{ |
| 1669 |
} |
1669 |
OS_NATIVE_ENTER(env, that, CGContextSynchronize_FUNC); |
| 1670 |
#endif |
1670 |
CGContextSynchronize((CGContextRef)arg0); |
| 1671 |
|
1671 |
OS_NATIVE_EXIT(env, that, CGContextSynchronize_FUNC); |
| 1672 |
#ifndef NO_CGDisplayBitsPerPixel |
1672 |
} |
| 1673 |
JNIEXPORT jint JNICALL OS_NATIVE(CGDisplayBitsPerPixel) |
1673 |
#endif |
| 1674 |
(JNIEnv *env, jclass that, jint arg0) |
1674 |
|
| 1675 |
{ |
1675 |
#ifndef NO_CGContextTranslateCTM |
| 1676 |
jint rc = 0; |
1676 |
JNIEXPORT void JNICALL OS_NATIVE(CGContextTranslateCTM) |
| 1677 |
OS_NATIVE_ENTER(env, that, CGDisplayBitsPerPixel_FUNC); |
1677 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2) |
| 1678 |
rc = (jint)CGDisplayBitsPerPixel((CGDirectDisplayID)arg0); |
1678 |
{ |
| 1679 |
OS_NATIVE_EXIT(env, that, CGDisplayBitsPerPixel_FUNC); |
1679 |
OS_NATIVE_ENTER(env, that, CGContextTranslateCTM_FUNC); |
| 1680 |
return rc; |
1680 |
CGContextTranslateCTM((CGContextRef)arg0, (float)arg1, (float)arg2); |
| 1681 |
} |
1681 |
OS_NATIVE_EXIT(env, that, CGContextTranslateCTM_FUNC); |
| 1682 |
#endif |
1682 |
} |
| 1683 |
|
1683 |
#endif |
| 1684 |
#ifndef NO_CGDisplayBitsPerSample |
1684 |
|
| 1685 |
JNIEXPORT jint JNICALL OS_NATIVE(CGDisplayBitsPerSample) |
1685 |
#ifndef NO_CGDataProviderCreateWithData |
| 1686 |
(JNIEnv *env, jclass that, jint arg0) |
1686 |
JNIEXPORT jint JNICALL OS_NATIVE(CGDataProviderCreateWithData) |
| 1687 |
{ |
1687 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3) |
| 1688 |
jint rc = 0; |
1688 |
{ |
| 1689 |
OS_NATIVE_ENTER(env, that, CGDisplayBitsPerSample_FUNC); |
1689 |
jint rc = 0; |
| 1690 |
rc = (jint)CGDisplayBitsPerSample((CGDirectDisplayID)arg0); |
1690 |
OS_NATIVE_ENTER(env, that, CGDataProviderCreateWithData_FUNC); |
| 1691 |
OS_NATIVE_EXIT(env, that, CGDisplayBitsPerSample_FUNC); |
1691 |
rc = (jint)CGDataProviderCreateWithData((void *)arg0, (const void *)arg1, (size_t)arg2, (void *)arg3); |
| 1692 |
return rc; |
1692 |
OS_NATIVE_EXIT(env, that, CGDataProviderCreateWithData_FUNC); |
| 1693 |
} |
1693 |
return rc; |
| 1694 |
#endif |
1694 |
} |
| 1695 |
|
1695 |
#endif |
| 1696 |
#ifndef NO_CGDisplayBytesPerRow |
1696 |
|
| 1697 |
JNIEXPORT jint JNICALL OS_NATIVE(CGDisplayBytesPerRow) |
1697 |
#ifndef NO_CGDataProviderRelease |
| 1698 |
(JNIEnv *env, jclass that, jint arg0) |
1698 |
JNIEXPORT void JNICALL OS_NATIVE(CGDataProviderRelease) |
| 1699 |
{ |
1699 |
(JNIEnv *env, jclass that, jint arg0) |
| 1700 |
jint rc = 0; |
1700 |
{ |
| 1701 |
OS_NATIVE_ENTER(env, that, CGDisplayBytesPerRow_FUNC); |
1701 |
OS_NATIVE_ENTER(env, that, CGDataProviderRelease_FUNC); |
| 1702 |
rc = (jint)CGDisplayBytesPerRow((CGDirectDisplayID)arg0); |
1702 |
CGDataProviderRelease((CGDataProviderRef)arg0); |
| 1703 |
OS_NATIVE_EXIT(env, that, CGDisplayBytesPerRow_FUNC); |
1703 |
OS_NATIVE_EXIT(env, that, CGDataProviderRelease_FUNC); |
| 1704 |
return rc; |
1704 |
} |
| 1705 |
} |
1705 |
#endif |
| 1706 |
#endif |
1706 |
|
| 1707 |
|
1707 |
#ifndef NO_CGDisplayBaseAddress |
| 1708 |
#ifndef NO_CGDisplayPixelsHigh |
1708 |
JNIEXPORT jint JNICALL OS_NATIVE(CGDisplayBaseAddress) |
| 1709 |
JNIEXPORT jint JNICALL OS_NATIVE(CGDisplayPixelsHigh) |
1709 |
(JNIEnv *env, jclass that, jint arg0) |
| 1710 |
(JNIEnv *env, jclass that, jint arg0) |
1710 |
{ |
| 1711 |
{ |
1711 |
jint rc = 0; |
| 1712 |
jint rc = 0; |
1712 |
OS_NATIVE_ENTER(env, that, CGDisplayBaseAddress_FUNC); |
| 1713 |
OS_NATIVE_ENTER(env, that, CGDisplayPixelsHigh_FUNC); |
1713 |
rc = (jint)CGDisplayBaseAddress((CGDirectDisplayID)arg0); |
| 1714 |
rc = (jint)CGDisplayPixelsHigh((CGDirectDisplayID)arg0); |
1714 |
OS_NATIVE_EXIT(env, that, CGDisplayBaseAddress_FUNC); |
| 1715 |
OS_NATIVE_EXIT(env, that, CGDisplayPixelsHigh_FUNC); |
1715 |
return rc; |
| 1716 |
return rc; |
1716 |
} |
| 1717 |
} |
1717 |
#endif |
| 1718 |
#endif |
1718 |
|
| 1719 |
|
1719 |
#ifndef NO_CGDisplayBitsPerPixel |
| 1720 |
#ifndef NO_CGDisplayPixelsWide |
1720 |
JNIEXPORT jint JNICALL OS_NATIVE(CGDisplayBitsPerPixel) |
| 1721 |
JNIEXPORT jint JNICALL OS_NATIVE(CGDisplayPixelsWide) |
1721 |
(JNIEnv *env, jclass that, jint arg0) |
| 1722 |
(JNIEnv *env, jclass that, jint arg0) |
1722 |
{ |
| 1723 |
{ |
1723 |
jint rc = 0; |
| 1724 |
jint rc = 0; |
1724 |
OS_NATIVE_ENTER(env, that, CGDisplayBitsPerPixel_FUNC); |
| 1725 |
OS_NATIVE_ENTER(env, that, CGDisplayPixelsWide_FUNC); |
1725 |
rc = (jint)CGDisplayBitsPerPixel((CGDirectDisplayID)arg0); |
| 1726 |
rc = (jint)CGDisplayPixelsWide((CGDirectDisplayID)arg0); |
1726 |
OS_NATIVE_EXIT(env, that, CGDisplayBitsPerPixel_FUNC); |
| 1727 |
OS_NATIVE_EXIT(env, that, CGDisplayPixelsWide_FUNC); |
1727 |
return rc; |
| 1728 |
return rc; |
1728 |
} |
| 1729 |
} |
1729 |
#endif |
| 1730 |
#endif |
1730 |
|
| 1731 |
|
1731 |
#ifndef NO_CGDisplayBitsPerSample |
| 1732 |
#ifndef NO_CGFontCreateWithPlatformFont |
1732 |
JNIEXPORT jint JNICALL OS_NATIVE(CGDisplayBitsPerSample) |
| 1733 |
JNIEXPORT jint JNICALL OS_NATIVE(CGFontCreateWithPlatformFont) |
1733 |
(JNIEnv *env, jclass that, jint arg0) |
| 1734 |
(JNIEnv *env, jclass that, jintArray arg0) |
1734 |
{ |
| 1735 |
{ |
1735 |
jint rc = 0; |
| 1736 |
jint *lparg0=NULL; |
1736 |
OS_NATIVE_ENTER(env, that, CGDisplayBitsPerSample_FUNC); |
| 1737 |
jint rc = 0; |
1737 |
rc = (jint)CGDisplayBitsPerSample((CGDirectDisplayID)arg0); |
| 1738 |
OS_NATIVE_ENTER(env, that, CGFontCreateWithPlatformFont_FUNC); |
1738 |
OS_NATIVE_EXIT(env, that, CGDisplayBitsPerSample_FUNC); |
| 1739 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
1739 |
return rc; |
| 1740 |
rc = (jint)CGFontCreateWithPlatformFont(lparg0); |
1740 |
} |
| 1741 |
fail: |
1741 |
#endif |
| 1742 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
1742 |
|
| 1743 |
OS_NATIVE_EXIT(env, that, CGFontCreateWithPlatformFont_FUNC); |
1743 |
#ifndef NO_CGDisplayBytesPerRow |
| 1744 |
return rc; |
1744 |
JNIEXPORT jint JNICALL OS_NATIVE(CGDisplayBytesPerRow) |
| 1745 |
} |
1745 |
(JNIEnv *env, jclass that, jint arg0) |
| 1746 |
#endif |
1746 |
{ |
| 1747 |
|
1747 |
jint rc = 0; |
| 1748 |
#ifndef NO_CGFontRelease |
1748 |
OS_NATIVE_ENTER(env, that, CGDisplayBytesPerRow_FUNC); |
| 1749 |
JNIEXPORT void JNICALL OS_NATIVE(CGFontRelease) |
1749 |
rc = (jint)CGDisplayBytesPerRow((CGDirectDisplayID)arg0); |
| 1750 |
(JNIEnv *env, jclass that, jint arg0) |
1750 |
OS_NATIVE_EXIT(env, that, CGDisplayBytesPerRow_FUNC); |
| 1751 |
{ |
1751 |
return rc; |
| 1752 |
OS_NATIVE_ENTER(env, that, CGFontRelease_FUNC); |
1752 |
} |
| 1753 |
CGFontRelease((CGFontRef)arg0); |
1753 |
#endif |
| 1754 |
OS_NATIVE_EXIT(env, that, CGFontRelease_FUNC); |
1754 |
|
| 1755 |
} |
1755 |
#ifndef NO_CGDisplayPixelsHigh |
| 1756 |
#endif |
1756 |
JNIEXPORT jint JNICALL OS_NATIVE(CGDisplayPixelsHigh) |
| 1757 |
|
1757 |
(JNIEnv *env, jclass that, jint arg0) |
| 1758 |
#ifndef NO_CGGetDisplaysWithRect |
1758 |
{ |
| 1759 |
JNIEXPORT jint JNICALL OS_NATIVE(CGGetDisplaysWithRect) |
1759 |
jint rc = 0; |
| 1760 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jintArray arg2, jintArray arg3) |
1760 |
OS_NATIVE_ENTER(env, that, CGDisplayPixelsHigh_FUNC); |
| 1761 |
{ |
1761 |
rc = (jint)CGDisplayPixelsHigh((CGDirectDisplayID)arg0); |
| 1762 |
CGRect _arg0, *lparg0=NULL; |
1762 |
OS_NATIVE_EXIT(env, that, CGDisplayPixelsHigh_FUNC); |
| 1763 |
jint *lparg2=NULL; |
1763 |
return rc; |
| 1764 |
jint *lparg3=NULL; |
1764 |
} |
| 1765 |
jint rc = 0; |
1765 |
#endif |
| 1766 |
OS_NATIVE_ENTER(env, that, CGGetDisplaysWithRect_FUNC); |
1766 |
|
| 1767 |
if (arg0) if ((lparg0 = getCGRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
1767 |
#ifndef NO_CGDisplayPixelsWide |
| 1768 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
1768 |
JNIEXPORT jint JNICALL OS_NATIVE(CGDisplayPixelsWide) |
| 1769 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
1769 |
(JNIEnv *env, jclass that, jint arg0) |
| 1770 |
rc = (jint)CGGetDisplaysWithRect(*lparg0, (CGDisplayCount)arg1, (CGDirectDisplayID *)lparg2, (CGDisplayCount *)lparg3); |
1770 |
{ |
| 1771 |
fail: |
1771 |
jint rc = 0; |
| 1772 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
1772 |
OS_NATIVE_ENTER(env, that, CGDisplayPixelsWide_FUNC); |
| 1773 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
1773 |
rc = (jint)CGDisplayPixelsWide((CGDirectDisplayID)arg0); |
| 1774 |
if (arg0 && lparg0) setCGRectFields(env, arg0, lparg0); |
1774 |
OS_NATIVE_EXIT(env, that, CGDisplayPixelsWide_FUNC); |
| 1775 |
OS_NATIVE_EXIT(env, that, CGGetDisplaysWithRect_FUNC); |
1775 |
return rc; |
| 1776 |
return rc; |
1776 |
} |
| 1777 |
} |
1777 |
#endif |
| 1778 |
#endif |
1778 |
|
| 1779 |
|
1779 |
#ifndef NO_CGFontCreateWithPlatformFont |
| 1780 |
#ifndef NO_CGImageCreate |
1780 |
JNIEXPORT jint JNICALL OS_NATIVE(CGFontCreateWithPlatformFont) |
| 1781 |
JNIEXPORT jint JNICALL OS_NATIVE(CGImageCreate) |
1781 |
(JNIEnv *env, jclass that, jintArray arg0) |
| 1782 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6, jint arg7, jfloatArray arg8, jboolean arg9, jint arg10) |
1782 |
{ |
| 1783 |
{ |
1783 |
jint *lparg0=NULL; |
| 1784 |
jfloat *lparg8=NULL; |
1784 |
jint rc = 0; |
| 1785 |
jint rc = 0; |
1785 |
OS_NATIVE_ENTER(env, that, CGFontCreateWithPlatformFont_FUNC); |
| 1786 |
OS_NATIVE_ENTER(env, that, CGImageCreate_FUNC); |
1786 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 1787 |
if (arg8) if ((lparg8 = (*env)->GetFloatArrayElements(env, arg8, NULL)) == NULL) goto fail; |
1787 |
rc = (jint)CGFontCreateWithPlatformFont(lparg0); |
| 1788 |
rc = (jint)CGImageCreate((size_t)arg0, (size_t)arg1, (size_t)arg2, (size_t)arg3, (size_t)arg4, (CGColorSpaceRef)arg5, (CGImageAlphaInfo)arg6, (CGDataProviderRef)arg7, (const float *)lparg8, (Boolean)arg9, (CGColorRenderingIntent)arg10); |
1788 |
fail: |
| 1789 |
fail: |
1789 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 1790 |
if (arg8 && lparg8) (*env)->ReleaseFloatArrayElements(env, arg8, lparg8, 0); |
1790 |
OS_NATIVE_EXIT(env, that, CGFontCreateWithPlatformFont_FUNC); |
| 1791 |
OS_NATIVE_EXIT(env, that, CGImageCreate_FUNC); |
1791 |
return rc; |
| 1792 |
return rc; |
1792 |
} |
| 1793 |
} |
1793 |
#endif |
| 1794 |
#endif |
1794 |
|
| 1795 |
|
1795 |
#ifndef NO_CGFontRelease |
| 1796 |
#ifndef NO_CGImageGetAlphaInfo |
1796 |
JNIEXPORT void JNICALL OS_NATIVE(CGFontRelease) |
| 1797 |
JNIEXPORT jint JNICALL OS_NATIVE(CGImageGetAlphaInfo) |
1797 |
(JNIEnv *env, jclass that, jint arg0) |
| 1798 |
(JNIEnv *env, jclass that, jint arg0) |
1798 |
{ |
| 1799 |
{ |
1799 |
OS_NATIVE_ENTER(env, that, CGFontRelease_FUNC); |
| 1800 |
jint rc = 0; |
1800 |
CGFontRelease((CGFontRef)arg0); |
| 1801 |
OS_NATIVE_ENTER(env, that, CGImageGetAlphaInfo_FUNC); |
1801 |
OS_NATIVE_EXIT(env, that, CGFontRelease_FUNC); |
| 1802 |
rc = (jint)CGImageGetAlphaInfo((CGImageRef)arg0); |
1802 |
} |
| 1803 |
OS_NATIVE_EXIT(env, that, CGImageGetAlphaInfo_FUNC); |
1803 |
#endif |
| 1804 |
return rc; |
1804 |
|
| 1805 |
} |
1805 |
#ifndef NO_CGGetDisplaysWithRect |
| 1806 |
#endif |
1806 |
JNIEXPORT jint JNICALL OS_NATIVE(CGGetDisplaysWithRect) |
| 1807 |
|
1807 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jintArray arg2, jintArray arg3) |
| 1808 |
#ifndef NO_CGImageGetBitsPerComponent |
1808 |
{ |
| 1809 |
JNIEXPORT jint JNICALL OS_NATIVE(CGImageGetBitsPerComponent) |
1809 |
CGRect _arg0, *lparg0=NULL; |
| 1810 |
(JNIEnv *env, jclass that, jint arg0) |
1810 |
jint *lparg2=NULL; |
| 1811 |
{ |
1811 |
jint *lparg3=NULL; |
| 1812 |
jint rc = 0; |
1812 |
jint rc = 0; |
| 1813 |
OS_NATIVE_ENTER(env, that, CGImageGetBitsPerComponent_FUNC); |
1813 |
OS_NATIVE_ENTER(env, that, CGGetDisplaysWithRect_FUNC); |
| 1814 |
rc = (jint)CGImageGetBitsPerComponent((CGImageRef)arg0); |
1814 |
if (arg0) if ((lparg0 = getCGRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 1815 |
OS_NATIVE_EXIT(env, that, CGImageGetBitsPerComponent_FUNC); |
1815 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 1816 |
return rc; |
1816 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 1817 |
} |
1817 |
rc = (jint)CGGetDisplaysWithRect(*lparg0, (CGDisplayCount)arg1, (CGDirectDisplayID *)lparg2, (CGDisplayCount *)lparg3); |
| 1818 |
#endif |
1818 |
fail: |
| 1819 |
|
1819 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 1820 |
#ifndef NO_CGImageGetBitsPerPixel |
1820 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 1821 |
JNIEXPORT jint JNICALL OS_NATIVE(CGImageGetBitsPerPixel) |
1821 |
if (arg0 && lparg0) setCGRectFields(env, arg0, lparg0); |
| 1822 |
(JNIEnv *env, jclass that, jint arg0) |
1822 |
OS_NATIVE_EXIT(env, that, CGGetDisplaysWithRect_FUNC); |
| 1823 |
{ |
1823 |
return rc; |
| 1824 |
jint rc = 0; |
1824 |
} |
| 1825 |
OS_NATIVE_ENTER(env, that, CGImageGetBitsPerPixel_FUNC); |
1825 |
#endif |
| 1826 |
rc = (jint)CGImageGetBitsPerPixel((CGImageRef)arg0); |
1826 |
|
| 1827 |
OS_NATIVE_EXIT(env, that, CGImageGetBitsPerPixel_FUNC); |
1827 |
#ifndef NO_CGImageCreate |
| 1828 |
return rc; |
1828 |
JNIEXPORT jint JNICALL OS_NATIVE(CGImageCreate) |
| 1829 |
} |
1829 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jint arg6, jint arg7, jfloatArray arg8, jboolean arg9, jint arg10) |
| 1830 |
#endif |
1830 |
{ |
| 1831 |
|
1831 |
jfloat *lparg8=NULL; |
| 1832 |
#ifndef NO_CGImageGetBytesPerRow |
1832 |
jint rc = 0; |
| 1833 |
JNIEXPORT jint JNICALL OS_NATIVE(CGImageGetBytesPerRow) |
1833 |
OS_NATIVE_ENTER(env, that, CGImageCreate_FUNC); |
| 1834 |
(JNIEnv *env, jclass that, jint arg0) |
1834 |
if (arg8) if ((lparg8 = (*env)->GetFloatArrayElements(env, arg8, NULL)) == NULL) goto fail; |
| 1835 |
{ |
1835 |
rc = (jint)CGImageCreate((size_t)arg0, (size_t)arg1, (size_t)arg2, (size_t)arg3, (size_t)arg4, (CGColorSpaceRef)arg5, (CGImageAlphaInfo)arg6, (CGDataProviderRef)arg7, (const float *)lparg8, (Boolean)arg9, (CGColorRenderingIntent)arg10); |
| 1836 |
jint rc = 0; |
1836 |
fail: |
| 1837 |
OS_NATIVE_ENTER(env, that, CGImageGetBytesPerRow_FUNC); |
1837 |
if (arg8 && lparg8) (*env)->ReleaseFloatArrayElements(env, arg8, lparg8, 0); |
| 1838 |
rc = (jint)CGImageGetBytesPerRow((CGImageRef)arg0); |
1838 |
OS_NATIVE_EXIT(env, that, CGImageCreate_FUNC); |
| 1839 |
OS_NATIVE_EXIT(env, that, CGImageGetBytesPerRow_FUNC); |
1839 |
return rc; |
| 1840 |
return rc; |
1840 |
} |
| 1841 |
} |
1841 |
#endif |
| 1842 |
#endif |
1842 |
|
| 1843 |
|
1843 |
#ifndef NO_CGImageGetAlphaInfo |
| 1844 |
#ifndef NO_CGImageGetColorSpace |
1844 |
JNIEXPORT jint JNICALL OS_NATIVE(CGImageGetAlphaInfo) |
| 1845 |
JNIEXPORT jint JNICALL OS_NATIVE(CGImageGetColorSpace) |
1845 |
(JNIEnv *env, jclass that, jint arg0) |
| 1846 |
(JNIEnv *env, jclass that, jint arg0) |
1846 |
{ |
| 1847 |
{ |
1847 |
jint rc = 0; |
| 1848 |
jint rc = 0; |
1848 |
OS_NATIVE_ENTER(env, that, CGImageGetAlphaInfo_FUNC); |
| 1849 |
OS_NATIVE_ENTER(env, that, CGImageGetColorSpace_FUNC); |
1849 |
rc = (jint)CGImageGetAlphaInfo((CGImageRef)arg0); |
| 1850 |
rc = (jint)CGImageGetColorSpace((CGImageRef)arg0); |
1850 |
OS_NATIVE_EXIT(env, that, CGImageGetAlphaInfo_FUNC); |
| 1851 |
OS_NATIVE_EXIT(env, that, CGImageGetColorSpace_FUNC); |
1851 |
return rc; |
| 1852 |
return rc; |
1852 |
} |
| 1853 |
} |
1853 |
#endif |
| 1854 |
#endif |
1854 |
|
| 1855 |
|
1855 |
#ifndef NO_CGImageGetBitsPerComponent |
| 1856 |
#ifndef NO_CGImageGetHeight |
1856 |
JNIEXPORT jint JNICALL OS_NATIVE(CGImageGetBitsPerComponent) |
| 1857 |
JNIEXPORT jint JNICALL OS_NATIVE(CGImageGetHeight) |
1857 |
(JNIEnv *env, jclass that, jint arg0) |
| 1858 |
(JNIEnv *env, jclass that, jint arg0) |
1858 |
{ |
| 1859 |
{ |
1859 |
jint rc = 0; |
| 1860 |
jint rc = 0; |
1860 |
OS_NATIVE_ENTER(env, that, CGImageGetBitsPerComponent_FUNC); |
| 1861 |
OS_NATIVE_ENTER(env, that, CGImageGetHeight_FUNC); |
1861 |
rc = (jint)CGImageGetBitsPerComponent((CGImageRef)arg0); |
| 1862 |
rc = (jint)CGImageGetHeight((CGImageRef)arg0); |
1862 |
OS_NATIVE_EXIT(env, that, CGImageGetBitsPerComponent_FUNC); |
| 1863 |
OS_NATIVE_EXIT(env, that, CGImageGetHeight_FUNC); |
1863 |
return rc; |
| 1864 |
return rc; |
1864 |
} |
| 1865 |
} |
1865 |
#endif |
| 1866 |
#endif |
1866 |
|
| 1867 |
|
1867 |
#ifndef NO_CGImageGetBitsPerPixel |
| 1868 |
#ifndef NO_CGImageGetWidth |
1868 |
JNIEXPORT jint JNICALL OS_NATIVE(CGImageGetBitsPerPixel) |
| 1869 |
JNIEXPORT jint JNICALL OS_NATIVE(CGImageGetWidth) |
1869 |
(JNIEnv *env, jclass that, jint arg0) |
| 1870 |
(JNIEnv *env, jclass that, jint arg0) |
1870 |
{ |
| 1871 |
{ |
1871 |
jint rc = 0; |
| 1872 |
jint rc = 0; |
1872 |
OS_NATIVE_ENTER(env, that, CGImageGetBitsPerPixel_FUNC); |
| 1873 |
OS_NATIVE_ENTER(env, that, CGImageGetWidth_FUNC); |
1873 |
rc = (jint)CGImageGetBitsPerPixel((CGImageRef)arg0); |
| 1874 |
rc = (jint)CGImageGetWidth((CGImageRef)arg0); |
1874 |
OS_NATIVE_EXIT(env, that, CGImageGetBitsPerPixel_FUNC); |
| 1875 |
OS_NATIVE_EXIT(env, that, CGImageGetWidth_FUNC); |
1875 |
return rc; |
| 1876 |
return rc; |
1876 |
} |
| 1877 |
} |
1877 |
#endif |
| 1878 |
#endif |
1878 |
|
| 1879 |
|
1879 |
#ifndef NO_CGImageGetBytesPerRow |
| 1880 |
#ifndef NO_CGImageRelease |
1880 |
JNIEXPORT jint JNICALL OS_NATIVE(CGImageGetBytesPerRow) |
| 1881 |
JNIEXPORT void JNICALL OS_NATIVE(CGImageRelease) |
1881 |
(JNIEnv *env, jclass that, jint arg0) |
| 1882 |
(JNIEnv *env, jclass that, jint arg0) |
1882 |
{ |
| 1883 |
{ |
1883 |
jint rc = 0; |
| 1884 |
OS_NATIVE_ENTER(env, that, CGImageRelease_FUNC); |
1884 |
OS_NATIVE_ENTER(env, that, CGImageGetBytesPerRow_FUNC); |
| 1885 |
CGImageRelease((CGImageRef)arg0); |
1885 |
rc = (jint)CGImageGetBytesPerRow((CGImageRef)arg0); |
| 1886 |
OS_NATIVE_EXIT(env, that, CGImageRelease_FUNC); |
1886 |
OS_NATIVE_EXIT(env, that, CGImageGetBytesPerRow_FUNC); |
| 1887 |
} |
1887 |
return rc; |
| 1888 |
#endif |
1888 |
} |
| 1889 |
|
1889 |
#endif |
| 1890 |
#ifndef NO_CGPathAddArc |
1890 |
|
| 1891 |
JNIEXPORT void JNICALL OS_NATIVE(CGPathAddArc) |
1891 |
#ifndef NO_CGImageGetColorSpace |
| 1892 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1, jfloat arg2, jfloat arg3, jfloat arg4, jfloat arg5, jfloat arg6, jboolean arg7) |
1892 |
JNIEXPORT jint JNICALL OS_NATIVE(CGImageGetColorSpace) |
| 1893 |
{ |
1893 |
(JNIEnv *env, jclass that, jint arg0) |
| 1894 |
jfloat *lparg1=NULL; |
1894 |
{ |
| 1895 |
OS_NATIVE_ENTER(env, that, CGPathAddArc_FUNC); |
1895 |
jint rc = 0; |
| 1896 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
1896 |
OS_NATIVE_ENTER(env, that, CGImageGetColorSpace_FUNC); |
| 1897 |
CGPathAddArc((CGMutablePathRef)arg0, (const CGAffineTransform *)lparg1, arg2, arg3, arg4, arg5, arg6, arg7); |
1897 |
rc = (jint)CGImageGetColorSpace((CGImageRef)arg0); |
| 1898 |
fail: |
1898 |
OS_NATIVE_EXIT(env, that, CGImageGetColorSpace_FUNC); |
| 1899 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
1899 |
return rc; |
| 1900 |
OS_NATIVE_EXIT(env, that, CGPathAddArc_FUNC); |
1900 |
} |
| 1901 |
} |
1901 |
#endif |
| 1902 |
#endif |
1902 |
|
| 1903 |
|
1903 |
#ifndef NO_CGImageGetHeight |
| 1904 |
#ifndef NO_CGPathAddCurveToPoint |
1904 |
JNIEXPORT jint JNICALL OS_NATIVE(CGImageGetHeight) |
| 1905 |
JNIEXPORT void JNICALL OS_NATIVE(CGPathAddCurveToPoint) |
1905 |
(JNIEnv *env, jclass that, jint arg0) |
| 1906 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1, jfloat arg2, jfloat arg3, jfloat arg4, jfloat arg5, jfloat arg6, jfloat arg7) |
1906 |
{ |
| 1907 |
{ |
1907 |
jint rc = 0; |
| 1908 |
jfloat *lparg1=NULL; |
1908 |
OS_NATIVE_ENTER(env, that, CGImageGetHeight_FUNC); |
| 1909 |
OS_NATIVE_ENTER(env, that, CGPathAddCurveToPoint_FUNC); |
1909 |
rc = (jint)CGImageGetHeight((CGImageRef)arg0); |
| 1910 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
1910 |
OS_NATIVE_EXIT(env, that, CGImageGetHeight_FUNC); |
| 1911 |
CGPathAddCurveToPoint((CGMutablePathRef)arg0, (const CGAffineTransform *)lparg1, arg2, arg3, arg4, arg5, arg6, arg7); |
1911 |
return rc; |
| 1912 |
fail: |
1912 |
} |
| 1913 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
1913 |
#endif |
| 1914 |
OS_NATIVE_EXIT(env, that, CGPathAddCurveToPoint_FUNC); |
1914 |
|
| 1915 |
} |
1915 |
#ifndef NO_CGImageGetWidth |
| 1916 |
#endif |
1916 |
JNIEXPORT jint JNICALL OS_NATIVE(CGImageGetWidth) |
| 1917 |
|
1917 |
(JNIEnv *env, jclass that, jint arg0) |
| 1918 |
#ifndef NO_CGPathAddLineToPoint |
1918 |
{ |
| 1919 |
JNIEXPORT void JNICALL OS_NATIVE(CGPathAddLineToPoint) |
1919 |
jint rc = 0; |
| 1920 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1, jfloat arg2, jfloat arg3) |
1920 |
OS_NATIVE_ENTER(env, that, CGImageGetWidth_FUNC); |
| 1921 |
{ |
1921 |
rc = (jint)CGImageGetWidth((CGImageRef)arg0); |
| 1922 |
jfloat *lparg1=NULL; |
1922 |
OS_NATIVE_EXIT(env, that, CGImageGetWidth_FUNC); |
| 1923 |
OS_NATIVE_ENTER(env, that, CGPathAddLineToPoint_FUNC); |
1923 |
return rc; |
| 1924 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
1924 |
} |
| 1925 |
CGPathAddLineToPoint((CGMutablePathRef)arg0, (const CGAffineTransform *)lparg1, arg2, arg3); |
1925 |
#endif |
| 1926 |
fail: |
1926 |
|
| 1927 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
1927 |
#ifndef NO_CGImageRelease |
| 1928 |
OS_NATIVE_EXIT(env, that, CGPathAddLineToPoint_FUNC); |
1928 |
JNIEXPORT void JNICALL OS_NATIVE(CGImageRelease) |
| 1929 |
} |
1929 |
(JNIEnv *env, jclass that, jint arg0) |
| 1930 |
#endif |
1930 |
{ |
| 1931 |
|
1931 |
OS_NATIVE_ENTER(env, that, CGImageRelease_FUNC); |
| 1932 |
#ifndef NO_CGPathAddPath |
1932 |
CGImageRelease((CGImageRef)arg0); |
| 1933 |
JNIEXPORT void JNICALL OS_NATIVE(CGPathAddPath) |
1933 |
OS_NATIVE_EXIT(env, that, CGImageRelease_FUNC); |
| 1934 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1, jint arg2) |
1934 |
} |
| 1935 |
{ |
1935 |
#endif |
| 1936 |
jfloat *lparg1=NULL; |
1936 |
|
| 1937 |
OS_NATIVE_ENTER(env, that, CGPathAddPath_FUNC); |
1937 |
#ifndef NO_CGPathAddArc |
| 1938 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
1938 |
JNIEXPORT void JNICALL OS_NATIVE(CGPathAddArc) |
| 1939 |
CGPathAddPath((CGMutablePathRef)arg0, (const CGAffineTransform *)lparg1, (CGPathRef)arg2); |
1939 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1, jfloat arg2, jfloat arg3, jfloat arg4, jfloat arg5, jfloat arg6, jboolean arg7) |
| 1940 |
fail: |
1940 |
{ |
| 1941 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
1941 |
jfloat *lparg1=NULL; |
| 1942 |
OS_NATIVE_EXIT(env, that, CGPathAddPath_FUNC); |
1942 |
OS_NATIVE_ENTER(env, that, CGPathAddArc_FUNC); |
| 1943 |
} |
1943 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 1944 |
#endif |
1944 |
CGPathAddArc((CGMutablePathRef)arg0, (const CGAffineTransform *)lparg1, arg2, arg3, arg4, arg5, arg6, arg7); |
| 1945 |
|
1945 |
fail: |
| 1946 |
#ifndef NO_CGPathAddQuadCurveToPoint |
1946 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
| 1947 |
JNIEXPORT void JNICALL OS_NATIVE(CGPathAddQuadCurveToPoint) |
1947 |
OS_NATIVE_EXIT(env, that, CGPathAddArc_FUNC); |
| 1948 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1, jfloat arg2, jfloat arg3, jfloat arg4, jfloat arg5) |
1948 |
} |
| 1949 |
{ |
1949 |
#endif |
| 1950 |
jfloat *lparg1=NULL; |
1950 |
|
| 1951 |
OS_NATIVE_ENTER(env, that, CGPathAddQuadCurveToPoint_FUNC); |
1951 |
#ifndef NO_CGPathAddCurveToPoint |
| 1952 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
1952 |
JNIEXPORT void JNICALL OS_NATIVE(CGPathAddCurveToPoint) |
| 1953 |
CGPathAddQuadCurveToPoint((CGMutablePathRef)arg0, (const CGAffineTransform *)lparg1, arg2, arg3, arg4, arg5); |
1953 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1, jfloat arg2, jfloat arg3, jfloat arg4, jfloat arg5, jfloat arg6, jfloat arg7) |
| 1954 |
fail: |
1954 |
{ |
| 1955 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
1955 |
jfloat *lparg1=NULL; |
| 1956 |
OS_NATIVE_EXIT(env, that, CGPathAddQuadCurveToPoint_FUNC); |
1956 |
OS_NATIVE_ENTER(env, that, CGPathAddCurveToPoint_FUNC); |
| 1957 |
} |
1957 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 1958 |
#endif |
1958 |
CGPathAddCurveToPoint((CGMutablePathRef)arg0, (const CGAffineTransform *)lparg1, arg2, arg3, arg4, arg5, arg6, arg7); |
| 1959 |
|
1959 |
fail: |
| 1960 |
#ifndef NO_CGPathAddRect |
1960 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
| 1961 |
JNIEXPORT void JNICALL OS_NATIVE(CGPathAddRect) |
1961 |
OS_NATIVE_EXIT(env, that, CGPathAddCurveToPoint_FUNC); |
| 1962 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1, jobject arg2) |
1962 |
} |
| 1963 |
{ |
1963 |
#endif |
| 1964 |
jfloat *lparg1=NULL; |
1964 |
|
| 1965 |
CGRect _arg2, *lparg2=NULL; |
1965 |
#ifndef NO_CGPathAddLineToPoint |
| 1966 |
OS_NATIVE_ENTER(env, that, CGPathAddRect_FUNC); |
1966 |
JNIEXPORT void JNICALL OS_NATIVE(CGPathAddLineToPoint) |
| 1967 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
1967 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1, jfloat arg2, jfloat arg3) |
| 1968 |
if (arg2) if ((lparg2 = getCGRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
1968 |
{ |
| 1969 |
CGPathAddRect((CGMutablePathRef)arg0, (const CGAffineTransform *)lparg1, *lparg2); |
1969 |
jfloat *lparg1=NULL; |
| 1970 |
fail: |
1970 |
OS_NATIVE_ENTER(env, that, CGPathAddLineToPoint_FUNC); |
| 1971 |
if (arg2 && lparg2) setCGRectFields(env, arg2, lparg2); |
1971 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 1972 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
1972 |
CGPathAddLineToPoint((CGMutablePathRef)arg0, (const CGAffineTransform *)lparg1, arg2, arg3); |
| 1973 |
OS_NATIVE_EXIT(env, that, CGPathAddRect_FUNC); |
1973 |
fail: |
| 1974 |
} |
1974 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
| 1975 |
#endif |
1975 |
OS_NATIVE_EXIT(env, that, CGPathAddLineToPoint_FUNC); |
| 1976 |
|
1976 |
} |
| 1977 |
#ifndef NO_CGPathCloseSubpath |
1977 |
#endif |
| 1978 |
JNIEXPORT void JNICALL OS_NATIVE(CGPathCloseSubpath) |
1978 |
|
| 1979 |
(JNIEnv *env, jclass that, jint arg0) |
1979 |
#ifndef NO_CGPathAddPath |
| 1980 |
{ |
1980 |
JNIEXPORT void JNICALL OS_NATIVE(CGPathAddPath) |
| 1981 |
OS_NATIVE_ENTER(env, that, CGPathCloseSubpath_FUNC); |
1981 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1, jint arg2) |
| 1982 |
CGPathCloseSubpath((CGMutablePathRef)arg0); |
1982 |
{ |
| 1983 |
OS_NATIVE_EXIT(env, that, CGPathCloseSubpath_FUNC); |
1983 |
jfloat *lparg1=NULL; |
| 1984 |
} |
1984 |
OS_NATIVE_ENTER(env, that, CGPathAddPath_FUNC); |
| 1985 |
#endif |
1985 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 1986 |
|
1986 |
CGPathAddPath((CGMutablePathRef)arg0, (const CGAffineTransform *)lparg1, (CGPathRef)arg2); |
| 1987 |
#ifndef NO_CGPathCreateMutable |
1987 |
fail: |
| 1988 |
JNIEXPORT jint JNICALL OS_NATIVE(CGPathCreateMutable) |
1988 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
| 1989 |
(JNIEnv *env, jclass that) |
1989 |
OS_NATIVE_EXIT(env, that, CGPathAddPath_FUNC); |
| 1990 |
{ |
1990 |
} |
| 1991 |
jint rc = 0; |
1991 |
#endif |
| 1992 |
OS_NATIVE_ENTER(env, that, CGPathCreateMutable_FUNC); |
1992 |
|
| 1993 |
rc = (jint)CGPathCreateMutable(); |
1993 |
#ifndef NO_CGPathAddQuadCurveToPoint |
| 1994 |
OS_NATIVE_EXIT(env, that, CGPathCreateMutable_FUNC); |
1994 |
JNIEXPORT void JNICALL OS_NATIVE(CGPathAddQuadCurveToPoint) |
| 1995 |
return rc; |
1995 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1, jfloat arg2, jfloat arg3, jfloat arg4, jfloat arg5) |
| 1996 |
} |
1996 |
{ |
| 1997 |
#endif |
1997 |
jfloat *lparg1=NULL; |
| 1998 |
|
1998 |
OS_NATIVE_ENTER(env, that, CGPathAddQuadCurveToPoint_FUNC); |
| 1999 |
#ifndef NO_CGPathIsEmpty |
1999 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 2000 |
JNIEXPORT jboolean JNICALL OS_NATIVE(CGPathIsEmpty) |
2000 |
CGPathAddQuadCurveToPoint((CGMutablePathRef)arg0, (const CGAffineTransform *)lparg1, arg2, arg3, arg4, arg5); |
| 2001 |
(JNIEnv *env, jclass that, jint arg0) |
2001 |
fail: |
| 2002 |
{ |
2002 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
| 2003 |
jboolean rc = 0; |
2003 |
OS_NATIVE_EXIT(env, that, CGPathAddQuadCurveToPoint_FUNC); |
| 2004 |
OS_NATIVE_ENTER(env, that, CGPathIsEmpty_FUNC); |
2004 |
} |
| 2005 |
rc = (jboolean)CGPathIsEmpty((CGPathRef)arg0); |
2005 |
#endif |
| 2006 |
OS_NATIVE_EXIT(env, that, CGPathIsEmpty_FUNC); |
2006 |
|
| 2007 |
return rc; |
2007 |
#ifndef NO_CGPathAddRect |
| 2008 |
} |
2008 |
JNIEXPORT void JNICALL OS_NATIVE(CGPathAddRect) |
| 2009 |
#endif |
2009 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1, jobject arg2) |
| 2010 |
|
2010 |
{ |
| 2011 |
#ifndef NO_CGPathMoveToPoint |
2011 |
jfloat *lparg1=NULL; |
| 2012 |
JNIEXPORT void JNICALL OS_NATIVE(CGPathMoveToPoint) |
2012 |
CGRect _arg2, *lparg2=NULL; |
| 2013 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1, jfloat arg2, jfloat arg3) |
2013 |
OS_NATIVE_ENTER(env, that, CGPathAddRect_FUNC); |
| 2014 |
{ |
2014 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 2015 |
jfloat *lparg1=NULL; |
2015 |
if (arg2) if ((lparg2 = getCGRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 2016 |
OS_NATIVE_ENTER(env, that, CGPathMoveToPoint_FUNC); |
2016 |
CGPathAddRect((CGMutablePathRef)arg0, (const CGAffineTransform *)lparg1, *lparg2); |
| 2017 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
2017 |
fail: |
| 2018 |
CGPathMoveToPoint((CGMutablePathRef)arg0, (const CGAffineTransform *)lparg1, arg2, arg3); |
2018 |
if (arg2 && lparg2) setCGRectFields(env, arg2, lparg2); |
| 2019 |
fail: |
2019 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
| 2020 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
2020 |
OS_NATIVE_EXIT(env, that, CGPathAddRect_FUNC); |
| 2021 |
OS_NATIVE_EXIT(env, that, CGPathMoveToPoint_FUNC); |
2021 |
} |
| 2022 |
} |
2022 |
#endif |
| 2023 |
#endif |
2023 |
|
| 2024 |
|
2024 |
#ifndef NO_CGPathCloseSubpath |
| 2025 |
#ifndef NO_CGPathRelease |
2025 |
JNIEXPORT void JNICALL OS_NATIVE(CGPathCloseSubpath) |
| 2026 |
JNIEXPORT void JNICALL OS_NATIVE(CGPathRelease) |
2026 |
(JNIEnv *env, jclass that, jint arg0) |
| 2027 |
(JNIEnv *env, jclass that, jint arg0) |
2027 |
{ |
| 2028 |
{ |
2028 |
OS_NATIVE_ENTER(env, that, CGPathCloseSubpath_FUNC); |
| 2029 |
OS_NATIVE_ENTER(env, that, CGPathRelease_FUNC); |
2029 |
CGPathCloseSubpath((CGMutablePathRef)arg0); |
| 2030 |
CGPathRelease((CGPathRef)arg0); |
2030 |
OS_NATIVE_EXIT(env, that, CGPathCloseSubpath_FUNC); |
| 2031 |
OS_NATIVE_EXIT(env, that, CGPathRelease_FUNC); |
2031 |
} |
| 2032 |
} |
2032 |
#endif |
| 2033 |
#endif |
2033 |
|
| 2034 |
|
2034 |
#ifndef NO_CGPathCreateMutable |
| 2035 |
#ifndef NO_CGPostKeyboardEvent |
2035 |
JNIEXPORT jint JNICALL OS_NATIVE(CGPathCreateMutable) |
| 2036 |
JNIEXPORT jint JNICALL OS_NATIVE(CGPostKeyboardEvent) |
2036 |
(JNIEnv *env, jclass that) |
| 2037 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2) |
2037 |
{ |
| 2038 |
{ |
2038 |
jint rc = 0; |
| 2039 |
jint rc = 0; |
2039 |
OS_NATIVE_ENTER(env, that, CGPathCreateMutable_FUNC); |
| 2040 |
OS_NATIVE_ENTER(env, that, CGPostKeyboardEvent_FUNC); |
2040 |
rc = (jint)CGPathCreateMutable(); |
| 2041 |
rc = (jint)CGPostKeyboardEvent((CGCharCode)arg0, (CGKeyCode)arg1, (boolean_t)arg2); |
2041 |
OS_NATIVE_EXIT(env, that, CGPathCreateMutable_FUNC); |
| 2042 |
OS_NATIVE_EXIT(env, that, CGPostKeyboardEvent_FUNC); |
2042 |
return rc; |
| 2043 |
return rc; |
2043 |
} |
| 2044 |
} |
2044 |
#endif |
| 2045 |
#endif |
2045 |
|
| 2046 |
|
2046 |
#ifndef NO_CGPathIsEmpty |
| 2047 |
#ifndef NO_CGPostMouseEvent |
2047 |
JNIEXPORT jboolean JNICALL OS_NATIVE(CGPathIsEmpty) |
| 2048 |
JNIEXPORT jint JNICALL OS_NATIVE(CGPostMouseEvent) |
2048 |
(JNIEnv *env, jclass that, jint arg0) |
| 2049 |
(JNIEnv *env, jclass that, jobject arg0, jboolean arg1, jint arg2, jboolean arg3, jboolean arg4, jboolean arg5) |
2049 |
{ |
| 2050 |
{ |
2050 |
jboolean rc = 0; |
| 2051 |
CGPoint _arg0, *lparg0=NULL; |
2051 |
OS_NATIVE_ENTER(env, that, CGPathIsEmpty_FUNC); |
| 2052 |
jint rc = 0; |
2052 |
rc = (jboolean)CGPathIsEmpty((CGPathRef)arg0); |
| 2053 |
OS_NATIVE_ENTER(env, that, CGPostMouseEvent_FUNC); |
2053 |
OS_NATIVE_EXIT(env, that, CGPathIsEmpty_FUNC); |
| 2054 |
if (arg0) if ((lparg0 = getCGPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
2054 |
return rc; |
| 2055 |
rc = (jint)CGPostMouseEvent(*lparg0, (boolean_t)arg1, arg2, (boolean_t)arg3, (boolean_t)arg4, (boolean_t)arg5); |
2055 |
} |
| 2056 |
fail: |
2056 |
#endif |
| 2057 |
if (arg0 && lparg0) setCGPointFields(env, arg0, lparg0); |
2057 |
|
| 2058 |
OS_NATIVE_EXIT(env, that, CGPostMouseEvent_FUNC); |
2058 |
#ifndef NO_CGPathMoveToPoint |
| 2059 |
return rc; |
2059 |
JNIEXPORT void JNICALL OS_NATIVE(CGPathMoveToPoint) |
| 2060 |
} |
2060 |
(JNIEnv *env, jclass that, jint arg0, jfloatArray arg1, jfloat arg2, jfloat arg3) |
| 2061 |
#endif |
2061 |
{ |
| 2062 |
|
2062 |
jfloat *lparg1=NULL; |
| 2063 |
#ifndef NO_CGWarpMouseCursorPosition |
2063 |
OS_NATIVE_ENTER(env, that, CGPathMoveToPoint_FUNC); |
| 2064 |
JNIEXPORT jint JNICALL OS_NATIVE(CGWarpMouseCursorPosition) |
2064 |
if (arg1) if ((lparg1 = (*env)->GetFloatArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 2065 |
(JNIEnv *env, jclass that, jobject arg0) |
2065 |
CGPathMoveToPoint((CGMutablePathRef)arg0, (const CGAffineTransform *)lparg1, arg2, arg3); |
| 2066 |
{ |
2066 |
fail: |
| 2067 |
CGPoint _arg0, *lparg0=NULL; |
2067 |
if (arg1 && lparg1) (*env)->ReleaseFloatArrayElements(env, arg1, lparg1, 0); |
| 2068 |
jint rc = 0; |
2068 |
OS_NATIVE_EXIT(env, that, CGPathMoveToPoint_FUNC); |
| 2069 |
OS_NATIVE_ENTER(env, that, CGWarpMouseCursorPosition_FUNC); |
2069 |
} |
| 2070 |
if (arg0) if ((lparg0 = getCGPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
2070 |
#endif |
| 2071 |
rc = (jint)CGWarpMouseCursorPosition(*lparg0); |
2071 |
|
| 2072 |
fail: |
2072 |
#ifndef NO_CGPathRelease |
| 2073 |
if (arg0 && lparg0) setCGPointFields(env, arg0, lparg0); |
2073 |
JNIEXPORT void JNICALL OS_NATIVE(CGPathRelease) |
| 2074 |
OS_NATIVE_EXIT(env, that, CGWarpMouseCursorPosition_FUNC); |
2074 |
(JNIEnv *env, jclass that, jint arg0) |
| 2075 |
return rc; |
2075 |
{ |
| 2076 |
} |
2076 |
OS_NATIVE_ENTER(env, that, CGPathRelease_FUNC); |
| 2077 |
#endif |
2077 |
CGPathRelease((CGPathRef)arg0); |
| 2078 |
|
2078 |
OS_NATIVE_EXIT(env, that, CGPathRelease_FUNC); |
| 2079 |
#ifndef NO_CPSEnableForegroundOperation |
2079 |
} |
| 2080 |
JNIEXPORT jint JNICALL OS_NATIVE(CPSEnableForegroundOperation) |
2080 |
#endif |
| 2081 |
(JNIEnv *env, jclass that, jintArray arg0, jint arg1, jint arg2, jint arg3, jint arg4) |
2081 |
|
| 2082 |
{ |
2082 |
#ifndef NO_CGPostKeyboardEvent |
| 2083 |
jint *lparg0=NULL; |
2083 |
JNIEXPORT jint JNICALL OS_NATIVE(CGPostKeyboardEvent) |
| 2084 |
jint rc = 0; |
2084 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2) |
| 2085 |
OS_NATIVE_ENTER(env, that, CPSEnableForegroundOperation_FUNC); |
2085 |
{ |
| 2086 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
2086 |
jint rc = 0; |
| 2087 |
rc = (jint)CPSEnableForegroundOperation(lparg0, arg1, arg2, arg3, arg4); |
2087 |
OS_NATIVE_ENTER(env, that, CGPostKeyboardEvent_FUNC); |
| 2088 |
fail: |
2088 |
rc = (jint)CGPostKeyboardEvent((CGCharCode)arg0, (CGKeyCode)arg1, (boolean_t)arg2); |
| 2089 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
2089 |
OS_NATIVE_EXIT(env, that, CGPostKeyboardEvent_FUNC); |
| 2090 |
OS_NATIVE_EXIT(env, that, CPSEnableForegroundOperation_FUNC); |
2090 |
return rc; |
| 2091 |
return rc; |
2091 |
} |
| 2092 |
} |
2092 |
#endif |
| 2093 |
#endif |
2093 |
|
| 2094 |
|
2094 |
#ifndef NO_CGPostMouseEvent |
| 2095 |
#ifndef NO_CPSSetProcessName |
2095 |
JNIEXPORT jint JNICALL OS_NATIVE(CGPostMouseEvent) |
| 2096 |
JNIEXPORT jint JNICALL OS_NATIVE(CPSSetProcessName) |
2096 |
(JNIEnv *env, jclass that, jobject arg0, jboolean arg1, jint arg2, jboolean arg3, jboolean arg4, jboolean arg5) |
| 2097 |
(JNIEnv *env, jclass that, jintArray arg0, jbyteArray arg1) |
2097 |
{ |
| 2098 |
{ |
2098 |
CGPoint _arg0, *lparg0=NULL; |
| 2099 |
jint *lparg0=NULL; |
2099 |
jint rc = 0; |
| 2100 |
jbyte *lparg1=NULL; |
2100 |
OS_NATIVE_ENTER(env, that, CGPostMouseEvent_FUNC); |
| 2101 |
jint rc = 0; |
2101 |
if (arg0) if ((lparg0 = getCGPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 2102 |
OS_NATIVE_ENTER(env, that, CPSSetProcessName_FUNC); |
2102 |
rc = (jint)CGPostMouseEvent(*lparg0, (boolean_t)arg1, arg2, (boolean_t)arg3, (boolean_t)arg4, (boolean_t)arg5); |
| 2103 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
2103 |
fail: |
| 2104 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
2104 |
if (arg0 && lparg0) setCGPointFields(env, arg0, lparg0); |
| 2105 |
rc = (jint)CPSSetProcessName(lparg0, lparg1); |
2105 |
OS_NATIVE_EXIT(env, that, CGPostMouseEvent_FUNC); |
| 2106 |
fail: |
2106 |
return rc; |
| 2107 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
2107 |
} |
| 2108 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
2108 |
#endif |
| 2109 |
OS_NATIVE_EXIT(env, that, CPSSetProcessName_FUNC); |
2109 |
|
| 2110 |
return rc; |
2110 |
#ifndef NO_CGWarpMouseCursorPosition |
| 2111 |
} |
2111 |
JNIEXPORT jint JNICALL OS_NATIVE(CGWarpMouseCursorPosition) |
| 2112 |
#endif |
2112 |
(JNIEnv *env, jclass that, jobject arg0) |
| 2113 |
|
2113 |
{ |
| 2114 |
#ifndef NO_CallNextEventHandler |
2114 |
CGPoint _arg0, *lparg0=NULL; |
| 2115 |
JNIEXPORT jint JNICALL OS_NATIVE(CallNextEventHandler) |
2115 |
jint rc = 0; |
| 2116 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
2116 |
OS_NATIVE_ENTER(env, that, CGWarpMouseCursorPosition_FUNC); |
| 2117 |
{ |
2117 |
if (arg0) if ((lparg0 = getCGPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 2118 |
jint rc = 0; |
2118 |
rc = (jint)CGWarpMouseCursorPosition(*lparg0); |
| 2119 |
OS_NATIVE_ENTER(env, that, CallNextEventHandler_FUNC); |
2119 |
fail: |
| 2120 |
rc = (jint)CallNextEventHandler((EventHandlerCallRef)arg0, (EventRef)arg1); |
2120 |
if (arg0 && lparg0) setCGPointFields(env, arg0, lparg0); |
| 2121 |
OS_NATIVE_EXIT(env, that, CallNextEventHandler_FUNC); |
2121 |
OS_NATIVE_EXIT(env, that, CGWarpMouseCursorPosition_FUNC); |
| 2122 |
return rc; |
2122 |
return rc; |
| 2123 |
} |
2123 |
} |
| 2124 |
#endif |
2124 |
#endif |
| 2125 |
|
2125 |
|
| 2126 |
#ifndef NO_CharWidth |
2126 |
#ifndef NO_CPSEnableForegroundOperation |
| 2127 |
JNIEXPORT jshort JNICALL OS_NATIVE(CharWidth) |
2127 |
JNIEXPORT jint JNICALL OS_NATIVE(CPSEnableForegroundOperation) |
| 2128 |
(JNIEnv *env, jclass that, jshort arg0) |
2128 |
(JNIEnv *env, jclass that, jintArray arg0, jint arg1, jint arg2, jint arg3, jint arg4) |
| 2129 |
{ |
2129 |
{ |
| 2130 |
jshort rc = 0; |
2130 |
jint *lparg0=NULL; |
| 2131 |
OS_NATIVE_ENTER(env, that, CharWidth_FUNC); |
2131 |
jint rc = 0; |
| 2132 |
rc = (jshort)CharWidth((CharParameter)arg0); |
2132 |
OS_NATIVE_ENTER(env, that, CPSEnableForegroundOperation_FUNC); |
| 2133 |
OS_NATIVE_EXIT(env, that, CharWidth_FUNC); |
2133 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 2134 |
return rc; |
2134 |
rc = (jint)CPSEnableForegroundOperation(lparg0, arg1, arg2, arg3, arg4); |
| 2135 |
} |
2135 |
fail: |
| 2136 |
#endif |
2136 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 2137 |
|
2137 |
OS_NATIVE_EXIT(env, that, CPSEnableForegroundOperation_FUNC); |
| 2138 |
#ifndef NO_ClearCurrentScrap |
2138 |
return rc; |
| 2139 |
JNIEXPORT jint JNICALL OS_NATIVE(ClearCurrentScrap) |
2139 |
} |
| 2140 |
(JNIEnv *env, jclass that) |
2140 |
#endif |
| 2141 |
{ |
2141 |
|
| 2142 |
jint rc = 0; |
2142 |
#ifndef NO_CPSSetProcessName |
| 2143 |
OS_NATIVE_ENTER(env, that, ClearCurrentScrap_FUNC); |
2143 |
JNIEXPORT jint JNICALL OS_NATIVE(CPSSetProcessName) |
| 2144 |
rc = (jint)ClearCurrentScrap(); |
2144 |
(JNIEnv *env, jclass that, jintArray arg0, jbyteArray arg1) |
| 2145 |
OS_NATIVE_EXIT(env, that, ClearCurrentScrap_FUNC); |
2145 |
{ |
| 2146 |
return rc; |
2146 |
jint *lparg0=NULL; |
| 2147 |
} |
2147 |
jbyte *lparg1=NULL; |
| 2148 |
#endif |
2148 |
jint rc = 0; |
| 2149 |
|
2149 |
OS_NATIVE_ENTER(env, that, CPSSetProcessName_FUNC); |
| 2150 |
#ifndef NO_ClearKeyboardFocus |
2150 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 2151 |
JNIEXPORT jint JNICALL OS_NATIVE(ClearKeyboardFocus) |
2151 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 2152 |
(JNIEnv *env, jclass that, jint arg0) |
2152 |
rc = (jint)CPSSetProcessName(lparg0, lparg1); |
| 2153 |
{ |
2153 |
fail: |
| 2154 |
jint rc = 0; |
2154 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
| 2155 |
OS_NATIVE_ENTER(env, that, ClearKeyboardFocus_FUNC); |
2155 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 2156 |
rc = (jint)ClearKeyboardFocus((WindowRef)arg0); |
2156 |
OS_NATIVE_EXIT(env, that, CPSSetProcessName_FUNC); |
| 2157 |
OS_NATIVE_EXIT(env, that, ClearKeyboardFocus_FUNC); |
2157 |
return rc; |
| 2158 |
return rc; |
2158 |
} |
| 2159 |
} |
2159 |
#endif |
| 2160 |
#endif |
2160 |
|
| 2161 |
|
2161 |
#ifndef NO_CallNextEventHandler |
| 2162 |
#ifndef NO_ClearMenuBar |
2162 |
JNIEXPORT jint JNICALL OS_NATIVE(CallNextEventHandler) |
| 2163 |
JNIEXPORT void JNICALL OS_NATIVE(ClearMenuBar) |
2163 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 2164 |
(JNIEnv *env, jclass that) |
2164 |
{ |
| 2165 |
{ |
2165 |
jint rc = 0; |
| 2166 |
OS_NATIVE_ENTER(env, that, ClearMenuBar_FUNC); |
2166 |
OS_NATIVE_ENTER(env, that, CallNextEventHandler_FUNC); |
| 2167 |
ClearMenuBar(); |
2167 |
rc = (jint)CallNextEventHandler((EventHandlerCallRef)arg0, (EventRef)arg1); |
| 2168 |
OS_NATIVE_EXIT(env, that, ClearMenuBar_FUNC); |
2168 |
OS_NATIVE_EXIT(env, that, CallNextEventHandler_FUNC); |
| 2169 |
} |
2169 |
return rc; |
| 2170 |
#endif |
2170 |
} |
| 2171 |
|
2171 |
#endif |
| 2172 |
#ifndef NO_ClipCGContextToRegion |
2172 |
|
| 2173 |
JNIEXPORT jint JNICALL OS_NATIVE(ClipCGContextToRegion) |
2173 |
#ifndef NO_CharWidth |
| 2174 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
2174 |
JNIEXPORT jshort JNICALL OS_NATIVE(CharWidth) |
| 2175 |
{ |
2175 |
(JNIEnv *env, jclass that, jshort arg0) |
| 2176 |
Rect _arg1, *lparg1=NULL; |
2176 |
{ |
| 2177 |
jint rc = 0; |
2177 |
jshort rc = 0; |
| 2178 |
OS_NATIVE_ENTER(env, that, ClipCGContextToRegion_FUNC); |
2178 |
OS_NATIVE_ENTER(env, that, CharWidth_FUNC); |
| 2179 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
2179 |
rc = (jshort)CharWidth((CharParameter)arg0); |
| 2180 |
rc = (jint)ClipCGContextToRegion((CGContextRef)arg0, (const Rect *)lparg1, (RgnHandle)arg2); |
2180 |
OS_NATIVE_EXIT(env, that, CharWidth_FUNC); |
| 2181 |
fail: |
2181 |
return rc; |
| 2182 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
2182 |
} |
| 2183 |
OS_NATIVE_EXIT(env, that, ClipCGContextToRegion_FUNC); |
2183 |
#endif |
| 2184 |
return rc; |
2184 |
|
| 2185 |
} |
2185 |
#ifndef NO_ClearCurrentScrap |
| 2186 |
#endif |
2186 |
JNIEXPORT jint JNICALL OS_NATIVE(ClearCurrentScrap) |
| 2187 |
|
2187 |
(JNIEnv *env, jclass that) |
| 2188 |
#ifndef NO_CloseDataBrowserContainer |
2188 |
{ |
| 2189 |
JNIEXPORT jint JNICALL OS_NATIVE(CloseDataBrowserContainer) |
2189 |
jint rc = 0; |
| 2190 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
2190 |
OS_NATIVE_ENTER(env, that, ClearCurrentScrap_FUNC); |
| 2191 |
{ |
2191 |
rc = (jint)ClearCurrentScrap(); |
| 2192 |
jint rc = 0; |
2192 |
OS_NATIVE_EXIT(env, that, ClearCurrentScrap_FUNC); |
| 2193 |
OS_NATIVE_ENTER(env, that, CloseDataBrowserContainer_FUNC); |
2193 |
return rc; |
| 2194 |
rc = (jint)CloseDataBrowserContainer((ControlRef)arg0, (DataBrowserItemID)arg1); |
2194 |
} |
| 2195 |
OS_NATIVE_EXIT(env, that, CloseDataBrowserContainer_FUNC); |
2195 |
#endif |
| 2196 |
return rc; |
2196 |
|
| 2197 |
} |
2197 |
#ifndef NO_ClearKeyboardFocus |
| 2198 |
#endif |
2198 |
JNIEXPORT jint JNICALL OS_NATIVE(ClearKeyboardFocus) |
| 2199 |
|
2199 |
(JNIEnv *env, jclass that, jint arg0) |
| 2200 |
#ifndef NO_ClosePoly |
2200 |
{ |
| 2201 |
JNIEXPORT void JNICALL OS_NATIVE(ClosePoly) |
2201 |
jint rc = 0; |
| 2202 |
(JNIEnv *env, jclass that) |
2202 |
OS_NATIVE_ENTER(env, that, ClearKeyboardFocus_FUNC); |
| 2203 |
{ |
2203 |
rc = (jint)ClearKeyboardFocus((WindowRef)arg0); |
| 2204 |
OS_NATIVE_ENTER(env, that, ClosePoly_FUNC); |
2204 |
OS_NATIVE_EXIT(env, that, ClearKeyboardFocus_FUNC); |
| 2205 |
ClosePoly(); |
2205 |
return rc; |
| 2206 |
OS_NATIVE_EXIT(env, that, ClosePoly_FUNC); |
2206 |
} |
| 2207 |
} |
2207 |
#endif |
| 2208 |
#endif |
2208 |
|
| 2209 |
|
2209 |
#ifndef NO_ClearMenuBar |
| 2210 |
#ifndef NO_CloseRgn |
2210 |
JNIEXPORT void JNICALL OS_NATIVE(ClearMenuBar) |
| 2211 |
JNIEXPORT void JNICALL OS_NATIVE(CloseRgn) |
2211 |
(JNIEnv *env, jclass that) |
| 2212 |
(JNIEnv *env, jclass that, jint arg0) |
2212 |
{ |
| 2213 |
{ |
2213 |
OS_NATIVE_ENTER(env, that, ClearMenuBar_FUNC); |
| 2214 |
OS_NATIVE_ENTER(env, that, CloseRgn_FUNC); |
2214 |
ClearMenuBar(); |
| 2215 |
CloseRgn((RgnHandle)arg0); |
2215 |
OS_NATIVE_EXIT(env, that, ClearMenuBar_FUNC); |
| 2216 |
OS_NATIVE_EXIT(env, that, CloseRgn_FUNC); |
2216 |
} |
| 2217 |
} |
2217 |
#endif |
| 2218 |
#endif |
2218 |
|
| 2219 |
|
2219 |
#ifndef NO_ClipCGContextToRegion |
| 2220 |
#ifndef NO_CollapseWindow |
2220 |
JNIEXPORT jint JNICALL OS_NATIVE(ClipCGContextToRegion) |
| 2221 |
JNIEXPORT jint JNICALL OS_NATIVE(CollapseWindow) |
2221 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
| 2222 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
2222 |
{ |
| 2223 |
{ |
2223 |
Rect _arg1, *lparg1=NULL; |
| 2224 |
jint rc = 0; |
2224 |
jint rc = 0; |
| 2225 |
OS_NATIVE_ENTER(env, that, CollapseWindow_FUNC); |
2225 |
OS_NATIVE_ENTER(env, that, ClipCGContextToRegion_FUNC); |
| 2226 |
rc = (jint)CollapseWindow((WindowRef)arg0, (Boolean)arg1); |
2226 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2227 |
OS_NATIVE_EXIT(env, that, CollapseWindow_FUNC); |
2227 |
rc = (jint)ClipCGContextToRegion((CGContextRef)arg0, (const Rect *)lparg1, (RgnHandle)arg2); |
| 2228 |
return rc; |
2228 |
fail: |
| 2229 |
} |
2229 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 2230 |
#endif |
2230 |
OS_NATIVE_EXIT(env, that, ClipCGContextToRegion_FUNC); |
| 2231 |
|
2231 |
return rc; |
| 2232 |
#ifndef NO_ConvertEventRefToEventRecord |
2232 |
} |
| 2233 |
JNIEXPORT jboolean JNICALL OS_NATIVE(ConvertEventRefToEventRecord) |
2233 |
#endif |
| 2234 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
2234 |
|
| 2235 |
{ |
2235 |
#ifndef NO_CloseDataBrowserContainer |
| 2236 |
EventRecord _arg1, *lparg1=NULL; |
2236 |
JNIEXPORT jint JNICALL OS_NATIVE(CloseDataBrowserContainer) |
| 2237 |
jboolean rc = 0; |
2237 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 2238 |
OS_NATIVE_ENTER(env, that, ConvertEventRefToEventRecord_FUNC); |
2238 |
{ |
| 2239 |
if (arg1) if ((lparg1 = getEventRecordFields(env, arg1, &_arg1)) == NULL) goto fail; |
2239 |
jint rc = 0; |
| 2240 |
rc = (jboolean)ConvertEventRefToEventRecord((EventRef)arg0, (EventRecord *)lparg1); |
2240 |
OS_NATIVE_ENTER(env, that, CloseDataBrowserContainer_FUNC); |
| 2241 |
fail: |
2241 |
rc = (jint)CloseDataBrowserContainer((ControlRef)arg0, (DataBrowserItemID)arg1); |
| 2242 |
if (arg1 && lparg1) setEventRecordFields(env, arg1, lparg1); |
2242 |
OS_NATIVE_EXIT(env, that, CloseDataBrowserContainer_FUNC); |
| 2243 |
OS_NATIVE_EXIT(env, that, ConvertEventRefToEventRecord_FUNC); |
2243 |
return rc; |
| 2244 |
return rc; |
2244 |
} |
| 2245 |
} |
2245 |
#endif |
| 2246 |
#endif |
2246 |
|
| 2247 |
|
2247 |
#ifndef NO_ClosePoly |
| 2248 |
#ifndef NO_ConvertFromPStringToUnicode |
2248 |
JNIEXPORT void JNICALL OS_NATIVE(ClosePoly) |
| 2249 |
JNIEXPORT jint JNICALL OS_NATIVE(ConvertFromPStringToUnicode) |
2249 |
(JNIEnv *env, jclass that) |
| 2250 |
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2, jintArray arg3, jcharArray arg4) |
2250 |
{ |
| 2251 |
{ |
2251 |
OS_NATIVE_ENTER(env, that, ClosePoly_FUNC); |
| 2252 |
jbyte *lparg1=NULL; |
2252 |
ClosePoly(); |
| 2253 |
jint *lparg3=NULL; |
2253 |
OS_NATIVE_EXIT(env, that, ClosePoly_FUNC); |
| 2254 |
jchar *lparg4=NULL; |
2254 |
} |
| 2255 |
jint rc = 0; |
2255 |
#endif |
| 2256 |
OS_NATIVE_ENTER(env, that, ConvertFromPStringToUnicode_FUNC); |
2256 |
|
| 2257 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
2257 |
#ifndef NO_CloseRgn |
| 2258 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
2258 |
JNIEXPORT void JNICALL OS_NATIVE(CloseRgn) |
| 2259 |
if (arg4) if ((lparg4 = (*env)->GetCharArrayElements(env, arg4, NULL)) == NULL) goto fail; |
2259 |
(JNIEnv *env, jclass that, jint arg0) |
| 2260 |
rc = (jint)ConvertFromPStringToUnicode((TextToUnicodeInfo)arg0, (ConstStr255Param)lparg1, arg2, lparg3, lparg4); |
2260 |
{ |
| 2261 |
fail: |
2261 |
OS_NATIVE_ENTER(env, that, CloseRgn_FUNC); |
| 2262 |
if (arg4 && lparg4) (*env)->ReleaseCharArrayElements(env, arg4, lparg4, 0); |
2262 |
CloseRgn((RgnHandle)arg0); |
| 2263 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
2263 |
OS_NATIVE_EXIT(env, that, CloseRgn_FUNC); |
| 2264 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
2264 |
} |
| 2265 |
OS_NATIVE_EXIT(env, that, ConvertFromPStringToUnicode_FUNC); |
2265 |
#endif |
| 2266 |
return rc; |
2266 |
|
| 2267 |
} |
2267 |
#ifndef NO_CollapseWindow |
| 2268 |
#endif |
2268 |
JNIEXPORT jint JNICALL OS_NATIVE(CollapseWindow) |
| 2269 |
|
2269 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
| 2270 |
#ifndef NO_ConvertFromUnicodeToPString |
2270 |
{ |
| 2271 |
JNIEXPORT jint JNICALL OS_NATIVE(ConvertFromUnicodeToPString) |
2271 |
jint rc = 0; |
| 2272 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jcharArray arg2, jbyteArray arg3) |
2272 |
OS_NATIVE_ENTER(env, that, CollapseWindow_FUNC); |
| 2273 |
{ |
2273 |
rc = (jint)CollapseWindow((WindowRef)arg0, (Boolean)arg1); |
| 2274 |
jchar *lparg2=NULL; |
2274 |
OS_NATIVE_EXIT(env, that, CollapseWindow_FUNC); |
| 2275 |
jbyte *lparg3=NULL; |
2275 |
return rc; |
| 2276 |
jint rc = 0; |
2276 |
} |
| 2277 |
OS_NATIVE_ENTER(env, that, ConvertFromUnicodeToPString_FUNC); |
2277 |
#endif |
| 2278 |
if (arg2) if ((lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL)) == NULL) goto fail; |
2278 |
|
| 2279 |
if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail; |
2279 |
#ifndef NO_ConvertEventRefToEventRecord |
| 2280 |
rc = (jint)ConvertFromUnicodeToPString((UnicodeToTextInfo)arg0, arg1, (ConstUniCharArrayPtr)lparg2, lparg3); |
2280 |
JNIEXPORT jboolean JNICALL OS_NATIVE(ConvertEventRefToEventRecord) |
| 2281 |
fail: |
2281 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 2282 |
if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0); |
2282 |
{ |
| 2283 |
if (arg2 && lparg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0); |
2283 |
EventRecord _arg1, *lparg1=NULL; |
| 2284 |
OS_NATIVE_EXIT(env, that, ConvertFromUnicodeToPString_FUNC); |
2284 |
jboolean rc = 0; |
| 2285 |
return rc; |
2285 |
OS_NATIVE_ENTER(env, that, ConvertEventRefToEventRecord_FUNC); |
| 2286 |
} |
2286 |
if (arg1) if ((lparg1 = getEventRecordFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2287 |
#endif |
2287 |
rc = (jboolean)ConvertEventRefToEventRecord((EventRef)arg0, (EventRecord *)lparg1); |
| 2288 |
|
2288 |
fail: |
| 2289 |
#ifndef NO_CopyBits |
2289 |
if (arg1 && lparg1) setEventRecordFields(env, arg1, lparg1); |
| 2290 |
JNIEXPORT void JNICALL OS_NATIVE(CopyBits) |
2290 |
OS_NATIVE_EXIT(env, that, ConvertEventRefToEventRecord_FUNC); |
| 2291 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2, jobject arg3, jshort arg4, jint arg5) |
2291 |
return rc; |
| 2292 |
{ |
2292 |
} |
| 2293 |
Rect _arg2, *lparg2=NULL; |
2293 |
#endif |
| 2294 |
Rect _arg3, *lparg3=NULL; |
2294 |
|
| 2295 |
OS_NATIVE_ENTER(env, that, CopyBits_FUNC); |
2295 |
#ifndef NO_ConvertFromPStringToUnicode |
| 2296 |
if (arg2) if ((lparg2 = getRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
2296 |
JNIEXPORT jint JNICALL OS_NATIVE(ConvertFromPStringToUnicode) |
| 2297 |
if (arg3) if ((lparg3 = getRectFields(env, arg3, &_arg3)) == NULL) goto fail; |
2297 |
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2, jintArray arg3, jcharArray arg4) |
| 2298 |
CopyBits((const BitMap *)arg0, (const BitMap *)arg1, (const Rect *)lparg2, (const Rect *)lparg3, (short)arg4, (RgnHandle)arg5); |
2298 |
{ |
| 2299 |
fail: |
2299 |
jbyte *lparg1=NULL; |
| 2300 |
if (arg3 && lparg3) setRectFields(env, arg3, lparg3); |
2300 |
jint *lparg3=NULL; |
| 2301 |
if (arg2 && lparg2) setRectFields(env, arg2, lparg2); |
2301 |
jchar *lparg4=NULL; |
| 2302 |
OS_NATIVE_EXIT(env, that, CopyBits_FUNC); |
2302 |
jint rc = 0; |
| 2303 |
} |
2303 |
OS_NATIVE_ENTER(env, that, ConvertFromPStringToUnicode_FUNC); |
| 2304 |
#endif |
2304 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 2305 |
|
2305 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 2306 |
#ifndef NO_CopyControlTitleAsCFString |
2306 |
if (arg4) if ((lparg4 = (*env)->GetCharArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 2307 |
JNIEXPORT jint JNICALL OS_NATIVE(CopyControlTitleAsCFString) |
2307 |
rc = (jint)ConvertFromPStringToUnicode((TextToUnicodeInfo)arg0, (ConstStr255Param)lparg1, arg2, lparg3, lparg4); |
| 2308 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
2308 |
fail: |
| 2309 |
{ |
2309 |
if (arg4 && lparg4) (*env)->ReleaseCharArrayElements(env, arg4, lparg4, 0); |
| 2310 |
jint *lparg1=NULL; |
2310 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 2311 |
jint rc = 0; |
2311 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
| 2312 |
OS_NATIVE_ENTER(env, that, CopyControlTitleAsCFString_FUNC); |
2312 |
OS_NATIVE_EXIT(env, that, ConvertFromPStringToUnicode_FUNC); |
| 2313 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
2313 |
return rc; |
| 2314 |
rc = (jint)CopyControlTitleAsCFString((ControlRef)arg0, (CFStringRef *)lparg1); |
2314 |
} |
| 2315 |
fail: |
2315 |
#endif |
| 2316 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
2316 |
|
| 2317 |
OS_NATIVE_EXIT(env, that, CopyControlTitleAsCFString_FUNC); |
2317 |
#ifndef NO_ConvertFromUnicodeToPString |
| 2318 |
return rc; |
2318 |
JNIEXPORT jint JNICALL OS_NATIVE(ConvertFromUnicodeToPString) |
| 2319 |
} |
2319 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jcharArray arg2, jbyteArray arg3) |
| 2320 |
#endif |
2320 |
{ |
| 2321 |
|
2321 |
jchar *lparg2=NULL; |
| 2322 |
#ifndef NO_CopyDeepMask |
2322 |
jbyte *lparg3=NULL; |
| 2323 |
JNIEXPORT void JNICALL OS_NATIVE(CopyDeepMask) |
2323 |
jint rc = 0; |
| 2324 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jobject arg3, jobject arg4, jobject arg5, jshort arg6, jint arg7) |
2324 |
OS_NATIVE_ENTER(env, that, ConvertFromUnicodeToPString_FUNC); |
| 2325 |
{ |
2325 |
if (arg2) if ((lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 2326 |
Rect _arg3, *lparg3=NULL; |
2326 |
if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 2327 |
Rect _arg4, *lparg4=NULL; |
2327 |
rc = (jint)ConvertFromUnicodeToPString((UnicodeToTextInfo)arg0, arg1, (ConstUniCharArrayPtr)lparg2, lparg3); |
| 2328 |
Rect _arg5, *lparg5=NULL; |
2328 |
fail: |
| 2329 |
OS_NATIVE_ENTER(env, that, CopyDeepMask_FUNC); |
2329 |
if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0); |
| 2330 |
if (arg3) if ((lparg3 = getRectFields(env, arg3, &_arg3)) == NULL) goto fail; |
2330 |
if (arg2 && lparg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0); |
| 2331 |
if (arg4) if ((lparg4 = getRectFields(env, arg4, &_arg4)) == NULL) goto fail; |
2331 |
OS_NATIVE_EXIT(env, that, ConvertFromUnicodeToPString_FUNC); |
| 2332 |
if (arg5) if ((lparg5 = getRectFields(env, arg5, &_arg5)) == NULL) goto fail; |
2332 |
return rc; |
| 2333 |
CopyDeepMask((const BitMap *)arg0, (const BitMap *)arg1, (const BitMap *)arg2, (const Rect *)lparg3, (const Rect *)lparg4, (const Rect *)lparg5, (short)arg6, (RgnHandle)arg7); |
2333 |
} |
| 2334 |
fail: |
2334 |
#endif |
| 2335 |
if (arg5 && lparg5) setRectFields(env, arg5, lparg5); |
2335 |
|
| 2336 |
if (arg4 && lparg4) setRectFields(env, arg4, lparg4); |
2336 |
#ifndef NO_CopyBits |
| 2337 |
if (arg3 && lparg3) setRectFields(env, arg3, lparg3); |
2337 |
JNIEXPORT void JNICALL OS_NATIVE(CopyBits) |
| 2338 |
OS_NATIVE_EXIT(env, that, CopyDeepMask_FUNC); |
2338 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2, jobject arg3, jshort arg4, jint arg5) |
| 2339 |
} |
2339 |
{ |
| 2340 |
#endif |
2340 |
Rect _arg2, *lparg2=NULL; |
| 2341 |
|
2341 |
Rect _arg3, *lparg3=NULL; |
| 2342 |
#ifndef NO_CopyMenuItemTextAsCFString |
2342 |
OS_NATIVE_ENTER(env, that, CopyBits_FUNC); |
| 2343 |
JNIEXPORT jint JNICALL OS_NATIVE(CopyMenuItemTextAsCFString) |
2343 |
if (arg2) if ((lparg2 = getRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 2344 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jintArray arg2) |
2344 |
if (arg3) if ((lparg3 = getRectFields(env, arg3, &_arg3)) == NULL) goto fail; |
| 2345 |
{ |
2345 |
CopyBits((const BitMap *)arg0, (const BitMap *)arg1, (const Rect *)lparg2, (const Rect *)lparg3, (short)arg4, (RgnHandle)arg5); |
| 2346 |
jint *lparg2=NULL; |
2346 |
fail: |
| 2347 |
jint rc = 0; |
2347 |
if (arg3 && lparg3) setRectFields(env, arg3, lparg3); |
| 2348 |
OS_NATIVE_ENTER(env, that, CopyMenuItemTextAsCFString_FUNC); |
2348 |
if (arg2 && lparg2) setRectFields(env, arg2, lparg2); |
| 2349 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
2349 |
OS_NATIVE_EXIT(env, that, CopyBits_FUNC); |
| 2350 |
rc = (jint)CopyMenuItemTextAsCFString((MenuRef)arg0, (MenuItemIndex)arg1, (CFStringRef *)lparg2); |
2350 |
} |
| 2351 |
fail: |
2351 |
#endif |
| 2352 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
2352 |
|
| 2353 |
OS_NATIVE_EXIT(env, that, CopyMenuItemTextAsCFString_FUNC); |
2353 |
#ifndef NO_CopyControlTitleAsCFString |
| 2354 |
return rc; |
2354 |
JNIEXPORT jint JNICALL OS_NATIVE(CopyControlTitleAsCFString) |
| 2355 |
} |
2355 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 2356 |
#endif |
2356 |
{ |
| 2357 |
|
2357 |
jint *lparg1=NULL; |
| 2358 |
#ifndef NO_CopyRgn |
2358 |
jint rc = 0; |
| 2359 |
JNIEXPORT void JNICALL OS_NATIVE(CopyRgn) |
2359 |
OS_NATIVE_ENTER(env, that, CopyControlTitleAsCFString_FUNC); |
| 2360 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
2360 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 2361 |
{ |
2361 |
rc = (jint)CopyControlTitleAsCFString((ControlRef)arg0, (CFStringRef *)lparg1); |
| 2362 |
OS_NATIVE_ENTER(env, that, CopyRgn_FUNC); |
2362 |
fail: |
| 2363 |
CopyRgn((RgnHandle)arg0, (RgnHandle)arg1); |
2363 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 2364 |
OS_NATIVE_EXIT(env, that, CopyRgn_FUNC); |
2364 |
OS_NATIVE_EXIT(env, that, CopyControlTitleAsCFString_FUNC); |
| 2365 |
} |
2365 |
return rc; |
| 2366 |
#endif |
2366 |
} |
| 2367 |
|
2367 |
#endif |
| 2368 |
#ifndef NO_CountDragItemFlavors |
2368 |
|
| 2369 |
JNIEXPORT jint JNICALL OS_NATIVE(CountDragItemFlavors) |
2369 |
#ifndef NO_CopyDeepMask |
| 2370 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshortArray arg2) |
2370 |
JNIEXPORT void JNICALL OS_NATIVE(CopyDeepMask) |
| 2371 |
{ |
2371 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jobject arg3, jobject arg4, jobject arg5, jshort arg6, jint arg7) |
| 2372 |
jshort *lparg2=NULL; |
2372 |
{ |
| 2373 |
jint rc = 0; |
2373 |
Rect _arg3, *lparg3=NULL; |
| 2374 |
OS_NATIVE_ENTER(env, that, CountDragItemFlavors_FUNC); |
2374 |
Rect _arg4, *lparg4=NULL; |
| 2375 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
2375 |
Rect _arg5, *lparg5=NULL; |
| 2376 |
rc = (jint)CountDragItemFlavors((DragRef)arg0, (DragItemRef)arg1, (UInt16 *)lparg2); |
2376 |
OS_NATIVE_ENTER(env, that, CopyDeepMask_FUNC); |
| 2377 |
fail: |
2377 |
if (arg3) if ((lparg3 = getRectFields(env, arg3, &_arg3)) == NULL) goto fail; |
| 2378 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
2378 |
if (arg4) if ((lparg4 = getRectFields(env, arg4, &_arg4)) == NULL) goto fail; |
| 2379 |
OS_NATIVE_EXIT(env, that, CountDragItemFlavors_FUNC); |
2379 |
if (arg5) if ((lparg5 = getRectFields(env, arg5, &_arg5)) == NULL) goto fail; |
| 2380 |
return rc; |
2380 |
CopyDeepMask((const BitMap *)arg0, (const BitMap *)arg1, (const BitMap *)arg2, (const Rect *)lparg3, (const Rect *)lparg4, (const Rect *)lparg5, (short)arg6, (RgnHandle)arg7); |
| 2381 |
} |
2381 |
fail: |
| 2382 |
#endif |
2382 |
if (arg5 && lparg5) setRectFields(env, arg5, lparg5); |
| 2383 |
|
2383 |
if (arg4 && lparg4) setRectFields(env, arg4, lparg4); |
| 2384 |
#ifndef NO_CountDragItems |
2384 |
if (arg3 && lparg3) setRectFields(env, arg3, lparg3); |
| 2385 |
JNIEXPORT jint JNICALL OS_NATIVE(CountDragItems) |
2385 |
OS_NATIVE_EXIT(env, that, CopyDeepMask_FUNC); |
| 2386 |
(JNIEnv *env, jclass that, jint arg0, jshortArray arg1) |
2386 |
} |
| 2387 |
{ |
2387 |
#endif |
| 2388 |
jshort *lparg1=NULL; |
2388 |
|
| 2389 |
jint rc = 0; |
2389 |
#ifndef NO_CopyMenuItemTextAsCFString |
| 2390 |
OS_NATIVE_ENTER(env, that, CountDragItems_FUNC); |
2390 |
JNIEXPORT jint JNICALL OS_NATIVE(CopyMenuItemTextAsCFString) |
| 2391 |
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail; |
2391 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jintArray arg2) |
| 2392 |
rc = (jint)CountDragItems((DragRef)arg0, (UInt16 *)lparg1); |
2392 |
{ |
| 2393 |
fail: |
2393 |
jint *lparg2=NULL; |
| 2394 |
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0); |
2394 |
jint rc = 0; |
| 2395 |
OS_NATIVE_EXIT(env, that, CountDragItems_FUNC); |
2395 |
OS_NATIVE_ENTER(env, that, CopyMenuItemTextAsCFString_FUNC); |
| 2396 |
return rc; |
2396 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 2397 |
} |
2397 |
rc = (jint)CopyMenuItemTextAsCFString((MenuRef)arg0, (MenuItemIndex)arg1, (CFStringRef *)lparg2); |
| 2398 |
#endif |
2398 |
fail: |
| 2399 |
|
2399 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 2400 |
#ifndef NO_CountMenuItems |
2400 |
OS_NATIVE_EXIT(env, that, CopyMenuItemTextAsCFString_FUNC); |
| 2401 |
JNIEXPORT jshort JNICALL OS_NATIVE(CountMenuItems) |
2401 |
return rc; |
| 2402 |
(JNIEnv *env, jclass that, jint arg0) |
2402 |
} |
| 2403 |
{ |
2403 |
#endif |
| 2404 |
jshort rc = 0; |
2404 |
|
| 2405 |
OS_NATIVE_ENTER(env, that, CountMenuItems_FUNC); |
2405 |
#ifndef NO_CopyRgn |
| 2406 |
rc = (jshort)CountMenuItems((MenuRef)arg0); |
2406 |
JNIEXPORT void JNICALL OS_NATIVE(CopyRgn) |
| 2407 |
OS_NATIVE_EXIT(env, that, CountMenuItems_FUNC); |
2407 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 2408 |
return rc; |
2408 |
{ |
| 2409 |
} |
2409 |
OS_NATIVE_ENTER(env, that, CopyRgn_FUNC); |
| 2410 |
#endif |
2410 |
CopyRgn((RgnHandle)arg0, (RgnHandle)arg1); |
| 2411 |
|
2411 |
OS_NATIVE_EXIT(env, that, CopyRgn_FUNC); |
| 2412 |
#ifndef NO_CountSubControls |
2412 |
} |
| 2413 |
JNIEXPORT jint JNICALL OS_NATIVE(CountSubControls) |
2413 |
#endif |
| 2414 |
(JNIEnv *env, jclass that, jint arg0, jshortArray arg1) |
2414 |
|
| 2415 |
{ |
2415 |
#ifndef NO_CountDragItemFlavors |
| 2416 |
jshort *lparg1=NULL; |
2416 |
JNIEXPORT jint JNICALL OS_NATIVE(CountDragItemFlavors) |
| 2417 |
jint rc = 0; |
2417 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshortArray arg2) |
| 2418 |
OS_NATIVE_ENTER(env, that, CountSubControls_FUNC); |
2418 |
{ |
| 2419 |
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail; |
2419 |
jshort *lparg2=NULL; |
| 2420 |
rc = (jint)CountSubControls((ControlRef)arg0, (UInt16 *)lparg1); |
2420 |
jint rc = 0; |
| 2421 |
fail: |
2421 |
OS_NATIVE_ENTER(env, that, CountDragItemFlavors_FUNC); |
| 2422 |
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0); |
2422 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 2423 |
OS_NATIVE_EXIT(env, that, CountSubControls_FUNC); |
2423 |
rc = (jint)CountDragItemFlavors((DragRef)arg0, (DragItemRef)arg1, (UInt16 *)lparg2); |
| 2424 |
return rc; |
2424 |
fail: |
| 2425 |
} |
2425 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
| 2426 |
#endif |
2426 |
OS_NATIVE_EXIT(env, that, CountDragItemFlavors_FUNC); |
| 2427 |
|
2427 |
return rc; |
| 2428 |
#ifndef NO_CreateBevelButtonControl |
2428 |
} |
| 2429 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateBevelButtonControl) |
2429 |
#endif |
| 2430 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jshort arg3, jshort arg4, jint arg5, jshort arg6, jshort arg7, jshort arg8, jintArray arg9) |
2430 |
|
| 2431 |
{ |
2431 |
#ifndef NO_CountDragItems |
| 2432 |
Rect _arg1, *lparg1=NULL; |
2432 |
JNIEXPORT jint JNICALL OS_NATIVE(CountDragItems) |
| 2433 |
jint *lparg9=NULL; |
2433 |
(JNIEnv *env, jclass that, jint arg0, jshortArray arg1) |
| 2434 |
jint rc = 0; |
2434 |
{ |
| 2435 |
OS_NATIVE_ENTER(env, that, CreateBevelButtonControl_FUNC); |
2435 |
jshort *lparg1=NULL; |
| 2436 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
2436 |
jint rc = 0; |
| 2437 |
if (arg9) if ((lparg9 = (*env)->GetIntArrayElements(env, arg9, NULL)) == NULL) goto fail; |
2437 |
OS_NATIVE_ENTER(env, that, CountDragItems_FUNC); |
| 2438 |
rc = (jint)CreateBevelButtonControl((WindowRef)arg0, (const Rect *)lparg1, (CFStringRef)arg2, (ControlBevelThickness)arg3, (ControlBevelButtonBehavior)arg4, (ControlButtonContentInfoPtr)arg5, (SInt16)arg6, (ControlBevelButtonMenuBehavior)arg7, (ControlBevelButtonMenuPlacement)arg8, (ControlRef *)lparg9); |
2438 |
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 2439 |
fail: |
2439 |
rc = (jint)CountDragItems((DragRef)arg0, (UInt16 *)lparg1); |
| 2440 |
if (arg9 && lparg9) (*env)->ReleaseIntArrayElements(env, arg9, lparg9, 0); |
2440 |
fail: |
| 2441 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
2441 |
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0); |
| 2442 |
OS_NATIVE_EXIT(env, that, CreateBevelButtonControl_FUNC); |
2442 |
OS_NATIVE_EXIT(env, that, CountDragItems_FUNC); |
| 2443 |
return rc; |
2443 |
return rc; |
| 2444 |
} |
2444 |
} |
| 2445 |
#endif |
2445 |
#endif |
| 2446 |
|
2446 |
|
| 2447 |
#ifndef NO_CreateCGContextForPort |
2447 |
#ifndef NO_CountMenuItems |
| 2448 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateCGContextForPort) |
2448 |
JNIEXPORT jshort JNICALL OS_NATIVE(CountMenuItems) |
| 2449 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
2449 |
(JNIEnv *env, jclass that, jint arg0) |
| 2450 |
{ |
2450 |
{ |
| 2451 |
jint *lparg1=NULL; |
2451 |
jshort rc = 0; |
| 2452 |
jint rc = 0; |
2452 |
OS_NATIVE_ENTER(env, that, CountMenuItems_FUNC); |
| 2453 |
OS_NATIVE_ENTER(env, that, CreateCGContextForPort_FUNC); |
2453 |
rc = (jshort)CountMenuItems((MenuRef)arg0); |
| 2454 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
2454 |
OS_NATIVE_EXIT(env, that, CountMenuItems_FUNC); |
| 2455 |
rc = (jint)CreateCGContextForPort((CGrafPtr)arg0, (CGContextRef *)lparg1); |
2455 |
return rc; |
| 2456 |
fail: |
2456 |
} |
| 2457 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
2457 |
#endif |
| 2458 |
OS_NATIVE_EXIT(env, that, CreateCGContextForPort_FUNC); |
2458 |
|
| 2459 |
return rc; |
2459 |
#ifndef NO_CountSubControls |
| 2460 |
} |
2460 |
JNIEXPORT jint JNICALL OS_NATIVE(CountSubControls) |
| 2461 |
#endif |
2461 |
(JNIEnv *env, jclass that, jint arg0, jshortArray arg1) |
| 2462 |
|
2462 |
{ |
| 2463 |
#ifndef NO_CreateCheckBoxControl |
2463 |
jshort *lparg1=NULL; |
| 2464 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateCheckBoxControl) |
2464 |
jint rc = 0; |
| 2465 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jint arg3, jboolean arg4, jintArray arg5) |
2465 |
OS_NATIVE_ENTER(env, that, CountSubControls_FUNC); |
| 2466 |
{ |
2466 |
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 2467 |
Rect _arg1, *lparg1=NULL; |
2467 |
rc = (jint)CountSubControls((ControlRef)arg0, (UInt16 *)lparg1); |
| 2468 |
jint *lparg5=NULL; |
2468 |
fail: |
| 2469 |
jint rc = 0; |
2469 |
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0); |
| 2470 |
OS_NATIVE_ENTER(env, that, CreateCheckBoxControl_FUNC); |
2470 |
OS_NATIVE_EXIT(env, that, CountSubControls_FUNC); |
| 2471 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
2471 |
return rc; |
| 2472 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
2472 |
} |
| 2473 |
rc = (jint)CreateCheckBoxControl((WindowRef)arg0, (const Rect *)lparg1, (CFStringRef)arg2, (SInt32)arg3, (Boolean)arg4, (ControlRef *)lparg5); |
2473 |
#endif |
| 2474 |
fail: |
2474 |
|
| 2475 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
2475 |
#ifndef NO_CreateBevelButtonControl |
| 2476 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
2476 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateBevelButtonControl) |
| 2477 |
OS_NATIVE_EXIT(env, that, CreateCheckBoxControl_FUNC); |
2477 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jshort arg3, jshort arg4, jint arg5, jshort arg6, jshort arg7, jshort arg8, jintArray arg9) |
| 2478 |
return rc; |
2478 |
{ |
| 2479 |
} |
2479 |
Rect _arg1, *lparg1=NULL; |
| 2480 |
#endif |
2480 |
jint *lparg9=NULL; |
| 2481 |
|
2481 |
jint rc = 0; |
| 2482 |
#ifndef NO_CreateDataBrowserControl |
2482 |
OS_NATIVE_ENTER(env, that, CreateBevelButtonControl_FUNC); |
| 2483 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateDataBrowserControl) |
2483 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2484 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jintArray arg3) |
2484 |
if (arg9) if ((lparg9 = (*env)->GetIntArrayElements(env, arg9, NULL)) == NULL) goto fail; |
| 2485 |
{ |
2485 |
rc = (jint)CreateBevelButtonControl((WindowRef)arg0, (const Rect *)lparg1, (CFStringRef)arg2, (ControlBevelThickness)arg3, (ControlBevelButtonBehavior)arg4, (ControlButtonContentInfoPtr)arg5, (SInt16)arg6, (ControlBevelButtonMenuBehavior)arg7, (ControlBevelButtonMenuPlacement)arg8, (ControlRef *)lparg9); |
| 2486 |
Rect _arg1, *lparg1=NULL; |
2486 |
fail: |
| 2487 |
jint *lparg3=NULL; |
2487 |
if (arg9 && lparg9) (*env)->ReleaseIntArrayElements(env, arg9, lparg9, 0); |
| 2488 |
jint rc = 0; |
2488 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 2489 |
OS_NATIVE_ENTER(env, that, CreateDataBrowserControl_FUNC); |
2489 |
OS_NATIVE_EXIT(env, that, CreateBevelButtonControl_FUNC); |
| 2490 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
2490 |
return rc; |
| 2491 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
2491 |
} |
| 2492 |
rc = (jint)CreateDataBrowserControl((WindowRef)arg0, (const Rect *)lparg1, (DataBrowserViewStyle)arg2, (ControlRef *)lparg3); |
2492 |
#endif |
| 2493 |
fail: |
2493 |
|
| 2494 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
2494 |
#ifndef NO_CreateCGContextForPort |
| 2495 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
2495 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateCGContextForPort) |
| 2496 |
OS_NATIVE_EXIT(env, that, CreateDataBrowserControl_FUNC); |
2496 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 2497 |
return rc; |
2497 |
{ |
| 2498 |
} |
2498 |
jint *lparg1=NULL; |
| 2499 |
#endif |
2499 |
jint rc = 0; |
| 2500 |
|
2500 |
OS_NATIVE_ENTER(env, that, CreateCGContextForPort_FUNC); |
| 2501 |
#ifndef NO_CreateEditUnicodeTextControl |
2501 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 2502 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateEditUnicodeTextControl) |
2502 |
rc = (jint)CreateCGContextForPort((CGrafPtr)arg0, (CGContextRef *)lparg1); |
| 2503 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jboolean arg3, jobject arg4, jintArray arg5) |
2503 |
fail: |
| 2504 |
{ |
2504 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 2505 |
Rect _arg1, *lparg1=NULL; |
2505 |
OS_NATIVE_EXIT(env, that, CreateCGContextForPort_FUNC); |
| 2506 |
ControlFontStyleRec _arg4, *lparg4=NULL; |
2506 |
return rc; |
| 2507 |
jint *lparg5=NULL; |
2507 |
} |
| 2508 |
jint rc = 0; |
2508 |
#endif |
| 2509 |
OS_NATIVE_ENTER(env, that, CreateEditUnicodeTextControl_FUNC); |
2509 |
|
| 2510 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
2510 |
#ifndef NO_CreateCheckBoxControl |
| 2511 |
if (arg4) if ((lparg4 = getControlFontStyleRecFields(env, arg4, &_arg4)) == NULL) goto fail; |
2511 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateCheckBoxControl) |
| 2512 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
2512 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jint arg3, jboolean arg4, jintArray arg5) |
| 2513 |
rc = (jint)CreateEditUnicodeTextControl((WindowRef)arg0, lparg1, (CFStringRef)arg2, arg3, lparg4, (ControlRef *)lparg5); |
2513 |
{ |
| 2514 |
fail: |
2514 |
Rect _arg1, *lparg1=NULL; |
| 2515 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
2515 |
jint *lparg5=NULL; |
| 2516 |
if (arg4 && lparg4) setControlFontStyleRecFields(env, arg4, lparg4); |
2516 |
jint rc = 0; |
| 2517 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
2517 |
OS_NATIVE_ENTER(env, that, CreateCheckBoxControl_FUNC); |
| 2518 |
OS_NATIVE_EXIT(env, that, CreateEditUnicodeTextControl_FUNC); |
2518 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2519 |
return rc; |
2519 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 2520 |
} |
2520 |
rc = (jint)CreateCheckBoxControl((WindowRef)arg0, (const Rect *)lparg1, (CFStringRef)arg2, (SInt32)arg3, (Boolean)arg4, (ControlRef *)lparg5); |
| 2521 |
#endif |
2521 |
fail: |
| 2522 |
|
2522 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 2523 |
#ifndef NO_CreateEvent |
2523 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 2524 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateEvent) |
2524 |
OS_NATIVE_EXIT(env, that, CreateCheckBoxControl_FUNC); |
| 2525 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jdouble arg3, jint arg4, jintArray arg5) |
2525 |
return rc; |
| 2526 |
{ |
2526 |
} |
| 2527 |
jint *lparg5=NULL; |
2527 |
#endif |
| 2528 |
jint rc = 0; |
2528 |
|
| 2529 |
OS_NATIVE_ENTER(env, that, CreateEvent_FUNC); |
2529 |
#ifndef NO_CreateDataBrowserControl |
| 2530 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
2530 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateDataBrowserControl) |
| 2531 |
rc = (jint)CreateEvent((CFAllocatorRef)arg0, (UInt32)arg1, (UInt32)arg2, (EventTime)arg3, (EventAttributes)arg4, (EventRef *)lparg5); |
2531 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jintArray arg3) |
| 2532 |
fail: |
2532 |
{ |
| 2533 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
2533 |
Rect _arg1, *lparg1=NULL; |
| 2534 |
OS_NATIVE_EXIT(env, that, CreateEvent_FUNC); |
2534 |
jint *lparg3=NULL; |
| 2535 |
return rc; |
2535 |
jint rc = 0; |
| 2536 |
} |
2536 |
OS_NATIVE_ENTER(env, that, CreateDataBrowserControl_FUNC); |
| 2537 |
#endif |
2537 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2538 |
|
2538 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 2539 |
#ifndef NO_CreateGroupBoxControl |
2539 |
rc = (jint)CreateDataBrowserControl((WindowRef)arg0, (const Rect *)lparg1, (DataBrowserViewStyle)arg2, (ControlRef *)lparg3); |
| 2540 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateGroupBoxControl) |
2540 |
fail: |
| 2541 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jboolean arg3, jintArray arg4) |
2541 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 2542 |
{ |
2542 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 2543 |
Rect _arg1, *lparg1=NULL; |
2543 |
OS_NATIVE_EXIT(env, that, CreateDataBrowserControl_FUNC); |
| 2544 |
jint *lparg4=NULL; |
2544 |
return rc; |
| 2545 |
jint rc = 0; |
2545 |
} |
| 2546 |
OS_NATIVE_ENTER(env, that, CreateGroupBoxControl_FUNC); |
2546 |
#endif |
| 2547 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
2547 |
|
| 2548 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
2548 |
#ifndef NO_CreateEditUnicodeTextControl |
| 2549 |
rc = (jint)CreateGroupBoxControl((WindowRef)arg0, (const Rect *)lparg1, (CFStringRef)arg2, (Boolean)arg3, (ControlRef *)lparg4); |
2549 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateEditUnicodeTextControl) |
| 2550 |
fail: |
2550 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jboolean arg3, jobject arg4, jintArray arg5) |
| 2551 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
2551 |
{ |
| 2552 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
2552 |
Rect _arg1, *lparg1=NULL; |
| 2553 |
OS_NATIVE_EXIT(env, that, CreateGroupBoxControl_FUNC); |
2553 |
ControlFontStyleRec _arg4, *lparg4=NULL; |
| 2554 |
return rc; |
2554 |
jint *lparg5=NULL; |
| 2555 |
} |
2555 |
jint rc = 0; |
| 2556 |
#endif |
2556 |
OS_NATIVE_ENTER(env, that, CreateEditUnicodeTextControl_FUNC); |
| 2557 |
|
2557 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2558 |
#ifndef NO_CreateIconControl |
2558 |
if (arg4) if ((lparg4 = getControlFontStyleRecFields(env, arg4, &_arg4)) == NULL) goto fail; |
| 2559 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateIconControl) |
2559 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 2560 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jobject arg2, jboolean arg3, jintArray arg4) |
2560 |
rc = (jint)CreateEditUnicodeTextControl((WindowRef)arg0, lparg1, (CFStringRef)arg2, arg3, lparg4, (ControlRef *)lparg5); |
| 2561 |
{ |
2561 |
fail: |
| 2562 |
Rect _arg1, *lparg1=NULL; |
2562 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 2563 |
ControlButtonContentInfo _arg2, *lparg2=NULL; |
2563 |
if (arg4 && lparg4) setControlFontStyleRecFields(env, arg4, lparg4); |
| 2564 |
jint *lparg4=NULL; |
2564 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 2565 |
jint rc = 0; |
2565 |
OS_NATIVE_EXIT(env, that, CreateEditUnicodeTextControl_FUNC); |
| 2566 |
OS_NATIVE_ENTER(env, that, CreateIconControl_FUNC); |
2566 |
return rc; |
| 2567 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
2567 |
} |
| 2568 |
if (arg2) if ((lparg2 = getControlButtonContentInfoFields(env, arg2, &_arg2)) == NULL) goto fail; |
2568 |
#endif |
| 2569 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
2569 |
|
| 2570 |
rc = (jint)CreateIconControl((WindowRef)arg0, lparg1, lparg2, arg3, (ControlRef *)lparg4); |
2570 |
#ifndef NO_CreateEvent |
| 2571 |
fail: |
2571 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateEvent) |
| 2572 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
2572 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jdouble arg3, jint arg4, jintArray arg5) |
| 2573 |
if (arg2 && lparg2) setControlButtonContentInfoFields(env, arg2, lparg2); |
2573 |
{ |
| 2574 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
2574 |
jint *lparg5=NULL; |
| 2575 |
OS_NATIVE_EXIT(env, that, CreateIconControl_FUNC); |
2575 |
jint rc = 0; |
| 2576 |
return rc; |
2576 |
OS_NATIVE_ENTER(env, that, CreateEvent_FUNC); |
| 2577 |
} |
2577 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 2578 |
#endif |
2578 |
rc = (jint)CreateEvent((CFAllocatorRef)arg0, (UInt32)arg1, (UInt32)arg2, (EventTime)arg3, (EventAttributes)arg4, (EventRef *)lparg5); |
| 2579 |
|
2579 |
fail: |
| 2580 |
#ifndef NO_CreateLittleArrowsControl |
2580 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 2581 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateLittleArrowsControl) |
2581 |
OS_NATIVE_EXIT(env, that, CreateEvent_FUNC); |
| 2582 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jint arg3, jint arg4, jint arg5, jintArray arg6) |
2582 |
return rc; |
| 2583 |
{ |
2583 |
} |
| 2584 |
Rect _arg1, *lparg1=NULL; |
2584 |
#endif |
| 2585 |
jint *lparg6=NULL; |
2585 |
|
| 2586 |
jint rc = 0; |
2586 |
#ifndef NO_CreateGroupBoxControl |
| 2587 |
OS_NATIVE_ENTER(env, that, CreateLittleArrowsControl_FUNC); |
2587 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateGroupBoxControl) |
| 2588 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
2588 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jboolean arg3, jintArray arg4) |
| 2589 |
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail; |
2589 |
{ |
| 2590 |
rc = (jint)CreateLittleArrowsControl((WindowRef)arg0, (const Rect *)lparg1, arg2, arg3, arg4, arg5, (ControlRef *)lparg6); |
2590 |
Rect _arg1, *lparg1=NULL; |
| 2591 |
fail: |
2591 |
jint *lparg4=NULL; |
| 2592 |
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0); |
2592 |
jint rc = 0; |
| 2593 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
2593 |
OS_NATIVE_ENTER(env, that, CreateGroupBoxControl_FUNC); |
| 2594 |
OS_NATIVE_EXIT(env, that, CreateLittleArrowsControl_FUNC); |
2594 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2595 |
return rc; |
2595 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 2596 |
} |
2596 |
rc = (jint)CreateGroupBoxControl((WindowRef)arg0, (const Rect *)lparg1, (CFStringRef)arg2, (Boolean)arg3, (ControlRef *)lparg4); |
| 2597 |
#endif |
2597 |
fail: |
| 2598 |
|
2598 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 2599 |
#ifndef NO_CreateNewMenu |
2599 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 2600 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateNewMenu) |
2600 |
OS_NATIVE_EXIT(env, that, CreateGroupBoxControl_FUNC); |
| 2601 |
(JNIEnv *env, jclass that, jshort arg0, jint arg1, jintArray arg2) |
2601 |
return rc; |
| 2602 |
{ |
2602 |
} |
| 2603 |
jint *lparg2=NULL; |
2603 |
#endif |
| 2604 |
jint rc = 0; |
2604 |
|
| 2605 |
OS_NATIVE_ENTER(env, that, CreateNewMenu_FUNC); |
2605 |
#ifndef NO_CreateIconControl |
| 2606 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
2606 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateIconControl) |
| 2607 |
rc = (jint)CreateNewMenu((MenuID)arg0, (MenuAttributes)arg1, (MenuRef *)lparg2); |
2607 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jobject arg2, jboolean arg3, jintArray arg4) |
| 2608 |
fail: |
2608 |
{ |
| 2609 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
2609 |
Rect _arg1, *lparg1=NULL; |
| 2610 |
OS_NATIVE_EXIT(env, that, CreateNewMenu_FUNC); |
2610 |
ControlButtonContentInfo _arg2, *lparg2=NULL; |
| 2611 |
return rc; |
2611 |
jint *lparg4=NULL; |
| 2612 |
} |
2612 |
jint rc = 0; |
| 2613 |
#endif |
2613 |
OS_NATIVE_ENTER(env, that, CreateIconControl_FUNC); |
| 2614 |
|
2614 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2615 |
#ifndef NO_CreateNewWindow |
2615 |
if (arg2) if ((lparg2 = getControlButtonContentInfoFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 2616 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateNewWindow) |
2616 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 2617 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2, jintArray arg3) |
2617 |
rc = (jint)CreateIconControl((WindowRef)arg0, lparg1, lparg2, arg3, (ControlRef *)lparg4); |
| 2618 |
{ |
2618 |
fail: |
| 2619 |
Rect _arg2, *lparg2=NULL; |
2619 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 2620 |
jint *lparg3=NULL; |
2620 |
if (arg2 && lparg2) setControlButtonContentInfoFields(env, arg2, lparg2); |
| 2621 |
jint rc = 0; |
2621 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 2622 |
OS_NATIVE_ENTER(env, that, CreateNewWindow_FUNC); |
2622 |
OS_NATIVE_EXIT(env, that, CreateIconControl_FUNC); |
| 2623 |
if (arg2) if ((lparg2 = getRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
2623 |
return rc; |
| 2624 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
2624 |
} |
| 2625 |
rc = (jint)CreateNewWindow((WindowClass)arg0, (WindowAttributes)arg1, (const Rect *)lparg2, (WindowRef *)lparg3); |
2625 |
#endif |
| 2626 |
fail: |
2626 |
|
| 2627 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
2627 |
#ifndef NO_CreateLittleArrowsControl |
| 2628 |
if (arg2 && lparg2) setRectFields(env, arg2, lparg2); |
2628 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateLittleArrowsControl) |
| 2629 |
OS_NATIVE_EXIT(env, that, CreateNewWindow_FUNC); |
2629 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jint arg3, jint arg4, jint arg5, jintArray arg6) |
| 2630 |
return rc; |
2630 |
{ |
| 2631 |
} |
2631 |
Rect _arg1, *lparg1=NULL; |
| 2632 |
#endif |
2632 |
jint *lparg6=NULL; |
| 2633 |
|
2633 |
jint rc = 0; |
| 2634 |
#ifndef NO_CreatePopupArrowControl |
2634 |
OS_NATIVE_ENTER(env, that, CreateLittleArrowsControl_FUNC); |
| 2635 |
JNIEXPORT jint JNICALL OS_NATIVE(CreatePopupArrowControl) |
2635 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2636 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jshort arg2, jshort arg3, jintArray arg4) |
2636 |
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail; |
| 2637 |
{ |
2637 |
rc = (jint)CreateLittleArrowsControl((WindowRef)arg0, (const Rect *)lparg1, arg2, arg3, arg4, arg5, (ControlRef *)lparg6); |
| 2638 |
Rect _arg1, *lparg1=NULL; |
2638 |
fail: |
| 2639 |
jint *lparg4=NULL; |
2639 |
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0); |
| 2640 |
jint rc = 0; |
2640 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 2641 |
OS_NATIVE_ENTER(env, that, CreatePopupArrowControl_FUNC); |
2641 |
OS_NATIVE_EXIT(env, that, CreateLittleArrowsControl_FUNC); |
| 2642 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
2642 |
return rc; |
| 2643 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
2643 |
} |
| 2644 |
rc = (jint)CreatePopupArrowControl((WindowRef)arg0, (const Rect *)lparg1, (ControlPopupArrowOrientation)arg2, (ControlPopupArrowSize)arg3, (ControlRef *)lparg4); |
2644 |
#endif |
| 2645 |
fail: |
2645 |
|
| 2646 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
2646 |
#ifndef NO_CreateNewMenu |
| 2647 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
2647 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateNewMenu) |
| 2648 |
OS_NATIVE_EXIT(env, that, CreatePopupArrowControl_FUNC); |
2648 |
(JNIEnv *env, jclass that, jshort arg0, jint arg1, jintArray arg2) |
| 2649 |
return rc; |
2649 |
{ |
| 2650 |
} |
2650 |
jint *lparg2=NULL; |
| 2651 |
#endif |
2651 |
jint rc = 0; |
| 2652 |
|
2652 |
OS_NATIVE_ENTER(env, that, CreateNewMenu_FUNC); |
| 2653 |
#ifndef NO_CreatePopupButtonControl |
2653 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 2654 |
JNIEXPORT jint JNICALL OS_NATIVE(CreatePopupButtonControl) |
2654 |
rc = (jint)CreateNewMenu((MenuID)arg0, (MenuAttributes)arg1, (MenuRef *)lparg2); |
| 2655 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jshort arg3, jboolean arg4, jshort arg5, jshort arg6, jint arg7, jintArray arg8) |
2655 |
fail: |
| 2656 |
{ |
2656 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 2657 |
Rect _arg1, *lparg1=NULL; |
2657 |
OS_NATIVE_EXIT(env, that, CreateNewMenu_FUNC); |
| 2658 |
jint *lparg8=NULL; |
2658 |
return rc; |
| 2659 |
jint rc = 0; |
2659 |
} |
| 2660 |
OS_NATIVE_ENTER(env, that, CreatePopupButtonControl_FUNC); |
2660 |
#endif |
| 2661 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
2661 |
|
| 2662 |
if (arg8) if ((lparg8 = (*env)->GetIntArrayElements(env, arg8, NULL)) == NULL) goto fail; |
2662 |
#ifndef NO_CreateNewWindow |
| 2663 |
rc = (jint)CreatePopupButtonControl((WindowRef)arg0, lparg1, (CFStringRef)arg2, arg3, arg4, arg5, arg6, arg7, (ControlRef *)lparg8); |
2663 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateNewWindow) |
| 2664 |
fail: |
2664 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2, jintArray arg3) |
| 2665 |
if (arg8 && lparg8) (*env)->ReleaseIntArrayElements(env, arg8, lparg8, 0); |
2665 |
{ |
| 2666 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
2666 |
Rect _arg2, *lparg2=NULL; |
| 2667 |
OS_NATIVE_EXIT(env, that, CreatePopupButtonControl_FUNC); |
2667 |
jint *lparg3=NULL; |
| 2668 |
return rc; |
2668 |
jint rc = 0; |
| 2669 |
} |
2669 |
OS_NATIVE_ENTER(env, that, CreateNewWindow_FUNC); |
| 2670 |
#endif |
2670 |
if (arg2) if ((lparg2 = getRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 2671 |
|
2671 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 2672 |
#ifndef NO_CreateProgressBarControl |
2672 |
rc = (jint)CreateNewWindow((WindowClass)arg0, (WindowAttributes)arg1, (const Rect *)lparg2, (WindowRef *)lparg3); |
| 2673 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateProgressBarControl) |
2673 |
fail: |
| 2674 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jint arg3, jint arg4, jboolean arg5, jintArray arg6) |
2674 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 2675 |
{ |
2675 |
if (arg2 && lparg2) setRectFields(env, arg2, lparg2); |
| 2676 |
Rect _arg1, *lparg1=NULL; |
2676 |
OS_NATIVE_EXIT(env, that, CreateNewWindow_FUNC); |
| 2677 |
jint *lparg6=NULL; |
2677 |
return rc; |
| 2678 |
jint rc = 0; |
2678 |
} |
| 2679 |
OS_NATIVE_ENTER(env, that, CreateProgressBarControl_FUNC); |
2679 |
#endif |
| 2680 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
2680 |
|
| 2681 |
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail; |
2681 |
#ifndef NO_CreatePopupArrowControl |
| 2682 |
rc = (jint)CreateProgressBarControl((WindowRef)arg0, lparg1, arg2, arg3, arg4, arg5, (ControlRef *)lparg6); |
2682 |
JNIEXPORT jint JNICALL OS_NATIVE(CreatePopupArrowControl) |
| 2683 |
fail: |
2683 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jshort arg2, jshort arg3, jintArray arg4) |
| 2684 |
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0); |
2684 |
{ |
| 2685 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
2685 |
Rect _arg1, *lparg1=NULL; |
| 2686 |
OS_NATIVE_EXIT(env, that, CreateProgressBarControl_FUNC); |
2686 |
jint *lparg4=NULL; |
| 2687 |
return rc; |
2687 |
jint rc = 0; |
| 2688 |
} |
2688 |
OS_NATIVE_ENTER(env, that, CreatePopupArrowControl_FUNC); |
| 2689 |
#endif |
2689 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2690 |
|
2690 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 2691 |
#ifndef NO_CreatePushButtonControl |
2691 |
rc = (jint)CreatePopupArrowControl((WindowRef)arg0, (const Rect *)lparg1, (ControlPopupArrowOrientation)arg2, (ControlPopupArrowSize)arg3, (ControlRef *)lparg4); |
| 2692 |
JNIEXPORT jint JNICALL OS_NATIVE(CreatePushButtonControl) |
2692 |
fail: |
| 2693 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jintArray arg3) |
2693 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 2694 |
{ |
2694 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 2695 |
Rect _arg1, *lparg1=NULL; |
2695 |
OS_NATIVE_EXIT(env, that, CreatePopupArrowControl_FUNC); |
| 2696 |
jint *lparg3=NULL; |
2696 |
return rc; |
| 2697 |
jint rc = 0; |
2697 |
} |
| 2698 |
OS_NATIVE_ENTER(env, that, CreatePushButtonControl_FUNC); |
2698 |
#endif |
| 2699 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
2699 |
|
| 2700 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
2700 |
#ifndef NO_CreatePopupButtonControl |
| 2701 |
rc = (jint)CreatePushButtonControl((WindowRef)arg0, (const Rect *)lparg1, (CFStringRef)arg2, (ControlRef *)lparg3); |
2701 |
JNIEXPORT jint JNICALL OS_NATIVE(CreatePopupButtonControl) |
| 2702 |
fail: |
2702 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jshort arg3, jboolean arg4, jshort arg5, jshort arg6, jint arg7, jintArray arg8) |
| 2703 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
2703 |
{ |
| 2704 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
2704 |
Rect _arg1, *lparg1=NULL; |
| 2705 |
OS_NATIVE_EXIT(env, that, CreatePushButtonControl_FUNC); |
2705 |
jint *lparg8=NULL; |
| 2706 |
return rc; |
2706 |
jint rc = 0; |
| 2707 |
} |
2707 |
OS_NATIVE_ENTER(env, that, CreatePopupButtonControl_FUNC); |
| 2708 |
#endif |
2708 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2709 |
|
2709 |
if (arg8) if ((lparg8 = (*env)->GetIntArrayElements(env, arg8, NULL)) == NULL) goto fail; |
| 2710 |
#ifndef NO_CreatePushButtonWithIconControl |
2710 |
rc = (jint)CreatePopupButtonControl((WindowRef)arg0, lparg1, (CFStringRef)arg2, arg3, arg4, arg5, arg6, arg7, (ControlRef *)lparg8); |
| 2711 |
JNIEXPORT jint JNICALL OS_NATIVE(CreatePushButtonWithIconControl) |
2711 |
fail: |
| 2712 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jobject arg3, jshort arg4, jintArray arg5) |
2712 |
if (arg8 && lparg8) (*env)->ReleaseIntArrayElements(env, arg8, lparg8, 0); |
| 2713 |
{ |
2713 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 2714 |
Rect _arg1, *lparg1=NULL; |
2714 |
OS_NATIVE_EXIT(env, that, CreatePopupButtonControl_FUNC); |
| 2715 |
ControlButtonContentInfo _arg3, *lparg3=NULL; |
2715 |
return rc; |
| 2716 |
jint *lparg5=NULL; |
2716 |
} |
| 2717 |
jint rc = 0; |
2717 |
#endif |
| 2718 |
OS_NATIVE_ENTER(env, that, CreatePushButtonWithIconControl_FUNC); |
2718 |
|
| 2719 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
2719 |
#ifndef NO_CreateProgressBarControl |
| 2720 |
if (arg3) if ((lparg3 = getControlButtonContentInfoFields(env, arg3, &_arg3)) == NULL) goto fail; |
2720 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateProgressBarControl) |
| 2721 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
2721 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jint arg3, jint arg4, jboolean arg5, jintArray arg6) |
| 2722 |
rc = (jint)CreatePushButtonWithIconControl((WindowRef)arg0, lparg1, (CFStringRef)arg2, (ControlButtonContentInfo *)lparg3, (ControlPushButtonIconAlignment)arg4, (ControlRef *)lparg5); |
2722 |
{ |
| 2723 |
fail: |
2723 |
Rect _arg1, *lparg1=NULL; |
| 2724 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
2724 |
jint *lparg6=NULL; |
| 2725 |
if (arg3 && lparg3) setControlButtonContentInfoFields(env, arg3, lparg3); |
2725 |
jint rc = 0; |
| 2726 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
2726 |
OS_NATIVE_ENTER(env, that, CreateProgressBarControl_FUNC); |
| 2727 |
OS_NATIVE_EXIT(env, that, CreatePushButtonWithIconControl_FUNC); |
2727 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2728 |
return rc; |
2728 |
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail; |
| 2729 |
} |
2729 |
rc = (jint)CreateProgressBarControl((WindowRef)arg0, lparg1, arg2, arg3, arg4, arg5, (ControlRef *)lparg6); |
| 2730 |
#endif |
2730 |
fail: |
| 2731 |
|
2731 |
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0); |
| 2732 |
#ifndef NO_CreateRadioButtonControl |
2732 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 2733 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateRadioButtonControl) |
2733 |
OS_NATIVE_EXIT(env, that, CreateProgressBarControl_FUNC); |
| 2734 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jint arg3, jboolean arg4, jintArray arg5) |
2734 |
return rc; |
| 2735 |
{ |
2735 |
} |
| 2736 |
Rect _arg1, *lparg1=NULL; |
2736 |
#endif |
| 2737 |
jint *lparg5=NULL; |
2737 |
|
| 2738 |
jint rc = 0; |
2738 |
#ifndef NO_CreatePushButtonControl |
| 2739 |
OS_NATIVE_ENTER(env, that, CreateRadioButtonControl_FUNC); |
2739 |
JNIEXPORT jint JNICALL OS_NATIVE(CreatePushButtonControl) |
| 2740 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
2740 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jintArray arg3) |
| 2741 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
2741 |
{ |
| 2742 |
rc = (jint)CreateRadioButtonControl((WindowRef)arg0, (const Rect *)lparg1, (CFStringRef)arg2, (SInt32)arg3, (Boolean)arg4, (ControlRef *)lparg5); |
2742 |
Rect _arg1, *lparg1=NULL; |
| 2743 |
fail: |
2743 |
jint *lparg3=NULL; |
| 2744 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
2744 |
jint rc = 0; |
| 2745 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
2745 |
OS_NATIVE_ENTER(env, that, CreatePushButtonControl_FUNC); |
| 2746 |
OS_NATIVE_EXIT(env, that, CreateRadioButtonControl_FUNC); |
2746 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2747 |
return rc; |
2747 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 2748 |
} |
2748 |
rc = (jint)CreatePushButtonControl((WindowRef)arg0, (const Rect *)lparg1, (CFStringRef)arg2, (ControlRef *)lparg3); |
| 2749 |
#endif |
2749 |
fail: |
| 2750 |
|
2750 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 2751 |
#ifndef NO_CreateRootControl |
2751 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 2752 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateRootControl) |
2752 |
OS_NATIVE_EXIT(env, that, CreatePushButtonControl_FUNC); |
| 2753 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
2753 |
return rc; |
| 2754 |
{ |
2754 |
} |
| 2755 |
jint *lparg1=NULL; |
2755 |
#endif |
| 2756 |
jint rc = 0; |
2756 |
|
| 2757 |
OS_NATIVE_ENTER(env, that, CreateRootControl_FUNC); |
2757 |
#ifndef NO_CreatePushButtonWithIconControl |
| 2758 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
2758 |
JNIEXPORT jint JNICALL OS_NATIVE(CreatePushButtonWithIconControl) |
| 2759 |
rc = (jint)CreateRootControl((WindowRef)arg0, (ControlRef *)lparg1); |
2759 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jobject arg3, jshort arg4, jintArray arg5) |
| 2760 |
fail: |
2760 |
{ |
| 2761 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
2761 |
Rect _arg1, *lparg1=NULL; |
| 2762 |
OS_NATIVE_EXIT(env, that, CreateRootControl_FUNC); |
2762 |
ControlButtonContentInfo _arg3, *lparg3=NULL; |
| 2763 |
return rc; |
2763 |
jint *lparg5=NULL; |
| 2764 |
} |
2764 |
jint rc = 0; |
| 2765 |
#endif |
2765 |
OS_NATIVE_ENTER(env, that, CreatePushButtonWithIconControl_FUNC); |
| 2766 |
|
2766 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2767 |
#ifndef NO_CreateScrollBarControl |
2767 |
if (arg3) if ((lparg3 = getControlButtonContentInfoFields(env, arg3, &_arg3)) == NULL) goto fail; |
| 2768 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateScrollBarControl) |
2768 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 2769 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jint arg3, jint arg4, jint arg5, jboolean arg6, jint arg7, jintArray arg8) |
2769 |
rc = (jint)CreatePushButtonWithIconControl((WindowRef)arg0, lparg1, (CFStringRef)arg2, (ControlButtonContentInfo *)lparg3, (ControlPushButtonIconAlignment)arg4, (ControlRef *)lparg5); |
| 2770 |
{ |
2770 |
fail: |
| 2771 |
Rect _arg1, *lparg1=NULL; |
2771 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 2772 |
jint *lparg8=NULL; |
2772 |
if (arg3 && lparg3) setControlButtonContentInfoFields(env, arg3, lparg3); |
| 2773 |
jint rc = 0; |
2773 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 2774 |
OS_NATIVE_ENTER(env, that, CreateScrollBarControl_FUNC); |
2774 |
OS_NATIVE_EXIT(env, that, CreatePushButtonWithIconControl_FUNC); |
| 2775 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
2775 |
return rc; |
| 2776 |
if (arg8) if ((lparg8 = (*env)->GetIntArrayElements(env, arg8, NULL)) == NULL) goto fail; |
2776 |
} |
| 2777 |
rc = (jint)CreateScrollBarControl((WindowRef)arg0, lparg1, arg2, arg3, arg4, arg5, arg6, (ControlActionUPP)arg7, (ControlRef *)lparg8); |
2777 |
#endif |
| 2778 |
fail: |
2778 |
|
| 2779 |
if (arg8 && lparg8) (*env)->ReleaseIntArrayElements(env, arg8, lparg8, 0); |
2779 |
#ifndef NO_CreateRadioButtonControl |
| 2780 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
2780 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateRadioButtonControl) |
| 2781 |
OS_NATIVE_EXIT(env, that, CreateScrollBarControl_FUNC); |
2781 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jint arg3, jboolean arg4, jintArray arg5) |
| 2782 |
return rc; |
2782 |
{ |
| 2783 |
} |
2783 |
Rect _arg1, *lparg1=NULL; |
| 2784 |
#endif |
2784 |
jint *lparg5=NULL; |
| 2785 |
|
2785 |
jint rc = 0; |
| 2786 |
#ifndef NO_CreateSeparatorControl |
2786 |
OS_NATIVE_ENTER(env, that, CreateRadioButtonControl_FUNC); |
| 2787 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateSeparatorControl) |
2787 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2788 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jintArray arg2) |
2788 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 2789 |
{ |
2789 |
rc = (jint)CreateRadioButtonControl((WindowRef)arg0, (const Rect *)lparg1, (CFStringRef)arg2, (SInt32)arg3, (Boolean)arg4, (ControlRef *)lparg5); |
| 2790 |
Rect _arg1, *lparg1=NULL; |
2790 |
fail: |
| 2791 |
jint *lparg2=NULL; |
2791 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 2792 |
jint rc = 0; |
2792 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 2793 |
OS_NATIVE_ENTER(env, that, CreateSeparatorControl_FUNC); |
2793 |
OS_NATIVE_EXIT(env, that, CreateRadioButtonControl_FUNC); |
| 2794 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
2794 |
return rc; |
| 2795 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
2795 |
} |
| 2796 |
rc = (jint)CreateSeparatorControl((WindowRef)arg0, lparg1, (ControlRef *)lparg2); |
2796 |
#endif |
| 2797 |
fail: |
2797 |
|
| 2798 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
2798 |
#ifndef NO_CreateRootControl |
| 2799 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
2799 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateRootControl) |
| 2800 |
OS_NATIVE_EXIT(env, that, CreateSeparatorControl_FUNC); |
2800 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 2801 |
return rc; |
2801 |
{ |
| 2802 |
} |
2802 |
jint *lparg1=NULL; |
| 2803 |
#endif |
2803 |
jint rc = 0; |
| 2804 |
|
2804 |
OS_NATIVE_ENTER(env, that, CreateRootControl_FUNC); |
| 2805 |
#ifndef NO_CreateSliderControl |
2805 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 2806 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateSliderControl) |
2806 |
rc = (jint)CreateRootControl((WindowRef)arg0, (ControlRef *)lparg1); |
| 2807 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jint arg3, jint arg4, jint arg5, jshort arg6, jboolean arg7, jint arg8, jintArray arg9) |
2807 |
fail: |
| 2808 |
{ |
2808 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 2809 |
Rect _arg1, *lparg1=NULL; |
2809 |
OS_NATIVE_EXIT(env, that, CreateRootControl_FUNC); |
| 2810 |
jint *lparg9=NULL; |
2810 |
return rc; |
| 2811 |
jint rc = 0; |
2811 |
} |
| 2812 |
OS_NATIVE_ENTER(env, that, CreateSliderControl_FUNC); |
2812 |
#endif |
| 2813 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
2813 |
|
| 2814 |
if (arg9) if ((lparg9 = (*env)->GetIntArrayElements(env, arg9, NULL)) == NULL) goto fail; |
2814 |
#ifndef NO_CreateScrollBarControl |
| 2815 |
rc = (jint)CreateSliderControl((WindowRef)arg0, (const Rect *)lparg1, (SInt32)arg2, (SInt32)arg3, (SInt32)arg4, (ControlSliderOrientation)arg5, (UInt16)arg6, (Boolean)arg7, (ControlActionUPP)arg8, (ControlRef *)lparg9); |
2815 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateScrollBarControl) |
| 2816 |
fail: |
2816 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jint arg3, jint arg4, jint arg5, jboolean arg6, jint arg7, jintArray arg8) |
| 2817 |
if (arg9 && lparg9) (*env)->ReleaseIntArrayElements(env, arg9, lparg9, 0); |
2817 |
{ |
| 2818 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
2818 |
Rect _arg1, *lparg1=NULL; |
| 2819 |
OS_NATIVE_EXIT(env, that, CreateSliderControl_FUNC); |
2819 |
jint *lparg8=NULL; |
| 2820 |
return rc; |
2820 |
jint rc = 0; |
| 2821 |
} |
2821 |
OS_NATIVE_ENTER(env, that, CreateScrollBarControl_FUNC); |
| 2822 |
#endif |
2822 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2823 |
|
2823 |
if (arg8) if ((lparg8 = (*env)->GetIntArrayElements(env, arg8, NULL)) == NULL) goto fail; |
| 2824 |
#ifndef NO_CreateStandardAlert |
2824 |
rc = (jint)CreateScrollBarControl((WindowRef)arg0, lparg1, arg2, arg3, arg4, arg5, arg6, (ControlActionUPP)arg7, (ControlRef *)lparg8); |
| 2825 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateStandardAlert) |
2825 |
fail: |
| 2826 |
(JNIEnv *env, jclass that, jshort arg0, jint arg1, jint arg2, jobject arg3, jintArray arg4) |
2826 |
if (arg8 && lparg8) (*env)->ReleaseIntArrayElements(env, arg8, lparg8, 0); |
| 2827 |
{ |
2827 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 2828 |
AlertStdCFStringAlertParamRec _arg3, *lparg3=NULL; |
2828 |
OS_NATIVE_EXIT(env, that, CreateScrollBarControl_FUNC); |
| 2829 |
jint *lparg4=NULL; |
2829 |
return rc; |
| 2830 |
jint rc = 0; |
2830 |
} |
| 2831 |
OS_NATIVE_ENTER(env, that, CreateStandardAlert_FUNC); |
2831 |
#endif |
| 2832 |
if (arg3) if ((lparg3 = getAlertStdCFStringAlertParamRecFields(env, arg3, &_arg3)) == NULL) goto fail; |
2832 |
|
| 2833 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
2833 |
#ifndef NO_CreateSeparatorControl |
| 2834 |
rc = (jint)CreateStandardAlert((AlertType)arg0, (CFStringRef)arg1, (CFStringRef)arg2, (const AlertStdCFStringAlertParamRec *)lparg3, (DialogRef *)lparg4); |
2834 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateSeparatorControl) |
| 2835 |
fail: |
2835 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jintArray arg2) |
| 2836 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
2836 |
{ |
| 2837 |
if (arg3 && lparg3) setAlertStdCFStringAlertParamRecFields(env, arg3, lparg3); |
2837 |
Rect _arg1, *lparg1=NULL; |
| 2838 |
OS_NATIVE_EXIT(env, that, CreateStandardAlert_FUNC); |
2838 |
jint *lparg2=NULL; |
| 2839 |
return rc; |
2839 |
jint rc = 0; |
| 2840 |
} |
2840 |
OS_NATIVE_ENTER(env, that, CreateSeparatorControl_FUNC); |
| 2841 |
#endif |
2841 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2842 |
|
2842 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 2843 |
#ifndef NO_CreateStaticTextControl |
2843 |
rc = (jint)CreateSeparatorControl((WindowRef)arg0, lparg1, (ControlRef *)lparg2); |
| 2844 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateStaticTextControl) |
2844 |
fail: |
| 2845 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jobject arg3, jintArray arg4) |
2845 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 2846 |
{ |
2846 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 2847 |
Rect _arg1, *lparg1=NULL; |
2847 |
OS_NATIVE_EXIT(env, that, CreateSeparatorControl_FUNC); |
| 2848 |
ControlFontStyleRec _arg3, *lparg3=NULL; |
2848 |
return rc; |
| 2849 |
jint *lparg4=NULL; |
2849 |
} |
| 2850 |
jint rc = 0; |
2850 |
#endif |
| 2851 |
OS_NATIVE_ENTER(env, that, CreateStaticTextControl_FUNC); |
2851 |
|
| 2852 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
2852 |
#ifndef NO_CreateSliderControl |
| 2853 |
if (arg3) if ((lparg3 = getControlFontStyleRecFields(env, arg3, &_arg3)) == NULL) goto fail; |
2853 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateSliderControl) |
| 2854 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
2854 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jint arg3, jint arg4, jint arg5, jshort arg6, jboolean arg7, jint arg8, jintArray arg9) |
| 2855 |
rc = (jint)CreateStaticTextControl((WindowRef)arg0, lparg1, (CFStringRef)arg2, (const ControlFontStyleRec *)lparg3, (ControlRef *)lparg4); |
2855 |
{ |
| 2856 |
fail: |
2856 |
Rect _arg1, *lparg1=NULL; |
| 2857 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
2857 |
jint *lparg9=NULL; |
| 2858 |
if (arg3 && lparg3) setControlFontStyleRecFields(env, arg3, lparg3); |
2858 |
jint rc = 0; |
| 2859 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
2859 |
OS_NATIVE_ENTER(env, that, CreateSliderControl_FUNC); |
| 2860 |
OS_NATIVE_EXIT(env, that, CreateStaticTextControl_FUNC); |
2860 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2861 |
return rc; |
2861 |
if (arg9) if ((lparg9 = (*env)->GetIntArrayElements(env, arg9, NULL)) == NULL) goto fail; |
| 2862 |
} |
2862 |
rc = (jint)CreateSliderControl((WindowRef)arg0, (const Rect *)lparg1, (SInt32)arg2, (SInt32)arg3, (SInt32)arg4, (ControlSliderOrientation)arg5, (UInt16)arg6, (Boolean)arg7, (ControlActionUPP)arg8, (ControlRef *)lparg9); |
| 2863 |
#endif |
2863 |
fail: |
| 2864 |
|
2864 |
if (arg9 && lparg9) (*env)->ReleaseIntArrayElements(env, arg9, lparg9, 0); |
| 2865 |
#ifndef NO_CreateTabsControl |
2865 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 2866 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateTabsControl) |
2866 |
OS_NATIVE_EXIT(env, that, CreateSliderControl_FUNC); |
| 2867 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jshort arg2, jshort arg3, jshort arg4, jint arg5, jintArray arg6) |
2867 |
return rc; |
| 2868 |
{ |
2868 |
} |
| 2869 |
Rect _arg1, *lparg1=NULL; |
2869 |
#endif |
| 2870 |
jint *lparg6=NULL; |
2870 |
|
| 2871 |
jint rc = 0; |
2871 |
#ifndef NO_CreateStandardAlert |
| 2872 |
OS_NATIVE_ENTER(env, that, CreateTabsControl_FUNC); |
2872 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateStandardAlert) |
| 2873 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
2873 |
(JNIEnv *env, jclass that, jshort arg0, jint arg1, jint arg2, jobject arg3, jintArray arg4) |
| 2874 |
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail; |
2874 |
{ |
| 2875 |
rc = (jint)CreateTabsControl((WindowRef)arg0, (const Rect *)lparg1, (ControlTabSize)arg2, (ControlTabDirection)arg3, (UInt16)arg4, (const ControlTabEntry *)arg5, (ControlRef *)lparg6); |
2875 |
AlertStdCFStringAlertParamRec _arg3, *lparg3=NULL; |
| 2876 |
fail: |
2876 |
jint *lparg4=NULL; |
| 2877 |
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0); |
2877 |
jint rc = 0; |
| 2878 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
2878 |
OS_NATIVE_ENTER(env, that, CreateStandardAlert_FUNC); |
| 2879 |
OS_NATIVE_EXIT(env, that, CreateTabsControl_FUNC); |
2879 |
if (arg3) if ((lparg3 = getAlertStdCFStringAlertParamRecFields(env, arg3, &_arg3)) == NULL) goto fail; |
| 2880 |
return rc; |
2880 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 2881 |
} |
2881 |
rc = (jint)CreateStandardAlert((AlertType)arg0, (CFStringRef)arg1, (CFStringRef)arg2, (const AlertStdCFStringAlertParamRec *)lparg3, (DialogRef *)lparg4); |
| 2882 |
#endif |
2882 |
fail: |
| 2883 |
|
2883 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 2884 |
#ifndef NO_CreateTextToUnicodeInfoByEncoding |
2884 |
if (arg3 && lparg3) setAlertStdCFStringAlertParamRecFields(env, arg3, lparg3); |
| 2885 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateTextToUnicodeInfoByEncoding) |
2885 |
OS_NATIVE_EXIT(env, that, CreateStandardAlert_FUNC); |
| 2886 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
2886 |
return rc; |
| 2887 |
{ |
2887 |
} |
| 2888 |
jint *lparg1=NULL; |
2888 |
#endif |
| 2889 |
jint rc = 0; |
2889 |
|
| 2890 |
OS_NATIVE_ENTER(env, that, CreateTextToUnicodeInfoByEncoding_FUNC); |
2890 |
#ifndef NO_CreateStaticTextControl |
| 2891 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
2891 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateStaticTextControl) |
| 2892 |
rc = (jint)CreateTextToUnicodeInfoByEncoding((TextEncoding)arg0, (TextToUnicodeInfo *)lparg1); |
2892 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jobject arg3, jintArray arg4) |
| 2893 |
fail: |
2893 |
{ |
| 2894 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
2894 |
Rect _arg1, *lparg1=NULL; |
| 2895 |
OS_NATIVE_EXIT(env, that, CreateTextToUnicodeInfoByEncoding_FUNC); |
2895 |
ControlFontStyleRec _arg3, *lparg3=NULL; |
| 2896 |
return rc; |
2896 |
jint *lparg4=NULL; |
| 2897 |
} |
2897 |
jint rc = 0; |
| 2898 |
#endif |
2898 |
OS_NATIVE_ENTER(env, that, CreateStaticTextControl_FUNC); |
| 2899 |
|
2899 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2900 |
#ifndef NO_CreateUnicodeToTextInfoByEncoding |
2900 |
if (arg3) if ((lparg3 = getControlFontStyleRecFields(env, arg3, &_arg3)) == NULL) goto fail; |
| 2901 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateUnicodeToTextInfoByEncoding) |
2901 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 2902 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
2902 |
rc = (jint)CreateStaticTextControl((WindowRef)arg0, lparg1, (CFStringRef)arg2, (const ControlFontStyleRec *)lparg3, (ControlRef *)lparg4); |
| 2903 |
{ |
2903 |
fail: |
| 2904 |
jint *lparg1=NULL; |
2904 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 2905 |
jint rc = 0; |
2905 |
if (arg3 && lparg3) setControlFontStyleRecFields(env, arg3, lparg3); |
| 2906 |
OS_NATIVE_ENTER(env, that, CreateUnicodeToTextInfoByEncoding_FUNC); |
2906 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 2907 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
2907 |
OS_NATIVE_EXIT(env, that, CreateStaticTextControl_FUNC); |
| 2908 |
rc = (jint)CreateUnicodeToTextInfoByEncoding((TextEncoding)arg0, (UnicodeToTextInfo *)lparg1); |
2908 |
return rc; |
| 2909 |
fail: |
2909 |
} |
| 2910 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
2910 |
#endif |
| 2911 |
OS_NATIVE_EXIT(env, that, CreateUnicodeToTextInfoByEncoding_FUNC); |
2911 |
|
| 2912 |
return rc; |
2912 |
#ifndef NO_CreateTabsControl |
| 2913 |
} |
2913 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateTabsControl) |
| 2914 |
#endif |
2914 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jshort arg2, jshort arg3, jshort arg4, jint arg5, jintArray arg6) |
| 2915 |
|
2915 |
{ |
| 2916 |
#ifndef NO_CreateUserPaneControl |
2916 |
Rect _arg1, *lparg1=NULL; |
| 2917 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateUserPaneControl) |
2917 |
jint *lparg6=NULL; |
| 2918 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jintArray arg3) |
2918 |
jint rc = 0; |
| 2919 |
{ |
2919 |
OS_NATIVE_ENTER(env, that, CreateTabsControl_FUNC); |
| 2920 |
Rect _arg1, *lparg1=NULL; |
2920 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2921 |
jint *lparg3=NULL; |
2921 |
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail; |
| 2922 |
jint rc = 0; |
2922 |
rc = (jint)CreateTabsControl((WindowRef)arg0, (const Rect *)lparg1, (ControlTabSize)arg2, (ControlTabDirection)arg3, (UInt16)arg4, (const ControlTabEntry *)arg5, (ControlRef *)lparg6); |
| 2923 |
OS_NATIVE_ENTER(env, that, CreateUserPaneControl_FUNC); |
2923 |
fail: |
| 2924 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
2924 |
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0); |
| 2925 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
2925 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 2926 |
rc = (jint)CreateUserPaneControl((WindowRef)arg0, lparg1, arg2, (ControlRef *)lparg3); |
2926 |
OS_NATIVE_EXIT(env, that, CreateTabsControl_FUNC); |
| 2927 |
fail: |
2927 |
return rc; |
| 2928 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
2928 |
} |
| 2929 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
2929 |
#endif |
| 2930 |
OS_NATIVE_EXIT(env, that, CreateUserPaneControl_FUNC); |
2930 |
|
| 2931 |
return rc; |
2931 |
#ifndef NO_CreateTextToUnicodeInfoByEncoding |
| 2932 |
} |
2932 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateTextToUnicodeInfoByEncoding) |
| 2933 |
#endif |
2933 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 2934 |
|
2934 |
{ |
| 2935 |
#ifndef NO_CreateWindowGroup |
2935 |
jint *lparg1=NULL; |
| 2936 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateWindowGroup) |
2936 |
jint rc = 0; |
| 2937 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
2937 |
OS_NATIVE_ENTER(env, that, CreateTextToUnicodeInfoByEncoding_FUNC); |
| 2938 |
{ |
2938 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 2939 |
jint *lparg1=NULL; |
2939 |
rc = (jint)CreateTextToUnicodeInfoByEncoding((TextEncoding)arg0, (TextToUnicodeInfo *)lparg1); |
| 2940 |
jint rc = 0; |
2940 |
fail: |
| 2941 |
OS_NATIVE_ENTER(env, that, CreateWindowGroup_FUNC); |
2941 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 2942 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
2942 |
OS_NATIVE_EXIT(env, that, CreateTextToUnicodeInfoByEncoding_FUNC); |
| 2943 |
rc = (jint)CreateWindowGroup((WindowGroupAttributes)arg0, (WindowGroupRef *)lparg1); |
2943 |
return rc; |
| 2944 |
fail: |
2944 |
} |
| 2945 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
2945 |
#endif |
| 2946 |
OS_NATIVE_EXIT(env, that, CreateWindowGroup_FUNC); |
2946 |
|
| 2947 |
return rc; |
2947 |
#ifndef NO_CreateUnicodeToTextInfoByEncoding |
| 2948 |
} |
2948 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateUnicodeToTextInfoByEncoding) |
| 2949 |
#endif |
2949 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 2950 |
|
2950 |
{ |
| 2951 |
#ifndef NO_DMGetFirstScreenDevice |
2951 |
jint *lparg1=NULL; |
| 2952 |
JNIEXPORT jint JNICALL OS_NATIVE(DMGetFirstScreenDevice) |
2952 |
jint rc = 0; |
| 2953 |
(JNIEnv *env, jclass that, jboolean arg0) |
2953 |
OS_NATIVE_ENTER(env, that, CreateUnicodeToTextInfoByEncoding_FUNC); |
| 2954 |
{ |
2954 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 2955 |
jint rc = 0; |
2955 |
rc = (jint)CreateUnicodeToTextInfoByEncoding((TextEncoding)arg0, (UnicodeToTextInfo *)lparg1); |
| 2956 |
OS_NATIVE_ENTER(env, that, DMGetFirstScreenDevice_FUNC); |
2956 |
fail: |
| 2957 |
rc = (jint)DMGetFirstScreenDevice((Boolean)arg0); |
2957 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 2958 |
OS_NATIVE_EXIT(env, that, DMGetFirstScreenDevice_FUNC); |
2958 |
OS_NATIVE_EXIT(env, that, CreateUnicodeToTextInfoByEncoding_FUNC); |
| 2959 |
return rc; |
2959 |
return rc; |
| 2960 |
} |
2960 |
} |
| 2961 |
#endif |
2961 |
#endif |
| 2962 |
|
2962 |
|
| 2963 |
#ifndef NO_DMGetNextScreenDevice |
2963 |
#ifndef NO_CreateUserPaneControl |
| 2964 |
JNIEXPORT jint JNICALL OS_NATIVE(DMGetNextScreenDevice) |
2964 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateUserPaneControl) |
| 2965 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
2965 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jintArray arg3) |
| 2966 |
{ |
2966 |
{ |
| 2967 |
jint rc = 0; |
2967 |
Rect _arg1, *lparg1=NULL; |
| 2968 |
OS_NATIVE_ENTER(env, that, DMGetNextScreenDevice_FUNC); |
2968 |
jint *lparg3=NULL; |
| 2969 |
rc = (jint)DMGetNextScreenDevice((GDHandle)arg0, (Boolean)arg1); |
2969 |
jint rc = 0; |
| 2970 |
OS_NATIVE_EXIT(env, that, DMGetNextScreenDevice_FUNC); |
2970 |
OS_NATIVE_ENTER(env, that, CreateUserPaneControl_FUNC); |
| 2971 |
return rc; |
2971 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 2972 |
} |
2972 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 2973 |
#endif |
2973 |
rc = (jint)CreateUserPaneControl((WindowRef)arg0, lparg1, arg2, (ControlRef *)lparg3); |
| 2974 |
|
2974 |
fail: |
| 2975 |
#ifndef NO_DeleteMenu |
2975 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 2976 |
JNIEXPORT void JNICALL OS_NATIVE(DeleteMenu) |
2976 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 2977 |
(JNIEnv *env, jclass that, jshort arg0) |
2977 |
OS_NATIVE_EXIT(env, that, CreateUserPaneControl_FUNC); |
| 2978 |
{ |
2978 |
return rc; |
| 2979 |
OS_NATIVE_ENTER(env, that, DeleteMenu_FUNC); |
2979 |
} |
| 2980 |
DeleteMenu((MenuID)arg0); |
2980 |
#endif |
| 2981 |
OS_NATIVE_EXIT(env, that, DeleteMenu_FUNC); |
2981 |
|
| 2982 |
} |
2982 |
#ifndef NO_CreateWindowGroup |
| 2983 |
#endif |
2983 |
JNIEXPORT jint JNICALL OS_NATIVE(CreateWindowGroup) |
| 2984 |
|
2984 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 2985 |
#ifndef NO_DeleteMenuItem |
2985 |
{ |
| 2986 |
JNIEXPORT void JNICALL OS_NATIVE(DeleteMenuItem) |
2986 |
jint *lparg1=NULL; |
| 2987 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1) |
2987 |
jint rc = 0; |
| 2988 |
{ |
2988 |
OS_NATIVE_ENTER(env, that, CreateWindowGroup_FUNC); |
| 2989 |
OS_NATIVE_ENTER(env, that, DeleteMenuItem_FUNC); |
2989 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 2990 |
DeleteMenuItem((MenuRef)arg0, (short)arg1); |
2990 |
rc = (jint)CreateWindowGroup((WindowGroupAttributes)arg0, (WindowGroupRef *)lparg1); |
| 2991 |
OS_NATIVE_EXIT(env, that, DeleteMenuItem_FUNC); |
2991 |
fail: |
| 2992 |
} |
2992 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 2993 |
#endif |
2993 |
OS_NATIVE_EXIT(env, that, CreateWindowGroup_FUNC); |
| 2994 |
|
2994 |
return rc; |
| 2995 |
#ifndef NO_DeleteMenuItems |
2995 |
} |
| 2996 |
JNIEXPORT jint JNICALL OS_NATIVE(DeleteMenuItems) |
2996 |
#endif |
| 2997 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2) |
2997 |
|
| 2998 |
{ |
2998 |
#ifndef NO_DMGetFirstScreenDevice |
| 2999 |
jint rc = 0; |
2999 |
JNIEXPORT jint JNICALL OS_NATIVE(DMGetFirstScreenDevice) |
| 3000 |
OS_NATIVE_ENTER(env, that, DeleteMenuItems_FUNC); |
3000 |
(JNIEnv *env, jclass that, jboolean arg0) |
| 3001 |
rc = (jint)DeleteMenuItems((MenuRef)arg0, (MenuItemIndex)arg1, (ItemCount)arg2); |
3001 |
{ |
| 3002 |
OS_NATIVE_EXIT(env, that, DeleteMenuItems_FUNC); |
3002 |
jint rc = 0; |
| 3003 |
return rc; |
3003 |
OS_NATIVE_ENTER(env, that, DMGetFirstScreenDevice_FUNC); |
| 3004 |
} |
3004 |
rc = (jint)DMGetFirstScreenDevice((Boolean)arg0); |
| 3005 |
#endif |
3005 |
OS_NATIVE_EXIT(env, that, DMGetFirstScreenDevice_FUNC); |
| 3006 |
|
3006 |
return rc; |
| 3007 |
#ifndef NO_DiffRgn |
3007 |
} |
| 3008 |
JNIEXPORT void JNICALL OS_NATIVE(DiffRgn) |
3008 |
#endif |
| 3009 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
3009 |
|
| 3010 |
{ |
3010 |
#ifndef NO_DMGetNextScreenDevice |
| 3011 |
OS_NATIVE_ENTER(env, that, DiffRgn_FUNC); |
3011 |
JNIEXPORT jint JNICALL OS_NATIVE(DMGetNextScreenDevice) |
| 3012 |
DiffRgn((RgnHandle)arg0, (RgnHandle)arg1, (RgnHandle)arg2); |
3012 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
| 3013 |
OS_NATIVE_EXIT(env, that, DiffRgn_FUNC); |
3013 |
{ |
| 3014 |
} |
3014 |
jint rc = 0; |
| 3015 |
#endif |
3015 |
OS_NATIVE_ENTER(env, that, DMGetNextScreenDevice_FUNC); |
| 3016 |
|
3016 |
rc = (jint)DMGetNextScreenDevice((GDHandle)arg0, (Boolean)arg1); |
| 3017 |
#ifndef NO_DisableControl |
3017 |
OS_NATIVE_EXIT(env, that, DMGetNextScreenDevice_FUNC); |
| 3018 |
JNIEXPORT jint JNICALL OS_NATIVE(DisableControl) |
3018 |
return rc; |
| 3019 |
(JNIEnv *env, jclass that, jint arg0) |
3019 |
} |
| 3020 |
{ |
3020 |
#endif |
| 3021 |
jint rc = 0; |
3021 |
|
| 3022 |
OS_NATIVE_ENTER(env, that, DisableControl_FUNC); |
3022 |
#ifndef NO_DeleteMenu |
| 3023 |
rc = (jint)DisableControl((ControlRef)arg0); |
3023 |
JNIEXPORT void JNICALL OS_NATIVE(DeleteMenu) |
| 3024 |
OS_NATIVE_EXIT(env, that, DisableControl_FUNC); |
3024 |
(JNIEnv *env, jclass that, jshort arg0) |
| 3025 |
return rc; |
3025 |
{ |
| 3026 |
} |
3026 |
OS_NATIVE_ENTER(env, that, DeleteMenu_FUNC); |
| 3027 |
#endif |
3027 |
DeleteMenu((MenuID)arg0); |
| 3028 |
|
3028 |
OS_NATIVE_EXIT(env, that, DeleteMenu_FUNC); |
| 3029 |
#ifndef NO_DisableMenuCommand |
3029 |
} |
| 3030 |
JNIEXPORT void JNICALL OS_NATIVE(DisableMenuCommand) |
3030 |
#endif |
| 3031 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
3031 |
|
| 3032 |
{ |
3032 |
#ifndef NO_DeleteMenuItem |
| 3033 |
OS_NATIVE_ENTER(env, that, DisableMenuCommand_FUNC); |
3033 |
JNIEXPORT void JNICALL OS_NATIVE(DeleteMenuItem) |
| 3034 |
DisableMenuCommand((MenuRef)arg0, (MenuCommand)arg1); |
3034 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1) |
| 3035 |
OS_NATIVE_EXIT(env, that, DisableMenuCommand_FUNC); |
3035 |
{ |
| 3036 |
} |
3036 |
OS_NATIVE_ENTER(env, that, DeleteMenuItem_FUNC); |
| 3037 |
#endif |
3037 |
DeleteMenuItem((MenuRef)arg0, (short)arg1); |
| 3038 |
|
3038 |
OS_NATIVE_EXIT(env, that, DeleteMenuItem_FUNC); |
| 3039 |
#ifndef NO_DisableMenuItem |
3039 |
} |
| 3040 |
JNIEXPORT void JNICALL OS_NATIVE(DisableMenuItem) |
3040 |
#endif |
| 3041 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1) |
3041 |
|
| 3042 |
{ |
3042 |
#ifndef NO_DeleteMenuItems |
| 3043 |
OS_NATIVE_ENTER(env, that, DisableMenuItem_FUNC); |
3043 |
JNIEXPORT jint JNICALL OS_NATIVE(DeleteMenuItems) |
| 3044 |
DisableMenuItem((MenuRef)arg0, (MenuItemIndex)arg1); |
3044 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2) |
| 3045 |
OS_NATIVE_EXIT(env, that, DisableMenuItem_FUNC); |
3045 |
{ |
| 3046 |
} |
3046 |
jint rc = 0; |
| 3047 |
#endif |
3047 |
OS_NATIVE_ENTER(env, that, DeleteMenuItems_FUNC); |
| 3048 |
|
3048 |
rc = (jint)DeleteMenuItems((MenuRef)arg0, (MenuItemIndex)arg1, (ItemCount)arg2); |
| 3049 |
#ifndef NO_DisposeControl |
3049 |
OS_NATIVE_EXIT(env, that, DeleteMenuItems_FUNC); |
| 3050 |
JNIEXPORT void JNICALL OS_NATIVE(DisposeControl) |
3050 |
return rc; |
| 3051 |
(JNIEnv *env, jclass that, jint arg0) |
3051 |
} |
| 3052 |
{ |
3052 |
#endif |
| 3053 |
OS_NATIVE_ENTER(env, that, DisposeControl_FUNC); |
3053 |
|
| 3054 |
DisposeControl((ControlRef)arg0); |
3054 |
#ifndef NO_DiffRgn |
| 3055 |
OS_NATIVE_EXIT(env, that, DisposeControl_FUNC); |
3055 |
JNIEXPORT void JNICALL OS_NATIVE(DiffRgn) |
| 3056 |
} |
3056 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 3057 |
#endif |
3057 |
{ |
| 3058 |
|
3058 |
OS_NATIVE_ENTER(env, that, DiffRgn_FUNC); |
| 3059 |
#ifndef NO_DisposeDrag |
3059 |
DiffRgn((RgnHandle)arg0, (RgnHandle)arg1, (RgnHandle)arg2); |
| 3060 |
JNIEXPORT jint JNICALL OS_NATIVE(DisposeDrag) |
3060 |
OS_NATIVE_EXIT(env, that, DiffRgn_FUNC); |
| 3061 |
(JNIEnv *env, jclass that, jint arg0) |
3061 |
} |
| 3062 |
{ |
3062 |
#endif |
| 3063 |
jint rc = 0; |
3063 |
|
| 3064 |
OS_NATIVE_ENTER(env, that, DisposeDrag_FUNC); |
3064 |
#ifndef NO_DisableControl |
| 3065 |
rc = (jint)DisposeDrag((DragRef)arg0); |
3065 |
JNIEXPORT jint JNICALL OS_NATIVE(DisableControl) |
| 3066 |
OS_NATIVE_EXIT(env, that, DisposeDrag_FUNC); |
3066 |
(JNIEnv *env, jclass that, jint arg0) |
| 3067 |
return rc; |
3067 |
{ |
| 3068 |
} |
3068 |
jint rc = 0; |
| 3069 |
#endif |
3069 |
OS_NATIVE_ENTER(env, that, DisableControl_FUNC); |
| 3070 |
|
3070 |
rc = (jint)DisableControl((ControlRef)arg0); |
| 3071 |
#ifndef NO_DisposeGWorld |
3071 |
OS_NATIVE_EXIT(env, that, DisableControl_FUNC); |
| 3072 |
JNIEXPORT void JNICALL OS_NATIVE(DisposeGWorld) |
3072 |
return rc; |
| 3073 |
(JNIEnv *env, jclass that, jint arg0) |
3073 |
} |
| 3074 |
{ |
3074 |
#endif |
| 3075 |
OS_NATIVE_ENTER(env, that, DisposeGWorld_FUNC); |
3075 |
|
| 3076 |
DisposeGWorld((GWorldPtr)arg0); |
3076 |
#ifndef NO_DisableMenuCommand |
| 3077 |
OS_NATIVE_EXIT(env, that, DisposeGWorld_FUNC); |
3077 |
JNIEXPORT void JNICALL OS_NATIVE(DisableMenuCommand) |
| 3078 |
} |
3078 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 3079 |
#endif |
3079 |
{ |
| 3080 |
|
3080 |
OS_NATIVE_ENTER(env, that, DisableMenuCommand_FUNC); |
| 3081 |
#ifndef NO_DisposeHandle |
3081 |
DisableMenuCommand((MenuRef)arg0, (MenuCommand)arg1); |
| 3082 |
JNIEXPORT void JNICALL OS_NATIVE(DisposeHandle) |
3082 |
OS_NATIVE_EXIT(env, that, DisableMenuCommand_FUNC); |
| 3083 |
(JNIEnv *env, jclass that, jint arg0) |
3083 |
} |
| 3084 |
{ |
3084 |
#endif |
| 3085 |
OS_NATIVE_ENTER(env, that, DisposeHandle_FUNC); |
3085 |
|
| 3086 |
DisposeHandle((Handle)arg0); |
3086 |
#ifndef NO_DisableMenuItem |
| 3087 |
OS_NATIVE_EXIT(env, that, DisposeHandle_FUNC); |
3087 |
JNIEXPORT void JNICALL OS_NATIVE(DisableMenuItem) |
| 3088 |
} |
3088 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1) |
| 3089 |
#endif |
3089 |
{ |
| 3090 |
|
3090 |
OS_NATIVE_ENTER(env, that, DisableMenuItem_FUNC); |
| 3091 |
#ifndef NO_DisposeMenu |
3091 |
DisableMenuItem((MenuRef)arg0, (MenuItemIndex)arg1); |
| 3092 |
JNIEXPORT void JNICALL OS_NATIVE(DisposeMenu) |
3092 |
OS_NATIVE_EXIT(env, that, DisableMenuItem_FUNC); |
| 3093 |
(JNIEnv *env, jclass that, jint arg0) |
3093 |
} |
| 3094 |
{ |
3094 |
#endif |
| 3095 |
OS_NATIVE_ENTER(env, that, DisposeMenu_FUNC); |
3095 |
|
| 3096 |
DisposeMenu((MenuRef)arg0); |
3096 |
#ifndef NO_DisposeControl |
| 3097 |
OS_NATIVE_EXIT(env, that, DisposeMenu_FUNC); |
3097 |
JNIEXPORT void JNICALL OS_NATIVE(DisposeControl) |
| 3098 |
} |
3098 |
(JNIEnv *env, jclass that, jint arg0) |
| 3099 |
#endif |
3099 |
{ |
| 3100 |
|
3100 |
OS_NATIVE_ENTER(env, that, DisposeControl_FUNC); |
| 3101 |
#ifndef NO_DisposePtr |
3101 |
DisposeControl((ControlRef)arg0); |
| 3102 |
JNIEXPORT void JNICALL OS_NATIVE(DisposePtr) |
3102 |
OS_NATIVE_EXIT(env, that, DisposeControl_FUNC); |
| 3103 |
(JNIEnv *env, jclass that, jint arg0) |
3103 |
} |
| 3104 |
{ |
3104 |
#endif |
| 3105 |
OS_NATIVE_ENTER(env, that, DisposePtr_FUNC); |
3105 |
|
| 3106 |
DisposePtr((Ptr)arg0); |
3106 |
#ifndef NO_DisposeDrag |
| 3107 |
OS_NATIVE_EXIT(env, that, DisposePtr_FUNC); |
3107 |
JNIEXPORT jint JNICALL OS_NATIVE(DisposeDrag) |
| 3108 |
} |
3108 |
(JNIEnv *env, jclass that, jint arg0) |
| 3109 |
#endif |
3109 |
{ |
| 3110 |
|
3110 |
jint rc = 0; |
| 3111 |
#ifndef NO_DisposeRgn |
3111 |
OS_NATIVE_ENTER(env, that, DisposeDrag_FUNC); |
| 3112 |
JNIEXPORT void JNICALL OS_NATIVE(DisposeRgn) |
3112 |
rc = (jint)DisposeDrag((DragRef)arg0); |
| 3113 |
(JNIEnv *env, jclass that, jint arg0) |
3113 |
OS_NATIVE_EXIT(env, that, DisposeDrag_FUNC); |
| 3114 |
{ |
3114 |
return rc; |
| 3115 |
OS_NATIVE_ENTER(env, that, DisposeRgn_FUNC); |
3115 |
} |
| 3116 |
DisposeRgn((RgnHandle)arg0); |
3116 |
#endif |
| 3117 |
OS_NATIVE_EXIT(env, that, DisposeRgn_FUNC); |
3117 |
|
| 3118 |
} |
3118 |
#ifndef NO_DisposeGWorld |
| 3119 |
#endif |
3119 |
JNIEXPORT void JNICALL OS_NATIVE(DisposeGWorld) |
| 3120 |
|
3120 |
(JNIEnv *env, jclass that, jint arg0) |
| 3121 |
#ifndef NO_DisposeTextToUnicodeInfo |
3121 |
{ |
| 3122 |
JNIEXPORT jint JNICALL OS_NATIVE(DisposeTextToUnicodeInfo) |
3122 |
OS_NATIVE_ENTER(env, that, DisposeGWorld_FUNC); |
| 3123 |
(JNIEnv *env, jclass that, jintArray arg0) |
3123 |
DisposeGWorld((GWorldPtr)arg0); |
| 3124 |
{ |
3124 |
OS_NATIVE_EXIT(env, that, DisposeGWorld_FUNC); |
| 3125 |
jint *lparg0=NULL; |
3125 |
} |
| 3126 |
jint rc = 0; |
3126 |
#endif |
| 3127 |
OS_NATIVE_ENTER(env, that, DisposeTextToUnicodeInfo_FUNC); |
3127 |
|
| 3128 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
3128 |
#ifndef NO_DisposeHandle |
| 3129 |
rc = (jint)DisposeTextToUnicodeInfo((TextToUnicodeInfo *)lparg0); |
3129 |
JNIEXPORT void JNICALL OS_NATIVE(DisposeHandle) |
| 3130 |
fail: |
3130 |
(JNIEnv *env, jclass that, jint arg0) |
| 3131 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
3131 |
{ |
| 3132 |
OS_NATIVE_EXIT(env, that, DisposeTextToUnicodeInfo_FUNC); |
3132 |
OS_NATIVE_ENTER(env, that, DisposeHandle_FUNC); |
| 3133 |
return rc; |
3133 |
DisposeHandle((Handle)arg0); |
| 3134 |
} |
3134 |
OS_NATIVE_EXIT(env, that, DisposeHandle_FUNC); |
| 3135 |
#endif |
3135 |
} |
| 3136 |
|
3136 |
#endif |
| 3137 |
#ifndef NO_DisposeUnicodeToTextInfo |
3137 |
|
| 3138 |
JNIEXPORT jint JNICALL OS_NATIVE(DisposeUnicodeToTextInfo) |
3138 |
#ifndef NO_DisposeMenu |
| 3139 |
(JNIEnv *env, jclass that, jintArray arg0) |
3139 |
JNIEXPORT void JNICALL OS_NATIVE(DisposeMenu) |
| 3140 |
{ |
3140 |
(JNIEnv *env, jclass that, jint arg0) |
| 3141 |
jint *lparg0=NULL; |
3141 |
{ |
| 3142 |
jint rc = 0; |
3142 |
OS_NATIVE_ENTER(env, that, DisposeMenu_FUNC); |
| 3143 |
OS_NATIVE_ENTER(env, that, DisposeUnicodeToTextInfo_FUNC); |
3143 |
DisposeMenu((MenuRef)arg0); |
| 3144 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
3144 |
OS_NATIVE_EXIT(env, that, DisposeMenu_FUNC); |
| 3145 |
rc = (jint)DisposeUnicodeToTextInfo((UnicodeToTextInfo *)lparg0); |
3145 |
} |
| 3146 |
fail: |
3146 |
#endif |
| 3147 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
3147 |
|
| 3148 |
OS_NATIVE_EXIT(env, that, DisposeUnicodeToTextInfo_FUNC); |
3148 |
#ifndef NO_DisposePtr |
| 3149 |
return rc; |
3149 |
JNIEXPORT void JNICALL OS_NATIVE(DisposePtr) |
| 3150 |
} |
3150 |
(JNIEnv *env, jclass that, jint arg0) |
| 3151 |
#endif |
3151 |
{ |
| 3152 |
|
3152 |
OS_NATIVE_ENTER(env, that, DisposePtr_FUNC); |
| 3153 |
#ifndef NO_DisposeWindow |
3153 |
DisposePtr((Ptr)arg0); |
| 3154 |
JNIEXPORT void JNICALL OS_NATIVE(DisposeWindow) |
3154 |
OS_NATIVE_EXIT(env, that, DisposePtr_FUNC); |
| 3155 |
(JNIEnv *env, jclass that, jint arg0) |
3155 |
} |
| 3156 |
{ |
3156 |
#endif |
| 3157 |
OS_NATIVE_ENTER(env, that, DisposeWindow_FUNC); |
3157 |
|
| 3158 |
DisposeWindow((WindowRef)arg0); |
3158 |
#ifndef NO_DisposeRgn |
| 3159 |
OS_NATIVE_EXIT(env, that, DisposeWindow_FUNC); |
3159 |
JNIEXPORT void JNICALL OS_NATIVE(DisposeRgn) |
| 3160 |
} |
3160 |
(JNIEnv *env, jclass that, jint arg0) |
| 3161 |
#endif |
3161 |
{ |
| 3162 |
|
3162 |
OS_NATIVE_ENTER(env, that, DisposeRgn_FUNC); |
| 3163 |
#ifndef NO_DrawControlInCurrentPort |
3163 |
DisposeRgn((RgnHandle)arg0); |
| 3164 |
JNIEXPORT void JNICALL OS_NATIVE(DrawControlInCurrentPort) |
3164 |
OS_NATIVE_EXIT(env, that, DisposeRgn_FUNC); |
| 3165 |
(JNIEnv *env, jclass that, jint arg0) |
3165 |
} |
| 3166 |
{ |
3166 |
#endif |
| 3167 |
OS_NATIVE_ENTER(env, that, DrawControlInCurrentPort_FUNC); |
3167 |
|
| 3168 |
DrawControlInCurrentPort((ControlRef)arg0); |
3168 |
#ifndef NO_DisposeTextToUnicodeInfo |
| 3169 |
OS_NATIVE_EXIT(env, that, DrawControlInCurrentPort_FUNC); |
3169 |
JNIEXPORT jint JNICALL OS_NATIVE(DisposeTextToUnicodeInfo) |
| 3170 |
} |
3170 |
(JNIEnv *env, jclass that, jintArray arg0) |
| 3171 |
#endif |
3171 |
{ |
| 3172 |
|
3172 |
jint *lparg0=NULL; |
| 3173 |
#ifndef NO_DrawMenuBar |
3173 |
jint rc = 0; |
| 3174 |
JNIEXPORT void JNICALL OS_NATIVE(DrawMenuBar) |
3174 |
OS_NATIVE_ENTER(env, that, DisposeTextToUnicodeInfo_FUNC); |
| 3175 |
(JNIEnv *env, jclass that) |
3175 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 3176 |
{ |
3176 |
rc = (jint)DisposeTextToUnicodeInfo((TextToUnicodeInfo *)lparg0); |
| 3177 |
OS_NATIVE_ENTER(env, that, DrawMenuBar_FUNC); |
3177 |
fail: |
| 3178 |
DrawMenuBar(); |
3178 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 3179 |
OS_NATIVE_EXIT(env, that, DrawMenuBar_FUNC); |
3179 |
OS_NATIVE_EXIT(env, that, DisposeTextToUnicodeInfo_FUNC); |
| 3180 |
} |
3180 |
return rc; |
| 3181 |
#endif |
3181 |
} |
| 3182 |
|
3182 |
#endif |
| 3183 |
#ifndef NO_DrawText |
3183 |
|
| 3184 |
JNIEXPORT void JNICALL OS_NATIVE(DrawText) |
3184 |
#ifndef NO_DisposeUnicodeToTextInfo |
| 3185 |
(JNIEnv *env, jclass that, jbyteArray arg0, jshort arg1, jshort arg2) |
3185 |
JNIEXPORT jint JNICALL OS_NATIVE(DisposeUnicodeToTextInfo) |
| 3186 |
{ |
3186 |
(JNIEnv *env, jclass that, jintArray arg0) |
| 3187 |
jbyte *lparg0=NULL; |
3187 |
{ |
| 3188 |
OS_NATIVE_ENTER(env, that, DrawText_FUNC); |
3188 |
jint *lparg0=NULL; |
| 3189 |
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; |
3189 |
jint rc = 0; |
| 3190 |
DrawText((const void *)lparg0, (short)arg1, (short)arg2); |
3190 |
OS_NATIVE_ENTER(env, that, DisposeUnicodeToTextInfo_FUNC); |
| 3191 |
fail: |
3191 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 3192 |
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); |
3192 |
rc = (jint)DisposeUnicodeToTextInfo((UnicodeToTextInfo *)lparg0); |
| 3193 |
OS_NATIVE_EXIT(env, that, DrawText_FUNC); |
3193 |
fail: |
| 3194 |
} |
3194 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 3195 |
#endif |
3195 |
OS_NATIVE_EXIT(env, that, DisposeUnicodeToTextInfo_FUNC); |
| 3196 |
|
3196 |
return rc; |
| 3197 |
#ifndef NO_DrawThemeButton |
3197 |
} |
| 3198 |
JNIEXPORT jint JNICALL OS_NATIVE(DrawThemeButton) |
3198 |
#endif |
| 3199 |
(JNIEnv *env, jclass that, jobject arg0, jshort arg1, jobject arg2, jobject arg3, jint arg4, jint arg5, jint arg6) |
3199 |
|
| 3200 |
{ |
3200 |
#ifndef NO_DisposeWindow |
| 3201 |
Rect _arg0, *lparg0=NULL; |
3201 |
JNIEXPORT void JNICALL OS_NATIVE(DisposeWindow) |
| 3202 |
ThemeButtonDrawInfo _arg2, *lparg2=NULL; |
3202 |
(JNIEnv *env, jclass that, jint arg0) |
| 3203 |
ThemeButtonDrawInfo _arg3, *lparg3=NULL; |
3203 |
{ |
| 3204 |
jint rc = 0; |
3204 |
OS_NATIVE_ENTER(env, that, DisposeWindow_FUNC); |
| 3205 |
OS_NATIVE_ENTER(env, that, DrawThemeButton_FUNC); |
3205 |
DisposeWindow((WindowRef)arg0); |
| 3206 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
3206 |
OS_NATIVE_EXIT(env, that, DisposeWindow_FUNC); |
| 3207 |
if (arg2) if ((lparg2 = getThemeButtonDrawInfoFields(env, arg2, &_arg2)) == NULL) goto fail; |
3207 |
} |
| 3208 |
if (arg3) if ((lparg3 = getThemeButtonDrawInfoFields(env, arg3, &_arg3)) == NULL) goto fail; |
3208 |
#endif |
| 3209 |
rc = (jint)DrawThemeButton((Rect *)lparg0, (ThemeButtonKind)arg1, (const ThemeButtonDrawInfo *)lparg2, (const ThemeButtonDrawInfo *)lparg3, (ThemeEraseUPP)arg4, (ThemeButtonDrawUPP)arg5, (UInt32)arg6); |
3209 |
|
| 3210 |
fail: |
3210 |
#ifndef NO_DrawControlInCurrentPort |
| 3211 |
if (arg3 && lparg3) setThemeButtonDrawInfoFields(env, arg3, lparg3); |
3211 |
JNIEXPORT void JNICALL OS_NATIVE(DrawControlInCurrentPort) |
| 3212 |
if (arg2 && lparg2) setThemeButtonDrawInfoFields(env, arg2, lparg2); |
3212 |
(JNIEnv *env, jclass that, jint arg0) |
| 3213 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
3213 |
{ |
| 3214 |
OS_NATIVE_EXIT(env, that, DrawThemeButton_FUNC); |
3214 |
OS_NATIVE_ENTER(env, that, DrawControlInCurrentPort_FUNC); |
| 3215 |
return rc; |
3215 |
DrawControlInCurrentPort((ControlRef)arg0); |
| 3216 |
} |
3216 |
OS_NATIVE_EXIT(env, that, DrawControlInCurrentPort_FUNC); |
| 3217 |
#endif |
3217 |
} |
| 3218 |
|
3218 |
#endif |
| 3219 |
#ifndef NO_DrawThemeEditTextFrame |
3219 |
|
| 3220 |
JNIEXPORT jint JNICALL OS_NATIVE(DrawThemeEditTextFrame) |
3220 |
#ifndef NO_DrawMenuBar |
| 3221 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1) |
3221 |
JNIEXPORT void JNICALL OS_NATIVE(DrawMenuBar) |
| 3222 |
{ |
3222 |
(JNIEnv *env, jclass that) |
| 3223 |
Rect _arg0, *lparg0=NULL; |
3223 |
{ |
| 3224 |
jint rc = 0; |
3224 |
OS_NATIVE_ENTER(env, that, DrawMenuBar_FUNC); |
| 3225 |
OS_NATIVE_ENTER(env, that, DrawThemeEditTextFrame_FUNC); |
3225 |
DrawMenuBar(); |
| 3226 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
3226 |
OS_NATIVE_EXIT(env, that, DrawMenuBar_FUNC); |
| 3227 |
rc = (jint)DrawThemeEditTextFrame((const Rect *)lparg0, (ThemeDrawState)arg1); |
3227 |
} |
| 3228 |
fail: |
3228 |
#endif |
| 3229 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
3229 |
|
| 3230 |
OS_NATIVE_EXIT(env, that, DrawThemeEditTextFrame_FUNC); |
3230 |
#ifndef NO_DrawText |
| 3231 |
return rc; |
3231 |
JNIEXPORT void JNICALL OS_NATIVE(DrawText) |
| 3232 |
} |
3232 |
(JNIEnv *env, jclass that, jbyteArray arg0, jshort arg1, jshort arg2) |
| 3233 |
#endif |
3233 |
{ |
| 3234 |
|
3234 |
jbyte *lparg0=NULL; |
| 3235 |
#ifndef NO_DrawThemeFocusRect |
3235 |
OS_NATIVE_ENTER(env, that, DrawText_FUNC); |
| 3236 |
JNIEXPORT jint JNICALL OS_NATIVE(DrawThemeFocusRect) |
3236 |
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 3237 |
(JNIEnv *env, jclass that, jobject arg0, jboolean arg1) |
3237 |
DrawText((const void *)lparg0, (short)arg1, (short)arg2); |
| 3238 |
{ |
3238 |
fail: |
| 3239 |
Rect _arg0, *lparg0=NULL; |
3239 |
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); |
| 3240 |
jint rc = 0; |
3240 |
OS_NATIVE_EXIT(env, that, DrawText_FUNC); |
| 3241 |
OS_NATIVE_ENTER(env, that, DrawThemeFocusRect_FUNC); |
3241 |
} |
| 3242 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
3242 |
#endif |
| 3243 |
rc = (jint)DrawThemeFocusRect((const Rect *)lparg0, (Boolean)arg1); |
3243 |
|
| 3244 |
fail: |
3244 |
#ifndef NO_DrawThemeButton |
| 3245 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
3245 |
JNIEXPORT jint JNICALL OS_NATIVE(DrawThemeButton) |
| 3246 |
OS_NATIVE_EXIT(env, that, DrawThemeFocusRect_FUNC); |
3246 |
(JNIEnv *env, jclass that, jobject arg0, jshort arg1, jobject arg2, jobject arg3, jint arg4, jint arg5, jint arg6) |
| 3247 |
return rc; |
3247 |
{ |
| 3248 |
} |
3248 |
Rect _arg0, *lparg0=NULL; |
| 3249 |
#endif |
3249 |
ThemeButtonDrawInfo _arg2, *lparg2=NULL; |
| 3250 |
|
3250 |
ThemeButtonDrawInfo _arg3, *lparg3=NULL; |
| 3251 |
#ifndef NO_DrawThemePopupArrow |
3251 |
jint rc = 0; |
| 3252 |
JNIEXPORT jint JNICALL OS_NATIVE(DrawThemePopupArrow) |
3252 |
OS_NATIVE_ENTER(env, that, DrawThemeButton_FUNC); |
| 3253 |
(JNIEnv *env, jclass that, jobject arg0, jshort arg1, jshort arg2, jint arg3, jint arg4, jint arg5) |
3253 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 3254 |
{ |
3254 |
if (arg2) if ((lparg2 = getThemeButtonDrawInfoFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 3255 |
Rect _arg0, *lparg0=NULL; |
3255 |
if (arg3) if ((lparg3 = getThemeButtonDrawInfoFields(env, arg3, &_arg3)) == NULL) goto fail; |
| 3256 |
jint rc = 0; |
3256 |
rc = (jint)DrawThemeButton((Rect *)lparg0, (ThemeButtonKind)arg1, (const ThemeButtonDrawInfo *)lparg2, (const ThemeButtonDrawInfo *)lparg3, (ThemeEraseUPP)arg4, (ThemeButtonDrawUPP)arg5, (UInt32)arg6); |
| 3257 |
OS_NATIVE_ENTER(env, that, DrawThemePopupArrow_FUNC); |
3257 |
fail: |
| 3258 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
3258 |
if (arg3 && lparg3) setThemeButtonDrawInfoFields(env, arg3, lparg3); |
| 3259 |
rc = (jint)DrawThemePopupArrow(lparg0, (ThemeArrowOrientation)arg1, (ThemePopupArrowSize)arg2, (ThemeDrawState)arg3, (ThemeEraseUPP)arg4, (UInt32)arg5); |
3259 |
if (arg2 && lparg2) setThemeButtonDrawInfoFields(env, arg2, lparg2); |
| 3260 |
fail: |
3260 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 3261 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
3261 |
OS_NATIVE_EXIT(env, that, DrawThemeButton_FUNC); |
| 3262 |
OS_NATIVE_EXIT(env, that, DrawThemePopupArrow_FUNC); |
3262 |
return rc; |
| 3263 |
return rc; |
3263 |
} |
| 3264 |
} |
3264 |
#endif |
| 3265 |
#endif |
3265 |
|
| 3266 |
|
3266 |
#ifndef NO_DrawThemeEditTextFrame |
| 3267 |
#ifndef NO_DrawThemeSeparator |
3267 |
JNIEXPORT jint JNICALL OS_NATIVE(DrawThemeEditTextFrame) |
| 3268 |
JNIEXPORT jint JNICALL OS_NATIVE(DrawThemeSeparator) |
3268 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1) |
| 3269 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1) |
3269 |
{ |
| 3270 |
{ |
3270 |
Rect _arg0, *lparg0=NULL; |
| 3271 |
Rect _arg0, *lparg0=NULL; |
3271 |
jint rc = 0; |
| 3272 |
jint rc = 0; |
3272 |
OS_NATIVE_ENTER(env, that, DrawThemeEditTextFrame_FUNC); |
| 3273 |
OS_NATIVE_ENTER(env, that, DrawThemeSeparator_FUNC); |
3273 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 3274 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
3274 |
rc = (jint)DrawThemeEditTextFrame((const Rect *)lparg0, (ThemeDrawState)arg1); |
| 3275 |
rc = (jint)DrawThemeSeparator((const Rect *)lparg0, (ThemeDrawState)arg1); |
3275 |
fail: |
| 3276 |
fail: |
3276 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 3277 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
3277 |
OS_NATIVE_EXIT(env, that, DrawThemeEditTextFrame_FUNC); |
| 3278 |
OS_NATIVE_EXIT(env, that, DrawThemeSeparator_FUNC); |
3278 |
return rc; |
| 3279 |
return rc; |
3279 |
} |
| 3280 |
} |
3280 |
#endif |
| 3281 |
#endif |
3281 |
|
| 3282 |
|
3282 |
#ifndef NO_DrawThemeFocusRect |
| 3283 |
#ifndef NO_DrawThemeTextBox |
3283 |
JNIEXPORT jint JNICALL OS_NATIVE(DrawThemeFocusRect) |
| 3284 |
JNIEXPORT jint JNICALL OS_NATIVE(DrawThemeTextBox) |
3284 |
(JNIEnv *env, jclass that, jobject arg0, jboolean arg1) |
| 3285 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2, jboolean arg3, jobject arg4, jshort arg5, jint arg6) |
3285 |
{ |
| 3286 |
{ |
3286 |
Rect _arg0, *lparg0=NULL; |
| 3287 |
Rect _arg4, *lparg4=NULL; |
3287 |
jint rc = 0; |
| 3288 |
jint rc = 0; |
3288 |
OS_NATIVE_ENTER(env, that, DrawThemeFocusRect_FUNC); |
| 3289 |
OS_NATIVE_ENTER(env, that, DrawThemeTextBox_FUNC); |
3289 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 3290 |
if (arg4) if ((lparg4 = getRectFields(env, arg4, &_arg4)) == NULL) goto fail; |
3290 |
rc = (jint)DrawThemeFocusRect((const Rect *)lparg0, (Boolean)arg1); |
| 3291 |
rc = (jint)DrawThemeTextBox((CFStringRef)arg0, (ThemeFontID)arg1, (ThemeDrawState)arg2, (Boolean)arg3, (const Rect *)lparg4, (SInt16)arg5, (void *)arg6); |
3291 |
fail: |
| 3292 |
fail: |
3292 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 3293 |
if (arg4 && lparg4) setRectFields(env, arg4, lparg4); |
3293 |
OS_NATIVE_EXIT(env, that, DrawThemeFocusRect_FUNC); |
| 3294 |
OS_NATIVE_EXIT(env, that, DrawThemeTextBox_FUNC); |
3294 |
return rc; |
| 3295 |
return rc; |
3295 |
} |
| 3296 |
} |
3296 |
#endif |
| 3297 |
#endif |
3297 |
|
| 3298 |
|
3298 |
#ifndef NO_DrawThemePopupArrow |
| 3299 |
#ifndef NO_EmbedControl |
3299 |
JNIEXPORT jint JNICALL OS_NATIVE(DrawThemePopupArrow) |
| 3300 |
JNIEXPORT jint JNICALL OS_NATIVE(EmbedControl) |
3300 |
(JNIEnv *env, jclass that, jobject arg0, jshort arg1, jshort arg2, jint arg3, jint arg4, jint arg5) |
| 3301 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
3301 |
{ |
| 3302 |
{ |
3302 |
Rect _arg0, *lparg0=NULL; |
| 3303 |
jint rc = 0; |
3303 |
jint rc = 0; |
| 3304 |
OS_NATIVE_ENTER(env, that, EmbedControl_FUNC); |
3304 |
OS_NATIVE_ENTER(env, that, DrawThemePopupArrow_FUNC); |
| 3305 |
rc = (jint)EmbedControl((ControlRef)arg0, (ControlRef)arg1); |
3305 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 3306 |
OS_NATIVE_EXIT(env, that, EmbedControl_FUNC); |
3306 |
rc = (jint)DrawThemePopupArrow(lparg0, (ThemeArrowOrientation)arg1, (ThemePopupArrowSize)arg2, (ThemeDrawState)arg3, (ThemeEraseUPP)arg4, (UInt32)arg5); |
| 3307 |
return rc; |
3307 |
fail: |
| 3308 |
} |
3308 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 3309 |
#endif |
3309 |
OS_NATIVE_EXIT(env, that, DrawThemePopupArrow_FUNC); |
| 3310 |
|
3310 |
return rc; |
| 3311 |
#ifndef NO_EmptyRect |
3311 |
} |
| 3312 |
JNIEXPORT jboolean JNICALL OS_NATIVE(EmptyRect) |
3312 |
#endif |
| 3313 |
(JNIEnv *env, jclass that, jobject arg0) |
3313 |
|
| 3314 |
{ |
3314 |
#ifndef NO_DrawThemeSeparator |
| 3315 |
Rect _arg0, *lparg0=NULL; |
3315 |
JNIEXPORT jint JNICALL OS_NATIVE(DrawThemeSeparator) |
| 3316 |
jboolean rc = 0; |
3316 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1) |
| 3317 |
OS_NATIVE_ENTER(env, that, EmptyRect_FUNC); |
3317 |
{ |
| 3318 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
3318 |
Rect _arg0, *lparg0=NULL; |
| 3319 |
rc = (jboolean)EmptyRect((const Rect *)lparg0); |
3319 |
jint rc = 0; |
| 3320 |
fail: |
3320 |
OS_NATIVE_ENTER(env, that, DrawThemeSeparator_FUNC); |
| 3321 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
3321 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 3322 |
OS_NATIVE_EXIT(env, that, EmptyRect_FUNC); |
3322 |
rc = (jint)DrawThemeSeparator((const Rect *)lparg0, (ThemeDrawState)arg1); |
| 3323 |
return rc; |
3323 |
fail: |
| 3324 |
} |
3324 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 3325 |
#endif |
3325 |
OS_NATIVE_EXIT(env, that, DrawThemeSeparator_FUNC); |
| 3326 |
|
3326 |
return rc; |
| 3327 |
#ifndef NO_EmptyRgn |
3327 |
} |
| 3328 |
JNIEXPORT jboolean JNICALL OS_NATIVE(EmptyRgn) |
3328 |
#endif |
| 3329 |
(JNIEnv *env, jclass that, jint arg0) |
3329 |
|
| 3330 |
{ |
3330 |
#ifndef NO_DrawThemeTextBox |
| 3331 |
jboolean rc = 0; |
3331 |
JNIEXPORT jint JNICALL OS_NATIVE(DrawThemeTextBox) |
| 3332 |
OS_NATIVE_ENTER(env, that, EmptyRgn_FUNC); |
3332 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2, jboolean arg3, jobject arg4, jshort arg5, jint arg6) |
| 3333 |
rc = (jboolean)EmptyRgn((RgnHandle)arg0); |
3333 |
{ |
| 3334 |
OS_NATIVE_EXIT(env, that, EmptyRgn_FUNC); |
3334 |
Rect _arg4, *lparg4=NULL; |
| 3335 |
return rc; |
3335 |
jint rc = 0; |
| 3336 |
} |
3336 |
OS_NATIVE_ENTER(env, that, DrawThemeTextBox_FUNC); |
| 3337 |
#endif |
3337 |
if (arg4) if ((lparg4 = getRectFields(env, arg4, &_arg4)) == NULL) goto fail; |
| 3338 |
|
3338 |
rc = (jint)DrawThemeTextBox((CFStringRef)arg0, (ThemeFontID)arg1, (ThemeDrawState)arg2, (Boolean)arg3, (const Rect *)lparg4, (SInt16)arg5, (void *)arg6); |
| 3339 |
#ifndef NO_EnableControl |
3339 |
fail: |
| 3340 |
JNIEXPORT jint JNICALL OS_NATIVE(EnableControl) |
3340 |
if (arg4 && lparg4) setRectFields(env, arg4, lparg4); |
| 3341 |
(JNIEnv *env, jclass that, jint arg0) |
3341 |
OS_NATIVE_EXIT(env, that, DrawThemeTextBox_FUNC); |
| 3342 |
{ |
3342 |
return rc; |
| 3343 |
jint rc = 0; |
3343 |
} |
| 3344 |
OS_NATIVE_ENTER(env, that, EnableControl_FUNC); |
3344 |
#endif |
| 3345 |
rc = (jint)EnableControl((ControlRef)arg0); |
3345 |
|
| 3346 |
OS_NATIVE_EXIT(env, that, EnableControl_FUNC); |
3346 |
#ifndef NO_EmbedControl |
| 3347 |
return rc; |
3347 |
JNIEXPORT jint JNICALL OS_NATIVE(EmbedControl) |
| 3348 |
} |
3348 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 3349 |
#endif |
3349 |
{ |
| 3350 |
|
3350 |
jint rc = 0; |
| 3351 |
#ifndef NO_EnableMenuCommand |
3351 |
OS_NATIVE_ENTER(env, that, EmbedControl_FUNC); |
| 3352 |
JNIEXPORT void JNICALL OS_NATIVE(EnableMenuCommand) |
3352 |
rc = (jint)EmbedControl((ControlRef)arg0, (ControlRef)arg1); |
| 3353 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
3353 |
OS_NATIVE_EXIT(env, that, EmbedControl_FUNC); |
| 3354 |
{ |
3354 |
return rc; |
| 3355 |
OS_NATIVE_ENTER(env, that, EnableMenuCommand_FUNC); |
3355 |
} |
| 3356 |
EnableMenuCommand((MenuRef)arg0, (MenuCommand)arg1); |
3356 |
#endif |
| 3357 |
OS_NATIVE_EXIT(env, that, EnableMenuCommand_FUNC); |
3357 |
|
| 3358 |
} |
3358 |
#ifndef NO_EmptyRect |
| 3359 |
#endif |
3359 |
JNIEXPORT jboolean JNICALL OS_NATIVE(EmptyRect) |
| 3360 |
|
3360 |
(JNIEnv *env, jclass that, jobject arg0) |
| 3361 |
#ifndef NO_EnableMenuItem |
3361 |
{ |
| 3362 |
JNIEXPORT void JNICALL OS_NATIVE(EnableMenuItem) |
3362 |
Rect _arg0, *lparg0=NULL; |
| 3363 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1) |
3363 |
jboolean rc = 0; |
| 3364 |
{ |
3364 |
OS_NATIVE_ENTER(env, that, EmptyRect_FUNC); |
| 3365 |
OS_NATIVE_ENTER(env, that, EnableMenuItem_FUNC); |
3365 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 3366 |
EnableMenuItem((MenuRef)arg0, (MenuItemIndex)arg1); |
3366 |
rc = (jboolean)EmptyRect((const Rect *)lparg0); |
| 3367 |
OS_NATIVE_EXIT(env, that, EnableMenuItem_FUNC); |
3367 |
fail: |
| 3368 |
} |
3368 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 3369 |
#endif |
3369 |
OS_NATIVE_EXIT(env, that, EmptyRect_FUNC); |
| 3370 |
|
3370 |
return rc; |
| 3371 |
#ifndef NO_EndUpdate |
3371 |
} |
| 3372 |
JNIEXPORT void JNICALL OS_NATIVE(EndUpdate) |
3372 |
#endif |
| 3373 |
(JNIEnv *env, jclass that, jint arg0) |
3373 |
|
| 3374 |
{ |
3374 |
#ifndef NO_EmptyRgn |
| 3375 |
OS_NATIVE_ENTER(env, that, EndUpdate_FUNC); |
3375 |
JNIEXPORT jboolean JNICALL OS_NATIVE(EmptyRgn) |
| 3376 |
EndUpdate((WindowRef)arg0); |
3376 |
(JNIEnv *env, jclass that, jint arg0) |
| 3377 |
OS_NATIVE_EXIT(env, that, EndUpdate_FUNC); |
3377 |
{ |
| 3378 |
} |
3378 |
jboolean rc = 0; |
| 3379 |
#endif |
3379 |
OS_NATIVE_ENTER(env, that, EmptyRgn_FUNC); |
| 3380 |
|
3380 |
rc = (jboolean)EmptyRgn((RgnHandle)arg0); |
| 3381 |
#ifndef NO_EqualRect |
3381 |
OS_NATIVE_EXIT(env, that, EmptyRgn_FUNC); |
| 3382 |
JNIEXPORT jboolean JNICALL OS_NATIVE(EqualRect) |
3382 |
return rc; |
| 3383 |
(JNIEnv *env, jclass that, jobject arg0, jobject arg1) |
3383 |
} |
| 3384 |
{ |
3384 |
#endif |
| 3385 |
Rect _arg0, *lparg0=NULL; |
3385 |
|
| 3386 |
Rect _arg1, *lparg1=NULL; |
3386 |
#ifndef NO_EnableControl |
| 3387 |
jboolean rc = 0; |
3387 |
JNIEXPORT jint JNICALL OS_NATIVE(EnableControl) |
| 3388 |
OS_NATIVE_ENTER(env, that, EqualRect_FUNC); |
3388 |
(JNIEnv *env, jclass that, jint arg0) |
| 3389 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
3389 |
{ |
| 3390 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
3390 |
jint rc = 0; |
| 3391 |
rc = (jboolean)EqualRect(lparg0, lparg1); |
3391 |
OS_NATIVE_ENTER(env, that, EnableControl_FUNC); |
| 3392 |
fail: |
3392 |
rc = (jint)EnableControl((ControlRef)arg0); |
| 3393 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
3393 |
OS_NATIVE_EXIT(env, that, EnableControl_FUNC); |
| 3394 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
3394 |
return rc; |
| 3395 |
OS_NATIVE_EXIT(env, that, EqualRect_FUNC); |
3395 |
} |
| 3396 |
return rc; |
3396 |
#endif |
| 3397 |
} |
3397 |
|
| 3398 |
#endif |
3398 |
#ifndef NO_EnableMenuCommand |
| 3399 |
|
3399 |
JNIEXPORT void JNICALL OS_NATIVE(EnableMenuCommand) |
| 3400 |
#ifndef NO_EraseRect |
3400 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 3401 |
JNIEXPORT void JNICALL OS_NATIVE(EraseRect) |
3401 |
{ |
| 3402 |
(JNIEnv *env, jclass that, jobject arg0) |
3402 |
OS_NATIVE_ENTER(env, that, EnableMenuCommand_FUNC); |
| 3403 |
{ |
3403 |
EnableMenuCommand((MenuRef)arg0, (MenuCommand)arg1); |
| 3404 |
Rect _arg0, *lparg0=NULL; |
3404 |
OS_NATIVE_EXIT(env, that, EnableMenuCommand_FUNC); |
| 3405 |
OS_NATIVE_ENTER(env, that, EraseRect_FUNC); |
3405 |
} |
| 3406 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
3406 |
#endif |
| 3407 |
EraseRect((const Rect *)lparg0); |
3407 |
|
| 3408 |
fail: |
3408 |
#ifndef NO_EnableMenuItem |
| 3409 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
3409 |
JNIEXPORT void JNICALL OS_NATIVE(EnableMenuItem) |
| 3410 |
OS_NATIVE_EXIT(env, that, EraseRect_FUNC); |
3410 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1) |
| 3411 |
} |
3411 |
{ |
| 3412 |
#endif |
3412 |
OS_NATIVE_ENTER(env, that, EnableMenuItem_FUNC); |
| 3413 |
|
3413 |
EnableMenuItem((MenuRef)arg0, (MenuItemIndex)arg1); |
| 3414 |
#ifndef NO_EraseRgn |
3414 |
OS_NATIVE_EXIT(env, that, EnableMenuItem_FUNC); |
| 3415 |
JNIEXPORT void JNICALL OS_NATIVE(EraseRgn) |
3415 |
} |
| 3416 |
(JNIEnv *env, jclass that, jint arg0) |
3416 |
#endif |
| 3417 |
{ |
3417 |
|
| 3418 |
OS_NATIVE_ENTER(env, that, EraseRgn_FUNC); |
3418 |
#ifndef NO_EndUpdate |
| 3419 |
EraseRgn((RgnHandle)arg0); |
3419 |
JNIEXPORT void JNICALL OS_NATIVE(EndUpdate) |
| 3420 |
OS_NATIVE_EXIT(env, that, EraseRgn_FUNC); |
3420 |
(JNIEnv *env, jclass that, jint arg0) |
| 3421 |
} |
3421 |
{ |
| 3422 |
#endif |
3422 |
OS_NATIVE_ENTER(env, that, EndUpdate_FUNC); |
| 3423 |
|
3423 |
EndUpdate((WindowRef)arg0); |
| 3424 |
#ifndef NO_FMCreateFontFamilyInstanceIterator |
3424 |
OS_NATIVE_EXIT(env, that, EndUpdate_FUNC); |
| 3425 |
JNIEXPORT jint JNICALL OS_NATIVE(FMCreateFontFamilyInstanceIterator) |
3425 |
} |
| 3426 |
(JNIEnv *env, jclass that, jshort arg0, jint arg1) |
3426 |
#endif |
| 3427 |
{ |
3427 |
|
| 3428 |
jint rc = 0; |
3428 |
#ifndef NO_EqualRect |
| 3429 |
OS_NATIVE_ENTER(env, that, FMCreateFontFamilyInstanceIterator_FUNC); |
3429 |
JNIEXPORT jboolean JNICALL OS_NATIVE(EqualRect) |
| 3430 |
rc = (jint)FMCreateFontFamilyInstanceIterator((FMFontFamily)arg0, (FMFontFamilyInstanceIterator *)arg1); |
3430 |
(JNIEnv *env, jclass that, jobject arg0, jobject arg1) |
| 3431 |
OS_NATIVE_EXIT(env, that, FMCreateFontFamilyInstanceIterator_FUNC); |
3431 |
{ |
| 3432 |
return rc; |
3432 |
Rect _arg0, *lparg0=NULL; |
| 3433 |
} |
3433 |
Rect _arg1, *lparg1=NULL; |
| 3434 |
#endif |
3434 |
jboolean rc = 0; |
| 3435 |
|
3435 |
OS_NATIVE_ENTER(env, that, EqualRect_FUNC); |
| 3436 |
#ifndef NO_FMCreateFontFamilyIterator |
3436 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 3437 |
JNIEXPORT jint JNICALL OS_NATIVE(FMCreateFontFamilyIterator) |
3437 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 3438 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3) |
3438 |
rc = (jboolean)EqualRect(lparg0, lparg1); |
| 3439 |
{ |
3439 |
fail: |
| 3440 |
jint rc = 0; |
3440 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 3441 |
OS_NATIVE_ENTER(env, that, FMCreateFontFamilyIterator_FUNC); |
3441 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 3442 |
rc = (jint)FMCreateFontFamilyIterator((const FMFilter *)arg0, (void *)arg1, (OptionBits)arg2, (FMFontFamilyIterator *)arg3); |
3442 |
OS_NATIVE_EXIT(env, that, EqualRect_FUNC); |
| 3443 |
OS_NATIVE_EXIT(env, that, FMCreateFontFamilyIterator_FUNC); |
3443 |
return rc; |
| 3444 |
return rc; |
3444 |
} |
| 3445 |
} |
3445 |
#endif |
| 3446 |
#endif |
3446 |
|
| 3447 |
|
3447 |
#ifndef NO_EraseRect |
| 3448 |
#ifndef NO_FMDisposeFontFamilyInstanceIterator |
3448 |
JNIEXPORT void JNICALL OS_NATIVE(EraseRect) |
| 3449 |
JNIEXPORT jint JNICALL OS_NATIVE(FMDisposeFontFamilyInstanceIterator) |
3449 |
(JNIEnv *env, jclass that, jobject arg0) |
| 3450 |
(JNIEnv *env, jclass that, jint arg0) |
3450 |
{ |
| 3451 |
{ |
3451 |
Rect _arg0, *lparg0=NULL; |
| 3452 |
jint rc = 0; |
3452 |
OS_NATIVE_ENTER(env, that, EraseRect_FUNC); |
| 3453 |
OS_NATIVE_ENTER(env, that, FMDisposeFontFamilyInstanceIterator_FUNC); |
3453 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 3454 |
rc = (jint)FMDisposeFontFamilyInstanceIterator((FMFontFamilyInstanceIterator *)arg0); |
3454 |
EraseRect((const Rect *)lparg0); |
| 3455 |
OS_NATIVE_EXIT(env, that, FMDisposeFontFamilyInstanceIterator_FUNC); |
3455 |
fail: |
| 3456 |
return rc; |
3456 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 3457 |
} |
3457 |
OS_NATIVE_EXIT(env, that, EraseRect_FUNC); |
| 3458 |
#endif |
3458 |
} |
| 3459 |
|
3459 |
#endif |
| 3460 |
#ifndef NO_FMDisposeFontFamilyIterator |
3460 |
|
| 3461 |
JNIEXPORT jint JNICALL OS_NATIVE(FMDisposeFontFamilyIterator) |
3461 |
#ifndef NO_EraseRgn |
| 3462 |
(JNIEnv *env, jclass that, jint arg0) |
3462 |
JNIEXPORT void JNICALL OS_NATIVE(EraseRgn) |
| 3463 |
{ |
3463 |
(JNIEnv *env, jclass that, jint arg0) |
| 3464 |
jint rc = 0; |
3464 |
{ |
| 3465 |
OS_NATIVE_ENTER(env, that, FMDisposeFontFamilyIterator_FUNC); |
3465 |
OS_NATIVE_ENTER(env, that, EraseRgn_FUNC); |
| 3466 |
rc = (jint)FMDisposeFontFamilyIterator((FMFontFamilyIterator *)arg0); |
3466 |
EraseRgn((RgnHandle)arg0); |
| 3467 |
OS_NATIVE_EXIT(env, that, FMDisposeFontFamilyIterator_FUNC); |
3467 |
OS_NATIVE_EXIT(env, that, EraseRgn_FUNC); |
| 3468 |
return rc; |
3468 |
} |
| 3469 |
} |
3469 |
#endif |
| 3470 |
#endif |
3470 |
|
| 3471 |
|
3471 |
#ifndef NO_FMCreateFontFamilyInstanceIterator |
| 3472 |
#ifndef NO_FMGetATSFontRefFromFont |
3472 |
JNIEXPORT jint JNICALL OS_NATIVE(FMCreateFontFamilyInstanceIterator) |
| 3473 |
JNIEXPORT jint JNICALL OS_NATIVE(FMGetATSFontRefFromFont) |
3473 |
(JNIEnv *env, jclass that, jshort arg0, jint arg1) |
| 3474 |
(JNIEnv *env, jclass that, jint arg0) |
3474 |
{ |
| 3475 |
{ |
3475 |
jint rc = 0; |
| 3476 |
jint rc = 0; |
3476 |
OS_NATIVE_ENTER(env, that, FMCreateFontFamilyInstanceIterator_FUNC); |
| 3477 |
OS_NATIVE_ENTER(env, that, FMGetATSFontRefFromFont_FUNC); |
3477 |
rc = (jint)FMCreateFontFamilyInstanceIterator((FMFontFamily)arg0, (FMFontFamilyInstanceIterator *)arg1); |
| 3478 |
rc = (jint)FMGetATSFontRefFromFont(arg0); |
3478 |
OS_NATIVE_EXIT(env, that, FMCreateFontFamilyInstanceIterator_FUNC); |
| 3479 |
OS_NATIVE_EXIT(env, that, FMGetATSFontRefFromFont_FUNC); |
3479 |
return rc; |
| 3480 |
return rc; |
3480 |
} |
| 3481 |
} |
3481 |
#endif |
| 3482 |
#endif |
3482 |
|
| 3483 |
|
3483 |
#ifndef NO_FMCreateFontFamilyIterator |
| 3484 |
#ifndef NO_FMGetFontFamilyFromName |
3484 |
JNIEXPORT jint JNICALL OS_NATIVE(FMCreateFontFamilyIterator) |
| 3485 |
JNIEXPORT jshort JNICALL OS_NATIVE(FMGetFontFamilyFromName) |
3485 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3) |
| 3486 |
(JNIEnv *env, jclass that, jbyteArray arg0) |
3486 |
{ |
| 3487 |
{ |
3487 |
jint rc = 0; |
| 3488 |
jbyte *lparg0=NULL; |
3488 |
OS_NATIVE_ENTER(env, that, FMCreateFontFamilyIterator_FUNC); |
| 3489 |
jshort rc = 0; |
3489 |
rc = (jint)FMCreateFontFamilyIterator((const FMFilter *)arg0, (void *)arg1, (OptionBits)arg2, (FMFontFamilyIterator *)arg3); |
| 3490 |
OS_NATIVE_ENTER(env, that, FMGetFontFamilyFromName_FUNC); |
3490 |
OS_NATIVE_EXIT(env, that, FMCreateFontFamilyIterator_FUNC); |
| 3491 |
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; |
3491 |
return rc; |
| 3492 |
rc = (jshort)FMGetFontFamilyFromName((ConstStr255Param)lparg0); |
3492 |
} |
| 3493 |
fail: |
3493 |
#endif |
| 3494 |
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); |
3494 |
|
| 3495 |
OS_NATIVE_EXIT(env, that, FMGetFontFamilyFromName_FUNC); |
3495 |
#ifndef NO_FMDisposeFontFamilyInstanceIterator |
| 3496 |
return rc; |
3496 |
JNIEXPORT jint JNICALL OS_NATIVE(FMDisposeFontFamilyInstanceIterator) |
| 3497 |
} |
3497 |
(JNIEnv *env, jclass that, jint arg0) |
| 3498 |
#endif |
3498 |
{ |
| 3499 |
|
3499 |
jint rc = 0; |
| 3500 |
#ifndef NO_FMGetFontFamilyInstanceFromFont |
3500 |
OS_NATIVE_ENTER(env, that, FMDisposeFontFamilyInstanceIterator_FUNC); |
| 3501 |
JNIEXPORT jint JNICALL OS_NATIVE(FMGetFontFamilyInstanceFromFont) |
3501 |
rc = (jint)FMDisposeFontFamilyInstanceIterator((FMFontFamilyInstanceIterator *)arg0); |
| 3502 |
(JNIEnv *env, jclass that, jint arg0, jshortArray arg1, jshortArray arg2) |
3502 |
OS_NATIVE_EXIT(env, that, FMDisposeFontFamilyInstanceIterator_FUNC); |
| 3503 |
{ |
3503 |
return rc; |
| 3504 |
jshort *lparg1=NULL; |
3504 |
} |
| 3505 |
jshort *lparg2=NULL; |
3505 |
#endif |
| 3506 |
jint rc = 0; |
3506 |
|
| 3507 |
OS_NATIVE_ENTER(env, that, FMGetFontFamilyInstanceFromFont_FUNC); |
3507 |
#ifndef NO_FMDisposeFontFamilyIterator |
| 3508 |
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail; |
3508 |
JNIEXPORT jint JNICALL OS_NATIVE(FMDisposeFontFamilyIterator) |
| 3509 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
3509 |
(JNIEnv *env, jclass that, jint arg0) |
| 3510 |
rc = (jint)FMGetFontFamilyInstanceFromFont((FMFont)arg0, (FMFontFamily *)lparg1, (FMFontStyle *)lparg2); |
3510 |
{ |
| 3511 |
fail: |
3511 |
jint rc = 0; |
| 3512 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
3512 |
OS_NATIVE_ENTER(env, that, FMDisposeFontFamilyIterator_FUNC); |
| 3513 |
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0); |
3513 |
rc = (jint)FMDisposeFontFamilyIterator((FMFontFamilyIterator *)arg0); |
| 3514 |
OS_NATIVE_EXIT(env, that, FMGetFontFamilyInstanceFromFont_FUNC); |
3514 |
OS_NATIVE_EXIT(env, that, FMDisposeFontFamilyIterator_FUNC); |
| 3515 |
return rc; |
3515 |
return rc; |
| 3516 |
} |
3516 |
} |
| 3517 |
#endif |
3517 |
#endif |
| 3518 |
|
3518 |
|
| 3519 |
#ifndef NO_FMGetFontFamilyName |
3519 |
#ifndef NO_FMGetATSFontRefFromFont |
| 3520 |
JNIEXPORT jint JNICALL OS_NATIVE(FMGetFontFamilyName) |
3520 |
JNIEXPORT jint JNICALL OS_NATIVE(FMGetATSFontRefFromFont) |
| 3521 |
(JNIEnv *env, jclass that, jshort arg0, jbyteArray arg1) |
3521 |
(JNIEnv *env, jclass that, jint arg0) |
| 3522 |
{ |
3522 |
{ |
| 3523 |
jbyte *lparg1=NULL; |
3523 |
jint rc = 0; |
| 3524 |
jint rc = 0; |
3524 |
OS_NATIVE_ENTER(env, that, FMGetATSFontRefFromFont_FUNC); |
| 3525 |
OS_NATIVE_ENTER(env, that, FMGetFontFamilyName_FUNC); |
3525 |
rc = (jint)FMGetATSFontRefFromFont(arg0); |
| 3526 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
3526 |
OS_NATIVE_EXIT(env, that, FMGetATSFontRefFromFont_FUNC); |
| 3527 |
rc = (jint)FMGetFontFamilyName(arg0, lparg1); |
3527 |
return rc; |
| 3528 |
fail: |
3528 |
} |
| 3529 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
3529 |
#endif |
| 3530 |
OS_NATIVE_EXIT(env, that, FMGetFontFamilyName_FUNC); |
3530 |
|
| 3531 |
return rc; |
3531 |
#ifndef NO_FMGetFontFamilyFromName |
| 3532 |
} |
3532 |
JNIEXPORT jshort JNICALL OS_NATIVE(FMGetFontFamilyFromName) |
| 3533 |
#endif |
3533 |
(JNIEnv *env, jclass that, jbyteArray arg0) |
| 3534 |
|
3534 |
{ |
| 3535 |
#ifndef NO_FMGetFontFromFontFamilyInstance |
3535 |
jbyte *lparg0=NULL; |
| 3536 |
JNIEXPORT jint JNICALL OS_NATIVE(FMGetFontFromFontFamilyInstance) |
3536 |
jshort rc = 0; |
| 3537 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1, jintArray arg2, jshortArray arg3) |
3537 |
OS_NATIVE_ENTER(env, that, FMGetFontFamilyFromName_FUNC); |
| 3538 |
{ |
3538 |
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 3539 |
jint *lparg2=NULL; |
3539 |
rc = (jshort)FMGetFontFamilyFromName((ConstStr255Param)lparg0); |
| 3540 |
jshort *lparg3=NULL; |
3540 |
fail: |
| 3541 |
jint rc = 0; |
3541 |
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); |
| 3542 |
OS_NATIVE_ENTER(env, that, FMGetFontFromFontFamilyInstance_FUNC); |
3542 |
OS_NATIVE_EXIT(env, that, FMGetFontFamilyFromName_FUNC); |
| 3543 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
3543 |
return rc; |
| 3544 |
if (arg3) if ((lparg3 = (*env)->GetShortArrayElements(env, arg3, NULL)) == NULL) goto fail; |
3544 |
} |
| 3545 |
rc = (jint)FMGetFontFromFontFamilyInstance((FMFontFamily)arg0, (FMFontStyle)arg1, (FMFont *)lparg2, (FMFontStyle *)lparg3); |
3545 |
#endif |
| 3546 |
fail: |
3546 |
|
| 3547 |
if (arg3 && lparg3) (*env)->ReleaseShortArrayElements(env, arg3, lparg3, 0); |
3547 |
#ifndef NO_FMGetFontFamilyInstanceFromFont |
| 3548 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
3548 |
JNIEXPORT jint JNICALL OS_NATIVE(FMGetFontFamilyInstanceFromFont) |
| 3549 |
OS_NATIVE_EXIT(env, that, FMGetFontFromFontFamilyInstance_FUNC); |
3549 |
(JNIEnv *env, jclass that, jint arg0, jshortArray arg1, jshortArray arg2) |
| 3550 |
return rc; |
3550 |
{ |
| 3551 |
} |
3551 |
jshort *lparg1=NULL; |
| 3552 |
#endif |
3552 |
jshort *lparg2=NULL; |
| 3553 |
|
3553 |
jint rc = 0; |
| 3554 |
#ifndef NO_FMGetNextFontFamily |
3554 |
OS_NATIVE_ENTER(env, that, FMGetFontFamilyInstanceFromFont_FUNC); |
| 3555 |
JNIEXPORT jint JNICALL OS_NATIVE(FMGetNextFontFamily) |
3555 |
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 3556 |
(JNIEnv *env, jclass that, jint arg0, jshortArray arg1) |
3556 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 3557 |
{ |
3557 |
rc = (jint)FMGetFontFamilyInstanceFromFont((FMFont)arg0, (FMFontFamily *)lparg1, (FMFontStyle *)lparg2); |
| 3558 |
jshort *lparg1=NULL; |
3558 |
fail: |
| 3559 |
jint rc = 0; |
3559 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
| 3560 |
OS_NATIVE_ENTER(env, that, FMGetNextFontFamily_FUNC); |
3560 |
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0); |
| 3561 |
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail; |
3561 |
OS_NATIVE_EXIT(env, that, FMGetFontFamilyInstanceFromFont_FUNC); |
| 3562 |
rc = (jint)FMGetNextFontFamily((FMFontFamilyIterator *)arg0, (FMFontFamily *)lparg1); |
3562 |
return rc; |
| 3563 |
fail: |
3563 |
} |
| 3564 |
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0); |
3564 |
#endif |
| 3565 |
OS_NATIVE_EXIT(env, that, FMGetNextFontFamily_FUNC); |
3565 |
|
| 3566 |
return rc; |
3566 |
#ifndef NO_FMGetFontFamilyName |
| 3567 |
} |
3567 |
JNIEXPORT jint JNICALL OS_NATIVE(FMGetFontFamilyName) |
| 3568 |
#endif |
3568 |
(JNIEnv *env, jclass that, jshort arg0, jbyteArray arg1) |
| 3569 |
|
3569 |
{ |
| 3570 |
#ifndef NO_FMGetNextFontFamilyInstance |
3570 |
jbyte *lparg1=NULL; |
| 3571 |
JNIEXPORT jint JNICALL OS_NATIVE(FMGetNextFontFamilyInstance) |
3571 |
jint rc = 0; |
| 3572 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jshortArray arg2, jshortArray arg3) |
3572 |
OS_NATIVE_ENTER(env, that, FMGetFontFamilyName_FUNC); |
| 3573 |
{ |
3573 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 3574 |
jint *lparg1=NULL; |
3574 |
rc = (jint)FMGetFontFamilyName(arg0, lparg1); |
| 3575 |
jshort *lparg2=NULL; |
3575 |
fail: |
| 3576 |
jshort *lparg3=NULL; |
3576 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
| 3577 |
jint rc = 0; |
3577 |
OS_NATIVE_EXIT(env, that, FMGetFontFamilyName_FUNC); |
| 3578 |
OS_NATIVE_ENTER(env, that, FMGetNextFontFamilyInstance_FUNC); |
3578 |
return rc; |
| 3579 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
3579 |
} |
| 3580 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
3580 |
#endif |
| 3581 |
if (arg3) if ((lparg3 = (*env)->GetShortArrayElements(env, arg3, NULL)) == NULL) goto fail; |
3581 |
|
| 3582 |
rc = (jint)FMGetNextFontFamilyInstance((FMFontFamilyInstanceIterator *)arg0, (FMFont *)lparg1, (FMFontStyle *)lparg2, (FMFontSize *)lparg3); |
3582 |
#ifndef NO_FMGetFontFromFontFamilyInstance |
| 3583 |
fail: |
3583 |
JNIEXPORT jint JNICALL OS_NATIVE(FMGetFontFromFontFamilyInstance) |
| 3584 |
if (arg3 && lparg3) (*env)->ReleaseShortArrayElements(env, arg3, lparg3, 0); |
3584 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1, jintArray arg2, jshortArray arg3) |
| 3585 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
3585 |
{ |
| 3586 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
3586 |
jint *lparg2=NULL; |
| 3587 |
OS_NATIVE_EXIT(env, that, FMGetNextFontFamilyInstance_FUNC); |
3587 |
jshort *lparg3=NULL; |
| 3588 |
return rc; |
3588 |
jint rc = 0; |
| 3589 |
} |
3589 |
OS_NATIVE_ENTER(env, that, FMGetFontFromFontFamilyInstance_FUNC); |
| 3590 |
#endif |
3590 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 3591 |
|
3591 |
if (arg3) if ((lparg3 = (*env)->GetShortArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 3592 |
#ifndef NO_FPIsFontPanelVisible |
3592 |
rc = (jint)FMGetFontFromFontFamilyInstance((FMFontFamily)arg0, (FMFontStyle)arg1, (FMFont *)lparg2, (FMFontStyle *)lparg3); |
| 3593 |
JNIEXPORT jboolean JNICALL OS_NATIVE(FPIsFontPanelVisible) |
3593 |
fail: |
| 3594 |
(JNIEnv *env, jclass that) |
3594 |
if (arg3 && lparg3) (*env)->ReleaseShortArrayElements(env, arg3, lparg3, 0); |
| 3595 |
{ |
3595 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 3596 |
jboolean rc = 0; |
3596 |
OS_NATIVE_EXIT(env, that, FMGetFontFromFontFamilyInstance_FUNC); |
| 3597 |
OS_NATIVE_ENTER(env, that, FPIsFontPanelVisible_FUNC); |
3597 |
return rc; |
| 3598 |
rc = (jboolean)FPIsFontPanelVisible(); |
3598 |
} |
| 3599 |
OS_NATIVE_EXIT(env, that, FPIsFontPanelVisible_FUNC); |
3599 |
#endif |
| 3600 |
return rc; |
3600 |
|
| 3601 |
} |
3601 |
#ifndef NO_FMGetNextFontFamily |
| 3602 |
#endif |
3602 |
JNIEXPORT jint JNICALL OS_NATIVE(FMGetNextFontFamily) |
| 3603 |
|
3603 |
(JNIEnv *env, jclass that, jint arg0, jshortArray arg1) |
| 3604 |
#ifndef NO_FPShowHideFontPanel |
3604 |
{ |
| 3605 |
JNIEXPORT jint JNICALL OS_NATIVE(FPShowHideFontPanel) |
3605 |
jshort *lparg1=NULL; |
| 3606 |
(JNIEnv *env, jclass that) |
3606 |
jint rc = 0; |
| 3607 |
{ |
3607 |
OS_NATIVE_ENTER(env, that, FMGetNextFontFamily_FUNC); |
| 3608 |
jint rc = 0; |
3608 |
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 3609 |
OS_NATIVE_ENTER(env, that, FPShowHideFontPanel_FUNC); |
3609 |
rc = (jint)FMGetNextFontFamily((FMFontFamilyIterator *)arg0, (FMFontFamily *)lparg1); |
| 3610 |
rc = (jint)FPShowHideFontPanel(); |
3610 |
fail: |
| 3611 |
OS_NATIVE_EXIT(env, that, FPShowHideFontPanel_FUNC); |
3611 |
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0); |
| 3612 |
return rc; |
3612 |
OS_NATIVE_EXIT(env, that, FMGetNextFontFamily_FUNC); |
| 3613 |
} |
3613 |
return rc; |
| 3614 |
#endif |
3614 |
} |
| 3615 |
|
3615 |
#endif |
| 3616 |
#ifndef NO_FSGetCatalogInfo |
3616 |
|
| 3617 |
JNIEXPORT jint JNICALL OS_NATIVE(FSGetCatalogInfo) |
3617 |
#ifndef NO_FMGetNextFontFamilyInstance |
| 3618 |
(JNIEnv *env, jclass that, jbyteArray arg0, jint arg1, jbyteArray arg2, jbyteArray arg3, jbyteArray arg4, jbyteArray arg5) |
3618 |
JNIEXPORT jint JNICALL OS_NATIVE(FMGetNextFontFamilyInstance) |
| 3619 |
{ |
3619 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jshortArray arg2, jshortArray arg3) |
| 3620 |
jbyte *lparg0=NULL; |
3620 |
{ |
| 3621 |
jbyte *lparg2=NULL; |
3621 |
jint *lparg1=NULL; |
| 3622 |
jbyte *lparg3=NULL; |
3622 |
jshort *lparg2=NULL; |
| 3623 |
jbyte *lparg4=NULL; |
3623 |
jshort *lparg3=NULL; |
| 3624 |
jbyte *lparg5=NULL; |
3624 |
jint rc = 0; |
| 3625 |
jint rc = 0; |
3625 |
OS_NATIVE_ENTER(env, that, FMGetNextFontFamilyInstance_FUNC); |
| 3626 |
OS_NATIVE_ENTER(env, that, FSGetCatalogInfo_FUNC); |
3626 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 3627 |
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; |
3627 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 3628 |
if (arg2) if ((lparg2 = (*env)->GetByteArrayElements(env, arg2, NULL)) == NULL) goto fail; |
3628 |
if (arg3) if ((lparg3 = (*env)->GetShortArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 3629 |
if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail; |
3629 |
rc = (jint)FMGetNextFontFamilyInstance((FMFontFamilyInstanceIterator *)arg0, (FMFont *)lparg1, (FMFontStyle *)lparg2, (FMFontSize *)lparg3); |
| 3630 |
if (arg4) if ((lparg4 = (*env)->GetByteArrayElements(env, arg4, NULL)) == NULL) goto fail; |
3630 |
fail: |
| 3631 |
if (arg5) if ((lparg5 = (*env)->GetByteArrayElements(env, arg5, NULL)) == NULL) goto fail; |
3631 |
if (arg3 && lparg3) (*env)->ReleaseShortArrayElements(env, arg3, lparg3, 0); |
| 3632 |
rc = (jint)FSGetCatalogInfo((FSRef *)lparg0, (FSCatalogInfoBitmap)arg1, (FSCatalogInfo *)lparg2, (HFSUniStr255 *)lparg3, (FSSpec *)lparg4, (FSRef *)lparg5); |
3632 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
| 3633 |
fail: |
3633 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 3634 |
if (arg5 && lparg5) (*env)->ReleaseByteArrayElements(env, arg5, lparg5, 0); |
3634 |
OS_NATIVE_EXIT(env, that, FMGetNextFontFamilyInstance_FUNC); |
| 3635 |
if (arg4 && lparg4) (*env)->ReleaseByteArrayElements(env, arg4, lparg4, 0); |
3635 |
return rc; |
| 3636 |
if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0); |
3636 |
} |
| 3637 |
if (arg2 && lparg2) (*env)->ReleaseByteArrayElements(env, arg2, lparg2, 0); |
3637 |
#endif |
| 3638 |
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); |
3638 |
|
| 3639 |
OS_NATIVE_EXIT(env, that, FSGetCatalogInfo_FUNC); |
3639 |
#ifndef NO_FPIsFontPanelVisible |
| 3640 |
return rc; |
3640 |
JNIEXPORT jboolean JNICALL OS_NATIVE(FPIsFontPanelVisible) |
| 3641 |
} |
3641 |
(JNIEnv *env, jclass that) |
| 3642 |
#endif |
3642 |
{ |
| 3643 |
|
3643 |
jboolean rc = 0; |
| 3644 |
#ifndef NO_FSpGetFInfo |
3644 |
OS_NATIVE_ENTER(env, that, FPIsFontPanelVisible_FUNC); |
| 3645 |
JNIEXPORT jint JNICALL OS_NATIVE(FSpGetFInfo) |
3645 |
rc = (jboolean)FPIsFontPanelVisible(); |
| 3646 |
(JNIEnv *env, jclass that, jbyteArray arg0, jbyteArray arg1) |
3646 |
OS_NATIVE_EXIT(env, that, FPIsFontPanelVisible_FUNC); |
| 3647 |
{ |
3647 |
return rc; |
| 3648 |
jbyte *lparg0=NULL; |
3648 |
} |
| 3649 |
jbyte *lparg1=NULL; |
3649 |
#endif |
| 3650 |
jint rc = 0; |
3650 |
|
| 3651 |
OS_NATIVE_ENTER(env, that, FSpGetFInfo_FUNC); |
3651 |
#ifndef NO_FPShowHideFontPanel |
| 3652 |
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; |
3652 |
JNIEXPORT jint JNICALL OS_NATIVE(FPShowHideFontPanel) |
| 3653 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
3653 |
(JNIEnv *env, jclass that) |
| 3654 |
rc = (jint)FSpGetFInfo((FSSpec *)lparg0, (FInfo *)lparg1); |
3654 |
{ |
| 3655 |
fail: |
3655 |
jint rc = 0; |
| 3656 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
3656 |
OS_NATIVE_ENTER(env, that, FPShowHideFontPanel_FUNC); |
| 3657 |
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); |
3657 |
rc = (jint)FPShowHideFontPanel(); |
| 3658 |
OS_NATIVE_EXIT(env, that, FSpGetFInfo_FUNC); |
3658 |
OS_NATIVE_EXIT(env, that, FPShowHideFontPanel_FUNC); |
| 3659 |
return rc; |
3659 |
return rc; |
| 3660 |
} |
3660 |
} |
| 3661 |
#endif |
3661 |
#endif |
| 3662 |
|
3662 |
|
| 3663 |
#ifndef NO_FSpMakeFSRef |
3663 |
#ifndef NO_FSGetCatalogInfo |
| 3664 |
JNIEXPORT jint JNICALL OS_NATIVE(FSpMakeFSRef) |
3664 |
JNIEXPORT jint JNICALL OS_NATIVE(FSGetCatalogInfo) |
| 3665 |
(JNIEnv *env, jclass that, jbyteArray arg0, jbyteArray arg1) |
3665 |
(JNIEnv *env, jclass that, jbyteArray arg0, jint arg1, jbyteArray arg2, jbyteArray arg3, jbyteArray arg4, jbyteArray arg5) |
| 3666 |
{ |
3666 |
{ |
| 3667 |
jbyte *lparg0=NULL; |
3667 |
jbyte *lparg0=NULL; |
| 3668 |
jbyte *lparg1=NULL; |
3668 |
jbyte *lparg2=NULL; |
| 3669 |
jint rc = 0; |
3669 |
jbyte *lparg3=NULL; |
| 3670 |
OS_NATIVE_ENTER(env, that, FSpMakeFSRef_FUNC); |
3670 |
jbyte *lparg4=NULL; |
| 3671 |
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; |
3671 |
jbyte *lparg5=NULL; |
| 3672 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
3672 |
jint rc = 0; |
| 3673 |
rc = (jint)FSpMakeFSRef((const FSSpec *)lparg0, (FSRef *)lparg1); |
3673 |
OS_NATIVE_ENTER(env, that, FSGetCatalogInfo_FUNC); |
| 3674 |
fail: |
3674 |
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 3675 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
3675 |
if (arg2) if ((lparg2 = (*env)->GetByteArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 3676 |
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); |
3676 |
if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 3677 |
OS_NATIVE_EXIT(env, that, FSpMakeFSRef_FUNC); |
3677 |
if (arg4) if ((lparg4 = (*env)->GetByteArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 3678 |
return rc; |
3678 |
if (arg5) if ((lparg5 = (*env)->GetByteArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 3679 |
} |
3679 |
rc = (jint)FSGetCatalogInfo((FSRef *)lparg0, (FSCatalogInfoBitmap)arg1, (FSCatalogInfo *)lparg2, (HFSUniStr255 *)lparg3, (FSSpec *)lparg4, (FSRef *)lparg5); |
| 3680 |
#endif |
3680 |
fail: |
| 3681 |
|
3681 |
if (arg5 && lparg5) (*env)->ReleaseByteArrayElements(env, arg5, lparg5, 0); |
| 3682 |
#ifndef NO_FetchFontInfo |
3682 |
if (arg4 && lparg4) (*env)->ReleaseByteArrayElements(env, arg4, lparg4, 0); |
| 3683 |
JNIEXPORT jint JNICALL OS_NATIVE(FetchFontInfo) |
3683 |
if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0); |
| 3684 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1, jshort arg2, jobject arg3) |
3684 |
if (arg2 && lparg2) (*env)->ReleaseByteArrayElements(env, arg2, lparg2, 0); |
| 3685 |
{ |
3685 |
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); |
| 3686 |
FontInfo _arg3, *lparg3=NULL; |
3686 |
OS_NATIVE_EXIT(env, that, FSGetCatalogInfo_FUNC); |
| 3687 |
jint rc = 0; |
3687 |
return rc; |
| 3688 |
OS_NATIVE_ENTER(env, that, FetchFontInfo_FUNC); |
3688 |
} |
| 3689 |
if (arg3) if ((lparg3 = getFontInfoFields(env, arg3, &_arg3)) == NULL) goto fail; |
3689 |
#endif |
| 3690 |
rc = (jint)FetchFontInfo(arg0, arg1, arg2, lparg3); |
3690 |
|
| 3691 |
fail: |
3691 |
#ifndef NO_FSNewAliasMinimal |
| 3692 |
if (arg3 && lparg3) setFontInfoFields(env, arg3, lparg3); |
3692 |
JNIEXPORT jint JNICALL OS_NATIVE(FSNewAliasMinimal) |
| 3693 |
OS_NATIVE_EXIT(env, that, FetchFontInfo_FUNC); |
3693 |
(JNIEnv *env, jclass that, jbyteArray arg0, jintArray arg1) |
| 3694 |
return rc; |
3694 |
{ |
| 3695 |
} |
3695 |
jbyte *lparg0=NULL; |
| 3696 |
#endif |
3696 |
jint *lparg1=NULL; |
| 3697 |
|
3697 |
jint rc = 0; |
| 3698 |
#ifndef NO_FindWindow |
3698 |
OS_NATIVE_ENTER(env, that, FSNewAliasMinimal_FUNC); |
| 3699 |
JNIEXPORT jshort JNICALL OS_NATIVE(FindWindow) |
3699 |
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 3700 |
(JNIEnv *env, jclass that, jobject arg0, jintArray arg1) |
3700 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 3701 |
{ |
3701 |
rc = (jint)FSNewAliasMinimal((const FSRef*)lparg0, (AliasHandle *)lparg1); |
| 3702 |
Point _arg0, *lparg0=NULL; |
3702 |
fail: |
| 3703 |
jint *lparg1=NULL; |
3703 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 3704 |
jshort rc = 0; |
3704 |
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); |
| 3705 |
OS_NATIVE_ENTER(env, that, FindWindow_FUNC); |
3705 |
OS_NATIVE_EXIT(env, that, FSNewAliasMinimal_FUNC); |
| 3706 |
if (arg0) if ((lparg0 = getPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
3706 |
return rc; |
| 3707 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
3707 |
} |
| 3708 |
rc = (jshort)FindWindow(*(Point *)lparg0, (WindowRef *)lparg1); |
3708 |
#endif |
| 3709 |
fail: |
3709 |
|
| 3710 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
3710 |
#ifndef NO_FSpGetFInfo |
| 3711 |
if (arg0 && lparg0) setPointFields(env, arg0, lparg0); |
3711 |
JNIEXPORT jint JNICALL OS_NATIVE(FSpGetFInfo) |
| 3712 |
OS_NATIVE_EXIT(env, that, FindWindow_FUNC); |
3712 |
(JNIEnv *env, jclass that, jbyteArray arg0, jbyteArray arg1) |
| 3713 |
return rc; |
3713 |
{ |
| 3714 |
} |
3714 |
jbyte *lparg0=NULL; |
| 3715 |
#endif |
3715 |
jbyte *lparg1=NULL; |
| 3716 |
|
3716 |
jint rc = 0; |
| 3717 |
#ifndef NO_Fix2Long |
3717 |
OS_NATIVE_ENTER(env, that, FSpGetFInfo_FUNC); |
| 3718 |
JNIEXPORT jint JNICALL OS_NATIVE(Fix2Long) |
3718 |
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 3719 |
(JNIEnv *env, jclass that, jint arg0) |
3719 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 3720 |
{ |
3720 |
rc = (jint)FSpGetFInfo((FSSpec *)lparg0, (FInfo *)lparg1); |
| 3721 |
jint rc = 0; |
3721 |
fail: |
| 3722 |
OS_NATIVE_ENTER(env, that, Fix2Long_FUNC); |
3722 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
| 3723 |
rc = (jint)Fix2Long(arg0); |
3723 |
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); |
| 3724 |
OS_NATIVE_EXIT(env, that, Fix2Long_FUNC); |
3724 |
OS_NATIVE_EXIT(env, that, FSpGetFInfo_FUNC); |
| 3725 |
return rc; |
3725 |
return rc; |
| 3726 |
} |
3726 |
} |
| 3727 |
#endif |
3727 |
#endif |
| 3728 |
|
3728 |
|
| 3729 |
#ifndef NO_Fix2X |
3729 |
#ifndef NO_FSpMakeFSRef |
| 3730 |
JNIEXPORT jdouble JNICALL OS_NATIVE(Fix2X) |
3730 |
JNIEXPORT jint JNICALL OS_NATIVE(FSpMakeFSRef) |
| 3731 |
(JNIEnv *env, jclass that, jint arg0) |
3731 |
(JNIEnv *env, jclass that, jbyteArray arg0, jbyteArray arg1) |
| 3732 |
{ |
3732 |
{ |
| 3733 |
jdouble rc = 0; |
3733 |
jbyte *lparg0=NULL; |
| 3734 |
OS_NATIVE_ENTER(env, that, Fix2X_FUNC); |
3734 |
jbyte *lparg1=NULL; |
| 3735 |
rc = (jdouble)Fix2X((Fixed)arg0); |
3735 |
jint rc = 0; |
| 3736 |
OS_NATIVE_EXIT(env, that, Fix2X_FUNC); |
3736 |
OS_NATIVE_ENTER(env, that, FSpMakeFSRef_FUNC); |
| 3737 |
return rc; |
3737 |
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 3738 |
} |
3738 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 3739 |
#endif |
3739 |
rc = (jint)FSpMakeFSRef((const FSSpec *)lparg0, (FSRef *)lparg1); |
| 3740 |
|
3740 |
fail: |
| 3741 |
#ifndef NO_FrameOval |
3741 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
| 3742 |
JNIEXPORT void JNICALL OS_NATIVE(FrameOval) |
3742 |
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); |
| 3743 |
(JNIEnv *env, jclass that, jobject arg0) |
3743 |
OS_NATIVE_EXIT(env, that, FSpMakeFSRef_FUNC); |
| 3744 |
{ |
3744 |
return rc; |
| 3745 |
Rect _arg0, *lparg0=NULL; |
3745 |
} |
| 3746 |
OS_NATIVE_ENTER(env, that, FrameOval_FUNC); |
3746 |
#endif |
| 3747 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
3747 |
|
| 3748 |
FrameOval((const Rect *)lparg0); |
3748 |
#ifndef NO_FetchFontInfo |
| 3749 |
fail: |
3749 |
JNIEXPORT jint JNICALL OS_NATIVE(FetchFontInfo) |
| 3750 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
3750 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1, jshort arg2, jobject arg3) |
| 3751 |
OS_NATIVE_EXIT(env, that, FrameOval_FUNC); |
3751 |
{ |
| 3752 |
} |
3752 |
FontInfo _arg3, *lparg3=NULL; |
| 3753 |
#endif |
3753 |
jint rc = 0; |
| 3754 |
|
3754 |
OS_NATIVE_ENTER(env, that, FetchFontInfo_FUNC); |
| 3755 |
#ifndef NO_FramePoly |
3755 |
if (arg3) if ((lparg3 = getFontInfoFields(env, arg3, &_arg3)) == NULL) goto fail; |
| 3756 |
JNIEXPORT void JNICALL OS_NATIVE(FramePoly) |
3756 |
rc = (jint)FetchFontInfo(arg0, arg1, arg2, lparg3); |
| 3757 |
(JNIEnv *env, jclass that, jint arg0) |
3757 |
fail: |
| 3758 |
{ |
3758 |
if (arg3 && lparg3) setFontInfoFields(env, arg3, lparg3); |
| 3759 |
OS_NATIVE_ENTER(env, that, FramePoly_FUNC); |
3759 |
OS_NATIVE_EXIT(env, that, FetchFontInfo_FUNC); |
| 3760 |
FramePoly((PolyHandle)arg0); |
3760 |
return rc; |
| 3761 |
OS_NATIVE_EXIT(env, that, FramePoly_FUNC); |
3761 |
} |
| 3762 |
} |
3762 |
#endif |
| 3763 |
#endif |
3763 |
|
| 3764 |
|
3764 |
#ifndef NO_FindWindow |
| 3765 |
#ifndef NO_FrameRect |
3765 |
JNIEXPORT jshort JNICALL OS_NATIVE(FindWindow) |
| 3766 |
JNIEXPORT void JNICALL OS_NATIVE(FrameRect) |
3766 |
(JNIEnv *env, jclass that, jobject arg0, jintArray arg1) |
| 3767 |
(JNIEnv *env, jclass that, jobject arg0) |
3767 |
{ |
| 3768 |
{ |
3768 |
Point _arg0, *lparg0=NULL; |
| 3769 |
Rect _arg0, *lparg0=NULL; |
3769 |
jint *lparg1=NULL; |
| 3770 |
OS_NATIVE_ENTER(env, that, FrameRect_FUNC); |
3770 |
jshort rc = 0; |
| 3771 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
3771 |
OS_NATIVE_ENTER(env, that, FindWindow_FUNC); |
| 3772 |
FrameRect((const Rect *)lparg0); |
3772 |
if (arg0) if ((lparg0 = getPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 3773 |
fail: |
3773 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 3774 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
3774 |
rc = (jshort)FindWindow(*(Point *)lparg0, (WindowRef *)lparg1); |
| 3775 |
OS_NATIVE_EXIT(env, that, FrameRect_FUNC); |
3775 |
fail: |
| 3776 |
} |
3776 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 3777 |
#endif |
3777 |
if (arg0 && lparg0) setPointFields(env, arg0, lparg0); |
| 3778 |
|
3778 |
OS_NATIVE_EXIT(env, that, FindWindow_FUNC); |
| 3779 |
#ifndef NO_FrameRoundRect |
3779 |
return rc; |
| 3780 |
JNIEXPORT void JNICALL OS_NATIVE(FrameRoundRect) |
3780 |
} |
| 3781 |
(JNIEnv *env, jclass that, jobject arg0, jshort arg1, jshort arg2) |
3781 |
#endif |
| 3782 |
{ |
3782 |
|
| 3783 |
Rect _arg0, *lparg0=NULL; |
3783 |
#ifndef NO_Fix2Long |
| 3784 |
OS_NATIVE_ENTER(env, that, FrameRoundRect_FUNC); |
3784 |
JNIEXPORT jint JNICALL OS_NATIVE(Fix2Long) |
| 3785 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
3785 |
(JNIEnv *env, jclass that, jint arg0) |
| 3786 |
FrameRoundRect((const Rect *)lparg0, (short)arg1, (short)arg2); |
3786 |
{ |
| 3787 |
fail: |
3787 |
jint rc = 0; |
| 3788 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
3788 |
OS_NATIVE_ENTER(env, that, Fix2Long_FUNC); |
| 3789 |
OS_NATIVE_EXIT(env, that, FrameRoundRect_FUNC); |
3789 |
rc = (jint)Fix2Long(arg0); |
| 3790 |
} |
3790 |
OS_NATIVE_EXIT(env, that, Fix2Long_FUNC); |
| 3791 |
#endif |
3791 |
return rc; |
| 3792 |
|
3792 |
} |
| 3793 |
#ifndef NO_FrontWindow |
3793 |
#endif |
| 3794 |
JNIEXPORT jint JNICALL OS_NATIVE(FrontWindow) |
3794 |
|
| 3795 |
(JNIEnv *env, jclass that) |
3795 |
#ifndef NO_Fix2X |
| 3796 |
{ |
3796 |
JNIEXPORT jdouble JNICALL OS_NATIVE(Fix2X) |
| 3797 |
jint rc = 0; |
3797 |
(JNIEnv *env, jclass that, jint arg0) |
| 3798 |
OS_NATIVE_ENTER(env, that, FrontWindow_FUNC); |
3798 |
{ |
| 3799 |
rc = (jint)FrontWindow(); |
3799 |
jdouble rc = 0; |
| 3800 |
OS_NATIVE_EXIT(env, that, FrontWindow_FUNC); |
3800 |
OS_NATIVE_ENTER(env, that, Fix2X_FUNC); |
| 3801 |
return rc; |
3801 |
rc = (jdouble)Fix2X((Fixed)arg0); |
| 3802 |
} |
3802 |
OS_NATIVE_EXIT(env, that, Fix2X_FUNC); |
| 3803 |
#endif |
3803 |
return rc; |
| 3804 |
|
3804 |
} |
| 3805 |
#ifndef NO_Gestalt |
3805 |
#endif |
| 3806 |
JNIEXPORT jint JNICALL OS_NATIVE(Gestalt) |
3806 |
|
| 3807 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
3807 |
#ifndef NO_FrameOval |
| 3808 |
{ |
3808 |
JNIEXPORT void JNICALL OS_NATIVE(FrameOval) |
| 3809 |
jint *lparg1=NULL; |
3809 |
(JNIEnv *env, jclass that, jobject arg0) |
| 3810 |
jint rc = 0; |
3810 |
{ |
| 3811 |
OS_NATIVE_ENTER(env, that, Gestalt_FUNC); |
3811 |
Rect _arg0, *lparg0=NULL; |
| 3812 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
3812 |
OS_NATIVE_ENTER(env, that, FrameOval_FUNC); |
| 3813 |
rc = (jint)Gestalt((OSType)arg0, (long *)lparg1); |
3813 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 3814 |
fail: |
3814 |
FrameOval((const Rect *)lparg0); |
| 3815 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
3815 |
fail: |
| 3816 |
OS_NATIVE_EXIT(env, that, Gestalt_FUNC); |
3816 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 3817 |
return rc; |
3817 |
OS_NATIVE_EXIT(env, that, FrameOval_FUNC); |
| 3818 |
} |
3818 |
} |
| 3819 |
#endif |
3819 |
#endif |
| 3820 |
|
3820 |
|
| 3821 |
#ifndef NO_GetAppFont |
3821 |
#ifndef NO_FramePoly |
| 3822 |
JNIEXPORT jshort JNICALL OS_NATIVE(GetAppFont) |
3822 |
JNIEXPORT void JNICALL OS_NATIVE(FramePoly) |
| 3823 |
(JNIEnv *env, jclass that) |
3823 |
(JNIEnv *env, jclass that, jint arg0) |
| 3824 |
{ |
3824 |
{ |
| 3825 |
jshort rc = 0; |
3825 |
OS_NATIVE_ENTER(env, that, FramePoly_FUNC); |
| 3826 |
OS_NATIVE_ENTER(env, that, GetAppFont_FUNC); |
3826 |
FramePoly((PolyHandle)arg0); |
| 3827 |
rc = (jshort)GetAppFont(); |
3827 |
OS_NATIVE_EXIT(env, that, FramePoly_FUNC); |
| 3828 |
OS_NATIVE_EXIT(env, that, GetAppFont_FUNC); |
3828 |
} |
| 3829 |
return rc; |
3829 |
#endif |
| 3830 |
} |
3830 |
|
| 3831 |
#endif |
3831 |
#ifndef NO_FrameRect |
| 3832 |
|
3832 |
JNIEXPORT void JNICALL OS_NATIVE(FrameRect) |
| 3833 |
#ifndef NO_GetApplicationEventTarget |
3833 |
(JNIEnv *env, jclass that, jobject arg0) |
| 3834 |
JNIEXPORT jint JNICALL OS_NATIVE(GetApplicationEventTarget) |
3834 |
{ |
| 3835 |
(JNIEnv *env, jclass that) |
3835 |
Rect _arg0, *lparg0=NULL; |
| 3836 |
{ |
3836 |
OS_NATIVE_ENTER(env, that, FrameRect_FUNC); |
| 3837 |
jint rc = 0; |
3837 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 3838 |
OS_NATIVE_ENTER(env, that, GetApplicationEventTarget_FUNC); |
3838 |
FrameRect((const Rect *)lparg0); |
| 3839 |
rc = (jint)GetApplicationEventTarget(); |
3839 |
fail: |
| 3840 |
OS_NATIVE_EXIT(env, that, GetApplicationEventTarget_FUNC); |
3840 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 3841 |
return rc; |
3841 |
OS_NATIVE_EXIT(env, that, FrameRect_FUNC); |
| 3842 |
} |
3842 |
} |
| 3843 |
#endif |
3843 |
#endif |
| 3844 |
|
3844 |
|
| 3845 |
#ifndef NO_GetAvailableWindowAttributes |
3845 |
#ifndef NO_FrameRoundRect |
| 3846 |
JNIEXPORT jint JNICALL OS_NATIVE(GetAvailableWindowAttributes) |
3846 |
JNIEXPORT void JNICALL OS_NATIVE(FrameRoundRect) |
| 3847 |
(JNIEnv *env, jclass that, jint arg0) |
3847 |
(JNIEnv *env, jclass that, jobject arg0, jshort arg1, jshort arg2) |
| 3848 |
{ |
3848 |
{ |
| 3849 |
jint rc = 0; |
3849 |
Rect _arg0, *lparg0=NULL; |
| 3850 |
OS_NATIVE_ENTER(env, that, GetAvailableWindowAttributes_FUNC); |
3850 |
OS_NATIVE_ENTER(env, that, FrameRoundRect_FUNC); |
| 3851 |
rc = (jint)GetAvailableWindowAttributes((WindowClass)arg0); |
3851 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 3852 |
OS_NATIVE_EXIT(env, that, GetAvailableWindowAttributes_FUNC); |
3852 |
FrameRoundRect((const Rect *)lparg0, (short)arg1, (short)arg2); |
| 3853 |
return rc; |
3853 |
fail: |
| 3854 |
} |
3854 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 3855 |
#endif |
3855 |
OS_NATIVE_EXIT(env, that, FrameRoundRect_FUNC); |
| 3856 |
|
3856 |
} |
| 3857 |
#ifndef NO_GetAvailableWindowPositioningBounds |
3857 |
#endif |
| 3858 |
JNIEXPORT jint JNICALL OS_NATIVE(GetAvailableWindowPositioningBounds) |
3858 |
|
| 3859 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
3859 |
#ifndef NO_FrontWindow |
| 3860 |
{ |
3860 |
JNIEXPORT jint JNICALL OS_NATIVE(FrontWindow) |
| 3861 |
Rect _arg1, *lparg1=NULL; |
3861 |
(JNIEnv *env, jclass that) |
| 3862 |
jint rc = 0; |
3862 |
{ |
| 3863 |
OS_NATIVE_ENTER(env, that, GetAvailableWindowPositioningBounds_FUNC); |
3863 |
jint rc = 0; |
| 3864 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
3864 |
OS_NATIVE_ENTER(env, that, FrontWindow_FUNC); |
| 3865 |
rc = (jint)GetAvailableWindowPositioningBounds((GDHandle)arg0, (Rect *)lparg1); |
3865 |
rc = (jint)FrontWindow(); |
| 3866 |
fail: |
3866 |
OS_NATIVE_EXIT(env, that, FrontWindow_FUNC); |
| 3867 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
3867 |
return rc; |
| 3868 |
OS_NATIVE_EXIT(env, that, GetAvailableWindowPositioningBounds_FUNC); |
3868 |
} |
| 3869 |
return rc; |
3869 |
#endif |
| 3870 |
} |
3870 |
|
| 3871 |
#endif |
3871 |
#ifndef NO_Gestalt |
| 3872 |
|
3872 |
JNIEXPORT jint JNICALL OS_NATIVE(Gestalt) |
| 3873 |
#ifndef NO_GetBestControlRect |
3873 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 3874 |
JNIEXPORT jint JNICALL OS_NATIVE(GetBestControlRect) |
3874 |
{ |
| 3875 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jshortArray arg2) |
3875 |
jint *lparg1=NULL; |
| 3876 |
{ |
3876 |
jint rc = 0; |
| 3877 |
Rect _arg1, *lparg1=NULL; |
3877 |
OS_NATIVE_ENTER(env, that, Gestalt_FUNC); |
| 3878 |
jshort *lparg2=NULL; |
3878 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 3879 |
jint rc = 0; |
3879 |
rc = (jint)Gestalt((OSType)arg0, (long *)lparg1); |
| 3880 |
OS_NATIVE_ENTER(env, that, GetBestControlRect_FUNC); |
3880 |
fail: |
| 3881 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
3881 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 3882 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
3882 |
OS_NATIVE_EXIT(env, that, Gestalt_FUNC); |
| 3883 |
rc = (jint)GetBestControlRect((ControlRef)arg0, (Rect *)lparg1, (SInt16 *)lparg2); |
3883 |
return rc; |
| 3884 |
fail: |
3884 |
} |
| 3885 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
3885 |
#endif |
| 3886 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
3886 |
|
| 3887 |
OS_NATIVE_EXIT(env, that, GetBestControlRect_FUNC); |
3887 |
#ifndef NO_GetAppFont |
| 3888 |
return rc; |
3888 |
JNIEXPORT jshort JNICALL OS_NATIVE(GetAppFont) |
| 3889 |
} |
3889 |
(JNIEnv *env, jclass that) |
| 3890 |
#endif |
3890 |
{ |
| 3891 |
|
3891 |
jshort rc = 0; |
| 3892 |
#ifndef NO_GetCaretTime |
3892 |
OS_NATIVE_ENTER(env, that, GetAppFont_FUNC); |
| 3893 |
JNIEXPORT jint JNICALL OS_NATIVE(GetCaretTime) |
3893 |
rc = (jshort)GetAppFont(); |
| 3894 |
(JNIEnv *env, jclass that) |
3894 |
OS_NATIVE_EXIT(env, that, GetAppFont_FUNC); |
| 3895 |
{ |
3895 |
return rc; |
| 3896 |
jint rc = 0; |
3896 |
} |
| 3897 |
OS_NATIVE_ENTER(env, that, GetCaretTime_FUNC); |
3897 |
#endif |
| 3898 |
rc = (jint)GetCaretTime(); |
3898 |
|
| 3899 |
OS_NATIVE_EXIT(env, that, GetCaretTime_FUNC); |
3899 |
#ifndef NO_GetApplicationEventTarget |
| 3900 |
return rc; |
3900 |
JNIEXPORT jint JNICALL OS_NATIVE(GetApplicationEventTarget) |
| 3901 |
} |
3901 |
(JNIEnv *env, jclass that) |
| 3902 |
#endif |
3902 |
{ |
| 3903 |
|
3903 |
jint rc = 0; |
| 3904 |
#ifndef NO_GetClip |
3904 |
OS_NATIVE_ENTER(env, that, GetApplicationEventTarget_FUNC); |
| 3905 |
JNIEXPORT void JNICALL OS_NATIVE(GetClip) |
3905 |
rc = (jint)GetApplicationEventTarget(); |
| 3906 |
(JNIEnv *env, jclass that, jint arg0) |
3906 |
OS_NATIVE_EXIT(env, that, GetApplicationEventTarget_FUNC); |
| 3907 |
{ |
3907 |
return rc; |
| 3908 |
OS_NATIVE_ENTER(env, that, GetClip_FUNC); |
3908 |
} |
| 3909 |
GetClip((RgnHandle)arg0); |
3909 |
#endif |
| 3910 |
OS_NATIVE_EXIT(env, that, GetClip_FUNC); |
3910 |
|
| 3911 |
} |
3911 |
#ifndef NO_GetAvailableWindowAttributes |
| 3912 |
#endif |
3912 |
JNIEXPORT jint JNICALL OS_NATIVE(GetAvailableWindowAttributes) |
| 3913 |
|
3913 |
(JNIEnv *env, jclass that, jint arg0) |
| 3914 |
#ifndef NO_GetControl32BitMaximum |
3914 |
{ |
| 3915 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControl32BitMaximum) |
3915 |
jint rc = 0; |
| 3916 |
(JNIEnv *env, jclass that, jint arg0) |
3916 |
OS_NATIVE_ENTER(env, that, GetAvailableWindowAttributes_FUNC); |
| 3917 |
{ |
3917 |
rc = (jint)GetAvailableWindowAttributes((WindowClass)arg0); |
| 3918 |
jint rc = 0; |
3918 |
OS_NATIVE_EXIT(env, that, GetAvailableWindowAttributes_FUNC); |
| 3919 |
OS_NATIVE_ENTER(env, that, GetControl32BitMaximum_FUNC); |
3919 |
return rc; |
| 3920 |
rc = (jint)GetControl32BitMaximum((ControlRef)arg0); |
3920 |
} |
| 3921 |
OS_NATIVE_EXIT(env, that, GetControl32BitMaximum_FUNC); |
3921 |
#endif |
| 3922 |
return rc; |
3922 |
|
| 3923 |
} |
3923 |
#ifndef NO_GetAvailableWindowPositioningBounds |
| 3924 |
#endif |
3924 |
JNIEXPORT jint JNICALL OS_NATIVE(GetAvailableWindowPositioningBounds) |
| 3925 |
|
3925 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 3926 |
#ifndef NO_GetControl32BitMinimum |
3926 |
{ |
| 3927 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControl32BitMinimum) |
3927 |
Rect _arg1, *lparg1=NULL; |
| 3928 |
(JNIEnv *env, jclass that, jint arg0) |
3928 |
jint rc = 0; |
| 3929 |
{ |
3929 |
OS_NATIVE_ENTER(env, that, GetAvailableWindowPositioningBounds_FUNC); |
| 3930 |
jint rc = 0; |
3930 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 3931 |
OS_NATIVE_ENTER(env, that, GetControl32BitMinimum_FUNC); |
3931 |
rc = (jint)GetAvailableWindowPositioningBounds((GDHandle)arg0, (Rect *)lparg1); |
| 3932 |
rc = (jint)GetControl32BitMinimum((ControlRef)arg0); |
3932 |
fail: |
| 3933 |
OS_NATIVE_EXIT(env, that, GetControl32BitMinimum_FUNC); |
3933 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 3934 |
return rc; |
3934 |
OS_NATIVE_EXIT(env, that, GetAvailableWindowPositioningBounds_FUNC); |
| 3935 |
} |
3935 |
return rc; |
| 3936 |
#endif |
3936 |
} |
| 3937 |
|
3937 |
#endif |
| 3938 |
#ifndef NO_GetControl32BitValue |
3938 |
|
| 3939 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControl32BitValue) |
3939 |
#ifndef NO_GetBestControlRect |
| 3940 |
(JNIEnv *env, jclass that, jint arg0) |
3940 |
JNIEXPORT jint JNICALL OS_NATIVE(GetBestControlRect) |
| 3941 |
{ |
3941 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jshortArray arg2) |
| 3942 |
jint rc = 0; |
3942 |
{ |
| 3943 |
OS_NATIVE_ENTER(env, that, GetControl32BitValue_FUNC); |
3943 |
Rect _arg1, *lparg1=NULL; |
| 3944 |
rc = (jint)GetControl32BitValue((ControlRef)arg0); |
3944 |
jshort *lparg2=NULL; |
| 3945 |
OS_NATIVE_EXIT(env, that, GetControl32BitValue_FUNC); |
3945 |
jint rc = 0; |
| 3946 |
return rc; |
3946 |
OS_NATIVE_ENTER(env, that, GetBestControlRect_FUNC); |
| 3947 |
} |
3947 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 3948 |
#endif |
3948 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 3949 |
|
3949 |
rc = (jint)GetBestControlRect((ControlRef)arg0, (Rect *)lparg1, (SInt16 *)lparg2); |
| 3950 |
#ifndef NO_GetControlBounds |
3950 |
fail: |
| 3951 |
JNIEXPORT void JNICALL OS_NATIVE(GetControlBounds) |
3951 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
| 3952 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
3952 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 3953 |
{ |
3953 |
OS_NATIVE_EXIT(env, that, GetBestControlRect_FUNC); |
| 3954 |
Rect _arg1, *lparg1=NULL; |
3954 |
return rc; |
| 3955 |
OS_NATIVE_ENTER(env, that, GetControlBounds_FUNC); |
3955 |
} |
| 3956 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
3956 |
#endif |
| 3957 |
GetControlBounds((ControlRef)arg0, (Rect *)lparg1); |
3957 |
|
| 3958 |
fail: |
3958 |
#ifndef NO_GetCaretTime |
| 3959 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
3959 |
JNIEXPORT jint JNICALL OS_NATIVE(GetCaretTime) |
| 3960 |
OS_NATIVE_EXIT(env, that, GetControlBounds_FUNC); |
3960 |
(JNIEnv *env, jclass that) |
| 3961 |
} |
3961 |
{ |
| 3962 |
#endif |
3962 |
jint rc = 0; |
| 3963 |
|
3963 |
OS_NATIVE_ENTER(env, that, GetCaretTime_FUNC); |
| 3964 |
#ifndef NO_GetControlData__ISIILorg_eclipse_swt_internal_carbon_ControlFontStyleRec_2_3I |
3964 |
rc = (jint)GetCaretTime(); |
| 3965 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlData__ISIILorg_eclipse_swt_internal_carbon_ControlFontStyleRec_2_3I) |
3965 |
OS_NATIVE_EXIT(env, that, GetCaretTime_FUNC); |
| 3966 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2, jint arg3, jobject arg4, jintArray arg5) |
3966 |
return rc; |
| 3967 |
{ |
3967 |
} |
| 3968 |
ControlFontStyleRec _arg4, *lparg4=NULL; |
3968 |
#endif |
| 3969 |
jint *lparg5=NULL; |
3969 |
|
| 3970 |
jint rc = 0; |
3970 |
#ifndef NO_GetClip |
| 3971 |
OS_NATIVE_ENTER(env, that, GetControlData__ISIILorg_eclipse_swt_internal_carbon_ControlFontStyleRec_2_3I_FUNC); |
3971 |
JNIEXPORT void JNICALL OS_NATIVE(GetClip) |
| 3972 |
if (arg4) if ((lparg4 = getControlFontStyleRecFields(env, arg4, &_arg4)) == NULL) goto fail; |
3972 |
(JNIEnv *env, jclass that, jint arg0) |
| 3973 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
3973 |
{ |
| 3974 |
rc = (jint)GetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (void *)lparg4, (Size *)lparg5); |
3974 |
OS_NATIVE_ENTER(env, that, GetClip_FUNC); |
| 3975 |
fail: |
3975 |
GetClip((RgnHandle)arg0); |
| 3976 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
3976 |
OS_NATIVE_EXIT(env, that, GetClip_FUNC); |
| 3977 |
if (arg4 && lparg4) setControlFontStyleRecFields(env, arg4, lparg4); |
3977 |
} |
| 3978 |
OS_NATIVE_EXIT(env, that, GetControlData__ISIILorg_eclipse_swt_internal_carbon_ControlFontStyleRec_2_3I_FUNC); |
3978 |
#endif |
| 3979 |
return rc; |
3979 |
|
| 3980 |
} |
3980 |
#ifndef NO_GetControl32BitMaximum |
| 3981 |
#endif |
3981 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControl32BitMaximum) |
| 3982 |
|
3982 |
(JNIEnv *env, jclass that, jint arg0) |
| 3983 |
#ifndef NO_GetControlData__ISIILorg_eclipse_swt_internal_carbon_Rect_2_3I |
3983 |
{ |
| 3984 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlData__ISIILorg_eclipse_swt_internal_carbon_Rect_2_3I) |
3984 |
jint rc = 0; |
| 3985 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2, jint arg3, jobject arg4, jintArray arg5) |
3985 |
OS_NATIVE_ENTER(env, that, GetControl32BitMaximum_FUNC); |
| 3986 |
{ |
3986 |
rc = (jint)GetControl32BitMaximum((ControlRef)arg0); |
| 3987 |
Rect _arg4, *lparg4=NULL; |
3987 |
OS_NATIVE_EXIT(env, that, GetControl32BitMaximum_FUNC); |
| 3988 |
jint *lparg5=NULL; |
3988 |
return rc; |
| 3989 |
jint rc = 0; |
3989 |
} |
| 3990 |
OS_NATIVE_ENTER(env, that, GetControlData__ISIILorg_eclipse_swt_internal_carbon_Rect_2_3I_FUNC); |
3990 |
#endif |
| 3991 |
if (arg4) if ((lparg4 = getRectFields(env, arg4, &_arg4)) == NULL) goto fail; |
3991 |
|
| 3992 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
3992 |
#ifndef NO_GetControl32BitMinimum |
| 3993 |
rc = (jint)GetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (void *)lparg4, (Size *)lparg5); |
3993 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControl32BitMinimum) |
| 3994 |
fail: |
3994 |
(JNIEnv *env, jclass that, jint arg0) |
| 3995 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
3995 |
{ |
| 3996 |
if (arg4 && lparg4) setRectFields(env, arg4, lparg4); |
3996 |
jint rc = 0; |
| 3997 |
OS_NATIVE_EXIT(env, that, GetControlData__ISIILorg_eclipse_swt_internal_carbon_Rect_2_3I_FUNC); |
3997 |
OS_NATIVE_ENTER(env, that, GetControl32BitMinimum_FUNC); |
| 3998 |
return rc; |
3998 |
rc = (jint)GetControl32BitMinimum((ControlRef)arg0); |
| 3999 |
} |
3999 |
OS_NATIVE_EXIT(env, that, GetControl32BitMinimum_FUNC); |
| 4000 |
#endif |
4000 |
return rc; |
| 4001 |
|
4001 |
} |
| 4002 |
#ifndef NO_GetControlData__ISII_3B_3I |
4002 |
#endif |
| 4003 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlData__ISII_3B_3I) |
4003 |
|
| 4004 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2, jint arg3, jbyteArray arg4, jintArray arg5) |
4004 |
#ifndef NO_GetControl32BitValue |
| 4005 |
{ |
4005 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControl32BitValue) |
| 4006 |
jbyte *lparg4=NULL; |
4006 |
(JNIEnv *env, jclass that, jint arg0) |
| 4007 |
jint *lparg5=NULL; |
4007 |
{ |
| 4008 |
jint rc = 0; |
4008 |
jint rc = 0; |
| 4009 |
OS_NATIVE_ENTER(env, that, GetControlData__ISII_3B_3I_FUNC); |
4009 |
OS_NATIVE_ENTER(env, that, GetControl32BitValue_FUNC); |
| 4010 |
if (arg4) if ((lparg4 = (*env)->GetByteArrayElements(env, arg4, NULL)) == NULL) goto fail; |
4010 |
rc = (jint)GetControl32BitValue((ControlRef)arg0); |
| 4011 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
4011 |
OS_NATIVE_EXIT(env, that, GetControl32BitValue_FUNC); |
| 4012 |
rc = (jint)GetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (void *)lparg4, (Size *)lparg5); |
4012 |
return rc; |
| 4013 |
fail: |
4013 |
} |
| 4014 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
4014 |
#endif |
| 4015 |
if (arg4 && lparg4) (*env)->ReleaseByteArrayElements(env, arg4, lparg4, 0); |
4015 |
|
| 4016 |
OS_NATIVE_EXIT(env, that, GetControlData__ISII_3B_3I_FUNC); |
4016 |
#ifndef NO_GetControlBounds |
| 4017 |
return rc; |
4017 |
JNIEXPORT void JNICALL OS_NATIVE(GetControlBounds) |
| 4018 |
} |
4018 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 4019 |
#endif |
4019 |
{ |
| 4020 |
|
4020 |
Rect _arg1, *lparg1=NULL; |
| 4021 |
#ifndef NO_GetControlData__ISII_3I_3I |
4021 |
OS_NATIVE_ENTER(env, that, GetControlBounds_FUNC); |
| 4022 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlData__ISII_3I_3I) |
4022 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 4023 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2, jint arg3, jintArray arg4, jintArray arg5) |
4023 |
GetControlBounds((ControlRef)arg0, (Rect *)lparg1); |
| 4024 |
{ |
4024 |
fail: |
| 4025 |
jint *lparg4=NULL; |
4025 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 4026 |
jint *lparg5=NULL; |
4026 |
OS_NATIVE_EXIT(env, that, GetControlBounds_FUNC); |
| 4027 |
jint rc = 0; |
4027 |
} |
| 4028 |
OS_NATIVE_ENTER(env, that, GetControlData__ISII_3I_3I_FUNC); |
4028 |
#endif |
| 4029 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
4029 |
|
| 4030 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
4030 |
#ifndef NO_GetControlData__ISIILorg_eclipse_swt_internal_carbon_ControlFontStyleRec_2_3I |
| 4031 |
rc = (jint)GetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (void *)lparg4, (Size *)lparg5); |
4031 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlData__ISIILorg_eclipse_swt_internal_carbon_ControlFontStyleRec_2_3I) |
| 4032 |
fail: |
4032 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2, jint arg3, jobject arg4, jintArray arg5) |
| 4033 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
4033 |
{ |
| 4034 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
4034 |
ControlFontStyleRec _arg4, *lparg4=NULL; |
| 4035 |
OS_NATIVE_EXIT(env, that, GetControlData__ISII_3I_3I_FUNC); |
4035 |
jint *lparg5=NULL; |
| 4036 |
return rc; |
4036 |
jint rc = 0; |
| 4037 |
} |
4037 |
OS_NATIVE_ENTER(env, that, GetControlData__ISIILorg_eclipse_swt_internal_carbon_ControlFontStyleRec_2_3I_FUNC); |
| 4038 |
#endif |
4038 |
if (arg4) if ((lparg4 = getControlFontStyleRecFields(env, arg4, &_arg4)) == NULL) goto fail; |
| 4039 |
|
4039 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 4040 |
#ifndef NO_GetControlData__ISII_3S_3I |
4040 |
rc = (jint)GetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (void *)lparg4, (Size *)lparg5); |
| 4041 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlData__ISII_3S_3I) |
4041 |
fail: |
| 4042 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2, jint arg3, jshortArray arg4, jintArray arg5) |
4042 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 4043 |
{ |
4043 |
if (arg4 && lparg4) setControlFontStyleRecFields(env, arg4, lparg4); |
| 4044 |
jshort *lparg4=NULL; |
4044 |
OS_NATIVE_EXIT(env, that, GetControlData__ISIILorg_eclipse_swt_internal_carbon_ControlFontStyleRec_2_3I_FUNC); |
| 4045 |
jint *lparg5=NULL; |
4045 |
return rc; |
| 4046 |
jint rc = 0; |
4046 |
} |
| 4047 |
OS_NATIVE_ENTER(env, that, GetControlData__ISII_3S_3I_FUNC); |
4047 |
#endif |
| 4048 |
if (arg4) if ((lparg4 = (*env)->GetShortArrayElements(env, arg4, NULL)) == NULL) goto fail; |
4048 |
|
| 4049 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
4049 |
#ifndef NO_GetControlData__ISIILorg_eclipse_swt_internal_carbon_Rect_2_3I |
| 4050 |
rc = (jint)GetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (void *)lparg4, (Size *)lparg5); |
4050 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlData__ISIILorg_eclipse_swt_internal_carbon_Rect_2_3I) |
| 4051 |
fail: |
4051 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2, jint arg3, jobject arg4, jintArray arg5) |
| 4052 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
4052 |
{ |
| 4053 |
if (arg4 && lparg4) (*env)->ReleaseShortArrayElements(env, arg4, lparg4, 0); |
4053 |
Rect _arg4, *lparg4=NULL; |
| 4054 |
OS_NATIVE_EXIT(env, that, GetControlData__ISII_3S_3I_FUNC); |
4054 |
jint *lparg5=NULL; |
| 4055 |
return rc; |
4055 |
jint rc = 0; |
| 4056 |
} |
4056 |
OS_NATIVE_ENTER(env, that, GetControlData__ISIILorg_eclipse_swt_internal_carbon_Rect_2_3I_FUNC); |
| 4057 |
#endif |
4057 |
if (arg4) if ((lparg4 = getRectFields(env, arg4, &_arg4)) == NULL) goto fail; |
| 4058 |
|
4058 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 4059 |
#ifndef NO_GetControlEventTarget |
4059 |
rc = (jint)GetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (void *)lparg4, (Size *)lparg5); |
| 4060 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlEventTarget) |
4060 |
fail: |
| 4061 |
(JNIEnv *env, jclass that, jint arg0) |
4061 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 4062 |
{ |
4062 |
if (arg4 && lparg4) setRectFields(env, arg4, lparg4); |
| 4063 |
jint rc = 0; |
4063 |
OS_NATIVE_EXIT(env, that, GetControlData__ISIILorg_eclipse_swt_internal_carbon_Rect_2_3I_FUNC); |
| 4064 |
OS_NATIVE_ENTER(env, that, GetControlEventTarget_FUNC); |
4064 |
return rc; |
| 4065 |
rc = (jint)GetControlEventTarget((ControlRef)arg0); |
4065 |
} |
| 4066 |
OS_NATIVE_EXIT(env, that, GetControlEventTarget_FUNC); |
4066 |
#endif |
| 4067 |
return rc; |
4067 |
|
| 4068 |
} |
4068 |
#ifndef NO_GetControlData__ISII_3B_3I |
| 4069 |
#endif |
4069 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlData__ISII_3B_3I) |
| 4070 |
|
4070 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2, jint arg3, jbyteArray arg4, jintArray arg5) |
| 4071 |
#ifndef NO_GetControlFeatures |
4071 |
{ |
| 4072 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlFeatures) |
4072 |
jbyte *lparg4=NULL; |
| 4073 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
4073 |
jint *lparg5=NULL; |
| 4074 |
{ |
4074 |
jint rc = 0; |
| 4075 |
jint *lparg1=NULL; |
4075 |
OS_NATIVE_ENTER(env, that, GetControlData__ISII_3B_3I_FUNC); |
| 4076 |
jint rc = 0; |
4076 |
if (arg4) if ((lparg4 = (*env)->GetByteArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 4077 |
OS_NATIVE_ENTER(env, that, GetControlFeatures_FUNC); |
4077 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 4078 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4078 |
rc = (jint)GetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (void *)lparg4, (Size *)lparg5); |
| 4079 |
rc = (jint)GetControlFeatures((ControlRef)arg0, lparg1); |
4079 |
fail: |
| 4080 |
fail: |
4080 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 4081 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
4081 |
if (arg4 && lparg4) (*env)->ReleaseByteArrayElements(env, arg4, lparg4, 0); |
| 4082 |
OS_NATIVE_EXIT(env, that, GetControlFeatures_FUNC); |
4082 |
OS_NATIVE_EXIT(env, that, GetControlData__ISII_3B_3I_FUNC); |
| 4083 |
return rc; |
4083 |
return rc; |
| 4084 |
} |
4084 |
} |
| 4085 |
#endif |
4085 |
#endif |
| 4086 |
|
4086 |
|
| 4087 |
#ifndef NO_GetControlOwner |
4087 |
#ifndef NO_GetControlData__ISII_3I_3I |
| 4088 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlOwner) |
4088 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlData__ISII_3I_3I) |
| 4089 |
(JNIEnv *env, jclass that, jint arg0) |
4089 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2, jint arg3, jintArray arg4, jintArray arg5) |
| 4090 |
{ |
4090 |
{ |
| 4091 |
jint rc = 0; |
4091 |
jint *lparg4=NULL; |
| 4092 |
OS_NATIVE_ENTER(env, that, GetControlOwner_FUNC); |
4092 |
jint *lparg5=NULL; |
| 4093 |
rc = (jint)GetControlOwner((ControlRef)arg0); |
4093 |
jint rc = 0; |
| 4094 |
OS_NATIVE_EXIT(env, that, GetControlOwner_FUNC); |
4094 |
OS_NATIVE_ENTER(env, that, GetControlData__ISII_3I_3I_FUNC); |
| 4095 |
return rc; |
4095 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 4096 |
} |
4096 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 4097 |
#endif |
4097 |
rc = (jint)GetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (void *)lparg4, (Size *)lparg5); |
| 4098 |
|
4098 |
fail: |
| 4099 |
#ifndef NO_GetControlProperty |
4099 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 4100 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlProperty) |
4100 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 4101 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4, jintArray arg5) |
4101 |
OS_NATIVE_EXIT(env, that, GetControlData__ISII_3I_3I_FUNC); |
| 4102 |
{ |
4102 |
return rc; |
| 4103 |
jint *lparg4=NULL; |
4103 |
} |
| 4104 |
jint *lparg5=NULL; |
4104 |
#endif |
| 4105 |
jint rc = 0; |
4105 |
|
| 4106 |
OS_NATIVE_ENTER(env, that, GetControlProperty_FUNC); |
4106 |
#ifndef NO_GetControlData__ISII_3S_3I |
| 4107 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
4107 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlData__ISII_3S_3I) |
| 4108 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
4108 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2, jint arg3, jshortArray arg4, jintArray arg5) |
| 4109 |
rc = (jint)GetControlProperty((ControlRef)arg0, arg1, arg2, arg3, lparg4, lparg5); |
4109 |
{ |
| 4110 |
fail: |
4110 |
jshort *lparg4=NULL; |
| 4111 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
4111 |
jint *lparg5=NULL; |
| 4112 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
4112 |
jint rc = 0; |
| 4113 |
OS_NATIVE_EXIT(env, that, GetControlProperty_FUNC); |
4113 |
OS_NATIVE_ENTER(env, that, GetControlData__ISII_3S_3I_FUNC); |
| 4114 |
return rc; |
4114 |
if (arg4) if ((lparg4 = (*env)->GetShortArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 4115 |
} |
4115 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 4116 |
#endif |
4116 |
rc = (jint)GetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (void *)lparg4, (Size *)lparg5); |
| 4117 |
|
4117 |
fail: |
| 4118 |
#ifndef NO_GetControlReference |
4118 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 4119 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlReference) |
4119 |
if (arg4 && lparg4) (*env)->ReleaseShortArrayElements(env, arg4, lparg4, 0); |
| 4120 |
(JNIEnv *env, jclass that, jint arg0) |
4120 |
OS_NATIVE_EXIT(env, that, GetControlData__ISII_3S_3I_FUNC); |
| 4121 |
{ |
4121 |
return rc; |
| 4122 |
jint rc = 0; |
4122 |
} |
| 4123 |
OS_NATIVE_ENTER(env, that, GetControlReference_FUNC); |
4123 |
#endif |
| 4124 |
rc = (jint)GetControlReference((ControlRef)arg0); |
4124 |
|
| 4125 |
OS_NATIVE_EXIT(env, that, GetControlReference_FUNC); |
4125 |
#ifndef NO_GetControlEventTarget |
| 4126 |
return rc; |
4126 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlEventTarget) |
| 4127 |
} |
4127 |
(JNIEnv *env, jclass that, jint arg0) |
| 4128 |
#endif |
4128 |
{ |
| 4129 |
|
4129 |
jint rc = 0; |
| 4130 |
#ifndef NO_GetControlRegion |
4130 |
OS_NATIVE_ENTER(env, that, GetControlEventTarget_FUNC); |
| 4131 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlRegion) |
4131 |
rc = (jint)GetControlEventTarget((ControlRef)arg0); |
| 4132 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2) |
4132 |
OS_NATIVE_EXIT(env, that, GetControlEventTarget_FUNC); |
| 4133 |
{ |
4133 |
return rc; |
| 4134 |
jint rc = 0; |
4134 |
} |
| 4135 |
OS_NATIVE_ENTER(env, that, GetControlRegion_FUNC); |
4135 |
#endif |
| 4136 |
rc = (jint)GetControlRegion((ControlRef)arg0, (ControlPartCode)arg1, (RgnHandle)arg2); |
4136 |
|
| 4137 |
OS_NATIVE_EXIT(env, that, GetControlRegion_FUNC); |
4137 |
#ifndef NO_GetControlFeatures |
| 4138 |
return rc; |
4138 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlFeatures) |
| 4139 |
} |
4139 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 4140 |
#endif |
4140 |
{ |
| 4141 |
|
4141 |
jint *lparg1=NULL; |
| 4142 |
#ifndef NO_GetControlValue |
4142 |
jint rc = 0; |
| 4143 |
JNIEXPORT jshort JNICALL OS_NATIVE(GetControlValue) |
4143 |
OS_NATIVE_ENTER(env, that, GetControlFeatures_FUNC); |
| 4144 |
(JNIEnv *env, jclass that, jint arg0) |
4144 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 4145 |
{ |
4145 |
rc = (jint)GetControlFeatures((ControlRef)arg0, lparg1); |
| 4146 |
jshort rc = 0; |
4146 |
fail: |
| 4147 |
OS_NATIVE_ENTER(env, that, GetControlValue_FUNC); |
4147 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 4148 |
rc = (jshort)GetControlValue((ControlRef)arg0); |
4148 |
OS_NATIVE_EXIT(env, that, GetControlFeatures_FUNC); |
| 4149 |
OS_NATIVE_EXIT(env, that, GetControlValue_FUNC); |
4149 |
return rc; |
| 4150 |
return rc; |
4150 |
} |
| 4151 |
} |
4151 |
#endif |
| 4152 |
#endif |
4152 |
|
| 4153 |
|
4153 |
#ifndef NO_GetControlOwner |
| 4154 |
#ifndef NO_GetControlViewSize |
4154 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlOwner) |
| 4155 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlViewSize) |
4155 |
(JNIEnv *env, jclass that, jint arg0) |
| 4156 |
(JNIEnv *env, jclass that, jint arg0) |
4156 |
{ |
| 4157 |
{ |
4157 |
jint rc = 0; |
| 4158 |
jint rc = 0; |
4158 |
OS_NATIVE_ENTER(env, that, GetControlOwner_FUNC); |
| 4159 |
OS_NATIVE_ENTER(env, that, GetControlViewSize_FUNC); |
4159 |
rc = (jint)GetControlOwner((ControlRef)arg0); |
| 4160 |
rc = (jint)GetControlViewSize((ControlRef)arg0); |
4160 |
OS_NATIVE_EXIT(env, that, GetControlOwner_FUNC); |
| 4161 |
OS_NATIVE_EXIT(env, that, GetControlViewSize_FUNC); |
4161 |
return rc; |
| 4162 |
return rc; |
4162 |
} |
| 4163 |
} |
4163 |
#endif |
| 4164 |
#endif |
4164 |
|
| 4165 |
|
4165 |
#ifndef NO_GetControlProperty |
| 4166 |
#ifndef NO_GetCurrentEventButtonState |
4166 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlProperty) |
| 4167 |
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentEventButtonState) |
4167 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4, jintArray arg5) |
| 4168 |
(JNIEnv *env, jclass that) |
4168 |
{ |
| 4169 |
{ |
4169 |
jint *lparg4=NULL; |
| 4170 |
jint rc = 0; |
4170 |
jint *lparg5=NULL; |
| 4171 |
OS_NATIVE_ENTER(env, that, GetCurrentEventButtonState_FUNC); |
4171 |
jint rc = 0; |
| 4172 |
rc = (jint)GetCurrentEventButtonState(); |
4172 |
OS_NATIVE_ENTER(env, that, GetControlProperty_FUNC); |
| 4173 |
OS_NATIVE_EXIT(env, that, GetCurrentEventButtonState_FUNC); |
4173 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 4174 |
return rc; |
4174 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 4175 |
} |
4175 |
rc = (jint)GetControlProperty((ControlRef)arg0, arg1, arg2, arg3, lparg4, lparg5); |
| 4176 |
#endif |
4176 |
fail: |
| 4177 |
|
4177 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 4178 |
#ifndef NO_GetCurrentEventKeyModifiers |
4178 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 4179 |
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentEventKeyModifiers) |
4179 |
OS_NATIVE_EXIT(env, that, GetControlProperty_FUNC); |
| 4180 |
(JNIEnv *env, jclass that) |
4180 |
return rc; |
| 4181 |
{ |
4181 |
} |
| 4182 |
jint rc = 0; |
4182 |
#endif |
| 4183 |
OS_NATIVE_ENTER(env, that, GetCurrentEventKeyModifiers_FUNC); |
4183 |
|
| 4184 |
rc = (jint)GetCurrentEventKeyModifiers(); |
4184 |
#ifndef NO_GetControlReference |
| 4185 |
OS_NATIVE_EXIT(env, that, GetCurrentEventKeyModifiers_FUNC); |
4185 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlReference) |
| 4186 |
return rc; |
4186 |
(JNIEnv *env, jclass that, jint arg0) |
| 4187 |
} |
4187 |
{ |
| 4188 |
#endif |
4188 |
jint rc = 0; |
| 4189 |
|
4189 |
OS_NATIVE_ENTER(env, that, GetControlReference_FUNC); |
| 4190 |
#ifndef NO_GetCurrentEventLoop |
4190 |
rc = (jint)GetControlReference((ControlRef)arg0); |
| 4191 |
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentEventLoop) |
4191 |
OS_NATIVE_EXIT(env, that, GetControlReference_FUNC); |
| 4192 |
(JNIEnv *env, jclass that) |
4192 |
return rc; |
| 4193 |
{ |
4193 |
} |
| 4194 |
jint rc = 0; |
4194 |
#endif |
| 4195 |
OS_NATIVE_ENTER(env, that, GetCurrentEventLoop_FUNC); |
4195 |
|
| 4196 |
rc = (jint)GetCurrentEventLoop(); |
4196 |
#ifndef NO_GetControlRegion |
| 4197 |
OS_NATIVE_EXIT(env, that, GetCurrentEventLoop_FUNC); |
4197 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlRegion) |
| 4198 |
return rc; |
4198 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2) |
| 4199 |
} |
4199 |
{ |
| 4200 |
#endif |
4200 |
jint rc = 0; |
| 4201 |
|
4201 |
OS_NATIVE_ENTER(env, that, GetControlRegion_FUNC); |
| 4202 |
#ifndef NO_GetCurrentEventQueue |
4202 |
rc = (jint)GetControlRegion((ControlRef)arg0, (ControlPartCode)arg1, (RgnHandle)arg2); |
| 4203 |
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentEventQueue) |
4203 |
OS_NATIVE_EXIT(env, that, GetControlRegion_FUNC); |
| 4204 |
(JNIEnv *env, jclass that) |
4204 |
return rc; |
| 4205 |
{ |
4205 |
} |
| 4206 |
jint rc = 0; |
4206 |
#endif |
| 4207 |
OS_NATIVE_ENTER(env, that, GetCurrentEventQueue_FUNC); |
4207 |
|
| 4208 |
rc = (jint)GetCurrentEventQueue(); |
4208 |
#ifndef NO_GetControlValue |
| 4209 |
OS_NATIVE_EXIT(env, that, GetCurrentEventQueue_FUNC); |
4209 |
JNIEXPORT jshort JNICALL OS_NATIVE(GetControlValue) |
| 4210 |
return rc; |
4210 |
(JNIEnv *env, jclass that, jint arg0) |
| 4211 |
} |
4211 |
{ |
| 4212 |
#endif |
4212 |
jshort rc = 0; |
| 4213 |
|
4213 |
OS_NATIVE_ENTER(env, that, GetControlValue_FUNC); |
| 4214 |
#ifndef NO_GetCurrentProcess |
4214 |
rc = (jshort)GetControlValue((ControlRef)arg0); |
| 4215 |
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentProcess) |
4215 |
OS_NATIVE_EXIT(env, that, GetControlValue_FUNC); |
| 4216 |
(JNIEnv *env, jclass that, jintArray arg0) |
4216 |
return rc; |
| 4217 |
{ |
4217 |
} |
| 4218 |
jint *lparg0=NULL; |
4218 |
#endif |
| 4219 |
jint rc = 0; |
4219 |
|
| 4220 |
OS_NATIVE_ENTER(env, that, GetCurrentProcess_FUNC); |
4220 |
#ifndef NO_GetControlViewSize |
| 4221 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
4221 |
JNIEXPORT jint JNICALL OS_NATIVE(GetControlViewSize) |
| 4222 |
rc = (jint)GetCurrentProcess((ProcessSerialNumber *)lparg0); |
4222 |
(JNIEnv *env, jclass that, jint arg0) |
| 4223 |
fail: |
4223 |
{ |
| 4224 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
4224 |
jint rc = 0; |
| 4225 |
OS_NATIVE_EXIT(env, that, GetCurrentProcess_FUNC); |
4225 |
OS_NATIVE_ENTER(env, that, GetControlViewSize_FUNC); |
| 4226 |
return rc; |
4226 |
rc = (jint)GetControlViewSize((ControlRef)arg0); |
| 4227 |
} |
4227 |
OS_NATIVE_EXIT(env, that, GetControlViewSize_FUNC); |
| 4228 |
#endif |
4228 |
return rc; |
| 4229 |
|
4229 |
} |
| 4230 |
#ifndef NO_GetCurrentScrap |
4230 |
#endif |
| 4231 |
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentScrap) |
4231 |
|
| 4232 |
(JNIEnv *env, jclass that, jintArray arg0) |
4232 |
#ifndef NO_GetCurrentEventButtonState |
| 4233 |
{ |
4233 |
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentEventButtonState) |
| 4234 |
jint *lparg0=NULL; |
4234 |
(JNIEnv *env, jclass that) |
| 4235 |
jint rc = 0; |
4235 |
{ |
| 4236 |
OS_NATIVE_ENTER(env, that, GetCurrentScrap_FUNC); |
4236 |
jint rc = 0; |
| 4237 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
4237 |
OS_NATIVE_ENTER(env, that, GetCurrentEventButtonState_FUNC); |
| 4238 |
rc = (jint)GetCurrentScrap((ScrapRef *)lparg0); |
4238 |
rc = (jint)GetCurrentEventButtonState(); |
| 4239 |
fail: |
4239 |
OS_NATIVE_EXIT(env, that, GetCurrentEventButtonState_FUNC); |
| 4240 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
4240 |
return rc; |
| 4241 |
OS_NATIVE_EXIT(env, that, GetCurrentScrap_FUNC); |
4241 |
} |
| 4242 |
return rc; |
4242 |
#endif |
| 4243 |
} |
4243 |
|
| 4244 |
#endif |
4244 |
#ifndef NO_GetCurrentEventKeyModifiers |
| 4245 |
|
4245 |
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentEventKeyModifiers) |
| 4246 |
#ifndef NO_GetDataBrowserCallbacks |
4246 |
(JNIEnv *env, jclass that) |
| 4247 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserCallbacks) |
4247 |
{ |
| 4248 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
4248 |
jint rc = 0; |
| 4249 |
{ |
4249 |
OS_NATIVE_ENTER(env, that, GetCurrentEventKeyModifiers_FUNC); |
| 4250 |
DataBrowserCallbacks _arg1, *lparg1=NULL; |
4250 |
rc = (jint)GetCurrentEventKeyModifiers(); |
| 4251 |
jint rc = 0; |
4251 |
OS_NATIVE_EXIT(env, that, GetCurrentEventKeyModifiers_FUNC); |
| 4252 |
OS_NATIVE_ENTER(env, that, GetDataBrowserCallbacks_FUNC); |
4252 |
return rc; |
| 4253 |
if (arg1) if ((lparg1 = getDataBrowserCallbacksFields(env, arg1, &_arg1)) == NULL) goto fail; |
4253 |
} |
| 4254 |
rc = (jint)GetDataBrowserCallbacks((ControlRef)arg0, (DataBrowserCallbacks *)lparg1); |
4254 |
#endif |
| 4255 |
fail: |
4255 |
|
| 4256 |
if (arg1 && lparg1) setDataBrowserCallbacksFields(env, arg1, lparg1); |
4256 |
#ifndef NO_GetCurrentEventLoop |
| 4257 |
OS_NATIVE_EXIT(env, that, GetDataBrowserCallbacks_FUNC); |
4257 |
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentEventLoop) |
| 4258 |
return rc; |
4258 |
(JNIEnv *env, jclass that) |
| 4259 |
} |
4259 |
{ |
| 4260 |
#endif |
4260 |
jint rc = 0; |
| 4261 |
|
4261 |
OS_NATIVE_ENTER(env, that, GetCurrentEventLoop_FUNC); |
| 4262 |
#ifndef NO_GetDataBrowserItemCount |
4262 |
rc = (jint)GetCurrentEventLoop(); |
| 4263 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserItemCount) |
4263 |
OS_NATIVE_EXIT(env, that, GetCurrentEventLoop_FUNC); |
| 4264 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2, jint arg3, jintArray arg4) |
4264 |
return rc; |
| 4265 |
{ |
4265 |
} |
| 4266 |
jint *lparg4=NULL; |
4266 |
#endif |
| 4267 |
jint rc = 0; |
4267 |
|
| 4268 |
OS_NATIVE_ENTER(env, that, GetDataBrowserItemCount_FUNC); |
4268 |
#ifndef NO_GetCurrentEventQueue |
| 4269 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
4269 |
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentEventQueue) |
| 4270 |
rc = (jint)GetDataBrowserItemCount((ControlRef)arg0, (DataBrowserItemID)arg1, (Boolean)arg2, (DataBrowserItemState)arg3, (UInt32 *)lparg4); |
4270 |
(JNIEnv *env, jclass that) |
| 4271 |
fail: |
4271 |
{ |
| 4272 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
4272 |
jint rc = 0; |
| 4273 |
OS_NATIVE_EXIT(env, that, GetDataBrowserItemCount_FUNC); |
4273 |
OS_NATIVE_ENTER(env, that, GetCurrentEventQueue_FUNC); |
| 4274 |
return rc; |
4274 |
rc = (jint)GetCurrentEventQueue(); |
| 4275 |
} |
4275 |
OS_NATIVE_EXIT(env, that, GetCurrentEventQueue_FUNC); |
| 4276 |
#endif |
4276 |
return rc; |
| 4277 |
|
4277 |
} |
| 4278 |
#ifndef NO_GetDataBrowserItemDataButtonValue |
4278 |
#endif |
| 4279 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserItemDataButtonValue) |
4279 |
|
| 4280 |
(JNIEnv *env, jclass that, jint arg0, jshortArray arg1) |
4280 |
#ifndef NO_GetCurrentProcess |
| 4281 |
{ |
4281 |
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentProcess) |
| 4282 |
jshort *lparg1=NULL; |
4282 |
(JNIEnv *env, jclass that, jintArray arg0) |
| 4283 |
jint rc = 0; |
4283 |
{ |
| 4284 |
OS_NATIVE_ENTER(env, that, GetDataBrowserItemDataButtonValue_FUNC); |
4284 |
jint *lparg0=NULL; |
| 4285 |
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4285 |
jint rc = 0; |
| 4286 |
rc = (jint)GetDataBrowserItemDataButtonValue((ControlRef)arg0, lparg1); |
4286 |
OS_NATIVE_ENTER(env, that, GetCurrentProcess_FUNC); |
| 4287 |
fail: |
4287 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 4288 |
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0); |
4288 |
rc = (jint)GetCurrentProcess((ProcessSerialNumber *)lparg0); |
| 4289 |
OS_NATIVE_EXIT(env, that, GetDataBrowserItemDataButtonValue_FUNC); |
4289 |
fail: |
| 4290 |
return rc; |
4290 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 4291 |
} |
4291 |
OS_NATIVE_EXIT(env, that, GetCurrentProcess_FUNC); |
| 4292 |
#endif |
4292 |
return rc; |
| 4293 |
|
4293 |
} |
| 4294 |
#ifndef NO_GetDataBrowserItemPartBounds |
4294 |
#endif |
| 4295 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserItemPartBounds) |
4295 |
|
| 4296 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jobject arg4) |
4296 |
#ifndef NO_GetCurrentScrap |
| 4297 |
{ |
4297 |
JNIEXPORT jint JNICALL OS_NATIVE(GetCurrentScrap) |
| 4298 |
Rect _arg4, *lparg4=NULL; |
4298 |
(JNIEnv *env, jclass that, jintArray arg0) |
| 4299 |
jint rc = 0; |
4299 |
{ |
| 4300 |
OS_NATIVE_ENTER(env, that, GetDataBrowserItemPartBounds_FUNC); |
4300 |
jint *lparg0=NULL; |
| 4301 |
if (arg4) if ((lparg4 = getRectFields(env, arg4, &_arg4)) == NULL) goto fail; |
4301 |
jint rc = 0; |
| 4302 |
rc = (jint)GetDataBrowserItemPartBounds((ControlRef)arg0, (DataBrowserItemID)arg1, (DataBrowserPropertyID)arg2, (DataBrowserPropertyPart)arg3, (Rect *)lparg4); |
4302 |
OS_NATIVE_ENTER(env, that, GetCurrentScrap_FUNC); |
| 4303 |
fail: |
4303 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 4304 |
if (arg4 && lparg4) setRectFields(env, arg4, lparg4); |
4304 |
rc = (jint)GetCurrentScrap((ScrapRef *)lparg0); |
| 4305 |
OS_NATIVE_EXIT(env, that, GetDataBrowserItemPartBounds_FUNC); |
4305 |
fail: |
| 4306 |
return rc; |
4306 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 4307 |
} |
4307 |
OS_NATIVE_EXIT(env, that, GetCurrentScrap_FUNC); |
| 4308 |
#endif |
4308 |
return rc; |
| 4309 |
|
4309 |
} |
| 4310 |
#ifndef NO_GetDataBrowserItemState |
4310 |
#endif |
| 4311 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserItemState) |
4311 |
|
| 4312 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
4312 |
#ifndef NO_GetDataBrowserCallbacks |
| 4313 |
{ |
4313 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserCallbacks) |
| 4314 |
jint *lparg2=NULL; |
4314 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 4315 |
jint rc = 0; |
4315 |
{ |
| 4316 |
OS_NATIVE_ENTER(env, that, GetDataBrowserItemState_FUNC); |
4316 |
DataBrowserCallbacks _arg1, *lparg1=NULL; |
| 4317 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
4317 |
jint rc = 0; |
| 4318 |
rc = (jint)GetDataBrowserItemState((ControlRef)arg0, arg1, lparg2); |
4318 |
OS_NATIVE_ENTER(env, that, GetDataBrowserCallbacks_FUNC); |
| 4319 |
fail: |
4319 |
if (arg1) if ((lparg1 = getDataBrowserCallbacksFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 4320 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
4320 |
rc = (jint)GetDataBrowserCallbacks((ControlRef)arg0, (DataBrowserCallbacks *)lparg1); |
| 4321 |
OS_NATIVE_EXIT(env, that, GetDataBrowserItemState_FUNC); |
4321 |
fail: |
| 4322 |
return rc; |
4322 |
if (arg1 && lparg1) setDataBrowserCallbacksFields(env, arg1, lparg1); |
| 4323 |
} |
4323 |
OS_NATIVE_EXIT(env, that, GetDataBrowserCallbacks_FUNC); |
| 4324 |
#endif |
4324 |
return rc; |
| 4325 |
|
4325 |
} |
| 4326 |
#ifndef NO_GetDataBrowserItems |
4326 |
#endif |
| 4327 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserItems) |
4327 |
|
| 4328 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2, jint arg3, jint arg4) |
4328 |
#ifndef NO_GetDataBrowserItemCount |
| 4329 |
{ |
4329 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserItemCount) |
| 4330 |
jint rc = 0; |
4330 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2, jint arg3, jintArray arg4) |
| 4331 |
OS_NATIVE_ENTER(env, that, GetDataBrowserItems_FUNC); |
4331 |
{ |
| 4332 |
rc = (jint)GetDataBrowserItems((ControlRef)arg0, (DataBrowserItemID)arg1, (Boolean)arg2, (DataBrowserItemState)arg3, (Handle)arg4); |
4332 |
jint *lparg4=NULL; |
| 4333 |
OS_NATIVE_EXIT(env, that, GetDataBrowserItems_FUNC); |
4333 |
jint rc = 0; |
| 4334 |
return rc; |
4334 |
OS_NATIVE_ENTER(env, that, GetDataBrowserItemCount_FUNC); |
| 4335 |
} |
4335 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 4336 |
#endif |
4336 |
rc = (jint)GetDataBrowserItemCount((ControlRef)arg0, (DataBrowserItemID)arg1, (Boolean)arg2, (DataBrowserItemState)arg3, (UInt32 *)lparg4); |
| 4337 |
|
4337 |
fail: |
| 4338 |
#ifndef NO_GetDataBrowserListViewDisclosureColumn |
4338 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 4339 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserListViewDisclosureColumn) |
4339 |
OS_NATIVE_EXIT(env, that, GetDataBrowserItemCount_FUNC); |
| 4340 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jbooleanArray arg2) |
4340 |
return rc; |
| 4341 |
{ |
4341 |
} |
| 4342 |
jint *lparg1=NULL; |
4342 |
#endif |
| 4343 |
jboolean *lparg2=NULL; |
4343 |
|
| 4344 |
jint rc = 0; |
4344 |
#ifndef NO_GetDataBrowserItemDataButtonValue |
| 4345 |
OS_NATIVE_ENTER(env, that, GetDataBrowserListViewDisclosureColumn_FUNC); |
4345 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserItemDataButtonValue) |
| 4346 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4346 |
(JNIEnv *env, jclass that, jint arg0, jshortArray arg1) |
| 4347 |
if (arg2) if ((lparg2 = (*env)->GetBooleanArrayElements(env, arg2, NULL)) == NULL) goto fail; |
4347 |
{ |
| 4348 |
rc = (jint)GetDataBrowserListViewDisclosureColumn((ControlRef)arg0, (DataBrowserTableViewColumnID *)lparg1, (Boolean *)lparg2); |
4348 |
jshort *lparg1=NULL; |
| 4349 |
fail: |
4349 |
jint rc = 0; |
| 4350 |
if (arg2 && lparg2) (*env)->ReleaseBooleanArrayElements(env, arg2, lparg2, 0); |
4350 |
OS_NATIVE_ENTER(env, that, GetDataBrowserItemDataButtonValue_FUNC); |
| 4351 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
4351 |
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 4352 |
OS_NATIVE_EXIT(env, that, GetDataBrowserListViewDisclosureColumn_FUNC); |
4352 |
rc = (jint)GetDataBrowserItemDataButtonValue((ControlRef)arg0, lparg1); |
| 4353 |
return rc; |
4353 |
fail: |
| 4354 |
} |
4354 |
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0); |
| 4355 |
#endif |
4355 |
OS_NATIVE_EXIT(env, that, GetDataBrowserItemDataButtonValue_FUNC); |
| 4356 |
|
4356 |
return rc; |
| 4357 |
#ifndef NO_GetDataBrowserListViewHeaderBtnHeight |
4357 |
} |
| 4358 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserListViewHeaderBtnHeight) |
4358 |
#endif |
| 4359 |
(JNIEnv *env, jclass that, jint arg0, jshortArray arg1) |
4359 |
|
| 4360 |
{ |
4360 |
#ifndef NO_GetDataBrowserItemPartBounds |
| 4361 |
jshort *lparg1=NULL; |
4361 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserItemPartBounds) |
| 4362 |
jint rc = 0; |
4362 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jobject arg4) |
| 4363 |
OS_NATIVE_ENTER(env, that, GetDataBrowserListViewHeaderBtnHeight_FUNC); |
4363 |
{ |
| 4364 |
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4364 |
Rect _arg4, *lparg4=NULL; |
| 4365 |
rc = (jint)GetDataBrowserListViewHeaderBtnHeight((ControlRef)arg0, lparg1); |
4365 |
jint rc = 0; |
| 4366 |
fail: |
4366 |
OS_NATIVE_ENTER(env, that, GetDataBrowserItemPartBounds_FUNC); |
| 4367 |
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0); |
4367 |
if (arg4) if ((lparg4 = getRectFields(env, arg4, &_arg4)) == NULL) goto fail; |
| 4368 |
OS_NATIVE_EXIT(env, that, GetDataBrowserListViewHeaderBtnHeight_FUNC); |
4368 |
rc = (jint)GetDataBrowserItemPartBounds((ControlRef)arg0, (DataBrowserItemID)arg1, (DataBrowserPropertyID)arg2, (DataBrowserPropertyPart)arg3, (Rect *)lparg4); |
| 4369 |
return rc; |
4369 |
fail: |
| 4370 |
} |
4370 |
if (arg4 && lparg4) setRectFields(env, arg4, lparg4); |
| 4371 |
#endif |
4371 |
OS_NATIVE_EXIT(env, that, GetDataBrowserItemPartBounds_FUNC); |
| 4372 |
|
4372 |
return rc; |
| 4373 |
#ifndef NO_GetDataBrowserListViewHeaderDesc |
4373 |
} |
| 4374 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserListViewHeaderDesc) |
4374 |
#endif |
| 4375 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2) |
4375 |
|
| 4376 |
{ |
4376 |
#ifndef NO_GetDataBrowserItemState |
| 4377 |
DataBrowserListViewHeaderDesc _arg2, *lparg2=NULL; |
4377 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserItemState) |
| 4378 |
jint rc = 0; |
4378 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
| 4379 |
OS_NATIVE_ENTER(env, that, GetDataBrowserListViewHeaderDesc_FUNC); |
4379 |
{ |
| 4380 |
if (arg2) if ((lparg2 = getDataBrowserListViewHeaderDescFields(env, arg2, &_arg2)) == NULL) goto fail; |
4380 |
jint *lparg2=NULL; |
| 4381 |
rc = (jint)GetDataBrowserListViewHeaderDesc((ControlRef)arg0, (DataBrowserTableViewColumnID)arg1, (DataBrowserListViewHeaderDesc *)lparg2); |
4381 |
jint rc = 0; |
| 4382 |
fail: |
4382 |
OS_NATIVE_ENTER(env, that, GetDataBrowserItemState_FUNC); |
| 4383 |
if (arg2 && lparg2) setDataBrowserListViewHeaderDescFields(env, arg2, lparg2); |
4383 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 4384 |
OS_NATIVE_EXIT(env, that, GetDataBrowserListViewHeaderDesc_FUNC); |
4384 |
rc = (jint)GetDataBrowserItemState((ControlRef)arg0, arg1, lparg2); |
| 4385 |
return rc; |
4385 |
fail: |
| 4386 |
} |
4386 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 4387 |
#endif |
4387 |
OS_NATIVE_EXIT(env, that, GetDataBrowserItemState_FUNC); |
| 4388 |
|
4388 |
return rc; |
| 4389 |
#ifndef NO_GetDataBrowserScrollBarInset |
4389 |
} |
| 4390 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserScrollBarInset) |
4390 |
#endif |
| 4391 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
4391 |
|
| 4392 |
{ |
4392 |
#ifndef NO_GetDataBrowserItems |
| 4393 |
Rect _arg1, *lparg1=NULL; |
4393 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserItems) |
| 4394 |
jint rc = 0; |
4394 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2, jint arg3, jint arg4) |
| 4395 |
OS_NATIVE_ENTER(env, that, GetDataBrowserScrollBarInset_FUNC); |
4395 |
{ |
| 4396 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
4396 |
jint rc = 0; |
| 4397 |
rc = (jint)GetDataBrowserScrollBarInset((ControlRef)arg0, lparg1); |
4397 |
OS_NATIVE_ENTER(env, that, GetDataBrowserItems_FUNC); |
| 4398 |
fail: |
4398 |
rc = (jint)GetDataBrowserItems((ControlRef)arg0, (DataBrowserItemID)arg1, (Boolean)arg2, (DataBrowserItemState)arg3, (Handle)arg4); |
| 4399 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
4399 |
OS_NATIVE_EXIT(env, that, GetDataBrowserItems_FUNC); |
| 4400 |
OS_NATIVE_EXIT(env, that, GetDataBrowserScrollBarInset_FUNC); |
4400 |
return rc; |
| 4401 |
return rc; |
4401 |
} |
| 4402 |
} |
4402 |
#endif |
| 4403 |
#endif |
4403 |
|
| 4404 |
|
4404 |
#ifndef NO_GetDataBrowserListViewDisclosureColumn |
| 4405 |
#ifndef NO_GetDataBrowserScrollPosition |
4405 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserListViewDisclosureColumn) |
| 4406 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserScrollPosition) |
4406 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jbooleanArray arg2) |
| 4407 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jintArray arg2) |
4407 |
{ |
| 4408 |
{ |
4408 |
jint *lparg1=NULL; |
| 4409 |
jint *lparg1=NULL; |
4409 |
jboolean *lparg2=NULL; |
| 4410 |
jint *lparg2=NULL; |
4410 |
jint rc = 0; |
| 4411 |
jint rc = 0; |
4411 |
OS_NATIVE_ENTER(env, that, GetDataBrowserListViewDisclosureColumn_FUNC); |
| 4412 |
OS_NATIVE_ENTER(env, that, GetDataBrowserScrollPosition_FUNC); |
4412 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 4413 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4413 |
if (arg2) if ((lparg2 = (*env)->GetBooleanArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 4414 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
4414 |
rc = (jint)GetDataBrowserListViewDisclosureColumn((ControlRef)arg0, (DataBrowserTableViewColumnID *)lparg1, (Boolean *)lparg2); |
| 4415 |
rc = (jint)GetDataBrowserScrollPosition((ControlRef)arg0, (UInt32 *)lparg1, (UInt32 *)lparg2); |
4415 |
fail: |
| 4416 |
fail: |
4416 |
if (arg2 && lparg2) (*env)->ReleaseBooleanArrayElements(env, arg2, lparg2, 0); |
| 4417 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
4417 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 4418 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
4418 |
OS_NATIVE_EXIT(env, that, GetDataBrowserListViewDisclosureColumn_FUNC); |
| 4419 |
OS_NATIVE_EXIT(env, that, GetDataBrowserScrollPosition_FUNC); |
4419 |
return rc; |
| 4420 |
return rc; |
4420 |
} |
| 4421 |
} |
4421 |
#endif |
| 4422 |
#endif |
4422 |
|
| 4423 |
|
4423 |
#ifndef NO_GetDataBrowserListViewHeaderBtnHeight |
| 4424 |
#ifndef NO_GetDataBrowserSelectionAnchor |
4424 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserListViewHeaderBtnHeight) |
| 4425 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserSelectionAnchor) |
4425 |
(JNIEnv *env, jclass that, jint arg0, jshortArray arg1) |
| 4426 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jintArray arg2) |
4426 |
{ |
| 4427 |
{ |
4427 |
jshort *lparg1=NULL; |
| 4428 |
jint *lparg1=NULL; |
4428 |
jint rc = 0; |
| 4429 |
jint *lparg2=NULL; |
4429 |
OS_NATIVE_ENTER(env, that, GetDataBrowserListViewHeaderBtnHeight_FUNC); |
| 4430 |
jint rc = 0; |
4430 |
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 4431 |
OS_NATIVE_ENTER(env, that, GetDataBrowserSelectionAnchor_FUNC); |
4431 |
rc = (jint)GetDataBrowserListViewHeaderBtnHeight((ControlRef)arg0, lparg1); |
| 4432 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4432 |
fail: |
| 4433 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
4433 |
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0); |
| 4434 |
rc = (jint)GetDataBrowserSelectionAnchor((ControlRef)arg0, (UInt32 *)lparg1, (UInt32 *)lparg2); |
4434 |
OS_NATIVE_EXIT(env, that, GetDataBrowserListViewHeaderBtnHeight_FUNC); |
| 4435 |
fail: |
4435 |
return rc; |
| 4436 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
4436 |
} |
| 4437 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
4437 |
#endif |
| 4438 |
OS_NATIVE_EXIT(env, that, GetDataBrowserSelectionAnchor_FUNC); |
4438 |
|
| 4439 |
return rc; |
4439 |
#ifndef NO_GetDataBrowserListViewHeaderDesc |
| 4440 |
} |
4440 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserListViewHeaderDesc) |
| 4441 |
#endif |
4441 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2) |
| 4442 |
|
4442 |
{ |
| 4443 |
#ifndef NO_GetDataBrowserSelectionFlags |
4443 |
DataBrowserListViewHeaderDesc _arg2, *lparg2=NULL; |
| 4444 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserSelectionFlags) |
4444 |
jint rc = 0; |
| 4445 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
4445 |
OS_NATIVE_ENTER(env, that, GetDataBrowserListViewHeaderDesc_FUNC); |
| 4446 |
{ |
4446 |
if (arg2) if ((lparg2 = getDataBrowserListViewHeaderDescFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 4447 |
jint *lparg1=NULL; |
4447 |
rc = (jint)GetDataBrowserListViewHeaderDesc((ControlRef)arg0, (DataBrowserTableViewColumnID)arg1, (DataBrowserListViewHeaderDesc *)lparg2); |
| 4448 |
jint rc = 0; |
4448 |
fail: |
| 4449 |
OS_NATIVE_ENTER(env, that, GetDataBrowserSelectionFlags_FUNC); |
4449 |
if (arg2 && lparg2) setDataBrowserListViewHeaderDescFields(env, arg2, lparg2); |
| 4450 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4450 |
OS_NATIVE_EXIT(env, that, GetDataBrowserListViewHeaderDesc_FUNC); |
| 4451 |
rc = (jint)GetDataBrowserSelectionFlags((ControlRef)arg0, lparg1); |
4451 |
return rc; |
| 4452 |
fail: |
4452 |
} |
| 4453 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
4453 |
#endif |
| 4454 |
OS_NATIVE_EXIT(env, that, GetDataBrowserSelectionFlags_FUNC); |
4454 |
|
| 4455 |
return rc; |
4455 |
#ifndef NO_GetDataBrowserScrollBarInset |
| 4456 |
} |
4456 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserScrollBarInset) |
| 4457 |
#endif |
4457 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 4458 |
|
4458 |
{ |
| 4459 |
#ifndef NO_GetDataBrowserSortProperty |
4459 |
Rect _arg1, *lparg1=NULL; |
| 4460 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserSortProperty) |
4460 |
jint rc = 0; |
| 4461 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
4461 |
OS_NATIVE_ENTER(env, that, GetDataBrowserScrollBarInset_FUNC); |
| 4462 |
{ |
4462 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 4463 |
jint *lparg1=NULL; |
4463 |
rc = (jint)GetDataBrowserScrollBarInset((ControlRef)arg0, lparg1); |
| 4464 |
jint rc = 0; |
4464 |
fail: |
| 4465 |
OS_NATIVE_ENTER(env, that, GetDataBrowserSortProperty_FUNC); |
4465 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 4466 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4466 |
OS_NATIVE_EXIT(env, that, GetDataBrowserScrollBarInset_FUNC); |
| 4467 |
rc = (jint)GetDataBrowserSortProperty((ControlRef)arg0, lparg1); |
4467 |
return rc; |
| 4468 |
fail: |
4468 |
} |
| 4469 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
4469 |
#endif |
| 4470 |
OS_NATIVE_EXIT(env, that, GetDataBrowserSortProperty_FUNC); |
4470 |
|
| 4471 |
return rc; |
4471 |
#ifndef NO_GetDataBrowserScrollPosition |
| 4472 |
} |
4472 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserScrollPosition) |
| 4473 |
#endif |
4473 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jintArray arg2) |
| 4474 |
|
4474 |
{ |
| 4475 |
#ifndef NO_GetDataBrowserSortOrder |
4475 |
jint *lparg1=NULL; |
| 4476 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserSortOrder) |
4476 |
jint *lparg2=NULL; |
| 4477 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
4477 |
jint rc = 0; |
| 4478 |
{ |
4478 |
OS_NATIVE_ENTER(env, that, GetDataBrowserScrollPosition_FUNC); |
| 4479 |
jint *lparg1=NULL; |
4479 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 4480 |
jint rc; |
4480 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 4481 |
OS_NATIVE_ENTER(env, that, GetDataBrowserSortOrder_FUNC); |
4481 |
rc = (jint)GetDataBrowserScrollPosition((ControlRef)arg0, (UInt32 *)lparg1, (UInt32 *)lparg2); |
| 4482 |
if (arg1) lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL); |
4482 |
fail: |
| 4483 |
rc = (jint)GetDataBrowserSortOrder((ControlRef)arg0, lparg1); |
4483 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 4484 |
if (arg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
4484 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 4485 |
OS_NATIVE_EXIT(env, that, GetDataBrowserSortIndex_FUNC); |
4485 |
OS_NATIVE_EXIT(env, that, GetDataBrowserScrollPosition_FUNC); |
| 4486 |
return rc; |
4486 |
return rc; |
| 4487 |
} |
4487 |
} |
| 4488 |
#endif |
4488 |
#endif |
| 4489 |
|
4489 |
|
| 4490 |
|
4490 |
#ifndef NO_GetDataBrowserSelectionAnchor |
| 4491 |
#ifndef NO_GetDataBrowserTableViewColumnPosition |
4491 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserSelectionAnchor) |
| 4492 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserTableViewColumnPosition) |
4492 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jintArray arg2) |
| 4493 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
4493 |
{ |
| 4494 |
{ |
4494 |
jint *lparg1=NULL; |
| 4495 |
jint *lparg2=NULL; |
4495 |
jint *lparg2=NULL; |
| 4496 |
jint rc = 0; |
4496 |
jint rc = 0; |
| 4497 |
OS_NATIVE_ENTER(env, that, GetDataBrowserTableViewColumnPosition_FUNC); |
4497 |
OS_NATIVE_ENTER(env, that, GetDataBrowserSelectionAnchor_FUNC); |
| 4498 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
4498 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 4499 |
rc = (jint)GetDataBrowserTableViewColumnPosition((ControlRef)arg0, (DataBrowserTableViewColumnID)arg1, (DataBrowserTableViewColumnIndex *)lparg2); |
4499 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 4500 |
fail: |
4500 |
rc = (jint)GetDataBrowserSelectionAnchor((ControlRef)arg0, (UInt32 *)lparg1, (UInt32 *)lparg2); |
| 4501 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
4501 |
fail: |
| 4502 |
OS_NATIVE_EXIT(env, that, GetDataBrowserTableViewColumnPosition_FUNC); |
4502 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 4503 |
return rc; |
4503 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 4504 |
} |
4504 |
OS_NATIVE_EXIT(env, that, GetDataBrowserSelectionAnchor_FUNC); |
| 4505 |
#endif |
4505 |
return rc; |
| 4506 |
|
4506 |
} |
| 4507 |
#ifndef NO_GetDataBrowserTableViewItemID |
4507 |
#endif |
| 4508 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserTableViewItemID) |
4508 |
|
| 4509 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
4509 |
#ifndef NO_GetDataBrowserSelectionFlags |
| 4510 |
{ |
4510 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserSelectionFlags) |
| 4511 |
jint *lparg2=NULL; |
4511 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 4512 |
jint rc = 0; |
4512 |
{ |
| 4513 |
OS_NATIVE_ENTER(env, that, GetDataBrowserTableViewItemID_FUNC); |
4513 |
jint *lparg1=NULL; |
| 4514 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
4514 |
jint rc = 0; |
| 4515 |
rc = (jint)GetDataBrowserTableViewItemID((ControlRef)arg0, (DataBrowserTableViewRowIndex)arg1, (DataBrowserItemID *)lparg2); |
4515 |
OS_NATIVE_ENTER(env, that, GetDataBrowserSelectionFlags_FUNC); |
| 4516 |
fail: |
4516 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 4517 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
4517 |
rc = (jint)GetDataBrowserSelectionFlags((ControlRef)arg0, lparg1); |
| 4518 |
OS_NATIVE_EXIT(env, that, GetDataBrowserTableViewItemID_FUNC); |
4518 |
fail: |
| 4519 |
return rc; |
4519 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 4520 |
} |
4520 |
OS_NATIVE_EXIT(env, that, GetDataBrowserSelectionFlags_FUNC); |
| 4521 |
#endif |
4521 |
return rc; |
| 4522 |
|
4522 |
} |
| 4523 |
#ifndef NO_GetDataBrowserTableViewItemRow |
4523 |
#endif |
| 4524 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserTableViewItemRow) |
4524 |
|
| 4525 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
4525 |
#ifndef NO_GetDataBrowserSortOrder |
| 4526 |
{ |
4526 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserSortOrder) |
| 4527 |
jint *lparg2=NULL; |
4527 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 4528 |
jint rc = 0; |
4528 |
{ |
| 4529 |
OS_NATIVE_ENTER(env, that, GetDataBrowserTableViewItemRow_FUNC); |
4529 |
jint *lparg1=NULL; |
| 4530 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
4530 |
jint rc = 0; |
| 4531 |
rc = (jint)GetDataBrowserTableViewItemRow((ControlRef)arg0, (DataBrowserTableViewRowIndex)arg1, (DataBrowserItemID *)lparg2); |
4531 |
OS_NATIVE_ENTER(env, that, GetDataBrowserSortOrder_FUNC); |
| 4532 |
fail: |
4532 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 4533 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
4533 |
rc = (jint)GetDataBrowserSortOrder((ControlRef)arg0, (DataBrowserSortOrder *)lparg1); |
| 4534 |
OS_NATIVE_EXIT(env, that, GetDataBrowserTableViewItemRow_FUNC); |
4534 |
fail: |
| 4535 |
return rc; |
4535 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 4536 |
} |
4536 |
OS_NATIVE_EXIT(env, that, GetDataBrowserSortOrder_FUNC); |
| 4537 |
#endif |
4537 |
return rc; |
| 4538 |
|
4538 |
} |
| 4539 |
#ifndef NO_GetDataBrowserTableViewNamedColumnWidth |
4539 |
#endif |
| 4540 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserTableViewNamedColumnWidth) |
4540 |
|
| 4541 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshortArray arg2) |
4541 |
#ifndef NO_GetDataBrowserSortProperty |
| 4542 |
{ |
4542 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserSortProperty) |
| 4543 |
jshort *lparg2=NULL; |
4543 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 4544 |
jint rc = 0; |
4544 |
{ |
| 4545 |
OS_NATIVE_ENTER(env, that, GetDataBrowserTableViewNamedColumnWidth_FUNC); |
4545 |
jint *lparg1=NULL; |
| 4546 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
4546 |
jint rc = 0; |
| 4547 |
rc = (jint)GetDataBrowserTableViewNamedColumnWidth((ControlRef)arg0, (DataBrowserTableViewColumnID)arg1, (UInt16 *)lparg2); |
4547 |
OS_NATIVE_ENTER(env, that, GetDataBrowserSortProperty_FUNC); |
| 4548 |
fail: |
4548 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 4549 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
4549 |
rc = (jint)GetDataBrowserSortProperty((ControlRef)arg0, lparg1); |
| 4550 |
OS_NATIVE_EXIT(env, that, GetDataBrowserTableViewNamedColumnWidth_FUNC); |
4550 |
fail: |
| 4551 |
return rc; |
4551 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 4552 |
} |
4552 |
OS_NATIVE_EXIT(env, that, GetDataBrowserSortProperty_FUNC); |
| 4553 |
#endif |
4553 |
return rc; |
| 4554 |
|
4554 |
} |
| 4555 |
#ifndef NO_GetDataBrowserTableViewRowHeight |
4555 |
#endif |
| 4556 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserTableViewRowHeight) |
4556 |
|
| 4557 |
(JNIEnv *env, jclass that, jint arg0, jshortArray arg1) |
4557 |
#ifndef NO_GetDataBrowserTableViewColumnPosition |
| 4558 |
{ |
4558 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserTableViewColumnPosition) |
| 4559 |
jshort *lparg1=NULL; |
4559 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
| 4560 |
jint rc = 0; |
4560 |
{ |
| 4561 |
OS_NATIVE_ENTER(env, that, GetDataBrowserTableViewRowHeight_FUNC); |
4561 |
jint *lparg2=NULL; |
| 4562 |
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4562 |
jint rc = 0; |
| 4563 |
rc = (jint)GetDataBrowserTableViewRowHeight((ControlRef)arg0, (UInt16 *)lparg1); |
4563 |
OS_NATIVE_ENTER(env, that, GetDataBrowserTableViewColumnPosition_FUNC); |
| 4564 |
fail: |
4564 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 4565 |
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0); |
4565 |
rc = (jint)GetDataBrowserTableViewColumnPosition((ControlRef)arg0, (DataBrowserTableViewColumnID)arg1, (DataBrowserTableViewColumnIndex *)lparg2); |
| 4566 |
OS_NATIVE_EXIT(env, that, GetDataBrowserTableViewRowHeight_FUNC); |
4566 |
fail: |
| 4567 |
return rc; |
4567 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 4568 |
} |
4568 |
OS_NATIVE_EXIT(env, that, GetDataBrowserTableViewColumnPosition_FUNC); |
| 4569 |
#endif |
4569 |
return rc; |
| 4570 |
|
4570 |
} |
| 4571 |
#ifndef NO_GetDblTime |
4571 |
#endif |
| 4572 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDblTime) |
4572 |
|
| 4573 |
(JNIEnv *env, jclass that) |
4573 |
#ifndef NO_GetDataBrowserTableViewItemID |
| 4574 |
{ |
4574 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserTableViewItemID) |
| 4575 |
jint rc = 0; |
4575 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
| 4576 |
OS_NATIVE_ENTER(env, that, GetDblTime_FUNC); |
4576 |
{ |
| 4577 |
rc = (jint)GetDblTime(); |
4577 |
jint *lparg2=NULL; |
| 4578 |
OS_NATIVE_EXIT(env, that, GetDblTime_FUNC); |
4578 |
jint rc = 0; |
| 4579 |
return rc; |
4579 |
OS_NATIVE_ENTER(env, that, GetDataBrowserTableViewItemID_FUNC); |
| 4580 |
} |
4580 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 4581 |
#endif |
4581 |
rc = (jint)GetDataBrowserTableViewItemID((ControlRef)arg0, (DataBrowserTableViewRowIndex)arg1, (DataBrowserItemID *)lparg2); |
| 4582 |
|
4582 |
fail: |
| 4583 |
#ifndef NO_GetDefFontSize |
4583 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 4584 |
JNIEXPORT jshort JNICALL OS_NATIVE(GetDefFontSize) |
4584 |
OS_NATIVE_EXIT(env, that, GetDataBrowserTableViewItemID_FUNC); |
| 4585 |
(JNIEnv *env, jclass that) |
4585 |
return rc; |
| 4586 |
{ |
4586 |
} |
| 4587 |
jshort rc = 0; |
4587 |
#endif |
| 4588 |
OS_NATIVE_ENTER(env, that, GetDefFontSize_FUNC); |
4588 |
|
| 4589 |
rc = (jshort)GetDefFontSize(); |
4589 |
#ifndef NO_GetDataBrowserTableViewItemRow |
| 4590 |
OS_NATIVE_EXIT(env, that, GetDefFontSize_FUNC); |
4590 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserTableViewItemRow) |
| 4591 |
return rc; |
4591 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
| 4592 |
} |
4592 |
{ |
| 4593 |
#endif |
4593 |
jint *lparg2=NULL; |
| 4594 |
|
4594 |
jint rc = 0; |
| 4595 |
#ifndef NO_GetDeviceList |
4595 |
OS_NATIVE_ENTER(env, that, GetDataBrowserTableViewItemRow_FUNC); |
| 4596 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDeviceList) |
4596 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 4597 |
(JNIEnv *env, jclass that) |
4597 |
rc = (jint)GetDataBrowserTableViewItemRow((ControlRef)arg0, (DataBrowserTableViewRowIndex)arg1, (DataBrowserItemID *)lparg2); |
| 4598 |
{ |
4598 |
fail: |
| 4599 |
jint rc = 0; |
4599 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 4600 |
OS_NATIVE_ENTER(env, that, GetDeviceList_FUNC); |
4600 |
OS_NATIVE_EXIT(env, that, GetDataBrowserTableViewItemRow_FUNC); |
| 4601 |
rc = (jint)GetDeviceList(); |
4601 |
return rc; |
| 4602 |
OS_NATIVE_EXIT(env, that, GetDeviceList_FUNC); |
4602 |
} |
| 4603 |
return rc; |
4603 |
#endif |
| 4604 |
} |
4604 |
|
| 4605 |
#endif |
4605 |
#ifndef NO_GetDataBrowserTableViewNamedColumnWidth |
| 4606 |
|
4606 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserTableViewNamedColumnWidth) |
| 4607 |
#ifndef NO_GetDragAllowableActions |
4607 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshortArray arg2) |
| 4608 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDragAllowableActions) |
4608 |
{ |
| 4609 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
4609 |
jshort *lparg2=NULL; |
| 4610 |
{ |
4610 |
jint rc = 0; |
| 4611 |
jint *lparg1=NULL; |
4611 |
OS_NATIVE_ENTER(env, that, GetDataBrowserTableViewNamedColumnWidth_FUNC); |
| 4612 |
jint rc = 0; |
4612 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 4613 |
OS_NATIVE_ENTER(env, that, GetDragAllowableActions_FUNC); |
4613 |
rc = (jint)GetDataBrowserTableViewNamedColumnWidth((ControlRef)arg0, (DataBrowserTableViewColumnID)arg1, (UInt16 *)lparg2); |
| 4614 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4614 |
fail: |
| 4615 |
rc = (jint)GetDragAllowableActions((DragRef)arg0, (DragActions *)lparg1); |
4615 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
| 4616 |
fail: |
4616 |
OS_NATIVE_EXIT(env, that, GetDataBrowserTableViewNamedColumnWidth_FUNC); |
| 4617 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
4617 |
return rc; |
| 4618 |
OS_NATIVE_EXIT(env, that, GetDragAllowableActions_FUNC); |
4618 |
} |
| 4619 |
return rc; |
4619 |
#endif |
| 4620 |
} |
4620 |
|
| 4621 |
#endif |
4621 |
#ifndef NO_GetDataBrowserTableViewRowHeight |
| 4622 |
|
4622 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserTableViewRowHeight) |
| 4623 |
#ifndef NO_GetDragDropAction |
4623 |
(JNIEnv *env, jclass that, jint arg0, jshortArray arg1) |
| 4624 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDragDropAction) |
4624 |
{ |
| 4625 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
4625 |
jshort *lparg1=NULL; |
| 4626 |
{ |
4626 |
jint rc = 0; |
| 4627 |
jint *lparg1=NULL; |
4627 |
OS_NATIVE_ENTER(env, that, GetDataBrowserTableViewRowHeight_FUNC); |
| 4628 |
jint rc = 0; |
4628 |
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 4629 |
OS_NATIVE_ENTER(env, that, GetDragDropAction_FUNC); |
4629 |
rc = (jint)GetDataBrowserTableViewRowHeight((ControlRef)arg0, (UInt16 *)lparg1); |
| 4630 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4630 |
fail: |
| 4631 |
rc = (jint)GetDragDropAction((DragRef)arg0, (DragActions *)lparg1); |
4631 |
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0); |
| 4632 |
fail: |
4632 |
OS_NATIVE_EXIT(env, that, GetDataBrowserTableViewRowHeight_FUNC); |
| 4633 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
4633 |
return rc; |
| 4634 |
OS_NATIVE_EXIT(env, that, GetDragDropAction_FUNC); |
4634 |
} |
| 4635 |
return rc; |
4635 |
#endif |
| 4636 |
} |
4636 |
|
| 4637 |
#endif |
4637 |
#ifndef NO_GetDblTime |
| 4638 |
|
4638 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDblTime) |
| 4639 |
#ifndef NO_GetDragItemReferenceNumber |
4639 |
(JNIEnv *env, jclass that) |
| 4640 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDragItemReferenceNumber) |
4640 |
{ |
| 4641 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jintArray arg2) |
4641 |
jint rc = 0; |
| 4642 |
{ |
4642 |
OS_NATIVE_ENTER(env, that, GetDblTime_FUNC); |
| 4643 |
jint *lparg2=NULL; |
4643 |
rc = (jint)GetDblTime(); |
| 4644 |
jint rc = 0; |
4644 |
OS_NATIVE_EXIT(env, that, GetDblTime_FUNC); |
| 4645 |
OS_NATIVE_ENTER(env, that, GetDragItemReferenceNumber_FUNC); |
4645 |
return rc; |
| 4646 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
4646 |
} |
| 4647 |
rc = (jint)GetDragItemReferenceNumber((DragRef)arg0, arg1, (DragItemRef *)lparg2); |
4647 |
#endif |
| 4648 |
fail: |
4648 |
|
| 4649 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
4649 |
#ifndef NO_GetDefFontSize |
| 4650 |
OS_NATIVE_EXIT(env, that, GetDragItemReferenceNumber_FUNC); |
4650 |
JNIEXPORT jshort JNICALL OS_NATIVE(GetDefFontSize) |
| 4651 |
return rc; |
4651 |
(JNIEnv *env, jclass that) |
| 4652 |
} |
4652 |
{ |
| 4653 |
#endif |
4653 |
jshort rc = 0; |
| 4654 |
|
4654 |
OS_NATIVE_ENTER(env, that, GetDefFontSize_FUNC); |
| 4655 |
#ifndef NO_GetDragModifiers |
4655 |
rc = (jshort)GetDefFontSize(); |
| 4656 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDragModifiers) |
4656 |
OS_NATIVE_EXIT(env, that, GetDefFontSize_FUNC); |
| 4657 |
(JNIEnv *env, jclass that, jint arg0, jshortArray arg1, jshortArray arg2, jshortArray arg3) |
4657 |
return rc; |
| 4658 |
{ |
4658 |
} |
| 4659 |
jshort *lparg1=NULL; |
4659 |
#endif |
| 4660 |
jshort *lparg2=NULL; |
4660 |
|
| 4661 |
jshort *lparg3=NULL; |
4661 |
#ifndef NO_GetDeviceList |
| 4662 |
jint rc = 0; |
4662 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDeviceList) |
| 4663 |
OS_NATIVE_ENTER(env, that, GetDragModifiers_FUNC); |
4663 |
(JNIEnv *env, jclass that) |
| 4664 |
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail; |
4664 |
{ |
| 4665 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
4665 |
jint rc = 0; |
| 4666 |
if (arg3) if ((lparg3 = (*env)->GetShortArrayElements(env, arg3, NULL)) == NULL) goto fail; |
4666 |
OS_NATIVE_ENTER(env, that, GetDeviceList_FUNC); |
| 4667 |
rc = (jint)GetDragModifiers((DragRef)arg0, (SInt16 *)lparg1, (SInt16 *)lparg2, (SInt16 *)lparg3); |
4667 |
rc = (jint)GetDeviceList(); |
| 4668 |
fail: |
4668 |
OS_NATIVE_EXIT(env, that, GetDeviceList_FUNC); |
| 4669 |
if (arg3 && lparg3) (*env)->ReleaseShortArrayElements(env, arg3, lparg3, 0); |
4669 |
return rc; |
| 4670 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
4670 |
} |
| 4671 |
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0); |
4671 |
#endif |
| 4672 |
OS_NATIVE_EXIT(env, that, GetDragModifiers_FUNC); |
4672 |
|
| 4673 |
return rc; |
4673 |
#ifndef NO_GetDragAllowableActions |
| 4674 |
} |
4674 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDragAllowableActions) |
| 4675 |
#endif |
4675 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 4676 |
|
4676 |
{ |
| 4677 |
#ifndef NO_GetDragMouse |
4677 |
jint *lparg1=NULL; |
| 4678 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDragMouse) |
4678 |
jint rc = 0; |
| 4679 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jobject arg2) |
4679 |
OS_NATIVE_ENTER(env, that, GetDragAllowableActions_FUNC); |
| 4680 |
{ |
4680 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 4681 |
Point _arg1, *lparg1=NULL; |
4681 |
rc = (jint)GetDragAllowableActions((DragRef)arg0, (DragActions *)lparg1); |
| 4682 |
Point _arg2, *lparg2=NULL; |
4682 |
fail: |
| 4683 |
jint rc = 0; |
4683 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 4684 |
OS_NATIVE_ENTER(env, that, GetDragMouse_FUNC); |
4684 |
OS_NATIVE_EXIT(env, that, GetDragAllowableActions_FUNC); |
| 4685 |
if (arg1) if ((lparg1 = getPointFields(env, arg1, &_arg1)) == NULL) goto fail; |
4685 |
return rc; |
| 4686 |
if (arg2) if ((lparg2 = getPointFields(env, arg2, &_arg2)) == NULL) goto fail; |
4686 |
} |
| 4687 |
rc = (jint)GetDragMouse((DragRef)arg0, (Point *)lparg1, (Point *)lparg2); |
4687 |
#endif |
| 4688 |
fail: |
4688 |
|
| 4689 |
if (arg2 && lparg2) setPointFields(env, arg2, lparg2); |
4689 |
#ifndef NO_GetDragDropAction |
| 4690 |
if (arg1 && lparg1) setPointFields(env, arg1, lparg1); |
4690 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDragDropAction) |
| 4691 |
OS_NATIVE_EXIT(env, that, GetDragMouse_FUNC); |
4691 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 4692 |
return rc; |
4692 |
{ |
| 4693 |
} |
4693 |
jint *lparg1=NULL; |
| 4694 |
#endif |
4694 |
jint rc = 0; |
| 4695 |
|
4695 |
OS_NATIVE_ENTER(env, that, GetDragDropAction_FUNC); |
| 4696 |
#ifndef NO_GetEventClass |
4696 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 4697 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventClass) |
4697 |
rc = (jint)GetDragDropAction((DragRef)arg0, (DragActions *)lparg1); |
| 4698 |
(JNIEnv *env, jclass that, jint arg0) |
4698 |
fail: |
| 4699 |
{ |
4699 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 4700 |
jint rc = 0; |
4700 |
OS_NATIVE_EXIT(env, that, GetDragDropAction_FUNC); |
| 4701 |
OS_NATIVE_ENTER(env, that, GetEventClass_FUNC); |
4701 |
return rc; |
| 4702 |
rc = (jint)GetEventClass((EventRef)arg0); |
4702 |
} |
| 4703 |
OS_NATIVE_EXIT(env, that, GetEventClass_FUNC); |
4703 |
#endif |
| 4704 |
return rc; |
4704 |
|
| 4705 |
} |
4705 |
#ifndef NO_GetDragItemReferenceNumber |
| 4706 |
#endif |
4706 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDragItemReferenceNumber) |
| 4707 |
|
4707 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jintArray arg2) |
| 4708 |
#ifndef NO_GetEventDispatcherTarget |
4708 |
{ |
| 4709 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventDispatcherTarget) |
4709 |
jint *lparg2=NULL; |
| 4710 |
(JNIEnv *env, jclass that) |
4710 |
jint rc = 0; |
| 4711 |
{ |
4711 |
OS_NATIVE_ENTER(env, that, GetDragItemReferenceNumber_FUNC); |
| 4712 |
jint rc = 0; |
4712 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 4713 |
OS_NATIVE_ENTER(env, that, GetEventDispatcherTarget_FUNC); |
4713 |
rc = (jint)GetDragItemReferenceNumber((DragRef)arg0, arg1, (DragItemRef *)lparg2); |
| 4714 |
rc = (jint)GetEventDispatcherTarget(); |
4714 |
fail: |
| 4715 |
OS_NATIVE_EXIT(env, that, GetEventDispatcherTarget_FUNC); |
4715 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 4716 |
return rc; |
4716 |
OS_NATIVE_EXIT(env, that, GetDragItemReferenceNumber_FUNC); |
| 4717 |
} |
4717 |
return rc; |
| 4718 |
#endif |
4718 |
} |
| 4719 |
|
4719 |
#endif |
| 4720 |
#ifndef NO_GetEventKind |
4720 |
|
| 4721 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventKind) |
4721 |
#ifndef NO_GetDragModifiers |
| 4722 |
(JNIEnv *env, jclass that, jint arg0) |
4722 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDragModifiers) |
| 4723 |
{ |
4723 |
(JNIEnv *env, jclass that, jint arg0, jshortArray arg1, jshortArray arg2, jshortArray arg3) |
| 4724 |
jint rc = 0; |
4724 |
{ |
| 4725 |
OS_NATIVE_ENTER(env, that, GetEventKind_FUNC); |
4725 |
jshort *lparg1=NULL; |
| 4726 |
rc = (jint)GetEventKind((EventRef)arg0); |
4726 |
jshort *lparg2=NULL; |
| 4727 |
OS_NATIVE_EXIT(env, that, GetEventKind_FUNC); |
4727 |
jshort *lparg3=NULL; |
| 4728 |
return rc; |
4728 |
jint rc = 0; |
| 4729 |
} |
4729 |
OS_NATIVE_ENTER(env, that, GetDragModifiers_FUNC); |
| 4730 |
#endif |
4730 |
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 4731 |
|
4731 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 4732 |
#ifndef NO_GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_CGPoint_2 |
4732 |
if (arg3) if ((lparg3 = (*env)->GetShortArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 4733 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_CGPoint_2) |
4733 |
rc = (jint)GetDragModifiers((DragRef)arg0, (SInt16 *)lparg1, (SInt16 *)lparg2, (SInt16 *)lparg3); |
| 4734 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jintArray arg5, jobject arg6) |
4734 |
fail: |
| 4735 |
{ |
4735 |
if (arg3 && lparg3) (*env)->ReleaseShortArrayElements(env, arg3, lparg3, 0); |
| 4736 |
jint *lparg3=NULL; |
4736 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
| 4737 |
jint *lparg5=NULL; |
4737 |
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0); |
| 4738 |
CGPoint _arg6, *lparg6=NULL; |
4738 |
OS_NATIVE_EXIT(env, that, GetDragModifiers_FUNC); |
| 4739 |
jint rc = 0; |
4739 |
return rc; |
| 4740 |
OS_NATIVE_ENTER(env, that, GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_CGPoint_2_FUNC); |
4740 |
} |
| 4741 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
4741 |
#endif |
| 4742 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
4742 |
|
| 4743 |
if (arg6) if ((lparg6 = getCGPointFields(env, arg6, &_arg6)) == NULL) goto fail; |
4743 |
#ifndef NO_GetDragMouse |
| 4744 |
rc = (jint)GetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (EventParamType *)lparg3, (UInt32)arg4, (UInt32 *)lparg5, (void *)lparg6); |
4744 |
JNIEXPORT jint JNICALL OS_NATIVE(GetDragMouse) |
| 4745 |
fail: |
4745 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jobject arg2) |
| 4746 |
if (arg6 && lparg6) setCGPointFields(env, arg6, lparg6); |
4746 |
{ |
| 4747 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
4747 |
Point _arg1, *lparg1=NULL; |
| 4748 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
4748 |
Point _arg2, *lparg2=NULL; |
| 4749 |
OS_NATIVE_EXIT(env, that, GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_CGPoint_2_FUNC); |
4749 |
jint rc = 0; |
| 4750 |
return rc; |
4750 |
OS_NATIVE_ENTER(env, that, GetDragMouse_FUNC); |
| 4751 |
} |
4751 |
if (arg1) if ((lparg1 = getPointFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 4752 |
#endif |
4752 |
if (arg2) if ((lparg2 = getPointFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 4753 |
|
4753 |
rc = (jint)GetDragMouse((DragRef)arg0, (Point *)lparg1, (Point *)lparg2); |
| 4754 |
#ifndef NO_GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_HICommand_2 |
4754 |
fail: |
| 4755 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_HICommand_2) |
4755 |
if (arg2 && lparg2) setPointFields(env, arg2, lparg2); |
| 4756 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jintArray arg5, jobject arg6) |
4756 |
if (arg1 && lparg1) setPointFields(env, arg1, lparg1); |
| 4757 |
{ |
4757 |
OS_NATIVE_EXIT(env, that, GetDragMouse_FUNC); |
| 4758 |
jint *lparg3=NULL; |
4758 |
return rc; |
| 4759 |
jint *lparg5=NULL; |
4759 |
} |
| 4760 |
HICommand _arg6, *lparg6=NULL; |
4760 |
#endif |
| 4761 |
jint rc = 0; |
4761 |
|
| 4762 |
OS_NATIVE_ENTER(env, that, GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_HICommand_2_FUNC); |
4762 |
#ifndef NO_GetEventClass |
| 4763 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
4763 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventClass) |
| 4764 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
4764 |
(JNIEnv *env, jclass that, jint arg0) |
| 4765 |
if (arg6) if ((lparg6 = getHICommandFields(env, arg6, &_arg6)) == NULL) goto fail; |
4765 |
{ |
| 4766 |
rc = (jint)GetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (EventParamType *)lparg3, (UInt32)arg4, (UInt32 *)lparg5, (void *)lparg6); |
4766 |
jint rc = 0; |
| 4767 |
fail: |
4767 |
OS_NATIVE_ENTER(env, that, GetEventClass_FUNC); |
| 4768 |
if (arg6 && lparg6) setHICommandFields(env, arg6, lparg6); |
4768 |
rc = (jint)GetEventClass((EventRef)arg0); |
| 4769 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
4769 |
OS_NATIVE_EXIT(env, that, GetEventClass_FUNC); |
| 4770 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
4770 |
return rc; |
| 4771 |
OS_NATIVE_EXIT(env, that, GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_HICommand_2_FUNC); |
4771 |
} |
| 4772 |
return rc; |
4772 |
#endif |
| 4773 |
} |
4773 |
|
| 4774 |
#endif |
4774 |
#ifndef NO_GetEventDispatcherTarget |
| 4775 |
|
4775 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventDispatcherTarget) |
| 4776 |
#ifndef NO_GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Point_2 |
4776 |
(JNIEnv *env, jclass that) |
| 4777 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Point_2) |
4777 |
{ |
| 4778 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jintArray arg5, jobject arg6) |
4778 |
jint rc = 0; |
| 4779 |
{ |
4779 |
OS_NATIVE_ENTER(env, that, GetEventDispatcherTarget_FUNC); |
| 4780 |
jint *lparg3=NULL; |
4780 |
rc = (jint)GetEventDispatcherTarget(); |
| 4781 |
jint *lparg5=NULL; |
4781 |
OS_NATIVE_EXIT(env, that, GetEventDispatcherTarget_FUNC); |
| 4782 |
Point _arg6, *lparg6=NULL; |
4782 |
return rc; |
| 4783 |
jint rc = 0; |
4783 |
} |
| 4784 |
OS_NATIVE_ENTER(env, that, GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Point_2_FUNC); |
4784 |
#endif |
| 4785 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
4785 |
|
| 4786 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
4786 |
#ifndef NO_GetEventKind |
| 4787 |
if (arg6) if ((lparg6 = getPointFields(env, arg6, &_arg6)) == NULL) goto fail; |
4787 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventKind) |
| 4788 |
rc = (jint)GetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (EventParamType *)lparg3, (UInt32)arg4, (UInt32 *)lparg5, (void *)lparg6); |
4788 |
(JNIEnv *env, jclass that, jint arg0) |
| 4789 |
fail: |
4789 |
{ |
| 4790 |
if (arg6 && lparg6) setPointFields(env, arg6, lparg6); |
4790 |
jint rc = 0; |
| 4791 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
4791 |
OS_NATIVE_ENTER(env, that, GetEventKind_FUNC); |
| 4792 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
4792 |
rc = (jint)GetEventKind((EventRef)arg0); |
| 4793 |
OS_NATIVE_EXIT(env, that, GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Point_2_FUNC); |
4793 |
OS_NATIVE_EXIT(env, that, GetEventKind_FUNC); |
| 4794 |
return rc; |
4794 |
return rc; |
| 4795 |
} |
4795 |
} |
| 4796 |
#endif |
4796 |
#endif |
| 4797 |
|
4797 |
|
| 4798 |
#ifndef NO_GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_RGBColor_2 |
4798 |
#ifndef NO_GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_CGPoint_2 |
| 4799 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_RGBColor_2) |
4799 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_CGPoint_2) |
| 4800 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jintArray arg5, jobject arg6) |
4800 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jintArray arg5, jobject arg6) |
| 4801 |
{ |
4801 |
{ |
| 4802 |
jint *lparg3=NULL; |
4802 |
jint *lparg3=NULL; |
| 4803 |
jint *lparg5=NULL; |
4803 |
jint *lparg5=NULL; |
| 4804 |
RGBColor _arg6, *lparg6=NULL; |
4804 |
CGPoint _arg6, *lparg6=NULL; |
| 4805 |
jint rc = 0; |
4805 |
jint rc = 0; |
| 4806 |
OS_NATIVE_ENTER(env, that, GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_RGBColor_2_FUNC); |
4806 |
OS_NATIVE_ENTER(env, that, GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_CGPoint_2_FUNC); |
| 4807 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
4807 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 4808 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
4808 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 4809 |
if (arg6) if ((lparg6 = getRGBColorFields(env, arg6, &_arg6)) == NULL) goto fail; |
4809 |
if (arg6) if ((lparg6 = getCGPointFields(env, arg6, &_arg6)) == NULL) goto fail; |
| 4810 |
rc = (jint)GetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (EventParamType *)lparg3, (UInt32)arg4, (UInt32 *)lparg5, (void *)lparg6); |
4810 |
rc = (jint)GetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (EventParamType *)lparg3, (UInt32)arg4, (UInt32 *)lparg5, (void *)lparg6); |
| 4811 |
fail: |
4811 |
fail: |
| 4812 |
if (arg6 && lparg6) setRGBColorFields(env, arg6, lparg6); |
4812 |
if (arg6 && lparg6) setCGPointFields(env, arg6, lparg6); |
| 4813 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
4813 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 4814 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
4814 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 4815 |
OS_NATIVE_EXIT(env, that, GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_RGBColor_2_FUNC); |
4815 |
OS_NATIVE_EXIT(env, that, GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_CGPoint_2_FUNC); |
| 4816 |
return rc; |
4816 |
return rc; |
| 4817 |
} |
4817 |
} |
| 4818 |
#endif |
4818 |
#endif |
| 4819 |
|
4819 |
|
| 4820 |
#ifndef NO_GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Rect_2 |
4820 |
#ifndef NO_GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_HICommand_2 |
| 4821 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Rect_2) |
4821 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_HICommand_2) |
| 4822 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jintArray arg5, jobject arg6) |
4822 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jintArray arg5, jobject arg6) |
| 4823 |
{ |
4823 |
{ |
| 4824 |
jint *lparg3=NULL; |
4824 |
jint *lparg3=NULL; |
| 4825 |
jint *lparg5=NULL; |
4825 |
jint *lparg5=NULL; |
| 4826 |
Rect _arg6, *lparg6=NULL; |
4826 |
HICommand _arg6, *lparg6=NULL; |
| 4827 |
jint rc = 0; |
4827 |
jint rc = 0; |
| 4828 |
OS_NATIVE_ENTER(env, that, GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Rect_2_FUNC); |
4828 |
OS_NATIVE_ENTER(env, that, GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_HICommand_2_FUNC); |
| 4829 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
4829 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 4830 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
4830 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 4831 |
if (arg6) if ((lparg6 = getRectFields(env, arg6, &_arg6)) == NULL) goto fail; |
4831 |
if (arg6) if ((lparg6 = getHICommandFields(env, arg6, &_arg6)) == NULL) goto fail; |
| 4832 |
rc = (jint)GetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (EventParamType *)lparg3, (UInt32)arg4, (UInt32 *)lparg5, (void *)lparg6); |
4832 |
rc = (jint)GetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (EventParamType *)lparg3, (UInt32)arg4, (UInt32 *)lparg5, (void *)lparg6); |
| 4833 |
fail: |
4833 |
fail: |
| 4834 |
if (arg6 && lparg6) setRectFields(env, arg6, lparg6); |
4834 |
if (arg6 && lparg6) setHICommandFields(env, arg6, lparg6); |
| 4835 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
4835 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 4836 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
4836 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 4837 |
OS_NATIVE_EXIT(env, that, GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Rect_2_FUNC); |
4837 |
OS_NATIVE_EXIT(env, that, GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_HICommand_2_FUNC); |
| 4838 |
return rc; |
4838 |
return rc; |
| 4839 |
} |
4839 |
} |
| 4840 |
#endif |
4840 |
#endif |
| 4841 |
|
4841 |
|
| 4842 |
#ifndef NO_GetEventParameter__III_3II_3I_3B |
4842 |
#ifndef NO_GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Point_2 |
| 4843 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventParameter__III_3II_3I_3B) |
4843 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Point_2) |
| 4844 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jintArray arg5, jbyteArray arg6) |
4844 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jintArray arg5, jobject arg6) |
| 4845 |
{ |
4845 |
{ |
| 4846 |
jint *lparg3=NULL; |
4846 |
jint *lparg3=NULL; |
| 4847 |
jint *lparg5=NULL; |
4847 |
jint *lparg5=NULL; |
| 4848 |
jbyte *lparg6=NULL; |
4848 |
Point _arg6, *lparg6=NULL; |
| 4849 |
jint rc = 0; |
4849 |
jint rc = 0; |
| 4850 |
OS_NATIVE_ENTER(env, that, GetEventParameter__III_3II_3I_3B_FUNC); |
4850 |
OS_NATIVE_ENTER(env, that, GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Point_2_FUNC); |
| 4851 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
4851 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 4852 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
4852 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 4853 |
if (arg6) if ((lparg6 = (*env)->GetByteArrayElements(env, arg6, NULL)) == NULL) goto fail; |
4853 |
if (arg6) if ((lparg6 = getPointFields(env, arg6, &_arg6)) == NULL) goto fail; |
| 4854 |
rc = (jint)GetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (EventParamType *)lparg3, (UInt32)arg4, (UInt32 *)lparg5, (void *)lparg6); |
4854 |
rc = (jint)GetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (EventParamType *)lparg3, (UInt32)arg4, (UInt32 *)lparg5, (void *)lparg6); |
| 4855 |
fail: |
4855 |
fail: |
| 4856 |
if (arg6 && lparg6) (*env)->ReleaseByteArrayElements(env, arg6, lparg6, 0); |
4856 |
if (arg6 && lparg6) setPointFields(env, arg6, lparg6); |
| 4857 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
4857 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 4858 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
4858 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 4859 |
OS_NATIVE_EXIT(env, that, GetEventParameter__III_3II_3I_3B_FUNC); |
4859 |
OS_NATIVE_EXIT(env, that, GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Point_2_FUNC); |
| 4860 |
return rc; |
4860 |
return rc; |
| 4861 |
} |
4861 |
} |
| 4862 |
#endif |
4862 |
#endif |
| 4863 |
|
4863 |
|
| 4864 |
#ifndef NO_GetEventParameter__III_3II_3I_3C |
4864 |
#ifndef NO_GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_RGBColor_2 |
| 4865 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventParameter__III_3II_3I_3C) |
4865 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_RGBColor_2) |
| 4866 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jintArray arg5, jcharArray arg6) |
4866 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jintArray arg5, jobject arg6) |
| 4867 |
{ |
4867 |
{ |
| 4868 |
jint *lparg3=NULL; |
4868 |
jint *lparg3=NULL; |
| 4869 |
jint *lparg5=NULL; |
4869 |
jint *lparg5=NULL; |
| 4870 |
jchar *lparg6=NULL; |
4870 |
RGBColor _arg6, *lparg6=NULL; |
| 4871 |
jint rc = 0; |
4871 |
jint rc = 0; |
| 4872 |
OS_NATIVE_ENTER(env, that, GetEventParameter__III_3II_3I_3C_FUNC); |
4872 |
OS_NATIVE_ENTER(env, that, GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_RGBColor_2_FUNC); |
| 4873 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
4873 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 4874 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
4874 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 4875 |
if (arg6) if ((lparg6 = (*env)->GetCharArrayElements(env, arg6, NULL)) == NULL) goto fail; |
4875 |
if (arg6) if ((lparg6 = getRGBColorFields(env, arg6, &_arg6)) == NULL) goto fail; |
| 4876 |
rc = (jint)GetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (EventParamType *)lparg3, (UInt32)arg4, (UInt32 *)lparg5, (void *)lparg6); |
4876 |
rc = (jint)GetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (EventParamType *)lparg3, (UInt32)arg4, (UInt32 *)lparg5, (void *)lparg6); |
| 4877 |
fail: |
4877 |
fail: |
| 4878 |
if (arg6 && lparg6) (*env)->ReleaseCharArrayElements(env, arg6, lparg6, 0); |
4878 |
if (arg6 && lparg6) setRGBColorFields(env, arg6, lparg6); |
| 4879 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
4879 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 4880 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
4880 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 4881 |
OS_NATIVE_EXIT(env, that, GetEventParameter__III_3II_3I_3C_FUNC); |
4881 |
OS_NATIVE_EXIT(env, that, GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_RGBColor_2_FUNC); |
| 4882 |
return rc; |
4882 |
return rc; |
| 4883 |
} |
4883 |
} |
| 4884 |
#endif |
4884 |
#endif |
| 4885 |
|
4885 |
|
| 4886 |
#ifndef NO_GetEventParameter__III_3II_3I_3I |
4886 |
#ifndef NO_GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Rect_2 |
| 4887 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventParameter__III_3II_3I_3I) |
4887 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Rect_2) |
| 4888 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jintArray arg5, jintArray arg6) |
4888 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jintArray arg5, jobject arg6) |
| 4889 |
{ |
4889 |
{ |
| 4890 |
jint *lparg3=NULL; |
4890 |
jint *lparg3=NULL; |
| 4891 |
jint *lparg5=NULL; |
4891 |
jint *lparg5=NULL; |
| 4892 |
jint *lparg6=NULL; |
4892 |
Rect _arg6, *lparg6=NULL; |
| 4893 |
jint rc = 0; |
4893 |
jint rc = 0; |
| 4894 |
OS_NATIVE_ENTER(env, that, GetEventParameter__III_3II_3I_3I_FUNC); |
4894 |
OS_NATIVE_ENTER(env, that, GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Rect_2_FUNC); |
| 4895 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
4895 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 4896 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
4896 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 4897 |
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail; |
4897 |
if (arg6) if ((lparg6 = getRectFields(env, arg6, &_arg6)) == NULL) goto fail; |
| 4898 |
rc = (jint)GetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (EventParamType *)lparg3, (UInt32)arg4, (UInt32 *)lparg5, (void *)lparg6); |
4898 |
rc = (jint)GetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (EventParamType *)lparg3, (UInt32)arg4, (UInt32 *)lparg5, (void *)lparg6); |
| 4899 |
fail: |
4899 |
fail: |
| 4900 |
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0); |
4900 |
if (arg6 && lparg6) setRectFields(env, arg6, lparg6); |
| 4901 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
4901 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 4902 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
4902 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 4903 |
OS_NATIVE_EXIT(env, that, GetEventParameter__III_3II_3I_3I_FUNC); |
4903 |
OS_NATIVE_EXIT(env, that, GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Rect_2_FUNC); |
| 4904 |
return rc; |
4904 |
return rc; |
| 4905 |
} |
4905 |
} |
| 4906 |
#endif |
4906 |
#endif |
| 4907 |
|
4907 |
|
| 4908 |
#ifndef NO_GetEventParameter__III_3II_3I_3S |
4908 |
#ifndef NO_GetEventParameter__III_3II_3I_3B |
| 4909 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventParameter__III_3II_3I_3S) |
4909 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventParameter__III_3II_3I_3B) |
| 4910 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jintArray arg5, jshortArray arg6) |
4910 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jintArray arg5, jbyteArray arg6) |
| 4911 |
{ |
4911 |
{ |
| 4912 |
jint *lparg3=NULL; |
4912 |
jint *lparg3=NULL; |
| 4913 |
jint *lparg5=NULL; |
4913 |
jint *lparg5=NULL; |
| 4914 |
jshort *lparg6=NULL; |
4914 |
jbyte *lparg6=NULL; |
| 4915 |
jint rc = 0; |
4915 |
jint rc = 0; |
| 4916 |
OS_NATIVE_ENTER(env, that, GetEventParameter__III_3II_3I_3S_FUNC); |
4916 |
OS_NATIVE_ENTER(env, that, GetEventParameter__III_3II_3I_3B_FUNC); |
| 4917 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
4917 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 4918 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
4918 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 4919 |
if (arg6) if ((lparg6 = (*env)->GetShortArrayElements(env, arg6, NULL)) == NULL) goto fail; |
4919 |
if (arg6) if ((lparg6 = (*env)->GetByteArrayElements(env, arg6, NULL)) == NULL) goto fail; |
| 4920 |
rc = (jint)GetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (EventParamType *)lparg3, (UInt32)arg4, (UInt32 *)lparg5, (void *)lparg6); |
4920 |
rc = (jint)GetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (EventParamType *)lparg3, (UInt32)arg4, (UInt32 *)lparg5, (void *)lparg6); |
| 4921 |
fail: |
4921 |
fail: |
| 4922 |
if (arg6 && lparg6) (*env)->ReleaseShortArrayElements(env, arg6, lparg6, 0); |
4922 |
if (arg6 && lparg6) (*env)->ReleaseByteArrayElements(env, arg6, lparg6, 0); |
| 4923 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
4923 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 4924 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
4924 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 4925 |
OS_NATIVE_EXIT(env, that, GetEventParameter__III_3II_3I_3S_FUNC); |
4925 |
OS_NATIVE_EXIT(env, that, GetEventParameter__III_3II_3I_3B_FUNC); |
| 4926 |
return rc; |
4926 |
return rc; |
| 4927 |
} |
4927 |
} |
| 4928 |
#endif |
4928 |
#endif |
| 4929 |
|
4929 |
|
| 4930 |
#ifndef NO_GetEventTime |
4930 |
#ifndef NO_GetEventParameter__III_3II_3I_3C |
| 4931 |
JNIEXPORT jdouble JNICALL OS_NATIVE(GetEventTime) |
4931 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventParameter__III_3II_3I_3C) |
| 4932 |
(JNIEnv *env, jclass that, jint arg0) |
4932 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jintArray arg5, jcharArray arg6) |
| 4933 |
{ |
4933 |
{ |
| 4934 |
jdouble rc = 0; |
4934 |
jint *lparg3=NULL; |
| 4935 |
OS_NATIVE_ENTER(env, that, GetEventTime_FUNC); |
4935 |
jint *lparg5=NULL; |
| 4936 |
rc = (jdouble)GetEventTime((EventRef)arg0); |
4936 |
jchar *lparg6=NULL; |
| 4937 |
OS_NATIVE_EXIT(env, that, GetEventTime_FUNC); |
4937 |
jint rc = 0; |
| 4938 |
return rc; |
4938 |
OS_NATIVE_ENTER(env, that, GetEventParameter__III_3II_3I_3C_FUNC); |
| 4939 |
} |
4939 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 4940 |
#endif |
4940 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 4941 |
|
4941 |
if (arg6) if ((lparg6 = (*env)->GetCharArrayElements(env, arg6, NULL)) == NULL) goto fail; |
| 4942 |
#ifndef NO_GetFlavorData |
4942 |
rc = (jint)GetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (EventParamType *)lparg3, (UInt32)arg4, (UInt32 *)lparg5, (void *)lparg6); |
| 4943 |
JNIEXPORT jint JNICALL OS_NATIVE(GetFlavorData) |
4943 |
fail: |
| 4944 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jbyteArray arg3, jintArray arg4, jint arg5) |
4944 |
if (arg6 && lparg6) (*env)->ReleaseCharArrayElements(env, arg6, lparg6, 0); |
| 4945 |
{ |
4945 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 4946 |
jbyte *lparg3=NULL; |
4946 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 4947 |
jint *lparg4=NULL; |
4947 |
OS_NATIVE_EXIT(env, that, GetEventParameter__III_3II_3I_3C_FUNC); |
| 4948 |
jint rc = 0; |
4948 |
return rc; |
| 4949 |
OS_NATIVE_ENTER(env, that, GetFlavorData_FUNC); |
4949 |
} |
| 4950 |
if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail; |
4950 |
#endif |
| 4951 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
4951 |
|
| 4952 |
rc = (jint)GetFlavorData((DragRef)arg0, (DragItemRef)arg1, (FlavorType)arg2, (void *)lparg3, (Size *)lparg4, arg5); |
4952 |
#ifndef NO_GetEventParameter__III_3II_3I_3I |
| 4953 |
fail: |
4953 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventParameter__III_3II_3I_3I) |
| 4954 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
4954 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jintArray arg5, jintArray arg6) |
| 4955 |
if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0); |
4955 |
{ |
| 4956 |
OS_NATIVE_EXIT(env, that, GetFlavorData_FUNC); |
4956 |
jint *lparg3=NULL; |
| 4957 |
return rc; |
4957 |
jint *lparg5=NULL; |
| 4958 |
} |
4958 |
jint *lparg6=NULL; |
| 4959 |
#endif |
4959 |
jint rc = 0; |
| 4960 |
|
4960 |
OS_NATIVE_ENTER(env, that, GetEventParameter__III_3II_3I_3I_FUNC); |
| 4961 |
#ifndef NO_GetFlavorDataSize |
4961 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 4962 |
JNIEXPORT jint JNICALL OS_NATIVE(GetFlavorDataSize) |
4962 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 4963 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3) |
4963 |
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail; |
| 4964 |
{ |
4964 |
rc = (jint)GetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (EventParamType *)lparg3, (UInt32)arg4, (UInt32 *)lparg5, (void *)lparg6); |
| 4965 |
jint *lparg3=NULL; |
4965 |
fail: |
| 4966 |
jint rc = 0; |
4966 |
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0); |
| 4967 |
OS_NATIVE_ENTER(env, that, GetFlavorDataSize_FUNC); |
4967 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 4968 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
4968 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 4969 |
rc = (jint)GetFlavorDataSize((DragRef)arg0, (DragItemRef)arg1, (FlavorType)arg2, (Size *)lparg3); |
4969 |
OS_NATIVE_EXIT(env, that, GetEventParameter__III_3II_3I_3I_FUNC); |
| 4970 |
fail: |
4970 |
return rc; |
| 4971 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
4971 |
} |
| 4972 |
OS_NATIVE_EXIT(env, that, GetFlavorDataSize_FUNC); |
4972 |
#endif |
| 4973 |
return rc; |
4973 |
|
| 4974 |
} |
4974 |
#ifndef NO_GetEventParameter__III_3II_3I_3S |
| 4975 |
#endif |
4975 |
JNIEXPORT jint JNICALL OS_NATIVE(GetEventParameter__III_3II_3I_3S) |
| 4976 |
|
4976 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jintArray arg5, jshortArray arg6) |
| 4977 |
#ifndef NO_GetFlavorType |
4977 |
{ |
| 4978 |
JNIEXPORT jint JNICALL OS_NATIVE(GetFlavorType) |
4978 |
jint *lparg3=NULL; |
| 4979 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshort arg2, jintArray arg3) |
4979 |
jint *lparg5=NULL; |
| 4980 |
{ |
4980 |
jshort *lparg6=NULL; |
| 4981 |
jint *lparg3=NULL; |
4981 |
jint rc = 0; |
| 4982 |
jint rc = 0; |
4982 |
OS_NATIVE_ENTER(env, that, GetEventParameter__III_3II_3I_3S_FUNC); |
| 4983 |
OS_NATIVE_ENTER(env, that, GetFlavorType_FUNC); |
4983 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 4984 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
4984 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 4985 |
rc = (jint)GetFlavorType((DragRef)arg0, (DragItemRef)arg1, arg2, (FlavorType *)lparg3); |
4985 |
if (arg6) if ((lparg6 = (*env)->GetShortArrayElements(env, arg6, NULL)) == NULL) goto fail; |
| 4986 |
fail: |
4986 |
rc = (jint)GetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (EventParamType *)lparg3, (UInt32)arg4, (UInt32 *)lparg5, (void *)lparg6); |
| 4987 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
4987 |
fail: |
| 4988 |
OS_NATIVE_EXIT(env, that, GetFlavorType_FUNC); |
4988 |
if (arg6 && lparg6) (*env)->ReleaseShortArrayElements(env, arg6, lparg6, 0); |
| 4989 |
return rc; |
4989 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 4990 |
} |
4990 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 4991 |
#endif |
4991 |
OS_NATIVE_EXIT(env, that, GetEventParameter__III_3II_3I_3S_FUNC); |
| 4992 |
|
4992 |
return rc; |
| 4993 |
#ifndef NO_GetFontInfo |
4993 |
} |
| 4994 |
JNIEXPORT void JNICALL OS_NATIVE(GetFontInfo) |
4994 |
#endif |
| 4995 |
(JNIEnv *env, jclass that, jobject arg0) |
4995 |
|
| 4996 |
{ |
4996 |
#ifndef NO_GetEventTime |
| 4997 |
FontInfo _arg0, *lparg0=NULL; |
4997 |
JNIEXPORT jdouble JNICALL OS_NATIVE(GetEventTime) |
| 4998 |
OS_NATIVE_ENTER(env, that, GetFontInfo_FUNC); |
4998 |
(JNIEnv *env, jclass that, jint arg0) |
| 4999 |
if (arg0) if ((lparg0 = getFontInfoFields(env, arg0, &_arg0)) == NULL) goto fail; |
4999 |
{ |
| 5000 |
GetFontInfo((FontInfo *)lparg0); |
5000 |
jdouble rc = 0; |
| 5001 |
fail: |
5001 |
OS_NATIVE_ENTER(env, that, GetEventTime_FUNC); |
| 5002 |
if (arg0 && lparg0) setFontInfoFields(env, arg0, lparg0); |
5002 |
rc = (jdouble)GetEventTime((EventRef)arg0); |
| 5003 |
OS_NATIVE_EXIT(env, that, GetFontInfo_FUNC); |
5003 |
OS_NATIVE_EXIT(env, that, GetEventTime_FUNC); |
| 5004 |
} |
5004 |
return rc; |
| 5005 |
#endif |
5005 |
} |
| 5006 |
|
5006 |
#endif |
| 5007 |
#ifndef NO_GetGDevice |
5007 |
|
| 5008 |
JNIEXPORT jint JNICALL OS_NATIVE(GetGDevice) |
5008 |
#ifndef NO_GetFlavorData |
| 5009 |
(JNIEnv *env, jclass that) |
5009 |
JNIEXPORT jint JNICALL OS_NATIVE(GetFlavorData) |
| 5010 |
{ |
5010 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jbyteArray arg3, jintArray arg4, jint arg5) |
| 5011 |
jint rc = 0; |
5011 |
{ |
| 5012 |
OS_NATIVE_ENTER(env, that, GetGDevice_FUNC); |
5012 |
jbyte *lparg3=NULL; |
| 5013 |
rc = (jint)GetGDevice(); |
5013 |
jint *lparg4=NULL; |
| 5014 |
OS_NATIVE_EXIT(env, that, GetGDevice_FUNC); |
5014 |
jint rc = 0; |
| 5015 |
return rc; |
5015 |
OS_NATIVE_ENTER(env, that, GetFlavorData_FUNC); |
| 5016 |
} |
5016 |
if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 5017 |
#endif |
5017 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 5018 |
|
5018 |
rc = (jint)GetFlavorData((DragRef)arg0, (DragItemRef)arg1, (FlavorType)arg2, (void *)lparg3, (Size *)lparg4, arg5); |
| 5019 |
#ifndef NO_GetGWorld |
5019 |
fail: |
| 5020 |
JNIEXPORT void JNICALL OS_NATIVE(GetGWorld) |
5020 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 5021 |
(JNIEnv *env, jclass that, jintArray arg0, jintArray arg1) |
5021 |
if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0); |
| 5022 |
{ |
5022 |
OS_NATIVE_EXIT(env, that, GetFlavorData_FUNC); |
| 5023 |
jint *lparg0=NULL; |
5023 |
return rc; |
| 5024 |
jint *lparg1=NULL; |
5024 |
} |
| 5025 |
OS_NATIVE_ENTER(env, that, GetGWorld_FUNC); |
5025 |
#endif |
| 5026 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
5026 |
|
| 5027 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
5027 |
#ifndef NO_GetFlavorDataSize |
| 5028 |
GetGWorld((CGrafPtr *)lparg0, (GDHandle *)lparg1); |
5028 |
JNIEXPORT jint JNICALL OS_NATIVE(GetFlavorDataSize) |
| 5029 |
fail: |
5029 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3) |
| 5030 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
5030 |
{ |
| 5031 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
5031 |
jint *lparg3=NULL; |
| 5032 |
OS_NATIVE_EXIT(env, that, GetGWorld_FUNC); |
5032 |
jint rc = 0; |
| 5033 |
} |
5033 |
OS_NATIVE_ENTER(env, that, GetFlavorDataSize_FUNC); |
| 5034 |
#endif |
5034 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 5035 |
|
5035 |
rc = (jint)GetFlavorDataSize((DragRef)arg0, (DragItemRef)arg1, (FlavorType)arg2, (Size *)lparg3); |
| 5036 |
#ifndef NO_GetGlobalMouse |
5036 |
fail: |
| 5037 |
JNIEXPORT void JNICALL OS_NATIVE(GetGlobalMouse) |
5037 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 5038 |
(JNIEnv *env, jclass that, jobject arg0) |
5038 |
OS_NATIVE_EXIT(env, that, GetFlavorDataSize_FUNC); |
| 5039 |
{ |
5039 |
return rc; |
| 5040 |
Point _arg0, *lparg0=NULL; |
5040 |
} |
| 5041 |
OS_NATIVE_ENTER(env, that, GetGlobalMouse_FUNC); |
5041 |
#endif |
| 5042 |
if (arg0) if ((lparg0 = getPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
5042 |
|
| 5043 |
GetGlobalMouse((Point *)lparg0); |
5043 |
#ifndef NO_GetFlavorType |
| 5044 |
fail: |
5044 |
JNIEXPORT jint JNICALL OS_NATIVE(GetFlavorType) |
| 5045 |
if (arg0 && lparg0) setPointFields(env, arg0, lparg0); |
5045 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshort arg2, jintArray arg3) |
| 5046 |
OS_NATIVE_EXIT(env, that, GetGlobalMouse_FUNC); |
5046 |
{ |
| 5047 |
} |
5047 |
jint *lparg3=NULL; |
| 5048 |
#endif |
5048 |
jint rc = 0; |
| 5049 |
|
5049 |
OS_NATIVE_ENTER(env, that, GetFlavorType_FUNC); |
| 5050 |
#ifndef NO_GetHandleSize |
5050 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 5051 |
JNIEXPORT jint JNICALL OS_NATIVE(GetHandleSize) |
5051 |
rc = (jint)GetFlavorType((DragRef)arg0, (DragItemRef)arg1, arg2, (FlavorType *)lparg3); |
| 5052 |
(JNIEnv *env, jclass that, jint arg0) |
5052 |
fail: |
| 5053 |
{ |
5053 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 5054 |
jint rc = 0; |
5054 |
OS_NATIVE_EXIT(env, that, GetFlavorType_FUNC); |
| 5055 |
OS_NATIVE_ENTER(env, that, GetHandleSize_FUNC); |
5055 |
return rc; |
| 5056 |
rc = (jint)GetHandleSize((Handle)arg0); |
5056 |
} |
| 5057 |
OS_NATIVE_EXIT(env, that, GetHandleSize_FUNC); |
5057 |
#endif |
| 5058 |
return rc; |
5058 |
|
| 5059 |
} |
5059 |
#ifndef NO_GetFontInfo |
| 5060 |
#endif |
5060 |
JNIEXPORT void JNICALL OS_NATIVE(GetFontInfo) |
| 5061 |
|
5061 |
(JNIEnv *env, jclass that, jobject arg0) |
| 5062 |
#ifndef NO_GetIconFamilyData |
5062 |
{ |
| 5063 |
JNIEXPORT jint JNICALL OS_NATIVE(GetIconFamilyData) |
5063 |
FontInfo _arg0, *lparg0=NULL; |
| 5064 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
5064 |
OS_NATIVE_ENTER(env, that, GetFontInfo_FUNC); |
| 5065 |
{ |
5065 |
if (arg0) if ((lparg0 = getFontInfoFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 5066 |
jint rc = 0; |
5066 |
GetFontInfo((FontInfo *)lparg0); |
| 5067 |
OS_NATIVE_ENTER(env, that, GetIconFamilyData_FUNC); |
5067 |
fail: |
| 5068 |
rc = (jint)GetIconFamilyData((IconFamilyHandle)arg0, (OSType)arg1, (Handle)arg2); |
5068 |
if (arg0 && lparg0) setFontInfoFields(env, arg0, lparg0); |
| 5069 |
OS_NATIVE_EXIT(env, that, GetIconFamilyData_FUNC); |
5069 |
OS_NATIVE_EXIT(env, that, GetFontInfo_FUNC); |
| 5070 |
return rc; |
5070 |
} |
| 5071 |
} |
5071 |
#endif |
| 5072 |
#endif |
5072 |
|
| 5073 |
|
5073 |
#ifndef NO_GetGDevice |
| 5074 |
#ifndef NO_GetIconRef |
5074 |
JNIEXPORT jint JNICALL OS_NATIVE(GetGDevice) |
| 5075 |
JNIEXPORT jint JNICALL OS_NATIVE(GetIconRef) |
5075 |
(JNIEnv *env, jclass that) |
| 5076 |
(JNIEnv *env, jclass that, jshort arg0, jint arg1, jint arg2, jintArray arg3) |
5076 |
{ |
| 5077 |
{ |
5077 |
jint rc = 0; |
| 5078 |
jint *lparg3=NULL; |
5078 |
OS_NATIVE_ENTER(env, that, GetGDevice_FUNC); |
| 5079 |
jint rc = 0; |
5079 |
rc = (jint)GetGDevice(); |
| 5080 |
OS_NATIVE_ENTER(env, that, GetIconRef_FUNC); |
5080 |
OS_NATIVE_EXIT(env, that, GetGDevice_FUNC); |
| 5081 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
5081 |
return rc; |
| 5082 |
rc = (jint)GetIconRef((SInt16)arg0, (OSType)arg1, (OSType)arg2, (IconRef *)lparg3); |
5082 |
} |
| 5083 |
fail: |
5083 |
#endif |
| 5084 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
5084 |
|
| 5085 |
OS_NATIVE_EXIT(env, that, GetIconRef_FUNC); |
5085 |
#ifndef NO_GetGWorld |
| 5086 |
return rc; |
5086 |
JNIEXPORT void JNICALL OS_NATIVE(GetGWorld) |
| 5087 |
} |
5087 |
(JNIEnv *env, jclass that, jintArray arg0, jintArray arg1) |
| 5088 |
#endif |
5088 |
{ |
| 5089 |
|
5089 |
jint *lparg0=NULL; |
| 5090 |
#ifndef NO_GetIndMenuItemWithCommandID |
5090 |
jint *lparg1=NULL; |
| 5091 |
JNIEXPORT jint JNICALL OS_NATIVE(GetIndMenuItemWithCommandID) |
5091 |
OS_NATIVE_ENTER(env, that, GetGWorld_FUNC); |
| 5092 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jshortArray arg4) |
5092 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 5093 |
{ |
5093 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 5094 |
jint *lparg3=NULL; |
5094 |
GetGWorld((CGrafPtr *)lparg0, (GDHandle *)lparg1); |
| 5095 |
jshort *lparg4=NULL; |
5095 |
fail: |
| 5096 |
jint rc = 0; |
5096 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 5097 |
OS_NATIVE_ENTER(env, that, GetIndMenuItemWithCommandID_FUNC); |
5097 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 5098 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
5098 |
OS_NATIVE_EXIT(env, that, GetGWorld_FUNC); |
| 5099 |
if (arg4) if ((lparg4 = (*env)->GetShortArrayElements(env, arg4, NULL)) == NULL) goto fail; |
5099 |
} |
| 5100 |
rc = (jint)GetIndMenuItemWithCommandID((MenuRef)arg0, (MenuCommand)arg1, (UInt32)arg2, (MenuRef *)lparg3, (MenuItemIndex *)lparg4); |
5100 |
#endif |
| 5101 |
fail: |
5101 |
|
| 5102 |
if (arg4 && lparg4) (*env)->ReleaseShortArrayElements(env, arg4, lparg4, 0); |
5102 |
#ifndef NO_GetGlobalMouse |
| 5103 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
5103 |
JNIEXPORT void JNICALL OS_NATIVE(GetGlobalMouse) |
| 5104 |
OS_NATIVE_EXIT(env, that, GetIndMenuItemWithCommandID_FUNC); |
5104 |
(JNIEnv *env, jclass that, jobject arg0) |
| 5105 |
return rc; |
5105 |
{ |
| 5106 |
} |
5106 |
Point _arg0, *lparg0=NULL; |
| 5107 |
#endif |
5107 |
OS_NATIVE_ENTER(env, that, GetGlobalMouse_FUNC); |
| 5108 |
|
5108 |
if (arg0) if ((lparg0 = getPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 5109 |
#ifndef NO_GetIndexedSubControl |
5109 |
GetGlobalMouse((Point *)lparg0); |
| 5110 |
JNIEXPORT jint JNICALL OS_NATIVE(GetIndexedSubControl) |
5110 |
fail: |
| 5111 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jintArray arg2) |
5111 |
if (arg0 && lparg0) setPointFields(env, arg0, lparg0); |
| 5112 |
{ |
5112 |
OS_NATIVE_EXIT(env, that, GetGlobalMouse_FUNC); |
| 5113 |
jint *lparg2=NULL; |
5113 |
} |
| 5114 |
jint rc = 0; |
5114 |
#endif |
| 5115 |
OS_NATIVE_ENTER(env, that, GetIndexedSubControl_FUNC); |
5115 |
|
| 5116 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
5116 |
#ifndef NO_GetHandleSize |
| 5117 |
rc = (jint)GetIndexedSubControl((ControlRef)arg0, (UInt16)arg1, (ControlRef *)lparg2); |
5117 |
JNIEXPORT jint JNICALL OS_NATIVE(GetHandleSize) |
| 5118 |
fail: |
5118 |
(JNIEnv *env, jclass that, jint arg0) |
| 5119 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
5119 |
{ |
| 5120 |
OS_NATIVE_EXIT(env, that, GetIndexedSubControl_FUNC); |
5120 |
jint rc = 0; |
| 5121 |
return rc; |
5121 |
OS_NATIVE_ENTER(env, that, GetHandleSize_FUNC); |
| 5122 |
} |
5122 |
rc = (jint)GetHandleSize((Handle)arg0); |
| 5123 |
#endif |
5123 |
OS_NATIVE_EXIT(env, that, GetHandleSize_FUNC); |
| 5124 |
|
5124 |
return rc; |
| 5125 |
#ifndef NO_GetItemMark |
5125 |
} |
| 5126 |
JNIEXPORT void JNICALL OS_NATIVE(GetItemMark) |
5126 |
#endif |
| 5127 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshortArray arg2) |
5127 |
|
| 5128 |
{ |
5128 |
#ifndef NO_GetIconFamilyData |
| 5129 |
jshort *lparg2=NULL; |
5129 |
JNIEXPORT jint JNICALL OS_NATIVE(GetIconFamilyData) |
| 5130 |
OS_NATIVE_ENTER(env, that, GetItemMark_FUNC); |
5130 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 5131 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
5131 |
{ |
| 5132 |
GetItemMark((MenuRef)arg0, arg1, lparg2); |
5132 |
jint rc = 0; |
| 5133 |
fail: |
5133 |
OS_NATIVE_ENTER(env, that, GetIconFamilyData_FUNC); |
| 5134 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
5134 |
rc = (jint)GetIconFamilyData((IconFamilyHandle)arg0, (OSType)arg1, (Handle)arg2); |
| 5135 |
OS_NATIVE_EXIT(env, that, GetItemMark_FUNC); |
5135 |
OS_NATIVE_EXIT(env, that, GetIconFamilyData_FUNC); |
| 5136 |
} |
5136 |
return rc; |
| 5137 |
#endif |
5137 |
} |
| 5138 |
|
5138 |
#endif |
| 5139 |
#ifndef NO_GetKeyboardFocus |
5139 |
|
| 5140 |
JNIEXPORT jint JNICALL OS_NATIVE(GetKeyboardFocus) |
5140 |
#ifndef NO_GetIconRef |
| 5141 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
5141 |
JNIEXPORT jint JNICALL OS_NATIVE(GetIconRef) |
| 5142 |
{ |
5142 |
(JNIEnv *env, jclass that, jshort arg0, jint arg1, jint arg2, jintArray arg3) |
| 5143 |
jint *lparg1=NULL; |
5143 |
{ |
| 5144 |
jint rc = 0; |
5144 |
jint *lparg3=NULL; |
| 5145 |
OS_NATIVE_ENTER(env, that, GetKeyboardFocus_FUNC); |
5145 |
jint rc = 0; |
| 5146 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
5146 |
OS_NATIVE_ENTER(env, that, GetIconRef_FUNC); |
| 5147 |
rc = (jint)GetKeyboardFocus((WindowRef)arg0, (ControlRef *)lparg1); |
5147 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 5148 |
fail: |
5148 |
rc = (jint)GetIconRef((SInt16)arg0, (OSType)arg1, (OSType)arg2, (IconRef *)lparg3); |
| 5149 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
5149 |
fail: |
| 5150 |
OS_NATIVE_EXIT(env, that, GetKeyboardFocus_FUNC); |
5150 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 5151 |
return rc; |
5151 |
OS_NATIVE_EXIT(env, that, GetIconRef_FUNC); |
| 5152 |
} |
5152 |
return rc; |
| 5153 |
#endif |
5153 |
} |
| 5154 |
|
5154 |
#endif |
| 5155 |
#ifndef NO_GetLastUserEventTime |
5155 |
|
| 5156 |
JNIEXPORT jdouble JNICALL OS_NATIVE(GetLastUserEventTime) |
5156 |
#ifndef NO_GetIndMenuItemWithCommandID |
| 5157 |
(JNIEnv *env, jclass that) |
5157 |
JNIEXPORT jint JNICALL OS_NATIVE(GetIndMenuItemWithCommandID) |
| 5158 |
{ |
5158 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jshortArray arg4) |
| 5159 |
jdouble rc = 0; |
5159 |
{ |
| 5160 |
OS_NATIVE_ENTER(env, that, GetLastUserEventTime_FUNC); |
5160 |
jint *lparg3=NULL; |
| 5161 |
rc = (jdouble)GetLastUserEventTime(); |
5161 |
jshort *lparg4=NULL; |
| 5162 |
OS_NATIVE_EXIT(env, that, GetLastUserEventTime_FUNC); |
5162 |
jint rc = 0; |
| 5163 |
return rc; |
5163 |
OS_NATIVE_ENTER(env, that, GetIndMenuItemWithCommandID_FUNC); |
| 5164 |
} |
5164 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 5165 |
#endif |
5165 |
if (arg4) if ((lparg4 = (*env)->GetShortArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 5166 |
|
5166 |
rc = (jint)GetIndMenuItemWithCommandID((MenuRef)arg0, (MenuCommand)arg1, (UInt32)arg2, (MenuRef *)lparg3, (MenuItemIndex *)lparg4); |
| 5167 |
#ifndef NO_GetMBarHeight |
5167 |
fail: |
| 5168 |
JNIEXPORT jint JNICALL OS_NATIVE(GetMBarHeight) |
5168 |
if (arg4 && lparg4) (*env)->ReleaseShortArrayElements(env, arg4, lparg4, 0); |
| 5169 |
(JNIEnv *env, jclass that) |
5169 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 5170 |
{ |
5170 |
OS_NATIVE_EXIT(env, that, GetIndMenuItemWithCommandID_FUNC); |
| 5171 |
jint rc = 0; |
5171 |
return rc; |
| 5172 |
OS_NATIVE_ENTER(env, that, GetMBarHeight_FUNC); |
5172 |
} |
| 5173 |
rc = (jint)GetMBarHeight(); |
5173 |
#endif |
| 5174 |
OS_NATIVE_EXIT(env, that, GetMBarHeight_FUNC); |
5174 |
|
| 5175 |
return rc; |
5175 |
#ifndef NO_GetIndexedSubControl |
| 5176 |
} |
5176 |
JNIEXPORT jint JNICALL OS_NATIVE(GetIndexedSubControl) |
| 5177 |
#endif |
5177 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jintArray arg2) |
| 5178 |
|
5178 |
{ |
| 5179 |
#ifndef NO_GetMainDevice |
5179 |
jint *lparg2=NULL; |
| 5180 |
JNIEXPORT jint JNICALL OS_NATIVE(GetMainDevice) |
5180 |
jint rc = 0; |
| 5181 |
(JNIEnv *env, jclass that) |
5181 |
OS_NATIVE_ENTER(env, that, GetIndexedSubControl_FUNC); |
| 5182 |
{ |
5182 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 5183 |
jint rc = 0; |
5183 |
rc = (jint)GetIndexedSubControl((ControlRef)arg0, (UInt16)arg1, (ControlRef *)lparg2); |
| 5184 |
OS_NATIVE_ENTER(env, that, GetMainDevice_FUNC); |
5184 |
fail: |
| 5185 |
rc = (jint)GetMainDevice(); |
5185 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 5186 |
OS_NATIVE_EXIT(env, that, GetMainDevice_FUNC); |
5186 |
OS_NATIVE_EXIT(env, that, GetIndexedSubControl_FUNC); |
| 5187 |
return rc; |
5187 |
return rc; |
| 5188 |
} |
5188 |
} |
| 5189 |
#endif |
5189 |
#endif |
| 5190 |
|
5190 |
|
| 5191 |
#ifndef NO_GetMainEventQueue |
5191 |
#ifndef NO_GetItemMark |
| 5192 |
JNIEXPORT jint JNICALL OS_NATIVE(GetMainEventQueue) |
5192 |
JNIEXPORT void JNICALL OS_NATIVE(GetItemMark) |
| 5193 |
(JNIEnv *env, jclass that) |
5193 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshortArray arg2) |
| 5194 |
{ |
5194 |
{ |
| 5195 |
jint rc = 0; |
5195 |
jshort *lparg2=NULL; |
| 5196 |
OS_NATIVE_ENTER(env, that, GetMainEventQueue_FUNC); |
5196 |
OS_NATIVE_ENTER(env, that, GetItemMark_FUNC); |
| 5197 |
rc = (jint)GetMainEventQueue(); |
5197 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 5198 |
OS_NATIVE_EXIT(env, that, GetMainEventQueue_FUNC); |
5198 |
GetItemMark((MenuRef)arg0, arg1, lparg2); |
| 5199 |
return rc; |
5199 |
fail: |
| 5200 |
} |
5200 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
| 5201 |
#endif |
5201 |
OS_NATIVE_EXIT(env, that, GetItemMark_FUNC); |
| 5202 |
|
5202 |
} |
| 5203 |
#ifndef NO_GetMenuCommandMark |
5203 |
#endif |
| 5204 |
JNIEXPORT jint JNICALL OS_NATIVE(GetMenuCommandMark) |
5204 |
|
| 5205 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jcharArray arg2) |
5205 |
#ifndef NO_GetKeyboardFocus |
| 5206 |
{ |
5206 |
JNIEXPORT jint JNICALL OS_NATIVE(GetKeyboardFocus) |
| 5207 |
jchar *lparg2=NULL; |
5207 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 5208 |
jint rc = 0; |
5208 |
{ |
| 5209 |
OS_NATIVE_ENTER(env, that, GetMenuCommandMark_FUNC); |
5209 |
jint *lparg1=NULL; |
| 5210 |
if (arg2) if ((lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL)) == NULL) goto fail; |
5210 |
jint rc = 0; |
| 5211 |
rc = (jint)GetMenuCommandMark((MenuRef)arg0, (MenuCommand)arg1, (UniChar *)lparg2); |
5211 |
OS_NATIVE_ENTER(env, that, GetKeyboardFocus_FUNC); |
| 5212 |
fail: |
5212 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 5213 |
if (arg2 && lparg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0); |
5213 |
rc = (jint)GetKeyboardFocus((WindowRef)arg0, (ControlRef *)lparg1); |
| 5214 |
OS_NATIVE_EXIT(env, that, GetMenuCommandMark_FUNC); |
5214 |
fail: |
| 5215 |
return rc; |
5215 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 5216 |
} |
5216 |
OS_NATIVE_EXIT(env, that, GetKeyboardFocus_FUNC); |
| 5217 |
#endif |
5217 |
return rc; |
| 5218 |
|
5218 |
} |
| 5219 |
#ifndef NO_GetMenuEventTarget |
5219 |
#endif |
| 5220 |
JNIEXPORT jint JNICALL OS_NATIVE(GetMenuEventTarget) |
5220 |
|
| 5221 |
(JNIEnv *env, jclass that, jint arg0) |
5221 |
#ifndef NO_GetLastUserEventTime |
| 5222 |
{ |
5222 |
JNIEXPORT jdouble JNICALL OS_NATIVE(GetLastUserEventTime) |
| 5223 |
jint rc = 0; |
5223 |
(JNIEnv *env, jclass that) |
| 5224 |
OS_NATIVE_ENTER(env, that, GetMenuEventTarget_FUNC); |
5224 |
{ |
| 5225 |
rc = (jint)GetMenuEventTarget((MenuRef)arg0); |
5225 |
jdouble rc = 0; |
| 5226 |
OS_NATIVE_EXIT(env, that, GetMenuEventTarget_FUNC); |
5226 |
OS_NATIVE_ENTER(env, that, GetLastUserEventTime_FUNC); |
| 5227 |
return rc; |
5227 |
rc = (jdouble)GetLastUserEventTime(); |
| 5228 |
} |
5228 |
OS_NATIVE_EXIT(env, that, GetLastUserEventTime_FUNC); |
| 5229 |
#endif |
5229 |
return rc; |
| 5230 |
|
5230 |
} |
| 5231 |
#ifndef NO_GetMenuFont |
5231 |
#endif |
| 5232 |
JNIEXPORT jint JNICALL OS_NATIVE(GetMenuFont) |
5232 |
|
| 5233 |
(JNIEnv *env, jclass that, jint arg0, jshortArray arg1, jshortArray arg2) |
5233 |
#ifndef NO_GetMBarHeight |
| 5234 |
{ |
5234 |
JNIEXPORT jint JNICALL OS_NATIVE(GetMBarHeight) |
| 5235 |
jshort *lparg1=NULL; |
5235 |
(JNIEnv *env, jclass that) |
| 5236 |
jshort *lparg2=NULL; |
5236 |
{ |
| 5237 |
jint rc = 0; |
5237 |
jint rc = 0; |
| 5238 |
OS_NATIVE_ENTER(env, that, GetMenuFont_FUNC); |
5238 |
OS_NATIVE_ENTER(env, that, GetMBarHeight_FUNC); |
| 5239 |
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail; |
5239 |
rc = (jint)GetMBarHeight(); |
| 5240 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
5240 |
OS_NATIVE_EXIT(env, that, GetMBarHeight_FUNC); |
| 5241 |
rc = (jint)GetMenuFont((MenuRef)arg0, (SInt16 *)lparg1, (UInt16 *)lparg2); |
5241 |
return rc; |
| 5242 |
fail: |
5242 |
} |
| 5243 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
5243 |
#endif |
| 5244 |
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0); |
5244 |
|
| 5245 |
OS_NATIVE_EXIT(env, that, GetMenuFont_FUNC); |
5245 |
#ifndef NO_GetMainDevice |
| 5246 |
return rc; |
5246 |
JNIEXPORT jint JNICALL OS_NATIVE(GetMainDevice) |
| 5247 |
} |
5247 |
(JNIEnv *env, jclass that) |
| 5248 |
#endif |
5248 |
{ |
| 5249 |
|
5249 |
jint rc = 0; |
| 5250 |
#ifndef NO_GetMenuHeight |
5250 |
OS_NATIVE_ENTER(env, that, GetMainDevice_FUNC); |
| 5251 |
JNIEXPORT jshort JNICALL OS_NATIVE(GetMenuHeight) |
5251 |
rc = (jint)GetMainDevice(); |
| 5252 |
(JNIEnv *env, jclass that, jint arg0) |
5252 |
OS_NATIVE_EXIT(env, that, GetMainDevice_FUNC); |
| 5253 |
{ |
5253 |
return rc; |
| 5254 |
jshort rc = 0; |
5254 |
} |
| 5255 |
OS_NATIVE_ENTER(env, that, GetMenuHeight_FUNC); |
5255 |
#endif |
| 5256 |
rc = (jshort)GetMenuHeight((MenuRef)arg0); |
5256 |
|
| 5257 |
OS_NATIVE_EXIT(env, that, GetMenuHeight_FUNC); |
5257 |
#ifndef NO_GetMainEventQueue |
| 5258 |
return rc; |
5258 |
JNIEXPORT jint JNICALL OS_NATIVE(GetMainEventQueue) |
| 5259 |
} |
5259 |
(JNIEnv *env, jclass that) |
| 5260 |
#endif |
5260 |
{ |
| 5261 |
|
5261 |
jint rc = 0; |
| 5262 |
#ifndef NO_GetMenuID |
5262 |
OS_NATIVE_ENTER(env, that, GetMainEventQueue_FUNC); |
| 5263 |
JNIEXPORT jshort JNICALL OS_NATIVE(GetMenuID) |
5263 |
rc = (jint)GetMainEventQueue(); |
| 5264 |
(JNIEnv *env, jclass that, jint arg0) |
5264 |
OS_NATIVE_EXIT(env, that, GetMainEventQueue_FUNC); |
| 5265 |
{ |
5265 |
return rc; |
| 5266 |
jshort rc = 0; |
5266 |
} |
| 5267 |
OS_NATIVE_ENTER(env, that, GetMenuID_FUNC); |
5267 |
#endif |
| 5268 |
rc = (jshort)GetMenuID((MenuRef)arg0); |
5268 |
|
| 5269 |
OS_NATIVE_EXIT(env, that, GetMenuID_FUNC); |
5269 |
#ifndef NO_GetMenuCommandMark |
| 5270 |
return rc; |
5270 |
JNIEXPORT jint JNICALL OS_NATIVE(GetMenuCommandMark) |
| 5271 |
} |
5271 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jcharArray arg2) |
| 5272 |
#endif |
5272 |
{ |
| 5273 |
|
5273 |
jchar *lparg2=NULL; |
| 5274 |
#ifndef NO_GetMenuItemCommandID |
5274 |
jint rc = 0; |
| 5275 |
JNIEXPORT jint JNICALL OS_NATIVE(GetMenuItemCommandID) |
5275 |
OS_NATIVE_ENTER(env, that, GetMenuCommandMark_FUNC); |
| 5276 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jintArray arg2) |
5276 |
if (arg2) if ((lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 5277 |
{ |
5277 |
rc = (jint)GetMenuCommandMark((MenuRef)arg0, (MenuCommand)arg1, (UniChar *)lparg2); |
| 5278 |
jint *lparg2=NULL; |
5278 |
fail: |
| 5279 |
jint rc = 0; |
5279 |
if (arg2 && lparg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0); |
| 5280 |
OS_NATIVE_ENTER(env, that, GetMenuItemCommandID_FUNC); |
5280 |
OS_NATIVE_EXIT(env, that, GetMenuCommandMark_FUNC); |
| 5281 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
5281 |
return rc; |
| 5282 |
rc = (jint)GetMenuItemCommandID((MenuRef)arg0, (SInt16)arg1, (MenuCommand *)lparg2); |
5282 |
} |
| 5283 |
fail: |
5283 |
#endif |
| 5284 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
5284 |
|
| 5285 |
OS_NATIVE_EXIT(env, that, GetMenuItemCommandID_FUNC); |
5285 |
#ifndef NO_GetMenuEventTarget |
| 5286 |
return rc; |
5286 |
JNIEXPORT jint JNICALL OS_NATIVE(GetMenuEventTarget) |
| 5287 |
} |
5287 |
(JNIEnv *env, jclass that, jint arg0) |
| 5288 |
#endif |
5288 |
{ |
| 5289 |
|
5289 |
jint rc = 0; |
| 5290 |
#ifndef NO_GetMenuItemHierarchicalMenu |
5290 |
OS_NATIVE_ENTER(env, that, GetMenuEventTarget_FUNC); |
| 5291 |
JNIEXPORT jint JNICALL OS_NATIVE(GetMenuItemHierarchicalMenu) |
5291 |
rc = (jint)GetMenuEventTarget((MenuRef)arg0); |
| 5292 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jintArray arg2) |
5292 |
OS_NATIVE_EXIT(env, that, GetMenuEventTarget_FUNC); |
| 5293 |
{ |
5293 |
return rc; |
| 5294 |
jint *lparg2=NULL; |
5294 |
} |
| 5295 |
jint rc = 0; |
5295 |
#endif |
| 5296 |
OS_NATIVE_ENTER(env, that, GetMenuItemHierarchicalMenu_FUNC); |
5296 |
|
| 5297 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
5297 |
#ifndef NO_GetMenuFont |
| 5298 |
rc = (jint)GetMenuItemHierarchicalMenu((MenuRef)arg0, (SInt16)arg1, (MenuRef *)lparg2); |
5298 |
JNIEXPORT jint JNICALL OS_NATIVE(GetMenuFont) |
| 5299 |
fail: |
5299 |
(JNIEnv *env, jclass that, jint arg0, jshortArray arg1, jshortArray arg2) |
| 5300 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
5300 |
{ |
| 5301 |
OS_NATIVE_EXIT(env, that, GetMenuItemHierarchicalMenu_FUNC); |
5301 |
jshort *lparg1=NULL; |
| 5302 |
return rc; |
5302 |
jshort *lparg2=NULL; |
| 5303 |
} |
5303 |
jint rc = 0; |
| 5304 |
#endif |
5304 |
OS_NATIVE_ENTER(env, that, GetMenuFont_FUNC); |
| 5305 |
|
5305 |
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 5306 |
#ifndef NO_GetMenuItemRefCon |
5306 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 5307 |
JNIEXPORT jint JNICALL OS_NATIVE(GetMenuItemRefCon) |
5307 |
rc = (jint)GetMenuFont((MenuRef)arg0, (SInt16 *)lparg1, (UInt16 *)lparg2); |
| 5308 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jintArray arg2) |
5308 |
fail: |
| 5309 |
{ |
5309 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
| 5310 |
jint *lparg2=NULL; |
5310 |
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0); |
| 5311 |
jint rc = 0; |
5311 |
OS_NATIVE_EXIT(env, that, GetMenuFont_FUNC); |
| 5312 |
OS_NATIVE_ENTER(env, that, GetMenuItemRefCon_FUNC); |
5312 |
return rc; |
| 5313 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
5313 |
} |
| 5314 |
rc = (jint)GetMenuItemRefCon((MenuRef)arg0, (SInt16)arg1, (UInt32 *)lparg2); |
5314 |
#endif |
| 5315 |
fail: |
5315 |
|
| 5316 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
5316 |
#ifndef NO_GetMenuHeight |
| 5317 |
OS_NATIVE_EXIT(env, that, GetMenuItemRefCon_FUNC); |
5317 |
JNIEXPORT jshort JNICALL OS_NATIVE(GetMenuHeight) |
| 5318 |
return rc; |
5318 |
(JNIEnv *env, jclass that, jint arg0) |
| 5319 |
} |
5319 |
{ |
| 5320 |
#endif |
5320 |
jshort rc = 0; |
| 5321 |
|
5321 |
OS_NATIVE_ENTER(env, that, GetMenuHeight_FUNC); |
| 5322 |
#ifndef NO_GetMenuTrackingData |
5322 |
rc = (jshort)GetMenuHeight((MenuRef)arg0); |
| 5323 |
JNIEXPORT jint JNICALL OS_NATIVE(GetMenuTrackingData) |
5323 |
OS_NATIVE_EXIT(env, that, GetMenuHeight_FUNC); |
| 5324 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
5324 |
return rc; |
| 5325 |
{ |
5325 |
} |
| 5326 |
MenuTrackingData _arg1, *lparg1=NULL; |
5326 |
#endif |
| 5327 |
jint rc = 0; |
5327 |
|
| 5328 |
OS_NATIVE_ENTER(env, that, GetMenuTrackingData_FUNC); |
5328 |
#ifndef NO_GetMenuID |
| 5329 |
if (arg1) if ((lparg1 = getMenuTrackingDataFields(env, arg1, &_arg1)) == NULL) goto fail; |
5329 |
JNIEXPORT jshort JNICALL OS_NATIVE(GetMenuID) |
| 5330 |
rc = (jint)GetMenuTrackingData((MenuRef)arg0, lparg1); |
5330 |
(JNIEnv *env, jclass that, jint arg0) |
| 5331 |
fail: |
5331 |
{ |
| 5332 |
if (arg1 && lparg1) setMenuTrackingDataFields(env, arg1, lparg1); |
5332 |
jshort rc = 0; |
| 5333 |
OS_NATIVE_EXIT(env, that, GetMenuTrackingData_FUNC); |
5333 |
OS_NATIVE_ENTER(env, that, GetMenuID_FUNC); |
| 5334 |
return rc; |
5334 |
rc = (jshort)GetMenuID((MenuRef)arg0); |
| 5335 |
} |
5335 |
OS_NATIVE_EXIT(env, that, GetMenuID_FUNC); |
| 5336 |
#endif |
5336 |
return rc; |
| 5337 |
|
5337 |
} |
| 5338 |
#ifndef NO_GetMenuWidth |
5338 |
#endif |
| 5339 |
JNIEXPORT jshort JNICALL OS_NATIVE(GetMenuWidth) |
5339 |
|
| 5340 |
(JNIEnv *env, jclass that, jint arg0) |
5340 |
#ifndef NO_GetMenuItemCommandID |
| 5341 |
{ |
5341 |
JNIEXPORT jint JNICALL OS_NATIVE(GetMenuItemCommandID) |
| 5342 |
jshort rc = 0; |
5342 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jintArray arg2) |
| 5343 |
OS_NATIVE_ENTER(env, that, GetMenuWidth_FUNC); |
5343 |
{ |
| 5344 |
rc = (jshort)GetMenuWidth((MenuRef)arg0); |
5344 |
jint *lparg2=NULL; |
| 5345 |
OS_NATIVE_EXIT(env, that, GetMenuWidth_FUNC); |
5345 |
jint rc = 0; |
| 5346 |
return rc; |
5346 |
OS_NATIVE_ENTER(env, that, GetMenuItemCommandID_FUNC); |
| 5347 |
} |
5347 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 5348 |
#endif |
5348 |
rc = (jint)GetMenuItemCommandID((MenuRef)arg0, (SInt16)arg1, (MenuCommand *)lparg2); |
| 5349 |
|
5349 |
fail: |
| 5350 |
#ifndef NO_GetMouse |
5350 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 5351 |
JNIEXPORT void JNICALL OS_NATIVE(GetMouse) |
5351 |
OS_NATIVE_EXIT(env, that, GetMenuItemCommandID_FUNC); |
| 5352 |
(JNIEnv *env, jclass that, jobject arg0) |
5352 |
return rc; |
| 5353 |
{ |
5353 |
} |
| 5354 |
Point _arg0, *lparg0=NULL; |
5354 |
#endif |
| 5355 |
OS_NATIVE_ENTER(env, that, GetMouse_FUNC); |
5355 |
|
| 5356 |
if (arg0) if ((lparg0 = getPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
5356 |
#ifndef NO_GetMenuItemHierarchicalMenu |
| 5357 |
GetMouse((Point *)lparg0); |
5357 |
JNIEXPORT jint JNICALL OS_NATIVE(GetMenuItemHierarchicalMenu) |
| 5358 |
fail: |
5358 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jintArray arg2) |
| 5359 |
if (arg0 && lparg0) setPointFields(env, arg0, lparg0); |
5359 |
{ |
| 5360 |
OS_NATIVE_EXIT(env, that, GetMouse_FUNC); |
5360 |
jint *lparg2=NULL; |
| 5361 |
} |
5361 |
jint rc = 0; |
| 5362 |
#endif |
5362 |
OS_NATIVE_ENTER(env, that, GetMenuItemHierarchicalMenu_FUNC); |
| 5363 |
|
5363 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 5364 |
#ifndef NO_GetNextDevice |
5364 |
rc = (jint)GetMenuItemHierarchicalMenu((MenuRef)arg0, (SInt16)arg1, (MenuRef *)lparg2); |
| 5365 |
JNIEXPORT jint JNICALL OS_NATIVE(GetNextDevice) |
5365 |
fail: |
| 5366 |
(JNIEnv *env, jclass that, jint arg0) |
5366 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 5367 |
{ |
5367 |
OS_NATIVE_EXIT(env, that, GetMenuItemHierarchicalMenu_FUNC); |
| 5368 |
jint rc = 0; |
5368 |
return rc; |
| 5369 |
OS_NATIVE_ENTER(env, that, GetNextDevice_FUNC); |
5369 |
} |
| 5370 |
rc = (jint)GetNextDevice((GDHandle)arg0); |
5370 |
#endif |
| 5371 |
OS_NATIVE_EXIT(env, that, GetNextDevice_FUNC); |
5371 |
|
| 5372 |
return rc; |
5372 |
#ifndef NO_GetMenuItemRefCon |
| 5373 |
} |
5373 |
JNIEXPORT jint JNICALL OS_NATIVE(GetMenuItemRefCon) |
| 5374 |
#endif |
5374 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jintArray arg2) |
| 5375 |
|
5375 |
{ |
| 5376 |
#ifndef NO_GetPixBounds |
5376 |
jint *lparg2=NULL; |
| 5377 |
JNIEXPORT void JNICALL OS_NATIVE(GetPixBounds) |
5377 |
jint rc = 0; |
| 5378 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
5378 |
OS_NATIVE_ENTER(env, that, GetMenuItemRefCon_FUNC); |
| 5379 |
{ |
5379 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 5380 |
Rect _arg1, *lparg1=NULL; |
5380 |
rc = (jint)GetMenuItemRefCon((MenuRef)arg0, (SInt16)arg1, (UInt32 *)lparg2); |
| 5381 |
OS_NATIVE_ENTER(env, that, GetPixBounds_FUNC); |
5381 |
fail: |
| 5382 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
5382 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 5383 |
GetPixBounds((PixMapHandle)arg0, (Rect *)lparg1); |
5383 |
OS_NATIVE_EXIT(env, that, GetMenuItemRefCon_FUNC); |
| 5384 |
fail: |
5384 |
return rc; |
| 5385 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
5385 |
} |
| 5386 |
OS_NATIVE_EXIT(env, that, GetPixBounds_FUNC); |
5386 |
#endif |
| 5387 |
} |
5387 |
|
| 5388 |
#endif |
5388 |
#ifndef NO_GetMenuTrackingData |
| 5389 |
|
5389 |
JNIEXPORT jint JNICALL OS_NATIVE(GetMenuTrackingData) |
| 5390 |
#ifndef NO_GetPixDepth |
5390 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 5391 |
JNIEXPORT jshort JNICALL OS_NATIVE(GetPixDepth) |
5391 |
{ |
| 5392 |
(JNIEnv *env, jclass that, jint arg0) |
5392 |
MenuTrackingData _arg1, *lparg1=NULL; |
| 5393 |
{ |
5393 |
jint rc = 0; |
| 5394 |
jshort rc = 0; |
5394 |
OS_NATIVE_ENTER(env, that, GetMenuTrackingData_FUNC); |
| 5395 |
OS_NATIVE_ENTER(env, that, GetPixDepth_FUNC); |
5395 |
if (arg1) if ((lparg1 = getMenuTrackingDataFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 5396 |
rc = (jshort)GetPixDepth((PixMapHandle)arg0); |
5396 |
rc = (jint)GetMenuTrackingData((MenuRef)arg0, lparg1); |
| 5397 |
OS_NATIVE_EXIT(env, that, GetPixDepth_FUNC); |
5397 |
fail: |
| 5398 |
return rc; |
5398 |
if (arg1 && lparg1) setMenuTrackingDataFields(env, arg1, lparg1); |
| 5399 |
} |
5399 |
OS_NATIVE_EXIT(env, that, GetMenuTrackingData_FUNC); |
| 5400 |
#endif |
5400 |
return rc; |
| 5401 |
|
5401 |
} |
| 5402 |
#ifndef NO_GetPort |
5402 |
#endif |
| 5403 |
JNIEXPORT void JNICALL OS_NATIVE(GetPort) |
5403 |
|
| 5404 |
(JNIEnv *env, jclass that, jintArray arg0) |
5404 |
#ifndef NO_GetMenuWidth |
| 5405 |
{ |
5405 |
JNIEXPORT jshort JNICALL OS_NATIVE(GetMenuWidth) |
| 5406 |
jint *lparg0=NULL; |
5406 |
(JNIEnv *env, jclass that, jint arg0) |
| 5407 |
OS_NATIVE_ENTER(env, that, GetPort_FUNC); |
5407 |
{ |
| 5408 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
5408 |
jshort rc = 0; |
| 5409 |
GetPort((GrafPtr *)lparg0); |
5409 |
OS_NATIVE_ENTER(env, that, GetMenuWidth_FUNC); |
| 5410 |
fail: |
5410 |
rc = (jshort)GetMenuWidth((MenuRef)arg0); |
| 5411 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
5411 |
OS_NATIVE_EXIT(env, that, GetMenuWidth_FUNC); |
| 5412 |
OS_NATIVE_EXIT(env, that, GetPort_FUNC); |
5412 |
return rc; |
| 5413 |
} |
5413 |
} |
| 5414 |
#endif |
5414 |
#endif |
| 5415 |
|
5415 |
|
| 5416 |
#ifndef NO_GetPortBitMapForCopyBits |
5416 |
#ifndef NO_GetMouse |
| 5417 |
JNIEXPORT jint JNICALL OS_NATIVE(GetPortBitMapForCopyBits) |
5417 |
JNIEXPORT void JNICALL OS_NATIVE(GetMouse) |
| 5418 |
(JNIEnv *env, jclass that, jint arg0) |
5418 |
(JNIEnv *env, jclass that, jobject arg0) |
| 5419 |
{ |
5419 |
{ |
| 5420 |
jint rc = 0; |
5420 |
Point _arg0, *lparg0=NULL; |
| 5421 |
OS_NATIVE_ENTER(env, that, GetPortBitMapForCopyBits_FUNC); |
5421 |
OS_NATIVE_ENTER(env, that, GetMouse_FUNC); |
| 5422 |
rc = (jint)GetPortBitMapForCopyBits((CGrafPtr)arg0); |
5422 |
if (arg0) if ((lparg0 = getPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 5423 |
OS_NATIVE_EXIT(env, that, GetPortBitMapForCopyBits_FUNC); |
5423 |
GetMouse((Point *)lparg0); |
| 5424 |
return rc; |
5424 |
fail: |
| 5425 |
} |
5425 |
if (arg0 && lparg0) setPointFields(env, arg0, lparg0); |
| 5426 |
#endif |
5426 |
OS_NATIVE_EXIT(env, that, GetMouse_FUNC); |
| 5427 |
|
5427 |
} |
| 5428 |
#ifndef NO_GetPortBounds |
5428 |
#endif |
| 5429 |
JNIEXPORT void JNICALL OS_NATIVE(GetPortBounds) |
5429 |
|
| 5430 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
5430 |
#ifndef NO_GetNextDevice |
| 5431 |
{ |
5431 |
JNIEXPORT jint JNICALL OS_NATIVE(GetNextDevice) |
| 5432 |
Rect _arg1, *lparg1=NULL; |
5432 |
(JNIEnv *env, jclass that, jint arg0) |
| 5433 |
OS_NATIVE_ENTER(env, that, GetPortBounds_FUNC); |
5433 |
{ |
| 5434 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
5434 |
jint rc = 0; |
| 5435 |
GetPortBounds((CGrafPtr)arg0, (Rect *)lparg1); |
5435 |
OS_NATIVE_ENTER(env, that, GetNextDevice_FUNC); |
| 5436 |
fail: |
5436 |
rc = (jint)GetNextDevice((GDHandle)arg0); |
| 5437 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
5437 |
OS_NATIVE_EXIT(env, that, GetNextDevice_FUNC); |
| 5438 |
OS_NATIVE_EXIT(env, that, GetPortBounds_FUNC); |
5438 |
return rc; |
| 5439 |
} |
5439 |
} |
| 5440 |
#endif |
5440 |
#endif |
| 5441 |
|
5441 |
|
| 5442 |
#ifndef NO_GetPortClipRegion |
5442 |
#ifndef NO_GetPixBounds |
| 5443 |
JNIEXPORT void JNICALL OS_NATIVE(GetPortClipRegion) |
5443 |
JNIEXPORT void JNICALL OS_NATIVE(GetPixBounds) |
| 5444 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
5444 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 5445 |
{ |
5445 |
{ |
| 5446 |
OS_NATIVE_ENTER(env, that, GetPortClipRegion_FUNC); |
5446 |
Rect _arg1, *lparg1=NULL; |
| 5447 |
GetPortClipRegion((CGrafPtr)arg0, (RgnHandle)arg1); |
5447 |
OS_NATIVE_ENTER(env, that, GetPixBounds_FUNC); |
| 5448 |
OS_NATIVE_EXIT(env, that, GetPortClipRegion_FUNC); |
5448 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 5449 |
} |
5449 |
GetPixBounds((PixMapHandle)arg0, (Rect *)lparg1); |
| 5450 |
#endif |
5450 |
fail: |
| 5451 |
|
5451 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 5452 |
#ifndef NO_GetPortVisibleRegion |
5452 |
OS_NATIVE_EXIT(env, that, GetPixBounds_FUNC); |
| 5453 |
JNIEXPORT jint JNICALL OS_NATIVE(GetPortVisibleRegion) |
5453 |
} |
| 5454 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
5454 |
#endif |
| 5455 |
{ |
5455 |
|
| 5456 |
jint rc = 0; |
5456 |
#ifndef NO_GetPixDepth |
| 5457 |
OS_NATIVE_ENTER(env, that, GetPortVisibleRegion_FUNC); |
5457 |
JNIEXPORT jshort JNICALL OS_NATIVE(GetPixDepth) |
| 5458 |
rc = (jint)GetPortVisibleRegion((CGrafPtr)arg0, (RgnHandle)arg1); |
5458 |
(JNIEnv *env, jclass that, jint arg0) |
| 5459 |
OS_NATIVE_EXIT(env, that, GetPortVisibleRegion_FUNC); |
5459 |
{ |
| 5460 |
return rc; |
5460 |
jshort rc = 0; |
| 5461 |
} |
5461 |
OS_NATIVE_ENTER(env, that, GetPixDepth_FUNC); |
| 5462 |
#endif |
5462 |
rc = (jshort)GetPixDepth((PixMapHandle)arg0); |
| 5463 |
|
5463 |
OS_NATIVE_EXIT(env, that, GetPixDepth_FUNC); |
| 5464 |
#ifndef NO_GetPreviousWindow |
5464 |
return rc; |
| 5465 |
JNIEXPORT jint JNICALL OS_NATIVE(GetPreviousWindow) |
5465 |
} |
| 5466 |
(JNIEnv *env, jclass that, jint arg0) |
5466 |
#endif |
| 5467 |
{ |
5467 |
|
| 5468 |
jint rc = 0; |
5468 |
#ifndef NO_GetPort |
| 5469 |
OS_NATIVE_ENTER(env, that, GetPreviousWindow_FUNC); |
5469 |
JNIEXPORT void JNICALL OS_NATIVE(GetPort) |
| 5470 |
rc = (jint)GetPreviousWindow((WindowRef)arg0); |
5470 |
(JNIEnv *env, jclass that, jintArray arg0) |
| 5471 |
OS_NATIVE_EXIT(env, that, GetPreviousWindow_FUNC); |
5471 |
{ |
| 5472 |
return rc; |
5472 |
jint *lparg0=NULL; |
| 5473 |
} |
5473 |
OS_NATIVE_ENTER(env, that, GetPort_FUNC); |
| 5474 |
#endif |
5474 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 5475 |
|
5475 |
GetPort((GrafPtr *)lparg0); |
| 5476 |
#ifndef NO_GetPtrSize |
5476 |
fail: |
| 5477 |
JNIEXPORT jint JNICALL OS_NATIVE(GetPtrSize) |
5477 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 5478 |
(JNIEnv *env, jclass that, jint arg0) |
5478 |
OS_NATIVE_EXIT(env, that, GetPort_FUNC); |
| 5479 |
{ |
5479 |
} |
| 5480 |
jint rc = 0; |
5480 |
#endif |
| 5481 |
OS_NATIVE_ENTER(env, that, GetPtrSize_FUNC); |
5481 |
|
| 5482 |
rc = (jint)GetPtrSize((Ptr)arg0); |
5482 |
#ifndef NO_GetPortBitMapForCopyBits |
| 5483 |
OS_NATIVE_EXIT(env, that, GetPtrSize_FUNC); |
5483 |
JNIEXPORT jint JNICALL OS_NATIVE(GetPortBitMapForCopyBits) |
| 5484 |
return rc; |
5484 |
(JNIEnv *env, jclass that, jint arg0) |
| 5485 |
} |
5485 |
{ |
| 5486 |
#endif |
5486 |
jint rc = 0; |
| 5487 |
|
5487 |
OS_NATIVE_ENTER(env, that, GetPortBitMapForCopyBits_FUNC); |
| 5488 |
#ifndef NO_GetRegionBounds |
5488 |
rc = (jint)GetPortBitMapForCopyBits((CGrafPtr)arg0); |
| 5489 |
JNIEXPORT void JNICALL OS_NATIVE(GetRegionBounds) |
5489 |
OS_NATIVE_EXIT(env, that, GetPortBitMapForCopyBits_FUNC); |
| 5490 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
5490 |
return rc; |
| 5491 |
{ |
5491 |
} |
| 5492 |
Rect _arg1, *lparg1=NULL; |
5492 |
#endif |
| 5493 |
OS_NATIVE_ENTER(env, that, GetRegionBounds_FUNC); |
5493 |
|
| 5494 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
5494 |
#ifndef NO_GetPortBounds |
| 5495 |
GetRegionBounds((RgnHandle)arg0, (Rect *)lparg1); |
5495 |
JNIEXPORT void JNICALL OS_NATIVE(GetPortBounds) |
| 5496 |
fail: |
5496 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 5497 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
5497 |
{ |
| 5498 |
OS_NATIVE_EXIT(env, that, GetRegionBounds_FUNC); |
5498 |
Rect _arg1, *lparg1=NULL; |
| 5499 |
} |
5499 |
OS_NATIVE_ENTER(env, that, GetPortBounds_FUNC); |
| 5500 |
#endif |
5500 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 5501 |
|
5501 |
GetPortBounds((CGrafPtr)arg0, (Rect *)lparg1); |
| 5502 |
#ifndef NO_GetRootControl |
5502 |
fail: |
| 5503 |
JNIEXPORT jint JNICALL OS_NATIVE(GetRootControl) |
5503 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 5504 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
5504 |
OS_NATIVE_EXIT(env, that, GetPortBounds_FUNC); |
| 5505 |
{ |
5505 |
} |
| 5506 |
jint *lparg1=NULL; |
5506 |
#endif |
| 5507 |
jint rc = 0; |
5507 |
|
| 5508 |
OS_NATIVE_ENTER(env, that, GetRootControl_FUNC); |
5508 |
#ifndef NO_GetPortClipRegion |
| 5509 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
5509 |
JNIEXPORT void JNICALL OS_NATIVE(GetPortClipRegion) |
| 5510 |
rc = (jint)GetRootControl((WindowRef)arg0, (ControlRef *)lparg1); |
5510 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 5511 |
fail: |
5511 |
{ |
| 5512 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
5512 |
OS_NATIVE_ENTER(env, that, GetPortClipRegion_FUNC); |
| 5513 |
OS_NATIVE_EXIT(env, that, GetRootControl_FUNC); |
5513 |
GetPortClipRegion((CGrafPtr)arg0, (RgnHandle)arg1); |
| 5514 |
return rc; |
5514 |
OS_NATIVE_EXIT(env, that, GetPortClipRegion_FUNC); |
| 5515 |
} |
5515 |
} |
| 5516 |
#endif |
5516 |
#endif |
| 5517 |
|
5517 |
|
| 5518 |
#ifndef NO_GetScrapFlavorCount |
5518 |
#ifndef NO_GetPortVisibleRegion |
| 5519 |
JNIEXPORT jint JNICALL OS_NATIVE(GetScrapFlavorCount) |
5519 |
JNIEXPORT jint JNICALL OS_NATIVE(GetPortVisibleRegion) |
| 5520 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
5520 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 5521 |
{ |
5521 |
{ |
| 5522 |
jint *lparg1=NULL; |
5522 |
jint rc = 0; |
| 5523 |
jint rc = 0; |
5523 |
OS_NATIVE_ENTER(env, that, GetPortVisibleRegion_FUNC); |
| 5524 |
OS_NATIVE_ENTER(env, that, GetScrapFlavorCount_FUNC); |
5524 |
rc = (jint)GetPortVisibleRegion((CGrafPtr)arg0, (RgnHandle)arg1); |
| 5525 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
5525 |
OS_NATIVE_EXIT(env, that, GetPortVisibleRegion_FUNC); |
| 5526 |
rc = (jint)GetScrapFlavorCount((ScrapRef)arg0, (UInt32 *)lparg1); |
5526 |
return rc; |
| 5527 |
fail: |
5527 |
} |
| 5528 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
5528 |
#endif |
| 5529 |
OS_NATIVE_EXIT(env, that, GetScrapFlavorCount_FUNC); |
5529 |
|
| 5530 |
return rc; |
5530 |
#ifndef NO_GetPreviousWindow |
| 5531 |
} |
5531 |
JNIEXPORT jint JNICALL OS_NATIVE(GetPreviousWindow) |
| 5532 |
#endif |
5532 |
(JNIEnv *env, jclass that, jint arg0) |
| 5533 |
|
5533 |
{ |
| 5534 |
#ifndef NO_GetScrapFlavorData__II_3I_3B |
5534 |
jint rc = 0; |
| 5535 |
JNIEXPORT jint JNICALL OS_NATIVE(GetScrapFlavorData__II_3I_3B) |
5535 |
OS_NATIVE_ENTER(env, that, GetPreviousWindow_FUNC); |
| 5536 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2, jbyteArray arg3) |
5536 |
rc = (jint)GetPreviousWindow((WindowRef)arg0); |
| 5537 |
{ |
5537 |
OS_NATIVE_EXIT(env, that, GetPreviousWindow_FUNC); |
| 5538 |
jint *lparg2=NULL; |
5538 |
return rc; |
| 5539 |
jbyte *lparg3=NULL; |
5539 |
} |
| 5540 |
jint rc = 0; |
5540 |
#endif |
| 5541 |
OS_NATIVE_ENTER(env, that, GetScrapFlavorData__II_3I_3B_FUNC); |
5541 |
|
| 5542 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
5542 |
#ifndef NO_GetPtrSize |
| 5543 |
if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail; |
5543 |
JNIEXPORT jint JNICALL OS_NATIVE(GetPtrSize) |
| 5544 |
rc = (jint)GetScrapFlavorData((ScrapRef)arg0, (ScrapFlavorType)arg1, (Size *)lparg2, (void *)lparg3); |
5544 |
(JNIEnv *env, jclass that, jint arg0) |
| 5545 |
fail: |
5545 |
{ |
| 5546 |
if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0); |
5546 |
jint rc = 0; |
| 5547 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
5547 |
OS_NATIVE_ENTER(env, that, GetPtrSize_FUNC); |
| 5548 |
OS_NATIVE_EXIT(env, that, GetScrapFlavorData__II_3I_3B_FUNC); |
5548 |
rc = (jint)GetPtrSize((Ptr)arg0); |
| 5549 |
return rc; |
5549 |
OS_NATIVE_EXIT(env, that, GetPtrSize_FUNC); |
| 5550 |
} |
5550 |
return rc; |
| 5551 |
#endif |
5551 |
} |
| 5552 |
|
5552 |
#endif |
| 5553 |
#ifndef NO_GetScrapFlavorData__II_3I_3C |
5553 |
|
| 5554 |
JNIEXPORT jint JNICALL OS_NATIVE(GetScrapFlavorData__II_3I_3C) |
5554 |
#ifndef NO_GetRegionBounds |
| 5555 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2, jcharArray arg3) |
5555 |
JNIEXPORT void JNICALL OS_NATIVE(GetRegionBounds) |
| 5556 |
{ |
5556 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 5557 |
jint *lparg2=NULL; |
5557 |
{ |
| 5558 |
jchar *lparg3=NULL; |
5558 |
Rect _arg1, *lparg1=NULL; |
| 5559 |
jint rc = 0; |
5559 |
OS_NATIVE_ENTER(env, that, GetRegionBounds_FUNC); |
| 5560 |
OS_NATIVE_ENTER(env, that, GetScrapFlavorData__II_3I_3C_FUNC); |
5560 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 5561 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
5561 |
GetRegionBounds((RgnHandle)arg0, (Rect *)lparg1); |
| 5562 |
if (arg3) if ((lparg3 = (*env)->GetCharArrayElements(env, arg3, NULL)) == NULL) goto fail; |
5562 |
fail: |
| 5563 |
rc = (jint)GetScrapFlavorData((ScrapRef)arg0, (ScrapFlavorType)arg1, (Size *)lparg2, (void *)lparg3); |
5563 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 5564 |
fail: |
5564 |
OS_NATIVE_EXIT(env, that, GetRegionBounds_FUNC); |
| 5565 |
if (arg3 && lparg3) (*env)->ReleaseCharArrayElements(env, arg3, lparg3, 0); |
5565 |
} |
| 5566 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
5566 |
#endif |
| 5567 |
OS_NATIVE_EXIT(env, that, GetScrapFlavorData__II_3I_3C_FUNC); |
5567 |
|
| 5568 |
return rc; |
5568 |
#ifndef NO_GetRootControl |
| 5569 |
} |
5569 |
JNIEXPORT jint JNICALL OS_NATIVE(GetRootControl) |
| 5570 |
#endif |
5570 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 5571 |
|
5571 |
{ |
| 5572 |
#ifndef NO_GetScrapFlavorInfoList |
5572 |
jint *lparg1=NULL; |
| 5573 |
JNIEXPORT jint JNICALL OS_NATIVE(GetScrapFlavorInfoList) |
5573 |
jint rc = 0; |
| 5574 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jintArray arg2) |
5574 |
OS_NATIVE_ENTER(env, that, GetRootControl_FUNC); |
| 5575 |
{ |
5575 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 5576 |
jint *lparg1=NULL; |
5576 |
rc = (jint)GetRootControl((WindowRef)arg0, (ControlRef *)lparg1); |
| 5577 |
jint *lparg2=NULL; |
5577 |
fail: |
| 5578 |
jint rc = 0; |
5578 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 5579 |
OS_NATIVE_ENTER(env, that, GetScrapFlavorInfoList_FUNC); |
5579 |
OS_NATIVE_EXIT(env, that, GetRootControl_FUNC); |
| 5580 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
5580 |
return rc; |
| 5581 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
5581 |
} |
| 5582 |
rc = (jint)GetScrapFlavorInfoList((ScrapRef)arg0, (UInt32 *)lparg1, (ScrapFlavorInfo *)lparg2); |
5582 |
#endif |
| 5583 |
fail: |
5583 |
|
| 5584 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
5584 |
#ifndef NO_GetScrapFlavorCount |
| 5585 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
5585 |
JNIEXPORT jint JNICALL OS_NATIVE(GetScrapFlavorCount) |
| 5586 |
OS_NATIVE_EXIT(env, that, GetScrapFlavorInfoList_FUNC); |
5586 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 5587 |
return rc; |
5587 |
{ |
| 5588 |
} |
5588 |
jint *lparg1=NULL; |
| 5589 |
#endif |
5589 |
jint rc = 0; |
| 5590 |
|
5590 |
OS_NATIVE_ENTER(env, that, GetScrapFlavorCount_FUNC); |
| 5591 |
#ifndef NO_GetScrapFlavorSize |
5591 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 5592 |
JNIEXPORT jint JNICALL OS_NATIVE(GetScrapFlavorSize) |
5592 |
rc = (jint)GetScrapFlavorCount((ScrapRef)arg0, (UInt32 *)lparg1); |
| 5593 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
5593 |
fail: |
| 5594 |
{ |
5594 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 5595 |
jint *lparg2=NULL; |
5595 |
OS_NATIVE_EXIT(env, that, GetScrapFlavorCount_FUNC); |
| 5596 |
jint rc = 0; |
5596 |
return rc; |
| 5597 |
OS_NATIVE_ENTER(env, that, GetScrapFlavorSize_FUNC); |
5597 |
} |
| 5598 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
5598 |
#endif |
| 5599 |
rc = (jint)GetScrapFlavorSize((ScrapRef)arg0, (ScrapFlavorType)arg1, (Size *)lparg2); |
5599 |
|
| 5600 |
fail: |
5600 |
#ifndef NO_GetScrapFlavorData__II_3I_3B |
| 5601 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
5601 |
JNIEXPORT jint JNICALL OS_NATIVE(GetScrapFlavorData__II_3I_3B) |
| 5602 |
OS_NATIVE_EXIT(env, that, GetScrapFlavorSize_FUNC); |
5602 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2, jbyteArray arg3) |
| 5603 |
return rc; |
5603 |
{ |
| 5604 |
} |
5604 |
jint *lparg2=NULL; |
| 5605 |
#endif |
5605 |
jbyte *lparg3=NULL; |
| 5606 |
|
5606 |
jint rc = 0; |
| 5607 |
#ifndef NO_GetScriptManagerVariable |
5607 |
OS_NATIVE_ENTER(env, that, GetScrapFlavorData__II_3I_3B_FUNC); |
| 5608 |
JNIEXPORT jint JNICALL OS_NATIVE(GetScriptManagerVariable) |
5608 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 5609 |
(JNIEnv *env, jclass that, jshort arg0) |
5609 |
if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 5610 |
{ |
5610 |
rc = (jint)GetScrapFlavorData((ScrapRef)arg0, (ScrapFlavorType)arg1, (Size *)lparg2, (void *)lparg3); |
| 5611 |
jint rc = 0; |
5611 |
fail: |
| 5612 |
OS_NATIVE_ENTER(env, that, GetScriptManagerVariable_FUNC); |
5612 |
if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0); |
| 5613 |
rc = (jint)GetScriptManagerVariable(arg0); |
5613 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 5614 |
OS_NATIVE_EXIT(env, that, GetScriptManagerVariable_FUNC); |
5614 |
OS_NATIVE_EXIT(env, that, GetScrapFlavorData__II_3I_3B_FUNC); |
| 5615 |
return rc; |
5615 |
return rc; |
| 5616 |
} |
5616 |
} |
| 5617 |
#endif |
5617 |
#endif |
| 5618 |
|
5618 |
|
| 5619 |
#ifndef NO_GetSuperControl |
5619 |
#ifndef NO_GetScrapFlavorData__II_3I_3C |
| 5620 |
JNIEXPORT jint JNICALL OS_NATIVE(GetSuperControl) |
5620 |
JNIEXPORT jint JNICALL OS_NATIVE(GetScrapFlavorData__II_3I_3C) |
| 5621 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
5621 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2, jcharArray arg3) |
| 5622 |
{ |
5622 |
{ |
| 5623 |
jint *lparg1=NULL; |
5623 |
jint *lparg2=NULL; |
| 5624 |
jint rc = 0; |
5624 |
jchar *lparg3=NULL; |
| 5625 |
OS_NATIVE_ENTER(env, that, GetSuperControl_FUNC); |
5625 |
jint rc = 0; |
| 5626 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
5626 |
OS_NATIVE_ENTER(env, that, GetScrapFlavorData__II_3I_3C_FUNC); |
| 5627 |
rc = (jint)GetSuperControl((ControlRef)arg0, (ControlRef *)lparg1); |
5627 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 5628 |
fail: |
5628 |
if (arg3) if ((lparg3 = (*env)->GetCharArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 5629 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
5629 |
rc = (jint)GetScrapFlavorData((ScrapRef)arg0, (ScrapFlavorType)arg1, (Size *)lparg2, (void *)lparg3); |
| 5630 |
OS_NATIVE_EXIT(env, that, GetSuperControl_FUNC); |
5630 |
fail: |
| 5631 |
return rc; |
5631 |
if (arg3 && lparg3) (*env)->ReleaseCharArrayElements(env, arg3, lparg3, 0); |
| 5632 |
} |
5632 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 5633 |
#endif |
5633 |
OS_NATIVE_EXIT(env, that, GetScrapFlavorData__II_3I_3C_FUNC); |
| 5634 |
|
5634 |
return rc; |
| 5635 |
#ifndef NO_GetTabContentRect |
5635 |
} |
| 5636 |
JNIEXPORT jint JNICALL OS_NATIVE(GetTabContentRect) |
5636 |
#endif |
| 5637 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
5637 |
|
| 5638 |
{ |
5638 |
#ifndef NO_GetScrapFlavorInfoList |
| 5639 |
Rect _arg1, *lparg1=NULL; |
5639 |
JNIEXPORT jint JNICALL OS_NATIVE(GetScrapFlavorInfoList) |
| 5640 |
jint rc = 0; |
5640 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jintArray arg2) |
| 5641 |
OS_NATIVE_ENTER(env, that, GetTabContentRect_FUNC); |
5641 |
{ |
| 5642 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
5642 |
jint *lparg1=NULL; |
| 5643 |
rc = (jint)GetTabContentRect((ControlRef)arg0, lparg1); |
5643 |
jint *lparg2=NULL; |
| 5644 |
fail: |
5644 |
jint rc = 0; |
| 5645 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
5645 |
OS_NATIVE_ENTER(env, that, GetScrapFlavorInfoList_FUNC); |
| 5646 |
OS_NATIVE_EXIT(env, that, GetTabContentRect_FUNC); |
5646 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 5647 |
return rc; |
5647 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 5648 |
} |
5648 |
rc = (jint)GetScrapFlavorInfoList((ScrapRef)arg0, (UInt32 *)lparg1, (ScrapFlavorInfo *)lparg2); |
| 5649 |
#endif |
5649 |
fail: |
| 5650 |
|
5650 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 5651 |
#ifndef NO_GetThemeBrushAsColor |
5651 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 5652 |
JNIEXPORT jint JNICALL OS_NATIVE(GetThemeBrushAsColor) |
5652 |
OS_NATIVE_EXIT(env, that, GetScrapFlavorInfoList_FUNC); |
| 5653 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1, jboolean arg2, jobject arg3) |
5653 |
return rc; |
| 5654 |
{ |
5654 |
} |
| 5655 |
RGBColor _arg3, *lparg3=NULL; |
5655 |
#endif |
| 5656 |
jint rc = 0; |
5656 |
|
| 5657 |
OS_NATIVE_ENTER(env, that, GetThemeBrushAsColor_FUNC); |
5657 |
#ifndef NO_GetScrapFlavorSize |
| 5658 |
if (arg3) if ((lparg3 = getRGBColorFields(env, arg3, &_arg3)) == NULL) goto fail; |
5658 |
JNIEXPORT jint JNICALL OS_NATIVE(GetScrapFlavorSize) |
| 5659 |
rc = (jint)GetThemeBrushAsColor(arg0, arg1, arg2, lparg3); |
5659 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
| 5660 |
fail: |
5660 |
{ |
| 5661 |
if (arg3 && lparg3) setRGBColorFields(env, arg3, lparg3); |
5661 |
jint *lparg2=NULL; |
| 5662 |
OS_NATIVE_EXIT(env, that, GetThemeBrushAsColor_FUNC); |
5662 |
jint rc = 0; |
| 5663 |
return rc; |
5663 |
OS_NATIVE_ENTER(env, that, GetScrapFlavorSize_FUNC); |
| 5664 |
} |
5664 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 5665 |
#endif |
5665 |
rc = (jint)GetScrapFlavorSize((ScrapRef)arg0, (ScrapFlavorType)arg1, (Size *)lparg2); |
| 5666 |
|
5666 |
fail: |
| 5667 |
#ifndef NO_GetThemeButtonContentBounds |
5667 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 5668 |
JNIEXPORT jint JNICALL OS_NATIVE(GetThemeButtonContentBounds) |
5668 |
OS_NATIVE_EXIT(env, that, GetScrapFlavorSize_FUNC); |
| 5669 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jobject arg2, jobject arg3) |
5669 |
return rc; |
| 5670 |
{ |
5670 |
} |
| 5671 |
Rect _arg0, *lparg0=NULL; |
5671 |
#endif |
| 5672 |
ThemeButtonDrawInfo _arg2, *lparg2=NULL; |
5672 |
|
| 5673 |
Rect _arg3, *lparg3=NULL; |
5673 |
#ifndef NO_GetScriptManagerVariable |
| 5674 |
jint rc = 0; |
5674 |
JNIEXPORT jint JNICALL OS_NATIVE(GetScriptManagerVariable) |
| 5675 |
OS_NATIVE_ENTER(env, that, GetThemeButtonContentBounds_FUNC); |
5675 |
(JNIEnv *env, jclass that, jshort arg0) |
| 5676 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
5676 |
{ |
| 5677 |
if (arg2) if ((lparg2 = getThemeButtonDrawInfoFields(env, arg2, &_arg2)) == NULL) goto fail; |
5677 |
jint rc = 0; |
| 5678 |
if (arg3) if ((lparg3 = getRectFields(env, arg3, &_arg3)) == NULL) goto fail; |
5678 |
OS_NATIVE_ENTER(env, that, GetScriptManagerVariable_FUNC); |
| 5679 |
rc = (jint)GetThemeButtonContentBounds(lparg0, arg1, lparg2, lparg3); |
5679 |
rc = (jint)GetScriptManagerVariable(arg0); |
| 5680 |
fail: |
5680 |
OS_NATIVE_EXIT(env, that, GetScriptManagerVariable_FUNC); |
| 5681 |
if (arg3 && lparg3) setRectFields(env, arg3, lparg3); |
5681 |
return rc; |
| 5682 |
if (arg2 && lparg2) setThemeButtonDrawInfoFields(env, arg2, lparg2); |
5682 |
} |
| 5683 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
5683 |
#endif |
| 5684 |
OS_NATIVE_EXIT(env, that, GetThemeButtonContentBounds_FUNC); |
5684 |
|
| 5685 |
return rc; |
5685 |
#ifndef NO_GetSuperControl |
| 5686 |
} |
5686 |
JNIEXPORT jint JNICALL OS_NATIVE(GetSuperControl) |
| 5687 |
#endif |
5687 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 5688 |
|
5688 |
{ |
| 5689 |
#ifndef NO_GetThemeDrawingState |
5689 |
jint *lparg1=NULL; |
| 5690 |
JNIEXPORT jint JNICALL OS_NATIVE(GetThemeDrawingState) |
5690 |
jint rc = 0; |
| 5691 |
(JNIEnv *env, jclass that, jintArray arg0) |
5691 |
OS_NATIVE_ENTER(env, that, GetSuperControl_FUNC); |
| 5692 |
{ |
5692 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 5693 |
jint *lparg0=NULL; |
5693 |
rc = (jint)GetSuperControl((ControlRef)arg0, (ControlRef *)lparg1); |
| 5694 |
jint rc = 0; |
5694 |
fail: |
| 5695 |
OS_NATIVE_ENTER(env, that, GetThemeDrawingState_FUNC); |
5695 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 5696 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
5696 |
OS_NATIVE_EXIT(env, that, GetSuperControl_FUNC); |
| 5697 |
rc = (jint)GetThemeDrawingState((ThemeDrawingState *)lparg0); |
5697 |
return rc; |
| 5698 |
fail: |
5698 |
} |
| 5699 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
5699 |
#endif |
| 5700 |
OS_NATIVE_EXIT(env, that, GetThemeDrawingState_FUNC); |
5700 |
|
| 5701 |
return rc; |
5701 |
#ifndef NO_GetTabContentRect |
| 5702 |
} |
5702 |
JNIEXPORT jint JNICALL OS_NATIVE(GetTabContentRect) |
| 5703 |
#endif |
5703 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 5704 |
|
5704 |
{ |
| 5705 |
#ifndef NO_GetThemeFont |
5705 |
Rect _arg1, *lparg1=NULL; |
| 5706 |
JNIEXPORT jint JNICALL OS_NATIVE(GetThemeFont) |
5706 |
jint rc = 0; |
| 5707 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1, jbyteArray arg2, jshortArray arg3, jbyteArray arg4) |
5707 |
OS_NATIVE_ENTER(env, that, GetTabContentRect_FUNC); |
| 5708 |
{ |
5708 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 5709 |
jbyte *lparg2=NULL; |
5709 |
rc = (jint)GetTabContentRect((ControlRef)arg0, lparg1); |
| 5710 |
jshort *lparg3=NULL; |
5710 |
fail: |
| 5711 |
jbyte *lparg4=NULL; |
5711 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 5712 |
jint rc = 0; |
5712 |
OS_NATIVE_EXIT(env, that, GetTabContentRect_FUNC); |
| 5713 |
OS_NATIVE_ENTER(env, that, GetThemeFont_FUNC); |
5713 |
return rc; |
| 5714 |
if (arg2) if ((lparg2 = (*env)->GetByteArrayElements(env, arg2, NULL)) == NULL) goto fail; |
5714 |
} |
| 5715 |
if (arg3) if ((lparg3 = (*env)->GetShortArrayElements(env, arg3, NULL)) == NULL) goto fail; |
5715 |
#endif |
| 5716 |
if (arg4) if ((lparg4 = (*env)->GetByteArrayElements(env, arg4, NULL)) == NULL) goto fail; |
5716 |
|
| 5717 |
rc = (jint)GetThemeFont((ThemeFontID)arg0, (ScriptCode)arg1, (char *)lparg2, (SInt16 *)lparg3, (Style *)lparg4); |
5717 |
#ifndef NO_GetThemeBrushAsColor |
| 5718 |
fail: |
5718 |
JNIEXPORT jint JNICALL OS_NATIVE(GetThemeBrushAsColor) |
| 5719 |
if (arg4 && lparg4) (*env)->ReleaseByteArrayElements(env, arg4, lparg4, 0); |
5719 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1, jboolean arg2, jobject arg3) |
| 5720 |
if (arg3 && lparg3) (*env)->ReleaseShortArrayElements(env, arg3, lparg3, 0); |
5720 |
{ |
| 5721 |
if (arg2 && lparg2) (*env)->ReleaseByteArrayElements(env, arg2, lparg2, 0); |
5721 |
RGBColor _arg3, *lparg3=NULL; |
| 5722 |
OS_NATIVE_EXIT(env, that, GetThemeFont_FUNC); |
5722 |
jint rc = 0; |
| 5723 |
return rc; |
5723 |
OS_NATIVE_ENTER(env, that, GetThemeBrushAsColor_FUNC); |
| 5724 |
} |
5724 |
if (arg3) if ((lparg3 = getRGBColorFields(env, arg3, &_arg3)) == NULL) goto fail; |
| 5725 |
#endif |
5725 |
rc = (jint)GetThemeBrushAsColor(arg0, arg1, arg2, lparg3); |
| 5726 |
|
5726 |
fail: |
| 5727 |
#ifndef NO_GetThemeMenuItemExtra |
5727 |
if (arg3 && lparg3) setRGBColorFields(env, arg3, lparg3); |
| 5728 |
JNIEXPORT jint JNICALL OS_NATIVE(GetThemeMenuItemExtra) |
5728 |
OS_NATIVE_EXIT(env, that, GetThemeBrushAsColor_FUNC); |
| 5729 |
(JNIEnv *env, jclass that, jshort arg0, jshortArray arg1, jshortArray arg2) |
5729 |
return rc; |
| 5730 |
{ |
5730 |
} |
| 5731 |
jshort *lparg1=NULL; |
5731 |
#endif |
| 5732 |
jshort *lparg2=NULL; |
5732 |
|
| 5733 |
jint rc = 0; |
5733 |
#ifndef NO_GetThemeButtonContentBounds |
| 5734 |
OS_NATIVE_ENTER(env, that, GetThemeMenuItemExtra_FUNC); |
5734 |
JNIEXPORT jint JNICALL OS_NATIVE(GetThemeButtonContentBounds) |
| 5735 |
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail; |
5735 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jobject arg2, jobject arg3) |
| 5736 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
5736 |
{ |
| 5737 |
rc = (jint)GetThemeMenuItemExtra(arg0, lparg1, lparg2); |
5737 |
Rect _arg0, *lparg0=NULL; |
| 5738 |
fail: |
5738 |
ThemeButtonDrawInfo _arg2, *lparg2=NULL; |
| 5739 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
5739 |
Rect _arg3, *lparg3=NULL; |
| 5740 |
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0); |
5740 |
jint rc = 0; |
| 5741 |
OS_NATIVE_EXIT(env, that, GetThemeMenuItemExtra_FUNC); |
5741 |
OS_NATIVE_ENTER(env, that, GetThemeButtonContentBounds_FUNC); |
| 5742 |
return rc; |
5742 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 5743 |
} |
5743 |
if (arg2) if ((lparg2 = getThemeButtonDrawInfoFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 5744 |
#endif |
5744 |
if (arg3) if ((lparg3 = getRectFields(env, arg3, &_arg3)) == NULL) goto fail; |
| 5745 |
|
5745 |
rc = (jint)GetThemeButtonContentBounds(lparg0, arg1, lparg2, lparg3); |
| 5746 |
#ifndef NO_GetThemeMetric |
5746 |
fail: |
| 5747 |
JNIEXPORT jint JNICALL OS_NATIVE(GetThemeMetric) |
5747 |
if (arg3 && lparg3) setRectFields(env, arg3, lparg3); |
| 5748 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
5748 |
if (arg2 && lparg2) setThemeButtonDrawInfoFields(env, arg2, lparg2); |
| 5749 |
{ |
5749 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 5750 |
jint *lparg1=NULL; |
5750 |
OS_NATIVE_EXIT(env, that, GetThemeButtonContentBounds_FUNC); |
| 5751 |
jint rc = 0; |
5751 |
return rc; |
| 5752 |
OS_NATIVE_ENTER(env, that, GetThemeMetric_FUNC); |
5752 |
} |
| 5753 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
5753 |
#endif |
| 5754 |
rc = (jint)GetThemeMetric(arg0, lparg1); |
5754 |
|
| 5755 |
fail: |
5755 |
#ifndef NO_GetThemeDrawingState |
| 5756 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
5756 |
JNIEXPORT jint JNICALL OS_NATIVE(GetThemeDrawingState) |
| 5757 |
OS_NATIVE_EXIT(env, that, GetThemeMetric_FUNC); |
5757 |
(JNIEnv *env, jclass that, jintArray arg0) |
| 5758 |
return rc; |
5758 |
{ |
| 5759 |
} |
5759 |
jint *lparg0=NULL; |
| 5760 |
#endif |
5760 |
jint rc = 0; |
| 5761 |
|
5761 |
OS_NATIVE_ENTER(env, that, GetThemeDrawingState_FUNC); |
| 5762 |
#ifndef NO_GetThemeTextColor |
5762 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 5763 |
JNIEXPORT jint JNICALL OS_NATIVE(GetThemeTextColor) |
5763 |
rc = (jint)GetThemeDrawingState((ThemeDrawingState *)lparg0); |
| 5764 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1, jboolean arg2, jobject arg3) |
5764 |
fail: |
| 5765 |
{ |
5765 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 5766 |
RGBColor _arg3, *lparg3=NULL; |
5766 |
OS_NATIVE_EXIT(env, that, GetThemeDrawingState_FUNC); |
| 5767 |
jint rc = 0; |
5767 |
return rc; |
| 5768 |
OS_NATIVE_ENTER(env, that, GetThemeTextColor_FUNC); |
5768 |
} |
| 5769 |
if (arg3) if ((lparg3 = getRGBColorFields(env, arg3, &_arg3)) == NULL) goto fail; |
5769 |
#endif |
| 5770 |
rc = (jint)GetThemeTextColor(arg0, arg1, arg2, lparg3); |
5770 |
|
| 5771 |
fail: |
5771 |
#ifndef NO_GetThemeFont |
| 5772 |
if (arg3 && lparg3) setRGBColorFields(env, arg3, lparg3); |
5772 |
JNIEXPORT jint JNICALL OS_NATIVE(GetThemeFont) |
| 5773 |
OS_NATIVE_EXIT(env, that, GetThemeTextColor_FUNC); |
5773 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1, jbyteArray arg2, jshortArray arg3, jbyteArray arg4) |
| 5774 |
return rc; |
5774 |
{ |
| 5775 |
} |
5775 |
jbyte *lparg2=NULL; |
| 5776 |
#endif |
5776 |
jshort *lparg3=NULL; |
| 5777 |
|
5777 |
jbyte *lparg4=NULL; |
| 5778 |
#ifndef NO_GetThemeTextDimensions |
5778 |
jint rc = 0; |
| 5779 |
JNIEXPORT jint JNICALL OS_NATIVE(GetThemeTextDimensions) |
5779 |
OS_NATIVE_ENTER(env, that, GetThemeFont_FUNC); |
| 5780 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2, jboolean arg3, jobject arg4, jshortArray arg5) |
5780 |
if (arg2) if ((lparg2 = (*env)->GetByteArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 5781 |
{ |
5781 |
if (arg3) if ((lparg3 = (*env)->GetShortArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 5782 |
Point _arg4, *lparg4=NULL; |
5782 |
if (arg4) if ((lparg4 = (*env)->GetByteArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 5783 |
jshort *lparg5=NULL; |
5783 |
rc = (jint)GetThemeFont((ThemeFontID)arg0, (ScriptCode)arg1, (char *)lparg2, (SInt16 *)lparg3, (Style *)lparg4); |
| 5784 |
jint rc = 0; |
5784 |
fail: |
| 5785 |
OS_NATIVE_ENTER(env, that, GetThemeTextDimensions_FUNC); |
5785 |
if (arg4 && lparg4) (*env)->ReleaseByteArrayElements(env, arg4, lparg4, 0); |
| 5786 |
if (arg4) if ((lparg4 = getPointFields(env, arg4, &_arg4)) == NULL) goto fail; |
5786 |
if (arg3 && lparg3) (*env)->ReleaseShortArrayElements(env, arg3, lparg3, 0); |
| 5787 |
if (arg5) if ((lparg5 = (*env)->GetShortArrayElements(env, arg5, NULL)) == NULL) goto fail; |
5787 |
if (arg2 && lparg2) (*env)->ReleaseByteArrayElements(env, arg2, lparg2, 0); |
| 5788 |
rc = (jint)GetThemeTextDimensions((CFStringRef)arg0, (ThemeFontID)arg1, (ThemeDrawState)arg2, (Boolean)arg3, (Point *)lparg4, (SInt16 *)lparg5); |
5788 |
OS_NATIVE_EXIT(env, that, GetThemeFont_FUNC); |
| 5789 |
fail: |
5789 |
return rc; |
| 5790 |
if (arg5 && lparg5) (*env)->ReleaseShortArrayElements(env, arg5, lparg5, 0); |
5790 |
} |
| 5791 |
if (arg4 && lparg4) setPointFields(env, arg4, lparg4); |
5791 |
#endif |
| 5792 |
OS_NATIVE_EXIT(env, that, GetThemeTextDimensions_FUNC); |
5792 |
|
| 5793 |
return rc; |
5793 |
#ifndef NO_GetThemeMenuItemExtra |
| 5794 |
} |
5794 |
JNIEXPORT jint JNICALL OS_NATIVE(GetThemeMenuItemExtra) |
| 5795 |
#endif |
5795 |
(JNIEnv *env, jclass that, jshort arg0, jshortArray arg1, jshortArray arg2) |
| 5796 |
|
5796 |
{ |
| 5797 |
#ifndef NO_GetUserFocusEventTarget |
5797 |
jshort *lparg1=NULL; |
| 5798 |
JNIEXPORT jint JNICALL OS_NATIVE(GetUserFocusEventTarget) |
5798 |
jshort *lparg2=NULL; |
| 5799 |
(JNIEnv *env, jclass that) |
5799 |
jint rc = 0; |
| 5800 |
{ |
5800 |
OS_NATIVE_ENTER(env, that, GetThemeMenuItemExtra_FUNC); |
| 5801 |
jint rc = 0; |
5801 |
if (arg1) if ((lparg1 = (*env)->GetShortArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 5802 |
OS_NATIVE_ENTER(env, that, GetUserFocusEventTarget_FUNC); |
5802 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 5803 |
rc = (jint)GetUserFocusEventTarget(); |
5803 |
rc = (jint)GetThemeMenuItemExtra(arg0, lparg1, lparg2); |
| 5804 |
OS_NATIVE_EXIT(env, that, GetUserFocusEventTarget_FUNC); |
5804 |
fail: |
| 5805 |
return rc; |
5805 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
| 5806 |
} |
5806 |
if (arg1 && lparg1) (*env)->ReleaseShortArrayElements(env, arg1, lparg1, 0); |
| 5807 |
#endif |
5807 |
OS_NATIVE_EXIT(env, that, GetThemeMenuItemExtra_FUNC); |
| 5808 |
|
5808 |
return rc; |
| 5809 |
#ifndef NO_GetUserFocusWindow |
5809 |
} |
| 5810 |
JNIEXPORT jint JNICALL OS_NATIVE(GetUserFocusWindow) |
5810 |
#endif |
| 5811 |
(JNIEnv *env, jclass that) |
5811 |
|
| 5812 |
{ |
5812 |
#ifndef NO_GetThemeMetric |
| 5813 |
jint rc = 0; |
5813 |
JNIEXPORT jint JNICALL OS_NATIVE(GetThemeMetric) |
| 5814 |
OS_NATIVE_ENTER(env, that, GetUserFocusWindow_FUNC); |
5814 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 5815 |
rc = (jint)GetUserFocusWindow(); |
5815 |
{ |
| 5816 |
OS_NATIVE_EXIT(env, that, GetUserFocusWindow_FUNC); |
5816 |
jint *lparg1=NULL; |
| 5817 |
return rc; |
5817 |
jint rc = 0; |
| 5818 |
} |
5818 |
OS_NATIVE_ENTER(env, that, GetThemeMetric_FUNC); |
| 5819 |
#endif |
5819 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 5820 |
|
5820 |
rc = (jint)GetThemeMetric(arg0, lparg1); |
| 5821 |
#ifndef NO_GetWRefCon |
5821 |
fail: |
| 5822 |
JNIEXPORT jint JNICALL OS_NATIVE(GetWRefCon) |
5822 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 5823 |
(JNIEnv *env, jclass that, jint arg0) |
5823 |
OS_NATIVE_EXIT(env, that, GetThemeMetric_FUNC); |
| 5824 |
{ |
5824 |
return rc; |
| 5825 |
jint rc = 0; |
5825 |
} |
| 5826 |
OS_NATIVE_ENTER(env, that, GetWRefCon_FUNC); |
5826 |
#endif |
| 5827 |
rc = (jint)GetWRefCon((WindowRef)arg0); |
5827 |
|
| 5828 |
OS_NATIVE_EXIT(env, that, GetWRefCon_FUNC); |
5828 |
#ifndef NO_GetThemeTextColor |
| 5829 |
return rc; |
5829 |
JNIEXPORT jint JNICALL OS_NATIVE(GetThemeTextColor) |
| 5830 |
} |
5830 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1, jboolean arg2, jobject arg3) |
| 5831 |
#endif |
5831 |
{ |
| 5832 |
|
5832 |
RGBColor _arg3, *lparg3=NULL; |
| 5833 |
#ifndef NO_GetWindowActivationScope |
5833 |
jint rc = 0; |
| 5834 |
JNIEXPORT jint JNICALL OS_NATIVE(GetWindowActivationScope) |
5834 |
OS_NATIVE_ENTER(env, that, GetThemeTextColor_FUNC); |
| 5835 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
5835 |
if (arg3) if ((lparg3 = getRGBColorFields(env, arg3, &_arg3)) == NULL) goto fail; |
| 5836 |
{ |
5836 |
rc = (jint)GetThemeTextColor(arg0, arg1, arg2, lparg3); |
| 5837 |
jint *lparg1=NULL; |
5837 |
fail: |
| 5838 |
jint rc = 0; |
5838 |
if (arg3 && lparg3) setRGBColorFields(env, arg3, lparg3); |
| 5839 |
OS_NATIVE_ENTER(env, that, GetWindowActivationScope_FUNC); |
5839 |
OS_NATIVE_EXIT(env, that, GetThemeTextColor_FUNC); |
| 5840 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
5840 |
return rc; |
| 5841 |
rc = (jint)GetWindowActivationScope((WindowRef)arg0, (WindowActivationScope *)lparg1); |
5841 |
} |
| 5842 |
fail: |
5842 |
#endif |
| 5843 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
5843 |
|
| 5844 |
OS_NATIVE_EXIT(env, that, GetWindowActivationScope_FUNC); |
5844 |
#ifndef NO_GetThemeTextDimensions |
| 5845 |
return rc; |
5845 |
JNIEXPORT jint JNICALL OS_NATIVE(GetThemeTextDimensions) |
| 5846 |
} |
5846 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2, jboolean arg3, jobject arg4, jshortArray arg5) |
| 5847 |
#endif |
5847 |
{ |
| 5848 |
|
5848 |
Point _arg4, *lparg4=NULL; |
| 5849 |
#ifndef NO_GetWindowBounds |
5849 |
jshort *lparg5=NULL; |
| 5850 |
JNIEXPORT void JNICALL OS_NATIVE(GetWindowBounds) |
5850 |
jint rc = 0; |
| 5851 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jobject arg2) |
5851 |
OS_NATIVE_ENTER(env, that, GetThemeTextDimensions_FUNC); |
| 5852 |
{ |
5852 |
if (arg4) if ((lparg4 = getPointFields(env, arg4, &_arg4)) == NULL) goto fail; |
| 5853 |
Rect _arg2, *lparg2=NULL; |
5853 |
if (arg5) if ((lparg5 = (*env)->GetShortArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 5854 |
OS_NATIVE_ENTER(env, that, GetWindowBounds_FUNC); |
5854 |
rc = (jint)GetThemeTextDimensions((CFStringRef)arg0, (ThemeFontID)arg1, (ThemeDrawState)arg2, (Boolean)arg3, (Point *)lparg4, (SInt16 *)lparg5); |
| 5855 |
if (arg2) if ((lparg2 = getRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
5855 |
fail: |
| 5856 |
GetWindowBounds((WindowRef)arg0, (WindowRegionCode)arg1, (Rect *)lparg2); |
5856 |
if (arg5 && lparg5) (*env)->ReleaseShortArrayElements(env, arg5, lparg5, 0); |
| 5857 |
fail: |
5857 |
if (arg4 && lparg4) setPointFields(env, arg4, lparg4); |
| 5858 |
if (arg2 && lparg2) setRectFields(env, arg2, lparg2); |
5858 |
OS_NATIVE_EXIT(env, that, GetThemeTextDimensions_FUNC); |
| 5859 |
OS_NATIVE_EXIT(env, that, GetWindowBounds_FUNC); |
5859 |
return rc; |
| 5860 |
} |
5860 |
} |
| 5861 |
#endif |
5861 |
#endif |
| 5862 |
|
5862 |
|
| 5863 |
#ifndef NO_GetWindowDefaultButton |
5863 |
#ifndef NO_GetUserFocusEventTarget |
| 5864 |
JNIEXPORT jint JNICALL OS_NATIVE(GetWindowDefaultButton) |
5864 |
JNIEXPORT jint JNICALL OS_NATIVE(GetUserFocusEventTarget) |
| 5865 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
5865 |
(JNIEnv *env, jclass that) |
| 5866 |
{ |
5866 |
{ |
| 5867 |
jint *lparg1=NULL; |
5867 |
jint rc = 0; |
| 5868 |
jint rc = 0; |
5868 |
OS_NATIVE_ENTER(env, that, GetUserFocusEventTarget_FUNC); |
| 5869 |
OS_NATIVE_ENTER(env, that, GetWindowDefaultButton_FUNC); |
5869 |
rc = (jint)GetUserFocusEventTarget(); |
| 5870 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
5870 |
OS_NATIVE_EXIT(env, that, GetUserFocusEventTarget_FUNC); |
| 5871 |
rc = (jint)GetWindowDefaultButton((WindowRef)arg0, (ControlRef *)lparg1); |
5871 |
return rc; |
| 5872 |
fail: |
5872 |
} |
| 5873 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
5873 |
#endif |
| 5874 |
OS_NATIVE_EXIT(env, that, GetWindowDefaultButton_FUNC); |
5874 |
|
| 5875 |
return rc; |
5875 |
#ifndef NO_GetUserFocusWindow |
| 5876 |
} |
5876 |
JNIEXPORT jint JNICALL OS_NATIVE(GetUserFocusWindow) |
| 5877 |
#endif |
5877 |
(JNIEnv *env, jclass that) |
| 5878 |
|
5878 |
{ |
| 5879 |
#ifndef NO_GetWindowEventTarget |
5879 |
jint rc = 0; |
| 5880 |
JNIEXPORT jint JNICALL OS_NATIVE(GetWindowEventTarget) |
5880 |
OS_NATIVE_ENTER(env, that, GetUserFocusWindow_FUNC); |
| 5881 |
(JNIEnv *env, jclass that, jint arg0) |
5881 |
rc = (jint)GetUserFocusWindow(); |
| 5882 |
{ |
5882 |
OS_NATIVE_EXIT(env, that, GetUserFocusWindow_FUNC); |
| 5883 |
jint rc = 0; |
5883 |
return rc; |
| 5884 |
OS_NATIVE_ENTER(env, that, GetWindowEventTarget_FUNC); |
5884 |
} |
| 5885 |
rc = (jint)GetWindowEventTarget((WindowRef)arg0); |
5885 |
#endif |
| 5886 |
OS_NATIVE_EXIT(env, that, GetWindowEventTarget_FUNC); |
5886 |
|
| 5887 |
return rc; |
5887 |
#ifndef NO_GetWRefCon |
| 5888 |
} |
5888 |
JNIEXPORT jint JNICALL OS_NATIVE(GetWRefCon) |
| 5889 |
#endif |
5889 |
(JNIEnv *env, jclass that, jint arg0) |
| 5890 |
|
5890 |
{ |
| 5891 |
#ifndef NO_GetWindowFromPort |
5891 |
jint rc = 0; |
| 5892 |
JNIEXPORT jint JNICALL OS_NATIVE(GetWindowFromPort) |
5892 |
OS_NATIVE_ENTER(env, that, GetWRefCon_FUNC); |
| 5893 |
(JNIEnv *env, jclass that, jint arg0) |
5893 |
rc = (jint)GetWRefCon((WindowRef)arg0); |
| 5894 |
{ |
5894 |
OS_NATIVE_EXIT(env, that, GetWRefCon_FUNC); |
| 5895 |
jint rc = 0; |
5895 |
return rc; |
| 5896 |
OS_NATIVE_ENTER(env, that, GetWindowFromPort_FUNC); |
5896 |
} |
| 5897 |
rc = (jint)GetWindowFromPort((CGrafPtr)arg0); |
5897 |
#endif |
| 5898 |
OS_NATIVE_EXIT(env, that, GetWindowFromPort_FUNC); |
5898 |
|
| 5899 |
return rc; |
5899 |
#ifndef NO_GetWindowActivationScope |
| 5900 |
} |
5900 |
JNIEXPORT jint JNICALL OS_NATIVE(GetWindowActivationScope) |
| 5901 |
#endif |
5901 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 5902 |
|
5902 |
{ |
| 5903 |
#ifndef NO_GetWindowGroupOfClass |
5903 |
jint *lparg1=NULL; |
| 5904 |
JNIEXPORT jint JNICALL OS_NATIVE(GetWindowGroupOfClass) |
5904 |
jint rc = 0; |
| 5905 |
(JNIEnv *env, jclass that, jint arg0) |
5905 |
OS_NATIVE_ENTER(env, that, GetWindowActivationScope_FUNC); |
| 5906 |
{ |
5906 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 5907 |
jint rc = 0; |
5907 |
rc = (jint)GetWindowActivationScope((WindowRef)arg0, (WindowActivationScope *)lparg1); |
| 5908 |
OS_NATIVE_ENTER(env, that, GetWindowGroupOfClass_FUNC); |
5908 |
fail: |
| 5909 |
rc = (jint)GetWindowGroupOfClass(arg0); |
5909 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 5910 |
OS_NATIVE_EXIT(env, that, GetWindowGroupOfClass_FUNC); |
5910 |
OS_NATIVE_EXIT(env, that, GetWindowActivationScope_FUNC); |
| 5911 |
return rc; |
5911 |
return rc; |
| 5912 |
} |
5912 |
} |
| 5913 |
#endif |
5913 |
#endif |
| 5914 |
|
5914 |
|
| 5915 |
#ifndef NO_GetWindowModality |
5915 |
#ifndef NO_GetWindowBounds |
| 5916 |
JNIEXPORT jint JNICALL OS_NATIVE(GetWindowModality) |
5916 |
JNIEXPORT void JNICALL OS_NATIVE(GetWindowBounds) |
| 5917 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jintArray arg2) |
5917 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jobject arg2) |
| 5918 |
{ |
5918 |
{ |
| 5919 |
jint *lparg1=NULL; |
5919 |
Rect _arg2, *lparg2=NULL; |
| 5920 |
jint *lparg2=NULL; |
5920 |
OS_NATIVE_ENTER(env, that, GetWindowBounds_FUNC); |
| 5921 |
jint rc = 0; |
5921 |
if (arg2) if ((lparg2 = getRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 5922 |
OS_NATIVE_ENTER(env, that, GetWindowModality_FUNC); |
5922 |
GetWindowBounds((WindowRef)arg0, (WindowRegionCode)arg1, (Rect *)lparg2); |
| 5923 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
5923 |
fail: |
| 5924 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
5924 |
if (arg2 && lparg2) setRectFields(env, arg2, lparg2); |
| 5925 |
rc = (jint)GetWindowModality((WindowRef)arg0, (WindowModality *)lparg1, (WindowRef *)lparg2); |
5925 |
OS_NATIVE_EXIT(env, that, GetWindowBounds_FUNC); |
| 5926 |
fail: |
5926 |
} |
| 5927 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
5927 |
#endif |
| 5928 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
5928 |
|
| 5929 |
OS_NATIVE_EXIT(env, that, GetWindowModality_FUNC); |
5929 |
#ifndef NO_GetWindowDefaultButton |
| 5930 |
return rc; |
5930 |
JNIEXPORT jint JNICALL OS_NATIVE(GetWindowDefaultButton) |
| 5931 |
} |
5931 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 5932 |
#endif |
5932 |
{ |
| 5933 |
|
5933 |
jint *lparg1=NULL; |
| 5934 |
#ifndef NO_GetWindowPort |
5934 |
jint rc = 0; |
| 5935 |
JNIEXPORT jint JNICALL OS_NATIVE(GetWindowPort) |
5935 |
OS_NATIVE_ENTER(env, that, GetWindowDefaultButton_FUNC); |
| 5936 |
(JNIEnv *env, jclass that, jint arg0) |
5936 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 5937 |
{ |
5937 |
rc = (jint)GetWindowDefaultButton((WindowRef)arg0, (ControlRef *)lparg1); |
| 5938 |
jint rc = 0; |
5938 |
fail: |
| 5939 |
OS_NATIVE_ENTER(env, that, GetWindowPort_FUNC); |
5939 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 5940 |
rc = (jint)GetWindowPort((WindowRef)arg0); |
5940 |
OS_NATIVE_EXIT(env, that, GetWindowDefaultButton_FUNC); |
| 5941 |
OS_NATIVE_EXIT(env, that, GetWindowPort_FUNC); |
5941 |
return rc; |
| 5942 |
return rc; |
5942 |
} |
| 5943 |
} |
5943 |
#endif |
| 5944 |
#endif |
5944 |
|
| 5945 |
|
5945 |
#ifndef NO_GetWindowEventTarget |
| 5946 |
#ifndef NO_GetWindowRegion |
5946 |
JNIEXPORT jint JNICALL OS_NATIVE(GetWindowEventTarget) |
| 5947 |
JNIEXPORT jint JNICALL OS_NATIVE(GetWindowRegion) |
5947 |
(JNIEnv *env, jclass that, jint arg0) |
| 5948 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2) |
5948 |
{ |
| 5949 |
{ |
5949 |
jint rc = 0; |
| 5950 |
jint rc = 0; |
5950 |
OS_NATIVE_ENTER(env, that, GetWindowEventTarget_FUNC); |
| 5951 |
OS_NATIVE_ENTER(env, that, GetWindowRegion_FUNC); |
5951 |
rc = (jint)GetWindowEventTarget((WindowRef)arg0); |
| 5952 |
rc = (jint)GetWindowRegion((WindowRef)arg0, (WindowRegionCode)arg1, (RgnHandle)arg2); |
5952 |
OS_NATIVE_EXIT(env, that, GetWindowEventTarget_FUNC); |
| 5953 |
OS_NATIVE_EXIT(env, that, GetWindowRegion_FUNC); |
5953 |
return rc; |
| 5954 |
return rc; |
5954 |
} |
| 5955 |
} |
5955 |
#endif |
| 5956 |
#endif |
5956 |
|
| 5957 |
|
5957 |
#ifndef NO_GetWindowFromPort |
| 5958 |
#ifndef NO_GetWindowResizeLimits |
5958 |
JNIEXPORT jint JNICALL OS_NATIVE(GetWindowFromPort) |
| 5959 |
JNIEXPORT jint JNICALL OS_NATIVE(GetWindowResizeLimits) |
5959 |
(JNIEnv *env, jclass that, jint arg0) |
| 5960 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jobject arg2) |
5960 |
{ |
| 5961 |
{ |
5961 |
jint rc = 0; |
| 5962 |
CGPoint _arg1, *lparg1=NULL; |
5962 |
OS_NATIVE_ENTER(env, that, GetWindowFromPort_FUNC); |
| 5963 |
CGPoint _arg2, *lparg2=NULL; |
5963 |
rc = (jint)GetWindowFromPort((CGrafPtr)arg0); |
| 5964 |
jint rc = 0; |
5964 |
OS_NATIVE_EXIT(env, that, GetWindowFromPort_FUNC); |
| 5965 |
OS_NATIVE_ENTER(env, that, GetWindowResizeLimits_FUNC); |
5965 |
return rc; |
| 5966 |
if (arg1) if ((lparg1 = getCGPointFields(env, arg1, &_arg1)) == NULL) goto fail; |
5966 |
} |
| 5967 |
if (arg2) if ((lparg2 = getCGPointFields(env, arg2, &_arg2)) == NULL) goto fail; |
5967 |
#endif |
| 5968 |
rc = (jint)GetWindowResizeLimits((WindowRef)arg0, (HISize *)lparg1, (HISize *)lparg2); |
5968 |
|
| 5969 |
fail: |
5969 |
#ifndef NO_GetWindowGroupOfClass |
| 5970 |
if (arg2 && lparg2) setCGPointFields(env, arg2, lparg2); |
5970 |
JNIEXPORT jint JNICALL OS_NATIVE(GetWindowGroupOfClass) |
| 5971 |
if (arg1 && lparg1) setCGPointFields(env, arg1, lparg1); |
5971 |
(JNIEnv *env, jclass that, jint arg0) |
| 5972 |
OS_NATIVE_EXIT(env, that, GetWindowResizeLimits_FUNC); |
5972 |
{ |
| 5973 |
return rc; |
5973 |
jint rc = 0; |
| 5974 |
} |
5974 |
OS_NATIVE_ENTER(env, that, GetWindowGroupOfClass_FUNC); |
| 5975 |
#endif |
5975 |
rc = (jint)GetWindowGroupOfClass(arg0); |
| 5976 |
|
5976 |
OS_NATIVE_EXIT(env, that, GetWindowGroupOfClass_FUNC); |
| 5977 |
#ifndef NO_GetWindowStructureWidths |
5977 |
return rc; |
| 5978 |
JNIEXPORT void JNICALL OS_NATIVE(GetWindowStructureWidths) |
5978 |
} |
| 5979 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
5979 |
#endif |
| 5980 |
{ |
5980 |
|
| 5981 |
Rect _arg1, *lparg1=NULL; |
5981 |
#ifndef NO_GetWindowModality |
| 5982 |
OS_NATIVE_ENTER(env, that, GetWindowStructureWidths_FUNC); |
5982 |
JNIEXPORT jint JNICALL OS_NATIVE(GetWindowModality) |
| 5983 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
5983 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jintArray arg2) |
| 5984 |
GetWindowStructureWidths((WindowRef)arg0, (Rect *)lparg1); |
5984 |
{ |
| 5985 |
fail: |
5985 |
jint *lparg1=NULL; |
| 5986 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
5986 |
jint *lparg2=NULL; |
| 5987 |
OS_NATIVE_EXIT(env, that, GetWindowStructureWidths_FUNC); |
5987 |
jint rc = 0; |
| 5988 |
} |
5988 |
OS_NATIVE_ENTER(env, that, GetWindowModality_FUNC); |
| 5989 |
#endif |
5989 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 5990 |
|
5990 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 5991 |
#ifndef NO_HIComboBoxAppendTextItem |
5991 |
rc = (jint)GetWindowModality((WindowRef)arg0, (WindowModality *)lparg1, (WindowRef *)lparg2); |
| 5992 |
JNIEXPORT jint JNICALL OS_NATIVE(HIComboBoxAppendTextItem) |
5992 |
fail: |
| 5993 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
5993 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 5994 |
{ |
5994 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 5995 |
jint *lparg2=NULL; |
5995 |
OS_NATIVE_EXIT(env, that, GetWindowModality_FUNC); |
| 5996 |
jint rc = 0; |
5996 |
return rc; |
| 5997 |
OS_NATIVE_ENTER(env, that, HIComboBoxAppendTextItem_FUNC); |
5997 |
} |
| 5998 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
5998 |
#endif |
| 5999 |
rc = (jint)HIComboBoxAppendTextItem((HIViewRef)arg0, (CFStringRef)arg1, (CFIndex *)lparg2); |
5999 |
|
| 6000 |
fail: |
6000 |
#ifndef NO_GetWindowPort |
| 6001 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
6001 |
JNIEXPORT jint JNICALL OS_NATIVE(GetWindowPort) |
| 6002 |
OS_NATIVE_EXIT(env, that, HIComboBoxAppendTextItem_FUNC); |
6002 |
(JNIEnv *env, jclass that, jint arg0) |
| 6003 |
return rc; |
6003 |
{ |
| 6004 |
} |
6004 |
jint rc = 0; |
| 6005 |
#endif |
6005 |
OS_NATIVE_ENTER(env, that, GetWindowPort_FUNC); |
| 6006 |
|
6006 |
rc = (jint)GetWindowPort((WindowRef)arg0); |
| 6007 |
#ifndef NO_HIComboBoxCopyTextItemAtIndex |
6007 |
OS_NATIVE_EXIT(env, that, GetWindowPort_FUNC); |
| 6008 |
JNIEXPORT jint JNICALL OS_NATIVE(HIComboBoxCopyTextItemAtIndex) |
6008 |
return rc; |
| 6009 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
6009 |
} |
| 6010 |
{ |
6010 |
#endif |
| 6011 |
jint *lparg2=NULL; |
6011 |
|
| 6012 |
jint rc = 0; |
6012 |
#ifndef NO_GetWindowRegion |
| 6013 |
OS_NATIVE_ENTER(env, that, HIComboBoxCopyTextItemAtIndex_FUNC); |
6013 |
JNIEXPORT jint JNICALL OS_NATIVE(GetWindowRegion) |
| 6014 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
6014 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2) |
| 6015 |
rc = (jint)HIComboBoxCopyTextItemAtIndex((HIViewRef)arg0, (CFIndex)arg1, (CFStringRef *)lparg2); |
6015 |
{ |
| 6016 |
fail: |
6016 |
jint rc = 0; |
| 6017 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
6017 |
OS_NATIVE_ENTER(env, that, GetWindowRegion_FUNC); |
| 6018 |
OS_NATIVE_EXIT(env, that, HIComboBoxCopyTextItemAtIndex_FUNC); |
6018 |
rc = (jint)GetWindowRegion((WindowRef)arg0, (WindowRegionCode)arg1, (RgnHandle)arg2); |
| 6019 |
return rc; |
6019 |
OS_NATIVE_EXIT(env, that, GetWindowRegion_FUNC); |
| 6020 |
} |
6020 |
return rc; |
| 6021 |
#endif |
6021 |
} |
| 6022 |
|
6022 |
#endif |
| 6023 |
#ifndef NO_HIComboBoxCreate |
6023 |
|
| 6024 |
JNIEXPORT jint JNICALL OS_NATIVE(HIComboBoxCreate) |
6024 |
#ifndef NO_GetWindowResizeLimits |
| 6025 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jobject arg2, jint arg3, jint arg4, jintArray arg5) |
6025 |
JNIEXPORT jint JNICALL OS_NATIVE(GetWindowResizeLimits) |
| 6026 |
{ |
6026 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jobject arg2) |
| 6027 |
CGRect _arg0, *lparg0=NULL; |
6027 |
{ |
| 6028 |
ControlFontStyleRec _arg2, *lparg2=NULL; |
6028 |
CGPoint _arg1, *lparg1=NULL; |
| 6029 |
jint *lparg5=NULL; |
6029 |
CGPoint _arg2, *lparg2=NULL; |
| 6030 |
jint rc = 0; |
6030 |
jint rc = 0; |
| 6031 |
OS_NATIVE_ENTER(env, that, HIComboBoxCreate_FUNC); |
6031 |
OS_NATIVE_ENTER(env, that, GetWindowResizeLimits_FUNC); |
| 6032 |
if (arg0) if ((lparg0 = getCGRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
6032 |
if (arg1) if ((lparg1 = getCGPointFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 6033 |
if (arg2) if ((lparg2 = getControlFontStyleRecFields(env, arg2, &_arg2)) == NULL) goto fail; |
6033 |
if (arg2) if ((lparg2 = getCGPointFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 6034 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
6034 |
rc = (jint)GetWindowResizeLimits((WindowRef)arg0, (HISize *)lparg1, (HISize *)lparg2); |
| 6035 |
rc = (jint)HIComboBoxCreate((const HIRect *)lparg0, (CFStringRef)arg1, (const ControlFontStyleRec *)lparg2, (CFArrayRef)arg3, (OptionBits)arg4, (HIViewRef *)lparg5); |
6035 |
fail: |
| 6036 |
fail: |
6036 |
if (arg2 && lparg2) setCGPointFields(env, arg2, lparg2); |
| 6037 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
6037 |
if (arg1 && lparg1) setCGPointFields(env, arg1, lparg1); |
| 6038 |
if (arg2 && lparg2) setControlFontStyleRecFields(env, arg2, lparg2); |
6038 |
OS_NATIVE_EXIT(env, that, GetWindowResizeLimits_FUNC); |
| 6039 |
if (arg0 && lparg0) setCGRectFields(env, arg0, lparg0); |
6039 |
return rc; |
| 6040 |
OS_NATIVE_EXIT(env, that, HIComboBoxCreate_FUNC); |
6040 |
} |
| 6041 |
return rc; |
6041 |
#endif |
| 6042 |
} |
6042 |
|
| 6043 |
#endif |
6043 |
#ifndef NO_GetWindowStructureWidths |
| 6044 |
|
6044 |
JNIEXPORT void JNICALL OS_NATIVE(GetWindowStructureWidths) |
| 6045 |
#ifndef NO_HIComboBoxGetItemCount |
6045 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 6046 |
JNIEXPORT jint JNICALL OS_NATIVE(HIComboBoxGetItemCount) |
6046 |
{ |
| 6047 |
(JNIEnv *env, jclass that, jint arg0) |
6047 |
Rect _arg1, *lparg1=NULL; |
| 6048 |
{ |
6048 |
OS_NATIVE_ENTER(env, that, GetWindowStructureWidths_FUNC); |
| 6049 |
jint rc = 0; |
6049 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 6050 |
OS_NATIVE_ENTER(env, that, HIComboBoxGetItemCount_FUNC); |
6050 |
GetWindowStructureWidths((WindowRef)arg0, (Rect *)lparg1); |
| 6051 |
rc = (jint)HIComboBoxGetItemCount((HIViewRef)arg0); |
6051 |
fail: |
| 6052 |
OS_NATIVE_EXIT(env, that, HIComboBoxGetItemCount_FUNC); |
6052 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 6053 |
return rc; |
6053 |
OS_NATIVE_EXIT(env, that, GetWindowStructureWidths_FUNC); |
| 6054 |
} |
6054 |
} |
| 6055 |
#endif |
6055 |
#endif |
| 6056 |
|
6056 |
|
| 6057 |
#ifndef NO_HIComboBoxInsertTextItemAtIndex |
6057 |
#ifndef NO_HIComboBoxAppendTextItem |
| 6058 |
JNIEXPORT jint JNICALL OS_NATIVE(HIComboBoxInsertTextItemAtIndex) |
6058 |
JNIEXPORT jint JNICALL OS_NATIVE(HIComboBoxAppendTextItem) |
| 6059 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
6059 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
| 6060 |
{ |
6060 |
{ |
| 6061 |
jint rc = 0; |
6061 |
jint *lparg2=NULL; |
| 6062 |
OS_NATIVE_ENTER(env, that, HIComboBoxInsertTextItemAtIndex_FUNC); |
6062 |
jint rc = 0; |
| 6063 |
rc = (jint)HIComboBoxInsertTextItemAtIndex((HIViewRef)arg0, (CFIndex)arg1, (CFStringRef)arg2); |
6063 |
OS_NATIVE_ENTER(env, that, HIComboBoxAppendTextItem_FUNC); |
| 6064 |
OS_NATIVE_EXIT(env, that, HIComboBoxInsertTextItemAtIndex_FUNC); |
6064 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 6065 |
return rc; |
6065 |
rc = (jint)HIComboBoxAppendTextItem((HIViewRef)arg0, (CFStringRef)arg1, (CFIndex *)lparg2); |
| 6066 |
} |
6066 |
fail: |
| 6067 |
#endif |
6067 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 6068 |
|
6068 |
OS_NATIVE_EXIT(env, that, HIComboBoxAppendTextItem_FUNC); |
| 6069 |
#ifndef NO_HIComboBoxRemoveItemAtIndex |
6069 |
return rc; |
| 6070 |
JNIEXPORT jint JNICALL OS_NATIVE(HIComboBoxRemoveItemAtIndex) |
6070 |
} |
| 6071 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
6071 |
#endif |
| 6072 |
{ |
6072 |
|
| 6073 |
jint rc = 0; |
6073 |
#ifndef NO_HIComboBoxCopyTextItemAtIndex |
| 6074 |
OS_NATIVE_ENTER(env, that, HIComboBoxRemoveItemAtIndex_FUNC); |
6074 |
JNIEXPORT jint JNICALL OS_NATIVE(HIComboBoxCopyTextItemAtIndex) |
| 6075 |
rc = (jint)HIComboBoxRemoveItemAtIndex((HIViewRef)arg0, (CFIndex)arg1); |
6075 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
| 6076 |
OS_NATIVE_EXIT(env, that, HIComboBoxRemoveItemAtIndex_FUNC); |
6076 |
{ |
| 6077 |
return rc; |
6077 |
jint *lparg2=NULL; |
| 6078 |
} |
6078 |
jint rc = 0; |
| 6079 |
#endif |
6079 |
OS_NATIVE_ENTER(env, that, HIComboBoxCopyTextItemAtIndex_FUNC); |
| 6080 |
|
6080 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 6081 |
#ifndef NO_HIObjectCopyClassID |
6081 |
rc = (jint)HIComboBoxCopyTextItemAtIndex((HIViewRef)arg0, (CFIndex)arg1, (CFStringRef *)lparg2); |
| 6082 |
JNIEXPORT jint JNICALL OS_NATIVE(HIObjectCopyClassID) |
6082 |
fail: |
| 6083 |
(JNIEnv *env, jclass that, jint arg0) |
6083 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 6084 |
{ |
6084 |
OS_NATIVE_EXIT(env, that, HIComboBoxCopyTextItemAtIndex_FUNC); |
| 6085 |
jint rc = 0; |
6085 |
return rc; |
| 6086 |
OS_NATIVE_ENTER(env, that, HIObjectCopyClassID_FUNC); |
6086 |
} |
| 6087 |
rc = (jint)HIObjectCopyClassID((HIObjectRef)arg0); |
6087 |
#endif |
| 6088 |
OS_NATIVE_EXIT(env, that, HIObjectCopyClassID_FUNC); |
6088 |
|
| 6089 |
return rc; |
6089 |
#ifndef NO_HIComboBoxCreate |
| 6090 |
} |
6090 |
JNIEXPORT jint JNICALL OS_NATIVE(HIComboBoxCreate) |
| 6091 |
#endif |
6091 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jobject arg2, jint arg3, jint arg4, jintArray arg5) |
| 6092 |
|
6092 |
{ |
| 6093 |
#ifndef NO_HIObjectCreate |
6093 |
CGRect _arg0, *lparg0=NULL; |
| 6094 |
JNIEXPORT jint JNICALL OS_NATIVE(HIObjectCreate) |
6094 |
ControlFontStyleRec _arg2, *lparg2=NULL; |
| 6095 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
6095 |
jint *lparg5=NULL; |
| 6096 |
{ |
6096 |
jint rc = 0; |
| 6097 |
jint *lparg2=NULL; |
6097 |
OS_NATIVE_ENTER(env, that, HIComboBoxCreate_FUNC); |
| 6098 |
jint rc = 0; |
6098 |
if (arg0) if ((lparg0 = getCGRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 6099 |
OS_NATIVE_ENTER(env, that, HIObjectCreate_FUNC); |
6099 |
if (arg2) if ((lparg2 = getControlFontStyleRecFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 6100 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
6100 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 6101 |
rc = (jint)HIObjectCreate((CFStringRef)arg0, (EventRef)arg1, (HIObjectRef *)lparg2); |
6101 |
rc = (jint)HIComboBoxCreate((const HIRect *)lparg0, (CFStringRef)arg1, (const ControlFontStyleRec *)lparg2, (CFArrayRef)arg3, (OptionBits)arg4, (HIViewRef *)lparg5); |
| 6102 |
fail: |
6102 |
fail: |
| 6103 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
6103 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 6104 |
OS_NATIVE_EXIT(env, that, HIObjectCreate_FUNC); |
6104 |
if (arg2 && lparg2) setControlFontStyleRecFields(env, arg2, lparg2); |
| 6105 |
return rc; |
6105 |
if (arg0 && lparg0) setCGRectFields(env, arg0, lparg0); |
| 6106 |
} |
6106 |
OS_NATIVE_EXIT(env, that, HIComboBoxCreate_FUNC); |
| 6107 |
#endif |
6107 |
return rc; |
| 6108 |
|
6108 |
} |
| 6109 |
#ifndef NO_HIObjectRegisterSubclass |
6109 |
#endif |
| 6110 |
JNIEXPORT jint JNICALL OS_NATIVE(HIObjectRegisterSubclass) |
6110 |
|
| 6111 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jintArray arg5, jint arg6, jintArray arg7) |
6111 |
#ifndef NO_HIComboBoxGetItemCount |
| 6112 |
{ |
6112 |
JNIEXPORT jint JNICALL OS_NATIVE(HIComboBoxGetItemCount) |
| 6113 |
jint *lparg5=NULL; |
6113 |
(JNIEnv *env, jclass that, jint arg0) |
| 6114 |
jint *lparg7=NULL; |
6114 |
{ |
| 6115 |
jint rc = 0; |
6115 |
jint rc = 0; |
| 6116 |
OS_NATIVE_ENTER(env, that, HIObjectRegisterSubclass_FUNC); |
6116 |
OS_NATIVE_ENTER(env, that, HIComboBoxGetItemCount_FUNC); |
| 6117 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
6117 |
rc = (jint)HIComboBoxGetItemCount((HIViewRef)arg0); |
| 6118 |
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail; |
6118 |
OS_NATIVE_EXIT(env, that, HIComboBoxGetItemCount_FUNC); |
| 6119 |
rc = (jint)HIObjectRegisterSubclass((CFStringRef)arg0, (CFStringRef)arg1, (OptionBits)arg2, (EventHandlerUPP)arg3, (UInt32)arg4, (const EventTypeSpec *)lparg5, (void *)arg6, (HIObjectClassRef *)lparg7); |
6119 |
return rc; |
| 6120 |
fail: |
6120 |
} |
| 6121 |
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0); |
6121 |
#endif |
| 6122 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
6122 |
|
| 6123 |
OS_NATIVE_EXIT(env, that, HIObjectRegisterSubclass_FUNC); |
6123 |
#ifndef NO_HIComboBoxInsertTextItemAtIndex |
| 6124 |
return rc; |
6124 |
JNIEXPORT jint JNICALL OS_NATIVE(HIComboBoxInsertTextItemAtIndex) |
| 6125 |
} |
6125 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 6126 |
#endif |
6126 |
{ |
| 6127 |
|
6127 |
jint rc = 0; |
| 6128 |
#ifndef NO_HIViewAddSubview |
6128 |
OS_NATIVE_ENTER(env, that, HIComboBoxInsertTextItemAtIndex_FUNC); |
| 6129 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewAddSubview) |
6129 |
rc = (jint)HIComboBoxInsertTextItemAtIndex((HIViewRef)arg0, (CFIndex)arg1, (CFStringRef)arg2); |
| 6130 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
6130 |
OS_NATIVE_EXIT(env, that, HIComboBoxInsertTextItemAtIndex_FUNC); |
| 6131 |
{ |
6131 |
return rc; |
| 6132 |
jint rc = 0; |
6132 |
} |
| 6133 |
OS_NATIVE_ENTER(env, that, HIViewAddSubview_FUNC); |
6133 |
#endif |
| 6134 |
rc = (jint)HIViewAddSubview((HIViewRef)arg0, (HIViewRef)arg1); |
6134 |
|
| 6135 |
OS_NATIVE_EXIT(env, that, HIViewAddSubview_FUNC); |
6135 |
#ifndef NO_HIComboBoxRemoveItemAtIndex |
| 6136 |
return rc; |
6136 |
JNIEXPORT jint JNICALL OS_NATIVE(HIComboBoxRemoveItemAtIndex) |
| 6137 |
} |
6137 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 6138 |
#endif |
6138 |
{ |
| 6139 |
|
6139 |
jint rc = 0; |
| 6140 |
#ifndef NO_HIViewClick |
6140 |
OS_NATIVE_ENTER(env, that, HIComboBoxRemoveItemAtIndex_FUNC); |
| 6141 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewClick) |
6141 |
rc = (jint)HIComboBoxRemoveItemAtIndex((HIViewRef)arg0, (CFIndex)arg1); |
| 6142 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
6142 |
OS_NATIVE_EXIT(env, that, HIComboBoxRemoveItemAtIndex_FUNC); |
| 6143 |
{ |
6143 |
return rc; |
| 6144 |
jint rc = 0; |
6144 |
} |
| 6145 |
OS_NATIVE_ENTER(env, that, HIViewClick_FUNC); |
6145 |
#endif |
| 6146 |
rc = (jint)HIViewClick((HIViewRef)arg0, (EventRef)arg1); |
6146 |
|
| 6147 |
OS_NATIVE_EXIT(env, that, HIViewClick_FUNC); |
6147 |
#ifndef NO_HIObjectCopyClassID |
| 6148 |
return rc; |
6148 |
JNIEXPORT jint JNICALL OS_NATIVE(HIObjectCopyClassID) |
| 6149 |
} |
6149 |
(JNIEnv *env, jclass that, jint arg0) |
| 6150 |
#endif |
6150 |
{ |
| 6151 |
|
6151 |
jint rc = 0; |
| 6152 |
#ifndef NO_HIViewConvertPoint |
6152 |
OS_NATIVE_ENTER(env, that, HIObjectCopyClassID_FUNC); |
| 6153 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewConvertPoint) |
6153 |
rc = (jint)HIObjectCopyClassID((HIObjectRef)arg0); |
| 6154 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2) |
6154 |
OS_NATIVE_EXIT(env, that, HIObjectCopyClassID_FUNC); |
| 6155 |
{ |
6155 |
return rc; |
| 6156 |
CGPoint _arg0, *lparg0=NULL; |
6156 |
} |
| 6157 |
jint rc = 0; |
6157 |
#endif |
| 6158 |
OS_NATIVE_ENTER(env, that, HIViewConvertPoint_FUNC); |
6158 |
|
| 6159 |
if (arg0) if ((lparg0 = getCGPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
6159 |
#ifndef NO_HIObjectCreate |
| 6160 |
rc = (jint)HIViewConvertPoint((HIPoint *)lparg0, (HIViewRef)arg1, (HIViewRef)arg2); |
6160 |
JNIEXPORT jint JNICALL OS_NATIVE(HIObjectCreate) |
| 6161 |
fail: |
6161 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
| 6162 |
if (arg0 && lparg0) setCGPointFields(env, arg0, lparg0); |
6162 |
{ |
| 6163 |
OS_NATIVE_EXIT(env, that, HIViewConvertPoint_FUNC); |
6163 |
jint *lparg2=NULL; |
| 6164 |
return rc; |
6164 |
jint rc = 0; |
| 6165 |
} |
6165 |
OS_NATIVE_ENTER(env, that, HIObjectCreate_FUNC); |
| 6166 |
#endif |
6166 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 6167 |
|
6167 |
rc = (jint)HIObjectCreate((CFStringRef)arg0, (EventRef)arg1, (HIObjectRef *)lparg2); |
| 6168 |
#ifndef NO_HIViewCreateOffscreenImage |
6168 |
fail: |
| 6169 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewCreateOffscreenImage) |
6169 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 6170 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2, jintArray arg3) |
6170 |
OS_NATIVE_EXIT(env, that, HIObjectCreate_FUNC); |
| 6171 |
{ |
6171 |
return rc; |
| 6172 |
CGRect _arg2, *lparg2=NULL; |
6172 |
} |
| 6173 |
jint *lparg3=NULL; |
6173 |
#endif |
| 6174 |
jint rc = 0; |
6174 |
|
| 6175 |
OS_NATIVE_ENTER(env, that, HIViewCreateOffscreenImage_FUNC); |
6175 |
#ifndef NO_HIObjectRegisterSubclass |
| 6176 |
if (arg2) if ((lparg2 = getCGRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
6176 |
JNIEXPORT jint JNICALL OS_NATIVE(HIObjectRegisterSubclass) |
| 6177 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
6177 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jintArray arg5, jint arg6, jintArray arg7) |
| 6178 |
rc = (jint)HIViewCreateOffscreenImage((HIViewRef)arg0, (OptionBits)arg1, (HIRect *)lparg2, (CGImageRef *)lparg3); |
6178 |
{ |
| 6179 |
fail: |
6179 |
jint *lparg5=NULL; |
| 6180 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
6180 |
jint *lparg7=NULL; |
| 6181 |
if (arg2 && lparg2) setCGRectFields(env, arg2, lparg2); |
6181 |
jint rc = 0; |
| 6182 |
OS_NATIVE_EXIT(env, that, HIViewCreateOffscreenImage_FUNC); |
6182 |
OS_NATIVE_ENTER(env, that, HIObjectRegisterSubclass_FUNC); |
| 6183 |
return rc; |
6183 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 6184 |
} |
6184 |
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail; |
| 6185 |
#endif |
6185 |
rc = (jint)HIObjectRegisterSubclass((CFStringRef)arg0, (CFStringRef)arg1, (OptionBits)arg2, (EventHandlerUPP)arg3, (UInt32)arg4, (const EventTypeSpec *)lparg5, (void *)arg6, (HIObjectClassRef *)lparg7); |
| 6186 |
|
6186 |
fail: |
| 6187 |
#ifndef NO_HIViewFindByID |
6187 |
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0); |
| 6188 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewFindByID) |
6188 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 6189 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
6189 |
OS_NATIVE_EXIT(env, that, HIObjectRegisterSubclass_FUNC); |
| 6190 |
{ |
6190 |
return rc; |
| 6191 |
jint *lparg2=NULL; |
6191 |
} |
| 6192 |
jint rc = 0; |
6192 |
#endif |
| 6193 |
OS_NATIVE_ENTER(env, that, HIViewFindByID_FUNC); |
6193 |
|
| 6194 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
6194 |
#ifndef NO_HIViewAddSubview |
| 6195 |
rc = (jint)HIViewFindByID((HIViewRef)arg0, *(HIViewID *)arg1, (HIViewRef *)lparg2); |
6195 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewAddSubview) |
| 6196 |
fail: |
6196 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 6197 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
6197 |
{ |
| 6198 |
OS_NATIVE_EXIT(env, that, HIViewFindByID_FUNC); |
6198 |
jint rc = 0; |
| 6199 |
return rc; |
6199 |
OS_NATIVE_ENTER(env, that, HIViewAddSubview_FUNC); |
| 6200 |
} |
6200 |
rc = (jint)HIViewAddSubview((HIViewRef)arg0, (HIViewRef)arg1); |
| 6201 |
#endif |
6201 |
OS_NATIVE_EXIT(env, that, HIViewAddSubview_FUNC); |
| 6202 |
|
6202 |
return rc; |
| 6203 |
#ifndef NO_HIViewGetFirstSubview |
6203 |
} |
| 6204 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewGetFirstSubview) |
6204 |
#endif |
| 6205 |
(JNIEnv *env, jclass that, jint arg0) |
6205 |
|
| 6206 |
{ |
6206 |
#ifndef NO_HIViewClick |
| 6207 |
jint rc = 0; |
6207 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewClick) |
| 6208 |
OS_NATIVE_ENTER(env, that, HIViewGetFirstSubview_FUNC); |
6208 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 6209 |
rc = (jint)HIViewGetFirstSubview((HIViewRef)arg0); |
6209 |
{ |
| 6210 |
OS_NATIVE_EXIT(env, that, HIViewGetFirstSubview_FUNC); |
6210 |
jint rc = 0; |
| 6211 |
return rc; |
6211 |
OS_NATIVE_ENTER(env, that, HIViewClick_FUNC); |
| 6212 |
} |
6212 |
rc = (jint)HIViewClick((HIViewRef)arg0, (EventRef)arg1); |
| 6213 |
#endif |
6213 |
OS_NATIVE_EXIT(env, that, HIViewClick_FUNC); |
| 6214 |
|
6214 |
return rc; |
| 6215 |
#ifndef NO_HIViewGetFrame |
6215 |
} |
| 6216 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewGetFrame) |
6216 |
#endif |
| 6217 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
6217 |
|
| 6218 |
{ |
6218 |
#ifndef NO_HIViewConvertPoint |
| 6219 |
CGRect _arg1, *lparg1=NULL; |
6219 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewConvertPoint) |
| 6220 |
jint rc = 0; |
6220 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2) |
| 6221 |
OS_NATIVE_ENTER(env, that, HIViewGetFrame_FUNC); |
6221 |
{ |
| 6222 |
if (arg1) if ((lparg1 = getCGRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
6222 |
CGPoint _arg0, *lparg0=NULL; |
| 6223 |
rc = (jint)HIViewGetFrame((HIViewRef)arg0, (HIRect *)lparg1); |
6223 |
jint rc = 0; |
| 6224 |
fail: |
6224 |
OS_NATIVE_ENTER(env, that, HIViewConvertPoint_FUNC); |
| 6225 |
if (arg1 && lparg1) setCGRectFields(env, arg1, lparg1); |
6225 |
if (arg0) if ((lparg0 = getCGPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 6226 |
OS_NATIVE_EXIT(env, that, HIViewGetFrame_FUNC); |
6226 |
rc = (jint)HIViewConvertPoint((HIPoint *)lparg0, (HIViewRef)arg1, (HIViewRef)arg2); |
| 6227 |
return rc; |
6227 |
fail: |
| 6228 |
} |
6228 |
if (arg0 && lparg0) setCGPointFields(env, arg0, lparg0); |
| 6229 |
#endif |
6229 |
OS_NATIVE_EXIT(env, that, HIViewConvertPoint_FUNC); |
| 6230 |
|
6230 |
return rc; |
| 6231 |
#ifndef NO_HIViewGetLastSubview |
6231 |
} |
| 6232 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewGetLastSubview) |
6232 |
#endif |
| 6233 |
(JNIEnv *env, jclass that, jint arg0) |
6233 |
|
| 6234 |
{ |
6234 |
#ifndef NO_HIViewCreateOffscreenImage |
| 6235 |
jint rc = 0; |
6235 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewCreateOffscreenImage) |
| 6236 |
OS_NATIVE_ENTER(env, that, HIViewGetLastSubview_FUNC); |
6236 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2, jintArray arg3) |
| 6237 |
rc = (jint)HIViewGetLastSubview((HIViewRef)arg0); |
6237 |
{ |
| 6238 |
OS_NATIVE_EXIT(env, that, HIViewGetLastSubview_FUNC); |
6238 |
CGRect _arg2, *lparg2=NULL; |
| 6239 |
return rc; |
6239 |
jint *lparg3=NULL; |
| 6240 |
} |
6240 |
jint rc = 0; |
| 6241 |
#endif |
6241 |
OS_NATIVE_ENTER(env, that, HIViewCreateOffscreenImage_FUNC); |
| 6242 |
|
6242 |
if (arg2) if ((lparg2 = getCGRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 6243 |
#ifndef NO_HIViewGetNextView |
6243 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 6244 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewGetNextView) |
6244 |
rc = (jint)HIViewCreateOffscreenImage((HIViewRef)arg0, (OptionBits)arg1, (HIRect *)lparg2, (CGImageRef *)lparg3); |
| 6245 |
(JNIEnv *env, jclass that, jint arg0) |
6245 |
fail: |
| 6246 |
{ |
6246 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 6247 |
jint rc = 0; |
6247 |
if (arg2 && lparg2) setCGRectFields(env, arg2, lparg2); |
| 6248 |
OS_NATIVE_ENTER(env, that, HIViewGetNextView_FUNC); |
6248 |
OS_NATIVE_EXIT(env, that, HIViewCreateOffscreenImage_FUNC); |
| 6249 |
rc = (jint)HIViewGetNextView((HIViewRef)arg0); |
6249 |
return rc; |
| 6250 |
OS_NATIVE_EXIT(env, that, HIViewGetNextView_FUNC); |
6250 |
} |
| 6251 |
return rc; |
6251 |
#endif |
| 6252 |
} |
6252 |
|
| 6253 |
#endif |
6253 |
#ifndef NO_HIViewFindByID |
| 6254 |
|
6254 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewFindByID) |
| 6255 |
#ifndef NO_HIViewGetRoot |
6255 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
| 6256 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewGetRoot) |
6256 |
{ |
| 6257 |
(JNIEnv *env, jclass that, jint arg0) |
6257 |
jint *lparg2=NULL; |
| 6258 |
{ |
6258 |
jint rc = 0; |
| 6259 |
jint rc = 0; |
6259 |
OS_NATIVE_ENTER(env, that, HIViewFindByID_FUNC); |
| 6260 |
OS_NATIVE_ENTER(env, that, HIViewGetRoot_FUNC); |
6260 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 6261 |
rc = (jint)HIViewGetRoot((WindowRef)arg0); |
6261 |
rc = (jint)HIViewFindByID((HIViewRef)arg0, *(HIViewID *)arg1, (HIViewRef *)lparg2); |
| 6262 |
OS_NATIVE_EXIT(env, that, HIViewGetRoot_FUNC); |
6262 |
fail: |
| 6263 |
return rc; |
6263 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 6264 |
} |
6264 |
OS_NATIVE_EXIT(env, that, HIViewFindByID_FUNC); |
| 6265 |
#endif |
6265 |
return rc; |
| 6266 |
|
6266 |
} |
| 6267 |
#ifndef NO_HIViewGetSizeConstraints |
6267 |
#endif |
| 6268 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewGetSizeConstraints) |
6268 |
|
| 6269 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jobject arg2) |
6269 |
#ifndef NO_HIViewGetFirstSubview |
| 6270 |
{ |
6270 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewGetFirstSubview) |
| 6271 |
CGRect _arg1, *lparg1=NULL; |
6271 |
(JNIEnv *env, jclass that, jint arg0) |
| 6272 |
CGRect _arg2, *lparg2=NULL; |
6272 |
{ |
| 6273 |
jint rc = 0; |
6273 |
jint rc = 0; |
| 6274 |
OS_NATIVE_ENTER(env, that, HIViewGetSizeConstraints_FUNC); |
6274 |
OS_NATIVE_ENTER(env, that, HIViewGetFirstSubview_FUNC); |
| 6275 |
if (arg1) if ((lparg1 = getCGRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
6275 |
rc = (jint)HIViewGetFirstSubview((HIViewRef)arg0); |
| 6276 |
if (arg2) if ((lparg2 = getCGRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
6276 |
OS_NATIVE_EXIT(env, that, HIViewGetFirstSubview_FUNC); |
| 6277 |
rc = (jint)HIViewGetSizeConstraints((HIViewRef)arg0, (HISize *)lparg1, (HISize *)lparg2); |
6277 |
return rc; |
| 6278 |
fail: |
6278 |
} |
| 6279 |
if (arg2 && lparg2) setCGRectFields(env, arg2, lparg2); |
6279 |
#endif |
| 6280 |
if (arg1 && lparg1) setCGRectFields(env, arg1, lparg1); |
6280 |
|
| 6281 |
OS_NATIVE_EXIT(env, that, HIViewGetSizeConstraints_FUNC); |
6281 |
#ifndef NO_HIViewGetFrame |
| 6282 |
return rc; |
6282 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewGetFrame) |
| 6283 |
} |
6283 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 6284 |
#endif |
6284 |
{ |
| 6285 |
|
6285 |
CGRect _arg1, *lparg1=NULL; |
| 6286 |
#ifndef NO_HIViewGetSubviewHit |
6286 |
jint rc = 0; |
| 6287 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewGetSubviewHit) |
6287 |
OS_NATIVE_ENTER(env, that, HIViewGetFrame_FUNC); |
| 6288 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jboolean arg2, jintArray arg3) |
6288 |
if (arg1) if ((lparg1 = getCGRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 6289 |
{ |
6289 |
rc = (jint)HIViewGetFrame((HIViewRef)arg0, (HIRect *)lparg1); |
| 6290 |
CGPoint _arg1, *lparg1=NULL; |
6290 |
fail: |
| 6291 |
jint *lparg3=NULL; |
6291 |
if (arg1 && lparg1) setCGRectFields(env, arg1, lparg1); |
| 6292 |
jint rc = 0; |
6292 |
OS_NATIVE_EXIT(env, that, HIViewGetFrame_FUNC); |
| 6293 |
OS_NATIVE_ENTER(env, that, HIViewGetSubviewHit_FUNC); |
6293 |
return rc; |
| 6294 |
if (arg1) if ((lparg1 = getCGPointFields(env, arg1, &_arg1)) == NULL) goto fail; |
6294 |
} |
| 6295 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
6295 |
#endif |
| 6296 |
rc = (jint)HIViewGetSubviewHit((HIViewRef)arg0, (CGPoint *)lparg1, (Boolean)arg2, (HIViewRef *)lparg3); |
6296 |
|
| 6297 |
fail: |
6297 |
#ifndef NO_HIViewGetLastSubview |
| 6298 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
6298 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewGetLastSubview) |
| 6299 |
if (arg1 && lparg1) setCGPointFields(env, arg1, lparg1); |
6299 |
(JNIEnv *env, jclass that, jint arg0) |
| 6300 |
OS_NATIVE_EXIT(env, that, HIViewGetSubviewHit_FUNC); |
6300 |
{ |
| 6301 |
return rc; |
6301 |
jint rc = 0; |
| 6302 |
} |
6302 |
OS_NATIVE_ENTER(env, that, HIViewGetLastSubview_FUNC); |
| 6303 |
#endif |
6303 |
rc = (jint)HIViewGetLastSubview((HIViewRef)arg0); |
| 6304 |
|
6304 |
OS_NATIVE_EXIT(env, that, HIViewGetLastSubview_FUNC); |
| 6305 |
#ifndef NO_HIViewGetViewForMouseEvent |
6305 |
return rc; |
| 6306 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewGetViewForMouseEvent) |
6306 |
} |
| 6307 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
6307 |
#endif |
| 6308 |
{ |
6308 |
|
| 6309 |
jint *lparg2=NULL; |
6309 |
#ifndef NO_HIViewGetNextView |
| 6310 |
jint rc = 0; |
6310 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewGetNextView) |
| 6311 |
OS_NATIVE_ENTER(env, that, HIViewGetViewForMouseEvent_FUNC); |
6311 |
(JNIEnv *env, jclass that, jint arg0) |
| 6312 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
6312 |
{ |
| 6313 |
rc = (jint)HIViewGetViewForMouseEvent((HIViewRef)arg0, (EventRef)arg1, (HIViewRef *)lparg2); |
6313 |
jint rc = 0; |
| 6314 |
fail: |
6314 |
OS_NATIVE_ENTER(env, that, HIViewGetNextView_FUNC); |
| 6315 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
6315 |
rc = (jint)HIViewGetNextView((HIViewRef)arg0); |
| 6316 |
OS_NATIVE_EXIT(env, that, HIViewGetViewForMouseEvent_FUNC); |
6316 |
OS_NATIVE_EXIT(env, that, HIViewGetNextView_FUNC); |
| 6317 |
return rc; |
6317 |
return rc; |
| 6318 |
} |
6318 |
} |
| 6319 |
#endif |
6319 |
#endif |
| 6320 |
|
6320 |
|
| 6321 |
#ifndef NO_HIViewIsVisible |
6321 |
#ifndef NO_HIViewGetRoot |
| 6322 |
JNIEXPORT jboolean JNICALL OS_NATIVE(HIViewIsVisible) |
6322 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewGetRoot) |
| 6323 |
(JNIEnv *env, jclass that, jint arg0) |
6323 |
(JNIEnv *env, jclass that, jint arg0) |
| 6324 |
{ |
6324 |
{ |
| 6325 |
jboolean rc = 0; |
6325 |
jint rc = 0; |
| 6326 |
OS_NATIVE_ENTER(env, that, HIViewIsVisible_FUNC); |
6326 |
OS_NATIVE_ENTER(env, that, HIViewGetRoot_FUNC); |
| 6327 |
rc = (jboolean)HIViewIsVisible((HIViewRef)arg0); |
6327 |
rc = (jint)HIViewGetRoot((WindowRef)arg0); |
| 6328 |
OS_NATIVE_EXIT(env, that, HIViewIsVisible_FUNC); |
6328 |
OS_NATIVE_EXIT(env, that, HIViewGetRoot_FUNC); |
| 6329 |
return rc; |
6329 |
return rc; |
| 6330 |
} |
6330 |
} |
| 6331 |
#endif |
6331 |
#endif |
| 6332 |
|
6332 |
|
| 6333 |
#ifndef NO_HIViewRemoveFromSuperview |
6333 |
#ifndef NO_HIViewGetSizeConstraints |
| 6334 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewRemoveFromSuperview) |
6334 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewGetSizeConstraints) |
| 6335 |
(JNIEnv *env, jclass that, jint arg0) |
6335 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jobject arg2) |
| 6336 |
{ |
6336 |
{ |
| 6337 |
jint rc = 0; |
6337 |
CGRect _arg1, *lparg1=NULL; |
| 6338 |
OS_NATIVE_ENTER(env, that, HIViewRemoveFromSuperview_FUNC); |
6338 |
CGRect _arg2, *lparg2=NULL; |
| 6339 |
rc = (jint)HIViewRemoveFromSuperview((HIViewRef)arg0); |
6339 |
jint rc = 0; |
| 6340 |
OS_NATIVE_EXIT(env, that, HIViewRemoveFromSuperview_FUNC); |
6340 |
OS_NATIVE_ENTER(env, that, HIViewGetSizeConstraints_FUNC); |
| 6341 |
return rc; |
6341 |
if (arg1) if ((lparg1 = getCGRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 6342 |
} |
6342 |
if (arg2) if ((lparg2 = getCGRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 6343 |
#endif |
6343 |
rc = (jint)HIViewGetSizeConstraints((HIViewRef)arg0, (HISize *)lparg1, (HISize *)lparg2); |
| 6344 |
|
6344 |
fail: |
| 6345 |
#ifndef NO_HIViewSetBoundsOrigin |
6345 |
if (arg2 && lparg2) setCGRectFields(env, arg2, lparg2); |
| 6346 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewSetBoundsOrigin) |
6346 |
if (arg1 && lparg1) setCGRectFields(env, arg1, lparg1); |
| 6347 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2) |
6347 |
OS_NATIVE_EXIT(env, that, HIViewGetSizeConstraints_FUNC); |
| 6348 |
{ |
6348 |
return rc; |
| 6349 |
jint rc = 0; |
6349 |
} |
| 6350 |
OS_NATIVE_ENTER(env, that, HIViewSetBoundsOrigin_FUNC); |
6350 |
#endif |
| 6351 |
rc = (jint)HIViewSetBoundsOrigin((HIViewRef)arg0, arg1, arg2); |
6351 |
|
| 6352 |
OS_NATIVE_EXIT(env, that, HIViewSetBoundsOrigin_FUNC); |
6352 |
#ifndef NO_HIViewGetSubviewHit |
| 6353 |
return rc; |
6353 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewGetSubviewHit) |
| 6354 |
} |
6354 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jboolean arg2, jintArray arg3) |
| 6355 |
#endif |
6355 |
{ |
| 6356 |
|
6356 |
CGPoint _arg1, *lparg1=NULL; |
| 6357 |
#ifndef NO_HIViewSetDrawingEnabled |
6357 |
jint *lparg3=NULL; |
| 6358 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewSetDrawingEnabled) |
6358 |
jint rc = 0; |
| 6359 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
6359 |
OS_NATIVE_ENTER(env, that, HIViewGetSubviewHit_FUNC); |
| 6360 |
{ |
6360 |
if (arg1) if ((lparg1 = getCGPointFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 6361 |
jint rc = 0; |
6361 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 6362 |
OS_NATIVE_ENTER(env, that, HIViewSetDrawingEnabled_FUNC); |
6362 |
rc = (jint)HIViewGetSubviewHit((HIViewRef)arg0, (CGPoint *)lparg1, (Boolean)arg2, (HIViewRef *)lparg3); |
| 6363 |
rc = (jint)HIViewSetDrawingEnabled((HIViewRef)arg0, (Boolean)arg1); |
6363 |
fail: |
| 6364 |
OS_NATIVE_EXIT(env, that, HIViewSetDrawingEnabled_FUNC); |
6364 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 6365 |
return rc; |
6365 |
if (arg1 && lparg1) setCGPointFields(env, arg1, lparg1); |
| 6366 |
} |
6366 |
OS_NATIVE_EXIT(env, that, HIViewGetSubviewHit_FUNC); |
| 6367 |
#endif |
6367 |
return rc; |
| 6368 |
|
6368 |
} |
| 6369 |
#ifndef NO_HIViewSetFrame |
6369 |
#endif |
| 6370 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewSetFrame) |
6370 |
|
| 6371 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
6371 |
#ifndef NO_HIViewGetViewForMouseEvent |
| 6372 |
{ |
6372 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewGetViewForMouseEvent) |
| 6373 |
CGRect _arg1, *lparg1=NULL; |
6373 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
| 6374 |
jint rc = 0; |
6374 |
{ |
| 6375 |
OS_NATIVE_ENTER(env, that, HIViewSetFrame_FUNC); |
6375 |
jint *lparg2=NULL; |
| 6376 |
if (arg1) if ((lparg1 = getCGRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
6376 |
jint rc = 0; |
| 6377 |
rc = (jint)HIViewSetFrame((HIViewRef)arg0, (const HIRect *)lparg1); |
6377 |
OS_NATIVE_ENTER(env, that, HIViewGetViewForMouseEvent_FUNC); |
| 6378 |
fail: |
6378 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 6379 |
if (arg1 && lparg1) setCGRectFields(env, arg1, lparg1); |
6379 |
rc = (jint)HIViewGetViewForMouseEvent((HIViewRef)arg0, (EventRef)arg1, (HIViewRef *)lparg2); |
| 6380 |
OS_NATIVE_EXIT(env, that, HIViewSetFrame_FUNC); |
6380 |
fail: |
| 6381 |
return rc; |
6381 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 6382 |
} |
6382 |
OS_NATIVE_EXIT(env, that, HIViewGetViewForMouseEvent_FUNC); |
| 6383 |
#endif |
6383 |
return rc; |
| 6384 |
|
6384 |
} |
| 6385 |
#ifndef NO_HIViewSetNeedsDisplay |
6385 |
#endif |
| 6386 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewSetNeedsDisplay) |
6386 |
|
| 6387 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
6387 |
#ifndef NO_HIViewIsVisible |
| 6388 |
{ |
6388 |
JNIEXPORT jboolean JNICALL OS_NATIVE(HIViewIsVisible) |
| 6389 |
jint rc = 0; |
6389 |
(JNIEnv *env, jclass that, jint arg0) |
| 6390 |
OS_NATIVE_ENTER(env, that, HIViewSetNeedsDisplay_FUNC); |
6390 |
{ |
| 6391 |
rc = (jint)HIViewSetNeedsDisplay((HIViewRef)arg0, (Boolean)arg1); |
6391 |
jboolean rc = 0; |
| 6392 |
OS_NATIVE_EXIT(env, that, HIViewSetNeedsDisplay_FUNC); |
6392 |
OS_NATIVE_ENTER(env, that, HIViewIsVisible_FUNC); |
| 6393 |
return rc; |
6393 |
rc = (jboolean)HIViewIsVisible((HIViewRef)arg0); |
| 6394 |
} |
6394 |
OS_NATIVE_EXIT(env, that, HIViewIsVisible_FUNC); |
| 6395 |
#endif |
6395 |
return rc; |
| 6396 |
|
6396 |
} |
| 6397 |
#ifndef NO_HIViewSetNeedsDisplayInRegion |
6397 |
#endif |
| 6398 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewSetNeedsDisplayInRegion) |
6398 |
|
| 6399 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2) |
6399 |
#ifndef NO_HIViewRemoveFromSuperview |
| 6400 |
{ |
6400 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewRemoveFromSuperview) |
| 6401 |
jint rc = 0; |
6401 |
(JNIEnv *env, jclass that, jint arg0) |
| 6402 |
OS_NATIVE_ENTER(env, that, HIViewSetNeedsDisplayInRegion_FUNC); |
6402 |
{ |
| 6403 |
rc = (jint)HIViewSetNeedsDisplayInRegion((HIViewRef)arg0, (RgnHandle)arg1, (Boolean)arg2); |
6403 |
jint rc = 0; |
| 6404 |
OS_NATIVE_EXIT(env, that, HIViewSetNeedsDisplayInRegion_FUNC); |
6404 |
OS_NATIVE_ENTER(env, that, HIViewRemoveFromSuperview_FUNC); |
| 6405 |
return rc; |
6405 |
rc = (jint)HIViewRemoveFromSuperview((HIViewRef)arg0); |
| 6406 |
} |
6406 |
OS_NATIVE_EXIT(env, that, HIViewRemoveFromSuperview_FUNC); |
| 6407 |
#endif |
6407 |
return rc; |
| 6408 |
|
6408 |
} |
| 6409 |
#ifndef NO_HIViewSetVisible |
6409 |
#endif |
| 6410 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewSetVisible) |
6410 |
|
| 6411 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
6411 |
#ifndef NO_HIViewSetBoundsOrigin |
| 6412 |
{ |
6412 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewSetBoundsOrigin) |
| 6413 |
jint rc = 0; |
6413 |
(JNIEnv *env, jclass that, jint arg0, jfloat arg1, jfloat arg2) |
| 6414 |
OS_NATIVE_ENTER(env, that, HIViewSetVisible_FUNC); |
6414 |
{ |
| 6415 |
rc = (jint)HIViewSetVisible((HIViewRef)arg0, (Boolean)arg1); |
6415 |
jint rc = 0; |
| 6416 |
OS_NATIVE_EXIT(env, that, HIViewSetVisible_FUNC); |
6416 |
OS_NATIVE_ENTER(env, that, HIViewSetBoundsOrigin_FUNC); |
| 6417 |
return rc; |
6417 |
rc = (jint)HIViewSetBoundsOrigin((HIViewRef)arg0, arg1, arg2); |
| 6418 |
} |
6418 |
OS_NATIVE_EXIT(env, that, HIViewSetBoundsOrigin_FUNC); |
| 6419 |
#endif |
6419 |
return rc; |
| 6420 |
|
6420 |
} |
| 6421 |
#ifndef NO_HIViewSetZOrder |
6421 |
#endif |
| 6422 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewSetZOrder) |
6422 |
|
| 6423 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
6423 |
#ifndef NO_HIViewSetDrawingEnabled |
| 6424 |
{ |
6424 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewSetDrawingEnabled) |
| 6425 |
jint rc = 0; |
6425 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
| 6426 |
OS_NATIVE_ENTER(env, that, HIViewSetZOrder_FUNC); |
6426 |
{ |
| 6427 |
rc = (jint)HIViewSetZOrder((HIViewRef)arg0, (HIViewZOrderOp)arg1, (HIViewRef)arg2); |
6427 |
jint rc = 0; |
| 6428 |
OS_NATIVE_EXIT(env, that, HIViewSetZOrder_FUNC); |
6428 |
OS_NATIVE_ENTER(env, that, HIViewSetDrawingEnabled_FUNC); |
| 6429 |
return rc; |
6429 |
rc = (jint)HIViewSetDrawingEnabled((HIViewRef)arg0, (Boolean)arg1); |
| 6430 |
} |
6430 |
OS_NATIVE_EXIT(env, that, HIViewSetDrawingEnabled_FUNC); |
| 6431 |
#endif |
6431 |
return rc; |
| 6432 |
|
6432 |
} |
| 6433 |
#ifndef NO_HIViewSimulateClick |
6433 |
#endif |
| 6434 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewSimulateClick) |
6434 |
|
| 6435 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2, jshortArray arg3) |
6435 |
#ifndef NO_HIViewSetFrame |
| 6436 |
{ |
6436 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewSetFrame) |
| 6437 |
jshort *lparg3=NULL; |
6437 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 6438 |
jint rc = 0; |
6438 |
{ |
| 6439 |
OS_NATIVE_ENTER(env, that, HIViewSimulateClick_FUNC); |
6439 |
CGRect _arg1, *lparg1=NULL; |
| 6440 |
if (arg3) if ((lparg3 = (*env)->GetShortArrayElements(env, arg3, NULL)) == NULL) goto fail; |
6440 |
jint rc = 0; |
| 6441 |
rc = (jint)HIViewSimulateClick((HIViewRef)arg0, (HIViewPartCode)arg1, (UInt32)arg2, (ControlPartCode *)lparg3); |
6441 |
OS_NATIVE_ENTER(env, that, HIViewSetFrame_FUNC); |
| 6442 |
fail: |
6442 |
if (arg1) if ((lparg1 = getCGRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 6443 |
if (arg3 && lparg3) (*env)->ReleaseShortArrayElements(env, arg3, lparg3, 0); |
6443 |
rc = (jint)HIViewSetFrame((HIViewRef)arg0, (const HIRect *)lparg1); |
| 6444 |
OS_NATIVE_EXIT(env, that, HIViewSimulateClick_FUNC); |
6444 |
fail: |
| 6445 |
return rc; |
6445 |
if (arg1 && lparg1) setCGRectFields(env, arg1, lparg1); |
| 6446 |
} |
6446 |
OS_NATIVE_EXIT(env, that, HIViewSetFrame_FUNC); |
| 6447 |
#endif |
6447 |
return rc; |
| 6448 |
|
6448 |
} |
| 6449 |
#ifndef NO_HLock |
6449 |
#endif |
| 6450 |
JNIEXPORT void JNICALL OS_NATIVE(HLock) |
6450 |
|
| 6451 |
(JNIEnv *env, jclass that, jint arg0) |
6451 |
#ifndef NO_HIViewSetNeedsDisplay |
| 6452 |
{ |
6452 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewSetNeedsDisplay) |
| 6453 |
OS_NATIVE_ENTER(env, that, HLock_FUNC); |
6453 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
| 6454 |
HLock((Handle)arg0); |
6454 |
{ |
| 6455 |
OS_NATIVE_EXIT(env, that, HLock_FUNC); |
6455 |
jint rc = 0; |
| 6456 |
} |
6456 |
OS_NATIVE_ENTER(env, that, HIViewSetNeedsDisplay_FUNC); |
| 6457 |
#endif |
6457 |
rc = (jint)HIViewSetNeedsDisplay((HIViewRef)arg0, (Boolean)arg1); |
| 6458 |
|
6458 |
OS_NATIVE_EXIT(env, that, HIViewSetNeedsDisplay_FUNC); |
| 6459 |
#ifndef NO_HMGetTagDelay |
6459 |
return rc; |
| 6460 |
JNIEXPORT jint JNICALL OS_NATIVE(HMGetTagDelay) |
6460 |
} |
| 6461 |
(JNIEnv *env, jclass that, jintArray arg0) |
6461 |
#endif |
| 6462 |
{ |
6462 |
|
| 6463 |
jint *lparg0=NULL; |
6463 |
#ifndef NO_HIViewSetNeedsDisplayInRegion |
| 6464 |
jint rc = 0; |
6464 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewSetNeedsDisplayInRegion) |
| 6465 |
OS_NATIVE_ENTER(env, that, HMGetTagDelay_FUNC); |
6465 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2) |
| 6466 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
6466 |
{ |
| 6467 |
rc = (jint)HMGetTagDelay(lparg0); |
6467 |
jint rc = 0; |
| 6468 |
fail: |
6468 |
OS_NATIVE_ENTER(env, that, HIViewSetNeedsDisplayInRegion_FUNC); |
| 6469 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
6469 |
rc = (jint)HIViewSetNeedsDisplayInRegion((HIViewRef)arg0, (RgnHandle)arg1, (Boolean)arg2); |
| 6470 |
OS_NATIVE_EXIT(env, that, HMGetTagDelay_FUNC); |
6470 |
OS_NATIVE_EXIT(env, that, HIViewSetNeedsDisplayInRegion_FUNC); |
| 6471 |
return rc; |
6471 |
return rc; |
| 6472 |
} |
6472 |
} |
| 6473 |
#endif |
6473 |
#endif |
| 6474 |
|
6474 |
|
| 6475 |
#ifndef NO_HMHideTag |
6475 |
#ifndef NO_HIViewSetVisible |
| 6476 |
JNIEXPORT jint JNICALL OS_NATIVE(HMHideTag) |
6476 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewSetVisible) |
| 6477 |
(JNIEnv *env, jclass that) |
6477 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
| 6478 |
{ |
6478 |
{ |
| 6479 |
jint rc = 0; |
6479 |
jint rc = 0; |
| 6480 |
OS_NATIVE_ENTER(env, that, HMHideTag_FUNC); |
6480 |
OS_NATIVE_ENTER(env, that, HIViewSetVisible_FUNC); |
| 6481 |
rc = (jint)HMHideTag(); |
6481 |
rc = (jint)HIViewSetVisible((HIViewRef)arg0, (Boolean)arg1); |
| 6482 |
OS_NATIVE_EXIT(env, that, HMHideTag_FUNC); |
6482 |
OS_NATIVE_EXIT(env, that, HIViewSetVisible_FUNC); |
| 6483 |
return rc; |
6483 |
return rc; |
| 6484 |
} |
6484 |
} |
| 6485 |
#endif |
6485 |
#endif |
| 6486 |
|
6486 |
|
| 6487 |
#ifndef NO_HMInstallControlContentCallback |
6487 |
#ifndef NO_HIViewSetZOrder |
| 6488 |
JNIEXPORT void JNICALL OS_NATIVE(HMInstallControlContentCallback) |
6488 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewSetZOrder) |
| 6489 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
6489 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 6490 |
{ |
6490 |
{ |
| 6491 |
OS_NATIVE_ENTER(env, that, HMInstallControlContentCallback_FUNC); |
6491 |
jint rc = 0; |
| 6492 |
HMInstallControlContentCallback((ControlRef)arg0, (HMControlContentUPP)arg1); |
6492 |
OS_NATIVE_ENTER(env, that, HIViewSetZOrder_FUNC); |
| 6493 |
OS_NATIVE_EXIT(env, that, HMInstallControlContentCallback_FUNC); |
6493 |
rc = (jint)HIViewSetZOrder((HIViewRef)arg0, (HIViewZOrderOp)arg1, (HIViewRef)arg2); |
| 6494 |
} |
6494 |
OS_NATIVE_EXIT(env, that, HIViewSetZOrder_FUNC); |
| 6495 |
#endif |
6495 |
return rc; |
| 6496 |
|
6496 |
} |
| 6497 |
#ifndef NO_HMSetTagDelay |
6497 |
#endif |
| 6498 |
JNIEXPORT jint JNICALL OS_NATIVE(HMSetTagDelay) |
6498 |
|
| 6499 |
(JNIEnv *env, jclass that, jint arg0) |
6499 |
#ifndef NO_HIViewSimulateClick |
| 6500 |
{ |
6500 |
JNIEXPORT jint JNICALL OS_NATIVE(HIViewSimulateClick) |
| 6501 |
jint rc = 0; |
6501 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2, jshortArray arg3) |
| 6502 |
OS_NATIVE_ENTER(env, that, HMSetTagDelay_FUNC); |
6502 |
{ |
| 6503 |
rc = (jint)HMSetTagDelay(arg0); |
6503 |
jshort *lparg3=NULL; |
| 6504 |
OS_NATIVE_EXIT(env, that, HMSetTagDelay_FUNC); |
6504 |
jint rc = 0; |
| 6505 |
return rc; |
6505 |
OS_NATIVE_ENTER(env, that, HIViewSimulateClick_FUNC); |
| 6506 |
} |
6506 |
if (arg3) if ((lparg3 = (*env)->GetShortArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 6507 |
#endif |
6507 |
rc = (jint)HIViewSimulateClick((HIViewRef)arg0, (HIViewPartCode)arg1, (UInt32)arg2, (ControlPartCode *)lparg3); |
| 6508 |
|
6508 |
fail: |
| 6509 |
#ifndef NO_HUnlock |
6509 |
if (arg3 && lparg3) (*env)->ReleaseShortArrayElements(env, arg3, lparg3, 0); |
| 6510 |
JNIEXPORT void JNICALL OS_NATIVE(HUnlock) |
6510 |
OS_NATIVE_EXIT(env, that, HIViewSimulateClick_FUNC); |
| 6511 |
(JNIEnv *env, jclass that, jint arg0) |
6511 |
return rc; |
| 6512 |
{ |
6512 |
} |
| 6513 |
OS_NATIVE_ENTER(env, that, HUnlock_FUNC); |
6513 |
#endif |
| 6514 |
HUnlock((Handle)arg0); |
6514 |
|
| 6515 |
OS_NATIVE_EXIT(env, that, HUnlock_FUNC); |
6515 |
#ifndef NO_HLock |
| 6516 |
} |
6516 |
JNIEXPORT void JNICALL OS_NATIVE(HLock) |
| 6517 |
#endif |
6517 |
(JNIEnv *env, jclass that, jint arg0) |
| 6518 |
|
6518 |
{ |
| 6519 |
#ifndef NO_HandleControlClick |
6519 |
OS_NATIVE_ENTER(env, that, HLock_FUNC); |
| 6520 |
JNIEXPORT jshort JNICALL OS_NATIVE(HandleControlClick) |
6520 |
HLock((Handle)arg0); |
| 6521 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jint arg3) |
6521 |
OS_NATIVE_EXIT(env, that, HLock_FUNC); |
| 6522 |
{ |
6522 |
} |
| 6523 |
Point _arg1, *lparg1=NULL; |
6523 |
#endif |
| 6524 |
jshort rc = 0; |
6524 |
|
| 6525 |
OS_NATIVE_ENTER(env, that, HandleControlClick_FUNC); |
6525 |
#ifndef NO_HMGetTagDelay |
| 6526 |
if (arg1) if ((lparg1 = getPointFields(env, arg1, &_arg1)) == NULL) goto fail; |
6526 |
JNIEXPORT jint JNICALL OS_NATIVE(HMGetTagDelay) |
| 6527 |
rc = (jshort)HandleControlClick((ControlRef)arg0, *lparg1, (EventModifiers)arg2, (ControlActionUPP)arg3); |
6527 |
(JNIEnv *env, jclass that, jintArray arg0) |
| 6528 |
fail: |
6528 |
{ |
| 6529 |
if (arg1 && lparg1) setPointFields(env, arg1, lparg1); |
6529 |
jint *lparg0=NULL; |
| 6530 |
OS_NATIVE_EXIT(env, that, HandleControlClick_FUNC); |
6530 |
jint rc = 0; |
| 6531 |
return rc; |
6531 |
OS_NATIVE_ENTER(env, that, HMGetTagDelay_FUNC); |
| 6532 |
} |
6532 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 6533 |
#endif |
6533 |
rc = (jint)HMGetTagDelay(lparg0); |
| 6534 |
|
6534 |
fail: |
| 6535 |
#ifndef NO_HandleControlSetCursor |
6535 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 6536 |
JNIEXPORT jint JNICALL OS_NATIVE(HandleControlSetCursor) |
6536 |
OS_NATIVE_EXIT(env, that, HMGetTagDelay_FUNC); |
| 6537 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jbooleanArray arg3) |
6537 |
return rc; |
| 6538 |
{ |
6538 |
} |
| 6539 |
Point _arg1, *lparg1=NULL; |
6539 |
#endif |
| 6540 |
jboolean *lparg3=NULL; |
6540 |
|
| 6541 |
jint rc = 0; |
6541 |
#ifndef NO_HMHideTag |
| 6542 |
OS_NATIVE_ENTER(env, that, HandleControlSetCursor_FUNC); |
6542 |
JNIEXPORT jint JNICALL OS_NATIVE(HMHideTag) |
| 6543 |
if (arg1) if ((lparg1 = getPointFields(env, arg1, &_arg1)) == NULL) goto fail; |
6543 |
(JNIEnv *env, jclass that) |
| 6544 |
if (arg3) if ((lparg3 = (*env)->GetBooleanArrayElements(env, arg3, NULL)) == NULL) goto fail; |
6544 |
{ |
| 6545 |
rc = (jint)HandleControlSetCursor((ControlRef)arg0, *lparg1, (EventModifiers)arg2, (Boolean *)lparg3); |
6545 |
jint rc = 0; |
| 6546 |
fail: |
6546 |
OS_NATIVE_ENTER(env, that, HMHideTag_FUNC); |
| 6547 |
if (arg3 && lparg3) (*env)->ReleaseBooleanArrayElements(env, arg3, lparg3, 0); |
6547 |
rc = (jint)HMHideTag(); |
| 6548 |
if (arg1 && lparg1) setPointFields(env, arg1, lparg1); |
6548 |
OS_NATIVE_EXIT(env, that, HMHideTag_FUNC); |
| 6549 |
OS_NATIVE_EXIT(env, that, HandleControlSetCursor_FUNC); |
6549 |
return rc; |
| 6550 |
return rc; |
6550 |
} |
| 6551 |
} |
6551 |
#endif |
| 6552 |
#endif |
6552 |
|
| 6553 |
|
6553 |
#ifndef NO_HMInstallControlContentCallback |
| 6554 |
#ifndef NO_HiWord |
6554 |
JNIEXPORT void JNICALL OS_NATIVE(HMInstallControlContentCallback) |
| 6555 |
JNIEXPORT jshort JNICALL OS_NATIVE(HiWord) |
6555 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 6556 |
(JNIEnv *env, jclass that, jint arg0) |
6556 |
{ |
| 6557 |
{ |
6557 |
OS_NATIVE_ENTER(env, that, HMInstallControlContentCallback_FUNC); |
| 6558 |
jshort rc = 0; |
6558 |
HMInstallControlContentCallback((ControlRef)arg0, (HMControlContentUPP)arg1); |
| 6559 |
OS_NATIVE_ENTER(env, that, HiWord_FUNC); |
6559 |
OS_NATIVE_EXIT(env, that, HMInstallControlContentCallback_FUNC); |
| 6560 |
rc = (jshort)HiWord(arg0); |
6560 |
} |
| 6561 |
OS_NATIVE_EXIT(env, that, HiWord_FUNC); |
6561 |
#endif |
| 6562 |
return rc; |
6562 |
|
| 6563 |
} |
6563 |
#ifndef NO_HMSetTagDelay |
| 6564 |
#endif |
6564 |
JNIEXPORT jint JNICALL OS_NATIVE(HMSetTagDelay) |
| 6565 |
|
6565 |
(JNIEnv *env, jclass that, jint arg0) |
| 6566 |
#ifndef NO_HideWindow |
6566 |
{ |
| 6567 |
JNIEXPORT void JNICALL OS_NATIVE(HideWindow) |
6567 |
jint rc = 0; |
| 6568 |
(JNIEnv *env, jclass that, jint arg0) |
6568 |
OS_NATIVE_ENTER(env, that, HMSetTagDelay_FUNC); |
| 6569 |
{ |
6569 |
rc = (jint)HMSetTagDelay(arg0); |
| 6570 |
OS_NATIVE_ENTER(env, that, HideWindow_FUNC); |
6570 |
OS_NATIVE_EXIT(env, that, HMSetTagDelay_FUNC); |
| 6571 |
HideWindow((WindowRef)arg0); |
6571 |
return rc; |
| 6572 |
OS_NATIVE_EXIT(env, that, HideWindow_FUNC); |
6572 |
} |
| 6573 |
} |
6573 |
#endif |
| 6574 |
#endif |
6574 |
|
| 6575 |
|
6575 |
#ifndef NO_HUnlock |
| 6576 |
#ifndef NO_HiliteMenu |
6576 |
JNIEXPORT void JNICALL OS_NATIVE(HUnlock) |
| 6577 |
JNIEXPORT void JNICALL OS_NATIVE(HiliteMenu) |
6577 |
(JNIEnv *env, jclass that, jint arg0) |
| 6578 |
(JNIEnv *env, jclass that, jshort arg0) |
6578 |
{ |
| 6579 |
{ |
6579 |
OS_NATIVE_ENTER(env, that, HUnlock_FUNC); |
| 6580 |
OS_NATIVE_ENTER(env, that, HiliteMenu_FUNC); |
6580 |
HUnlock((Handle)arg0); |
| 6581 |
HiliteMenu((MenuID)arg0); |
6581 |
OS_NATIVE_EXIT(env, that, HUnlock_FUNC); |
| 6582 |
OS_NATIVE_EXIT(env, that, HiliteMenu_FUNC); |
6582 |
} |
| 6583 |
} |
6583 |
#endif |
| 6584 |
#endif |
6584 |
|
| 6585 |
|
6585 |
#ifndef NO_HandleControlClick |
| 6586 |
#ifndef NO_IconRefToIconFamily |
6586 |
JNIEXPORT jshort JNICALL OS_NATIVE(HandleControlClick) |
| 6587 |
JNIEXPORT jint JNICALL OS_NATIVE(IconRefToIconFamily) |
6587 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jint arg3) |
| 6588 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
6588 |
{ |
| 6589 |
{ |
6589 |
Point _arg1, *lparg1=NULL; |
| 6590 |
jint *lparg2=NULL; |
6590 |
jshort rc = 0; |
| 6591 |
jint rc = 0; |
6591 |
OS_NATIVE_ENTER(env, that, HandleControlClick_FUNC); |
| 6592 |
OS_NATIVE_ENTER(env, that, IconRefToIconFamily_FUNC); |
6592 |
if (arg1) if ((lparg1 = getPointFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 6593 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
6593 |
rc = (jshort)HandleControlClick((ControlRef)arg0, *lparg1, (EventModifiers)arg2, (ControlActionUPP)arg3); |
| 6594 |
rc = (jint)IconRefToIconFamily((IconRef)arg0, (IconSelectorValue)arg1, (IconFamilyHandle *)lparg2); |
6594 |
fail: |
| 6595 |
fail: |
6595 |
if (arg1 && lparg1) setPointFields(env, arg1, lparg1); |
| 6596 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
6596 |
OS_NATIVE_EXIT(env, that, HandleControlClick_FUNC); |
| 6597 |
OS_NATIVE_EXIT(env, that, IconRefToIconFamily_FUNC); |
6597 |
return rc; |
| 6598 |
return rc; |
6598 |
} |
| 6599 |
} |
6599 |
#endif |
| 6600 |
#endif |
6600 |
|
| 6601 |
|
6601 |
#ifndef NO_HandleControlSetCursor |
| 6602 |
#ifndef NO_InitContextualMenus |
6602 |
JNIEXPORT jint JNICALL OS_NATIVE(HandleControlSetCursor) |
| 6603 |
JNIEXPORT jint JNICALL OS_NATIVE(InitContextualMenus) |
6603 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2, jbooleanArray arg3) |
| 6604 |
(JNIEnv *env, jclass that) |
6604 |
{ |
| 6605 |
{ |
6605 |
Point _arg1, *lparg1=NULL; |
| 6606 |
jint rc = 0; |
6606 |
jboolean *lparg3=NULL; |
| 6607 |
OS_NATIVE_ENTER(env, that, InitContextualMenus_FUNC); |
6607 |
jint rc = 0; |
| 6608 |
rc = (jint)InitContextualMenus(); |
6608 |
OS_NATIVE_ENTER(env, that, HandleControlSetCursor_FUNC); |
| 6609 |
OS_NATIVE_EXIT(env, that, InitContextualMenus_FUNC); |
6609 |
if (arg1) if ((lparg1 = getPointFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 6610 |
return rc; |
6610 |
if (arg3) if ((lparg3 = (*env)->GetBooleanArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 6611 |
} |
6611 |
rc = (jint)HandleControlSetCursor((ControlRef)arg0, *lparg1, (EventModifiers)arg2, (Boolean *)lparg3); |
| 6612 |
#endif |
6612 |
fail: |
| 6613 |
|
6613 |
if (arg3 && lparg3) (*env)->ReleaseBooleanArrayElements(env, arg3, lparg3, 0); |
| 6614 |
#ifndef NO_InitCursor |
6614 |
if (arg1 && lparg1) setPointFields(env, arg1, lparg1); |
| 6615 |
JNIEXPORT void JNICALL OS_NATIVE(InitCursor) |
6615 |
OS_NATIVE_EXIT(env, that, HandleControlSetCursor_FUNC); |
| 6616 |
(JNIEnv *env, jclass that) |
6616 |
return rc; |
| 6617 |
{ |
6617 |
} |
| 6618 |
OS_NATIVE_ENTER(env, that, InitCursor_FUNC); |
6618 |
#endif |
| 6619 |
InitCursor(); |
6619 |
|
| 6620 |
OS_NATIVE_EXIT(env, that, InitCursor_FUNC); |
6620 |
#ifndef NO_HiWord |
| 6621 |
} |
6621 |
JNIEXPORT jshort JNICALL OS_NATIVE(HiWord) |
| 6622 |
#endif |
6622 |
(JNIEnv *env, jclass that, jint arg0) |
| 6623 |
|
6623 |
{ |
| 6624 |
#ifndef NO_InitDataBrowserCallbacks |
6624 |
jshort rc = 0; |
| 6625 |
JNIEXPORT jint JNICALL OS_NATIVE(InitDataBrowserCallbacks) |
6625 |
OS_NATIVE_ENTER(env, that, HiWord_FUNC); |
| 6626 |
(JNIEnv *env, jclass that, jobject arg0) |
6626 |
rc = (jshort)HiWord(arg0); |
| 6627 |
{ |
6627 |
OS_NATIVE_EXIT(env, that, HiWord_FUNC); |
| 6628 |
DataBrowserCallbacks _arg0={0}, *lparg0=NULL; |
6628 |
return rc; |
| 6629 |
jint rc = 0; |
6629 |
} |
| 6630 |
OS_NATIVE_ENTER(env, that, InitDataBrowserCallbacks_FUNC); |
6630 |
#endif |
| 6631 |
if (arg0) if ((lparg0 = getDataBrowserCallbacksFields(env, arg0, &_arg0)) == NULL) goto fail; |
6631 |
|
| 6632 |
rc = (jint)InitDataBrowserCallbacks((DataBrowserCallbacks *)lparg0); |
6632 |
#ifndef NO_HideWindow |
| 6633 |
fail: |
6633 |
JNIEXPORT void JNICALL OS_NATIVE(HideWindow) |
| 6634 |
if (arg0 && lparg0) setDataBrowserCallbacksFields(env, arg0, lparg0); |
6634 |
(JNIEnv *env, jclass that, jint arg0) |
| 6635 |
OS_NATIVE_EXIT(env, that, InitDataBrowserCallbacks_FUNC); |
6635 |
{ |
| 6636 |
return rc; |
6636 |
OS_NATIVE_ENTER(env, that, HideWindow_FUNC); |
| 6637 |
} |
6637 |
HideWindow((WindowRef)arg0); |
| 6638 |
#endif |
6638 |
OS_NATIVE_EXIT(env, that, HideWindow_FUNC); |
| 6639 |
|
6639 |
} |
| 6640 |
#ifndef NO_InitDataBrowserCustomCallbacks |
6640 |
#endif |
| 6641 |
JNIEXPORT jint JNICALL OS_NATIVE(InitDataBrowserCustomCallbacks) |
6641 |
|
| 6642 |
(JNIEnv *env, jclass that, jobject arg0) |
6642 |
#ifndef NO_HiliteMenu |
| 6643 |
{ |
6643 |
JNIEXPORT void JNICALL OS_NATIVE(HiliteMenu) |
| 6644 |
DataBrowserCustomCallbacks _arg0, *lparg0=NULL; |
6644 |
(JNIEnv *env, jclass that, jshort arg0) |
| 6645 |
jint rc = 0; |
6645 |
{ |
| 6646 |
OS_NATIVE_ENTER(env, that, InitDataBrowserCustomCallbacks_FUNC); |
6646 |
OS_NATIVE_ENTER(env, that, HiliteMenu_FUNC); |
| 6647 |
if (arg0) if ((lparg0 = getDataBrowserCustomCallbacksFields(env, arg0, &_arg0)) == NULL) goto fail; |
6647 |
HiliteMenu((MenuID)arg0); |
| 6648 |
rc = (jint)InitDataBrowserCustomCallbacks(lparg0); |
6648 |
OS_NATIVE_EXIT(env, that, HiliteMenu_FUNC); |
| 6649 |
fail: |
6649 |
} |
| 6650 |
if (arg0 && lparg0) setDataBrowserCustomCallbacksFields(env, arg0, lparg0); |
6650 |
#endif |
| 6651 |
OS_NATIVE_EXIT(env, that, InitDataBrowserCustomCallbacks_FUNC); |
6651 |
|
| 6652 |
return rc; |
6652 |
#ifndef NO_IconRefToIconFamily |
| 6653 |
} |
6653 |
JNIEXPORT jint JNICALL OS_NATIVE(IconRefToIconFamily) |
| 6654 |
#endif |
6654 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
| 6655 |
|
6655 |
{ |
| 6656 |
#ifndef NO_InsertMenu |
6656 |
jint *lparg2=NULL; |
| 6657 |
JNIEXPORT void JNICALL OS_NATIVE(InsertMenu) |
6657 |
jint rc = 0; |
| 6658 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1) |
6658 |
OS_NATIVE_ENTER(env, that, IconRefToIconFamily_FUNC); |
| 6659 |
{ |
6659 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 6660 |
OS_NATIVE_ENTER(env, that, InsertMenu_FUNC); |
6660 |
rc = (jint)IconRefToIconFamily((IconRef)arg0, (IconSelectorValue)arg1, (IconFamilyHandle *)lparg2); |
| 6661 |
InsertMenu((MenuRef)arg0, (MenuID)arg1); |
6661 |
fail: |
| 6662 |
OS_NATIVE_EXIT(env, that, InsertMenu_FUNC); |
6662 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 6663 |
} |
6663 |
OS_NATIVE_EXIT(env, that, IconRefToIconFamily_FUNC); |
| 6664 |
#endif |
6664 |
return rc; |
| 6665 |
|
6665 |
} |
| 6666 |
#ifndef NO_InsertMenuItemTextWithCFString |
6666 |
#endif |
| 6667 |
JNIEXPORT jint JNICALL OS_NATIVE(InsertMenuItemTextWithCFString) |
6667 |
|
| 6668 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshort arg2, jint arg3, jint arg4) |
6668 |
#ifndef NO_InitContextualMenus |
| 6669 |
{ |
6669 |
JNIEXPORT jint JNICALL OS_NATIVE(InitContextualMenus) |
| 6670 |
jint rc = 0; |
6670 |
(JNIEnv *env, jclass that) |
| 6671 |
OS_NATIVE_ENTER(env, that, InsertMenuItemTextWithCFString_FUNC); |
6671 |
{ |
| 6672 |
rc = (jint)InsertMenuItemTextWithCFString((MenuRef)arg0, (CFStringRef)arg1, (MenuItemIndex)arg2, (MenuItemAttributes)arg3, (MenuCommand)arg4); |
6672 |
jint rc = 0; |
| 6673 |
OS_NATIVE_EXIT(env, that, InsertMenuItemTextWithCFString_FUNC); |
6673 |
OS_NATIVE_ENTER(env, that, InitContextualMenus_FUNC); |
| 6674 |
return rc; |
6674 |
rc = (jint)InitContextualMenus(); |
| 6675 |
} |
6675 |
OS_NATIVE_EXIT(env, that, InitContextualMenus_FUNC); |
| 6676 |
#endif |
6676 |
return rc; |
| 6677 |
|
6677 |
} |
| 6678 |
#ifndef NO_InstallEventHandler |
6678 |
#endif |
| 6679 |
JNIEXPORT jint JNICALL OS_NATIVE(InstallEventHandler) |
6679 |
|
| 6680 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jintArray arg5) |
6680 |
#ifndef NO_InitCursor |
| 6681 |
{ |
6681 |
JNIEXPORT void JNICALL OS_NATIVE(InitCursor) |
| 6682 |
jint *lparg3=NULL; |
6682 |
(JNIEnv *env, jclass that) |
| 6683 |
jint *lparg5=NULL; |
6683 |
{ |
| 6684 |
jint rc = 0; |
6684 |
OS_NATIVE_ENTER(env, that, InitCursor_FUNC); |
| 6685 |
OS_NATIVE_ENTER(env, that, InstallEventHandler_FUNC); |
6685 |
InitCursor(); |
| 6686 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
6686 |
OS_NATIVE_EXIT(env, that, InitCursor_FUNC); |
| 6687 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
6687 |
} |
| 6688 |
rc = (jint)InstallEventHandler((EventTargetRef)arg0, (EventHandlerUPP)arg1, (UInt32)arg2, (const EventTypeSpec *)lparg3, (void *)arg4, (EventHandlerRef *)lparg5); |
6688 |
#endif |
| 6689 |
fail: |
6689 |
|
| 6690 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
6690 |
#ifndef NO_InitDataBrowserCallbacks |
| 6691 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
6691 |
JNIEXPORT jint JNICALL OS_NATIVE(InitDataBrowserCallbacks) |
| 6692 |
OS_NATIVE_EXIT(env, that, InstallEventHandler_FUNC); |
6692 |
(JNIEnv *env, jclass that, jobject arg0) |
| 6693 |
return rc; |
6693 |
{ |
| 6694 |
} |
6694 |
DataBrowserCallbacks _arg0={0}, *lparg0=NULL; |
| 6695 |
#endif |
6695 |
jint rc = 0; |
| 6696 |
|
6696 |
OS_NATIVE_ENTER(env, that, InitDataBrowserCallbacks_FUNC); |
| 6697 |
#ifndef NO_InstallEventLoopIdleTimer |
6697 |
if (arg0) if ((lparg0 = getDataBrowserCallbacksFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 6698 |
JNIEXPORT jint JNICALL OS_NATIVE(InstallEventLoopIdleTimer) |
6698 |
rc = (jint)InitDataBrowserCallbacks((DataBrowserCallbacks *)lparg0); |
| 6699 |
(JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jint arg3, jint arg4, jintArray arg5) |
6699 |
fail: |
| 6700 |
{ |
6700 |
if (arg0 && lparg0) setDataBrowserCallbacksFields(env, arg0, lparg0); |
| 6701 |
jint *lparg5=NULL; |
6701 |
OS_NATIVE_EXIT(env, that, InitDataBrowserCallbacks_FUNC); |
| 6702 |
jint rc = 0; |
6702 |
return rc; |
| 6703 |
OS_NATIVE_ENTER(env, that, InstallEventLoopIdleTimer_FUNC); |
6703 |
} |
| 6704 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
6704 |
#endif |
| 6705 |
rc = (jint)InstallEventLoopIdleTimer((EventLoopRef)arg0, (EventTimerInterval)arg1, (EventTimerInterval)arg2, (EventLoopIdleTimerUPP)arg3, (void *)arg4, (EventLoopTimerRef *)lparg5); |
6705 |
|
| 6706 |
fail: |
6706 |
#ifndef NO_InitDataBrowserCustomCallbacks |
| 6707 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
6707 |
JNIEXPORT jint JNICALL OS_NATIVE(InitDataBrowserCustomCallbacks) |
| 6708 |
OS_NATIVE_EXIT(env, that, InstallEventLoopIdleTimer_FUNC); |
6708 |
(JNIEnv *env, jclass that, jobject arg0) |
| 6709 |
return rc; |
6709 |
{ |
| 6710 |
} |
6710 |
DataBrowserCustomCallbacks _arg0, *lparg0=NULL; |
| 6711 |
#endif |
6711 |
jint rc = 0; |
| 6712 |
|
6712 |
OS_NATIVE_ENTER(env, that, InitDataBrowserCustomCallbacks_FUNC); |
| 6713 |
#ifndef NO_InstallEventLoopTimer |
6713 |
if (arg0) if ((lparg0 = getDataBrowserCustomCallbacksFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 6714 |
JNIEXPORT jint JNICALL OS_NATIVE(InstallEventLoopTimer) |
6714 |
rc = (jint)InitDataBrowserCustomCallbacks(lparg0); |
| 6715 |
(JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jint arg3, jint arg4, jintArray arg5) |
6715 |
fail: |
| 6716 |
{ |
6716 |
if (arg0 && lparg0) setDataBrowserCustomCallbacksFields(env, arg0, lparg0); |
| 6717 |
jint *lparg5=NULL; |
6717 |
OS_NATIVE_EXIT(env, that, InitDataBrowserCustomCallbacks_FUNC); |
| 6718 |
jint rc = 0; |
6718 |
return rc; |
| 6719 |
OS_NATIVE_ENTER(env, that, InstallEventLoopTimer_FUNC); |
6719 |
} |
| 6720 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
6720 |
#endif |
| 6721 |
rc = (jint)InstallEventLoopTimer((EventLoopRef)arg0, (EventTimerInterval)arg1, (EventTimerInterval)arg2, (EventLoopTimerUPP)arg3, (void *)arg4, (EventLoopTimerRef *)lparg5); |
6721 |
|
| 6722 |
fail: |
6722 |
#ifndef NO_InsertMenu |
| 6723 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
6723 |
JNIEXPORT void JNICALL OS_NATIVE(InsertMenu) |
| 6724 |
OS_NATIVE_EXIT(env, that, InstallEventLoopTimer_FUNC); |
6724 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1) |
| 6725 |
return rc; |
6725 |
{ |
| 6726 |
} |
6726 |
OS_NATIVE_ENTER(env, that, InsertMenu_FUNC); |
| 6727 |
#endif |
6727 |
InsertMenu((MenuRef)arg0, (MenuID)arg1); |
| 6728 |
|
6728 |
OS_NATIVE_EXIT(env, that, InsertMenu_FUNC); |
| 6729 |
#ifndef NO_InstallReceiveHandler |
6729 |
} |
| 6730 |
JNIEXPORT jint JNICALL OS_NATIVE(InstallReceiveHandler) |
6730 |
#endif |
| 6731 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
6731 |
|
| 6732 |
{ |
6732 |
#ifndef NO_InsertMenuItemTextWithCFString |
| 6733 |
jint *lparg2=NULL; |
6733 |
JNIEXPORT jint JNICALL OS_NATIVE(InsertMenuItemTextWithCFString) |
| 6734 |
jint rc = 0; |
6734 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshort arg2, jint arg3, jint arg4) |
| 6735 |
OS_NATIVE_ENTER(env, that, InstallReceiveHandler_FUNC); |
6735 |
{ |
| 6736 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
6736 |
jint rc = 0; |
| 6737 |
rc = (jint)InstallReceiveHandler((DragReceiveHandlerUPP)arg0, (WindowRef)arg1, (void *)lparg2); |
6737 |
OS_NATIVE_ENTER(env, that, InsertMenuItemTextWithCFString_FUNC); |
| 6738 |
fail: |
6738 |
rc = (jint)InsertMenuItemTextWithCFString((MenuRef)arg0, (CFStringRef)arg1, (MenuItemIndex)arg2, (MenuItemAttributes)arg3, (MenuCommand)arg4); |
| 6739 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
6739 |
OS_NATIVE_EXIT(env, that, InsertMenuItemTextWithCFString_FUNC); |
| 6740 |
OS_NATIVE_EXIT(env, that, InstallReceiveHandler_FUNC); |
6740 |
return rc; |
| 6741 |
return rc; |
6741 |
} |
| 6742 |
} |
6742 |
#endif |
| 6743 |
#endif |
6743 |
|
| 6744 |
|
6744 |
#ifndef NO_InstallEventHandler |
| 6745 |
#ifndef NO_InstallTrackingHandler |
6745 |
JNIEXPORT jint JNICALL OS_NATIVE(InstallEventHandler) |
| 6746 |
JNIEXPORT jint JNICALL OS_NATIVE(InstallTrackingHandler) |
6746 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jintArray arg5) |
| 6747 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
6747 |
{ |
| 6748 |
{ |
6748 |
jint *lparg3=NULL; |
| 6749 |
jint *lparg2=NULL; |
6749 |
jint *lparg5=NULL; |
| 6750 |
jint rc = 0; |
6750 |
jint rc = 0; |
| 6751 |
OS_NATIVE_ENTER(env, that, InstallTrackingHandler_FUNC); |
6751 |
OS_NATIVE_ENTER(env, that, InstallEventHandler_FUNC); |
| 6752 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
6752 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 6753 |
rc = (jint)InstallTrackingHandler((DragTrackingHandlerUPP)arg0, (WindowRef)arg1, (void *)lparg2); |
6753 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 6754 |
fail: |
6754 |
rc = (jint)InstallEventHandler((EventTargetRef)arg0, (EventHandlerUPP)arg1, (UInt32)arg2, (const EventTypeSpec *)lparg3, (void *)arg4, (EventHandlerRef *)lparg5); |
| 6755 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
6755 |
fail: |
| 6756 |
OS_NATIVE_EXIT(env, that, InstallTrackingHandler_FUNC); |
6756 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 6757 |
return rc; |
6757 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 6758 |
} |
6758 |
OS_NATIVE_EXIT(env, that, InstallEventHandler_FUNC); |
| 6759 |
#endif |
6759 |
return rc; |
| 6760 |
|
6760 |
} |
| 6761 |
#ifndef NO_InvalWindowRect |
6761 |
#endif |
| 6762 |
JNIEXPORT void JNICALL OS_NATIVE(InvalWindowRect) |
6762 |
|
| 6763 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
6763 |
#ifndef NO_InstallEventLoopIdleTimer |
| 6764 |
{ |
6764 |
JNIEXPORT jint JNICALL OS_NATIVE(InstallEventLoopIdleTimer) |
| 6765 |
Rect _arg1, *lparg1=NULL; |
6765 |
(JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jint arg3, jint arg4, jintArray arg5) |
| 6766 |
OS_NATIVE_ENTER(env, that, InvalWindowRect_FUNC); |
6766 |
{ |
| 6767 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
6767 |
jint *lparg5=NULL; |
| 6768 |
InvalWindowRect((WindowRef)arg0, (const Rect *)lparg1); |
6768 |
jint rc = 0; |
| 6769 |
fail: |
6769 |
OS_NATIVE_ENTER(env, that, InstallEventLoopIdleTimer_FUNC); |
| 6770 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
6770 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 6771 |
OS_NATIVE_EXIT(env, that, InvalWindowRect_FUNC); |
6771 |
rc = (jint)InstallEventLoopIdleTimer((EventLoopRef)arg0, (EventTimerInterval)arg1, (EventTimerInterval)arg2, (EventLoopIdleTimerUPP)arg3, (void *)arg4, (EventLoopTimerRef *)lparg5); |
| 6772 |
} |
6772 |
fail: |
| 6773 |
#endif |
6773 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 6774 |
|
6774 |
OS_NATIVE_EXIT(env, that, InstallEventLoopIdleTimer_FUNC); |
| 6775 |
#ifndef NO_InvalWindowRgn |
6775 |
return rc; |
| 6776 |
JNIEXPORT void JNICALL OS_NATIVE(InvalWindowRgn) |
6776 |
} |
| 6777 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
6777 |
#endif |
| 6778 |
{ |
6778 |
|
| 6779 |
OS_NATIVE_ENTER(env, that, InvalWindowRgn_FUNC); |
6779 |
#ifndef NO_InstallEventLoopTimer |
| 6780 |
InvalWindowRgn((WindowRef)arg0, (RgnHandle)arg1); |
6780 |
JNIEXPORT jint JNICALL OS_NATIVE(InstallEventLoopTimer) |
| 6781 |
OS_NATIVE_EXIT(env, that, InvalWindowRgn_FUNC); |
6781 |
(JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jint arg3, jint arg4, jintArray arg5) |
| 6782 |
} |
6782 |
{ |
| 6783 |
#endif |
6783 |
jint *lparg5=NULL; |
| 6784 |
|
6784 |
jint rc = 0; |
| 6785 |
#ifndef NO_InvertRect |
6785 |
OS_NATIVE_ENTER(env, that, InstallEventLoopTimer_FUNC); |
| 6786 |
JNIEXPORT void JNICALL OS_NATIVE(InvertRect) |
6786 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 6787 |
(JNIEnv *env, jclass that, jobject arg0) |
6787 |
rc = (jint)InstallEventLoopTimer((EventLoopRef)arg0, (EventTimerInterval)arg1, (EventTimerInterval)arg2, (EventLoopTimerUPP)arg3, (void *)arg4, (EventLoopTimerRef *)lparg5); |
| 6788 |
{ |
6788 |
fail: |
| 6789 |
Rect _arg0, *lparg0=NULL; |
6789 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 6790 |
OS_NATIVE_ENTER(env, that, InvertRect_FUNC); |
6790 |
OS_NATIVE_EXIT(env, that, InstallEventLoopTimer_FUNC); |
| 6791 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
6791 |
return rc; |
| 6792 |
InvertRect((const Rect *)lparg0); |
6792 |
} |
| 6793 |
fail: |
6793 |
#endif |
| 6794 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
6794 |
|
| 6795 |
OS_NATIVE_EXIT(env, that, InvertRect_FUNC); |
6795 |
#ifndef NO_InstallReceiveHandler |
| 6796 |
} |
6796 |
JNIEXPORT jint JNICALL OS_NATIVE(InstallReceiveHandler) |
| 6797 |
#endif |
6797 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
| 6798 |
|
6798 |
{ |
| 6799 |
#ifndef NO_InvertRgn |
6799 |
jint *lparg2=NULL; |
| 6800 |
JNIEXPORT void JNICALL OS_NATIVE(InvertRgn) |
6800 |
jint rc = 0; |
| 6801 |
(JNIEnv *env, jclass that, jint arg0) |
6801 |
OS_NATIVE_ENTER(env, that, InstallReceiveHandler_FUNC); |
| 6802 |
{ |
6802 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 6803 |
OS_NATIVE_ENTER(env, that, InvertRgn_FUNC); |
6803 |
rc = (jint)InstallReceiveHandler((DragReceiveHandlerUPP)arg0, (WindowRef)arg1, (void *)lparg2); |
| 6804 |
InvertRgn((RgnHandle)arg0); |
6804 |
fail: |
| 6805 |
OS_NATIVE_EXIT(env, that, InvertRgn_FUNC); |
6805 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 6806 |
} |
6806 |
OS_NATIVE_EXIT(env, that, InstallReceiveHandler_FUNC); |
| 6807 |
#endif |
6807 |
return rc; |
| 6808 |
|
6808 |
} |
| 6809 |
#ifndef NO_IsControlActive |
6809 |
#endif |
| 6810 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsControlActive) |
6810 |
|
| 6811 |
(JNIEnv *env, jclass that, jint arg0) |
6811 |
#ifndef NO_InstallTrackingHandler |
| 6812 |
{ |
6812 |
JNIEXPORT jint JNICALL OS_NATIVE(InstallTrackingHandler) |
| 6813 |
jboolean rc = 0; |
6813 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
| 6814 |
OS_NATIVE_ENTER(env, that, IsControlActive_FUNC); |
6814 |
{ |
| 6815 |
rc = (jboolean)IsControlActive((ControlRef)arg0); |
6815 |
jint *lparg2=NULL; |
| 6816 |
OS_NATIVE_EXIT(env, that, IsControlActive_FUNC); |
6816 |
jint rc = 0; |
| 6817 |
return rc; |
6817 |
OS_NATIVE_ENTER(env, that, InstallTrackingHandler_FUNC); |
| 6818 |
} |
6818 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 6819 |
#endif |
6819 |
rc = (jint)InstallTrackingHandler((DragTrackingHandlerUPP)arg0, (WindowRef)arg1, (void *)lparg2); |
| 6820 |
|
6820 |
fail: |
| 6821 |
#ifndef NO_IsControlEnabled |
6821 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 6822 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsControlEnabled) |
6822 |
OS_NATIVE_EXIT(env, that, InstallTrackingHandler_FUNC); |
| 6823 |
(JNIEnv *env, jclass that, jint arg0) |
6823 |
return rc; |
| 6824 |
{ |
6824 |
} |
| 6825 |
jboolean rc = 0; |
6825 |
#endif |
| 6826 |
OS_NATIVE_ENTER(env, that, IsControlEnabled_FUNC); |
6826 |
|
| 6827 |
rc = (jboolean)IsControlEnabled((ControlRef)arg0); |
6827 |
#ifndef NO_InvalWindowRect |
| 6828 |
OS_NATIVE_EXIT(env, that, IsControlEnabled_FUNC); |
6828 |
JNIEXPORT void JNICALL OS_NATIVE(InvalWindowRect) |
| 6829 |
return rc; |
6829 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 6830 |
} |
6830 |
{ |
| 6831 |
#endif |
6831 |
Rect _arg1, *lparg1=NULL; |
| 6832 |
|
6832 |
OS_NATIVE_ENTER(env, that, InvalWindowRect_FUNC); |
| 6833 |
#ifndef NO_IsControlVisible |
6833 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 6834 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsControlVisible) |
6834 |
InvalWindowRect((WindowRef)arg0, (const Rect *)lparg1); |
| 6835 |
(JNIEnv *env, jclass that, jint arg0) |
6835 |
fail: |
| 6836 |
{ |
6836 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 6837 |
jboolean rc = 0; |
6837 |
OS_NATIVE_EXIT(env, that, InvalWindowRect_FUNC); |
| 6838 |
OS_NATIVE_ENTER(env, that, IsControlVisible_FUNC); |
6838 |
} |
| 6839 |
rc = (jboolean)IsControlVisible((ControlRef)arg0); |
6839 |
#endif |
| 6840 |
OS_NATIVE_EXIT(env, that, IsControlVisible_FUNC); |
6840 |
|
| 6841 |
return rc; |
6841 |
#ifndef NO_InvalWindowRgn |
| 6842 |
} |
6842 |
JNIEXPORT void JNICALL OS_NATIVE(InvalWindowRgn) |
| 6843 |
#endif |
6843 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 6844 |
|
6844 |
{ |
| 6845 |
#ifndef NO_IsDataBrowserItemSelected |
6845 |
OS_NATIVE_ENTER(env, that, InvalWindowRgn_FUNC); |
| 6846 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsDataBrowserItemSelected) |
6846 |
InvalWindowRgn((WindowRef)arg0, (RgnHandle)arg1); |
| 6847 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
6847 |
OS_NATIVE_EXIT(env, that, InvalWindowRgn_FUNC); |
| 6848 |
{ |
6848 |
} |
| 6849 |
jboolean rc = 0; |
6849 |
#endif |
| 6850 |
OS_NATIVE_ENTER(env, that, IsDataBrowserItemSelected_FUNC); |
6850 |
|
| 6851 |
rc = (jboolean)IsDataBrowserItemSelected((ControlRef)arg0, (DataBrowserItemID)arg1); |
6851 |
#ifndef NO_InvertRect |
| 6852 |
OS_NATIVE_EXIT(env, that, IsDataBrowserItemSelected_FUNC); |
6852 |
JNIEXPORT void JNICALL OS_NATIVE(InvertRect) |
| 6853 |
return rc; |
6853 |
(JNIEnv *env, jclass that, jobject arg0) |
| 6854 |
} |
6854 |
{ |
| 6855 |
#endif |
6855 |
Rect _arg0, *lparg0=NULL; |
| 6856 |
|
6856 |
OS_NATIVE_ENTER(env, that, InvertRect_FUNC); |
| 6857 |
#ifndef NO_IsMenuCommandEnabled |
6857 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 6858 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsMenuCommandEnabled) |
6858 |
InvertRect((const Rect *)lparg0); |
| 6859 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
6859 |
fail: |
| 6860 |
{ |
6860 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 6861 |
jboolean rc = 0; |
6861 |
OS_NATIVE_EXIT(env, that, InvertRect_FUNC); |
| 6862 |
OS_NATIVE_ENTER(env, that, IsMenuCommandEnabled_FUNC); |
6862 |
} |
| 6863 |
rc = (jboolean)IsMenuCommandEnabled((MenuRef)arg0, (MenuCommand)arg1); |
6863 |
#endif |
| 6864 |
OS_NATIVE_EXIT(env, that, IsMenuCommandEnabled_FUNC); |
6864 |
|
| 6865 |
return rc; |
6865 |
#ifndef NO_InvertRgn |
| 6866 |
} |
6866 |
JNIEXPORT void JNICALL OS_NATIVE(InvertRgn) |
| 6867 |
#endif |
6867 |
(JNIEnv *env, jclass that, jint arg0) |
| 6868 |
|
6868 |
{ |
| 6869 |
#ifndef NO_IsMenuItemEnabled |
6869 |
OS_NATIVE_ENTER(env, that, InvertRgn_FUNC); |
| 6870 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsMenuItemEnabled) |
6870 |
InvertRgn((RgnHandle)arg0); |
| 6871 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1) |
6871 |
OS_NATIVE_EXIT(env, that, InvertRgn_FUNC); |
| 6872 |
{ |
6872 |
} |
| 6873 |
jboolean rc = 0; |
6873 |
#endif |
| 6874 |
OS_NATIVE_ENTER(env, that, IsMenuItemEnabled_FUNC); |
6874 |
|
| 6875 |
rc = (jboolean)IsMenuItemEnabled((MenuRef)arg0, (MenuItemIndex)arg1); |
6875 |
#ifndef NO_IsControlActive |
| 6876 |
OS_NATIVE_EXIT(env, that, IsMenuItemEnabled_FUNC); |
6876 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsControlActive) |
| 6877 |
return rc; |
6877 |
(JNIEnv *env, jclass that, jint arg0) |
| 6878 |
} |
6878 |
{ |
| 6879 |
#endif |
6879 |
jboolean rc = 0; |
| 6880 |
|
6880 |
OS_NATIVE_ENTER(env, that, IsControlActive_FUNC); |
| 6881 |
#ifndef NO_IsValidControlHandle |
6881 |
rc = (jboolean)IsControlActive((ControlRef)arg0); |
| 6882 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsValidControlHandle) |
6882 |
OS_NATIVE_EXIT(env, that, IsControlActive_FUNC); |
| 6883 |
(JNIEnv *env, jclass that, jint arg0) |
6883 |
return rc; |
| 6884 |
{ |
6884 |
} |
| 6885 |
jboolean rc = 0; |
6885 |
#endif |
| 6886 |
OS_NATIVE_ENTER(env, that, IsValidControlHandle_FUNC); |
6886 |
|
| 6887 |
rc = (jboolean)IsValidControlHandle((ControlRef)arg0); |
6887 |
#ifndef NO_IsControlEnabled |
| 6888 |
OS_NATIVE_EXIT(env, that, IsValidControlHandle_FUNC); |
6888 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsControlEnabled) |
| 6889 |
return rc; |
6889 |
(JNIEnv *env, jclass that, jint arg0) |
| 6890 |
} |
6890 |
{ |
| 6891 |
#endif |
6891 |
jboolean rc = 0; |
| 6892 |
|
6892 |
OS_NATIVE_ENTER(env, that, IsControlEnabled_FUNC); |
| 6893 |
#ifndef NO_IsValidMenu |
6893 |
rc = (jboolean)IsControlEnabled((ControlRef)arg0); |
| 6894 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsValidMenu) |
6894 |
OS_NATIVE_EXIT(env, that, IsControlEnabled_FUNC); |
| 6895 |
(JNIEnv *env, jclass that, jint arg0) |
6895 |
return rc; |
| 6896 |
{ |
6896 |
} |
| 6897 |
jboolean rc = 0; |
6897 |
#endif |
| 6898 |
OS_NATIVE_ENTER(env, that, IsValidMenu_FUNC); |
6898 |
|
| 6899 |
rc = (jboolean)IsValidMenu((MenuRef)arg0); |
6899 |
#ifndef NO_IsControlVisible |
| 6900 |
OS_NATIVE_EXIT(env, that, IsValidMenu_FUNC); |
6900 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsControlVisible) |
| 6901 |
return rc; |
6901 |
(JNIEnv *env, jclass that, jint arg0) |
| 6902 |
} |
6902 |
{ |
| 6903 |
#endif |
6903 |
jboolean rc = 0; |
| 6904 |
|
6904 |
OS_NATIVE_ENTER(env, that, IsControlVisible_FUNC); |
| 6905 |
#ifndef NO_IsValidWindowPtr |
6905 |
rc = (jboolean)IsControlVisible((ControlRef)arg0); |
| 6906 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsValidWindowPtr) |
6906 |
OS_NATIVE_EXIT(env, that, IsControlVisible_FUNC); |
| 6907 |
(JNIEnv *env, jclass that, jint arg0) |
6907 |
return rc; |
| 6908 |
{ |
6908 |
} |
| 6909 |
jboolean rc = 0; |
6909 |
#endif |
| 6910 |
OS_NATIVE_ENTER(env, that, IsValidWindowPtr_FUNC); |
6910 |
|
| 6911 |
rc = (jboolean)IsValidWindowPtr((WindowRef)arg0); |
6911 |
#ifndef NO_IsDataBrowserItemSelected |
| 6912 |
OS_NATIVE_EXIT(env, that, IsValidWindowPtr_FUNC); |
6912 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsDataBrowserItemSelected) |
| 6913 |
return rc; |
6913 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 6914 |
} |
6914 |
{ |
| 6915 |
#endif |
6915 |
jboolean rc = 0; |
| 6916 |
|
6916 |
OS_NATIVE_ENTER(env, that, IsDataBrowserItemSelected_FUNC); |
| 6917 |
#ifndef NO_IsWindowActive |
6917 |
rc = (jboolean)IsDataBrowserItemSelected((ControlRef)arg0, (DataBrowserItemID)arg1); |
| 6918 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsWindowActive) |
6918 |
OS_NATIVE_EXIT(env, that, IsDataBrowserItemSelected_FUNC); |
| 6919 |
(JNIEnv *env, jclass that, jint arg0) |
6919 |
return rc; |
| 6920 |
{ |
6920 |
} |
| 6921 |
jboolean rc = 0; |
6921 |
#endif |
| 6922 |
OS_NATIVE_ENTER(env, that, IsWindowActive_FUNC); |
6922 |
|
| 6923 |
rc = (jboolean)IsWindowActive((WindowRef)arg0); |
6923 |
#ifndef NO_IsMenuCommandEnabled |
| 6924 |
OS_NATIVE_EXIT(env, that, IsWindowActive_FUNC); |
6924 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsMenuCommandEnabled) |
| 6925 |
return rc; |
6925 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 6926 |
} |
6926 |
{ |
| 6927 |
#endif |
6927 |
jboolean rc = 0; |
| 6928 |
|
6928 |
OS_NATIVE_ENTER(env, that, IsMenuCommandEnabled_FUNC); |
| 6929 |
#ifndef NO_IsWindowCollapsed |
6929 |
rc = (jboolean)IsMenuCommandEnabled((MenuRef)arg0, (MenuCommand)arg1); |
| 6930 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsWindowCollapsed) |
6930 |
OS_NATIVE_EXIT(env, that, IsMenuCommandEnabled_FUNC); |
| 6931 |
(JNIEnv *env, jclass that, jint arg0) |
6931 |
return rc; |
| 6932 |
{ |
6932 |
} |
| 6933 |
jboolean rc = 0; |
6933 |
#endif |
| 6934 |
OS_NATIVE_ENTER(env, that, IsWindowCollapsed_FUNC); |
6934 |
|
| 6935 |
rc = (jboolean)IsWindowCollapsed((WindowRef)arg0); |
6935 |
#ifndef NO_IsMenuItemEnabled |
| 6936 |
OS_NATIVE_EXIT(env, that, IsWindowCollapsed_FUNC); |
6936 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsMenuItemEnabled) |
| 6937 |
return rc; |
6937 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1) |
| 6938 |
} |
6938 |
{ |
| 6939 |
#endif |
6939 |
jboolean rc = 0; |
| 6940 |
|
6940 |
OS_NATIVE_ENTER(env, that, IsMenuItemEnabled_FUNC); |
| 6941 |
#ifndef NO_IsWindowVisible |
6941 |
rc = (jboolean)IsMenuItemEnabled((MenuRef)arg0, (MenuItemIndex)arg1); |
| 6942 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsWindowVisible) |
6942 |
OS_NATIVE_EXIT(env, that, IsMenuItemEnabled_FUNC); |
| 6943 |
(JNIEnv *env, jclass that, jint arg0) |
6943 |
return rc; |
| 6944 |
{ |
6944 |
} |
| 6945 |
jboolean rc = 0; |
6945 |
#endif |
| 6946 |
OS_NATIVE_ENTER(env, that, IsWindowVisible_FUNC); |
6946 |
|
| 6947 |
rc = (jboolean)IsWindowVisible((WindowRef)arg0); |
6947 |
#ifndef NO_IsValidControlHandle |
| 6948 |
OS_NATIVE_EXIT(env, that, IsWindowVisible_FUNC); |
6948 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsValidControlHandle) |
| 6949 |
return rc; |
6949 |
(JNIEnv *env, jclass that, jint arg0) |
| 6950 |
} |
6950 |
{ |
| 6951 |
#endif |
6951 |
jboolean rc = 0; |
| 6952 |
|
6952 |
OS_NATIVE_ENTER(env, that, IsValidControlHandle_FUNC); |
| 6953 |
#ifndef NO_KeyTranslate |
6953 |
rc = (jboolean)IsValidControlHandle((ControlRef)arg0); |
| 6954 |
JNIEXPORT jint JNICALL OS_NATIVE(KeyTranslate) |
6954 |
OS_NATIVE_EXIT(env, that, IsValidControlHandle_FUNC); |
| 6955 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jintArray arg2) |
6955 |
return rc; |
| 6956 |
{ |
6956 |
} |
| 6957 |
jint *lparg2=NULL; |
6957 |
#endif |
| 6958 |
jint rc = 0; |
6958 |
|
| 6959 |
OS_NATIVE_ENTER(env, that, KeyTranslate_FUNC); |
6959 |
#ifndef NO_IsValidMenu |
| 6960 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
6960 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsValidMenu) |
| 6961 |
rc = (jint)KeyTranslate((const void *)arg0, arg1, (UInt32 *)lparg2); |
6961 |
(JNIEnv *env, jclass that, jint arg0) |
| 6962 |
fail: |
6962 |
{ |
| 6963 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
6963 |
jboolean rc = 0; |
| 6964 |
OS_NATIVE_EXIT(env, that, KeyTranslate_FUNC); |
6964 |
OS_NATIVE_ENTER(env, that, IsValidMenu_FUNC); |
| 6965 |
return rc; |
6965 |
rc = (jboolean)IsValidMenu((MenuRef)arg0); |
| 6966 |
} |
6966 |
OS_NATIVE_EXIT(env, that, IsValidMenu_FUNC); |
| 6967 |
#endif |
6967 |
return rc; |
| 6968 |
|
6968 |
} |
| 6969 |
#ifndef NO_KillPoly |
6969 |
#endif |
| 6970 |
JNIEXPORT void JNICALL OS_NATIVE(KillPoly) |
6970 |
|
| 6971 |
(JNIEnv *env, jclass that, jint arg0) |
6971 |
#ifndef NO_IsValidWindowPtr |
| 6972 |
{ |
6972 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsValidWindowPtr) |
| 6973 |
OS_NATIVE_ENTER(env, that, KillPoly_FUNC); |
6973 |
(JNIEnv *env, jclass that, jint arg0) |
| 6974 |
KillPoly((PolyHandle)arg0); |
6974 |
{ |
| 6975 |
OS_NATIVE_EXIT(env, that, KillPoly_FUNC); |
6975 |
jboolean rc = 0; |
| 6976 |
} |
6976 |
OS_NATIVE_ENTER(env, that, IsValidWindowPtr_FUNC); |
| 6977 |
#endif |
6977 |
rc = (jboolean)IsValidWindowPtr((WindowRef)arg0); |
| 6978 |
|
6978 |
OS_NATIVE_EXIT(env, that, IsValidWindowPtr_FUNC); |
| 6979 |
#ifndef NO_LineTo |
6979 |
return rc; |
| 6980 |
JNIEXPORT void JNICALL OS_NATIVE(LineTo) |
6980 |
} |
| 6981 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1) |
6981 |
#endif |
| 6982 |
{ |
6982 |
|
| 6983 |
OS_NATIVE_ENTER(env, that, LineTo_FUNC); |
6983 |
#ifndef NO_IsWindowActive |
| 6984 |
LineTo((short)arg0, (short)arg1); |
6984 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsWindowActive) |
| 6985 |
OS_NATIVE_EXIT(env, that, LineTo_FUNC); |
6985 |
(JNIEnv *env, jclass that, jint arg0) |
| 6986 |
} |
6986 |
{ |
| 6987 |
#endif |
6987 |
jboolean rc = 0; |
| 6988 |
|
6988 |
OS_NATIVE_ENTER(env, that, IsWindowActive_FUNC); |
| 6989 |
#ifndef NO_LoWord |
6989 |
rc = (jboolean)IsWindowActive((WindowRef)arg0); |
| 6990 |
JNIEXPORT jshort JNICALL OS_NATIVE(LoWord) |
6990 |
OS_NATIVE_EXIT(env, that, IsWindowActive_FUNC); |
| 6991 |
(JNIEnv *env, jclass that, jint arg0) |
6991 |
return rc; |
| 6992 |
{ |
6992 |
} |
| 6993 |
jshort rc = 0; |
6993 |
#endif |
| 6994 |
OS_NATIVE_ENTER(env, that, LoWord_FUNC); |
6994 |
|
| 6995 |
rc = (jshort)LoWord(arg0); |
6995 |
#ifndef NO_IsWindowCollapsed |
| 6996 |
OS_NATIVE_EXIT(env, that, LoWord_FUNC); |
6996 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsWindowCollapsed) |
| 6997 |
return rc; |
6997 |
(JNIEnv *env, jclass that, jint arg0) |
| 6998 |
} |
6998 |
{ |
| 6999 |
#endif |
6999 |
jboolean rc = 0; |
| 7000 |
|
7000 |
OS_NATIVE_ENTER(env, that, IsWindowCollapsed_FUNC); |
| 7001 |
#ifndef NO_LockPortBits |
7001 |
rc = (jboolean)IsWindowCollapsed((WindowRef)arg0); |
| 7002 |
JNIEXPORT jint JNICALL OS_NATIVE(LockPortBits) |
7002 |
OS_NATIVE_EXIT(env, that, IsWindowCollapsed_FUNC); |
| 7003 |
(JNIEnv *env, jclass that, jint arg0) |
7003 |
return rc; |
| 7004 |
{ |
7004 |
} |
| 7005 |
jint rc = 0; |
7005 |
#endif |
| 7006 |
OS_NATIVE_ENTER(env, that, LockPortBits_FUNC); |
7006 |
|
| 7007 |
rc = (jint)LockPortBits((GrafPtr)arg0); |
7007 |
#ifndef NO_IsWindowVisible |
| 7008 |
OS_NATIVE_EXIT(env, that, LockPortBits_FUNC); |
7008 |
JNIEXPORT jboolean JNICALL OS_NATIVE(IsWindowVisible) |
| 7009 |
return rc; |
7009 |
(JNIEnv *env, jclass that, jint arg0) |
| 7010 |
} |
7010 |
{ |
| 7011 |
#endif |
7011 |
jboolean rc = 0; |
| 7012 |
|
7012 |
OS_NATIVE_ENTER(env, that, IsWindowVisible_FUNC); |
| 7013 |
#ifndef NO_Long2Fix |
7013 |
rc = (jboolean)IsWindowVisible((WindowRef)arg0); |
| 7014 |
JNIEXPORT jint JNICALL OS_NATIVE(Long2Fix) |
7014 |
OS_NATIVE_EXIT(env, that, IsWindowVisible_FUNC); |
| 7015 |
(JNIEnv *env, jclass that, jint arg0) |
7015 |
return rc; |
| 7016 |
{ |
7016 |
} |
| 7017 |
jint rc = 0; |
7017 |
#endif |
| 7018 |
OS_NATIVE_ENTER(env, that, Long2Fix_FUNC); |
7018 |
|
| 7019 |
rc = (jint)Long2Fix(arg0); |
7019 |
#ifndef NO_KeyTranslate |
| 7020 |
OS_NATIVE_EXIT(env, that, Long2Fix_FUNC); |
7020 |
JNIEXPORT jint JNICALL OS_NATIVE(KeyTranslate) |
| 7021 |
return rc; |
7021 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jintArray arg2) |
| 7022 |
} |
7022 |
{ |
| 7023 |
#endif |
7023 |
jint *lparg2=NULL; |
| 7024 |
|
7024 |
jint rc = 0; |
| 7025 |
#ifndef NO_MenuSelect |
7025 |
OS_NATIVE_ENTER(env, that, KeyTranslate_FUNC); |
| 7026 |
JNIEXPORT jint JNICALL OS_NATIVE(MenuSelect) |
7026 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 7027 |
(JNIEnv *env, jclass that, jobject arg0) |
7027 |
rc = (jint)KeyTranslate((const void *)arg0, arg1, (UInt32 *)lparg2); |
| 7028 |
{ |
7028 |
fail: |
| 7029 |
Point _arg0, *lparg0=NULL; |
7029 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 7030 |
jint rc = 0; |
7030 |
OS_NATIVE_EXIT(env, that, KeyTranslate_FUNC); |
| 7031 |
OS_NATIVE_ENTER(env, that, MenuSelect_FUNC); |
7031 |
return rc; |
| 7032 |
if (arg0) if ((lparg0 = getPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
7032 |
} |
| 7033 |
rc = (jint)MenuSelect(*(Point *)lparg0); |
7033 |
#endif |
| 7034 |
fail: |
7034 |
|
| 7035 |
if (arg0 && lparg0) setPointFields(env, arg0, lparg0); |
7035 |
#ifndef NO_KillPoly |
| 7036 |
OS_NATIVE_EXIT(env, that, MenuSelect_FUNC); |
7036 |
JNIEXPORT void JNICALL OS_NATIVE(KillPoly) |
| 7037 |
return rc; |
7037 |
(JNIEnv *env, jclass that, jint arg0) |
| 7038 |
} |
7038 |
{ |
| 7039 |
#endif |
7039 |
OS_NATIVE_ENTER(env, that, KillPoly_FUNC); |
| 7040 |
|
7040 |
KillPoly((PolyHandle)arg0); |
| 7041 |
#ifndef NO_MoveControl |
7041 |
OS_NATIVE_EXIT(env, that, KillPoly_FUNC); |
| 7042 |
JNIEXPORT void JNICALL OS_NATIVE(MoveControl) |
7042 |
} |
| 7043 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshort arg2) |
7043 |
#endif |
| 7044 |
{ |
7044 |
|
| 7045 |
OS_NATIVE_ENTER(env, that, MoveControl_FUNC); |
7045 |
#ifndef NO_LineTo |
| 7046 |
MoveControl((ControlRef)arg0, (SInt16)arg1, (SInt16)arg2); |
7046 |
JNIEXPORT void JNICALL OS_NATIVE(LineTo) |
| 7047 |
OS_NATIVE_EXIT(env, that, MoveControl_FUNC); |
7047 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1) |
| 7048 |
} |
7048 |
{ |
| 7049 |
#endif |
7049 |
OS_NATIVE_ENTER(env, that, LineTo_FUNC); |
| 7050 |
|
7050 |
LineTo((short)arg0, (short)arg1); |
| 7051 |
#ifndef NO_MoveTo |
7051 |
OS_NATIVE_EXIT(env, that, LineTo_FUNC); |
| 7052 |
JNIEXPORT void JNICALL OS_NATIVE(MoveTo) |
7052 |
} |
| 7053 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1) |
7053 |
#endif |
| 7054 |
{ |
7054 |
|
| 7055 |
OS_NATIVE_ENTER(env, that, MoveTo_FUNC); |
7055 |
#ifndef NO_LoWord |
| 7056 |
MoveTo((short)arg0, (short)arg1); |
7056 |
JNIEXPORT jshort JNICALL OS_NATIVE(LoWord) |
| 7057 |
OS_NATIVE_EXIT(env, that, MoveTo_FUNC); |
7057 |
(JNIEnv *env, jclass that, jint arg0) |
| 7058 |
} |
7058 |
{ |
| 7059 |
#endif |
7059 |
jshort rc = 0; |
| 7060 |
|
7060 |
OS_NATIVE_ENTER(env, that, LoWord_FUNC); |
| 7061 |
#ifndef NO_MoveWindow |
7061 |
rc = (jshort)LoWord(arg0); |
| 7062 |
JNIEXPORT void JNICALL OS_NATIVE(MoveWindow) |
7062 |
OS_NATIVE_EXIT(env, that, LoWord_FUNC); |
| 7063 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshort arg2, jboolean arg3) |
7063 |
return rc; |
| 7064 |
{ |
7064 |
} |
| 7065 |
OS_NATIVE_ENTER(env, that, MoveWindow_FUNC); |
7065 |
#endif |
| 7066 |
MoveWindow((WindowRef)arg0, (short)arg1, (short)arg2, (Boolean)arg3); |
7066 |
|
| 7067 |
OS_NATIVE_EXIT(env, that, MoveWindow_FUNC); |
7067 |
#ifndef NO_LockPortBits |
| 7068 |
} |
7068 |
JNIEXPORT jint JNICALL OS_NATIVE(LockPortBits) |
| 7069 |
#endif |
7069 |
(JNIEnv *env, jclass that, jint arg0) |
| 7070 |
|
7070 |
{ |
| 7071 |
#ifndef NO_NavCreateChooseFolderDialog |
7071 |
jint rc = 0; |
| 7072 |
JNIEXPORT jint JNICALL OS_NATIVE(NavCreateChooseFolderDialog) |
7072 |
OS_NATIVE_ENTER(env, that, LockPortBits_FUNC); |
| 7073 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2, jint arg3, jintArray arg4) |
7073 |
rc = (jint)LockPortBits((GrafPtr)arg0); |
| 7074 |
{ |
7074 |
OS_NATIVE_EXIT(env, that, LockPortBits_FUNC); |
| 7075 |
NavDialogCreationOptions _arg0, *lparg0=NULL; |
7075 |
return rc; |
| 7076 |
jint *lparg4=NULL; |
7076 |
} |
| 7077 |
jint rc = 0; |
7077 |
#endif |
| 7078 |
OS_NATIVE_ENTER(env, that, NavCreateChooseFolderDialog_FUNC); |
7078 |
|
| 7079 |
if (arg0) if ((lparg0 = getNavDialogCreationOptionsFields(env, arg0, &_arg0)) == NULL) goto fail; |
7079 |
#ifndef NO_Long2Fix |
| 7080 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
7080 |
JNIEXPORT jint JNICALL OS_NATIVE(Long2Fix) |
| 7081 |
rc = (jint)NavCreateChooseFolderDialog((const NavDialogCreationOptions *)lparg0, (NavEventUPP)arg1, (NavObjectFilterUPP)arg2, (void *)arg3, (NavDialogRef *)lparg4); |
7081 |
(JNIEnv *env, jclass that, jint arg0) |
| 7082 |
fail: |
7082 |
{ |
| 7083 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
7083 |
jint rc = 0; |
| 7084 |
if (arg0 && lparg0) setNavDialogCreationOptionsFields(env, arg0, lparg0); |
7084 |
OS_NATIVE_ENTER(env, that, Long2Fix_FUNC); |
| 7085 |
OS_NATIVE_EXIT(env, that, NavCreateChooseFolderDialog_FUNC); |
7085 |
rc = (jint)Long2Fix(arg0); |
| 7086 |
return rc; |
7086 |
OS_NATIVE_EXIT(env, that, Long2Fix_FUNC); |
| 7087 |
} |
7087 |
return rc; |
| 7088 |
#endif |
7088 |
} |
| 7089 |
|
7089 |
#endif |
| 7090 |
#ifndef NO_NavCreateGetFileDialog |
7090 |
|
| 7091 |
JNIEXPORT jint JNICALL OS_NATIVE(NavCreateGetFileDialog) |
7091 |
#ifndef NO_MenuSelect |
| 7092 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jintArray arg6) |
7092 |
JNIEXPORT jint JNICALL OS_NATIVE(MenuSelect) |
| 7093 |
{ |
7093 |
(JNIEnv *env, jclass that, jobject arg0) |
| 7094 |
NavDialogCreationOptions _arg0, *lparg0=NULL; |
7094 |
{ |
| 7095 |
jint *lparg6=NULL; |
7095 |
Point _arg0, *lparg0=NULL; |
| 7096 |
jint rc = 0; |
7096 |
jint rc = 0; |
| 7097 |
OS_NATIVE_ENTER(env, that, NavCreateGetFileDialog_FUNC); |
7097 |
OS_NATIVE_ENTER(env, that, MenuSelect_FUNC); |
| 7098 |
if (arg0) if ((lparg0 = getNavDialogCreationOptionsFields(env, arg0, &_arg0)) == NULL) goto fail; |
7098 |
if (arg0) if ((lparg0 = getPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 7099 |
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail; |
7099 |
rc = (jint)MenuSelect(*(Point *)lparg0); |
| 7100 |
rc = (jint)NavCreateGetFileDialog((const NavDialogCreationOptions *)lparg0, (NavTypeListHandle)arg1, (NavEventUPP)arg2, (NavPreviewUPP)arg3, (NavObjectFilterUPP)arg4, (void *)arg5, (NavDialogRef *)lparg6); |
7100 |
fail: |
| 7101 |
fail: |
7101 |
if (arg0 && lparg0) setPointFields(env, arg0, lparg0); |
| 7102 |
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0); |
7102 |
OS_NATIVE_EXIT(env, that, MenuSelect_FUNC); |
| 7103 |
if (arg0 && lparg0) setNavDialogCreationOptionsFields(env, arg0, lparg0); |
7103 |
return rc; |
| 7104 |
OS_NATIVE_EXIT(env, that, NavCreateGetFileDialog_FUNC); |
7104 |
} |
| 7105 |
return rc; |
7105 |
#endif |
| 7106 |
} |
7106 |
|
| 7107 |
#endif |
7107 |
#ifndef NO_MoveControl |
| 7108 |
|
7108 |
JNIEXPORT void JNICALL OS_NATIVE(MoveControl) |
| 7109 |
#ifndef NO_NavCreatePutFileDialog |
7109 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshort arg2) |
| 7110 |
JNIEXPORT jint JNICALL OS_NATIVE(NavCreatePutFileDialog) |
7110 |
{ |
| 7111 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2, jint arg3, jint arg4, jintArray arg5) |
7111 |
OS_NATIVE_ENTER(env, that, MoveControl_FUNC); |
| 7112 |
{ |
7112 |
MoveControl((ControlRef)arg0, (SInt16)arg1, (SInt16)arg2); |
| 7113 |
NavDialogCreationOptions _arg0, *lparg0=NULL; |
7113 |
OS_NATIVE_EXIT(env, that, MoveControl_FUNC); |
| 7114 |
jint *lparg5=NULL; |
7114 |
} |
| 7115 |
jint rc = 0; |
7115 |
#endif |
| 7116 |
OS_NATIVE_ENTER(env, that, NavCreatePutFileDialog_FUNC); |
7116 |
|
| 7117 |
if (arg0) if ((lparg0 = getNavDialogCreationOptionsFields(env, arg0, &_arg0)) == NULL) goto fail; |
7117 |
#ifndef NO_MoveTo |
| 7118 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
7118 |
JNIEXPORT void JNICALL OS_NATIVE(MoveTo) |
| 7119 |
rc = (jint)NavCreatePutFileDialog((const NavDialogCreationOptions *)lparg0, (OSType)arg1, (OSType)arg2, (NavEventUPP)arg3, (void *)arg4, (NavDialogRef *)lparg5); |
7119 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1) |
| 7120 |
fail: |
7120 |
{ |
| 7121 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
7121 |
OS_NATIVE_ENTER(env, that, MoveTo_FUNC); |
| 7122 |
if (arg0 && lparg0) setNavDialogCreationOptionsFields(env, arg0, lparg0); |
7122 |
MoveTo((short)arg0, (short)arg1); |
| 7123 |
OS_NATIVE_EXIT(env, that, NavCreatePutFileDialog_FUNC); |
7123 |
OS_NATIVE_EXIT(env, that, MoveTo_FUNC); |
| 7124 |
return rc; |
7124 |
} |
| 7125 |
} |
7125 |
#endif |
| 7126 |
#endif |
7126 |
|
| 7127 |
|
7127 |
#ifndef NO_MoveWindow |
| 7128 |
#ifndef NO_NavDialogDispose |
7128 |
JNIEXPORT void JNICALL OS_NATIVE(MoveWindow) |
| 7129 |
JNIEXPORT void JNICALL OS_NATIVE(NavDialogDispose) |
7129 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshort arg2, jboolean arg3) |
| 7130 |
(JNIEnv *env, jclass that, jint arg0) |
7130 |
{ |
| 7131 |
{ |
7131 |
OS_NATIVE_ENTER(env, that, MoveWindow_FUNC); |
| 7132 |
OS_NATIVE_ENTER(env, that, NavDialogDispose_FUNC); |
7132 |
MoveWindow((WindowRef)arg0, (short)arg1, (short)arg2, (Boolean)arg3); |
| 7133 |
NavDialogDispose((NavDialogRef)arg0); |
7133 |
OS_NATIVE_EXIT(env, that, MoveWindow_FUNC); |
| 7134 |
OS_NATIVE_EXIT(env, that, NavDialogDispose_FUNC); |
7134 |
} |
| 7135 |
} |
7135 |
#endif |
| 7136 |
#endif |
7136 |
|
| 7137 |
|
7137 |
#ifndef NO_NavCreateChooseFolderDialog |
| 7138 |
#ifndef NO_NavDialogGetReply |
7138 |
JNIEXPORT jint JNICALL OS_NATIVE(NavCreateChooseFolderDialog) |
| 7139 |
JNIEXPORT jint JNICALL OS_NATIVE(NavDialogGetReply) |
7139 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2, jint arg3, jintArray arg4) |
| 7140 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
7140 |
{ |
| 7141 |
{ |
7141 |
NavDialogCreationOptions _arg0, *lparg0=NULL; |
| 7142 |
NavReplyRecord _arg1, *lparg1=NULL; |
7142 |
jint *lparg4=NULL; |
| 7143 |
jint rc = 0; |
7143 |
jint rc = 0; |
| 7144 |
OS_NATIVE_ENTER(env, that, NavDialogGetReply_FUNC); |
7144 |
OS_NATIVE_ENTER(env, that, NavCreateChooseFolderDialog_FUNC); |
| 7145 |
if (arg1) if ((lparg1 = getNavReplyRecordFields(env, arg1, &_arg1)) == NULL) goto fail; |
7145 |
if (arg0) if ((lparg0 = getNavDialogCreationOptionsFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 7146 |
rc = (jint)NavDialogGetReply((NavDialogRef)arg0, (NavReplyRecord *)lparg1); |
7146 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 7147 |
fail: |
7147 |
rc = (jint)NavCreateChooseFolderDialog((const NavDialogCreationOptions *)lparg0, (NavEventUPP)arg1, (NavObjectFilterUPP)arg2, (void *)arg3, (NavDialogRef *)lparg4); |
| 7148 |
if (arg1 && lparg1) setNavReplyRecordFields(env, arg1, lparg1); |
7148 |
fail: |
| 7149 |
OS_NATIVE_EXIT(env, that, NavDialogGetReply_FUNC); |
7149 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 7150 |
return rc; |
7150 |
if (arg0 && lparg0) setNavDialogCreationOptionsFields(env, arg0, lparg0); |
| 7151 |
} |
7151 |
OS_NATIVE_EXIT(env, that, NavCreateChooseFolderDialog_FUNC); |
| 7152 |
#endif |
7152 |
return rc; |
| 7153 |
|
7153 |
} |
| 7154 |
#ifndef NO_NavDialogGetSaveFileName |
7154 |
#endif |
| 7155 |
JNIEXPORT jint JNICALL OS_NATIVE(NavDialogGetSaveFileName) |
7155 |
|
| 7156 |
(JNIEnv *env, jclass that, jint arg0) |
7156 |
#ifndef NO_NavCreateGetFileDialog |
| 7157 |
{ |
7157 |
JNIEXPORT jint JNICALL OS_NATIVE(NavCreateGetFileDialog) |
| 7158 |
jint rc = 0; |
7158 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5, jintArray arg6) |
| 7159 |
OS_NATIVE_ENTER(env, that, NavDialogGetSaveFileName_FUNC); |
7159 |
{ |
| 7160 |
rc = (jint)NavDialogGetSaveFileName((NavDialogRef)arg0); |
7160 |
NavDialogCreationOptions _arg0, *lparg0=NULL; |
| 7161 |
OS_NATIVE_EXIT(env, that, NavDialogGetSaveFileName_FUNC); |
7161 |
jint *lparg6=NULL; |
| 7162 |
return rc; |
7162 |
jint rc = 0; |
| 7163 |
} |
7163 |
OS_NATIVE_ENTER(env, that, NavCreateGetFileDialog_FUNC); |
| 7164 |
#endif |
7164 |
if (arg0) if ((lparg0 = getNavDialogCreationOptionsFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 7165 |
|
7165 |
if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail; |
| 7166 |
#ifndef NO_NavDialogGetUserAction |
7166 |
rc = (jint)NavCreateGetFileDialog((const NavDialogCreationOptions *)lparg0, (NavTypeListHandle)arg1, (NavEventUPP)arg2, (NavPreviewUPP)arg3, (NavObjectFilterUPP)arg4, (void *)arg5, (NavDialogRef *)lparg6); |
| 7167 |
JNIEXPORT jint JNICALL OS_NATIVE(NavDialogGetUserAction) |
7167 |
fail: |
| 7168 |
(JNIEnv *env, jclass that, jint arg0) |
7168 |
if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0); |
| 7169 |
{ |
7169 |
if (arg0 && lparg0) setNavDialogCreationOptionsFields(env, arg0, lparg0); |
| 7170 |
jint rc = 0; |
7170 |
OS_NATIVE_EXIT(env, that, NavCreateGetFileDialog_FUNC); |
| 7171 |
OS_NATIVE_ENTER(env, that, NavDialogGetUserAction_FUNC); |
7171 |
return rc; |
| 7172 |
rc = (jint)NavDialogGetUserAction((NavDialogRef)arg0); |
7172 |
} |
| 7173 |
OS_NATIVE_EXIT(env, that, NavDialogGetUserAction_FUNC); |
7173 |
#endif |
| 7174 |
return rc; |
7174 |
|
| 7175 |
} |
7175 |
#ifndef NO_NavCreatePutFileDialog |
| 7176 |
#endif |
7176 |
JNIEXPORT jint JNICALL OS_NATIVE(NavCreatePutFileDialog) |
| 7177 |
|
7177 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2, jint arg3, jint arg4, jintArray arg5) |
| 7178 |
#ifndef NO_NavDialogRun |
7178 |
{ |
| 7179 |
JNIEXPORT jint JNICALL OS_NATIVE(NavDialogRun) |
7179 |
NavDialogCreationOptions _arg0, *lparg0=NULL; |
| 7180 |
(JNIEnv *env, jclass that, jint arg0) |
7180 |
jint *lparg5=NULL; |
| 7181 |
{ |
7181 |
jint rc = 0; |
| 7182 |
jint rc = 0; |
7182 |
OS_NATIVE_ENTER(env, that, NavCreatePutFileDialog_FUNC); |
| 7183 |
OS_NATIVE_ENTER(env, that, NavDialogRun_FUNC); |
7183 |
if (arg0) if ((lparg0 = getNavDialogCreationOptionsFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 7184 |
rc = (jint)NavDialogRun((NavDialogRef)arg0); |
7184 |
if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 7185 |
OS_NATIVE_EXIT(env, that, NavDialogRun_FUNC); |
7185 |
rc = (jint)NavCreatePutFileDialog((const NavDialogCreationOptions *)lparg0, (OSType)arg1, (OSType)arg2, (NavEventUPP)arg3, (void *)arg4, (NavDialogRef *)lparg5); |
| 7186 |
return rc; |
7186 |
fail: |
| 7187 |
} |
7187 |
if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0); |
| 7188 |
#endif |
7188 |
if (arg0 && lparg0) setNavDialogCreationOptionsFields(env, arg0, lparg0); |
| 7189 |
|
7189 |
OS_NATIVE_EXIT(env, that, NavCreatePutFileDialog_FUNC); |
| 7190 |
#ifndef NO_NavDialogSetSaveFileName |
7190 |
return rc; |
| 7191 |
JNIEXPORT jint JNICALL OS_NATIVE(NavDialogSetSaveFileName) |
7191 |
} |
| 7192 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
7192 |
#endif |
| 7193 |
{ |
7193 |
|
| 7194 |
jint rc = 0; |
7194 |
#ifndef NO_NavDialogDispose |
| 7195 |
OS_NATIVE_ENTER(env, that, NavDialogSetSaveFileName_FUNC); |
7195 |
JNIEXPORT void JNICALL OS_NATIVE(NavDialogDispose) |
| 7196 |
rc = (jint)NavDialogSetSaveFileName((NavDialogRef)arg0, (CFStringRef)arg1); |
7196 |
(JNIEnv *env, jclass that, jint arg0) |
| 7197 |
OS_NATIVE_EXIT(env, that, NavDialogSetSaveFileName_FUNC); |
7197 |
{ |
| 7198 |
return rc; |
7198 |
OS_NATIVE_ENTER(env, that, NavDialogDispose_FUNC); |
| 7199 |
} |
7199 |
NavDialogDispose((NavDialogRef)arg0); |
| 7200 |
#endif |
7200 |
OS_NATIVE_EXIT(env, that, NavDialogDispose_FUNC); |
| 7201 |
|
7201 |
} |
| 7202 |
#ifndef NO_NavGetDefaultDialogCreationOptions |
7202 |
#endif |
| 7203 |
JNIEXPORT jint JNICALL OS_NATIVE(NavGetDefaultDialogCreationOptions) |
7203 |
|
| 7204 |
(JNIEnv *env, jclass that, jobject arg0) |
7204 |
#ifndef NO_NavDialogGetReply |
| 7205 |
{ |
7205 |
JNIEXPORT jint JNICALL OS_NATIVE(NavDialogGetReply) |
| 7206 |
NavDialogCreationOptions _arg0, *lparg0=NULL; |
7206 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 7207 |
jint rc = 0; |
7207 |
{ |
| 7208 |
OS_NATIVE_ENTER(env, that, NavGetDefaultDialogCreationOptions_FUNC); |
7208 |
NavReplyRecord _arg1, *lparg1=NULL; |
| 7209 |
if (arg0) if ((lparg0 = getNavDialogCreationOptionsFields(env, arg0, &_arg0)) == NULL) goto fail; |
7209 |
jint rc = 0; |
| 7210 |
rc = (jint)NavGetDefaultDialogCreationOptions((NavDialogCreationOptions *)lparg0); |
7210 |
OS_NATIVE_ENTER(env, that, NavDialogGetReply_FUNC); |
| 7211 |
fail: |
7211 |
if (arg1) if ((lparg1 = getNavReplyRecordFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 7212 |
if (arg0 && lparg0) setNavDialogCreationOptionsFields(env, arg0, lparg0); |
7212 |
rc = (jint)NavDialogGetReply((NavDialogRef)arg0, (NavReplyRecord *)lparg1); |
| 7213 |
OS_NATIVE_EXIT(env, that, NavGetDefaultDialogCreationOptions_FUNC); |
7213 |
fail: |
| 7214 |
return rc; |
7214 |
if (arg1 && lparg1) setNavReplyRecordFields(env, arg1, lparg1); |
| 7215 |
} |
7215 |
OS_NATIVE_EXIT(env, that, NavDialogGetReply_FUNC); |
| 7216 |
#endif |
7216 |
return rc; |
| 7217 |
|
7217 |
} |
| 7218 |
#ifndef NO_NewControl |
7218 |
#endif |
| 7219 |
JNIEXPORT jint JNICALL OS_NATIVE(NewControl) |
7219 |
|
| 7220 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jbyteArray arg2, jboolean arg3, jshort arg4, jshort arg5, jshort arg6, jshort arg7, jint arg8) |
7220 |
#ifndef NO_NavDialogGetSaveFileName |
| 7221 |
{ |
7221 |
JNIEXPORT jint JNICALL OS_NATIVE(NavDialogGetSaveFileName) |
| 7222 |
Rect _arg1, *lparg1=NULL; |
7222 |
(JNIEnv *env, jclass that, jint arg0) |
| 7223 |
jbyte *lparg2=NULL; |
7223 |
{ |
| 7224 |
jint rc = 0; |
7224 |
jint rc = 0; |
| 7225 |
OS_NATIVE_ENTER(env, that, NewControl_FUNC); |
7225 |
OS_NATIVE_ENTER(env, that, NavDialogGetSaveFileName_FUNC); |
| 7226 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
7226 |
rc = (jint)NavDialogGetSaveFileName((NavDialogRef)arg0); |
| 7227 |
if (arg2) if ((lparg2 = (*env)->GetByteArrayElements(env, arg2, NULL)) == NULL) goto fail; |
7227 |
OS_NATIVE_EXIT(env, that, NavDialogGetSaveFileName_FUNC); |
| 7228 |
rc = (jint)NewControl((WindowRef)arg0, (const Rect *)lparg1, (ConstStr255Param)lparg2, (Boolean)arg3, (SInt16)arg4, (SInt16)arg5, (SInt16)arg6, (SInt16)arg7, (SInt32)arg8); |
7228 |
return rc; |
| 7229 |
fail: |
7229 |
} |
| 7230 |
if (arg2 && lparg2) (*env)->ReleaseByteArrayElements(env, arg2, lparg2, 0); |
7230 |
#endif |
| 7231 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
7231 |
|
| 7232 |
OS_NATIVE_EXIT(env, that, NewControl_FUNC); |
7232 |
#ifndef NO_NavDialogGetUserAction |
| 7233 |
return rc; |
7233 |
JNIEXPORT jint JNICALL OS_NATIVE(NavDialogGetUserAction) |
| 7234 |
} |
7234 |
(JNIEnv *env, jclass that, jint arg0) |
| 7235 |
#endif |
7235 |
{ |
| 7236 |
|
7236 |
jint rc = 0; |
| 7237 |
#ifndef NO_NewDrag |
7237 |
OS_NATIVE_ENTER(env, that, NavDialogGetUserAction_FUNC); |
| 7238 |
JNIEXPORT jint JNICALL OS_NATIVE(NewDrag) |
7238 |
rc = (jint)NavDialogGetUserAction((NavDialogRef)arg0); |
| 7239 |
(JNIEnv *env, jclass that, jintArray arg0) |
7239 |
OS_NATIVE_EXIT(env, that, NavDialogGetUserAction_FUNC); |
| 7240 |
{ |
7240 |
return rc; |
| 7241 |
jint *lparg0=NULL; |
7241 |
} |
| 7242 |
jint rc = 0; |
7242 |
#endif |
| 7243 |
OS_NATIVE_ENTER(env, that, NewDrag_FUNC); |
7243 |
|
| 7244 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
7244 |
#ifndef NO_NavDialogRun |
| 7245 |
rc = (jint)NewDrag((DragRef *)lparg0); |
7245 |
JNIEXPORT jint JNICALL OS_NATIVE(NavDialogRun) |
| 7246 |
fail: |
7246 |
(JNIEnv *env, jclass that, jint arg0) |
| 7247 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
7247 |
{ |
| 7248 |
OS_NATIVE_EXIT(env, that, NewDrag_FUNC); |
7248 |
jint rc = 0; |
| 7249 |
return rc; |
7249 |
OS_NATIVE_ENTER(env, that, NavDialogRun_FUNC); |
| 7250 |
} |
7250 |
rc = (jint)NavDialogRun((NavDialogRef)arg0); |
| 7251 |
#endif |
7251 |
OS_NATIVE_EXIT(env, that, NavDialogRun_FUNC); |
| 7252 |
|
7252 |
return rc; |
| 7253 |
#ifndef NO_NewGWorldFromPtr |
7253 |
} |
| 7254 |
JNIEXPORT jint JNICALL OS_NATIVE(NewGWorldFromPtr) |
7254 |
#endif |
| 7255 |
(JNIEnv *env, jclass that, jintArray arg0, jint arg1, jobject arg2, jint arg3, jint arg4, jint arg5, jint arg6, jint arg7) |
7255 |
|
| 7256 |
{ |
7256 |
#ifndef NO_NavDialogSetSaveFileName |
| 7257 |
jint *lparg0=NULL; |
7257 |
JNIEXPORT jint JNICALL OS_NATIVE(NavDialogSetSaveFileName) |
| 7258 |
Rect _arg2, *lparg2=NULL; |
7258 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 7259 |
jint rc = 0; |
7259 |
{ |
| 7260 |
OS_NATIVE_ENTER(env, that, NewGWorldFromPtr_FUNC); |
7260 |
jint rc = 0; |
| 7261 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
7261 |
OS_NATIVE_ENTER(env, that, NavDialogSetSaveFileName_FUNC); |
| 7262 |
if (arg2) if ((lparg2 = getRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
7262 |
rc = (jint)NavDialogSetSaveFileName((NavDialogRef)arg0, (CFStringRef)arg1); |
| 7263 |
rc = (jint)NewGWorldFromPtr((GWorldPtr *)lparg0, (unsigned long)arg1, (const Rect *)lparg2, (CTabHandle)arg3, (GDHandle)arg4, (GWorldFlags)arg5, (Ptr)arg6, (long)arg7); |
7263 |
OS_NATIVE_EXIT(env, that, NavDialogSetSaveFileName_FUNC); |
| 7264 |
fail: |
7264 |
return rc; |
| 7265 |
if (arg2 && lparg2) setRectFields(env, arg2, lparg2); |
7265 |
} |
| 7266 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
7266 |
#endif |
| 7267 |
OS_NATIVE_EXIT(env, that, NewGWorldFromPtr_FUNC); |
7267 |
|
| 7268 |
return rc; |
7268 |
#ifndef NO_NavGetDefaultDialogCreationOptions |
| 7269 |
} |
7269 |
JNIEXPORT jint JNICALL OS_NATIVE(NavGetDefaultDialogCreationOptions) |
| 7270 |
#endif |
7270 |
(JNIEnv *env, jclass that, jobject arg0) |
| 7271 |
|
7271 |
{ |
| 7272 |
#ifndef NO_NewHandle |
7272 |
NavDialogCreationOptions _arg0, *lparg0=NULL; |
| 7273 |
JNIEXPORT jint JNICALL OS_NATIVE(NewHandle) |
7273 |
jint rc = 0; |
| 7274 |
(JNIEnv *env, jclass that, jint arg0) |
7274 |
OS_NATIVE_ENTER(env, that, NavGetDefaultDialogCreationOptions_FUNC); |
| 7275 |
{ |
7275 |
if (arg0) if ((lparg0 = getNavDialogCreationOptionsFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 7276 |
jint rc = 0; |
7276 |
rc = (jint)NavGetDefaultDialogCreationOptions((NavDialogCreationOptions *)lparg0); |
| 7277 |
OS_NATIVE_ENTER(env, that, NewHandle_FUNC); |
7277 |
fail: |
| 7278 |
rc = (jint)NewHandle((Size)arg0); |
7278 |
if (arg0 && lparg0) setNavDialogCreationOptionsFields(env, arg0, lparg0); |
| 7279 |
OS_NATIVE_EXIT(env, that, NewHandle_FUNC); |
7279 |
OS_NATIVE_EXIT(env, that, NavGetDefaultDialogCreationOptions_FUNC); |
| 7280 |
return rc; |
7280 |
return rc; |
| 7281 |
} |
7281 |
} |
| 7282 |
#endif |
7282 |
#endif |
| 7283 |
|
7283 |
|
| 7284 |
#ifndef NO_NewHandleClear |
7284 |
#ifndef NO_NewControl |
| 7285 |
JNIEXPORT jint JNICALL OS_NATIVE(NewHandleClear) |
7285 |
JNIEXPORT jint JNICALL OS_NATIVE(NewControl) |
| 7286 |
(JNIEnv *env, jclass that, jint arg0) |
7286 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jbyteArray arg2, jboolean arg3, jshort arg4, jshort arg5, jshort arg6, jshort arg7, jint arg8) |
| 7287 |
{ |
7287 |
{ |
| 7288 |
jint rc = 0; |
7288 |
Rect _arg1, *lparg1=NULL; |
| 7289 |
OS_NATIVE_ENTER(env, that, NewHandleClear_FUNC); |
7289 |
jbyte *lparg2=NULL; |
| 7290 |
rc = (jint)NewHandleClear((Size)arg0); |
7290 |
jint rc = 0; |
| 7291 |
OS_NATIVE_EXIT(env, that, NewHandleClear_FUNC); |
7291 |
OS_NATIVE_ENTER(env, that, NewControl_FUNC); |
| 7292 |
return rc; |
7292 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 7293 |
} |
7293 |
if (arg2) if ((lparg2 = (*env)->GetByteArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 7294 |
#endif |
7294 |
rc = (jint)NewControl((WindowRef)arg0, (const Rect *)lparg1, (ConstStr255Param)lparg2, (Boolean)arg3, (SInt16)arg4, (SInt16)arg5, (SInt16)arg6, (SInt16)arg7, (SInt32)arg8); |
| 7295 |
|
7295 |
fail: |
| 7296 |
#ifndef NO_NewPtr |
7296 |
if (arg2 && lparg2) (*env)->ReleaseByteArrayElements(env, arg2, lparg2, 0); |
| 7297 |
JNIEXPORT jint JNICALL OS_NATIVE(NewPtr) |
7297 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 7298 |
(JNIEnv *env, jclass that, jint arg0) |
7298 |
OS_NATIVE_EXIT(env, that, NewControl_FUNC); |
| 7299 |
{ |
7299 |
return rc; |
| 7300 |
jint rc = 0; |
7300 |
} |
| 7301 |
OS_NATIVE_ENTER(env, that, NewPtr_FUNC); |
7301 |
#endif |
| 7302 |
rc = (jint)NewPtr((Size)arg0); |
7302 |
|
| 7303 |
OS_NATIVE_EXIT(env, that, NewPtr_FUNC); |
7303 |
#ifndef NO_NewDrag |
| 7304 |
return rc; |
7304 |
JNIEXPORT jint JNICALL OS_NATIVE(NewDrag) |
| 7305 |
} |
7305 |
(JNIEnv *env, jclass that, jintArray arg0) |
| 7306 |
#endif |
7306 |
{ |
| 7307 |
|
7307 |
jint *lparg0=NULL; |
| 7308 |
#ifndef NO_NewPtrClear |
7308 |
jint rc = 0; |
| 7309 |
JNIEXPORT jint JNICALL OS_NATIVE(NewPtrClear) |
7309 |
OS_NATIVE_ENTER(env, that, NewDrag_FUNC); |
| 7310 |
(JNIEnv *env, jclass that, jint arg0) |
7310 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 7311 |
{ |
7311 |
rc = (jint)NewDrag((DragRef *)lparg0); |
| 7312 |
jint rc = 0; |
7312 |
fail: |
| 7313 |
OS_NATIVE_ENTER(env, that, NewPtrClear_FUNC); |
7313 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 7314 |
rc = (jint)NewPtrClear((Size)arg0); |
7314 |
OS_NATIVE_EXIT(env, that, NewDrag_FUNC); |
| 7315 |
OS_NATIVE_EXIT(env, that, NewPtrClear_FUNC); |
7315 |
return rc; |
| 7316 |
return rc; |
7316 |
} |
| 7317 |
} |
7317 |
#endif |
| 7318 |
#endif |
7318 |
|
| 7319 |
|
7319 |
#ifndef NO_NewGWorldFromPtr |
| 7320 |
#ifndef NO_NewRgn |
7320 |
JNIEXPORT jint JNICALL OS_NATIVE(NewGWorldFromPtr) |
| 7321 |
JNIEXPORT jint JNICALL OS_NATIVE(NewRgn) |
7321 |
(JNIEnv *env, jclass that, jintArray arg0, jint arg1, jobject arg2, jint arg3, jint arg4, jint arg5, jint arg6, jint arg7) |
| 7322 |
(JNIEnv *env, jclass that) |
7322 |
{ |
| 7323 |
{ |
7323 |
jint *lparg0=NULL; |
| 7324 |
jint rc = 0; |
7324 |
Rect _arg2, *lparg2=NULL; |
| 7325 |
OS_NATIVE_ENTER(env, that, NewRgn_FUNC); |
7325 |
jint rc = 0; |
| 7326 |
rc = (jint)NewRgn(); |
7326 |
OS_NATIVE_ENTER(env, that, NewGWorldFromPtr_FUNC); |
| 7327 |
OS_NATIVE_EXIT(env, that, NewRgn_FUNC); |
7327 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 7328 |
return rc; |
7328 |
if (arg2) if ((lparg2 = getRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 7329 |
} |
7329 |
rc = (jint)NewGWorldFromPtr((GWorldPtr *)lparg0, (unsigned long)arg1, (const Rect *)lparg2, (CTabHandle)arg3, (GDHandle)arg4, (GWorldFlags)arg5, (Ptr)arg6, (long)arg7); |
| 7330 |
#endif |
7330 |
fail: |
| 7331 |
|
7331 |
if (arg2 && lparg2) setRectFields(env, arg2, lparg2); |
| 7332 |
#ifndef NO_OffsetRect |
7332 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 7333 |
JNIEXPORT void JNICALL OS_NATIVE(OffsetRect) |
7333 |
OS_NATIVE_EXIT(env, that, NewGWorldFromPtr_FUNC); |
| 7334 |
(JNIEnv *env, jclass that, jobject arg0, jshort arg1, jshort arg2) |
7334 |
return rc; |
| 7335 |
{ |
7335 |
} |
| 7336 |
Rect _arg0, *lparg0=NULL; |
7336 |
#endif |
| 7337 |
OS_NATIVE_ENTER(env, that, OffsetRect_FUNC); |
7337 |
|
| 7338 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
7338 |
#ifndef NO_NewHandle |
| 7339 |
OffsetRect(lparg0, arg1, arg2); |
7339 |
JNIEXPORT jint JNICALL OS_NATIVE(NewHandle) |
| 7340 |
fail: |
7340 |
(JNIEnv *env, jclass that, jint arg0) |
| 7341 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
7341 |
{ |
| 7342 |
OS_NATIVE_EXIT(env, that, OffsetRect_FUNC); |
7342 |
jint rc = 0; |
| 7343 |
} |
7343 |
OS_NATIVE_ENTER(env, that, NewHandle_FUNC); |
| 7344 |
#endif |
7344 |
rc = (jint)NewHandle((Size)arg0); |
| 7345 |
|
7345 |
OS_NATIVE_EXIT(env, that, NewHandle_FUNC); |
| 7346 |
#ifndef NO_OffsetRgn |
7346 |
return rc; |
| 7347 |
JNIEXPORT void JNICALL OS_NATIVE(OffsetRgn) |
7347 |
} |
| 7348 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshort arg2) |
7348 |
#endif |
| 7349 |
{ |
7349 |
|
| 7350 |
OS_NATIVE_ENTER(env, that, OffsetRgn_FUNC); |
7350 |
#ifndef NO_NewHandleClear |
| 7351 |
OffsetRgn((RgnHandle)arg0, (short)arg1, (short)arg2); |
7351 |
JNIEXPORT jint JNICALL OS_NATIVE(NewHandleClear) |
| 7352 |
OS_NATIVE_EXIT(env, that, OffsetRgn_FUNC); |
7352 |
(JNIEnv *env, jclass that, jint arg0) |
| 7353 |
} |
7353 |
{ |
| 7354 |
#endif |
7354 |
jint rc = 0; |
| 7355 |
|
7355 |
OS_NATIVE_ENTER(env, that, NewHandleClear_FUNC); |
| 7356 |
#ifndef NO_OpenDataBrowserContainer |
7356 |
rc = (jint)NewHandleClear((Size)arg0); |
| 7357 |
JNIEXPORT jint JNICALL OS_NATIVE(OpenDataBrowserContainer) |
7357 |
OS_NATIVE_EXIT(env, that, NewHandleClear_FUNC); |
| 7358 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
7358 |
return rc; |
| 7359 |
{ |
7359 |
} |
| 7360 |
jint rc = 0; |
7360 |
#endif |
| 7361 |
OS_NATIVE_ENTER(env, that, OpenDataBrowserContainer_FUNC); |
7361 |
|
| 7362 |
rc = (jint)OpenDataBrowserContainer((ControlRef)arg0, (DataBrowserItemID)arg1); |
7362 |
#ifndef NO_NewPtr |
| 7363 |
OS_NATIVE_EXIT(env, that, OpenDataBrowserContainer_FUNC); |
7363 |
JNIEXPORT jint JNICALL OS_NATIVE(NewPtr) |
| 7364 |
return rc; |
7364 |
(JNIEnv *env, jclass that, jint arg0) |
| 7365 |
} |
7365 |
{ |
| 7366 |
#endif |
7366 |
jint rc = 0; |
| 7367 |
|
7367 |
OS_NATIVE_ENTER(env, that, NewPtr_FUNC); |
| 7368 |
#ifndef NO_OpenPoly |
7368 |
rc = (jint)NewPtr((Size)arg0); |
| 7369 |
JNIEXPORT jint JNICALL OS_NATIVE(OpenPoly) |
7369 |
OS_NATIVE_EXIT(env, that, NewPtr_FUNC); |
| 7370 |
(JNIEnv *env, jclass that) |
7370 |
return rc; |
| 7371 |
{ |
7371 |
} |
| 7372 |
jint rc = 0; |
7372 |
#endif |
| 7373 |
OS_NATIVE_ENTER(env, that, OpenPoly_FUNC); |
7373 |
|
| 7374 |
rc = (jint)OpenPoly(); |
7374 |
#ifndef NO_NewPtrClear |
| 7375 |
OS_NATIVE_EXIT(env, that, OpenPoly_FUNC); |
7375 |
JNIEXPORT jint JNICALL OS_NATIVE(NewPtrClear) |
| 7376 |
return rc; |
7376 |
(JNIEnv *env, jclass that, jint arg0) |
| 7377 |
} |
7377 |
{ |
| 7378 |
#endif |
7378 |
jint rc = 0; |
| 7379 |
|
7379 |
OS_NATIVE_ENTER(env, that, NewPtrClear_FUNC); |
| 7380 |
#ifndef NO_OpenRgn |
7380 |
rc = (jint)NewPtrClear((Size)arg0); |
| 7381 |
JNIEXPORT void JNICALL OS_NATIVE(OpenRgn) |
7381 |
OS_NATIVE_EXIT(env, that, NewPtrClear_FUNC); |
| 7382 |
(JNIEnv *env, jclass that) |
7382 |
return rc; |
| 7383 |
{ |
7383 |
} |
| 7384 |
OS_NATIVE_ENTER(env, that, OpenRgn_FUNC); |
7384 |
#endif |
| 7385 |
OpenRgn(); |
7385 |
|
| 7386 |
OS_NATIVE_EXIT(env, that, OpenRgn_FUNC); |
7386 |
#ifndef NO_NewRgn |
| 7387 |
} |
7387 |
JNIEXPORT jint JNICALL OS_NATIVE(NewRgn) |
| 7388 |
#endif |
7388 |
(JNIEnv *env, jclass that) |
| 7389 |
|
7389 |
{ |
| 7390 |
#ifndef NO_PMCreatePageFormat |
7390 |
jint rc = 0; |
| 7391 |
JNIEXPORT jint JNICALL OS_NATIVE(PMCreatePageFormat) |
7391 |
OS_NATIVE_ENTER(env, that, NewRgn_FUNC); |
| 7392 |
(JNIEnv *env, jclass that, jintArray arg0) |
7392 |
rc = (jint)NewRgn(); |
| 7393 |
{ |
7393 |
OS_NATIVE_EXIT(env, that, NewRgn_FUNC); |
| 7394 |
jint *lparg0=NULL; |
7394 |
return rc; |
| 7395 |
jint rc = 0; |
7395 |
} |
| 7396 |
OS_NATIVE_ENTER(env, that, PMCreatePageFormat_FUNC); |
7396 |
#endif |
| 7397 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
7397 |
|
| 7398 |
rc = (jint)PMCreatePageFormat((PMPageFormat *)lparg0); |
7398 |
#ifndef NO_OffsetRect |
| 7399 |
fail: |
7399 |
JNIEXPORT void JNICALL OS_NATIVE(OffsetRect) |
| 7400 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
7400 |
(JNIEnv *env, jclass that, jobject arg0, jshort arg1, jshort arg2) |
| 7401 |
OS_NATIVE_EXIT(env, that, PMCreatePageFormat_FUNC); |
7401 |
{ |
| 7402 |
return rc; |
7402 |
Rect _arg0, *lparg0=NULL; |
| 7403 |
} |
7403 |
OS_NATIVE_ENTER(env, that, OffsetRect_FUNC); |
| 7404 |
#endif |
7404 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 7405 |
|
7405 |
OffsetRect(lparg0, arg1, arg2); |
| 7406 |
#ifndef NO_PMCreatePrintSettings |
7406 |
fail: |
| 7407 |
JNIEXPORT jint JNICALL OS_NATIVE(PMCreatePrintSettings) |
7407 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 7408 |
(JNIEnv *env, jclass that, jintArray arg0) |
7408 |
OS_NATIVE_EXIT(env, that, OffsetRect_FUNC); |
| 7409 |
{ |
7409 |
} |
| 7410 |
jint *lparg0=NULL; |
7410 |
#endif |
| 7411 |
jint rc = 0; |
7411 |
|
| 7412 |
OS_NATIVE_ENTER(env, that, PMCreatePrintSettings_FUNC); |
7412 |
#ifndef NO_OffsetRgn |
| 7413 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
7413 |
JNIEXPORT void JNICALL OS_NATIVE(OffsetRgn) |
| 7414 |
rc = (jint)PMCreatePrintSettings((PMPrintSettings *)lparg0); |
7414 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshort arg2) |
| 7415 |
fail: |
7415 |
{ |
| 7416 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
7416 |
OS_NATIVE_ENTER(env, that, OffsetRgn_FUNC); |
| 7417 |
OS_NATIVE_EXIT(env, that, PMCreatePrintSettings_FUNC); |
7417 |
OffsetRgn((RgnHandle)arg0, (short)arg1, (short)arg2); |
| 7418 |
return rc; |
7418 |
OS_NATIVE_EXIT(env, that, OffsetRgn_FUNC); |
| 7419 |
} |
7419 |
} |
| 7420 |
#endif |
7420 |
#endif |
| 7421 |
|
7421 |
|
| 7422 |
#ifndef NO_PMCreateSession |
7422 |
#ifndef NO_OpenDataBrowserContainer |
| 7423 |
JNIEXPORT jint JNICALL OS_NATIVE(PMCreateSession) |
7423 |
JNIEXPORT jint JNICALL OS_NATIVE(OpenDataBrowserContainer) |
| 7424 |
(JNIEnv *env, jclass that, jintArray arg0) |
7424 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 7425 |
{ |
7425 |
{ |
| 7426 |
jint *lparg0=NULL; |
7426 |
jint rc = 0; |
| 7427 |
jint rc = 0; |
7427 |
OS_NATIVE_ENTER(env, that, OpenDataBrowserContainer_FUNC); |
| 7428 |
OS_NATIVE_ENTER(env, that, PMCreateSession_FUNC); |
7428 |
rc = (jint)OpenDataBrowserContainer((ControlRef)arg0, (DataBrowserItemID)arg1); |
| 7429 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
7429 |
OS_NATIVE_EXIT(env, that, OpenDataBrowserContainer_FUNC); |
| 7430 |
rc = (jint)PMCreateSession((PMPrintSession *)lparg0); |
7430 |
return rc; |
| 7431 |
fail: |
7431 |
} |
| 7432 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
7432 |
#endif |
| 7433 |
OS_NATIVE_EXIT(env, that, PMCreateSession_FUNC); |
7433 |
|
| 7434 |
return rc; |
7434 |
#ifndef NO_OpenPoly |
| 7435 |
} |
7435 |
JNIEXPORT jint JNICALL OS_NATIVE(OpenPoly) |
| 7436 |
#endif |
7436 |
(JNIEnv *env, jclass that) |
| 7437 |
|
7437 |
{ |
| 7438 |
#ifndef NO_PMFlattenPageFormat |
7438 |
jint rc = 0; |
| 7439 |
JNIEXPORT jint JNICALL OS_NATIVE(PMFlattenPageFormat) |
7439 |
OS_NATIVE_ENTER(env, that, OpenPoly_FUNC); |
| 7440 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
7440 |
rc = (jint)OpenPoly(); |
| 7441 |
{ |
7441 |
OS_NATIVE_EXIT(env, that, OpenPoly_FUNC); |
| 7442 |
jint *lparg1=NULL; |
7442 |
return rc; |
| 7443 |
jint rc = 0; |
7443 |
} |
| 7444 |
OS_NATIVE_ENTER(env, that, PMFlattenPageFormat_FUNC); |
7444 |
#endif |
| 7445 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
7445 |
|
| 7446 |
rc = (jint)PMFlattenPageFormat((PMPageFormat)arg0, (Handle *)lparg1); |
7446 |
#ifndef NO_OpenRgn |
| 7447 |
fail: |
7447 |
JNIEXPORT void JNICALL OS_NATIVE(OpenRgn) |
| 7448 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
7448 |
(JNIEnv *env, jclass that) |
| 7449 |
OS_NATIVE_EXIT(env, that, PMFlattenPageFormat_FUNC); |
7449 |
{ |
| 7450 |
return rc; |
7450 |
OS_NATIVE_ENTER(env, that, OpenRgn_FUNC); |
| 7451 |
} |
7451 |
OpenRgn(); |
| 7452 |
#endif |
7452 |
OS_NATIVE_EXIT(env, that, OpenRgn_FUNC); |
| 7453 |
|
7453 |
} |
| 7454 |
#ifndef NO_PMFlattenPrintSettings |
7454 |
#endif |
| 7455 |
JNIEXPORT jint JNICALL OS_NATIVE(PMFlattenPrintSettings) |
7455 |
|
| 7456 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
7456 |
#ifndef NO_PMCreatePageFormat |
| 7457 |
{ |
7457 |
JNIEXPORT jint JNICALL OS_NATIVE(PMCreatePageFormat) |
| 7458 |
jint *lparg1=NULL; |
7458 |
(JNIEnv *env, jclass that, jintArray arg0) |
| 7459 |
jint rc = 0; |
7459 |
{ |
| 7460 |
OS_NATIVE_ENTER(env, that, PMFlattenPrintSettings_FUNC); |
7460 |
jint *lparg0=NULL; |
| 7461 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
7461 |
jint rc = 0; |
| 7462 |
rc = (jint)PMFlattenPrintSettings((PMPrintSettings)arg0, (Handle *)lparg1); |
7462 |
OS_NATIVE_ENTER(env, that, PMCreatePageFormat_FUNC); |
| 7463 |
fail: |
7463 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 7464 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
7464 |
rc = (jint)PMCreatePageFormat((PMPageFormat *)lparg0); |
| 7465 |
OS_NATIVE_EXIT(env, that, PMFlattenPrintSettings_FUNC); |
7465 |
fail: |
| 7466 |
return rc; |
7466 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 7467 |
} |
7467 |
OS_NATIVE_EXIT(env, that, PMCreatePageFormat_FUNC); |
| 7468 |
#endif |
7468 |
return rc; |
| 7469 |
|
7469 |
} |
| 7470 |
#ifndef NO_PMGetAdjustedPageRect |
7470 |
#endif |
| 7471 |
JNIEXPORT jint JNICALL OS_NATIVE(PMGetAdjustedPageRect) |
7471 |
|
| 7472 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
7472 |
#ifndef NO_PMCreatePrintSettings |
| 7473 |
{ |
7473 |
JNIEXPORT jint JNICALL OS_NATIVE(PMCreatePrintSettings) |
| 7474 |
PMRect _arg1, *lparg1=NULL; |
7474 |
(JNIEnv *env, jclass that, jintArray arg0) |
| 7475 |
jint rc = 0; |
7475 |
{ |
| 7476 |
OS_NATIVE_ENTER(env, that, PMGetAdjustedPageRect_FUNC); |
7476 |
jint *lparg0=NULL; |
| 7477 |
if (arg1) if ((lparg1 = getPMRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
7477 |
jint rc = 0; |
| 7478 |
rc = (jint)PMGetAdjustedPageRect((PMPageFormat)arg0, (PMRect *)lparg1); |
7478 |
OS_NATIVE_ENTER(env, that, PMCreatePrintSettings_FUNC); |
| 7479 |
fail: |
7479 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 7480 |
if (arg1 && lparg1) setPMRectFields(env, arg1, lparg1); |
7480 |
rc = (jint)PMCreatePrintSettings((PMPrintSettings *)lparg0); |
| 7481 |
OS_NATIVE_EXIT(env, that, PMGetAdjustedPageRect_FUNC); |
7481 |
fail: |
| 7482 |
return rc; |
7482 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 7483 |
} |
7483 |
OS_NATIVE_EXIT(env, that, PMCreatePrintSettings_FUNC); |
| 7484 |
#endif |
7484 |
return rc; |
| 7485 |
|
7485 |
} |
| 7486 |
#ifndef NO_PMGetAdjustedPaperRect |
7486 |
#endif |
| 7487 |
JNIEXPORT jint JNICALL OS_NATIVE(PMGetAdjustedPaperRect) |
7487 |
|
| 7488 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
7488 |
#ifndef NO_PMCreateSession |
| 7489 |
{ |
7489 |
JNIEXPORT jint JNICALL OS_NATIVE(PMCreateSession) |
| 7490 |
PMRect _arg1, *lparg1=NULL; |
7490 |
(JNIEnv *env, jclass that, jintArray arg0) |
| 7491 |
jint rc = 0; |
7491 |
{ |
| 7492 |
OS_NATIVE_ENTER(env, that, PMGetAdjustedPaperRect_FUNC); |
7492 |
jint *lparg0=NULL; |
| 7493 |
if (arg1) if ((lparg1 = getPMRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
7493 |
jint rc = 0; |
| 7494 |
rc = (jint)PMGetAdjustedPaperRect((PMPageFormat)arg0, (PMRect *)lparg1); |
7494 |
OS_NATIVE_ENTER(env, that, PMCreateSession_FUNC); |
| 7495 |
fail: |
7495 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 7496 |
if (arg1 && lparg1) setPMRectFields(env, arg1, lparg1); |
7496 |
rc = (jint)PMCreateSession((PMPrintSession *)lparg0); |
| 7497 |
OS_NATIVE_EXIT(env, that, PMGetAdjustedPaperRect_FUNC); |
7497 |
fail: |
| 7498 |
return rc; |
7498 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 7499 |
} |
7499 |
OS_NATIVE_EXIT(env, that, PMCreateSession_FUNC); |
| 7500 |
#endif |
7500 |
return rc; |
| 7501 |
|
7501 |
} |
| 7502 |
#ifndef NO_PMGetCollate |
7502 |
#endif |
| 7503 |
JNIEXPORT jint JNICALL OS_NATIVE(PMGetCollate) |
7503 |
|
| 7504 |
(JNIEnv *env, jclass that, jint arg0, jbooleanArray arg1) |
7504 |
#ifndef NO_PMFlattenPageFormat |
| 7505 |
{ |
7505 |
JNIEXPORT jint JNICALL OS_NATIVE(PMFlattenPageFormat) |
| 7506 |
jboolean *lparg1=NULL; |
7506 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 7507 |
jint rc = 0; |
7507 |
{ |
| 7508 |
OS_NATIVE_ENTER(env, that, PMGetCollate_FUNC); |
7508 |
jint *lparg1=NULL; |
| 7509 |
if (arg1) if ((lparg1 = (*env)->GetBooleanArrayElements(env, arg1, NULL)) == NULL) goto fail; |
7509 |
jint rc = 0; |
| 7510 |
rc = (jint)PMGetCollate((PMPrintSettings)arg0, lparg1); |
7510 |
OS_NATIVE_ENTER(env, that, PMFlattenPageFormat_FUNC); |
| 7511 |
fail: |
7511 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 7512 |
if (arg1 && lparg1) (*env)->ReleaseBooleanArrayElements(env, arg1, lparg1, 0); |
7512 |
rc = (jint)PMFlattenPageFormat((PMPageFormat)arg0, (Handle *)lparg1); |
| 7513 |
OS_NATIVE_EXIT(env, that, PMGetCollate_FUNC); |
7513 |
fail: |
| 7514 |
return rc; |
7514 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 7515 |
} |
7515 |
OS_NATIVE_EXIT(env, that, PMFlattenPageFormat_FUNC); |
| 7516 |
#endif |
7516 |
return rc; |
| 7517 |
|
7517 |
} |
| 7518 |
#ifndef NO_PMGetCopies |
7518 |
#endif |
| 7519 |
JNIEXPORT jint JNICALL OS_NATIVE(PMGetCopies) |
7519 |
|
| 7520 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
7520 |
#ifndef NO_PMFlattenPrintSettings |
| 7521 |
{ |
7521 |
JNIEXPORT jint JNICALL OS_NATIVE(PMFlattenPrintSettings) |
| 7522 |
jint *lparg1=NULL; |
7522 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 7523 |
jint rc = 0; |
7523 |
{ |
| 7524 |
OS_NATIVE_ENTER(env, that, PMGetCopies_FUNC); |
7524 |
jint *lparg1=NULL; |
| 7525 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
7525 |
jint rc = 0; |
| 7526 |
rc = (jint)PMGetCopies((PMPrintSettings)arg0, (UInt32 *)lparg1); |
7526 |
OS_NATIVE_ENTER(env, that, PMFlattenPrintSettings_FUNC); |
| 7527 |
fail: |
7527 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 7528 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
7528 |
rc = (jint)PMFlattenPrintSettings((PMPrintSettings)arg0, (Handle *)lparg1); |
| 7529 |
OS_NATIVE_EXIT(env, that, PMGetCopies_FUNC); |
7529 |
fail: |
| 7530 |
return rc; |
7530 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 7531 |
} |
7531 |
OS_NATIVE_EXIT(env, that, PMFlattenPrintSettings_FUNC); |
| 7532 |
#endif |
7532 |
return rc; |
| 7533 |
|
7533 |
} |
| 7534 |
#ifndef NO_PMGetFirstPage |
7534 |
#endif |
| 7535 |
JNIEXPORT jint JNICALL OS_NATIVE(PMGetFirstPage) |
7535 |
|
| 7536 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
7536 |
#ifndef NO_PMGetAdjustedPageRect |
| 7537 |
{ |
7537 |
JNIEXPORT jint JNICALL OS_NATIVE(PMGetAdjustedPageRect) |
| 7538 |
jint *lparg1=NULL; |
7538 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 7539 |
jint rc = 0; |
7539 |
{ |
| 7540 |
OS_NATIVE_ENTER(env, that, PMGetFirstPage_FUNC); |
7540 |
PMRect _arg1, *lparg1=NULL; |
| 7541 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
7541 |
jint rc = 0; |
| 7542 |
rc = (jint)PMGetFirstPage((PMPrintSettings)arg0, (UInt32 *)lparg1); |
7542 |
OS_NATIVE_ENTER(env, that, PMGetAdjustedPageRect_FUNC); |
| 7543 |
fail: |
7543 |
if (arg1) if ((lparg1 = getPMRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 7544 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
7544 |
rc = (jint)PMGetAdjustedPageRect((PMPageFormat)arg0, (PMRect *)lparg1); |
| 7545 |
OS_NATIVE_EXIT(env, that, PMGetFirstPage_FUNC); |
7545 |
fail: |
| 7546 |
return rc; |
7546 |
if (arg1 && lparg1) setPMRectFields(env, arg1, lparg1); |
| 7547 |
} |
7547 |
OS_NATIVE_EXIT(env, that, PMGetAdjustedPageRect_FUNC); |
| 7548 |
#endif |
7548 |
return rc; |
| 7549 |
|
7549 |
} |
| 7550 |
#ifndef NO_PMGetJobNameCFString |
7550 |
#endif |
| 7551 |
JNIEXPORT jint JNICALL OS_NATIVE(PMGetJobNameCFString) |
7551 |
|
| 7552 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
7552 |
#ifndef NO_PMGetAdjustedPaperRect |
| 7553 |
{ |
7553 |
JNIEXPORT jint JNICALL OS_NATIVE(PMGetAdjustedPaperRect) |
| 7554 |
jint *lparg1=NULL; |
7554 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 7555 |
jint rc = 0; |
7555 |
{ |
| 7556 |
OS_NATIVE_ENTER(env, that, PMGetJobNameCFString_FUNC); |
7556 |
PMRect _arg1, *lparg1=NULL; |
| 7557 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
7557 |
jint rc = 0; |
| 7558 |
rc = (jint)PMGetJobNameCFString((PMPrintSettings)arg0, (CFStringRef *)lparg1); |
7558 |
OS_NATIVE_ENTER(env, that, PMGetAdjustedPaperRect_FUNC); |
| 7559 |
fail: |
7559 |
if (arg1) if ((lparg1 = getPMRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 7560 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
7560 |
rc = (jint)PMGetAdjustedPaperRect((PMPageFormat)arg0, (PMRect *)lparg1); |
| 7561 |
OS_NATIVE_EXIT(env, that, PMGetJobNameCFString_FUNC); |
7561 |
fail: |
| 7562 |
return rc; |
7562 |
if (arg1 && lparg1) setPMRectFields(env, arg1, lparg1); |
| 7563 |
} |
7563 |
OS_NATIVE_EXIT(env, that, PMGetAdjustedPaperRect_FUNC); |
| 7564 |
#endif |
7564 |
return rc; |
| 7565 |
|
7565 |
} |
| 7566 |
#ifndef NO_PMGetLastPage |
7566 |
#endif |
| 7567 |
JNIEXPORT jint JNICALL OS_NATIVE(PMGetLastPage) |
7567 |
|
| 7568 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
7568 |
#ifndef NO_PMGetCollate |
| 7569 |
{ |
7569 |
JNIEXPORT jint JNICALL OS_NATIVE(PMGetCollate) |
| 7570 |
jint *lparg1=NULL; |
7570 |
(JNIEnv *env, jclass that, jint arg0, jbooleanArray arg1) |
| 7571 |
jint rc = 0; |
7571 |
{ |
| 7572 |
OS_NATIVE_ENTER(env, that, PMGetLastPage_FUNC); |
7572 |
jboolean *lparg1=NULL; |
| 7573 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
7573 |
jint rc = 0; |
| 7574 |
rc = (jint)PMGetLastPage((PMPrintSettings)arg0, (UInt32 *)lparg1); |
7574 |
OS_NATIVE_ENTER(env, that, PMGetCollate_FUNC); |
| 7575 |
fail: |
7575 |
if (arg1) if ((lparg1 = (*env)->GetBooleanArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 7576 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
7576 |
rc = (jint)PMGetCollate((PMPrintSettings)arg0, lparg1); |
| 7577 |
OS_NATIVE_EXIT(env, that, PMGetLastPage_FUNC); |
7577 |
fail: |
| 7578 |
return rc; |
7578 |
if (arg1 && lparg1) (*env)->ReleaseBooleanArrayElements(env, arg1, lparg1, 0); |
| 7579 |
} |
7579 |
OS_NATIVE_EXIT(env, that, PMGetCollate_FUNC); |
| 7580 |
#endif |
7580 |
return rc; |
| 7581 |
|
7581 |
} |
| 7582 |
#ifndef NO_PMGetPageRange |
7582 |
#endif |
| 7583 |
JNIEXPORT jint JNICALL OS_NATIVE(PMGetPageRange) |
7583 |
|
| 7584 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jintArray arg2) |
7584 |
#ifndef NO_PMGetCopies |
| 7585 |
{ |
7585 |
JNIEXPORT jint JNICALL OS_NATIVE(PMGetCopies) |
| 7586 |
jint *lparg1=NULL; |
7586 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 7587 |
jint *lparg2=NULL; |
7587 |
{ |
| 7588 |
jint rc = 0; |
7588 |
jint *lparg1=NULL; |
| 7589 |
OS_NATIVE_ENTER(env, that, PMGetPageRange_FUNC); |
7589 |
jint rc = 0; |
| 7590 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
7590 |
OS_NATIVE_ENTER(env, that, PMGetCopies_FUNC); |
| 7591 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
7591 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 7592 |
rc = (jint)PMGetPageRange((PMPrintSettings)arg0, (UInt32 *)lparg1, (UInt32 *)lparg2); |
7592 |
rc = (jint)PMGetCopies((PMPrintSettings)arg0, (UInt32 *)lparg1); |
| 7593 |
fail: |
7593 |
fail: |
| 7594 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
7594 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 7595 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
7595 |
OS_NATIVE_EXIT(env, that, PMGetCopies_FUNC); |
| 7596 |
OS_NATIVE_EXIT(env, that, PMGetPageRange_FUNC); |
7596 |
return rc; |
| 7597 |
return rc; |
7597 |
} |
| 7598 |
} |
7598 |
#endif |
| 7599 |
#endif |
7599 |
|
| 7600 |
|
7600 |
#ifndef NO_PMGetFirstPage |
| 7601 |
#ifndef NO_PMGetResolution |
7601 |
JNIEXPORT jint JNICALL OS_NATIVE(PMGetFirstPage) |
| 7602 |
JNIEXPORT jint JNICALL OS_NATIVE(PMGetResolution) |
7602 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 7603 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
7603 |
{ |
| 7604 |
{ |
7604 |
jint *lparg1=NULL; |
| 7605 |
PMResolution _arg1, *lparg1=NULL; |
7605 |
jint rc = 0; |
| 7606 |
jint rc = 0; |
7606 |
OS_NATIVE_ENTER(env, that, PMGetFirstPage_FUNC); |
| 7607 |
OS_NATIVE_ENTER(env, that, PMGetResolution_FUNC); |
7607 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 7608 |
if (arg1) if ((lparg1 = getPMResolutionFields(env, arg1, &_arg1)) == NULL) goto fail; |
7608 |
rc = (jint)PMGetFirstPage((PMPrintSettings)arg0, (UInt32 *)lparg1); |
| 7609 |
rc = (jint)PMGetResolution((PMPageFormat)arg0, (PMResolution *)lparg1); |
7609 |
fail: |
| 7610 |
fail: |
7610 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 7611 |
if (arg1 && lparg1) setPMResolutionFields(env, arg1, lparg1); |
7611 |
OS_NATIVE_EXIT(env, that, PMGetFirstPage_FUNC); |
| 7612 |
OS_NATIVE_EXIT(env, that, PMGetResolution_FUNC); |
7612 |
return rc; |
| 7613 |
return rc; |
7613 |
} |
| 7614 |
} |
7614 |
#endif |
| 7615 |
#endif |
7615 |
|
| 7616 |
|
7616 |
#ifndef NO_PMGetJobNameCFString |
| 7617 |
#ifndef NO_PMRelease |
7617 |
JNIEXPORT jint JNICALL OS_NATIVE(PMGetJobNameCFString) |
| 7618 |
JNIEXPORT jint JNICALL OS_NATIVE(PMRelease) |
7618 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 7619 |
(JNIEnv *env, jclass that, jint arg0) |
7619 |
{ |
| 7620 |
{ |
7620 |
jint *lparg1=NULL; |
| 7621 |
jint rc = 0; |
7621 |
jint rc = 0; |
| 7622 |
OS_NATIVE_ENTER(env, that, PMRelease_FUNC); |
7622 |
OS_NATIVE_ENTER(env, that, PMGetJobNameCFString_FUNC); |
| 7623 |
rc = (jint)PMRelease((PMObject)arg0); |
7623 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 7624 |
OS_NATIVE_EXIT(env, that, PMRelease_FUNC); |
7624 |
rc = (jint)PMGetJobNameCFString((PMPrintSettings)arg0, (CFStringRef *)lparg1); |
| 7625 |
return rc; |
7625 |
fail: |
| 7626 |
} |
7626 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 7627 |
#endif |
7627 |
OS_NATIVE_EXIT(env, that, PMGetJobNameCFString_FUNC); |
| 7628 |
|
7628 |
return rc; |
| 7629 |
#ifndef NO_PMSessionBeginDocumentNoDialog |
7629 |
} |
| 7630 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionBeginDocumentNoDialog) |
7630 |
#endif |
| 7631 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
7631 |
|
| 7632 |
{ |
7632 |
#ifndef NO_PMGetLastPage |
| 7633 |
jint rc = 0; |
7633 |
JNIEXPORT jint JNICALL OS_NATIVE(PMGetLastPage) |
| 7634 |
OS_NATIVE_ENTER(env, that, PMSessionBeginDocumentNoDialog_FUNC); |
7634 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 7635 |
rc = (jint)PMSessionBeginDocumentNoDialog((PMPrintSession)arg0, (PMPrintSettings)arg1, (PMPageFormat)arg2); |
7635 |
{ |
| 7636 |
OS_NATIVE_EXIT(env, that, PMSessionBeginDocumentNoDialog_FUNC); |
7636 |
jint *lparg1=NULL; |
| 7637 |
return rc; |
7637 |
jint rc = 0; |
| 7638 |
} |
7638 |
OS_NATIVE_ENTER(env, that, PMGetLastPage_FUNC); |
| 7639 |
#endif |
7639 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 7640 |
|
7640 |
rc = (jint)PMGetLastPage((PMPrintSettings)arg0, (UInt32 *)lparg1); |
| 7641 |
#ifndef NO_PMSessionBeginPageNoDialog |
7641 |
fail: |
| 7642 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionBeginPageNoDialog) |
7642 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 7643 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2) |
7643 |
OS_NATIVE_EXIT(env, that, PMGetLastPage_FUNC); |
| 7644 |
{ |
7644 |
return rc; |
| 7645 |
PMRect _arg2, *lparg2=NULL; |
7645 |
} |
| 7646 |
jint rc = 0; |
7646 |
#endif |
| 7647 |
OS_NATIVE_ENTER(env, that, PMSessionBeginPageNoDialog_FUNC); |
7647 |
|
| 7648 |
if (arg2) if ((lparg2 = getPMRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
7648 |
#ifndef NO_PMGetPageRange |
| 7649 |
rc = (jint)PMSessionBeginPageNoDialog((PMPrintSession)arg0, (PMPageFormat)arg1, (const PMRect *)lparg2); |
7649 |
JNIEXPORT jint JNICALL OS_NATIVE(PMGetPageRange) |
| 7650 |
fail: |
7650 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jintArray arg2) |
| 7651 |
if (arg2 && lparg2) setPMRectFields(env, arg2, lparg2); |
7651 |
{ |
| 7652 |
OS_NATIVE_EXIT(env, that, PMSessionBeginPageNoDialog_FUNC); |
7652 |
jint *lparg1=NULL; |
| 7653 |
return rc; |
7653 |
jint *lparg2=NULL; |
| 7654 |
} |
7654 |
jint rc = 0; |
| 7655 |
#endif |
7655 |
OS_NATIVE_ENTER(env, that, PMGetPageRange_FUNC); |
| 7656 |
|
7656 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 7657 |
#ifndef NO_PMSessionCopyDestinationLocation |
7657 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 7658 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionCopyDestinationLocation) |
7658 |
rc = (jint)PMGetPageRange((PMPrintSettings)arg0, (UInt32 *)lparg1, (UInt32 *)lparg2); |
| 7659 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
7659 |
fail: |
| 7660 |
{ |
7660 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 7661 |
jint *lparg2=NULL; |
7661 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 7662 |
jint rc = 0; |
7662 |
OS_NATIVE_EXIT(env, that, PMGetPageRange_FUNC); |
| 7663 |
OS_NATIVE_ENTER(env, that, PMSessionCopyDestinationLocation_FUNC); |
7663 |
return rc; |
| 7664 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
7664 |
} |
| 7665 |
rc = (jint)PMSessionCopyDestinationLocation((PMPrintSession)arg0, (PMPrintSettings)arg1, (CFURLRef *)lparg2); |
7665 |
#endif |
| 7666 |
fail: |
7666 |
|
| 7667 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
7667 |
#ifndef NO_PMGetResolution |
| 7668 |
OS_NATIVE_EXIT(env, that, PMSessionCopyDestinationLocation_FUNC); |
7668 |
JNIEXPORT jint JNICALL OS_NATIVE(PMGetResolution) |
| 7669 |
return rc; |
7669 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 7670 |
} |
7670 |
{ |
| 7671 |
#endif |
7671 |
PMResolution _arg1, *lparg1=NULL; |
| 7672 |
|
7672 |
jint rc = 0; |
| 7673 |
#ifndef NO_PMSessionCreatePrinterList |
7673 |
OS_NATIVE_ENTER(env, that, PMGetResolution_FUNC); |
| 7674 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionCreatePrinterList) |
7674 |
if (arg1) if ((lparg1 = getPMResolutionFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 7675 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jintArray arg2, jintArray arg3) |
7675 |
rc = (jint)PMGetResolution((PMPageFormat)arg0, (PMResolution *)lparg1); |
| 7676 |
{ |
7676 |
fail: |
| 7677 |
jint *lparg1=NULL; |
7677 |
if (arg1 && lparg1) setPMResolutionFields(env, arg1, lparg1); |
| 7678 |
jint *lparg2=NULL; |
7678 |
OS_NATIVE_EXIT(env, that, PMGetResolution_FUNC); |
| 7679 |
jint *lparg3=NULL; |
7679 |
return rc; |
| 7680 |
jint rc = 0; |
7680 |
} |
| 7681 |
OS_NATIVE_ENTER(env, that, PMSessionCreatePrinterList_FUNC); |
7681 |
#endif |
| 7682 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
7682 |
|
| 7683 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
7683 |
#ifndef NO_PMRelease |
| 7684 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
7684 |
JNIEXPORT jint JNICALL OS_NATIVE(PMRelease) |
| 7685 |
rc = (jint)PMSessionCreatePrinterList((PMPrintSession)arg0, (CFArrayRef *)lparg1, (CFIndex *)lparg2, (PMPrinter *)lparg3); |
7685 |
(JNIEnv *env, jclass that, jint arg0) |
| 7686 |
fail: |
7686 |
{ |
| 7687 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
7687 |
jint rc = 0; |
| 7688 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
7688 |
OS_NATIVE_ENTER(env, that, PMRelease_FUNC); |
| 7689 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
7689 |
rc = (jint)PMRelease((PMObject)arg0); |
| 7690 |
OS_NATIVE_EXIT(env, that, PMSessionCreatePrinterList_FUNC); |
7690 |
OS_NATIVE_EXIT(env, that, PMRelease_FUNC); |
| 7691 |
return rc; |
7691 |
return rc; |
| 7692 |
} |
7692 |
} |
| 7693 |
#endif |
7693 |
#endif |
| 7694 |
|
7694 |
|
| 7695 |
#ifndef NO_PMSessionDefaultPageFormat |
7695 |
#ifndef NO_PMSessionBeginDocumentNoDialog |
| 7696 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionDefaultPageFormat) |
7696 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionBeginDocumentNoDialog) |
| 7697 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
7697 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 7698 |
{ |
7698 |
{ |
| 7699 |
jint rc = 0; |
7699 |
jint rc = 0; |
| 7700 |
OS_NATIVE_ENTER(env, that, PMSessionDefaultPageFormat_FUNC); |
7700 |
OS_NATIVE_ENTER(env, that, PMSessionBeginDocumentNoDialog_FUNC); |
| 7701 |
rc = (jint)PMSessionDefaultPageFormat((PMPrintSession)arg0, (PMPageFormat)arg1); |
7701 |
rc = (jint)PMSessionBeginDocumentNoDialog((PMPrintSession)arg0, (PMPrintSettings)arg1, (PMPageFormat)arg2); |
| 7702 |
OS_NATIVE_EXIT(env, that, PMSessionDefaultPageFormat_FUNC); |
7702 |
OS_NATIVE_EXIT(env, that, PMSessionBeginDocumentNoDialog_FUNC); |
| 7703 |
return rc; |
7703 |
return rc; |
| 7704 |
} |
7704 |
} |
| 7705 |
#endif |
7705 |
#endif |
| 7706 |
|
7706 |
|
| 7707 |
#ifndef NO_PMSessionDefaultPrintSettings |
7707 |
#ifndef NO_PMSessionBeginPageNoDialog |
| 7708 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionDefaultPrintSettings) |
7708 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionBeginPageNoDialog) |
| 7709 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
7709 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2) |
| 7710 |
{ |
7710 |
{ |
| 7711 |
jint rc = 0; |
7711 |
PMRect _arg2, *lparg2=NULL; |
| 7712 |
OS_NATIVE_ENTER(env, that, PMSessionDefaultPrintSettings_FUNC); |
7712 |
jint rc = 0; |
| 7713 |
rc = (jint)PMSessionDefaultPrintSettings((PMPrintSession)arg0, (PMPrintSettings)arg1); |
7713 |
OS_NATIVE_ENTER(env, that, PMSessionBeginPageNoDialog_FUNC); |
| 7714 |
OS_NATIVE_EXIT(env, that, PMSessionDefaultPrintSettings_FUNC); |
7714 |
if (arg2) if ((lparg2 = getPMRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 7715 |
return rc; |
7715 |
rc = (jint)PMSessionBeginPageNoDialog((PMPrintSession)arg0, (PMPageFormat)arg1, (const PMRect *)lparg2); |
| 7716 |
} |
7716 |
fail: |
| 7717 |
#endif |
7717 |
if (arg2 && lparg2) setPMRectFields(env, arg2, lparg2); |
| 7718 |
|
7718 |
OS_NATIVE_EXIT(env, that, PMSessionBeginPageNoDialog_FUNC); |
| 7719 |
#ifndef NO_PMSessionEndDocumentNoDialog |
7719 |
return rc; |
| 7720 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionEndDocumentNoDialog) |
7720 |
} |
| 7721 |
(JNIEnv *env, jclass that, jint arg0) |
7721 |
#endif |
| 7722 |
{ |
7722 |
|
| 7723 |
jint rc = 0; |
7723 |
#ifndef NO_PMSessionCopyDestinationLocation |
| 7724 |
OS_NATIVE_ENTER(env, that, PMSessionEndDocumentNoDialog_FUNC); |
7724 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionCopyDestinationLocation) |
| 7725 |
rc = (jint)PMSessionEndDocumentNoDialog((PMPrintSession)arg0); |
7725 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
| 7726 |
OS_NATIVE_EXIT(env, that, PMSessionEndDocumentNoDialog_FUNC); |
7726 |
{ |
| 7727 |
return rc; |
7727 |
jint *lparg2=NULL; |
| 7728 |
} |
7728 |
jint rc = 0; |
| 7729 |
#endif |
7729 |
OS_NATIVE_ENTER(env, that, PMSessionCopyDestinationLocation_FUNC); |
| 7730 |
|
7730 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 7731 |
#ifndef NO_PMSessionEndPageNoDialog |
7731 |
rc = (jint)PMSessionCopyDestinationLocation((PMPrintSession)arg0, (PMPrintSettings)arg1, (CFURLRef *)lparg2); |
| 7732 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionEndPageNoDialog) |
7732 |
fail: |
| 7733 |
(JNIEnv *env, jclass that, jint arg0) |
7733 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 7734 |
{ |
7734 |
OS_NATIVE_EXIT(env, that, PMSessionCopyDestinationLocation_FUNC); |
| 7735 |
jint rc = 0; |
7735 |
return rc; |
| 7736 |
OS_NATIVE_ENTER(env, that, PMSessionEndPageNoDialog_FUNC); |
7736 |
} |
| 7737 |
rc = (jint)PMSessionEndPageNoDialog((PMPrintSession)arg0); |
7737 |
#endif |
| 7738 |
OS_NATIVE_EXIT(env, that, PMSessionEndPageNoDialog_FUNC); |
7738 |
|
| 7739 |
return rc; |
7739 |
#ifndef NO_PMSessionCreatePrinterList |
| 7740 |
} |
7740 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionCreatePrinterList) |
| 7741 |
#endif |
7741 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jintArray arg2, jintArray arg3) |
| 7742 |
|
7742 |
{ |
| 7743 |
#ifndef NO_PMSessionError |
7743 |
jint *lparg1=NULL; |
| 7744 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionError) |
7744 |
jint *lparg2=NULL; |
| 7745 |
(JNIEnv *env, jclass that, jint arg0) |
7745 |
jint *lparg3=NULL; |
| 7746 |
{ |
7746 |
jint rc = 0; |
| 7747 |
jint rc = 0; |
7747 |
OS_NATIVE_ENTER(env, that, PMSessionCreatePrinterList_FUNC); |
| 7748 |
OS_NATIVE_ENTER(env, that, PMSessionError_FUNC); |
7748 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 7749 |
rc = (jint)PMSessionError((PMPrintSession)arg0); |
7749 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 7750 |
OS_NATIVE_EXIT(env, that, PMSessionError_FUNC); |
7750 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 7751 |
return rc; |
7751 |
rc = (jint)PMSessionCreatePrinterList((PMPrintSession)arg0, (CFArrayRef *)lparg1, (CFIndex *)lparg2, (PMPrinter *)lparg3); |
| 7752 |
} |
7752 |
fail: |
| 7753 |
#endif |
7753 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 7754 |
|
7754 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 7755 |
#ifndef NO_PMSessionGetDestinationType |
7755 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 7756 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionGetDestinationType) |
7756 |
OS_NATIVE_EXIT(env, that, PMSessionCreatePrinterList_FUNC); |
| 7757 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshortArray arg2) |
7757 |
return rc; |
| 7758 |
{ |
7758 |
} |
| 7759 |
jshort *lparg2=NULL; |
7759 |
#endif |
| 7760 |
jint rc = 0; |
7760 |
|
| 7761 |
OS_NATIVE_ENTER(env, that, PMSessionGetDestinationType_FUNC); |
7761 |
#ifndef NO_PMSessionDefaultPageFormat |
| 7762 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
7762 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionDefaultPageFormat) |
| 7763 |
rc = (jint)PMSessionGetDestinationType((PMPrintSession)arg0, (PMPrintSettings)arg1, (PMDestinationType *)lparg2); |
7763 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 7764 |
fail: |
7764 |
{ |
| 7765 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
7765 |
jint rc = 0; |
| 7766 |
OS_NATIVE_EXIT(env, that, PMSessionGetDestinationType_FUNC); |
7766 |
OS_NATIVE_ENTER(env, that, PMSessionDefaultPageFormat_FUNC); |
| 7767 |
return rc; |
7767 |
rc = (jint)PMSessionDefaultPageFormat((PMPrintSession)arg0, (PMPageFormat)arg1); |
| 7768 |
} |
7768 |
OS_NATIVE_EXIT(env, that, PMSessionDefaultPageFormat_FUNC); |
| 7769 |
#endif |
7769 |
return rc; |
| 7770 |
|
7770 |
} |
| 7771 |
#ifndef NO_PMSessionGetGraphicsContext |
7771 |
#endif |
| 7772 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionGetGraphicsContext) |
7772 |
|
| 7773 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
7773 |
#ifndef NO_PMSessionDefaultPrintSettings |
| 7774 |
{ |
7774 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionDefaultPrintSettings) |
| 7775 |
jint *lparg2=NULL; |
7775 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 7776 |
jint rc = 0; |
7776 |
{ |
| 7777 |
OS_NATIVE_ENTER(env, that, PMSessionGetGraphicsContext_FUNC); |
7777 |
jint rc = 0; |
| 7778 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
7778 |
OS_NATIVE_ENTER(env, that, PMSessionDefaultPrintSettings_FUNC); |
| 7779 |
rc = (jint)PMSessionGetGraphicsContext((PMPrintSession)arg0, (CFStringRef)arg1, (void **)lparg2); |
7779 |
rc = (jint)PMSessionDefaultPrintSettings((PMPrintSession)arg0, (PMPrintSettings)arg1); |
| 7780 |
fail: |
7780 |
OS_NATIVE_EXIT(env, that, PMSessionDefaultPrintSettings_FUNC); |
| 7781 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
7781 |
return rc; |
| 7782 |
OS_NATIVE_EXIT(env, that, PMSessionGetGraphicsContext_FUNC); |
7782 |
} |
| 7783 |
return rc; |
7783 |
#endif |
| 7784 |
} |
7784 |
|
| 7785 |
#endif |
7785 |
#ifndef NO_PMSessionEndDocumentNoDialog |
| 7786 |
|
7786 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionEndDocumentNoDialog) |
| 7787 |
#ifndef NO_PMSessionPageSetupDialog |
7787 |
(JNIEnv *env, jclass that, jint arg0) |
| 7788 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionPageSetupDialog) |
7788 |
{ |
| 7789 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jbooleanArray arg2) |
7789 |
jint rc = 0; |
| 7790 |
{ |
7790 |
OS_NATIVE_ENTER(env, that, PMSessionEndDocumentNoDialog_FUNC); |
| 7791 |
jboolean *lparg2=NULL; |
7791 |
rc = (jint)PMSessionEndDocumentNoDialog((PMPrintSession)arg0); |
| 7792 |
jint rc = 0; |
7792 |
OS_NATIVE_EXIT(env, that, PMSessionEndDocumentNoDialog_FUNC); |
| 7793 |
OS_NATIVE_ENTER(env, that, PMSessionPageSetupDialog_FUNC); |
7793 |
return rc; |
| 7794 |
if (arg2) if ((lparg2 = (*env)->GetBooleanArrayElements(env, arg2, NULL)) == NULL) goto fail; |
7794 |
} |
| 7795 |
rc = (jint)PMSessionPageSetupDialog((PMPrintSession)arg0, (PMPageFormat)arg1, (Boolean *)lparg2); |
7795 |
#endif |
| 7796 |
fail: |
7796 |
|
| 7797 |
if (arg2 && lparg2) (*env)->ReleaseBooleanArrayElements(env, arg2, lparg2, 0); |
7797 |
#ifndef NO_PMSessionEndPageNoDialog |
| 7798 |
OS_NATIVE_EXIT(env, that, PMSessionPageSetupDialog_FUNC); |
7798 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionEndPageNoDialog) |
| 7799 |
return rc; |
7799 |
(JNIEnv *env, jclass that, jint arg0) |
| 7800 |
} |
7800 |
{ |
| 7801 |
#endif |
7801 |
jint rc = 0; |
| 7802 |
|
7802 |
OS_NATIVE_ENTER(env, that, PMSessionEndPageNoDialog_FUNC); |
| 7803 |
#ifndef NO_PMSessionPrintDialog |
7803 |
rc = (jint)PMSessionEndPageNoDialog((PMPrintSession)arg0); |
| 7804 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionPrintDialog) |
7804 |
OS_NATIVE_EXIT(env, that, PMSessionEndPageNoDialog_FUNC); |
| 7805 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jbooleanArray arg3) |
7805 |
return rc; |
| 7806 |
{ |
7806 |
} |
| 7807 |
jboolean *lparg3=NULL; |
7807 |
#endif |
| 7808 |
jint rc = 0; |
7808 |
|
| 7809 |
OS_NATIVE_ENTER(env, that, PMSessionPrintDialog_FUNC); |
7809 |
#ifndef NO_PMSessionError |
| 7810 |
if (arg3) if ((lparg3 = (*env)->GetBooleanArrayElements(env, arg3, NULL)) == NULL) goto fail; |
7810 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionError) |
| 7811 |
rc = (jint)PMSessionPrintDialog((PMPrintSession)arg0, (PMPrintSettings)arg1, (PMPageFormat)arg2, (Boolean *)lparg3); |
7811 |
(JNIEnv *env, jclass that, jint arg0) |
| 7812 |
fail: |
7812 |
{ |
| 7813 |
if (arg3 && lparg3) (*env)->ReleaseBooleanArrayElements(env, arg3, lparg3, 0); |
7813 |
jint rc = 0; |
| 7814 |
OS_NATIVE_EXIT(env, that, PMSessionPrintDialog_FUNC); |
7814 |
OS_NATIVE_ENTER(env, that, PMSessionError_FUNC); |
| 7815 |
return rc; |
7815 |
rc = (jint)PMSessionError((PMPrintSession)arg0); |
| 7816 |
} |
7816 |
OS_NATIVE_EXIT(env, that, PMSessionError_FUNC); |
| 7817 |
#endif |
7817 |
return rc; |
| 7818 |
|
7818 |
} |
| 7819 |
#ifndef NO_PMSessionSetCurrentPrinter |
7819 |
#endif |
| 7820 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionSetCurrentPrinter) |
7820 |
|
| 7821 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
7821 |
#ifndef NO_PMSessionGetDestinationType |
| 7822 |
{ |
7822 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionGetDestinationType) |
| 7823 |
jint rc = 0; |
7823 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshortArray arg2) |
| 7824 |
OS_NATIVE_ENTER(env, that, PMSessionSetCurrentPrinter_FUNC); |
7824 |
{ |
| 7825 |
rc = (jint)PMSessionSetCurrentPrinter((PMPrintSession)arg0, (CFStringRef)arg1); |
7825 |
jshort *lparg2=NULL; |
| 7826 |
OS_NATIVE_EXIT(env, that, PMSessionSetCurrentPrinter_FUNC); |
7826 |
jint rc = 0; |
| 7827 |
return rc; |
7827 |
OS_NATIVE_ENTER(env, that, PMSessionGetDestinationType_FUNC); |
| 7828 |
} |
7828 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 7829 |
#endif |
7829 |
rc = (jint)PMSessionGetDestinationType((PMPrintSession)arg0, (PMPrintSettings)arg1, (PMDestinationType *)lparg2); |
| 7830 |
|
7830 |
fail: |
| 7831 |
#ifndef NO_PMSessionSetDestination |
7831 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
| 7832 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionSetDestination) |
7832 |
OS_NATIVE_EXIT(env, that, PMSessionGetDestinationType_FUNC); |
| 7833 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshort arg2, jint arg3, jint arg4) |
7833 |
return rc; |
| 7834 |
{ |
7834 |
} |
| 7835 |
jint rc = 0; |
7835 |
#endif |
| 7836 |
OS_NATIVE_ENTER(env, that, PMSessionSetDestination_FUNC); |
7836 |
|
| 7837 |
rc = (jint)PMSessionSetDestination((PMPrintSession)arg0, (PMPrintSettings)arg1, (PMDestinationType)arg2, (CFStringRef)arg3, (CFURLRef)arg4); |
7837 |
#ifndef NO_PMSessionGetGraphicsContext |
| 7838 |
OS_NATIVE_EXIT(env, that, PMSessionSetDestination_FUNC); |
7838 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionGetGraphicsContext) |
| 7839 |
return rc; |
7839 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2) |
| 7840 |
} |
7840 |
{ |
| 7841 |
#endif |
7841 |
jint *lparg2=NULL; |
| 7842 |
|
7842 |
jint rc = 0; |
| 7843 |
#ifndef NO_PMSessionSetDocumentFormatGeneration |
7843 |
OS_NATIVE_ENTER(env, that, PMSessionGetGraphicsContext_FUNC); |
| 7844 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionSetDocumentFormatGeneration) |
7844 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 7845 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3) |
7845 |
rc = (jint)PMSessionGetGraphicsContext((PMPrintSession)arg0, (CFStringRef)arg1, (void **)lparg2); |
| 7846 |
{ |
7846 |
fail: |
| 7847 |
jint rc = 0; |
7847 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 7848 |
OS_NATIVE_ENTER(env, that, PMSessionSetDocumentFormatGeneration_FUNC); |
7848 |
OS_NATIVE_EXIT(env, that, PMSessionGetGraphicsContext_FUNC); |
| 7849 |
rc = (jint)PMSessionSetDocumentFormatGeneration((PMPrintSession)arg0, (CFStringRef)arg1, (CFArrayRef)arg2, (CFTypeRef)arg3); |
7849 |
return rc; |
| 7850 |
OS_NATIVE_EXIT(env, that, PMSessionSetDocumentFormatGeneration_FUNC); |
7850 |
} |
| 7851 |
return rc; |
7851 |
#endif |
| 7852 |
} |
7852 |
|
| 7853 |
#endif |
7853 |
#ifndef NO_PMSessionPageSetupDialog |
| 7854 |
|
7854 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionPageSetupDialog) |
| 7855 |
#ifndef NO_PMSessionSetError |
7855 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jbooleanArray arg2) |
| 7856 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionSetError) |
7856 |
{ |
| 7857 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
7857 |
jboolean *lparg2=NULL; |
| 7858 |
{ |
7858 |
jint rc = 0; |
| 7859 |
jint rc = 0; |
7859 |
OS_NATIVE_ENTER(env, that, PMSessionPageSetupDialog_FUNC); |
| 7860 |
OS_NATIVE_ENTER(env, that, PMSessionSetError_FUNC); |
7860 |
if (arg2) if ((lparg2 = (*env)->GetBooleanArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 7861 |
rc = (jint)PMSessionSetError((PMPrintSession)arg0, arg1); |
7861 |
rc = (jint)PMSessionPageSetupDialog((PMPrintSession)arg0, (PMPageFormat)arg1, (Boolean *)lparg2); |
| 7862 |
OS_NATIVE_EXIT(env, that, PMSessionSetError_FUNC); |
7862 |
fail: |
| 7863 |
return rc; |
7863 |
if (arg2 && lparg2) (*env)->ReleaseBooleanArrayElements(env, arg2, lparg2, 0); |
| 7864 |
} |
7864 |
OS_NATIVE_EXIT(env, that, PMSessionPageSetupDialog_FUNC); |
| 7865 |
#endif |
7865 |
return rc; |
| 7866 |
|
7866 |
} |
| 7867 |
#ifndef NO_PMSessionUseSheets |
7867 |
#endif |
| 7868 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionUseSheets) |
7868 |
|
| 7869 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
7869 |
#ifndef NO_PMSessionPrintDialog |
| 7870 |
{ |
7870 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionPrintDialog) |
| 7871 |
jint rc = 0; |
7871 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jbooleanArray arg3) |
| 7872 |
OS_NATIVE_ENTER(env, that, PMSessionUseSheets_FUNC); |
7872 |
{ |
| 7873 |
rc = (jint)PMSessionUseSheets((PMPrintSession)arg0, (WindowRef)arg1, (PMSheetDoneUPP)arg2); |
7873 |
jboolean *lparg3=NULL; |
| 7874 |
OS_NATIVE_EXIT(env, that, PMSessionUseSheets_FUNC); |
7874 |
jint rc = 0; |
| 7875 |
return rc; |
7875 |
OS_NATIVE_ENTER(env, that, PMSessionPrintDialog_FUNC); |
| 7876 |
} |
7876 |
if (arg3) if ((lparg3 = (*env)->GetBooleanArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 7877 |
#endif |
7877 |
rc = (jint)PMSessionPrintDialog((PMPrintSession)arg0, (PMPrintSettings)arg1, (PMPageFormat)arg2, (Boolean *)lparg3); |
| 7878 |
|
7878 |
fail: |
| 7879 |
#ifndef NO_PMSessionValidatePageFormat |
7879 |
if (arg3 && lparg3) (*env)->ReleaseBooleanArrayElements(env, arg3, lparg3, 0); |
| 7880 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionValidatePageFormat) |
7880 |
OS_NATIVE_EXIT(env, that, PMSessionPrintDialog_FUNC); |
| 7881 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jbooleanArray arg2) |
7881 |
return rc; |
| 7882 |
{ |
7882 |
} |
| 7883 |
jboolean *lparg2=NULL; |
7883 |
#endif |
| 7884 |
jint rc = 0; |
7884 |
|
| 7885 |
OS_NATIVE_ENTER(env, that, PMSessionValidatePageFormat_FUNC); |
7885 |
#ifndef NO_PMSessionSetCurrentPrinter |
| 7886 |
if (arg2) if ((lparg2 = (*env)->GetBooleanArrayElements(env, arg2, NULL)) == NULL) goto fail; |
7886 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionSetCurrentPrinter) |
| 7887 |
rc = (jint)PMSessionValidatePageFormat((PMPrintSession)arg0, (PMPageFormat)arg1, (Boolean *)lparg2); |
7887 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 7888 |
fail: |
7888 |
{ |
| 7889 |
if (arg2 && lparg2) (*env)->ReleaseBooleanArrayElements(env, arg2, lparg2, 0); |
7889 |
jint rc = 0; |
| 7890 |
OS_NATIVE_EXIT(env, that, PMSessionValidatePageFormat_FUNC); |
7890 |
OS_NATIVE_ENTER(env, that, PMSessionSetCurrentPrinter_FUNC); |
| 7891 |
return rc; |
7891 |
rc = (jint)PMSessionSetCurrentPrinter((PMPrintSession)arg0, (CFStringRef)arg1); |
| 7892 |
} |
7892 |
OS_NATIVE_EXIT(env, that, PMSessionSetCurrentPrinter_FUNC); |
| 7893 |
#endif |
7893 |
return rc; |
| 7894 |
|
7894 |
} |
| 7895 |
#ifndef NO_PMSessionValidatePrintSettings |
7895 |
#endif |
| 7896 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionValidatePrintSettings) |
7896 |
|
| 7897 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jbooleanArray arg2) |
7897 |
#ifndef NO_PMSessionSetDestination |
| 7898 |
{ |
7898 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionSetDestination) |
| 7899 |
jboolean *lparg2=NULL; |
7899 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshort arg2, jint arg3, jint arg4) |
| 7900 |
jint rc = 0; |
7900 |
{ |
| 7901 |
OS_NATIVE_ENTER(env, that, PMSessionValidatePrintSettings_FUNC); |
7901 |
jint rc = 0; |
| 7902 |
if (arg2) if ((lparg2 = (*env)->GetBooleanArrayElements(env, arg2, NULL)) == NULL) goto fail; |
7902 |
OS_NATIVE_ENTER(env, that, PMSessionSetDestination_FUNC); |
| 7903 |
rc = (jint)PMSessionValidatePrintSettings((PMPrintSession)arg0, (PMPrintSettings)arg1, (Boolean *)lparg2); |
7903 |
rc = (jint)PMSessionSetDestination((PMPrintSession)arg0, (PMPrintSettings)arg1, (PMDestinationType)arg2, (CFStringRef)arg3, (CFURLRef)arg4); |
| 7904 |
fail: |
7904 |
OS_NATIVE_EXIT(env, that, PMSessionSetDestination_FUNC); |
| 7905 |
if (arg2 && lparg2) (*env)->ReleaseBooleanArrayElements(env, arg2, lparg2, 0); |
7905 |
return rc; |
| 7906 |
OS_NATIVE_EXIT(env, that, PMSessionValidatePrintSettings_FUNC); |
7906 |
} |
| 7907 |
return rc; |
7907 |
#endif |
| 7908 |
} |
7908 |
|
| 7909 |
#endif |
7909 |
#ifndef NO_PMSessionSetDocumentFormatGeneration |
| 7910 |
|
7910 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionSetDocumentFormatGeneration) |
| 7911 |
#ifndef NO_PMSetCollate |
7911 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3) |
| 7912 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSetCollate) |
7912 |
{ |
| 7913 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
7913 |
jint rc = 0; |
| 7914 |
{ |
7914 |
OS_NATIVE_ENTER(env, that, PMSessionSetDocumentFormatGeneration_FUNC); |
| 7915 |
jint rc = 0; |
7915 |
rc = (jint)PMSessionSetDocumentFormatGeneration((PMPrintSession)arg0, (CFStringRef)arg1, (CFArrayRef)arg2, (CFTypeRef)arg3); |
| 7916 |
OS_NATIVE_ENTER(env, that, PMSetCollate_FUNC); |
7916 |
OS_NATIVE_EXIT(env, that, PMSessionSetDocumentFormatGeneration_FUNC); |
| 7917 |
rc = (jint)PMSetCollate((PMPrintSettings)arg0, arg1); |
7917 |
return rc; |
| 7918 |
OS_NATIVE_EXIT(env, that, PMSetCollate_FUNC); |
7918 |
} |
| 7919 |
return rc; |
7919 |
#endif |
| 7920 |
} |
7920 |
|
| 7921 |
#endif |
7921 |
#ifndef NO_PMSessionSetError |
| 7922 |
|
7922 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionSetError) |
| 7923 |
#ifndef NO_PMSetFirstPage |
7923 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 7924 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSetFirstPage) |
7924 |
{ |
| 7925 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2) |
7925 |
jint rc = 0; |
| 7926 |
{ |
7926 |
OS_NATIVE_ENTER(env, that, PMSessionSetError_FUNC); |
| 7927 |
jint rc = 0; |
7927 |
rc = (jint)PMSessionSetError((PMPrintSession)arg0, arg1); |
| 7928 |
OS_NATIVE_ENTER(env, that, PMSetFirstPage_FUNC); |
7928 |
OS_NATIVE_EXIT(env, that, PMSessionSetError_FUNC); |
| 7929 |
rc = (jint)PMSetFirstPage((PMPrintSettings)arg0, (UInt32)arg1, (Boolean)arg2); |
7929 |
return rc; |
| 7930 |
OS_NATIVE_EXIT(env, that, PMSetFirstPage_FUNC); |
7930 |
} |
| 7931 |
return rc; |
7931 |
#endif |
| 7932 |
} |
7932 |
|
| 7933 |
#endif |
7933 |
#ifndef NO_PMSessionUseSheets |
| 7934 |
|
7934 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionUseSheets) |
| 7935 |
#ifndef NO_PMSetJobNameCFString |
7935 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 7936 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSetJobNameCFString) |
7936 |
{ |
| 7937 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
7937 |
jint rc = 0; |
| 7938 |
{ |
7938 |
OS_NATIVE_ENTER(env, that, PMSessionUseSheets_FUNC); |
| 7939 |
jint rc = 0; |
7939 |
rc = (jint)PMSessionUseSheets((PMPrintSession)arg0, (WindowRef)arg1, (PMSheetDoneUPP)arg2); |
| 7940 |
OS_NATIVE_ENTER(env, that, PMSetJobNameCFString_FUNC); |
7940 |
OS_NATIVE_EXIT(env, that, PMSessionUseSheets_FUNC); |
| 7941 |
rc = (jint)PMSetJobNameCFString((PMPrintSettings)arg0, (CFStringRef)arg1); |
7941 |
return rc; |
| 7942 |
OS_NATIVE_EXIT(env, that, PMSetJobNameCFString_FUNC); |
7942 |
} |
| 7943 |
return rc; |
7943 |
#endif |
| 7944 |
} |
7944 |
|
| 7945 |
#endif |
7945 |
#ifndef NO_PMSessionValidatePageFormat |
| 7946 |
|
7946 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionValidatePageFormat) |
| 7947 |
#ifndef NO_PMSetLastPage |
7947 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jbooleanArray arg2) |
| 7948 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSetLastPage) |
7948 |
{ |
| 7949 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2) |
7949 |
jboolean *lparg2=NULL; |
| 7950 |
{ |
7950 |
jint rc = 0; |
| 7951 |
jint rc = 0; |
7951 |
OS_NATIVE_ENTER(env, that, PMSessionValidatePageFormat_FUNC); |
| 7952 |
OS_NATIVE_ENTER(env, that, PMSetLastPage_FUNC); |
7952 |
if (arg2) if ((lparg2 = (*env)->GetBooleanArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 7953 |
rc = (jint)PMSetLastPage((PMPrintSettings)arg0, (UInt32)arg1, (Boolean)arg2); |
7953 |
rc = (jint)PMSessionValidatePageFormat((PMPrintSession)arg0, (PMPageFormat)arg1, (Boolean *)lparg2); |
| 7954 |
OS_NATIVE_EXIT(env, that, PMSetLastPage_FUNC); |
7954 |
fail: |
| 7955 |
return rc; |
7955 |
if (arg2 && lparg2) (*env)->ReleaseBooleanArrayElements(env, arg2, lparg2, 0); |
| 7956 |
} |
7956 |
OS_NATIVE_EXIT(env, that, PMSessionValidatePageFormat_FUNC); |
| 7957 |
#endif |
7957 |
return rc; |
| 7958 |
|
7958 |
} |
| 7959 |
#ifndef NO_PMSetPageRange |
7959 |
#endif |
| 7960 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSetPageRange) |
7960 |
|
| 7961 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
7961 |
#ifndef NO_PMSessionValidatePrintSettings |
| 7962 |
{ |
7962 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSessionValidatePrintSettings) |
| 7963 |
jint rc = 0; |
7963 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jbooleanArray arg2) |
| 7964 |
OS_NATIVE_ENTER(env, that, PMSetPageRange_FUNC); |
7964 |
{ |
| 7965 |
rc = (jint)PMSetPageRange((PMPrintSettings)arg0, (UInt32)arg1, (UInt32)arg2); |
7965 |
jboolean *lparg2=NULL; |
| 7966 |
OS_NATIVE_EXIT(env, that, PMSetPageRange_FUNC); |
7966 |
jint rc = 0; |
| 7967 |
return rc; |
7967 |
OS_NATIVE_ENTER(env, that, PMSessionValidatePrintSettings_FUNC); |
| 7968 |
} |
7968 |
if (arg2) if ((lparg2 = (*env)->GetBooleanArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 7969 |
#endif |
7969 |
rc = (jint)PMSessionValidatePrintSettings((PMPrintSession)arg0, (PMPrintSettings)arg1, (Boolean *)lparg2); |
| 7970 |
|
7970 |
fail: |
| 7971 |
#ifndef NO_PMUnflattenPageFormat |
7971 |
if (arg2 && lparg2) (*env)->ReleaseBooleanArrayElements(env, arg2, lparg2, 0); |
| 7972 |
JNIEXPORT jint JNICALL OS_NATIVE(PMUnflattenPageFormat) |
7972 |
OS_NATIVE_EXIT(env, that, PMSessionValidatePrintSettings_FUNC); |
| 7973 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
7973 |
return rc; |
| 7974 |
{ |
7974 |
} |
| 7975 |
jint *lparg1=NULL; |
7975 |
#endif |
| 7976 |
jint rc = 0; |
7976 |
|
| 7977 |
OS_NATIVE_ENTER(env, that, PMUnflattenPageFormat_FUNC); |
7977 |
#ifndef NO_PMSetCollate |
| 7978 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
7978 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSetCollate) |
| 7979 |
rc = (jint)PMUnflattenPageFormat((Handle)arg0, (PMPageFormat *)lparg1); |
7979 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
| 7980 |
fail: |
7980 |
{ |
| 7981 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
7981 |
jint rc = 0; |
| 7982 |
OS_NATIVE_EXIT(env, that, PMUnflattenPageFormat_FUNC); |
7982 |
OS_NATIVE_ENTER(env, that, PMSetCollate_FUNC); |
| 7983 |
return rc; |
7983 |
rc = (jint)PMSetCollate((PMPrintSettings)arg0, arg1); |
| 7984 |
} |
7984 |
OS_NATIVE_EXIT(env, that, PMSetCollate_FUNC); |
| 7985 |
#endif |
7985 |
return rc; |
| 7986 |
|
7986 |
} |
| 7987 |
#ifndef NO_PMUnflattenPrintSettings |
7987 |
#endif |
| 7988 |
JNIEXPORT jint JNICALL OS_NATIVE(PMUnflattenPrintSettings) |
7988 |
|
| 7989 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
7989 |
#ifndef NO_PMSetFirstPage |
| 7990 |
{ |
7990 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSetFirstPage) |
| 7991 |
jint *lparg1=NULL; |
7991 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2) |
| 7992 |
jint rc = 0; |
7992 |
{ |
| 7993 |
OS_NATIVE_ENTER(env, that, PMUnflattenPrintSettings_FUNC); |
7993 |
jint rc = 0; |
| 7994 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
7994 |
OS_NATIVE_ENTER(env, that, PMSetFirstPage_FUNC); |
| 7995 |
rc = (jint)PMUnflattenPrintSettings((Handle)arg0, (PMPrintSettings *)lparg1); |
7995 |
rc = (jint)PMSetFirstPage((PMPrintSettings)arg0, (UInt32)arg1, (Boolean)arg2); |
| 7996 |
fail: |
7996 |
OS_NATIVE_EXIT(env, that, PMSetFirstPage_FUNC); |
| 7997 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
7997 |
return rc; |
| 7998 |
OS_NATIVE_EXIT(env, that, PMUnflattenPrintSettings_FUNC); |
7998 |
} |
| 7999 |
return rc; |
7999 |
#endif |
| 8000 |
} |
8000 |
|
| 8001 |
#endif |
8001 |
#ifndef NO_PMSetJobNameCFString |
| 8002 |
|
8002 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSetJobNameCFString) |
| 8003 |
#ifndef NO_PaintOval |
8003 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 8004 |
JNIEXPORT void JNICALL OS_NATIVE(PaintOval) |
8004 |
{ |
| 8005 |
(JNIEnv *env, jclass that, jobject arg0) |
8005 |
jint rc = 0; |
| 8006 |
{ |
8006 |
OS_NATIVE_ENTER(env, that, PMSetJobNameCFString_FUNC); |
| 8007 |
Rect _arg0, *lparg0=NULL; |
8007 |
rc = (jint)PMSetJobNameCFString((PMPrintSettings)arg0, (CFStringRef)arg1); |
| 8008 |
OS_NATIVE_ENTER(env, that, PaintOval_FUNC); |
8008 |
OS_NATIVE_EXIT(env, that, PMSetJobNameCFString_FUNC); |
| 8009 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
8009 |
return rc; |
| 8010 |
PaintOval((const Rect *)lparg0); |
8010 |
} |
| 8011 |
fail: |
8011 |
#endif |
| 8012 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
8012 |
|
| 8013 |
OS_NATIVE_EXIT(env, that, PaintOval_FUNC); |
8013 |
#ifndef NO_PMSetLastPage |
| 8014 |
} |
8014 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSetLastPage) |
| 8015 |
#endif |
8015 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2) |
| 8016 |
|
8016 |
{ |
| 8017 |
#ifndef NO_PaintPoly |
8017 |
jint rc = 0; |
| 8018 |
JNIEXPORT void JNICALL OS_NATIVE(PaintPoly) |
8018 |
OS_NATIVE_ENTER(env, that, PMSetLastPage_FUNC); |
| 8019 |
(JNIEnv *env, jclass that, jint arg0) |
8019 |
rc = (jint)PMSetLastPage((PMPrintSettings)arg0, (UInt32)arg1, (Boolean)arg2); |
| 8020 |
{ |
8020 |
OS_NATIVE_EXIT(env, that, PMSetLastPage_FUNC); |
| 8021 |
OS_NATIVE_ENTER(env, that, PaintPoly_FUNC); |
8021 |
return rc; |
| 8022 |
PaintPoly((PolyHandle)arg0); |
8022 |
} |
| 8023 |
OS_NATIVE_EXIT(env, that, PaintPoly_FUNC); |
8023 |
#endif |
| 8024 |
} |
8024 |
|
| 8025 |
#endif |
8025 |
#ifndef NO_PMSetPageRange |
| 8026 |
|
8026 |
JNIEXPORT jint JNICALL OS_NATIVE(PMSetPageRange) |
| 8027 |
#ifndef NO_PaintRect |
8027 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 8028 |
JNIEXPORT void JNICALL OS_NATIVE(PaintRect) |
8028 |
{ |
| 8029 |
(JNIEnv *env, jclass that, jobject arg0) |
8029 |
jint rc = 0; |
| 8030 |
{ |
8030 |
OS_NATIVE_ENTER(env, that, PMSetPageRange_FUNC); |
| 8031 |
Rect _arg0, *lparg0=NULL; |
8031 |
rc = (jint)PMSetPageRange((PMPrintSettings)arg0, (UInt32)arg1, (UInt32)arg2); |
| 8032 |
OS_NATIVE_ENTER(env, that, PaintRect_FUNC); |
8032 |
OS_NATIVE_EXIT(env, that, PMSetPageRange_FUNC); |
| 8033 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
8033 |
return rc; |
| 8034 |
PaintRect((const Rect *)lparg0); |
8034 |
} |
| 8035 |
fail: |
8035 |
#endif |
| 8036 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
8036 |
|
| 8037 |
OS_NATIVE_EXIT(env, that, PaintRect_FUNC); |
8037 |
#ifndef NO_PMUnflattenPageFormat |
| 8038 |
} |
8038 |
JNIEXPORT jint JNICALL OS_NATIVE(PMUnflattenPageFormat) |
| 8039 |
#endif |
8039 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 8040 |
|
8040 |
{ |
| 8041 |
#ifndef NO_PaintRoundRect |
8041 |
jint *lparg1=NULL; |
| 8042 |
JNIEXPORT void JNICALL OS_NATIVE(PaintRoundRect) |
8042 |
jint rc = 0; |
| 8043 |
(JNIEnv *env, jclass that, jobject arg0, jshort arg1, jshort arg2) |
8043 |
OS_NATIVE_ENTER(env, that, PMUnflattenPageFormat_FUNC); |
| 8044 |
{ |
8044 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 8045 |
Rect _arg0, *lparg0=NULL; |
8045 |
rc = (jint)PMUnflattenPageFormat((Handle)arg0, (PMPageFormat *)lparg1); |
| 8046 |
OS_NATIVE_ENTER(env, that, PaintRoundRect_FUNC); |
8046 |
fail: |
| 8047 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
8047 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 8048 |
PaintRoundRect((const Rect *)lparg0, (short)arg1, (short)arg2); |
8048 |
OS_NATIVE_EXIT(env, that, PMUnflattenPageFormat_FUNC); |
| 8049 |
fail: |
8049 |
return rc; |
| 8050 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
8050 |
} |
| 8051 |
OS_NATIVE_EXIT(env, that, PaintRoundRect_FUNC); |
8051 |
#endif |
| 8052 |
} |
8052 |
|
| 8053 |
#endif |
8053 |
#ifndef NO_PMUnflattenPrintSettings |
| 8054 |
|
8054 |
JNIEXPORT jint JNICALL OS_NATIVE(PMUnflattenPrintSettings) |
| 8055 |
#ifndef NO_PenSize |
8055 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 8056 |
JNIEXPORT void JNICALL OS_NATIVE(PenSize) |
8056 |
{ |
| 8057 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1) |
8057 |
jint *lparg1=NULL; |
| 8058 |
{ |
8058 |
jint rc = 0; |
| 8059 |
OS_NATIVE_ENTER(env, that, PenSize_FUNC); |
8059 |
OS_NATIVE_ENTER(env, that, PMUnflattenPrintSettings_FUNC); |
| 8060 |
PenSize((short)arg0, (short)arg1); |
8060 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 8061 |
OS_NATIVE_EXIT(env, that, PenSize_FUNC); |
8061 |
rc = (jint)PMUnflattenPrintSettings((Handle)arg0, (PMPrintSettings *)lparg1); |
| 8062 |
} |
8062 |
fail: |
| 8063 |
#endif |
8063 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 8064 |
|
8064 |
OS_NATIVE_EXIT(env, that, PMUnflattenPrintSettings_FUNC); |
| 8065 |
#ifndef NO_PickColor |
8065 |
return rc; |
| 8066 |
JNIEXPORT jint JNICALL OS_NATIVE(PickColor) |
8066 |
} |
| 8067 |
(JNIEnv *env, jclass that, jobject arg0) |
8067 |
#endif |
| 8068 |
{ |
8068 |
|
| 8069 |
ColorPickerInfo _arg0, *lparg0=NULL; |
8069 |
#ifndef NO_PaintOval |
| 8070 |
jint rc = 0; |
8070 |
JNIEXPORT void JNICALL OS_NATIVE(PaintOval) |
| 8071 |
OS_NATIVE_ENTER(env, that, PickColor_FUNC); |
8071 |
(JNIEnv *env, jclass that, jobject arg0) |
| 8072 |
if (arg0) if ((lparg0 = getColorPickerInfoFields(env, arg0, &_arg0)) == NULL) goto fail; |
8072 |
{ |
| 8073 |
rc = (jint)PickColor((ColorPickerInfo *)lparg0); |
8073 |
Rect _arg0, *lparg0=NULL; |
| 8074 |
fail: |
8074 |
OS_NATIVE_ENTER(env, that, PaintOval_FUNC); |
| 8075 |
if (arg0 && lparg0) setColorPickerInfoFields(env, arg0, lparg0); |
8075 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 8076 |
OS_NATIVE_EXIT(env, that, PickColor_FUNC); |
8076 |
PaintOval((const Rect *)lparg0); |
| 8077 |
return rc; |
8077 |
fail: |
| 8078 |
} |
8078 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 8079 |
#endif |
8079 |
OS_NATIVE_EXIT(env, that, PaintOval_FUNC); |
| 8080 |
|
8080 |
} |
| 8081 |
#ifndef NO_PopUpMenuSelect |
8081 |
#endif |
| 8082 |
JNIEXPORT jint JNICALL OS_NATIVE(PopUpMenuSelect) |
8082 |
|
| 8083 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshort arg2, jshort arg3) |
8083 |
#ifndef NO_PaintPoly |
| 8084 |
{ |
8084 |
JNIEXPORT void JNICALL OS_NATIVE(PaintPoly) |
| 8085 |
jint rc = 0; |
8085 |
(JNIEnv *env, jclass that, jint arg0) |
| 8086 |
OS_NATIVE_ENTER(env, that, PopUpMenuSelect_FUNC); |
8086 |
{ |
| 8087 |
rc = (jint)PopUpMenuSelect((MenuRef)arg0, (short)arg1, (short)arg2, (short)arg3); |
8087 |
OS_NATIVE_ENTER(env, that, PaintPoly_FUNC); |
| 8088 |
OS_NATIVE_EXIT(env, that, PopUpMenuSelect_FUNC); |
8088 |
PaintPoly((PolyHandle)arg0); |
| 8089 |
return rc; |
8089 |
OS_NATIVE_EXIT(env, that, PaintPoly_FUNC); |
| 8090 |
} |
8090 |
} |
| 8091 |
#endif |
8091 |
#endif |
| 8092 |
|
8092 |
|
| 8093 |
#ifndef NO_PostEvent |
8093 |
#ifndef NO_PaintRect |
| 8094 |
JNIEXPORT jint JNICALL OS_NATIVE(PostEvent) |
8094 |
JNIEXPORT void JNICALL OS_NATIVE(PaintRect) |
| 8095 |
(JNIEnv *env, jclass that, jshort arg0, jint arg1) |
8095 |
(JNIEnv *env, jclass that, jobject arg0) |
| 8096 |
{ |
8096 |
{ |
| 8097 |
jint rc = 0; |
8097 |
Rect _arg0, *lparg0=NULL; |
| 8098 |
OS_NATIVE_ENTER(env, that, PostEvent_FUNC); |
8098 |
OS_NATIVE_ENTER(env, that, PaintRect_FUNC); |
| 8099 |
rc = (jint)PostEvent((EventKind)arg0, (UInt32)arg1); |
8099 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 8100 |
OS_NATIVE_EXIT(env, that, PostEvent_FUNC); |
8100 |
PaintRect((const Rect *)lparg0); |
| 8101 |
return rc; |
8101 |
fail: |
| 8102 |
} |
8102 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 8103 |
#endif |
8103 |
OS_NATIVE_EXIT(env, that, PaintRect_FUNC); |
| 8104 |
|
8104 |
} |
| 8105 |
#ifndef NO_PostEventToQueue |
8105 |
#endif |
| 8106 |
JNIEXPORT jint JNICALL OS_NATIVE(PostEventToQueue) |
8106 |
|
| 8107 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshort arg2) |
8107 |
#ifndef NO_PaintRoundRect |
| 8108 |
{ |
8108 |
JNIEXPORT void JNICALL OS_NATIVE(PaintRoundRect) |
| 8109 |
jint rc = 0; |
8109 |
(JNIEnv *env, jclass that, jobject arg0, jshort arg1, jshort arg2) |
| 8110 |
OS_NATIVE_ENTER(env, that, PostEventToQueue_FUNC); |
8110 |
{ |
| 8111 |
rc = (jint)PostEventToQueue((EventQueueRef)arg0, (EventRef)arg1, (EventPriority)arg2); |
8111 |
Rect _arg0, *lparg0=NULL; |
| 8112 |
OS_NATIVE_EXIT(env, that, PostEventToQueue_FUNC); |
8112 |
OS_NATIVE_ENTER(env, that, PaintRoundRect_FUNC); |
| 8113 |
return rc; |
8113 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 8114 |
} |
8114 |
PaintRoundRect((const Rect *)lparg0, (short)arg1, (short)arg2); |
| 8115 |
#endif |
8115 |
fail: |
| 8116 |
|
8116 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 8117 |
#ifndef NO_PtInRect |
8117 |
OS_NATIVE_EXIT(env, that, PaintRoundRect_FUNC); |
| 8118 |
JNIEXPORT jboolean JNICALL OS_NATIVE(PtInRect) |
8118 |
} |
| 8119 |
(JNIEnv *env, jclass that, jobject arg0, jobject arg1) |
8119 |
#endif |
| 8120 |
{ |
8120 |
|
| 8121 |
Point _arg0, *lparg0=NULL; |
8121 |
#ifndef NO_PenSize |
| 8122 |
Rect _arg1, *lparg1=NULL; |
8122 |
JNIEXPORT void JNICALL OS_NATIVE(PenSize) |
| 8123 |
jboolean rc = 0; |
8123 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1) |
| 8124 |
OS_NATIVE_ENTER(env, that, PtInRect_FUNC); |
8124 |
{ |
| 8125 |
if (arg0) if ((lparg0 = getPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
8125 |
OS_NATIVE_ENTER(env, that, PenSize_FUNC); |
| 8126 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
8126 |
PenSize((short)arg0, (short)arg1); |
| 8127 |
rc = (jboolean)PtInRect(*(Point *)lparg0, (const Rect *)lparg1); |
8127 |
OS_NATIVE_EXIT(env, that, PenSize_FUNC); |
| 8128 |
fail: |
8128 |
} |
| 8129 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
8129 |
#endif |
| 8130 |
if (arg0 && lparg0) setPointFields(env, arg0, lparg0); |
8130 |
|
| 8131 |
OS_NATIVE_EXIT(env, that, PtInRect_FUNC); |
8131 |
#ifndef NO_PickColor |
| 8132 |
return rc; |
8132 |
JNIEXPORT jint JNICALL OS_NATIVE(PickColor) |
| 8133 |
} |
8133 |
(JNIEnv *env, jclass that, jobject arg0) |
| 8134 |
#endif |
8134 |
{ |
| 8135 |
|
8135 |
ColorPickerInfo _arg0, *lparg0=NULL; |
| 8136 |
#ifndef NO_PtInRgn |
8136 |
jint rc = 0; |
| 8137 |
JNIEXPORT jboolean JNICALL OS_NATIVE(PtInRgn) |
8137 |
OS_NATIVE_ENTER(env, that, PickColor_FUNC); |
| 8138 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1) |
8138 |
if (arg0) if ((lparg0 = getColorPickerInfoFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 8139 |
{ |
8139 |
rc = (jint)PickColor((ColorPickerInfo *)lparg0); |
| 8140 |
Point _arg0, *lparg0=NULL; |
8140 |
fail: |
| 8141 |
jboolean rc = 0; |
8141 |
if (arg0 && lparg0) setColorPickerInfoFields(env, arg0, lparg0); |
| 8142 |
OS_NATIVE_ENTER(env, that, PtInRgn_FUNC); |
8142 |
OS_NATIVE_EXIT(env, that, PickColor_FUNC); |
| 8143 |
if (arg0) if ((lparg0 = getPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
8143 |
return rc; |
| 8144 |
rc = (jboolean)PtInRgn(*(Point *)lparg0, (RgnHandle)arg1); |
8144 |
} |
| 8145 |
fail: |
8145 |
#endif |
| 8146 |
if (arg0 && lparg0) setPointFields(env, arg0, lparg0); |
8146 |
|
| 8147 |
OS_NATIVE_EXIT(env, that, PtInRgn_FUNC); |
8147 |
#ifndef NO_PopUpMenuSelect |
| 8148 |
return rc; |
8148 |
JNIEXPORT jint JNICALL OS_NATIVE(PopUpMenuSelect) |
| 8149 |
} |
8149 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshort arg2, jshort arg3) |
| 8150 |
#endif |
8150 |
{ |
| 8151 |
|
8151 |
jint rc = 0; |
| 8152 |
#ifndef NO_PutScrapFlavor__IIII_3B |
8152 |
OS_NATIVE_ENTER(env, that, PopUpMenuSelect_FUNC); |
| 8153 |
JNIEXPORT jint JNICALL OS_NATIVE(PutScrapFlavor__IIII_3B) |
8153 |
rc = (jint)PopUpMenuSelect((MenuRef)arg0, (short)arg1, (short)arg2, (short)arg3); |
| 8154 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jbyteArray arg4) |
8154 |
OS_NATIVE_EXIT(env, that, PopUpMenuSelect_FUNC); |
| 8155 |
{ |
8155 |
return rc; |
| 8156 |
jbyte *lparg4=NULL; |
8156 |
} |
| 8157 |
jint rc = 0; |
8157 |
#endif |
| 8158 |
OS_NATIVE_ENTER(env, that, PutScrapFlavor__IIII_3B_FUNC); |
8158 |
|
| 8159 |
if (arg4) if ((lparg4 = (*env)->GetByteArrayElements(env, arg4, NULL)) == NULL) goto fail; |
8159 |
#ifndef NO_PostEvent |
| 8160 |
rc = (jint)PutScrapFlavor((ScrapRef)arg0, (ScrapFlavorType)arg1, (ScrapFlavorFlags)arg2, (Size)arg3, (const void *)lparg4); |
8160 |
JNIEXPORT jint JNICALL OS_NATIVE(PostEvent) |
| 8161 |
fail: |
8161 |
(JNIEnv *env, jclass that, jshort arg0, jint arg1) |
| 8162 |
if (arg4 && lparg4) (*env)->ReleaseByteArrayElements(env, arg4, lparg4, 0); |
8162 |
{ |
| 8163 |
OS_NATIVE_EXIT(env, that, PutScrapFlavor__IIII_3B_FUNC); |
8163 |
jint rc = 0; |
| 8164 |
return rc; |
8164 |
OS_NATIVE_ENTER(env, that, PostEvent_FUNC); |
| 8165 |
} |
8165 |
rc = (jint)PostEvent((EventKind)arg0, (UInt32)arg1); |
| 8166 |
#endif |
8166 |
OS_NATIVE_EXIT(env, that, PostEvent_FUNC); |
| 8167 |
|
8167 |
return rc; |
| 8168 |
#ifndef NO_PutScrapFlavor__IIII_3C |
8168 |
} |
| 8169 |
JNIEXPORT jint JNICALL OS_NATIVE(PutScrapFlavor__IIII_3C) |
8169 |
#endif |
| 8170 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jcharArray arg4) |
8170 |
|
| 8171 |
{ |
8171 |
#ifndef NO_PostEventToQueue |
| 8172 |
jchar *lparg4=NULL; |
8172 |
JNIEXPORT jint JNICALL OS_NATIVE(PostEventToQueue) |
| 8173 |
jint rc = 0; |
8173 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshort arg2) |
| 8174 |
OS_NATIVE_ENTER(env, that, PutScrapFlavor__IIII_3C_FUNC); |
8174 |
{ |
| 8175 |
if (arg4) if ((lparg4 = (*env)->GetCharArrayElements(env, arg4, NULL)) == NULL) goto fail; |
8175 |
jint rc = 0; |
| 8176 |
rc = (jint)PutScrapFlavor((ScrapRef)arg0, (ScrapFlavorType)arg1, (ScrapFlavorFlags)arg2, (Size)arg3, (const void *)lparg4); |
8176 |
OS_NATIVE_ENTER(env, that, PostEventToQueue_FUNC); |
| 8177 |
fail: |
8177 |
rc = (jint)PostEventToQueue((EventQueueRef)arg0, (EventRef)arg1, (EventPriority)arg2); |
| 8178 |
if (arg4 && lparg4) (*env)->ReleaseCharArrayElements(env, arg4, lparg4, 0); |
8178 |
OS_NATIVE_EXIT(env, that, PostEventToQueue_FUNC); |
| 8179 |
OS_NATIVE_EXIT(env, that, PutScrapFlavor__IIII_3C_FUNC); |
8179 |
return rc; |
| 8180 |
return rc; |
8180 |
} |
| 8181 |
} |
8181 |
#endif |
| 8182 |
#endif |
8182 |
|
| 8183 |
|
8183 |
#ifndef NO_PtInRect |
| 8184 |
#ifndef NO_QDBeginCGContext |
8184 |
JNIEXPORT jboolean JNICALL OS_NATIVE(PtInRect) |
| 8185 |
JNIEXPORT jint JNICALL OS_NATIVE(QDBeginCGContext) |
8185 |
(JNIEnv *env, jclass that, jobject arg0, jobject arg1) |
| 8186 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
8186 |
{ |
| 8187 |
{ |
8187 |
Point _arg0, *lparg0=NULL; |
| 8188 |
jint *lparg1=NULL; |
8188 |
Rect _arg1, *lparg1=NULL; |
| 8189 |
jint rc = 0; |
8189 |
jboolean rc = 0; |
| 8190 |
OS_NATIVE_ENTER(env, that, QDBeginCGContext_FUNC); |
8190 |
OS_NATIVE_ENTER(env, that, PtInRect_FUNC); |
| 8191 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
8191 |
if (arg0) if ((lparg0 = getPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 8192 |
rc = (jint)QDBeginCGContext((CGrafPtr)arg0, (CGContextRef *)lparg1); |
8192 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 8193 |
fail: |
8193 |
rc = (jboolean)PtInRect(*(Point *)lparg0, (const Rect *)lparg1); |
| 8194 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
8194 |
fail: |
| 8195 |
OS_NATIVE_EXIT(env, that, QDBeginCGContext_FUNC); |
8195 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 8196 |
return rc; |
8196 |
if (arg0 && lparg0) setPointFields(env, arg0, lparg0); |
| 8197 |
} |
8197 |
OS_NATIVE_EXIT(env, that, PtInRect_FUNC); |
| 8198 |
#endif |
8198 |
return rc; |
| 8199 |
|
8199 |
} |
| 8200 |
#ifndef NO_QDEndCGContext |
8200 |
#endif |
| 8201 |
JNIEXPORT jint JNICALL OS_NATIVE(QDEndCGContext) |
8201 |
|
| 8202 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
8202 |
#ifndef NO_PtInRgn |
| 8203 |
{ |
8203 |
JNIEXPORT jboolean JNICALL OS_NATIVE(PtInRgn) |
| 8204 |
jint *lparg1=NULL; |
8204 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1) |
| 8205 |
jint rc = 0; |
8205 |
{ |
| 8206 |
OS_NATIVE_ENTER(env, that, QDEndCGContext_FUNC); |
8206 |
Point _arg0, *lparg0=NULL; |
| 8207 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
8207 |
jboolean rc = 0; |
| 8208 |
rc = (jint)QDEndCGContext((CGrafPtr)arg0, (CGContextRef *)lparg1); |
8208 |
OS_NATIVE_ENTER(env, that, PtInRgn_FUNC); |
| 8209 |
fail: |
8209 |
if (arg0) if ((lparg0 = getPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 8210 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
8210 |
rc = (jboolean)PtInRgn(*(Point *)lparg0, (RgnHandle)arg1); |
| 8211 |
OS_NATIVE_EXIT(env, that, QDEndCGContext_FUNC); |
8211 |
fail: |
| 8212 |
return rc; |
8212 |
if (arg0 && lparg0) setPointFields(env, arg0, lparg0); |
| 8213 |
} |
8213 |
OS_NATIVE_EXIT(env, that, PtInRgn_FUNC); |
| 8214 |
#endif |
8214 |
return rc; |
| 8215 |
|
8215 |
} |
| 8216 |
#ifndef NO_QDFlushPortBuffer |
8216 |
#endif |
| 8217 |
JNIEXPORT void JNICALL OS_NATIVE(QDFlushPortBuffer) |
8217 |
|
| 8218 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
8218 |
#ifndef NO_PutScrapFlavor__IIII_3B |
| 8219 |
{ |
8219 |
JNIEXPORT jint JNICALL OS_NATIVE(PutScrapFlavor__IIII_3B) |
| 8220 |
OS_NATIVE_ENTER(env, that, QDFlushPortBuffer_FUNC); |
8220 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jbyteArray arg4) |
| 8221 |
QDFlushPortBuffer((CGrafPtr)arg0, (RgnHandle)arg1); |
8221 |
{ |
| 8222 |
OS_NATIVE_EXIT(env, that, QDFlushPortBuffer_FUNC); |
8222 |
jbyte *lparg4=NULL; |
| 8223 |
} |
8223 |
jint rc = 0; |
| 8224 |
#endif |
8224 |
OS_NATIVE_ENTER(env, that, PutScrapFlavor__IIII_3B_FUNC); |
| 8225 |
|
8225 |
if (arg4) if ((lparg4 = (*env)->GetByteArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 8226 |
#ifndef NO_QDGlobalToLocalPoint |
8226 |
rc = (jint)PutScrapFlavor((ScrapRef)arg0, (ScrapFlavorType)arg1, (ScrapFlavorFlags)arg2, (Size)arg3, (const void *)lparg4); |
| 8227 |
JNIEXPORT void JNICALL OS_NATIVE(QDGlobalToLocalPoint) |
8227 |
fail: |
| 8228 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
8228 |
if (arg4 && lparg4) (*env)->ReleaseByteArrayElements(env, arg4, lparg4, 0); |
| 8229 |
{ |
8229 |
OS_NATIVE_EXIT(env, that, PutScrapFlavor__IIII_3B_FUNC); |
| 8230 |
Point _arg1, *lparg1=NULL; |
8230 |
return rc; |
| 8231 |
OS_NATIVE_ENTER(env, that, QDGlobalToLocalPoint_FUNC); |
8231 |
} |
| 8232 |
if (arg1) if ((lparg1 = getPointFields(env, arg1, &_arg1)) == NULL) goto fail; |
8232 |
#endif |
| 8233 |
QDGlobalToLocalPoint((CGrafPtr)arg0, (Point *)lparg1); |
8233 |
|
| 8234 |
fail: |
8234 |
#ifndef NO_PutScrapFlavor__IIII_3C |
| 8235 |
if (arg1 && lparg1) setPointFields(env, arg1, lparg1); |
8235 |
JNIEXPORT jint JNICALL OS_NATIVE(PutScrapFlavor__IIII_3C) |
| 8236 |
OS_NATIVE_EXIT(env, that, QDGlobalToLocalPoint_FUNC); |
8236 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jcharArray arg4) |
| 8237 |
} |
8237 |
{ |
| 8238 |
#endif |
8238 |
jchar *lparg4=NULL; |
| 8239 |
|
8239 |
jint rc = 0; |
| 8240 |
#ifndef NO_QDLocalToGlobalPoint |
8240 |
OS_NATIVE_ENTER(env, that, PutScrapFlavor__IIII_3C_FUNC); |
| 8241 |
JNIEXPORT void JNICALL OS_NATIVE(QDLocalToGlobalPoint) |
8241 |
if (arg4) if ((lparg4 = (*env)->GetCharArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 8242 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
8242 |
rc = (jint)PutScrapFlavor((ScrapRef)arg0, (ScrapFlavorType)arg1, (ScrapFlavorFlags)arg2, (Size)arg3, (const void *)lparg4); |
| 8243 |
{ |
8243 |
fail: |
| 8244 |
Point _arg1, *lparg1=NULL; |
8244 |
if (arg4 && lparg4) (*env)->ReleaseCharArrayElements(env, arg4, lparg4, 0); |
| 8245 |
OS_NATIVE_ENTER(env, that, QDLocalToGlobalPoint_FUNC); |
8245 |
OS_NATIVE_EXIT(env, that, PutScrapFlavor__IIII_3C_FUNC); |
| 8246 |
if (arg1) if ((lparg1 = getPointFields(env, arg1, &_arg1)) == NULL) goto fail; |
8246 |
return rc; |
| 8247 |
QDLocalToGlobalPoint((CGrafPtr)arg0, (Point *)lparg1); |
8247 |
} |
| 8248 |
fail: |
8248 |
#endif |
| 8249 |
if (arg1 && lparg1) setPointFields(env, arg1, lparg1); |
8249 |
|
| 8250 |
OS_NATIVE_EXIT(env, that, QDLocalToGlobalPoint_FUNC); |
8250 |
#ifndef NO_QDBeginCGContext |
| 8251 |
} |
8251 |
JNIEXPORT jint JNICALL OS_NATIVE(QDBeginCGContext) |
| 8252 |
#endif |
8252 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 8253 |
|
8253 |
{ |
| 8254 |
#ifndef NO_QDRegionToRects |
8254 |
jint *lparg1=NULL; |
| 8255 |
JNIEXPORT jint JNICALL OS_NATIVE(QDRegionToRects) |
8255 |
jint rc = 0; |
| 8256 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3) |
8256 |
OS_NATIVE_ENTER(env, that, QDBeginCGContext_FUNC); |
| 8257 |
{ |
8257 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 8258 |
jint rc = 0; |
8258 |
rc = (jint)QDBeginCGContext((CGrafPtr)arg0, (CGContextRef *)lparg1); |
| 8259 |
OS_NATIVE_ENTER(env, that, QDRegionToRects_FUNC); |
8259 |
fail: |
| 8260 |
rc = (jint)QDRegionToRects((RgnHandle)arg0, (QDRegionParseDirection)arg1, (RegionToRectsUPP)arg2, (void *)arg3); |
8260 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 8261 |
OS_NATIVE_EXIT(env, that, QDRegionToRects_FUNC); |
8261 |
OS_NATIVE_EXIT(env, that, QDBeginCGContext_FUNC); |
| 8262 |
return rc; |
8262 |
return rc; |
| 8263 |
} |
8263 |
} |
| 8264 |
#endif |
8264 |
#endif |
| 8265 |
|
8265 |
|
| 8266 |
#ifndef NO_QDSetDirtyRegion |
8266 |
#ifndef NO_QDEndCGContext |
| 8267 |
JNIEXPORT jint JNICALL OS_NATIVE(QDSetDirtyRegion) |
8267 |
JNIEXPORT jint JNICALL OS_NATIVE(QDEndCGContext) |
| 8268 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
8268 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 8269 |
{ |
8269 |
{ |
| 8270 |
jint rc = 0; |
8270 |
jint *lparg1=NULL; |
| 8271 |
OS_NATIVE_ENTER(env, that, QDSetDirtyRegion_FUNC); |
8271 |
jint rc = 0; |
| 8272 |
rc = (jint)QDSetDirtyRegion((CGrafPtr)arg0, (RgnHandle)arg1); |
8272 |
OS_NATIVE_ENTER(env, that, QDEndCGContext_FUNC); |
| 8273 |
OS_NATIVE_EXIT(env, that, QDSetDirtyRegion_FUNC); |
8273 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 8274 |
return rc; |
8274 |
rc = (jint)QDEndCGContext((CGrafPtr)arg0, (CGContextRef *)lparg1); |
| 8275 |
} |
8275 |
fail: |
| 8276 |
#endif |
8276 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 8277 |
|
8277 |
OS_NATIVE_EXIT(env, that, QDEndCGContext_FUNC); |
| 8278 |
#ifndef NO_QDSetPatternOrigin |
8278 |
return rc; |
| 8279 |
JNIEXPORT void JNICALL OS_NATIVE(QDSetPatternOrigin) |
8279 |
} |
| 8280 |
(JNIEnv *env, jclass that, jobject arg0) |
8280 |
#endif |
| 8281 |
{ |
8281 |
|
| 8282 |
Point _arg0, *lparg0=NULL; |
8282 |
#ifndef NO_QDFlushPortBuffer |
| 8283 |
OS_NATIVE_ENTER(env, that, QDSetPatternOrigin_FUNC); |
8283 |
JNIEXPORT void JNICALL OS_NATIVE(QDFlushPortBuffer) |
| 8284 |
if (arg0) if ((lparg0 = getPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
8284 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 8285 |
QDSetPatternOrigin(*(Point *)lparg0); |
8285 |
{ |
| 8286 |
fail: |
8286 |
OS_NATIVE_ENTER(env, that, QDFlushPortBuffer_FUNC); |
| 8287 |
if (arg0 && lparg0) setPointFields(env, arg0, lparg0); |
8287 |
QDFlushPortBuffer((CGrafPtr)arg0, (RgnHandle)arg1); |
| 8288 |
OS_NATIVE_EXIT(env, that, QDSetPatternOrigin_FUNC); |
8288 |
OS_NATIVE_EXIT(env, that, QDFlushPortBuffer_FUNC); |
| 8289 |
} |
8289 |
} |
| 8290 |
#endif |
8290 |
#endif |
| 8291 |
|
8291 |
|
| 8292 |
#ifndef NO_QDSwapTextFlags |
8292 |
#ifndef NO_QDGlobalToLocalPoint |
| 8293 |
JNIEXPORT jint JNICALL OS_NATIVE(QDSwapTextFlags) |
8293 |
JNIEXPORT void JNICALL OS_NATIVE(QDGlobalToLocalPoint) |
| 8294 |
(JNIEnv *env, jclass that, jint arg0) |
8294 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 8295 |
{ |
8295 |
{ |
| 8296 |
jint rc = 0; |
8296 |
Point _arg1, *lparg1=NULL; |
| 8297 |
OS_NATIVE_ENTER(env, that, QDSwapTextFlags_FUNC); |
8297 |
OS_NATIVE_ENTER(env, that, QDGlobalToLocalPoint_FUNC); |
| 8298 |
rc = (jint)QDSwapTextFlags((UInt32)arg0); |
8298 |
if (arg1) if ((lparg1 = getPointFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 8299 |
OS_NATIVE_EXIT(env, that, QDSwapTextFlags_FUNC); |
8299 |
QDGlobalToLocalPoint((CGrafPtr)arg0, (Point *)lparg1); |
| 8300 |
return rc; |
8300 |
fail: |
| 8301 |
} |
8301 |
if (arg1 && lparg1) setPointFields(env, arg1, lparg1); |
| 8302 |
#endif |
8302 |
OS_NATIVE_EXIT(env, that, QDGlobalToLocalPoint_FUNC); |
| 8303 |
|
8303 |
} |
| 8304 |
#ifndef NO_RGBBackColor |
8304 |
#endif |
| 8305 |
JNIEXPORT void JNICALL OS_NATIVE(RGBBackColor) |
8305 |
|
| 8306 |
(JNIEnv *env, jclass that, jobject arg0) |
8306 |
#ifndef NO_QDLocalToGlobalPoint |
| 8307 |
{ |
8307 |
JNIEXPORT void JNICALL OS_NATIVE(QDLocalToGlobalPoint) |
| 8308 |
RGBColor _arg0, *lparg0=NULL; |
8308 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 8309 |
OS_NATIVE_ENTER(env, that, RGBBackColor_FUNC); |
8309 |
{ |
| 8310 |
if (arg0) if ((lparg0 = getRGBColorFields(env, arg0, &_arg0)) == NULL) goto fail; |
8310 |
Point _arg1, *lparg1=NULL; |
| 8311 |
RGBBackColor((const RGBColor *)lparg0); |
8311 |
OS_NATIVE_ENTER(env, that, QDLocalToGlobalPoint_FUNC); |
| 8312 |
fail: |
8312 |
if (arg1) if ((lparg1 = getPointFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 8313 |
if (arg0 && lparg0) setRGBColorFields(env, arg0, lparg0); |
8313 |
QDLocalToGlobalPoint((CGrafPtr)arg0, (Point *)lparg1); |
| 8314 |
OS_NATIVE_EXIT(env, that, RGBBackColor_FUNC); |
8314 |
fail: |
| 8315 |
} |
8315 |
if (arg1 && lparg1) setPointFields(env, arg1, lparg1); |
| 8316 |
#endif |
8316 |
OS_NATIVE_EXIT(env, that, QDLocalToGlobalPoint_FUNC); |
| 8317 |
|
8317 |
} |
| 8318 |
#ifndef NO_RGBForeColor |
8318 |
#endif |
| 8319 |
JNIEXPORT void JNICALL OS_NATIVE(RGBForeColor) |
8319 |
|
| 8320 |
(JNIEnv *env, jclass that, jobject arg0) |
8320 |
#ifndef NO_QDRegionToRects |
| 8321 |
{ |
8321 |
JNIEXPORT jint JNICALL OS_NATIVE(QDRegionToRects) |
| 8322 |
RGBColor _arg0, *lparg0=NULL; |
8322 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3) |
| 8323 |
OS_NATIVE_ENTER(env, that, RGBForeColor_FUNC); |
8323 |
{ |
| 8324 |
if (arg0) if ((lparg0 = getRGBColorFields(env, arg0, &_arg0)) == NULL) goto fail; |
8324 |
jint rc = 0; |
| 8325 |
RGBForeColor((const RGBColor *)lparg0); |
8325 |
OS_NATIVE_ENTER(env, that, QDRegionToRects_FUNC); |
| 8326 |
fail: |
8326 |
rc = (jint)QDRegionToRects((RgnHandle)arg0, (QDRegionParseDirection)arg1, (RegionToRectsUPP)arg2, (void *)arg3); |
| 8327 |
if (arg0 && lparg0) setRGBColorFields(env, arg0, lparg0); |
8327 |
OS_NATIVE_EXIT(env, that, QDRegionToRects_FUNC); |
| 8328 |
OS_NATIVE_EXIT(env, that, RGBForeColor_FUNC); |
8328 |
return rc; |
| 8329 |
} |
8329 |
} |
| 8330 |
#endif |
8330 |
#endif |
| 8331 |
|
8331 |
|
| 8332 |
#ifndef NO_ReceiveNextEvent |
8332 |
#ifndef NO_QDSetDirtyRegion |
| 8333 |
JNIEXPORT jint JNICALL OS_NATIVE(ReceiveNextEvent) |
8333 |
JNIEXPORT jint JNICALL OS_NATIVE(QDSetDirtyRegion) |
| 8334 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jdouble arg2, jboolean arg3, jintArray arg4) |
8334 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 8335 |
{ |
8335 |
{ |
| 8336 |
jint *lparg1=NULL; |
8336 |
jint rc = 0; |
| 8337 |
jint *lparg4=NULL; |
8337 |
OS_NATIVE_ENTER(env, that, QDSetDirtyRegion_FUNC); |
| 8338 |
jint rc = 0; |
8338 |
rc = (jint)QDSetDirtyRegion((CGrafPtr)arg0, (RgnHandle)arg1); |
| 8339 |
OS_NATIVE_ENTER(env, that, ReceiveNextEvent_FUNC); |
8339 |
OS_NATIVE_EXIT(env, that, QDSetDirtyRegion_FUNC); |
| 8340 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
8340 |
return rc; |
| 8341 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
8341 |
} |
| 8342 |
rc = (jint)ReceiveNextEvent((UInt32)arg0, (const EventTypeSpec *)lparg1, (EventTimeout)arg2, (Boolean)arg3, (EventRef *)lparg4); |
8342 |
#endif |
| 8343 |
fail: |
8343 |
|
| 8344 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
8344 |
#ifndef NO_QDSetPatternOrigin |
| 8345 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
8345 |
JNIEXPORT void JNICALL OS_NATIVE(QDSetPatternOrigin) |
| 8346 |
OS_NATIVE_EXIT(env, that, ReceiveNextEvent_FUNC); |
8346 |
(JNIEnv *env, jclass that, jobject arg0) |
| 8347 |
return rc; |
8347 |
{ |
| 8348 |
} |
8348 |
Point _arg0, *lparg0=NULL; |
| 8349 |
#endif |
8349 |
OS_NATIVE_ENTER(env, that, QDSetPatternOrigin_FUNC); |
| 8350 |
|
8350 |
if (arg0) if ((lparg0 = getPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 8351 |
#ifndef NO_RectInRgn |
8351 |
QDSetPatternOrigin(*(Point *)lparg0); |
| 8352 |
JNIEXPORT jboolean JNICALL OS_NATIVE(RectInRgn) |
8352 |
fail: |
| 8353 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1) |
8353 |
if (arg0 && lparg0) setPointFields(env, arg0, lparg0); |
| 8354 |
{ |
8354 |
OS_NATIVE_EXIT(env, that, QDSetPatternOrigin_FUNC); |
| 8355 |
Rect _arg0, *lparg0=NULL; |
8355 |
} |
| 8356 |
jboolean rc = 0; |
8356 |
#endif |
| 8357 |
OS_NATIVE_ENTER(env, that, RectInRgn_FUNC); |
8357 |
|
| 8358 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
8358 |
#ifndef NO_QDSwapTextFlags |
| 8359 |
rc = (jboolean)RectInRgn((const Rect *)lparg0, (RgnHandle)arg1); |
8359 |
JNIEXPORT jint JNICALL OS_NATIVE(QDSwapTextFlags) |
| 8360 |
fail: |
8360 |
(JNIEnv *env, jclass that, jint arg0) |
| 8361 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
8361 |
{ |
| 8362 |
OS_NATIVE_EXIT(env, that, RectInRgn_FUNC); |
8362 |
jint rc = 0; |
| 8363 |
return rc; |
8363 |
OS_NATIVE_ENTER(env, that, QDSwapTextFlags_FUNC); |
| 8364 |
} |
8364 |
rc = (jint)QDSwapTextFlags((UInt32)arg0); |
| 8365 |
#endif |
8365 |
OS_NATIVE_EXIT(env, that, QDSwapTextFlags_FUNC); |
| 8366 |
|
8366 |
return rc; |
| 8367 |
#ifndef NO_RectRgn |
8367 |
} |
| 8368 |
JNIEXPORT void JNICALL OS_NATIVE(RectRgn) |
8368 |
#endif |
| 8369 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
8369 |
|
| 8370 |
{ |
8370 |
#ifndef NO_RGBBackColor |
| 8371 |
Rect _arg1, *lparg1=NULL; |
8371 |
JNIEXPORT void JNICALL OS_NATIVE(RGBBackColor) |
| 8372 |
OS_NATIVE_ENTER(env, that, RectRgn_FUNC); |
8372 |
(JNIEnv *env, jclass that, jobject arg0) |
| 8373 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
8373 |
{ |
| 8374 |
RectRgn((RgnHandle)arg0, (const Rect *)lparg1); |
8374 |
RGBColor _arg0, *lparg0=NULL; |
| 8375 |
fail: |
8375 |
OS_NATIVE_ENTER(env, that, RGBBackColor_FUNC); |
| 8376 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
8376 |
if (arg0) if ((lparg0 = getRGBColorFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 8377 |
OS_NATIVE_EXIT(env, that, RectRgn_FUNC); |
8377 |
RGBBackColor((const RGBColor *)lparg0); |
| 8378 |
} |
8378 |
fail: |
| 8379 |
#endif |
8379 |
if (arg0 && lparg0) setRGBColorFields(env, arg0, lparg0); |
| 8380 |
|
8380 |
OS_NATIVE_EXIT(env, that, RGBBackColor_FUNC); |
| 8381 |
#ifndef NO_RegisterAppearanceClient |
8381 |
} |
| 8382 |
JNIEXPORT jint JNICALL OS_NATIVE(RegisterAppearanceClient) |
8382 |
#endif |
| 8383 |
(JNIEnv *env, jclass that) |
8383 |
|
| 8384 |
{ |
8384 |
#ifndef NO_RGBForeColor |
| 8385 |
jint rc = 0; |
8385 |
JNIEXPORT void JNICALL OS_NATIVE(RGBForeColor) |
| 8386 |
OS_NATIVE_ENTER(env, that, RegisterAppearanceClient_FUNC); |
8386 |
(JNIEnv *env, jclass that, jobject arg0) |
| 8387 |
rc = (jint)RegisterAppearanceClient(); |
8387 |
{ |
| 8388 |
OS_NATIVE_EXIT(env, that, RegisterAppearanceClient_FUNC); |
8388 |
RGBColor _arg0, *lparg0=NULL; |
| 8389 |
return rc; |
8389 |
OS_NATIVE_ENTER(env, that, RGBForeColor_FUNC); |
| 8390 |
} |
8390 |
if (arg0) if ((lparg0 = getRGBColorFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 8391 |
#endif |
8391 |
RGBForeColor((const RGBColor *)lparg0); |
| 8392 |
|
8392 |
fail: |
| 8393 |
#ifndef NO_ReleaseEvent |
8393 |
if (arg0 && lparg0) setRGBColorFields(env, arg0, lparg0); |
| 8394 |
JNIEXPORT void JNICALL OS_NATIVE(ReleaseEvent) |
8394 |
OS_NATIVE_EXIT(env, that, RGBForeColor_FUNC); |
| 8395 |
(JNIEnv *env, jclass that, jint arg0) |
8395 |
} |
| 8396 |
{ |
8396 |
#endif |
| 8397 |
OS_NATIVE_ENTER(env, that, ReleaseEvent_FUNC); |
8397 |
|
| 8398 |
ReleaseEvent((EventRef)arg0); |
8398 |
#ifndef NO_ReceiveNextEvent |
| 8399 |
OS_NATIVE_EXIT(env, that, ReleaseEvent_FUNC); |
8399 |
JNIEXPORT jint JNICALL OS_NATIVE(ReceiveNextEvent) |
| 8400 |
} |
8400 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jdouble arg2, jboolean arg3, jintArray arg4) |
| 8401 |
#endif |
8401 |
{ |
| 8402 |
|
8402 |
jint *lparg1=NULL; |
| 8403 |
#ifndef NO_ReleaseIconRef |
8403 |
jint *lparg4=NULL; |
| 8404 |
JNIEXPORT void JNICALL OS_NATIVE(ReleaseIconRef) |
8404 |
jint rc = 0; |
| 8405 |
(JNIEnv *env, jclass that, jint arg0) |
8405 |
OS_NATIVE_ENTER(env, that, ReceiveNextEvent_FUNC); |
| 8406 |
{ |
8406 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 8407 |
OS_NATIVE_ENTER(env, that, ReleaseIconRef_FUNC); |
8407 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 8408 |
ReleaseIconRef((IconRef)arg0); |
8408 |
rc = (jint)ReceiveNextEvent((UInt32)arg0, (const EventTypeSpec *)lparg1, (EventTimeout)arg2, (Boolean)arg3, (EventRef *)lparg4); |
| 8409 |
OS_NATIVE_EXIT(env, that, ReleaseIconRef_FUNC); |
8409 |
fail: |
| 8410 |
} |
8410 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 8411 |
#endif |
8411 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 8412 |
|
8412 |
OS_NATIVE_EXIT(env, that, ReceiveNextEvent_FUNC); |
| 8413 |
#ifndef NO_ReleaseMenu |
8413 |
return rc; |
| 8414 |
JNIEXPORT jint JNICALL OS_NATIVE(ReleaseMenu) |
8414 |
} |
| 8415 |
(JNIEnv *env, jclass that, jint arg0) |
8415 |
#endif |
| 8416 |
{ |
8416 |
|
| 8417 |
jint rc = 0; |
8417 |
#ifndef NO_RectInRgn |
| 8418 |
OS_NATIVE_ENTER(env, that, ReleaseMenu_FUNC); |
8418 |
JNIEXPORT jboolean JNICALL OS_NATIVE(RectInRgn) |
| 8419 |
rc = (jint)ReleaseMenu((MenuRef)arg0); |
8419 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1) |
| 8420 |
OS_NATIVE_EXIT(env, that, ReleaseMenu_FUNC); |
8420 |
{ |
| 8421 |
return rc; |
8421 |
Rect _arg0, *lparg0=NULL; |
| 8422 |
} |
8422 |
jboolean rc = 0; |
| 8423 |
#endif |
8423 |
OS_NATIVE_ENTER(env, that, RectInRgn_FUNC); |
| 8424 |
|
8424 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 8425 |
#ifndef NO_ReleaseWindow |
8425 |
rc = (jboolean)RectInRgn((const Rect *)lparg0, (RgnHandle)arg1); |
| 8426 |
JNIEXPORT jint JNICALL OS_NATIVE(ReleaseWindow) |
8426 |
fail: |
| 8427 |
(JNIEnv *env, jclass that, jint arg0) |
8427 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 8428 |
{ |
8428 |
OS_NATIVE_EXIT(env, that, RectInRgn_FUNC); |
| 8429 |
jint rc = 0; |
8429 |
return rc; |
| 8430 |
OS_NATIVE_ENTER(env, that, ReleaseWindow_FUNC); |
8430 |
} |
| 8431 |
rc = (jint)ReleaseWindow((WindowRef)arg0); |
8431 |
#endif |
| 8432 |
OS_NATIVE_EXIT(env, that, ReleaseWindow_FUNC); |
8432 |
|
| 8433 |
return rc; |
8433 |
#ifndef NO_RectRgn |
| 8434 |
} |
8434 |
JNIEXPORT void JNICALL OS_NATIVE(RectRgn) |
| 8435 |
#endif |
8435 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 8436 |
|
8436 |
{ |
| 8437 |
#ifndef NO_ReleaseWindowGroup |
8437 |
Rect _arg1, *lparg1=NULL; |
| 8438 |
JNIEXPORT jint JNICALL OS_NATIVE(ReleaseWindowGroup) |
8438 |
OS_NATIVE_ENTER(env, that, RectRgn_FUNC); |
| 8439 |
(JNIEnv *env, jclass that, jint arg0) |
8439 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 8440 |
{ |
8440 |
RectRgn((RgnHandle)arg0, (const Rect *)lparg1); |
| 8441 |
jint rc = 0; |
8441 |
fail: |
| 8442 |
OS_NATIVE_ENTER(env, that, ReleaseWindowGroup_FUNC); |
8442 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 8443 |
rc = (jint)ReleaseWindowGroup((WindowGroupRef)arg0); |
8443 |
OS_NATIVE_EXIT(env, that, RectRgn_FUNC); |
| 8444 |
OS_NATIVE_EXIT(env, that, ReleaseWindowGroup_FUNC); |
8444 |
} |
| 8445 |
return rc; |
8445 |
#endif |
| 8446 |
} |
8446 |
|
| 8447 |
#endif |
8447 |
#ifndef NO_RegisterAppearanceClient |
| 8448 |
|
8448 |
JNIEXPORT jint JNICALL OS_NATIVE(RegisterAppearanceClient) |
| 8449 |
#ifndef NO_RemoveControlProperty |
8449 |
(JNIEnv *env, jclass that) |
| 8450 |
JNIEXPORT jint JNICALL OS_NATIVE(RemoveControlProperty) |
8450 |
{ |
| 8451 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
8451 |
jint rc = 0; |
| 8452 |
{ |
8452 |
OS_NATIVE_ENTER(env, that, RegisterAppearanceClient_FUNC); |
| 8453 |
jint rc = 0; |
8453 |
rc = (jint)RegisterAppearanceClient(); |
| 8454 |
OS_NATIVE_ENTER(env, that, RemoveControlProperty_FUNC); |
8454 |
OS_NATIVE_EXIT(env, that, RegisterAppearanceClient_FUNC); |
| 8455 |
rc = (jint)RemoveControlProperty((ControlRef)arg0, arg1, arg2); |
8455 |
return rc; |
| 8456 |
OS_NATIVE_EXIT(env, that, RemoveControlProperty_FUNC); |
8456 |
} |
| 8457 |
return rc; |
8457 |
#endif |
| 8458 |
} |
8458 |
|
| 8459 |
#endif |
8459 |
#ifndef NO_ReleaseEvent |
| 8460 |
|
8460 |
JNIEXPORT void JNICALL OS_NATIVE(ReleaseEvent) |
| 8461 |
#ifndef NO_RemoveDataBrowserItems |
8461 |
(JNIEnv *env, jclass that, jint arg0) |
| 8462 |
JNIEXPORT jint JNICALL OS_NATIVE(RemoveDataBrowserItems) |
8462 |
{ |
| 8463 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4) |
8463 |
OS_NATIVE_ENTER(env, that, ReleaseEvent_FUNC); |
| 8464 |
{ |
8464 |
ReleaseEvent((EventRef)arg0); |
| 8465 |
jint *lparg3=NULL; |
8465 |
OS_NATIVE_EXIT(env, that, ReleaseEvent_FUNC); |
| 8466 |
jint rc = 0; |
8466 |
} |
| 8467 |
OS_NATIVE_ENTER(env, that, RemoveDataBrowserItems_FUNC); |
8467 |
#endif |
| 8468 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
8468 |
|
| 8469 |
rc = (jint)RemoveDataBrowserItems((ControlRef)arg0, (DataBrowserItemID)arg1, (UInt32)arg2, (const DataBrowserItemID *)lparg3, (DataBrowserPropertyID)arg4); |
8469 |
#ifndef NO_ReleaseIconRef |
| 8470 |
fail: |
8470 |
JNIEXPORT void JNICALL OS_NATIVE(ReleaseIconRef) |
| 8471 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
8471 |
(JNIEnv *env, jclass that, jint arg0) |
| 8472 |
OS_NATIVE_EXIT(env, that, RemoveDataBrowserItems_FUNC); |
8472 |
{ |
| 8473 |
return rc; |
8473 |
OS_NATIVE_ENTER(env, that, ReleaseIconRef_FUNC); |
| 8474 |
} |
8474 |
ReleaseIconRef((IconRef)arg0); |
| 8475 |
#endif |
8475 |
OS_NATIVE_EXIT(env, that, ReleaseIconRef_FUNC); |
| 8476 |
|
8476 |
} |
| 8477 |
#ifndef NO_RemoveDataBrowserTableViewColumn |
8477 |
#endif |
| 8478 |
JNIEXPORT jint JNICALL OS_NATIVE(RemoveDataBrowserTableViewColumn) |
8478 |
|
| 8479 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
8479 |
#ifndef NO_ReleaseMenu |
| 8480 |
{ |
8480 |
JNIEXPORT jint JNICALL OS_NATIVE(ReleaseMenu) |
| 8481 |
jint rc = 0; |
8481 |
(JNIEnv *env, jclass that, jint arg0) |
| 8482 |
OS_NATIVE_ENTER(env, that, RemoveDataBrowserTableViewColumn_FUNC); |
8482 |
{ |
| 8483 |
rc = (jint)RemoveDataBrowserTableViewColumn((ControlRef)arg0, (DataBrowserTableViewColumnID)arg1); |
8483 |
jint rc = 0; |
| 8484 |
OS_NATIVE_EXIT(env, that, RemoveDataBrowserTableViewColumn_FUNC); |
8484 |
OS_NATIVE_ENTER(env, that, ReleaseMenu_FUNC); |
| 8485 |
return rc; |
8485 |
rc = (jint)ReleaseMenu((MenuRef)arg0); |
| 8486 |
} |
8486 |
OS_NATIVE_EXIT(env, that, ReleaseMenu_FUNC); |
| 8487 |
#endif |
8487 |
return rc; |
| 8488 |
|
8488 |
} |
| 8489 |
#ifndef NO_RemoveEventHandler |
8489 |
#endif |
| 8490 |
JNIEXPORT jint JNICALL OS_NATIVE(RemoveEventHandler) |
8490 |
|
| 8491 |
(JNIEnv *env, jclass that, jint arg0) |
8491 |
#ifndef NO_ReleaseWindow |
| 8492 |
{ |
8492 |
JNIEXPORT jint JNICALL OS_NATIVE(ReleaseWindow) |
| 8493 |
jint rc = 0; |
8493 |
(JNIEnv *env, jclass that, jint arg0) |
| 8494 |
OS_NATIVE_ENTER(env, that, RemoveEventHandler_FUNC); |
8494 |
{ |
| 8495 |
rc = (jint)RemoveEventHandler((EventHandlerRef)arg0); |
8495 |
jint rc = 0; |
| 8496 |
OS_NATIVE_EXIT(env, that, RemoveEventHandler_FUNC); |
8496 |
OS_NATIVE_ENTER(env, that, ReleaseWindow_FUNC); |
| 8497 |
return rc; |
8497 |
rc = (jint)ReleaseWindow((WindowRef)arg0); |
| 8498 |
} |
8498 |
OS_NATIVE_EXIT(env, that, ReleaseWindow_FUNC); |
| 8499 |
#endif |
8499 |
return rc; |
| 8500 |
|
8500 |
} |
| 8501 |
#ifndef NO_RemoveEventLoopTimer |
8501 |
#endif |
| 8502 |
JNIEXPORT jint JNICALL OS_NATIVE(RemoveEventLoopTimer) |
8502 |
|
| 8503 |
(JNIEnv *env, jclass that, jint arg0) |
8503 |
#ifndef NO_ReleaseWindowGroup |
| 8504 |
{ |
8504 |
JNIEXPORT jint JNICALL OS_NATIVE(ReleaseWindowGroup) |
| 8505 |
jint rc = 0; |
8505 |
(JNIEnv *env, jclass that, jint arg0) |
| 8506 |
OS_NATIVE_ENTER(env, that, RemoveEventLoopTimer_FUNC); |
8506 |
{ |
| 8507 |
rc = (jint)RemoveEventLoopTimer((EventLoopTimerRef)arg0); |
8507 |
jint rc = 0; |
| 8508 |
OS_NATIVE_EXIT(env, that, RemoveEventLoopTimer_FUNC); |
8508 |
OS_NATIVE_ENTER(env, that, ReleaseWindowGroup_FUNC); |
| 8509 |
return rc; |
8509 |
rc = (jint)ReleaseWindowGroup((WindowGroupRef)arg0); |
| 8510 |
} |
8510 |
OS_NATIVE_EXIT(env, that, ReleaseWindowGroup_FUNC); |
| 8511 |
#endif |
8511 |
return rc; |
| 8512 |
|
8512 |
} |
| 8513 |
#ifndef NO_RemoveReceiveHandler |
8513 |
#endif |
| 8514 |
JNIEXPORT jint JNICALL OS_NATIVE(RemoveReceiveHandler) |
8514 |
|
| 8515 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
8515 |
#ifndef NO_RemoveControlProperty |
| 8516 |
{ |
8516 |
JNIEXPORT jint JNICALL OS_NATIVE(RemoveControlProperty) |
| 8517 |
jint rc = 0; |
8517 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 8518 |
OS_NATIVE_ENTER(env, that, RemoveReceiveHandler_FUNC); |
8518 |
{ |
| 8519 |
rc = (jint)RemoveReceiveHandler((DragReceiveHandlerUPP)arg0, (WindowRef)arg1); |
8519 |
jint rc = 0; |
| 8520 |
OS_NATIVE_EXIT(env, that, RemoveReceiveHandler_FUNC); |
8520 |
OS_NATIVE_ENTER(env, that, RemoveControlProperty_FUNC); |
| 8521 |
return rc; |
8521 |
rc = (jint)RemoveControlProperty((ControlRef)arg0, arg1, arg2); |
| 8522 |
} |
8522 |
OS_NATIVE_EXIT(env, that, RemoveControlProperty_FUNC); |
| 8523 |
#endif |
8523 |
return rc; |
| 8524 |
|
8524 |
} |
| 8525 |
#ifndef NO_RemoveTrackingHandler |
8525 |
#endif |
| 8526 |
JNIEXPORT jint JNICALL OS_NATIVE(RemoveTrackingHandler) |
8526 |
|
| 8527 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
8527 |
#ifndef NO_RemoveDataBrowserItems |
| 8528 |
{ |
8528 |
JNIEXPORT jint JNICALL OS_NATIVE(RemoveDataBrowserItems) |
| 8529 |
jint rc = 0; |
8529 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4) |
| 8530 |
OS_NATIVE_ENTER(env, that, RemoveTrackingHandler_FUNC); |
8530 |
{ |
| 8531 |
rc = (jint)RemoveTrackingHandler((DragTrackingHandlerUPP)arg0, (WindowRef)arg1); |
8531 |
jint *lparg3=NULL; |
| 8532 |
OS_NATIVE_EXIT(env, that, RemoveTrackingHandler_FUNC); |
8532 |
jint rc = 0; |
| 8533 |
return rc; |
8533 |
OS_NATIVE_ENTER(env, that, RemoveDataBrowserItems_FUNC); |
| 8534 |
} |
8534 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 8535 |
#endif |
8535 |
rc = (jint)RemoveDataBrowserItems((ControlRef)arg0, (DataBrowserItemID)arg1, (UInt32)arg2, (const DataBrowserItemID *)lparg3, (DataBrowserPropertyID)arg4); |
| 8536 |
|
8536 |
fail: |
| 8537 |
#ifndef NO_RepositionWindow |
8537 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 8538 |
JNIEXPORT jint JNICALL OS_NATIVE(RepositionWindow) |
8538 |
OS_NATIVE_EXIT(env, that, RemoveDataBrowserItems_FUNC); |
| 8539 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
8539 |
return rc; |
| 8540 |
{ |
8540 |
} |
| 8541 |
jint rc = 0; |
8541 |
#endif |
| 8542 |
OS_NATIVE_ENTER(env, that, RepositionWindow_FUNC); |
8542 |
|
| 8543 |
rc = (jint)RepositionWindow((WindowRef)arg0, (WindowRef)arg1, arg2); |
8543 |
#ifndef NO_RemoveDataBrowserTableViewColumn |
| 8544 |
OS_NATIVE_EXIT(env, that, RepositionWindow_FUNC); |
8544 |
JNIEXPORT jint JNICALL OS_NATIVE(RemoveDataBrowserTableViewColumn) |
| 8545 |
return rc; |
8545 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 8546 |
} |
8546 |
{ |
| 8547 |
#endif |
8547 |
jint rc = 0; |
| 8548 |
|
8548 |
OS_NATIVE_ENTER(env, that, RemoveDataBrowserTableViewColumn_FUNC); |
| 8549 |
#ifndef NO_ReshapeCustomWindow |
8549 |
rc = (jint)RemoveDataBrowserTableViewColumn((ControlRef)arg0, (DataBrowserTableViewColumnID)arg1); |
| 8550 |
JNIEXPORT jint JNICALL OS_NATIVE(ReshapeCustomWindow) |
8550 |
OS_NATIVE_EXIT(env, that, RemoveDataBrowserTableViewColumn_FUNC); |
| 8551 |
(JNIEnv *env, jclass that, jint arg0) |
8551 |
return rc; |
| 8552 |
{ |
8552 |
} |
| 8553 |
jint rc = 0; |
8553 |
#endif |
| 8554 |
OS_NATIVE_ENTER(env, that, ReshapeCustomWindow_FUNC); |
8554 |
|
| 8555 |
rc = (jint)ReshapeCustomWindow((WindowRef)arg0); |
8555 |
#ifndef NO_RemoveEventHandler |
| 8556 |
OS_NATIVE_EXIT(env, that, ReshapeCustomWindow_FUNC); |
8556 |
JNIEXPORT jint JNICALL OS_NATIVE(RemoveEventHandler) |
| 8557 |
return rc; |
8557 |
(JNIEnv *env, jclass that, jint arg0) |
| 8558 |
} |
8558 |
{ |
| 8559 |
#endif |
8559 |
jint rc = 0; |
| 8560 |
|
8560 |
OS_NATIVE_ENTER(env, that, RemoveEventHandler_FUNC); |
| 8561 |
#ifndef NO_RestoreApplicationDockTileImage |
8561 |
rc = (jint)RemoveEventHandler((EventHandlerRef)arg0); |
| 8562 |
JNIEXPORT jint JNICALL OS_NATIVE(RestoreApplicationDockTileImage) |
8562 |
OS_NATIVE_EXIT(env, that, RemoveEventHandler_FUNC); |
| 8563 |
(JNIEnv *env, jclass that) |
8563 |
return rc; |
| 8564 |
{ |
8564 |
} |
| 8565 |
jint rc = 0; |
8565 |
#endif |
| 8566 |
OS_NATIVE_ENTER(env, that, RestoreApplicationDockTileImage_FUNC); |
8566 |
|
| 8567 |
rc = (jint)RestoreApplicationDockTileImage(); |
8567 |
#ifndef NO_RemoveEventLoopTimer |
| 8568 |
OS_NATIVE_EXIT(env, that, RestoreApplicationDockTileImage_FUNC); |
8568 |
JNIEXPORT jint JNICALL OS_NATIVE(RemoveEventLoopTimer) |
| 8569 |
return rc; |
8569 |
(JNIEnv *env, jclass that, jint arg0) |
| 8570 |
} |
8570 |
{ |
| 8571 |
#endif |
8571 |
jint rc = 0; |
| 8572 |
|
8572 |
OS_NATIVE_ENTER(env, that, RemoveEventLoopTimer_FUNC); |
| 8573 |
#ifndef NO_RetainEvent |
8573 |
rc = (jint)RemoveEventLoopTimer((EventLoopTimerRef)arg0); |
| 8574 |
JNIEXPORT jint JNICALL OS_NATIVE(RetainEvent) |
8574 |
OS_NATIVE_EXIT(env, that, RemoveEventLoopTimer_FUNC); |
| 8575 |
(JNIEnv *env, jclass that, jint arg0) |
8575 |
return rc; |
| 8576 |
{ |
8576 |
} |
| 8577 |
jint rc = 0; |
8577 |
#endif |
| 8578 |
OS_NATIVE_ENTER(env, that, RetainEvent_FUNC); |
8578 |
|
| 8579 |
rc = (jint)RetainEvent((EventRef)arg0); |
8579 |
#ifndef NO_RemoveReceiveHandler |
| 8580 |
OS_NATIVE_EXIT(env, that, RetainEvent_FUNC); |
8580 |
JNIEXPORT jint JNICALL OS_NATIVE(RemoveReceiveHandler) |
| 8581 |
return rc; |
8581 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 8582 |
} |
8582 |
{ |
| 8583 |
#endif |
8583 |
jint rc = 0; |
| 8584 |
|
8584 |
OS_NATIVE_ENTER(env, that, RemoveReceiveHandler_FUNC); |
| 8585 |
#ifndef NO_RetainMenu |
8585 |
rc = (jint)RemoveReceiveHandler((DragReceiveHandlerUPP)arg0, (WindowRef)arg1); |
| 8586 |
JNIEXPORT jint JNICALL OS_NATIVE(RetainMenu) |
8586 |
OS_NATIVE_EXIT(env, that, RemoveReceiveHandler_FUNC); |
| 8587 |
(JNIEnv *env, jclass that, jint arg0) |
8587 |
return rc; |
| 8588 |
{ |
8588 |
} |
| 8589 |
jint rc = 0; |
8589 |
#endif |
| 8590 |
OS_NATIVE_ENTER(env, that, RetainMenu_FUNC); |
8590 |
|
| 8591 |
rc = (jint)RetainMenu((MenuRef)arg0); |
8591 |
#ifndef NO_RemoveTrackingHandler |
| 8592 |
OS_NATIVE_EXIT(env, that, RetainMenu_FUNC); |
8592 |
JNIEXPORT jint JNICALL OS_NATIVE(RemoveTrackingHandler) |
| 8593 |
return rc; |
8593 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 8594 |
} |
8594 |
{ |
| 8595 |
#endif |
8595 |
jint rc = 0; |
| 8596 |
|
8596 |
OS_NATIVE_ENTER(env, that, RemoveTrackingHandler_FUNC); |
| 8597 |
#ifndef NO_RetainWindow |
8597 |
rc = (jint)RemoveTrackingHandler((DragTrackingHandlerUPP)arg0, (WindowRef)arg1); |
| 8598 |
JNIEXPORT jint JNICALL OS_NATIVE(RetainWindow) |
8598 |
OS_NATIVE_EXIT(env, that, RemoveTrackingHandler_FUNC); |
| 8599 |
(JNIEnv *env, jclass that, jint arg0) |
8599 |
return rc; |
| 8600 |
{ |
8600 |
} |
| 8601 |
jint rc = 0; |
8601 |
#endif |
| 8602 |
OS_NATIVE_ENTER(env, that, RetainWindow_FUNC); |
8602 |
|
| 8603 |
rc = (jint)RetainWindow((WindowRef)arg0); |
8603 |
#ifndef NO_RepositionWindow |
| 8604 |
OS_NATIVE_EXIT(env, that, RetainWindow_FUNC); |
8604 |
JNIEXPORT jint JNICALL OS_NATIVE(RepositionWindow) |
| 8605 |
return rc; |
8605 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 8606 |
} |
8606 |
{ |
| 8607 |
#endif |
8607 |
jint rc = 0; |
| 8608 |
|
8608 |
OS_NATIVE_ENTER(env, that, RepositionWindow_FUNC); |
| 8609 |
#ifndef NO_RevealDataBrowserItem |
8609 |
rc = (jint)RepositionWindow((WindowRef)arg0, (WindowRef)arg1, arg2); |
| 8610 |
JNIEXPORT jint JNICALL OS_NATIVE(RevealDataBrowserItem) |
8610 |
OS_NATIVE_EXIT(env, that, RepositionWindow_FUNC); |
| 8611 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jbyte arg3) |
8611 |
return rc; |
| 8612 |
{ |
8612 |
} |
| 8613 |
jint rc = 0; |
8613 |
#endif |
| 8614 |
OS_NATIVE_ENTER(env, that, RevealDataBrowserItem_FUNC); |
8614 |
|
| 8615 |
rc = (jint)RevealDataBrowserItem((ControlRef)arg0, (DataBrowserItemID)arg1, (DataBrowserPropertyID)arg2, (DataBrowserRevealOptions)arg3); |
8615 |
#ifndef NO_ReshapeCustomWindow |
| 8616 |
OS_NATIVE_EXIT(env, that, RevealDataBrowserItem_FUNC); |
8616 |
JNIEXPORT jint JNICALL OS_NATIVE(ReshapeCustomWindow) |
| 8617 |
return rc; |
8617 |
(JNIEnv *env, jclass that, jint arg0) |
| 8618 |
} |
8618 |
{ |
| 8619 |
#endif |
8619 |
jint rc = 0; |
| 8620 |
|
8620 |
OS_NATIVE_ENTER(env, that, ReshapeCustomWindow_FUNC); |
| 8621 |
#ifndef NO_RunStandardAlert |
8621 |
rc = (jint)ReshapeCustomWindow((WindowRef)arg0); |
| 8622 |
JNIEXPORT jint JNICALL OS_NATIVE(RunStandardAlert) |
8622 |
OS_NATIVE_EXIT(env, that, ReshapeCustomWindow_FUNC); |
| 8623 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshortArray arg2) |
8623 |
return rc; |
| 8624 |
{ |
8624 |
} |
| 8625 |
jshort *lparg2=NULL; |
8625 |
#endif |
| 8626 |
jint rc = 0; |
8626 |
|
| 8627 |
OS_NATIVE_ENTER(env, that, RunStandardAlert_FUNC); |
8627 |
#ifndef NO_RestoreApplicationDockTileImage |
| 8628 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
8628 |
JNIEXPORT jint JNICALL OS_NATIVE(RestoreApplicationDockTileImage) |
| 8629 |
rc = (jint)RunStandardAlert((DialogRef)arg0, (ModalFilterUPP)arg1, (DialogItemIndex *)lparg2); |
8629 |
(JNIEnv *env, jclass that) |
| 8630 |
fail: |
8630 |
{ |
| 8631 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
8631 |
jint rc = 0; |
| 8632 |
OS_NATIVE_EXIT(env, that, RunStandardAlert_FUNC); |
8632 |
OS_NATIVE_ENTER(env, that, RestoreApplicationDockTileImage_FUNC); |
| 8633 |
return rc; |
8633 |
rc = (jint)RestoreApplicationDockTileImage(); |
| 8634 |
} |
8634 |
OS_NATIVE_EXIT(env, that, RestoreApplicationDockTileImage_FUNC); |
| 8635 |
#endif |
8635 |
return rc; |
| 8636 |
|
8636 |
} |
| 8637 |
#ifndef NO_ScrollRect |
8637 |
#endif |
| 8638 |
JNIEXPORT void JNICALL OS_NATIVE(ScrollRect) |
8638 |
|
| 8639 |
(JNIEnv *env, jclass that, jobject arg0, jshort arg1, jshort arg2, jint arg3) |
8639 |
#ifndef NO_RetainEvent |
| 8640 |
{ |
8640 |
JNIEXPORT jint JNICALL OS_NATIVE(RetainEvent) |
| 8641 |
Rect _arg0, *lparg0=NULL; |
8641 |
(JNIEnv *env, jclass that, jint arg0) |
| 8642 |
OS_NATIVE_ENTER(env, that, ScrollRect_FUNC); |
8642 |
{ |
| 8643 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
8643 |
jint rc = 0; |
| 8644 |
ScrollRect((const Rect *)lparg0, (short)arg1, (short)arg2, (RgnHandle)arg3); |
8644 |
OS_NATIVE_ENTER(env, that, RetainEvent_FUNC); |
| 8645 |
fail: |
8645 |
rc = (jint)RetainEvent((EventRef)arg0); |
| 8646 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
8646 |
OS_NATIVE_EXIT(env, that, RetainEvent_FUNC); |
| 8647 |
OS_NATIVE_EXIT(env, that, ScrollRect_FUNC); |
8647 |
return rc; |
| 8648 |
} |
8648 |
} |
| 8649 |
#endif |
8649 |
#endif |
| 8650 |
|
8650 |
|
| 8651 |
#ifndef NO_SectRect |
8651 |
#ifndef NO_RetainMenu |
| 8652 |
JNIEXPORT jboolean JNICALL OS_NATIVE(SectRect) |
8652 |
JNIEXPORT jint JNICALL OS_NATIVE(RetainMenu) |
| 8653 |
(JNIEnv *env, jclass that, jobject arg0, jobject arg1, jobject arg2) |
8653 |
(JNIEnv *env, jclass that, jint arg0) |
| 8654 |
{ |
8654 |
{ |
| 8655 |
Rect _arg0, *lparg0=NULL; |
8655 |
jint rc = 0; |
| 8656 |
Rect _arg1, *lparg1=NULL; |
8656 |
OS_NATIVE_ENTER(env, that, RetainMenu_FUNC); |
| 8657 |
Rect _arg2, *lparg2=NULL; |
8657 |
rc = (jint)RetainMenu((MenuRef)arg0); |
| 8658 |
jboolean rc = 0; |
8658 |
OS_NATIVE_EXIT(env, that, RetainMenu_FUNC); |
| 8659 |
OS_NATIVE_ENTER(env, that, SectRect_FUNC); |
8659 |
return rc; |
| 8660 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
8660 |
} |
| 8661 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
8661 |
#endif |
| 8662 |
if (arg2) if ((lparg2 = &_arg2) == NULL) goto fail; |
8662 |
|
| 8663 |
rc = (jboolean)SectRect(lparg0, lparg1, lparg2); |
8663 |
#ifndef NO_RetainWindow |
| 8664 |
fail: |
8664 |
JNIEXPORT jint JNICALL OS_NATIVE(RetainWindow) |
| 8665 |
if (arg2 && lparg2) setRectFields(env, arg2, lparg2); |
8665 |
(JNIEnv *env, jclass that, jint arg0) |
| 8666 |
OS_NATIVE_EXIT(env, that, SectRect_FUNC); |
8666 |
{ |
| 8667 |
return rc; |
8667 |
jint rc = 0; |
| 8668 |
} |
8668 |
OS_NATIVE_ENTER(env, that, RetainWindow_FUNC); |
| 8669 |
#endif |
8669 |
rc = (jint)RetainWindow((WindowRef)arg0); |
| 8670 |
|
8670 |
OS_NATIVE_EXIT(env, that, RetainWindow_FUNC); |
| 8671 |
#ifndef NO_SectRgn |
8671 |
return rc; |
| 8672 |
JNIEXPORT void JNICALL OS_NATIVE(SectRgn) |
8672 |
} |
| 8673 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
8673 |
#endif |
| 8674 |
{ |
8674 |
|
| 8675 |
OS_NATIVE_ENTER(env, that, SectRgn_FUNC); |
8675 |
#ifndef NO_RevealDataBrowserItem |
| 8676 |
SectRgn((RgnHandle)arg0, (RgnHandle)arg1, (RgnHandle)arg2); |
8676 |
JNIEXPORT jint JNICALL OS_NATIVE(RevealDataBrowserItem) |
| 8677 |
OS_NATIVE_EXIT(env, that, SectRgn_FUNC); |
8677 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jbyte arg3) |
| 8678 |
} |
8678 |
{ |
| 8679 |
#endif |
8679 |
jint rc = 0; |
| 8680 |
|
8680 |
OS_NATIVE_ENTER(env, that, RevealDataBrowserItem_FUNC); |
| 8681 |
#ifndef NO_SelectWindow |
8681 |
rc = (jint)RevealDataBrowserItem((ControlRef)arg0, (DataBrowserItemID)arg1, (DataBrowserPropertyID)arg2, (DataBrowserRevealOptions)arg3); |
| 8682 |
JNIEXPORT void JNICALL OS_NATIVE(SelectWindow) |
8682 |
OS_NATIVE_EXIT(env, that, RevealDataBrowserItem_FUNC); |
| 8683 |
(JNIEnv *env, jclass that, jint arg0) |
8683 |
return rc; |
| 8684 |
{ |
8684 |
} |
| 8685 |
OS_NATIVE_ENTER(env, that, SelectWindow_FUNC); |
8685 |
#endif |
| 8686 |
SelectWindow((WindowRef)arg0); |
8686 |
|
| 8687 |
OS_NATIVE_EXIT(env, that, SelectWindow_FUNC); |
8687 |
#ifndef NO_RunStandardAlert |
| 8688 |
} |
8688 |
JNIEXPORT jint JNICALL OS_NATIVE(RunStandardAlert) |
| 8689 |
#endif |
8689 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshortArray arg2) |
| 8690 |
|
8690 |
{ |
| 8691 |
#ifndef NO_SendBehind |
8691 |
jshort *lparg2=NULL; |
| 8692 |
JNIEXPORT void JNICALL OS_NATIVE(SendBehind) |
8692 |
jint rc = 0; |
| 8693 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
8693 |
OS_NATIVE_ENTER(env, that, RunStandardAlert_FUNC); |
| 8694 |
{ |
8694 |
if (arg2) if ((lparg2 = (*env)->GetShortArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 8695 |
OS_NATIVE_ENTER(env, that, SendBehind_FUNC); |
8695 |
rc = (jint)RunStandardAlert((DialogRef)arg0, (ModalFilterUPP)arg1, (DialogItemIndex *)lparg2); |
| 8696 |
SendBehind((WindowRef)arg0, (WindowRef)arg1); |
8696 |
fail: |
| 8697 |
OS_NATIVE_EXIT(env, that, SendBehind_FUNC); |
8697 |
if (arg2 && lparg2) (*env)->ReleaseShortArrayElements(env, arg2, lparg2, 0); |
| 8698 |
} |
8698 |
OS_NATIVE_EXIT(env, that, RunStandardAlert_FUNC); |
| 8699 |
#endif |
8699 |
return rc; |
| 8700 |
|
8700 |
} |
| 8701 |
#ifndef NO_SendEventToEventTarget |
8701 |
#endif |
| 8702 |
JNIEXPORT jint JNICALL OS_NATIVE(SendEventToEventTarget) |
8702 |
|
| 8703 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
8703 |
#ifndef NO_ScrollRect |
| 8704 |
{ |
8704 |
JNIEXPORT void JNICALL OS_NATIVE(ScrollRect) |
| 8705 |
jint rc = 0; |
8705 |
(JNIEnv *env, jclass that, jobject arg0, jshort arg1, jshort arg2, jint arg3) |
| 8706 |
OS_NATIVE_ENTER(env, that, SendEventToEventTarget_FUNC); |
8706 |
{ |
| 8707 |
rc = (jint)SendEventToEventTarget((EventRef)arg0, (EventTargetRef)arg1); |
8707 |
Rect _arg0, *lparg0=NULL; |
| 8708 |
OS_NATIVE_EXIT(env, that, SendEventToEventTarget_FUNC); |
8708 |
OS_NATIVE_ENTER(env, that, ScrollRect_FUNC); |
| 8709 |
return rc; |
8709 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 8710 |
} |
8710 |
ScrollRect((const Rect *)lparg0, (short)arg1, (short)arg2, (RgnHandle)arg3); |
| 8711 |
#endif |
8711 |
fail: |
| 8712 |
|
8712 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 8713 |
#ifndef NO_SetApplicationDockTileImage |
8713 |
OS_NATIVE_EXIT(env, that, ScrollRect_FUNC); |
| 8714 |
JNIEXPORT jint JNICALL OS_NATIVE(SetApplicationDockTileImage) |
8714 |
} |
| 8715 |
(JNIEnv *env, jclass that, jint arg0) |
8715 |
#endif |
| 8716 |
{ |
8716 |
|
| 8717 |
jint rc = 0; |
8717 |
#ifndef NO_SectRect |
| 8718 |
OS_NATIVE_ENTER(env, that, SetApplicationDockTileImage_FUNC); |
8718 |
JNIEXPORT jboolean JNICALL OS_NATIVE(SectRect) |
| 8719 |
rc = (jint)SetApplicationDockTileImage((CGImageRef)arg0); |
8719 |
(JNIEnv *env, jclass that, jobject arg0, jobject arg1, jobject arg2) |
| 8720 |
OS_NATIVE_EXIT(env, that, SetApplicationDockTileImage_FUNC); |
8720 |
{ |
| 8721 |
return rc; |
8721 |
Rect _arg0, *lparg0=NULL; |
| 8722 |
} |
8722 |
Rect _arg1, *lparg1=NULL; |
| 8723 |
#endif |
8723 |
Rect _arg2, *lparg2=NULL; |
| 8724 |
|
8724 |
jboolean rc = 0; |
| 8725 |
#ifndef NO_SetBevelButtonContentInfo |
8725 |
OS_NATIVE_ENTER(env, that, SectRect_FUNC); |
| 8726 |
JNIEXPORT jint JNICALL OS_NATIVE(SetBevelButtonContentInfo) |
8726 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 8727 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
8727 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 8728 |
{ |
8728 |
if (arg2) if ((lparg2 = &_arg2) == NULL) goto fail; |
| 8729 |
ControlButtonContentInfo _arg1, *lparg1=NULL; |
8729 |
rc = (jboolean)SectRect(lparg0, lparg1, lparg2); |
| 8730 |
jint rc = 0; |
8730 |
fail: |
| 8731 |
OS_NATIVE_ENTER(env, that, SetBevelButtonContentInfo_FUNC); |
8731 |
if (arg2 && lparg2) setRectFields(env, arg2, lparg2); |
| 8732 |
if (arg1) if ((lparg1 = getControlButtonContentInfoFields(env, arg1, &_arg1)) == NULL) goto fail; |
8732 |
OS_NATIVE_EXIT(env, that, SectRect_FUNC); |
| 8733 |
rc = (jint)SetBevelButtonContentInfo((ControlRef)arg0, (ControlButtonContentInfoPtr)lparg1); |
8733 |
return rc; |
| 8734 |
fail: |
8734 |
} |
| 8735 |
if (arg1 && lparg1) setControlButtonContentInfoFields(env, arg1, lparg1); |
8735 |
#endif |
| 8736 |
OS_NATIVE_EXIT(env, that, SetBevelButtonContentInfo_FUNC); |
8736 |
|
| 8737 |
return rc; |
8737 |
#ifndef NO_SectRgn |
| 8738 |
} |
8738 |
JNIEXPORT void JNICALL OS_NATIVE(SectRgn) |
| 8739 |
#endif |
8739 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 8740 |
|
8740 |
{ |
| 8741 |
#ifndef NO_SetClip |
8741 |
OS_NATIVE_ENTER(env, that, SectRgn_FUNC); |
| 8742 |
JNIEXPORT void JNICALL OS_NATIVE(SetClip) |
8742 |
SectRgn((RgnHandle)arg0, (RgnHandle)arg1, (RgnHandle)arg2); |
| 8743 |
(JNIEnv *env, jclass that, jint arg0) |
8743 |
OS_NATIVE_EXIT(env, that, SectRgn_FUNC); |
| 8744 |
{ |
8744 |
} |
| 8745 |
OS_NATIVE_ENTER(env, that, SetClip_FUNC); |
8745 |
#endif |
| 8746 |
SetClip((RgnHandle)arg0); |
8746 |
|
| 8747 |
OS_NATIVE_EXIT(env, that, SetClip_FUNC); |
8747 |
#ifndef NO_SelectWindow |
| 8748 |
} |
8748 |
JNIEXPORT void JNICALL OS_NATIVE(SelectWindow) |
| 8749 |
#endif |
8749 |
(JNIEnv *env, jclass that, jint arg0) |
| 8750 |
|
8750 |
{ |
| 8751 |
#ifndef NO_SetControl32BitMaximum |
8751 |
OS_NATIVE_ENTER(env, that, SelectWindow_FUNC); |
| 8752 |
JNIEXPORT void JNICALL OS_NATIVE(SetControl32BitMaximum) |
8752 |
SelectWindow((WindowRef)arg0); |
| 8753 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
8753 |
OS_NATIVE_EXIT(env, that, SelectWindow_FUNC); |
| 8754 |
{ |
8754 |
} |
| 8755 |
OS_NATIVE_ENTER(env, that, SetControl32BitMaximum_FUNC); |
8755 |
#endif |
| 8756 |
SetControl32BitMaximum((ControlRef)arg0, (SInt32)arg1); |
8756 |
|
| 8757 |
OS_NATIVE_EXIT(env, that, SetControl32BitMaximum_FUNC); |
8757 |
#ifndef NO_SendBehind |
| 8758 |
} |
8758 |
JNIEXPORT void JNICALL OS_NATIVE(SendBehind) |
| 8759 |
#endif |
8759 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 8760 |
|
8760 |
{ |
| 8761 |
#ifndef NO_SetControl32BitMinimum |
8761 |
OS_NATIVE_ENTER(env, that, SendBehind_FUNC); |
| 8762 |
JNIEXPORT void JNICALL OS_NATIVE(SetControl32BitMinimum) |
8762 |
SendBehind((WindowRef)arg0, (WindowRef)arg1); |
| 8763 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
8763 |
OS_NATIVE_EXIT(env, that, SendBehind_FUNC); |
| 8764 |
{ |
8764 |
} |
| 8765 |
OS_NATIVE_ENTER(env, that, SetControl32BitMinimum_FUNC); |
8765 |
#endif |
| 8766 |
SetControl32BitMinimum((ControlRef)arg0, (SInt32)arg1); |
8766 |
|
| 8767 |
OS_NATIVE_EXIT(env, that, SetControl32BitMinimum_FUNC); |
8767 |
#ifndef NO_SendEventToEventTarget |
| 8768 |
} |
8768 |
JNIEXPORT jint JNICALL OS_NATIVE(SendEventToEventTarget) |
| 8769 |
#endif |
8769 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 8770 |
|
8770 |
{ |
| 8771 |
#ifndef NO_SetControl32BitValue |
8771 |
jint rc = 0; |
| 8772 |
JNIEXPORT void JNICALL OS_NATIVE(SetControl32BitValue) |
8772 |
OS_NATIVE_ENTER(env, that, SendEventToEventTarget_FUNC); |
| 8773 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
8773 |
rc = (jint)SendEventToEventTarget((EventRef)arg0, (EventTargetRef)arg1); |
| 8774 |
{ |
8774 |
OS_NATIVE_EXIT(env, that, SendEventToEventTarget_FUNC); |
| 8775 |
OS_NATIVE_ENTER(env, that, SetControl32BitValue_FUNC); |
8775 |
return rc; |
| 8776 |
SetControl32BitValue((ControlRef)arg0, (SInt32)arg1); |
8776 |
} |
| 8777 |
OS_NATIVE_EXIT(env, that, SetControl32BitValue_FUNC); |
8777 |
#endif |
| 8778 |
} |
8778 |
|
| 8779 |
#endif |
8779 |
#ifndef NO_SetApplicationDockTileImage |
| 8780 |
|
8780 |
JNIEXPORT jint JNICALL OS_NATIVE(SetApplicationDockTileImage) |
| 8781 |
#ifndef NO_SetControlAction |
8781 |
(JNIEnv *env, jclass that, jint arg0) |
| 8782 |
JNIEXPORT void JNICALL OS_NATIVE(SetControlAction) |
8782 |
{ |
| 8783 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
8783 |
jint rc = 0; |
| 8784 |
{ |
8784 |
OS_NATIVE_ENTER(env, that, SetApplicationDockTileImage_FUNC); |
| 8785 |
OS_NATIVE_ENTER(env, that, SetControlAction_FUNC); |
8785 |
rc = (jint)SetApplicationDockTileImage((CGImageRef)arg0); |
| 8786 |
SetControlAction((ControlRef)arg0, (ControlActionUPP)arg1); |
8786 |
OS_NATIVE_EXIT(env, that, SetApplicationDockTileImage_FUNC); |
| 8787 |
OS_NATIVE_EXIT(env, that, SetControlAction_FUNC); |
8787 |
return rc; |
| 8788 |
} |
8788 |
} |
| 8789 |
#endif |
8789 |
#endif |
| 8790 |
|
8790 |
|
| 8791 |
#ifndef NO_SetControlBounds |
8791 |
#ifndef NO_SetBevelButtonContentInfo |
| 8792 |
JNIEXPORT void JNICALL OS_NATIVE(SetControlBounds) |
8792 |
JNIEXPORT jint JNICALL OS_NATIVE(SetBevelButtonContentInfo) |
| 8793 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
8793 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 8794 |
{ |
8794 |
{ |
| 8795 |
Rect _arg1, *lparg1=NULL; |
8795 |
ControlButtonContentInfo _arg1, *lparg1=NULL; |
| 8796 |
OS_NATIVE_ENTER(env, that, SetControlBounds_FUNC); |
8796 |
jint rc = 0; |
| 8797 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
8797 |
OS_NATIVE_ENTER(env, that, SetBevelButtonContentInfo_FUNC); |
| 8798 |
SetControlBounds((ControlRef)arg0, (const Rect *)lparg1); |
8798 |
if (arg1) if ((lparg1 = getControlButtonContentInfoFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 8799 |
fail: |
8799 |
rc = (jint)SetBevelButtonContentInfo((ControlRef)arg0, (ControlButtonContentInfoPtr)lparg1); |
| 8800 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
8800 |
fail: |
| 8801 |
OS_NATIVE_EXIT(env, that, SetControlBounds_FUNC); |
8801 |
if (arg1 && lparg1) setControlButtonContentInfoFields(env, arg1, lparg1); |
| 8802 |
} |
8802 |
OS_NATIVE_EXIT(env, that, SetBevelButtonContentInfo_FUNC); |
| 8803 |
#endif |
8803 |
return rc; |
| 8804 |
|
8804 |
} |
| 8805 |
#ifndef NO_SetControlColorProc |
8805 |
#endif |
| 8806 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlColorProc) |
8806 |
|
| 8807 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
8807 |
#ifndef NO_SetClip |
| 8808 |
{ |
8808 |
JNIEXPORT void JNICALL OS_NATIVE(SetClip) |
| 8809 |
jint rc = 0; |
8809 |
(JNIEnv *env, jclass that, jint arg0) |
| 8810 |
OS_NATIVE_ENTER(env, that, SetControlColorProc_FUNC); |
8810 |
{ |
| 8811 |
rc = (jint)SetControlColorProc((ControlRef)arg0, (ControlColorUPP)arg1); |
8811 |
OS_NATIVE_ENTER(env, that, SetClip_FUNC); |
| 8812 |
OS_NATIVE_EXIT(env, that, SetControlColorProc_FUNC); |
8812 |
SetClip((RgnHandle)arg0); |
| 8813 |
return rc; |
8813 |
OS_NATIVE_EXIT(env, that, SetClip_FUNC); |
| 8814 |
} |
8814 |
} |
| 8815 |
#endif |
8815 |
#endif |
| 8816 |
|
8816 |
|
| 8817 |
#ifndef NO_SetControlData__IIIII |
8817 |
#ifndef NO_SetControl32BitMaximum |
| 8818 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlData__IIIII) |
8818 |
JNIEXPORT void JNICALL OS_NATIVE(SetControl32BitMaximum) |
| 8819 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4) |
8819 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 8820 |
{ |
8820 |
{ |
| 8821 |
jint rc = 0; |
8821 |
OS_NATIVE_ENTER(env, that, SetControl32BitMaximum_FUNC); |
| 8822 |
OS_NATIVE_ENTER(env, that, SetControlData__IIIII_FUNC); |
8822 |
SetControl32BitMaximum((ControlRef)arg0, (SInt32)arg1); |
| 8823 |
rc = (jint)SetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (const void *)arg4); |
8823 |
OS_NATIVE_EXIT(env, that, SetControl32BitMaximum_FUNC); |
| 8824 |
OS_NATIVE_EXIT(env, that, SetControlData__IIIII_FUNC); |
8824 |
} |
| 8825 |
return rc; |
8825 |
#endif |
| 8826 |
} |
8826 |
|
| 8827 |
#endif |
8827 |
#ifndef NO_SetControl32BitMinimum |
| 8828 |
|
8828 |
JNIEXPORT void JNICALL OS_NATIVE(SetControl32BitMinimum) |
| 8829 |
#ifndef NO_SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlButtonContentInfo_2 |
8829 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 8830 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlButtonContentInfo_2) |
8830 |
{ |
| 8831 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jobject arg4) |
8831 |
OS_NATIVE_ENTER(env, that, SetControl32BitMinimum_FUNC); |
| 8832 |
{ |
8832 |
SetControl32BitMinimum((ControlRef)arg0, (SInt32)arg1); |
| 8833 |
ControlButtonContentInfo _arg4, *lparg4=NULL; |
8833 |
OS_NATIVE_EXIT(env, that, SetControl32BitMinimum_FUNC); |
| 8834 |
jint rc = 0; |
8834 |
} |
| 8835 |
OS_NATIVE_ENTER(env, that, SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlButtonContentInfo_2_FUNC); |
8835 |
#endif |
| 8836 |
if (arg4) if ((lparg4 = getControlButtonContentInfoFields(env, arg4, &_arg4)) == NULL) goto fail; |
8836 |
|
| 8837 |
rc = (jint)SetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (const void *)lparg4); |
8837 |
#ifndef NO_SetControl32BitValue |
| 8838 |
fail: |
8838 |
JNIEXPORT void JNICALL OS_NATIVE(SetControl32BitValue) |
| 8839 |
if (arg4 && lparg4) setControlButtonContentInfoFields(env, arg4, lparg4); |
8839 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 8840 |
OS_NATIVE_EXIT(env, that, SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlButtonContentInfo_2_FUNC); |
8840 |
{ |
| 8841 |
return rc; |
8841 |
OS_NATIVE_ENTER(env, that, SetControl32BitValue_FUNC); |
| 8842 |
} |
8842 |
SetControl32BitValue((ControlRef)arg0, (SInt32)arg1); |
| 8843 |
#endif |
8843 |
OS_NATIVE_EXIT(env, that, SetControl32BitValue_FUNC); |
| 8844 |
|
8844 |
} |
| 8845 |
#ifndef NO_SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlTabInfoRecV1_2 |
8845 |
#endif |
| 8846 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlTabInfoRecV1_2) |
8846 |
|
| 8847 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jobject arg4) |
8847 |
#ifndef NO_SetControlAction |
| 8848 |
{ |
8848 |
JNIEXPORT void JNICALL OS_NATIVE(SetControlAction) |
| 8849 |
ControlTabInfoRecV1 _arg4, *lparg4=NULL; |
8849 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 8850 |
jint rc = 0; |
8850 |
{ |
| 8851 |
OS_NATIVE_ENTER(env, that, SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlTabInfoRecV1_2_FUNC); |
8851 |
OS_NATIVE_ENTER(env, that, SetControlAction_FUNC); |
| 8852 |
if (arg4) if ((lparg4 = getControlTabInfoRecV1Fields(env, arg4, &_arg4)) == NULL) goto fail; |
8852 |
SetControlAction((ControlRef)arg0, (ControlActionUPP)arg1); |
| 8853 |
rc = (jint)SetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (const void *)lparg4); |
8853 |
OS_NATIVE_EXIT(env, that, SetControlAction_FUNC); |
| 8854 |
fail: |
8854 |
} |
| 8855 |
if (arg4 && lparg4) setControlTabInfoRecV1Fields(env, arg4, lparg4); |
8855 |
#endif |
| 8856 |
OS_NATIVE_EXIT(env, that, SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlTabInfoRecV1_2_FUNC); |
8856 |
|
| 8857 |
return rc; |
8857 |
#ifndef NO_SetControlBounds |
| 8858 |
} |
8858 |
JNIEXPORT void JNICALL OS_NATIVE(SetControlBounds) |
| 8859 |
#endif |
8859 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 8860 |
|
8860 |
{ |
| 8861 |
#ifndef NO_SetControlData__IIIILorg_eclipse_swt_internal_carbon_Rect_2 |
8861 |
Rect _arg1, *lparg1=NULL; |
| 8862 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlData__IIIILorg_eclipse_swt_internal_carbon_Rect_2) |
8862 |
OS_NATIVE_ENTER(env, that, SetControlBounds_FUNC); |
| 8863 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jobject arg4) |
8863 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 8864 |
{ |
8864 |
SetControlBounds((ControlRef)arg0, (const Rect *)lparg1); |
| 8865 |
Rect _arg4, *lparg4=NULL; |
8865 |
fail: |
| 8866 |
jint rc = 0; |
8866 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 8867 |
OS_NATIVE_ENTER(env, that, SetControlData__IIIILorg_eclipse_swt_internal_carbon_Rect_2_FUNC); |
8867 |
OS_NATIVE_EXIT(env, that, SetControlBounds_FUNC); |
| 8868 |
if (arg4) if ((lparg4 = getRectFields(env, arg4, &_arg4)) == NULL) goto fail; |
8868 |
} |
| 8869 |
rc = (jint)SetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (const void *)lparg4); |
8869 |
#endif |
| 8870 |
fail: |
8870 |
|
| 8871 |
if (arg4 && lparg4) setRectFields(env, arg4, lparg4); |
8871 |
#ifndef NO_SetControlColorProc |
| 8872 |
OS_NATIVE_EXIT(env, that, SetControlData__IIIILorg_eclipse_swt_internal_carbon_Rect_2_FUNC); |
8872 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlColorProc) |
| 8873 |
return rc; |
8873 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 8874 |
} |
8874 |
{ |
| 8875 |
#endif |
8875 |
jint rc = 0; |
| 8876 |
|
8876 |
OS_NATIVE_ENTER(env, that, SetControlColorProc_FUNC); |
| 8877 |
#ifndef NO_SetControlData__IIII_3B |
8877 |
rc = (jint)SetControlColorProc((ControlRef)arg0, (ControlColorUPP)arg1); |
| 8878 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlData__IIII_3B) |
8878 |
OS_NATIVE_EXIT(env, that, SetControlColorProc_FUNC); |
| 8879 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jbyteArray arg4) |
8879 |
return rc; |
| 8880 |
{ |
8880 |
} |
| 8881 |
jbyte *lparg4=NULL; |
8881 |
#endif |
| 8882 |
jint rc = 0; |
8882 |
|
| 8883 |
OS_NATIVE_ENTER(env, that, SetControlData__IIII_3B_FUNC); |
8883 |
#ifndef NO_SetControlData__IIIII |
| 8884 |
if (arg4) if ((lparg4 = (*env)->GetByteArrayElements(env, arg4, NULL)) == NULL) goto fail; |
8884 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlData__IIIII) |
| 8885 |
rc = (jint)SetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (const void *)lparg4); |
8885 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4) |
| 8886 |
fail: |
8886 |
{ |
| 8887 |
if (arg4 && lparg4) (*env)->ReleaseByteArrayElements(env, arg4, lparg4, 0); |
8887 |
jint rc = 0; |
| 8888 |
OS_NATIVE_EXIT(env, that, SetControlData__IIII_3B_FUNC); |
8888 |
OS_NATIVE_ENTER(env, that, SetControlData__IIIII_FUNC); |
| 8889 |
return rc; |
8889 |
rc = (jint)SetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (const void *)arg4); |
| 8890 |
} |
8890 |
OS_NATIVE_EXIT(env, that, SetControlData__IIIII_FUNC); |
| 8891 |
#endif |
8891 |
return rc; |
| 8892 |
|
8892 |
} |
| 8893 |
#ifndef NO_SetControlData__IIII_3I |
8893 |
#endif |
| 8894 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlData__IIII_3I) |
8894 |
|
| 8895 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4) |
8895 |
#ifndef NO_SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlButtonContentInfo_2 |
| 8896 |
{ |
8896 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlButtonContentInfo_2) |
| 8897 |
jint *lparg4=NULL; |
8897 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jobject arg4) |
| 8898 |
jint rc = 0; |
8898 |
{ |
| 8899 |
OS_NATIVE_ENTER(env, that, SetControlData__IIII_3I_FUNC); |
8899 |
ControlButtonContentInfo _arg4, *lparg4=NULL; |
| 8900 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
8900 |
jint rc = 0; |
| 8901 |
rc = (jint)SetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (const void *)lparg4); |
8901 |
OS_NATIVE_ENTER(env, that, SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlButtonContentInfo_2_FUNC); |
| 8902 |
fail: |
8902 |
if (arg4) if ((lparg4 = getControlButtonContentInfoFields(env, arg4, &_arg4)) == NULL) goto fail; |
| 8903 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
8903 |
rc = (jint)SetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (const void *)lparg4); |
| 8904 |
OS_NATIVE_EXIT(env, that, SetControlData__IIII_3I_FUNC); |
8904 |
fail: |
| 8905 |
return rc; |
8905 |
if (arg4 && lparg4) setControlButtonContentInfoFields(env, arg4, lparg4); |
| 8906 |
} |
8906 |
OS_NATIVE_EXIT(env, that, SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlButtonContentInfo_2_FUNC); |
| 8907 |
#endif |
8907 |
return rc; |
| 8908 |
|
8908 |
} |
| 8909 |
#ifndef NO_SetControlData__IIII_3S |
8909 |
#endif |
| 8910 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlData__IIII_3S) |
8910 |
|
| 8911 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jshortArray arg4) |
8911 |
#ifndef NO_SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlTabInfoRecV1_2 |
| 8912 |
{ |
8912 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlTabInfoRecV1_2) |
| 8913 |
jshort *lparg4=NULL; |
8913 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jobject arg4) |
| 8914 |
jint rc = 0; |
8914 |
{ |
| 8915 |
OS_NATIVE_ENTER(env, that, SetControlData__IIII_3S_FUNC); |
8915 |
ControlTabInfoRecV1 _arg4, *lparg4=NULL; |
| 8916 |
if (arg4) if ((lparg4 = (*env)->GetShortArrayElements(env, arg4, NULL)) == NULL) goto fail; |
8916 |
jint rc = 0; |
| 8917 |
rc = (jint)SetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (const void *)lparg4); |
8917 |
OS_NATIVE_ENTER(env, that, SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlTabInfoRecV1_2_FUNC); |
| 8918 |
fail: |
8918 |
if (arg4) if ((lparg4 = getControlTabInfoRecV1Fields(env, arg4, &_arg4)) == NULL) goto fail; |
| 8919 |
if (arg4 && lparg4) (*env)->ReleaseShortArrayElements(env, arg4, lparg4, 0); |
8919 |
rc = (jint)SetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (const void *)lparg4); |
| 8920 |
OS_NATIVE_EXIT(env, that, SetControlData__IIII_3S_FUNC); |
8920 |
fail: |
| 8921 |
return rc; |
8921 |
if (arg4 && lparg4) setControlTabInfoRecV1Fields(env, arg4, lparg4); |
| 8922 |
} |
8922 |
OS_NATIVE_EXIT(env, that, SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlTabInfoRecV1_2_FUNC); |
| 8923 |
#endif |
8923 |
return rc; |
| 8924 |
|
8924 |
} |
| 8925 |
#ifndef NO_SetControlFontStyle |
8925 |
#endif |
| 8926 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlFontStyle) |
8926 |
|
| 8927 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
8927 |
#ifndef NO_SetControlData__IIIILorg_eclipse_swt_internal_carbon_Rect_2 |
| 8928 |
{ |
8928 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlData__IIIILorg_eclipse_swt_internal_carbon_Rect_2) |
| 8929 |
ControlFontStyleRec _arg1, *lparg1=NULL; |
8929 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jobject arg4) |
| 8930 |
jint rc = 0; |
8930 |
{ |
| 8931 |
OS_NATIVE_ENTER(env, that, SetControlFontStyle_FUNC); |
8931 |
Rect _arg4, *lparg4=NULL; |
| 8932 |
if (arg1) if ((lparg1 = getControlFontStyleRecFields(env, arg1, &_arg1)) == NULL) goto fail; |
8932 |
jint rc = 0; |
| 8933 |
rc = (jint)SetControlFontStyle((ControlRef)arg0, (const ControlFontStyleRec *)lparg1); |
8933 |
OS_NATIVE_ENTER(env, that, SetControlData__IIIILorg_eclipse_swt_internal_carbon_Rect_2_FUNC); |
| 8934 |
fail: |
8934 |
if (arg4) if ((lparg4 = getRectFields(env, arg4, &_arg4)) == NULL) goto fail; |
| 8935 |
if (arg1 && lparg1) setControlFontStyleRecFields(env, arg1, lparg1); |
8935 |
rc = (jint)SetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (const void *)lparg4); |
| 8936 |
OS_NATIVE_EXIT(env, that, SetControlFontStyle_FUNC); |
8936 |
fail: |
| 8937 |
return rc; |
8937 |
if (arg4 && lparg4) setRectFields(env, arg4, lparg4); |
| 8938 |
} |
8938 |
OS_NATIVE_EXIT(env, that, SetControlData__IIIILorg_eclipse_swt_internal_carbon_Rect_2_FUNC); |
| 8939 |
#endif |
8939 |
return rc; |
| 8940 |
|
8940 |
} |
| 8941 |
#ifndef NO_SetControlPopupMenuHandle |
8941 |
#endif |
| 8942 |
JNIEXPORT void JNICALL OS_NATIVE(SetControlPopupMenuHandle) |
8942 |
|
| 8943 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
8943 |
#ifndef NO_SetControlData__IIII_3B |
| 8944 |
{ |
8944 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlData__IIII_3B) |
| 8945 |
OS_NATIVE_ENTER(env, that, SetControlPopupMenuHandle_FUNC); |
8945 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jbyteArray arg4) |
| 8946 |
SetControlPopupMenuHandle((ControlRef)arg0, (MenuRef)arg1); |
8946 |
{ |
| 8947 |
OS_NATIVE_EXIT(env, that, SetControlPopupMenuHandle_FUNC); |
8947 |
jbyte *lparg4=NULL; |
| 8948 |
} |
8948 |
jint rc = 0; |
| 8949 |
#endif |
8949 |
OS_NATIVE_ENTER(env, that, SetControlData__IIII_3B_FUNC); |
| 8950 |
|
8950 |
if (arg4) if ((lparg4 = (*env)->GetByteArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 8951 |
#ifndef NO_SetControlProperty |
8951 |
rc = (jint)SetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (const void *)lparg4); |
| 8952 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlProperty) |
8952 |
fail: |
| 8953 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4) |
8953 |
if (arg4 && lparg4) (*env)->ReleaseByteArrayElements(env, arg4, lparg4, 0); |
| 8954 |
{ |
8954 |
OS_NATIVE_EXIT(env, that, SetControlData__IIII_3B_FUNC); |
| 8955 |
jint *lparg4=NULL; |
8955 |
return rc; |
| 8956 |
jint rc = 0; |
8956 |
} |
| 8957 |
OS_NATIVE_ENTER(env, that, SetControlProperty_FUNC); |
8957 |
#endif |
| 8958 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
8958 |
|
| 8959 |
rc = (jint)SetControlProperty((ControlRef)arg0, arg1, arg2, arg3, (const void *)lparg4); |
8959 |
#ifndef NO_SetControlData__IIII_3I |
| 8960 |
fail: |
8960 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlData__IIII_3I) |
| 8961 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
8961 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4) |
| 8962 |
OS_NATIVE_EXIT(env, that, SetControlProperty_FUNC); |
8962 |
{ |
| 8963 |
return rc; |
8963 |
jint *lparg4=NULL; |
| 8964 |
} |
8964 |
jint rc = 0; |
| 8965 |
#endif |
8965 |
OS_NATIVE_ENTER(env, that, SetControlData__IIII_3I_FUNC); |
| 8966 |
|
8966 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 8967 |
#ifndef NO_SetControlReference |
8967 |
rc = (jint)SetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (const void *)lparg4); |
| 8968 |
JNIEXPORT void JNICALL OS_NATIVE(SetControlReference) |
8968 |
fail: |
| 8969 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
8969 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 8970 |
{ |
8970 |
OS_NATIVE_EXIT(env, that, SetControlData__IIII_3I_FUNC); |
| 8971 |
OS_NATIVE_ENTER(env, that, SetControlReference_FUNC); |
8971 |
return rc; |
| 8972 |
SetControlReference((ControlRef)arg0, (SInt32)arg1); |
8972 |
} |
| 8973 |
OS_NATIVE_EXIT(env, that, SetControlReference_FUNC); |
8973 |
#endif |
| 8974 |
} |
8974 |
|
| 8975 |
#endif |
8975 |
#ifndef NO_SetControlData__IIII_3S |
| 8976 |
|
8976 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlData__IIII_3S) |
| 8977 |
#ifndef NO_SetControlTitleWithCFString |
8977 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jshortArray arg4) |
| 8978 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlTitleWithCFString) |
8978 |
{ |
| 8979 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
8979 |
jshort *lparg4=NULL; |
| 8980 |
{ |
8980 |
jint rc = 0; |
| 8981 |
jint rc = 0; |
8981 |
OS_NATIVE_ENTER(env, that, SetControlData__IIII_3S_FUNC); |
| 8982 |
OS_NATIVE_ENTER(env, that, SetControlTitleWithCFString_FUNC); |
8982 |
if (arg4) if ((lparg4 = (*env)->GetShortArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 8983 |
rc = (jint)SetControlTitleWithCFString((ControlRef)arg0, (CFStringRef)arg1); |
8983 |
rc = (jint)SetControlData((ControlRef)arg0, (ControlPartCode)arg1, (ResType)arg2, (Size)arg3, (const void *)lparg4); |
| 8984 |
OS_NATIVE_EXIT(env, that, SetControlTitleWithCFString_FUNC); |
8984 |
fail: |
| 8985 |
return rc; |
8985 |
if (arg4 && lparg4) (*env)->ReleaseShortArrayElements(env, arg4, lparg4, 0); |
| 8986 |
} |
8986 |
OS_NATIVE_EXIT(env, that, SetControlData__IIII_3S_FUNC); |
| 8987 |
#endif |
8987 |
return rc; |
| 8988 |
|
8988 |
} |
| 8989 |
#ifndef NO_SetControlViewSize |
8989 |
#endif |
| 8990 |
JNIEXPORT void JNICALL OS_NATIVE(SetControlViewSize) |
8990 |
|
| 8991 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
8991 |
#ifndef NO_SetControlFontStyle |
| 8992 |
{ |
8992 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlFontStyle) |
| 8993 |
OS_NATIVE_ENTER(env, that, SetControlViewSize_FUNC); |
8993 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 8994 |
SetControlViewSize((ControlRef)arg0, (SInt32)arg1); |
8994 |
{ |
| 8995 |
OS_NATIVE_EXIT(env, that, SetControlViewSize_FUNC); |
8995 |
ControlFontStyleRec _arg1, *lparg1=NULL; |
| 8996 |
} |
8996 |
jint rc = 0; |
| 8997 |
#endif |
8997 |
OS_NATIVE_ENTER(env, that, SetControlFontStyle_FUNC); |
| 8998 |
|
8998 |
if (arg1) if ((lparg1 = getControlFontStyleRecFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 8999 |
#ifndef NO_SetControlVisibility |
8999 |
rc = (jint)SetControlFontStyle((ControlRef)arg0, (const ControlFontStyleRec *)lparg1); |
| 9000 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlVisibility) |
9000 |
fail: |
| 9001 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1, jboolean arg2) |
9001 |
if (arg1 && lparg1) setControlFontStyleRecFields(env, arg1, lparg1); |
| 9002 |
{ |
9002 |
OS_NATIVE_EXIT(env, that, SetControlFontStyle_FUNC); |
| 9003 |
jint rc = 0; |
9003 |
return rc; |
| 9004 |
OS_NATIVE_ENTER(env, that, SetControlVisibility_FUNC); |
9004 |
} |
| 9005 |
rc = (jint)SetControlVisibility((ControlRef)arg0, arg1, arg2); |
9005 |
#endif |
| 9006 |
OS_NATIVE_EXIT(env, that, SetControlVisibility_FUNC); |
9006 |
|
| 9007 |
return rc; |
9007 |
#ifndef NO_SetControlPopupMenuHandle |
| 9008 |
} |
9008 |
JNIEXPORT void JNICALL OS_NATIVE(SetControlPopupMenuHandle) |
| 9009 |
#endif |
9009 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 9010 |
|
9010 |
{ |
| 9011 |
#ifndef NO_SetCursor |
9011 |
OS_NATIVE_ENTER(env, that, SetControlPopupMenuHandle_FUNC); |
| 9012 |
JNIEXPORT void JNICALL OS_NATIVE(SetCursor) |
9012 |
SetControlPopupMenuHandle((ControlRef)arg0, (MenuRef)arg1); |
| 9013 |
(JNIEnv *env, jclass that, jint arg0) |
9013 |
OS_NATIVE_EXIT(env, that, SetControlPopupMenuHandle_FUNC); |
| 9014 |
{ |
9014 |
} |
| 9015 |
OS_NATIVE_ENTER(env, that, SetCursor_FUNC); |
9015 |
#endif |
| 9016 |
SetCursor((const Cursor *)arg0); |
9016 |
|
| 9017 |
OS_NATIVE_EXIT(env, that, SetCursor_FUNC); |
9017 |
#ifndef NO_SetControlProperty |
| 9018 |
} |
9018 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlProperty) |
| 9019 |
#endif |
9019 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4) |
| 9020 |
|
9020 |
{ |
| 9021 |
#ifndef NO_SetDataBrowserCallbacks |
9021 |
jint *lparg4=NULL; |
| 9022 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserCallbacks) |
9022 |
jint rc = 0; |
| 9023 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
9023 |
OS_NATIVE_ENTER(env, that, SetControlProperty_FUNC); |
| 9024 |
{ |
9024 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 9025 |
DataBrowserCallbacks _arg1={0}, *lparg1=NULL; |
9025 |
rc = (jint)SetControlProperty((ControlRef)arg0, arg1, arg2, arg3, (const void *)lparg4); |
| 9026 |
jint rc = 0; |
9026 |
fail: |
| 9027 |
OS_NATIVE_ENTER(env, that, SetDataBrowserCallbacks_FUNC); |
9027 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 9028 |
if (arg1) if ((lparg1 = getDataBrowserCallbacksFields(env, arg1, &_arg1)) == NULL) goto fail; |
9028 |
OS_NATIVE_EXIT(env, that, SetControlProperty_FUNC); |
| 9029 |
rc = (jint)SetDataBrowserCallbacks((ControlRef)arg0, (const DataBrowserCallbacks *)lparg1); |
9029 |
return rc; |
| 9030 |
fail: |
9030 |
} |
| 9031 |
if (arg1 && lparg1) setDataBrowserCallbacksFields(env, arg1, lparg1); |
9031 |
#endif |
| 9032 |
OS_NATIVE_EXIT(env, that, SetDataBrowserCallbacks_FUNC); |
9032 |
|
| 9033 |
return rc; |
9033 |
#ifndef NO_SetControlReference |
| 9034 |
} |
9034 |
JNIEXPORT void JNICALL OS_NATIVE(SetControlReference) |
| 9035 |
#endif |
9035 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 9036 |
|
9036 |
{ |
| 9037 |
#ifndef NO_SetDataBrowserCustomCallbacks |
9037 |
OS_NATIVE_ENTER(env, that, SetControlReference_FUNC); |
| 9038 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserCustomCallbacks) |
9038 |
SetControlReference((ControlRef)arg0, (SInt32)arg1); |
| 9039 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
9039 |
OS_NATIVE_EXIT(env, that, SetControlReference_FUNC); |
| 9040 |
{ |
9040 |
} |
| 9041 |
DataBrowserCustomCallbacks _arg1, *lparg1=NULL; |
9041 |
#endif |
| 9042 |
jint rc = 0; |
9042 |
|
| 9043 |
OS_NATIVE_ENTER(env, that, SetDataBrowserCustomCallbacks_FUNC); |
9043 |
#ifndef NO_SetControlTitleWithCFString |
| 9044 |
if (arg1) if ((lparg1 = getDataBrowserCustomCallbacksFields(env, arg1, &_arg1)) == NULL) goto fail; |
9044 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlTitleWithCFString) |
| 9045 |
rc = (jint)SetDataBrowserCustomCallbacks((ControlRef)arg0, lparg1); |
9045 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 9046 |
fail: |
9046 |
{ |
| 9047 |
if (arg1 && lparg1) setDataBrowserCustomCallbacksFields(env, arg1, lparg1); |
9047 |
jint rc = 0; |
| 9048 |
OS_NATIVE_EXIT(env, that, SetDataBrowserCustomCallbacks_FUNC); |
9048 |
OS_NATIVE_ENTER(env, that, SetControlTitleWithCFString_FUNC); |
| 9049 |
return rc; |
9049 |
rc = (jint)SetControlTitleWithCFString((ControlRef)arg0, (CFStringRef)arg1); |
| 9050 |
} |
9050 |
OS_NATIVE_EXIT(env, that, SetControlTitleWithCFString_FUNC); |
| 9051 |
#endif |
9051 |
return rc; |
| 9052 |
|
9052 |
} |
| 9053 |
#ifndef NO_SetDataBrowserHasScrollBars |
9053 |
#endif |
| 9054 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserHasScrollBars) |
9054 |
|
| 9055 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1, jboolean arg2) |
9055 |
#ifndef NO_SetControlViewSize |
| 9056 |
{ |
9056 |
JNIEXPORT void JNICALL OS_NATIVE(SetControlViewSize) |
| 9057 |
jint rc = 0; |
9057 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 9058 |
OS_NATIVE_ENTER(env, that, SetDataBrowserHasScrollBars_FUNC); |
9058 |
{ |
| 9059 |
rc = (jint)SetDataBrowserHasScrollBars((ControlRef)arg0, (Boolean)arg1, (Boolean)arg2); |
9059 |
OS_NATIVE_ENTER(env, that, SetControlViewSize_FUNC); |
| 9060 |
OS_NATIVE_EXIT(env, that, SetDataBrowserHasScrollBars_FUNC); |
9060 |
SetControlViewSize((ControlRef)arg0, (SInt32)arg1); |
| 9061 |
return rc; |
9061 |
OS_NATIVE_EXIT(env, that, SetControlViewSize_FUNC); |
| 9062 |
} |
9062 |
} |
| 9063 |
#endif |
9063 |
#endif |
| 9064 |
|
9064 |
|
| 9065 |
#ifndef NO_SetDataBrowserItemDataBooleanValue |
9065 |
#ifndef NO_SetControlVisibility |
| 9066 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserItemDataBooleanValue) |
9066 |
JNIEXPORT jint JNICALL OS_NATIVE(SetControlVisibility) |
| 9067 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
9067 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1, jboolean arg2) |
| 9068 |
{ |
9068 |
{ |
| 9069 |
jint rc = 0; |
9069 |
jint rc = 0; |
| 9070 |
OS_NATIVE_ENTER(env, that, SetDataBrowserItemDataBooleanValue_FUNC); |
9070 |
OS_NATIVE_ENTER(env, that, SetControlVisibility_FUNC); |
| 9071 |
rc = (jint)SetDataBrowserItemDataBooleanValue((DataBrowserItemDataRef)arg0, (Boolean)arg1); |
9071 |
rc = (jint)SetControlVisibility((ControlRef)arg0, arg1, arg2); |
| 9072 |
OS_NATIVE_EXIT(env, that, SetDataBrowserItemDataBooleanValue_FUNC); |
9072 |
OS_NATIVE_EXIT(env, that, SetControlVisibility_FUNC); |
| 9073 |
return rc; |
9073 |
return rc; |
| 9074 |
} |
9074 |
} |
| 9075 |
#endif |
9075 |
#endif |
| 9076 |
|
9076 |
|
| 9077 |
#ifndef NO_SetDataBrowserItemDataButtonValue |
9077 |
#ifndef NO_SetCursor |
| 9078 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserItemDataButtonValue) |
9078 |
JNIEXPORT void JNICALL OS_NATIVE(SetCursor) |
| 9079 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1) |
9079 |
(JNIEnv *env, jclass that, jint arg0) |
| 9080 |
{ |
9080 |
{ |
| 9081 |
jint rc = 0; |
9081 |
OS_NATIVE_ENTER(env, that, SetCursor_FUNC); |
| 9082 |
OS_NATIVE_ENTER(env, that, SetDataBrowserItemDataButtonValue_FUNC); |
9082 |
SetCursor((const Cursor *)arg0); |
| 9083 |
rc = (jint)SetDataBrowserItemDataButtonValue((DataBrowserItemDataRef)arg0, (ThemeButtonValue)arg1); |
9083 |
OS_NATIVE_EXIT(env, that, SetCursor_FUNC); |
| 9084 |
OS_NATIVE_EXIT(env, that, SetDataBrowserItemDataButtonValue_FUNC); |
9084 |
} |
| 9085 |
return rc; |
9085 |
#endif |
| 9086 |
} |
9086 |
|
| 9087 |
#endif |
9087 |
#ifndef NO_SetDataBrowserCallbacks |
| 9088 |
|
9088 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserCallbacks) |
| 9089 |
#ifndef NO_SetDataBrowserItemDataIcon |
9089 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 9090 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserItemDataIcon) |
9090 |
{ |
| 9091 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
9091 |
DataBrowserCallbacks _arg1={0}, *lparg1=NULL; |
| 9092 |
{ |
9092 |
jint rc = 0; |
| 9093 |
jint rc = 0; |
9093 |
OS_NATIVE_ENTER(env, that, SetDataBrowserCallbacks_FUNC); |
| 9094 |
OS_NATIVE_ENTER(env, that, SetDataBrowserItemDataIcon_FUNC); |
9094 |
if (arg1) if ((lparg1 = getDataBrowserCallbacksFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 9095 |
rc = (jint)SetDataBrowserItemDataIcon((DataBrowserItemDataRef)arg0, (IconRef)arg1); |
9095 |
rc = (jint)SetDataBrowserCallbacks((ControlRef)arg0, (const DataBrowserCallbacks *)lparg1); |
| 9096 |
OS_NATIVE_EXIT(env, that, SetDataBrowserItemDataIcon_FUNC); |
9096 |
fail: |
| 9097 |
return rc; |
9097 |
if (arg1 && lparg1) setDataBrowserCallbacksFields(env, arg1, lparg1); |
| 9098 |
} |
9098 |
OS_NATIVE_EXIT(env, that, SetDataBrowserCallbacks_FUNC); |
| 9099 |
#endif |
9099 |
return rc; |
| 9100 |
|
9100 |
} |
| 9101 |
#ifndef NO_SetDataBrowserItemDataItemID |
9101 |
#endif |
| 9102 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserItemDataItemID) |
9102 |
|
| 9103 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
9103 |
#ifndef NO_SetDataBrowserCustomCallbacks |
| 9104 |
{ |
9104 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserCustomCallbacks) |
| 9105 |
jint rc = 0; |
9105 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 9106 |
OS_NATIVE_ENTER(env, that, SetDataBrowserItemDataItemID_FUNC); |
9106 |
{ |
| 9107 |
rc = (jint)SetDataBrowserItemDataItemID((DataBrowserItemDataRef)arg0, (DataBrowserItemID)arg1); |
9107 |
DataBrowserCustomCallbacks _arg1, *lparg1=NULL; |
| 9108 |
OS_NATIVE_EXIT(env, that, SetDataBrowserItemDataItemID_FUNC); |
9108 |
jint rc = 0; |
| 9109 |
return rc; |
9109 |
OS_NATIVE_ENTER(env, that, SetDataBrowserCustomCallbacks_FUNC); |
| 9110 |
} |
9110 |
if (arg1) if ((lparg1 = getDataBrowserCustomCallbacksFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 9111 |
#endif |
9111 |
rc = (jint)SetDataBrowserCustomCallbacks((ControlRef)arg0, lparg1); |
| 9112 |
|
9112 |
fail: |
| 9113 |
#ifndef NO_SetDataBrowserItemDataText |
9113 |
if (arg1 && lparg1) setDataBrowserCustomCallbacksFields(env, arg1, lparg1); |
| 9114 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserItemDataText) |
9114 |
OS_NATIVE_EXIT(env, that, SetDataBrowserCustomCallbacks_FUNC); |
| 9115 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
9115 |
return rc; |
| 9116 |
{ |
9116 |
} |
| 9117 |
jint rc = 0; |
9117 |
#endif |
| 9118 |
OS_NATIVE_ENTER(env, that, SetDataBrowserItemDataText_FUNC); |
9118 |
|
| 9119 |
rc = (jint)SetDataBrowserItemDataText((DataBrowserItemDataRef)arg0, (CFStringRef)arg1); |
9119 |
#ifndef NO_SetDataBrowserHasScrollBars |
| 9120 |
OS_NATIVE_EXIT(env, that, SetDataBrowserItemDataText_FUNC); |
9120 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserHasScrollBars) |
| 9121 |
return rc; |
9121 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1, jboolean arg2) |
| 9122 |
} |
9122 |
{ |
| 9123 |
#endif |
9123 |
jint rc = 0; |
| 9124 |
|
9124 |
OS_NATIVE_ENTER(env, that, SetDataBrowserHasScrollBars_FUNC); |
| 9125 |
#ifndef NO_SetDataBrowserListViewDisclosureColumn |
9125 |
rc = (jint)SetDataBrowserHasScrollBars((ControlRef)arg0, (Boolean)arg1, (Boolean)arg2); |
| 9126 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserListViewDisclosureColumn) |
9126 |
OS_NATIVE_EXIT(env, that, SetDataBrowserHasScrollBars_FUNC); |
| 9127 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2) |
9127 |
return rc; |
| 9128 |
{ |
9128 |
} |
| 9129 |
jint rc = 0; |
9129 |
#endif |
| 9130 |
OS_NATIVE_ENTER(env, that, SetDataBrowserListViewDisclosureColumn_FUNC); |
9130 |
|
| 9131 |
rc = (jint)SetDataBrowserListViewDisclosureColumn((ControlRef)arg0, (DataBrowserTableViewColumnID)arg1, (Boolean)arg2); |
9131 |
#ifndef NO_SetDataBrowserItemDataBooleanValue |
| 9132 |
OS_NATIVE_EXIT(env, that, SetDataBrowserListViewDisclosureColumn_FUNC); |
9132 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserItemDataBooleanValue) |
| 9133 |
return rc; |
9133 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
| 9134 |
} |
9134 |
{ |
| 9135 |
#endif |
9135 |
jint rc = 0; |
| 9136 |
|
9136 |
OS_NATIVE_ENTER(env, that, SetDataBrowserItemDataBooleanValue_FUNC); |
| 9137 |
#ifndef NO_SetDataBrowserListViewHeaderBtnHeight |
9137 |
rc = (jint)SetDataBrowserItemDataBooleanValue((DataBrowserItemDataRef)arg0, (Boolean)arg1); |
| 9138 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserListViewHeaderBtnHeight) |
9138 |
OS_NATIVE_EXIT(env, that, SetDataBrowserItemDataBooleanValue_FUNC); |
| 9139 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1) |
9139 |
return rc; |
| 9140 |
{ |
9140 |
} |
| 9141 |
jint rc = 0; |
9141 |
#endif |
| 9142 |
OS_NATIVE_ENTER(env, that, SetDataBrowserListViewHeaderBtnHeight_FUNC); |
9142 |
|
| 9143 |
rc = (jint)SetDataBrowserListViewHeaderBtnHeight((ControlRef)arg0, (UInt16)arg1); |
9143 |
#ifndef NO_SetDataBrowserItemDataButtonValue |
| 9144 |
OS_NATIVE_EXIT(env, that, SetDataBrowserListViewHeaderBtnHeight_FUNC); |
9144 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserItemDataButtonValue) |
| 9145 |
return rc; |
9145 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1) |
| 9146 |
} |
9146 |
{ |
| 9147 |
#endif |
9147 |
jint rc = 0; |
| 9148 |
|
9148 |
OS_NATIVE_ENTER(env, that, SetDataBrowserItemDataButtonValue_FUNC); |
| 9149 |
#ifndef NO_SetDataBrowserListViewHeaderDesc |
9149 |
rc = (jint)SetDataBrowserItemDataButtonValue((DataBrowserItemDataRef)arg0, (ThemeButtonValue)arg1); |
| 9150 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserListViewHeaderDesc) |
9150 |
OS_NATIVE_EXIT(env, that, SetDataBrowserItemDataButtonValue_FUNC); |
| 9151 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2) |
9151 |
return rc; |
| 9152 |
{ |
9152 |
} |
| 9153 |
DataBrowserListViewHeaderDesc _arg2, *lparg2=NULL; |
9153 |
#endif |
| 9154 |
jint rc = 0; |
9154 |
|
| 9155 |
OS_NATIVE_ENTER(env, that, SetDataBrowserListViewHeaderDesc_FUNC); |
9155 |
#ifndef NO_SetDataBrowserItemDataIcon |
| 9156 |
if (arg2) if ((lparg2 = getDataBrowserListViewHeaderDescFields(env, arg2, &_arg2)) == NULL) goto fail; |
9156 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserItemDataIcon) |
| 9157 |
rc = (jint)SetDataBrowserListViewHeaderDesc((ControlRef)arg0, arg1, lparg2); |
9157 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 9158 |
fail: |
9158 |
{ |
| 9159 |
if (arg2 && lparg2) setDataBrowserListViewHeaderDescFields(env, arg2, lparg2); |
9159 |
jint rc = 0; |
| 9160 |
OS_NATIVE_EXIT(env, that, SetDataBrowserListViewHeaderDesc_FUNC); |
9160 |
OS_NATIVE_ENTER(env, that, SetDataBrowserItemDataIcon_FUNC); |
| 9161 |
return rc; |
9161 |
rc = (jint)SetDataBrowserItemDataIcon((DataBrowserItemDataRef)arg0, (IconRef)arg1); |
| 9162 |
} |
9162 |
OS_NATIVE_EXIT(env, that, SetDataBrowserItemDataIcon_FUNC); |
| 9163 |
#endif |
9163 |
return rc; |
| 9164 |
|
9164 |
} |
| 9165 |
#ifndef NO_SetDataBrowserScrollPosition |
9165 |
#endif |
| 9166 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserScrollPosition) |
9166 |
|
| 9167 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
9167 |
#ifndef NO_SetDataBrowserItemDataItemID |
| 9168 |
{ |
9168 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserItemDataItemID) |
| 9169 |
jint rc = 0; |
9169 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 9170 |
OS_NATIVE_ENTER(env, that, SetDataBrowserScrollPosition_FUNC); |
9170 |
{ |
| 9171 |
rc = (jint)SetDataBrowserScrollPosition((ControlRef)arg0, (UInt32)arg1, (UInt32)arg2); |
9171 |
jint rc = 0; |
| 9172 |
OS_NATIVE_EXIT(env, that, SetDataBrowserScrollPosition_FUNC); |
9172 |
OS_NATIVE_ENTER(env, that, SetDataBrowserItemDataItemID_FUNC); |
| 9173 |
return rc; |
9173 |
rc = (jint)SetDataBrowserItemDataItemID((DataBrowserItemDataRef)arg0, (DataBrowserItemID)arg1); |
| 9174 |
} |
9174 |
OS_NATIVE_EXIT(env, that, SetDataBrowserItemDataItemID_FUNC); |
| 9175 |
#endif |
9175 |
return rc; |
| 9176 |
|
9176 |
} |
| 9177 |
#ifndef NO_SetDataBrowserSelectedItems |
9177 |
#endif |
| 9178 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserSelectedItems) |
9178 |
|
| 9179 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2, jint arg3) |
9179 |
#ifndef NO_SetDataBrowserItemDataText |
| 9180 |
{ |
9180 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserItemDataText) |
| 9181 |
jint *lparg2=NULL; |
9181 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 9182 |
jint rc = 0; |
9182 |
{ |
| 9183 |
OS_NATIVE_ENTER(env, that, SetDataBrowserSelectedItems_FUNC); |
9183 |
jint rc = 0; |
| 9184 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
9184 |
OS_NATIVE_ENTER(env, that, SetDataBrowserItemDataText_FUNC); |
| 9185 |
rc = (jint)SetDataBrowserSelectedItems((ControlRef)arg0, (UInt32)arg1, (const DataBrowserItemID *)lparg2, (DataBrowserSetOption)arg3); |
9185 |
rc = (jint)SetDataBrowserItemDataText((DataBrowserItemDataRef)arg0, (CFStringRef)arg1); |
| 9186 |
fail: |
9186 |
OS_NATIVE_EXIT(env, that, SetDataBrowserItemDataText_FUNC); |
| 9187 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
9187 |
return rc; |
| 9188 |
OS_NATIVE_EXIT(env, that, SetDataBrowserSelectedItems_FUNC); |
9188 |
} |
| 9189 |
return rc; |
9189 |
#endif |
| 9190 |
} |
9190 |
|
| 9191 |
#endif |
9191 |
#ifndef NO_SetDataBrowserListViewDisclosureColumn |
| 9192 |
|
9192 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserListViewDisclosureColumn) |
| 9193 |
#ifndef NO_SetDataBrowserSelectionFlags |
9193 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2) |
| 9194 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserSelectionFlags) |
9194 |
{ |
| 9195 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
9195 |
jint rc = 0; |
| 9196 |
{ |
9196 |
OS_NATIVE_ENTER(env, that, SetDataBrowserListViewDisclosureColumn_FUNC); |
| 9197 |
jint rc = 0; |
9197 |
rc = (jint)SetDataBrowserListViewDisclosureColumn((ControlRef)arg0, (DataBrowserTableViewColumnID)arg1, (Boolean)arg2); |
| 9198 |
OS_NATIVE_ENTER(env, that, SetDataBrowserSelectionFlags_FUNC); |
9198 |
OS_NATIVE_EXIT(env, that, SetDataBrowserListViewDisclosureColumn_FUNC); |
| 9199 |
rc = (jint)SetDataBrowserSelectionFlags((ControlRef)arg0, (DataBrowserSelectionFlags)arg1); |
9199 |
return rc; |
| 9200 |
OS_NATIVE_EXIT(env, that, SetDataBrowserSelectionFlags_FUNC); |
9200 |
} |
| 9201 |
return rc; |
9201 |
#endif |
| 9202 |
} |
9202 |
|
| 9203 |
#endif |
9203 |
#ifndef NO_SetDataBrowserListViewHeaderBtnHeight |
| 9204 |
|
9204 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserListViewHeaderBtnHeight) |
| 9205 |
#ifndef NO_SetDataBrowserSortOrder |
9205 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1) |
| 9206 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserSortOrder) |
9206 |
{ |
| 9207 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1) |
9207 |
jint rc = 0; |
| 9208 |
{ |
9208 |
OS_NATIVE_ENTER(env, that, SetDataBrowserListViewHeaderBtnHeight_FUNC); |
| 9209 |
jint rc = 0; |
9209 |
rc = (jint)SetDataBrowserListViewHeaderBtnHeight((ControlRef)arg0, (UInt16)arg1); |
| 9210 |
OS_NATIVE_ENTER(env, that, SetDataBrowserSortOrder_FUNC); |
9210 |
OS_NATIVE_EXIT(env, that, SetDataBrowserListViewHeaderBtnHeight_FUNC); |
| 9211 |
rc = (jint)SetDataBrowserSortOrder((ControlRef)arg0, arg1); |
9211 |
return rc; |
| 9212 |
OS_NATIVE_EXIT(env, that, SetDataBrowserSortOrder_FUNC); |
9212 |
} |
| 9213 |
return rc; |
9213 |
#endif |
| 9214 |
} |
9214 |
|
| 9215 |
#endif |
9215 |
#ifndef NO_SetDataBrowserListViewHeaderDesc |
| 9216 |
|
9216 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserListViewHeaderDesc) |
| 9217 |
#ifndef NO_SetDataBrowserTableViewColumnPosition |
9217 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2) |
| 9218 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserTableViewColumnPosition) |
9218 |
{ |
| 9219 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
9219 |
DataBrowserListViewHeaderDesc _arg2, *lparg2=NULL; |
| 9220 |
{ |
9220 |
jint rc = 0; |
| 9221 |
jint rc = 0; |
9221 |
OS_NATIVE_ENTER(env, that, SetDataBrowserListViewHeaderDesc_FUNC); |
| 9222 |
OS_NATIVE_ENTER(env, that, SetDataBrowserTableViewColumnPosition_FUNC); |
9222 |
if (arg2) if ((lparg2 = getDataBrowserListViewHeaderDescFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 9223 |
rc = (jint)SetDataBrowserTableViewColumnPosition((ControlRef)arg0, arg1, arg2); |
9223 |
rc = (jint)SetDataBrowserListViewHeaderDesc((ControlRef)arg0, arg1, lparg2); |
| 9224 |
OS_NATIVE_EXIT(env, that, SetDataBrowserTableViewColumnPosition_FUNC); |
9224 |
fail: |
| 9225 |
return rc; |
9225 |
if (arg2 && lparg2) setDataBrowserListViewHeaderDescFields(env, arg2, lparg2); |
| 9226 |
} |
9226 |
OS_NATIVE_EXIT(env, that, SetDataBrowserListViewHeaderDesc_FUNC); |
| 9227 |
#endif |
9227 |
return rc; |
| 9228 |
|
9228 |
} |
| 9229 |
#ifndef NO_SetDataBrowserTableViewHiliteStyle |
9229 |
#endif |
| 9230 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserTableViewHiliteStyle) |
9230 |
|
| 9231 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
9231 |
#ifndef NO_SetDataBrowserScrollPosition |
| 9232 |
{ |
9232 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserScrollPosition) |
| 9233 |
jint rc = 0; |
9233 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 9234 |
OS_NATIVE_ENTER(env, that, SetDataBrowserTableViewHiliteStyle_FUNC); |
9234 |
{ |
| 9235 |
rc = (jint)SetDataBrowserTableViewHiliteStyle((ControlRef)arg0, arg1); |
9235 |
jint rc = 0; |
| 9236 |
OS_NATIVE_EXIT(env, that, SetDataBrowserTableViewHiliteStyle_FUNC); |
9236 |
OS_NATIVE_ENTER(env, that, SetDataBrowserScrollPosition_FUNC); |
| 9237 |
return rc; |
9237 |
rc = (jint)SetDataBrowserScrollPosition((ControlRef)arg0, (UInt32)arg1, (UInt32)arg2); |
| 9238 |
} |
9238 |
OS_NATIVE_EXIT(env, that, SetDataBrowserScrollPosition_FUNC); |
| 9239 |
#endif |
9239 |
return rc; |
| 9240 |
|
9240 |
} |
| 9241 |
#ifndef NO_SetDataBrowserTableViewItemRow |
9241 |
#endif |
| 9242 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserTableViewItemRow) |
9242 |
|
| 9243 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
9243 |
#ifndef NO_SetDataBrowserSelectedItems |
| 9244 |
{ |
9244 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserSelectedItems) |
| 9245 |
jint rc = 0; |
9245 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2, jint arg3) |
| 9246 |
OS_NATIVE_ENTER(env, that, SetDataBrowserTableViewItemRow_FUNC); |
9246 |
{ |
| 9247 |
rc = (jint)SetDataBrowserTableViewItemRow((ControlRef)arg0, arg1, arg2); |
9247 |
jint *lparg2=NULL; |
| 9248 |
OS_NATIVE_EXIT(env, that, SetDataBrowserTableViewItemRow_FUNC); |
9248 |
jint rc = 0; |
| 9249 |
return rc; |
9249 |
OS_NATIVE_ENTER(env, that, SetDataBrowserSelectedItems_FUNC); |
| 9250 |
} |
9250 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 9251 |
#endif |
9251 |
rc = (jint)SetDataBrowserSelectedItems((ControlRef)arg0, (UInt32)arg1, (const DataBrowserItemID *)lparg2, (DataBrowserSetOption)arg3); |
| 9252 |
|
9252 |
fail: |
| 9253 |
#ifndef NO_SetDataBrowserTableViewNamedColumnWidth |
9253 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 9254 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserTableViewNamedColumnWidth) |
9254 |
OS_NATIVE_EXIT(env, that, SetDataBrowserSelectedItems_FUNC); |
| 9255 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshort arg2) |
9255 |
return rc; |
| 9256 |
{ |
9256 |
} |
| 9257 |
jint rc = 0; |
9257 |
#endif |
| 9258 |
OS_NATIVE_ENTER(env, that, SetDataBrowserTableViewNamedColumnWidth_FUNC); |
9258 |
|
| 9259 |
rc = (jint)SetDataBrowserTableViewNamedColumnWidth((ControlRef)arg0, (DataBrowserTableViewColumnID)arg1, (UInt16)arg2); |
9259 |
#ifndef NO_SetDataBrowserSelectionFlags |
| 9260 |
OS_NATIVE_EXIT(env, that, SetDataBrowserTableViewNamedColumnWidth_FUNC); |
9260 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserSelectionFlags) |
| 9261 |
return rc; |
9261 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 9262 |
} |
9262 |
{ |
| 9263 |
#endif |
9263 |
jint rc = 0; |
| 9264 |
|
9264 |
OS_NATIVE_ENTER(env, that, SetDataBrowserSelectionFlags_FUNC); |
| 9265 |
#ifndef NO_SetDataBrowserTableViewRowHeight |
9265 |
rc = (jint)SetDataBrowserSelectionFlags((ControlRef)arg0, (DataBrowserSelectionFlags)arg1); |
| 9266 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserTableViewRowHeight) |
9266 |
OS_NATIVE_EXIT(env, that, SetDataBrowserSelectionFlags_FUNC); |
| 9267 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1) |
9267 |
return rc; |
| 9268 |
{ |
9268 |
} |
| 9269 |
jint rc = 0; |
9269 |
#endif |
| 9270 |
OS_NATIVE_ENTER(env, that, SetDataBrowserTableViewRowHeight_FUNC); |
9270 |
|
| 9271 |
rc = (jint)SetDataBrowserTableViewRowHeight((ControlRef)arg0, arg1); |
9271 |
#ifndef NO_SetDataBrowserSortOrder |
| 9272 |
OS_NATIVE_EXIT(env, that, SetDataBrowserTableViewRowHeight_FUNC); |
9272 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserSortOrder) |
| 9273 |
return rc; |
9273 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1) |
| 9274 |
} |
9274 |
{ |
| 9275 |
#endif |
9275 |
jint rc = 0; |
| 9276 |
|
9276 |
OS_NATIVE_ENTER(env, that, SetDataBrowserSortOrder_FUNC); |
| 9277 |
#ifndef NO_SetDataBrowserTarget |
9277 |
rc = (jint)SetDataBrowserSortOrder((ControlRef)arg0, arg1); |
| 9278 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserTarget) |
9278 |
OS_NATIVE_EXIT(env, that, SetDataBrowserSortOrder_FUNC); |
| 9279 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
9279 |
return rc; |
| 9280 |
{ |
9280 |
} |
| 9281 |
jint rc = 0; |
9281 |
#endif |
| 9282 |
OS_NATIVE_ENTER(env, that, SetDataBrowserTarget_FUNC); |
9282 |
|
| 9283 |
rc = (jint)SetDataBrowserTarget((ControlRef)arg0, (DataBrowserItemID)arg1); |
9283 |
#ifndef NO_SetDataBrowserTableViewColumnPosition |
| 9284 |
OS_NATIVE_EXIT(env, that, SetDataBrowserTarget_FUNC); |
9284 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserTableViewColumnPosition) |
| 9285 |
return rc; |
9285 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 9286 |
} |
9286 |
{ |
| 9287 |
#endif |
9287 |
jint rc = 0; |
| 9288 |
|
9288 |
OS_NATIVE_ENTER(env, that, SetDataBrowserTableViewColumnPosition_FUNC); |
| 9289 |
#ifndef NO_SetDragAllowableActions |
9289 |
rc = (jint)SetDataBrowserTableViewColumnPosition((ControlRef)arg0, arg1, arg2); |
| 9290 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDragAllowableActions) |
9290 |
OS_NATIVE_EXIT(env, that, SetDataBrowserTableViewColumnPosition_FUNC); |
| 9291 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2) |
9291 |
return rc; |
| 9292 |
{ |
9292 |
} |
| 9293 |
jint rc = 0; |
9293 |
#endif |
| 9294 |
OS_NATIVE_ENTER(env, that, SetDragAllowableActions_FUNC); |
9294 |
|
| 9295 |
rc = (jint)SetDragAllowableActions((DragRef)arg0, (DragActions)arg1, (Boolean)arg2); |
9295 |
#ifndef NO_SetDataBrowserTableViewHiliteStyle |
| 9296 |
OS_NATIVE_EXIT(env, that, SetDragAllowableActions_FUNC); |
9296 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserTableViewHiliteStyle) |
| 9297 |
return rc; |
9297 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 9298 |
} |
9298 |
{ |
| 9299 |
#endif |
9299 |
jint rc = 0; |
| 9300 |
|
9300 |
OS_NATIVE_ENTER(env, that, SetDataBrowserTableViewHiliteStyle_FUNC); |
| 9301 |
#ifndef NO_SetDragDropAction |
9301 |
rc = (jint)SetDataBrowserTableViewHiliteStyle((ControlRef)arg0, arg1); |
| 9302 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDragDropAction) |
9302 |
OS_NATIVE_EXIT(env, that, SetDataBrowserTableViewHiliteStyle_FUNC); |
| 9303 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
9303 |
return rc; |
| 9304 |
{ |
9304 |
} |
| 9305 |
jint rc = 0; |
9305 |
#endif |
| 9306 |
OS_NATIVE_ENTER(env, that, SetDragDropAction_FUNC); |
9306 |
|
| 9307 |
rc = (jint)SetDragDropAction((DragRef)arg0, (DragActions)arg1); |
9307 |
#ifndef NO_SetDataBrowserTableViewItemRow |
| 9308 |
OS_NATIVE_EXIT(env, that, SetDragDropAction_FUNC); |
9308 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserTableViewItemRow) |
| 9309 |
return rc; |
9309 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 9310 |
} |
9310 |
{ |
| 9311 |
#endif |
9311 |
jint rc = 0; |
| 9312 |
|
9312 |
OS_NATIVE_ENTER(env, that, SetDataBrowserTableViewItemRow_FUNC); |
| 9313 |
#ifndef NO_SetDragInputProc |
9313 |
rc = (jint)SetDataBrowserTableViewItemRow((ControlRef)arg0, arg1, arg2); |
| 9314 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDragInputProc) |
9314 |
OS_NATIVE_EXIT(env, that, SetDataBrowserTableViewItemRow_FUNC); |
| 9315 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
9315 |
return rc; |
| 9316 |
{ |
9316 |
} |
| 9317 |
jint rc = 0; |
9317 |
#endif |
| 9318 |
OS_NATIVE_ENTER(env, that, SetDragInputProc_FUNC); |
9318 |
|
| 9319 |
rc = (jint)SetDragInputProc((DragRef)arg0, (DragInputUPP)arg1, (void *)arg2); |
9319 |
#ifndef NO_SetDataBrowserTableViewNamedColumnWidth |
| 9320 |
OS_NATIVE_EXIT(env, that, SetDragInputProc_FUNC); |
9320 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserTableViewNamedColumnWidth) |
| 9321 |
return rc; |
9321 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshort arg2) |
| 9322 |
} |
9322 |
{ |
| 9323 |
#endif |
9323 |
jint rc = 0; |
| 9324 |
|
9324 |
OS_NATIVE_ENTER(env, that, SetDataBrowserTableViewNamedColumnWidth_FUNC); |
| 9325 |
#ifndef NO_SetEventLoopTimerNextFireTime |
9325 |
rc = (jint)SetDataBrowserTableViewNamedColumnWidth((ControlRef)arg0, (DataBrowserTableViewColumnID)arg1, (UInt16)arg2); |
| 9326 |
JNIEXPORT jint JNICALL OS_NATIVE(SetEventLoopTimerNextFireTime) |
9326 |
OS_NATIVE_EXIT(env, that, SetDataBrowserTableViewNamedColumnWidth_FUNC); |
| 9327 |
(JNIEnv *env, jclass that, jint arg0, jdouble arg1) |
9327 |
return rc; |
| 9328 |
{ |
9328 |
} |
| 9329 |
jint rc = 0; |
9329 |
#endif |
| 9330 |
OS_NATIVE_ENTER(env, that, SetEventLoopTimerNextFireTime_FUNC); |
9330 |
|
| 9331 |
rc = (jint)SetEventLoopTimerNextFireTime((EventLoopTimerRef)arg0, (EventTimerInterval)arg1); |
9331 |
#ifndef NO_SetDataBrowserTableViewRowHeight |
| 9332 |
OS_NATIVE_EXIT(env, that, SetEventLoopTimerNextFireTime_FUNC); |
9332 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserTableViewRowHeight) |
| 9333 |
return rc; |
9333 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1) |
| 9334 |
} |
9334 |
{ |
| 9335 |
#endif |
9335 |
jint rc = 0; |
| 9336 |
|
9336 |
OS_NATIVE_ENTER(env, that, SetDataBrowserTableViewRowHeight_FUNC); |
| 9337 |
#ifndef NO_SetEventParameter__IIII_3C |
9337 |
rc = (jint)SetDataBrowserTableViewRowHeight((ControlRef)arg0, arg1); |
| 9338 |
JNIEXPORT jint JNICALL OS_NATIVE(SetEventParameter__IIII_3C) |
9338 |
OS_NATIVE_EXIT(env, that, SetDataBrowserTableViewRowHeight_FUNC); |
| 9339 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jcharArray arg4) |
9339 |
return rc; |
| 9340 |
{ |
9340 |
} |
| 9341 |
jchar *lparg4=NULL; |
9341 |
#endif |
| 9342 |
jint rc = 0; |
9342 |
|
| 9343 |
OS_NATIVE_ENTER(env, that, SetEventParameter__IIII_3C_FUNC); |
9343 |
#ifndef NO_SetDataBrowserTarget |
| 9344 |
if (arg4) if ((lparg4 = (*env)->GetCharArrayElements(env, arg4, NULL)) == NULL) goto fail; |
9344 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDataBrowserTarget) |
| 9345 |
rc = (jint)SetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (UInt32)arg3, (const void *)lparg4); |
9345 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 9346 |
fail: |
9346 |
{ |
| 9347 |
if (arg4 && lparg4) (*env)->ReleaseCharArrayElements(env, arg4, lparg4, 0); |
9347 |
jint rc = 0; |
| 9348 |
OS_NATIVE_EXIT(env, that, SetEventParameter__IIII_3C_FUNC); |
9348 |
OS_NATIVE_ENTER(env, that, SetDataBrowserTarget_FUNC); |
| 9349 |
return rc; |
9349 |
rc = (jint)SetDataBrowserTarget((ControlRef)arg0, (DataBrowserItemID)arg1); |
| 9350 |
} |
9350 |
OS_NATIVE_EXIT(env, that, SetDataBrowserTarget_FUNC); |
| 9351 |
#endif |
9351 |
return rc; |
| 9352 |
|
9352 |
} |
| 9353 |
#ifndef NO_SetEventParameter__IIII_3I |
9353 |
#endif |
| 9354 |
JNIEXPORT jint JNICALL OS_NATIVE(SetEventParameter__IIII_3I) |
9354 |
|
| 9355 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4) |
9355 |
#ifndef NO_SetDragAllowableActions |
| 9356 |
{ |
9356 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDragAllowableActions) |
| 9357 |
jint *lparg4=NULL; |
9357 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2) |
| 9358 |
jint rc = 0; |
9358 |
{ |
| 9359 |
OS_NATIVE_ENTER(env, that, SetEventParameter__IIII_3I_FUNC); |
9359 |
jint rc = 0; |
| 9360 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
9360 |
OS_NATIVE_ENTER(env, that, SetDragAllowableActions_FUNC); |
| 9361 |
rc = (jint)SetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (UInt32)arg3, (const void *)lparg4); |
9361 |
rc = (jint)SetDragAllowableActions((DragRef)arg0, (DragActions)arg1, (Boolean)arg2); |
| 9362 |
fail: |
9362 |
OS_NATIVE_EXIT(env, that, SetDragAllowableActions_FUNC); |
| 9363 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
9363 |
return rc; |
| 9364 |
OS_NATIVE_EXIT(env, that, SetEventParameter__IIII_3I_FUNC); |
9364 |
} |
| 9365 |
return rc; |
9365 |
#endif |
| 9366 |
} |
9366 |
|
| 9367 |
#endif |
9367 |
#ifndef NO_SetDragDropAction |
| 9368 |
|
9368 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDragDropAction) |
| 9369 |
#ifndef NO_SetEventParameter__IIII_3S |
9369 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 9370 |
JNIEXPORT jint JNICALL OS_NATIVE(SetEventParameter__IIII_3S) |
9370 |
{ |
| 9371 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jshortArray arg4) |
9371 |
jint rc = 0; |
| 9372 |
{ |
9372 |
OS_NATIVE_ENTER(env, that, SetDragDropAction_FUNC); |
| 9373 |
jshort *lparg4=NULL; |
9373 |
rc = (jint)SetDragDropAction((DragRef)arg0, (DragActions)arg1); |
| 9374 |
jint rc = 0; |
9374 |
OS_NATIVE_EXIT(env, that, SetDragDropAction_FUNC); |
| 9375 |
OS_NATIVE_ENTER(env, that, SetEventParameter__IIII_3S_FUNC); |
9375 |
return rc; |
| 9376 |
if (arg4) if ((lparg4 = (*env)->GetShortArrayElements(env, arg4, NULL)) == NULL) goto fail; |
9376 |
} |
| 9377 |
rc = (jint)SetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (UInt32)arg3, (const void *)lparg4); |
9377 |
#endif |
| 9378 |
fail: |
9378 |
|
| 9379 |
if (arg4 && lparg4) (*env)->ReleaseShortArrayElements(env, arg4, lparg4, 0); |
9379 |
#ifndef NO_SetDragInputProc |
| 9380 |
OS_NATIVE_EXIT(env, that, SetEventParameter__IIII_3S_FUNC); |
9380 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDragInputProc) |
| 9381 |
return rc; |
9381 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 9382 |
} |
9382 |
{ |
| 9383 |
#endif |
9383 |
jint rc = 0; |
| 9384 |
|
9384 |
OS_NATIVE_ENTER(env, that, SetDragInputProc_FUNC); |
| 9385 |
#ifndef NO_SetFontInfoForSelection |
9385 |
rc = (jint)SetDragInputProc((DragRef)arg0, (DragInputUPP)arg1, (void *)arg2); |
| 9386 |
JNIEXPORT jint JNICALL OS_NATIVE(SetFontInfoForSelection) |
9386 |
OS_NATIVE_EXIT(env, that, SetDragInputProc_FUNC); |
| 9387 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3) |
9387 |
return rc; |
| 9388 |
{ |
9388 |
} |
| 9389 |
jint rc = 0; |
9389 |
#endif |
| 9390 |
OS_NATIVE_ENTER(env, that, SetFontInfoForSelection_FUNC); |
9390 |
|
| 9391 |
rc = (jint)SetFontInfoForSelection((OSType)arg0, (UInt32)arg1, (void *)arg2, (HIObjectRef)arg3); |
9391 |
#ifndef NO_SetDropLocation |
| 9392 |
OS_NATIVE_EXIT(env, that, SetFontInfoForSelection_FUNC); |
9392 |
JNIEXPORT jint JNICALL OS_NATIVE(SetDropLocation) |
| 9393 |
return rc; |
9393 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 9394 |
} |
9394 |
{ |
| 9395 |
#endif |
9395 |
AEDesc _arg1, *lparg1=NULL; |
| 9396 |
|
9396 |
jint rc = 0; |
| 9397 |
#ifndef NO_SetFrontProcess |
9397 |
OS_NATIVE_ENTER(env, that, SetDropLocation_FUNC); |
| 9398 |
JNIEXPORT jint JNICALL OS_NATIVE(SetFrontProcess) |
9398 |
if (arg1) if ((lparg1 = getAEDescFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 9399 |
(JNIEnv *env, jclass that, jintArray arg0) |
9399 |
rc = (jint)SetDropLocation((DragRef)arg0, lparg1); |
| 9400 |
{ |
9400 |
fail: |
| 9401 |
jint *lparg0=NULL; |
9401 |
if (arg1 && lparg1) setAEDescFields(env, arg1, lparg1); |
| 9402 |
jint rc = 0; |
9402 |
OS_NATIVE_EXIT(env, that, SetDropLocation_FUNC); |
| 9403 |
OS_NATIVE_ENTER(env, that, SetFrontProcess_FUNC); |
9403 |
return rc; |
| 9404 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
9404 |
} |
| 9405 |
rc = (jint)SetFrontProcess((const ProcessSerialNumber *)lparg0); |
9405 |
#endif |
| 9406 |
fail: |
9406 |
|
| 9407 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
9407 |
#ifndef NO_SetEventLoopTimerNextFireTime |
| 9408 |
OS_NATIVE_EXIT(env, that, SetFrontProcess_FUNC); |
9408 |
JNIEXPORT jint JNICALL OS_NATIVE(SetEventLoopTimerNextFireTime) |
| 9409 |
return rc; |
9409 |
(JNIEnv *env, jclass that, jint arg0, jdouble arg1) |
| 9410 |
} |
9410 |
{ |
| 9411 |
#endif |
9411 |
jint rc = 0; |
| 9412 |
|
9412 |
OS_NATIVE_ENTER(env, that, SetEventLoopTimerNextFireTime_FUNC); |
| 9413 |
#ifndef NO_SetFrontProcessWithOptions |
9413 |
rc = (jint)SetEventLoopTimerNextFireTime((EventLoopTimerRef)arg0, (EventTimerInterval)arg1); |
| 9414 |
JNIEXPORT jint JNICALL OS_NATIVE(SetFrontProcessWithOptions) |
9414 |
OS_NATIVE_EXIT(env, that, SetEventLoopTimerNextFireTime_FUNC); |
| 9415 |
(JNIEnv *env, jclass that, jintArray arg0, jint arg1) |
9415 |
return rc; |
| 9416 |
{ |
9416 |
} |
| 9417 |
jint *lparg0=NULL; |
9417 |
#endif |
| 9418 |
jint rc = 0; |
9418 |
|
| 9419 |
OS_NATIVE_ENTER(env, that, SetFrontProcessWithOptions_FUNC); |
9419 |
#ifndef NO_SetEventParameter__IIII_3C |
| 9420 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
9420 |
JNIEXPORT jint JNICALL OS_NATIVE(SetEventParameter__IIII_3C) |
| 9421 |
rc = (jint)SetFrontProcessWithOptions((const ProcessSerialNumber *)lparg0, arg1); |
9421 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jcharArray arg4) |
| 9422 |
fail: |
9422 |
{ |
| 9423 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
9423 |
jchar *lparg4=NULL; |
| 9424 |
OS_NATIVE_EXIT(env, that, SetFrontProcessWithOptions_FUNC); |
9424 |
jint rc = 0; |
| 9425 |
return rc; |
9425 |
OS_NATIVE_ENTER(env, that, SetEventParameter__IIII_3C_FUNC); |
| 9426 |
} |
9426 |
if (arg4) if ((lparg4 = (*env)->GetCharArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 9427 |
#endif |
9427 |
rc = (jint)SetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (UInt32)arg3, (const void *)lparg4); |
| 9428 |
|
9428 |
fail: |
| 9429 |
#ifndef NO_SetGWorld |
9429 |
if (arg4 && lparg4) (*env)->ReleaseCharArrayElements(env, arg4, lparg4, 0); |
| 9430 |
JNIEXPORT void JNICALL OS_NATIVE(SetGWorld) |
9430 |
OS_NATIVE_EXIT(env, that, SetEventParameter__IIII_3C_FUNC); |
| 9431 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
9431 |
return rc; |
| 9432 |
{ |
9432 |
} |
| 9433 |
OS_NATIVE_ENTER(env, that, SetGWorld_FUNC); |
9433 |
#endif |
| 9434 |
SetGWorld((CGrafPtr)arg0, (GDHandle)arg1); |
9434 |
|
| 9435 |
OS_NATIVE_EXIT(env, that, SetGWorld_FUNC); |
9435 |
#ifndef NO_SetEventParameter__IIII_3I |
| 9436 |
} |
9436 |
JNIEXPORT jint JNICALL OS_NATIVE(SetEventParameter__IIII_3I) |
| 9437 |
#endif |
9437 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jintArray arg4) |
| 9438 |
|
9438 |
{ |
| 9439 |
#ifndef NO_SetItemMark |
9439 |
jint *lparg4=NULL; |
| 9440 |
JNIEXPORT void JNICALL OS_NATIVE(SetItemMark) |
9440 |
jint rc = 0; |
| 9441 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshort arg2) |
9441 |
OS_NATIVE_ENTER(env, that, SetEventParameter__IIII_3I_FUNC); |
| 9442 |
{ |
9442 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 9443 |
OS_NATIVE_ENTER(env, that, SetItemMark_FUNC); |
9443 |
rc = (jint)SetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (UInt32)arg3, (const void *)lparg4); |
| 9444 |
SetItemMark((MenuRef)arg0, arg1, arg2); |
9444 |
fail: |
| 9445 |
OS_NATIVE_EXIT(env, that, SetItemMark_FUNC); |
9445 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 9446 |
} |
9446 |
OS_NATIVE_EXIT(env, that, SetEventParameter__IIII_3I_FUNC); |
| 9447 |
#endif |
9447 |
return rc; |
| 9448 |
|
9448 |
} |
| 9449 |
#ifndef NO_SetKeyboardFocus |
9449 |
#endif |
| 9450 |
JNIEXPORT jint JNICALL OS_NATIVE(SetKeyboardFocus) |
9450 |
|
| 9451 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshort arg2) |
9451 |
#ifndef NO_SetEventParameter__IIII_3S |
| 9452 |
{ |
9452 |
JNIEXPORT jint JNICALL OS_NATIVE(SetEventParameter__IIII_3S) |
| 9453 |
jint rc = 0; |
9453 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jshortArray arg4) |
| 9454 |
OS_NATIVE_ENTER(env, that, SetKeyboardFocus_FUNC); |
9454 |
{ |
| 9455 |
rc = (jint)SetKeyboardFocus((WindowRef)arg0, (ControlRef)arg1, (ControlFocusPart)arg2); |
9455 |
jshort *lparg4=NULL; |
| 9456 |
OS_NATIVE_EXIT(env, that, SetKeyboardFocus_FUNC); |
9456 |
jint rc = 0; |
| 9457 |
return rc; |
9457 |
OS_NATIVE_ENTER(env, that, SetEventParameter__IIII_3S_FUNC); |
| 9458 |
} |
9458 |
if (arg4) if ((lparg4 = (*env)->GetShortArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 9459 |
#endif |
9459 |
rc = (jint)SetEventParameter((EventRef)arg0, (EventParamName)arg1, (EventParamType)arg2, (UInt32)arg3, (const void *)lparg4); |
| 9460 |
|
9460 |
fail: |
| 9461 |
#ifndef NO_SetMenuCommandMark |
9461 |
if (arg4 && lparg4) (*env)->ReleaseShortArrayElements(env, arg4, lparg4, 0); |
| 9462 |
JNIEXPORT jint JNICALL OS_NATIVE(SetMenuCommandMark) |
9462 |
OS_NATIVE_EXIT(env, that, SetEventParameter__IIII_3S_FUNC); |
| 9463 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jchar arg2) |
9463 |
return rc; |
| 9464 |
{ |
9464 |
} |
| 9465 |
jint rc = 0; |
9465 |
#endif |
| 9466 |
OS_NATIVE_ENTER(env, that, SetMenuCommandMark_FUNC); |
9466 |
|
| 9467 |
rc = (jint)SetMenuCommandMark((MenuRef)arg0, (MenuCommand)arg1, (UniChar)arg2); |
9467 |
#ifndef NO_SetFontInfoForSelection |
| 9468 |
OS_NATIVE_EXIT(env, that, SetMenuCommandMark_FUNC); |
9468 |
JNIEXPORT jint JNICALL OS_NATIVE(SetFontInfoForSelection) |
| 9469 |
return rc; |
9469 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3) |
| 9470 |
} |
9470 |
{ |
| 9471 |
#endif |
9471 |
jint rc = 0; |
| 9472 |
|
9472 |
OS_NATIVE_ENTER(env, that, SetFontInfoForSelection_FUNC); |
| 9473 |
#ifndef NO_SetMenuFont |
9473 |
rc = (jint)SetFontInfoForSelection((OSType)arg0, (UInt32)arg1, (void *)arg2, (HIObjectRef)arg3); |
| 9474 |
JNIEXPORT jint JNICALL OS_NATIVE(SetMenuFont) |
9474 |
OS_NATIVE_EXIT(env, that, SetFontInfoForSelection_FUNC); |
| 9475 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshort arg2) |
9475 |
return rc; |
| 9476 |
{ |
9476 |
} |
| 9477 |
jint rc = 0; |
9477 |
#endif |
| 9478 |
OS_NATIVE_ENTER(env, that, SetMenuFont_FUNC); |
9478 |
|
| 9479 |
rc = (jint)SetMenuFont((MenuRef)arg0, (SInt16)arg1, (UInt16)arg2); |
9479 |
#ifndef NO_SetFrontProcess |
| 9480 |
OS_NATIVE_EXIT(env, that, SetMenuFont_FUNC); |
9480 |
JNIEXPORT jint JNICALL OS_NATIVE(SetFrontProcess) |
| 9481 |
return rc; |
9481 |
(JNIEnv *env, jclass that, jintArray arg0) |
| 9482 |
} |
9482 |
{ |
| 9483 |
#endif |
9483 |
jint *lparg0=NULL; |
| 9484 |
|
9484 |
jint rc = 0; |
| 9485 |
#ifndef NO_SetMenuItemCommandKey |
9485 |
OS_NATIVE_ENTER(env, that, SetFrontProcess_FUNC); |
| 9486 |
JNIEXPORT jint JNICALL OS_NATIVE(SetMenuItemCommandKey) |
9486 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 9487 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jboolean arg2, jchar arg3) |
9487 |
rc = (jint)SetFrontProcess((const ProcessSerialNumber *)lparg0); |
| 9488 |
{ |
9488 |
fail: |
| 9489 |
jint rc = 0; |
9489 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 9490 |
OS_NATIVE_ENTER(env, that, SetMenuItemCommandKey_FUNC); |
9490 |
OS_NATIVE_EXIT(env, that, SetFrontProcess_FUNC); |
| 9491 |
rc = (jint)SetMenuItemCommandKey((MenuRef)arg0, (MenuItemIndex)arg1, (Boolean)arg2, (UInt16)arg3); |
9491 |
return rc; |
| 9492 |
OS_NATIVE_EXIT(env, that, SetMenuItemCommandKey_FUNC); |
9492 |
} |
| 9493 |
return rc; |
9493 |
#endif |
| 9494 |
} |
9494 |
|
| 9495 |
#endif |
9495 |
#ifndef NO_SetFrontProcessWithOptions |
| 9496 |
|
9496 |
JNIEXPORT jint JNICALL OS_NATIVE(SetFrontProcessWithOptions) |
| 9497 |
#ifndef NO_SetMenuItemHierarchicalMenu |
9497 |
(JNIEnv *env, jclass that, jintArray arg0, jint arg1) |
| 9498 |
JNIEXPORT jint JNICALL OS_NATIVE(SetMenuItemHierarchicalMenu) |
9498 |
{ |
| 9499 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2) |
9499 |
jint *lparg0=NULL; |
| 9500 |
{ |
9500 |
jint rc = 0; |
| 9501 |
jint rc = 0; |
9501 |
OS_NATIVE_ENTER(env, that, SetFrontProcessWithOptions_FUNC); |
| 9502 |
OS_NATIVE_ENTER(env, that, SetMenuItemHierarchicalMenu_FUNC); |
9502 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 9503 |
rc = (jint)SetMenuItemHierarchicalMenu((MenuRef)arg0, (MenuItemIndex)arg1, (MenuRef)arg2); |
9503 |
rc = (jint)SetFrontProcessWithOptions((const ProcessSerialNumber *)lparg0, arg1); |
| 9504 |
OS_NATIVE_EXIT(env, that, SetMenuItemHierarchicalMenu_FUNC); |
9504 |
fail: |
| 9505 |
return rc; |
9505 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 9506 |
} |
9506 |
OS_NATIVE_EXIT(env, that, SetFrontProcessWithOptions_FUNC); |
| 9507 |
#endif |
9507 |
return rc; |
| 9508 |
|
9508 |
} |
| 9509 |
#ifndef NO_SetMenuItemIconHandle |
9509 |
#endif |
| 9510 |
JNIEXPORT jint JNICALL OS_NATIVE(SetMenuItemIconHandle) |
9510 |
|
| 9511 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jbyte arg2, jint arg3) |
9511 |
#ifndef NO_SetGWorld |
| 9512 |
{ |
9512 |
JNIEXPORT void JNICALL OS_NATIVE(SetGWorld) |
| 9513 |
jint rc = 0; |
9513 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 9514 |
OS_NATIVE_ENTER(env, that, SetMenuItemIconHandle_FUNC); |
9514 |
{ |
| 9515 |
rc = (jint)SetMenuItemIconHandle((MenuRef)arg0, (SInt16)arg1, (UInt8)arg2, (Handle)arg3); |
9515 |
OS_NATIVE_ENTER(env, that, SetGWorld_FUNC); |
| 9516 |
OS_NATIVE_EXIT(env, that, SetMenuItemIconHandle_FUNC); |
9516 |
SetGWorld((CGrafPtr)arg0, (GDHandle)arg1); |
| 9517 |
return rc; |
9517 |
OS_NATIVE_EXIT(env, that, SetGWorld_FUNC); |
| 9518 |
} |
9518 |
} |
| 9519 |
#endif |
9519 |
#endif |
| 9520 |
|
9520 |
|
| 9521 |
#ifndef NO_SetMenuItemKeyGlyph |
9521 |
#ifndef NO_SetItemMark |
| 9522 |
JNIEXPORT jint JNICALL OS_NATIVE(SetMenuItemKeyGlyph) |
9522 |
JNIEXPORT void JNICALL OS_NATIVE(SetItemMark) |
| 9523 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshort arg2) |
9523 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshort arg2) |
| 9524 |
{ |
9524 |
{ |
| 9525 |
jint rc = 0; |
9525 |
OS_NATIVE_ENTER(env, that, SetItemMark_FUNC); |
| 9526 |
OS_NATIVE_ENTER(env, that, SetMenuItemKeyGlyph_FUNC); |
9526 |
SetItemMark((MenuRef)arg0, arg1, arg2); |
| 9527 |
rc = (jint)SetMenuItemKeyGlyph((MenuRef)arg0, (SInt16)arg1, (SInt16)arg2); |
9527 |
OS_NATIVE_EXIT(env, that, SetItemMark_FUNC); |
| 9528 |
OS_NATIVE_EXIT(env, that, SetMenuItemKeyGlyph_FUNC); |
9528 |
} |
| 9529 |
return rc; |
9529 |
#endif |
| 9530 |
} |
9530 |
|
| 9531 |
#endif |
9531 |
#ifndef NO_SetKeyboardFocus |
| 9532 |
|
9532 |
JNIEXPORT jint JNICALL OS_NATIVE(SetKeyboardFocus) |
| 9533 |
#ifndef NO_SetMenuItemModifiers |
9533 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jshort arg2) |
| 9534 |
JNIEXPORT jint JNICALL OS_NATIVE(SetMenuItemModifiers) |
9534 |
{ |
| 9535 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jbyte arg2) |
9535 |
jint rc = 0; |
| 9536 |
{ |
9536 |
OS_NATIVE_ENTER(env, that, SetKeyboardFocus_FUNC); |
| 9537 |
jint rc = 0; |
9537 |
rc = (jint)SetKeyboardFocus((WindowRef)arg0, (ControlRef)arg1, (ControlFocusPart)arg2); |
| 9538 |
OS_NATIVE_ENTER(env, that, SetMenuItemModifiers_FUNC); |
9538 |
OS_NATIVE_EXIT(env, that, SetKeyboardFocus_FUNC); |
| 9539 |
rc = (jint)SetMenuItemModifiers((MenuRef)arg0, (SInt16)arg1, (UInt8)arg2); |
9539 |
return rc; |
| 9540 |
OS_NATIVE_EXIT(env, that, SetMenuItemModifiers_FUNC); |
9540 |
} |
| 9541 |
return rc; |
9541 |
#endif |
| 9542 |
} |
9542 |
|
| 9543 |
#endif |
9543 |
#ifndef NO_SetMenuCommandMark |
| 9544 |
|
9544 |
JNIEXPORT jint JNICALL OS_NATIVE(SetMenuCommandMark) |
| 9545 |
#ifndef NO_SetMenuItemRefCon |
9545 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jchar arg2) |
| 9546 |
JNIEXPORT jint JNICALL OS_NATIVE(SetMenuItemRefCon) |
9546 |
{ |
| 9547 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2) |
9547 |
jint rc = 0; |
| 9548 |
{ |
9548 |
OS_NATIVE_ENTER(env, that, SetMenuCommandMark_FUNC); |
| 9549 |
jint rc = 0; |
9549 |
rc = (jint)SetMenuCommandMark((MenuRef)arg0, (MenuCommand)arg1, (UniChar)arg2); |
| 9550 |
OS_NATIVE_ENTER(env, that, SetMenuItemRefCon_FUNC); |
9550 |
OS_NATIVE_EXIT(env, that, SetMenuCommandMark_FUNC); |
| 9551 |
rc = (jint)SetMenuItemRefCon((MenuRef)arg0, (SInt16)arg1, (UInt32)arg2); |
9551 |
return rc; |
| 9552 |
OS_NATIVE_EXIT(env, that, SetMenuItemRefCon_FUNC); |
9552 |
} |
| 9553 |
return rc; |
9553 |
#endif |
| 9554 |
} |
9554 |
|
| 9555 |
#endif |
9555 |
#ifndef NO_SetMenuFont |
| 9556 |
|
9556 |
JNIEXPORT jint JNICALL OS_NATIVE(SetMenuFont) |
| 9557 |
#ifndef NO_SetMenuItemTextWithCFString |
9557 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshort arg2) |
| 9558 |
JNIEXPORT jint JNICALL OS_NATIVE(SetMenuItemTextWithCFString) |
9558 |
{ |
| 9559 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2) |
9559 |
jint rc = 0; |
| 9560 |
{ |
9560 |
OS_NATIVE_ENTER(env, that, SetMenuFont_FUNC); |
| 9561 |
jint rc = 0; |
9561 |
rc = (jint)SetMenuFont((MenuRef)arg0, (SInt16)arg1, (UInt16)arg2); |
| 9562 |
OS_NATIVE_ENTER(env, that, SetMenuItemTextWithCFString_FUNC); |
9562 |
OS_NATIVE_EXIT(env, that, SetMenuFont_FUNC); |
| 9563 |
rc = (jint)SetMenuItemTextWithCFString((MenuRef)arg0, (MenuItemIndex)arg1, (CFStringRef)arg2); |
9563 |
return rc; |
| 9564 |
OS_NATIVE_EXIT(env, that, SetMenuItemTextWithCFString_FUNC); |
9564 |
} |
| 9565 |
return rc; |
9565 |
#endif |
| 9566 |
} |
9566 |
|
| 9567 |
#endif |
9567 |
#ifndef NO_SetMenuItemCommandKey |
| 9568 |
|
9568 |
JNIEXPORT jint JNICALL OS_NATIVE(SetMenuItemCommandKey) |
| 9569 |
#ifndef NO_SetMenuTitleWithCFString |
9569 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jboolean arg2, jchar arg3) |
| 9570 |
JNIEXPORT jint JNICALL OS_NATIVE(SetMenuTitleWithCFString) |
9570 |
{ |
| 9571 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
9571 |
jint rc = 0; |
| 9572 |
{ |
9572 |
OS_NATIVE_ENTER(env, that, SetMenuItemCommandKey_FUNC); |
| 9573 |
jint rc = 0; |
9573 |
rc = (jint)SetMenuItemCommandKey((MenuRef)arg0, (MenuItemIndex)arg1, (Boolean)arg2, (UInt16)arg3); |
| 9574 |
OS_NATIVE_ENTER(env, that, SetMenuTitleWithCFString_FUNC); |
9574 |
OS_NATIVE_EXIT(env, that, SetMenuItemCommandKey_FUNC); |
| 9575 |
rc = (jint)SetMenuTitleWithCFString((MenuRef)arg0, (CFStringRef)arg1); |
9575 |
return rc; |
| 9576 |
OS_NATIVE_EXIT(env, that, SetMenuTitleWithCFString_FUNC); |
9576 |
} |
| 9577 |
return rc; |
9577 |
#endif |
| 9578 |
} |
9578 |
|
| 9579 |
#endif |
9579 |
#ifndef NO_SetMenuItemHierarchicalMenu |
| 9580 |
|
9580 |
JNIEXPORT jint JNICALL OS_NATIVE(SetMenuItemHierarchicalMenu) |
| 9581 |
#ifndef NO_SetOrigin |
9581 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2) |
| 9582 |
JNIEXPORT void JNICALL OS_NATIVE(SetOrigin) |
9582 |
{ |
| 9583 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1) |
9583 |
jint rc = 0; |
| 9584 |
{ |
9584 |
OS_NATIVE_ENTER(env, that, SetMenuItemHierarchicalMenu_FUNC); |
| 9585 |
OS_NATIVE_ENTER(env, that, SetOrigin_FUNC); |
9585 |
rc = (jint)SetMenuItemHierarchicalMenu((MenuRef)arg0, (MenuItemIndex)arg1, (MenuRef)arg2); |
| 9586 |
SetOrigin((short)arg0, (short)arg1); |
9586 |
OS_NATIVE_EXIT(env, that, SetMenuItemHierarchicalMenu_FUNC); |
| 9587 |
OS_NATIVE_EXIT(env, that, SetOrigin_FUNC); |
9587 |
return rc; |
| 9588 |
} |
9588 |
} |
| 9589 |
#endif |
9589 |
#endif |
| 9590 |
|
9590 |
|
| 9591 |
#ifndef NO_SetPort |
9591 |
#ifndef NO_SetMenuItemIconHandle |
| 9592 |
JNIEXPORT void JNICALL OS_NATIVE(SetPort) |
9592 |
JNIEXPORT jint JNICALL OS_NATIVE(SetMenuItemIconHandle) |
| 9593 |
(JNIEnv *env, jclass that, jint arg0) |
9593 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jbyte arg2, jint arg3) |
| 9594 |
{ |
9594 |
{ |
| 9595 |
OS_NATIVE_ENTER(env, that, SetPort_FUNC); |
9595 |
jint rc = 0; |
| 9596 |
SetPort((GrafPtr)arg0); |
9596 |
OS_NATIVE_ENTER(env, that, SetMenuItemIconHandle_FUNC); |
| 9597 |
OS_NATIVE_EXIT(env, that, SetPort_FUNC); |
9597 |
rc = (jint)SetMenuItemIconHandle((MenuRef)arg0, (SInt16)arg1, (UInt8)arg2, (Handle)arg3); |
| 9598 |
} |
9598 |
OS_NATIVE_EXIT(env, that, SetMenuItemIconHandle_FUNC); |
| 9599 |
#endif |
9599 |
return rc; |
| 9600 |
|
9600 |
} |
| 9601 |
#ifndef NO_SetPortBounds |
9601 |
#endif |
| 9602 |
JNIEXPORT void JNICALL OS_NATIVE(SetPortBounds) |
9602 |
|
| 9603 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
9603 |
#ifndef NO_SetMenuItemKeyGlyph |
| 9604 |
{ |
9604 |
JNIEXPORT jint JNICALL OS_NATIVE(SetMenuItemKeyGlyph) |
| 9605 |
Rect _arg1, *lparg1=NULL; |
9605 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshort arg2) |
| 9606 |
OS_NATIVE_ENTER(env, that, SetPortBounds_FUNC); |
9606 |
{ |
| 9607 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
9607 |
jint rc = 0; |
| 9608 |
SetPortBounds((CGrafPtr)arg0, (const Rect *)lparg1); |
9608 |
OS_NATIVE_ENTER(env, that, SetMenuItemKeyGlyph_FUNC); |
| 9609 |
fail: |
9609 |
rc = (jint)SetMenuItemKeyGlyph((MenuRef)arg0, (SInt16)arg1, (SInt16)arg2); |
| 9610 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
9610 |
OS_NATIVE_EXIT(env, that, SetMenuItemKeyGlyph_FUNC); |
| 9611 |
OS_NATIVE_EXIT(env, that, SetPortBounds_FUNC); |
9611 |
return rc; |
| 9612 |
} |
9612 |
} |
| 9613 |
#endif |
9613 |
#endif |
| 9614 |
|
9614 |
|
| 9615 |
#ifndef NO_SetPortWindowPort |
9615 |
#ifndef NO_SetMenuItemModifiers |
| 9616 |
JNIEXPORT void JNICALL OS_NATIVE(SetPortWindowPort) |
9616 |
JNIEXPORT jint JNICALL OS_NATIVE(SetMenuItemModifiers) |
| 9617 |
(JNIEnv *env, jclass that, jint arg0) |
9617 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jbyte arg2) |
| 9618 |
{ |
9618 |
{ |
| 9619 |
OS_NATIVE_ENTER(env, that, SetPortWindowPort_FUNC); |
9619 |
jint rc = 0; |
| 9620 |
SetPortWindowPort((WindowRef)arg0); |
9620 |
OS_NATIVE_ENTER(env, that, SetMenuItemModifiers_FUNC); |
| 9621 |
OS_NATIVE_EXIT(env, that, SetPortWindowPort_FUNC); |
9621 |
rc = (jint)SetMenuItemModifiers((MenuRef)arg0, (SInt16)arg1, (UInt8)arg2); |
| 9622 |
} |
9622 |
OS_NATIVE_EXIT(env, that, SetMenuItemModifiers_FUNC); |
| 9623 |
#endif |
9623 |
return rc; |
| 9624 |
|
9624 |
} |
| 9625 |
#ifndef NO_SetPt |
9625 |
#endif |
| 9626 |
JNIEXPORT void JNICALL OS_NATIVE(SetPt) |
9626 |
|
| 9627 |
(JNIEnv *env, jclass that, jobject arg0, jshort arg1, jshort arg2) |
9627 |
#ifndef NO_SetMenuItemRefCon |
| 9628 |
{ |
9628 |
JNIEXPORT jint JNICALL OS_NATIVE(SetMenuItemRefCon) |
| 9629 |
Point _arg0, *lparg0=NULL; |
9629 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2) |
| 9630 |
OS_NATIVE_ENTER(env, that, SetPt_FUNC); |
9630 |
{ |
| 9631 |
if (arg0) if ((lparg0 = getPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
9631 |
jint rc = 0; |
| 9632 |
SetPt((Point *)lparg0, (short)arg1, (short)arg2); |
9632 |
OS_NATIVE_ENTER(env, that, SetMenuItemRefCon_FUNC); |
| 9633 |
fail: |
9633 |
rc = (jint)SetMenuItemRefCon((MenuRef)arg0, (SInt16)arg1, (UInt32)arg2); |
| 9634 |
if (arg0 && lparg0) setPointFields(env, arg0, lparg0); |
9634 |
OS_NATIVE_EXIT(env, that, SetMenuItemRefCon_FUNC); |
| 9635 |
OS_NATIVE_EXIT(env, that, SetPt_FUNC); |
9635 |
return rc; |
| 9636 |
} |
9636 |
} |
| 9637 |
#endif |
9637 |
#endif |
| 9638 |
|
9638 |
|
| 9639 |
#ifndef NO_SetRect |
9639 |
#ifndef NO_SetMenuItemTextWithCFString |
| 9640 |
JNIEXPORT void JNICALL OS_NATIVE(SetRect) |
9640 |
JNIEXPORT jint JNICALL OS_NATIVE(SetMenuItemTextWithCFString) |
| 9641 |
(JNIEnv *env, jclass that, jobject arg0, jshort arg1, jshort arg2, jshort arg3, jshort arg4) |
9641 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jint arg2) |
| 9642 |
{ |
9642 |
{ |
| 9643 |
Rect _arg0, *lparg0=NULL; |
9643 |
jint rc = 0; |
| 9644 |
OS_NATIVE_ENTER(env, that, SetRect_FUNC); |
9644 |
OS_NATIVE_ENTER(env, that, SetMenuItemTextWithCFString_FUNC); |
| 9645 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
9645 |
rc = (jint)SetMenuItemTextWithCFString((MenuRef)arg0, (MenuItemIndex)arg1, (CFStringRef)arg2); |
| 9646 |
SetRect((Rect *)lparg0, (short)arg1, (short)arg2, (short)arg3, (short)arg4); |
9646 |
OS_NATIVE_EXIT(env, that, SetMenuItemTextWithCFString_FUNC); |
| 9647 |
fail: |
9647 |
return rc; |
| 9648 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
9648 |
} |
| 9649 |
OS_NATIVE_EXIT(env, that, SetRect_FUNC); |
9649 |
#endif |
| 9650 |
} |
9650 |
|
| 9651 |
#endif |
9651 |
#ifndef NO_SetMenuTitleWithCFString |
| 9652 |
|
9652 |
JNIEXPORT jint JNICALL OS_NATIVE(SetMenuTitleWithCFString) |
| 9653 |
#ifndef NO_SetRectRgn |
9653 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 9654 |
JNIEXPORT void JNICALL OS_NATIVE(SetRectRgn) |
9654 |
{ |
| 9655 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshort arg2, jshort arg3, jshort arg4) |
9655 |
jint rc = 0; |
| 9656 |
{ |
9656 |
OS_NATIVE_ENTER(env, that, SetMenuTitleWithCFString_FUNC); |
| 9657 |
OS_NATIVE_ENTER(env, that, SetRectRgn_FUNC); |
9657 |
rc = (jint)SetMenuTitleWithCFString((MenuRef)arg0, (CFStringRef)arg1); |
| 9658 |
SetRectRgn((RgnHandle)arg0, (short)arg1, (short)arg2, (short)arg3, (short)arg4); |
9658 |
OS_NATIVE_EXIT(env, that, SetMenuTitleWithCFString_FUNC); |
| 9659 |
OS_NATIVE_EXIT(env, that, SetRectRgn_FUNC); |
9659 |
return rc; |
| 9660 |
} |
9660 |
} |
| 9661 |
#endif |
9661 |
#endif |
| 9662 |
|
9662 |
|
| 9663 |
#ifndef NO_SetRootMenu |
9663 |
#ifndef NO_SetOrigin |
| 9664 |
JNIEXPORT jint JNICALL OS_NATIVE(SetRootMenu) |
9664 |
JNIEXPORT void JNICALL OS_NATIVE(SetOrigin) |
| 9665 |
(JNIEnv *env, jclass that, jint arg0) |
9665 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1) |
| 9666 |
{ |
9666 |
{ |
| 9667 |
jint rc = 0; |
9667 |
OS_NATIVE_ENTER(env, that, SetOrigin_FUNC); |
| 9668 |
OS_NATIVE_ENTER(env, that, SetRootMenu_FUNC); |
9668 |
SetOrigin((short)arg0, (short)arg1); |
| 9669 |
rc = (jint)SetRootMenu((MenuRef)arg0); |
9669 |
OS_NATIVE_EXIT(env, that, SetOrigin_FUNC); |
| 9670 |
OS_NATIVE_EXIT(env, that, SetRootMenu_FUNC); |
9670 |
} |
| 9671 |
return rc; |
9671 |
#endif |
| 9672 |
} |
9672 |
|
| 9673 |
#endif |
9673 |
#ifndef NO_SetPort |
| 9674 |
|
9674 |
JNIEXPORT void JNICALL OS_NATIVE(SetPort) |
| 9675 |
#ifndef NO_SetThemeBackground |
9675 |
(JNIEnv *env, jclass that, jint arg0) |
| 9676 |
JNIEXPORT jint JNICALL OS_NATIVE(SetThemeBackground) |
9676 |
{ |
| 9677 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1, jboolean arg2) |
9677 |
OS_NATIVE_ENTER(env, that, SetPort_FUNC); |
| 9678 |
{ |
9678 |
SetPort((GrafPtr)arg0); |
| 9679 |
jint rc = 0; |
9679 |
OS_NATIVE_EXIT(env, that, SetPort_FUNC); |
| 9680 |
OS_NATIVE_ENTER(env, that, SetThemeBackground_FUNC); |
9680 |
} |
| 9681 |
rc = (jint)SetThemeBackground((ThemeBrush)arg0, (SInt16)arg1, (Boolean)arg2); |
9681 |
#endif |
| 9682 |
OS_NATIVE_EXIT(env, that, SetThemeBackground_FUNC); |
9682 |
|
| 9683 |
return rc; |
9683 |
#ifndef NO_SetPortBounds |
| 9684 |
} |
9684 |
JNIEXPORT void JNICALL OS_NATIVE(SetPortBounds) |
| 9685 |
#endif |
9685 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 9686 |
|
9686 |
{ |
| 9687 |
#ifndef NO_SetThemeCursor |
9687 |
Rect _arg1, *lparg1=NULL; |
| 9688 |
JNIEXPORT jint JNICALL OS_NATIVE(SetThemeCursor) |
9688 |
OS_NATIVE_ENTER(env, that, SetPortBounds_FUNC); |
| 9689 |
(JNIEnv *env, jclass that, jint arg0) |
9689 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 9690 |
{ |
9690 |
SetPortBounds((CGrafPtr)arg0, (const Rect *)lparg1); |
| 9691 |
jint rc = 0; |
9691 |
fail: |
| 9692 |
OS_NATIVE_ENTER(env, that, SetThemeCursor_FUNC); |
9692 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 9693 |
rc = (jint)SetThemeCursor((ThemeCursor)arg0); |
9693 |
OS_NATIVE_EXIT(env, that, SetPortBounds_FUNC); |
| 9694 |
OS_NATIVE_EXIT(env, that, SetThemeCursor_FUNC); |
9694 |
} |
| 9695 |
return rc; |
9695 |
#endif |
| 9696 |
} |
9696 |
|
| 9697 |
#endif |
9697 |
#ifndef NO_SetPortWindowPort |
| 9698 |
|
9698 |
JNIEXPORT void JNICALL OS_NATIVE(SetPortWindowPort) |
| 9699 |
#ifndef NO_SetThemeDrawingState |
9699 |
(JNIEnv *env, jclass that, jint arg0) |
| 9700 |
JNIEXPORT jint JNICALL OS_NATIVE(SetThemeDrawingState) |
9700 |
{ |
| 9701 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
9701 |
OS_NATIVE_ENTER(env, that, SetPortWindowPort_FUNC); |
| 9702 |
{ |
9702 |
SetPortWindowPort((WindowRef)arg0); |
| 9703 |
jint rc = 0; |
9703 |
OS_NATIVE_EXIT(env, that, SetPortWindowPort_FUNC); |
| 9704 |
OS_NATIVE_ENTER(env, that, SetThemeDrawingState_FUNC); |
9704 |
} |
| 9705 |
rc = (jint)SetThemeDrawingState((ThemeDrawingState)arg0, (Boolean)arg1); |
9705 |
#endif |
| 9706 |
OS_NATIVE_EXIT(env, that, SetThemeDrawingState_FUNC); |
9706 |
|
| 9707 |
return rc; |
9707 |
#ifndef NO_SetPt |
| 9708 |
} |
9708 |
JNIEXPORT void JNICALL OS_NATIVE(SetPt) |
| 9709 |
#endif |
9709 |
(JNIEnv *env, jclass that, jobject arg0, jshort arg1, jshort arg2) |
| 9710 |
|
9710 |
{ |
| 9711 |
#ifndef NO_SetThemeTextColor |
9711 |
Point _arg0, *lparg0=NULL; |
| 9712 |
JNIEXPORT jint JNICALL OS_NATIVE(SetThemeTextColor) |
9712 |
OS_NATIVE_ENTER(env, that, SetPt_FUNC); |
| 9713 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1, jboolean arg2) |
9713 |
if (arg0) if ((lparg0 = getPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 9714 |
{ |
9714 |
SetPt((Point *)lparg0, (short)arg1, (short)arg2); |
| 9715 |
jint rc = 0; |
9715 |
fail: |
| 9716 |
OS_NATIVE_ENTER(env, that, SetThemeTextColor_FUNC); |
9716 |
if (arg0 && lparg0) setPointFields(env, arg0, lparg0); |
| 9717 |
rc = (jint)SetThemeTextColor(arg0, arg1, arg2); |
9717 |
OS_NATIVE_EXIT(env, that, SetPt_FUNC); |
| 9718 |
OS_NATIVE_EXIT(env, that, SetThemeTextColor_FUNC); |
9718 |
} |
| 9719 |
return rc; |
9719 |
#endif |
| 9720 |
} |
9720 |
|
| 9721 |
#endif |
9721 |
#ifndef NO_SetRect |
| 9722 |
|
9722 |
JNIEXPORT void JNICALL OS_NATIVE(SetRect) |
| 9723 |
#ifndef NO_SetThemeWindowBackground |
9723 |
(JNIEnv *env, jclass that, jobject arg0, jshort arg1, jshort arg2, jshort arg3, jshort arg4) |
| 9724 |
JNIEXPORT jint JNICALL OS_NATIVE(SetThemeWindowBackground) |
9724 |
{ |
| 9725 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jboolean arg2) |
9725 |
Rect _arg0, *lparg0=NULL; |
| 9726 |
{ |
9726 |
OS_NATIVE_ENTER(env, that, SetRect_FUNC); |
| 9727 |
jint rc = 0; |
9727 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 9728 |
OS_NATIVE_ENTER(env, that, SetThemeWindowBackground_FUNC); |
9728 |
SetRect((Rect *)lparg0, (short)arg1, (short)arg2, (short)arg3, (short)arg4); |
| 9729 |
rc = (jint)SetThemeWindowBackground((WindowRef)arg0, (ThemeBrush)arg1, (Boolean)arg2); |
9729 |
fail: |
| 9730 |
OS_NATIVE_EXIT(env, that, SetThemeWindowBackground_FUNC); |
9730 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 9731 |
return rc; |
9731 |
OS_NATIVE_EXIT(env, that, SetRect_FUNC); |
| 9732 |
} |
9732 |
} |
| 9733 |
#endif |
9733 |
#endif |
| 9734 |
|
9734 |
|
| 9735 |
#ifndef NO_SetUpControlBackground |
9735 |
#ifndef NO_SetRectRgn |
| 9736 |
JNIEXPORT jint JNICALL OS_NATIVE(SetUpControlBackground) |
9736 |
JNIEXPORT void JNICALL OS_NATIVE(SetRectRgn) |
| 9737 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jboolean arg2) |
9737 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshort arg2, jshort arg3, jshort arg4) |
| 9738 |
{ |
9738 |
{ |
| 9739 |
jint rc = 0; |
9739 |
OS_NATIVE_ENTER(env, that, SetRectRgn_FUNC); |
| 9740 |
OS_NATIVE_ENTER(env, that, SetUpControlBackground_FUNC); |
9740 |
SetRectRgn((RgnHandle)arg0, (short)arg1, (short)arg2, (short)arg3, (short)arg4); |
| 9741 |
rc = (jint)SetUpControlBackground((ControlRef)arg0, (SInt16)arg1, (Boolean)arg2); |
9741 |
OS_NATIVE_EXIT(env, that, SetRectRgn_FUNC); |
| 9742 |
OS_NATIVE_EXIT(env, that, SetUpControlBackground_FUNC); |
9742 |
} |
| 9743 |
return rc; |
9743 |
#endif |
| 9744 |
} |
9744 |
|
| 9745 |
#endif |
9745 |
#ifndef NO_SetRootMenu |
| 9746 |
|
9746 |
JNIEXPORT jint JNICALL OS_NATIVE(SetRootMenu) |
| 9747 |
#ifndef NO_SetWRefCon |
9747 |
(JNIEnv *env, jclass that, jint arg0) |
| 9748 |
JNIEXPORT void JNICALL OS_NATIVE(SetWRefCon) |
9748 |
{ |
| 9749 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
9749 |
jint rc = 0; |
| 9750 |
{ |
9750 |
OS_NATIVE_ENTER(env, that, SetRootMenu_FUNC); |
| 9751 |
OS_NATIVE_ENTER(env, that, SetWRefCon_FUNC); |
9751 |
rc = (jint)SetRootMenu((MenuRef)arg0); |
| 9752 |
SetWRefCon((WindowRef)arg0, (long)arg1); |
9752 |
OS_NATIVE_EXIT(env, that, SetRootMenu_FUNC); |
| 9753 |
OS_NATIVE_EXIT(env, that, SetWRefCon_FUNC); |
9753 |
return rc; |
| 9754 |
} |
9754 |
} |
| 9755 |
#endif |
9755 |
#endif |
| 9756 |
|
9756 |
|
| 9757 |
#ifndef NO_SetWindowActivationScope |
9757 |
#ifndef NO_SetThemeBackground |
| 9758 |
JNIEXPORT jint JNICALL OS_NATIVE(SetWindowActivationScope) |
9758 |
JNIEXPORT jint JNICALL OS_NATIVE(SetThemeBackground) |
| 9759 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
9759 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1, jboolean arg2) |
| 9760 |
{ |
9760 |
{ |
| 9761 |
jint rc = 0; |
9761 |
jint rc = 0; |
| 9762 |
OS_NATIVE_ENTER(env, that, SetWindowActivationScope_FUNC); |
9762 |
OS_NATIVE_ENTER(env, that, SetThemeBackground_FUNC); |
| 9763 |
rc = (jint)SetWindowActivationScope((WindowRef)arg0, (WindowActivationScope)arg1); |
9763 |
rc = (jint)SetThemeBackground((ThemeBrush)arg0, (SInt16)arg1, (Boolean)arg2); |
| 9764 |
OS_NATIVE_EXIT(env, that, SetWindowActivationScope_FUNC); |
9764 |
OS_NATIVE_EXIT(env, that, SetThemeBackground_FUNC); |
| 9765 |
return rc; |
9765 |
return rc; |
| 9766 |
} |
9766 |
} |
| 9767 |
#endif |
9767 |
#endif |
| 9768 |
|
9768 |
|
| 9769 |
#ifndef NO_SetWindowBounds |
9769 |
#ifndef NO_SetThemeCursor |
| 9770 |
JNIEXPORT void JNICALL OS_NATIVE(SetWindowBounds) |
9770 |
JNIEXPORT jint JNICALL OS_NATIVE(SetThemeCursor) |
| 9771 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2) |
9771 |
(JNIEnv *env, jclass that, jint arg0) |
| 9772 |
{ |
9772 |
{ |
| 9773 |
Rect _arg2, *lparg2=NULL; |
9773 |
jint rc = 0; |
| 9774 |
OS_NATIVE_ENTER(env, that, SetWindowBounds_FUNC); |
9774 |
OS_NATIVE_ENTER(env, that, SetThemeCursor_FUNC); |
| 9775 |
if (arg2) if ((lparg2 = getRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
9775 |
rc = (jint)SetThemeCursor((ThemeCursor)arg0); |
| 9776 |
SetWindowBounds((WindowRef)arg0, (WindowRegionCode)arg1, (Rect *)lparg2); |
9776 |
OS_NATIVE_EXIT(env, that, SetThemeCursor_FUNC); |
| 9777 |
fail: |
9777 |
return rc; |
| 9778 |
if (arg2 && lparg2) setRectFields(env, arg2, lparg2); |
9778 |
} |
| 9779 |
OS_NATIVE_EXIT(env, that, SetWindowBounds_FUNC); |
9779 |
#endif |
| 9780 |
} |
9780 |
|
| 9781 |
#endif |
9781 |
#ifndef NO_SetThemeDrawingState |
| 9782 |
|
9782 |
JNIEXPORT jint JNICALL OS_NATIVE(SetThemeDrawingState) |
| 9783 |
#ifndef NO_SetWindowDefaultButton |
9783 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
| 9784 |
JNIEXPORT jint JNICALL OS_NATIVE(SetWindowDefaultButton) |
9784 |
{ |
| 9785 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
9785 |
jint rc = 0; |
| 9786 |
{ |
9786 |
OS_NATIVE_ENTER(env, that, SetThemeDrawingState_FUNC); |
| 9787 |
jint rc = 0; |
9787 |
rc = (jint)SetThemeDrawingState((ThemeDrawingState)arg0, (Boolean)arg1); |
| 9788 |
OS_NATIVE_ENTER(env, that, SetWindowDefaultButton_FUNC); |
9788 |
OS_NATIVE_EXIT(env, that, SetThemeDrawingState_FUNC); |
| 9789 |
rc = (jint)SetWindowDefaultButton((WindowRef)arg0, (ControlRef)arg1); |
9789 |
return rc; |
| 9790 |
OS_NATIVE_EXIT(env, that, SetWindowDefaultButton_FUNC); |
9790 |
} |
| 9791 |
return rc; |
9791 |
#endif |
| 9792 |
} |
9792 |
|
| 9793 |
#endif |
9793 |
#ifndef NO_SetThemeTextColor |
| 9794 |
|
9794 |
JNIEXPORT jint JNICALL OS_NATIVE(SetThemeTextColor) |
| 9795 |
#ifndef NO_SetWindowGroup |
9795 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1, jboolean arg2) |
| 9796 |
JNIEXPORT jint JNICALL OS_NATIVE(SetWindowGroup) |
9796 |
{ |
| 9797 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
9797 |
jint rc = 0; |
| 9798 |
{ |
9798 |
OS_NATIVE_ENTER(env, that, SetThemeTextColor_FUNC); |
| 9799 |
jint rc = 0; |
9799 |
rc = (jint)SetThemeTextColor(arg0, arg1, arg2); |
| 9800 |
OS_NATIVE_ENTER(env, that, SetWindowGroup_FUNC); |
9800 |
OS_NATIVE_EXIT(env, that, SetThemeTextColor_FUNC); |
| 9801 |
rc = (jint)SetWindowGroup((WindowRef)arg0, (WindowGroupRef)arg1); |
9801 |
return rc; |
| 9802 |
OS_NATIVE_EXIT(env, that, SetWindowGroup_FUNC); |
9802 |
} |
| 9803 |
return rc; |
9803 |
#endif |
| 9804 |
} |
9804 |
|
| 9805 |
#endif |
9805 |
#ifndef NO_SetThemeWindowBackground |
| 9806 |
|
9806 |
JNIEXPORT jint JNICALL OS_NATIVE(SetThemeWindowBackground) |
| 9807 |
#ifndef NO_SetWindowGroupOwner |
9807 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jboolean arg2) |
| 9808 |
JNIEXPORT jint JNICALL OS_NATIVE(SetWindowGroupOwner) |
9808 |
{ |
| 9809 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
9809 |
jint rc = 0; |
| 9810 |
{ |
9810 |
OS_NATIVE_ENTER(env, that, SetThemeWindowBackground_FUNC); |
| 9811 |
jint rc = 0; |
9811 |
rc = (jint)SetThemeWindowBackground((WindowRef)arg0, (ThemeBrush)arg1, (Boolean)arg2); |
| 9812 |
OS_NATIVE_ENTER(env, that, SetWindowGroupOwner_FUNC); |
9812 |
OS_NATIVE_EXIT(env, that, SetThemeWindowBackground_FUNC); |
| 9813 |
rc = (jint)SetWindowGroupOwner((WindowGroupRef)arg0, (WindowRef)arg1); |
9813 |
return rc; |
| 9814 |
OS_NATIVE_EXIT(env, that, SetWindowGroupOwner_FUNC); |
9814 |
} |
| 9815 |
return rc; |
9815 |
#endif |
| 9816 |
} |
9816 |
|
| 9817 |
#endif |
9817 |
#ifndef NO_SetUpControlBackground |
| 9818 |
|
9818 |
JNIEXPORT jint JNICALL OS_NATIVE(SetUpControlBackground) |
| 9819 |
#ifndef NO_SetWindowGroupParent |
9819 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jboolean arg2) |
| 9820 |
JNIEXPORT jint JNICALL OS_NATIVE(SetWindowGroupParent) |
9820 |
{ |
| 9821 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
9821 |
jint rc = 0; |
| 9822 |
{ |
9822 |
OS_NATIVE_ENTER(env, that, SetUpControlBackground_FUNC); |
| 9823 |
jint rc = 0; |
9823 |
rc = (jint)SetUpControlBackground((ControlRef)arg0, (SInt16)arg1, (Boolean)arg2); |
| 9824 |
OS_NATIVE_ENTER(env, that, SetWindowGroupParent_FUNC); |
9824 |
OS_NATIVE_EXIT(env, that, SetUpControlBackground_FUNC); |
| 9825 |
rc = (jint)SetWindowGroupParent((WindowGroupRef)arg0, (WindowGroupRef)arg1); |
9825 |
return rc; |
| 9826 |
OS_NATIVE_EXIT(env, that, SetWindowGroupParent_FUNC); |
9826 |
} |
| 9827 |
return rc; |
9827 |
#endif |
| 9828 |
} |
9828 |
|
| 9829 |
#endif |
9829 |
#ifndef NO_SetWRefCon |
| 9830 |
|
9830 |
JNIEXPORT void JNICALL OS_NATIVE(SetWRefCon) |
| 9831 |
#ifndef NO_SetWindowModality |
9831 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 9832 |
JNIEXPORT jint JNICALL OS_NATIVE(SetWindowModality) |
9832 |
{ |
| 9833 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
9833 |
OS_NATIVE_ENTER(env, that, SetWRefCon_FUNC); |
| 9834 |
{ |
9834 |
SetWRefCon((WindowRef)arg0, (long)arg1); |
| 9835 |
jint rc = 0; |
9835 |
OS_NATIVE_EXIT(env, that, SetWRefCon_FUNC); |
| 9836 |
OS_NATIVE_ENTER(env, that, SetWindowModality_FUNC); |
9836 |
} |
| 9837 |
rc = (jint)SetWindowModality((WindowRef)arg0, (WindowModality)arg1, (WindowRef)arg2); |
9837 |
#endif |
| 9838 |
OS_NATIVE_EXIT(env, that, SetWindowModality_FUNC); |
9838 |
|
| 9839 |
return rc; |
9839 |
#ifndef NO_SetWindowActivationScope |
| 9840 |
} |
9840 |
JNIEXPORT jint JNICALL OS_NATIVE(SetWindowActivationScope) |
| 9841 |
#endif |
9841 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 9842 |
|
9842 |
{ |
| 9843 |
#ifndef NO_SetWindowResizeLimits |
9843 |
jint rc = 0; |
| 9844 |
JNIEXPORT jint JNICALL OS_NATIVE(SetWindowResizeLimits) |
9844 |
OS_NATIVE_ENTER(env, that, SetWindowActivationScope_FUNC); |
| 9845 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jobject arg2) |
9845 |
rc = (jint)SetWindowActivationScope((WindowRef)arg0, (WindowActivationScope)arg1); |
| 9846 |
{ |
9846 |
OS_NATIVE_EXIT(env, that, SetWindowActivationScope_FUNC); |
| 9847 |
CGPoint _arg1, *lparg1=NULL; |
9847 |
return rc; |
| 9848 |
CGPoint _arg2, *lparg2=NULL; |
9848 |
} |
| 9849 |
jint rc = 0; |
9849 |
#endif |
| 9850 |
OS_NATIVE_ENTER(env, that, SetWindowResizeLimits_FUNC); |
9850 |
|
| 9851 |
if (arg1) if ((lparg1 = getCGPointFields(env, arg1, &_arg1)) == NULL) goto fail; |
9851 |
#ifndef NO_SetWindowBounds |
| 9852 |
if (arg2) if ((lparg2 = getCGPointFields(env, arg2, &_arg2)) == NULL) goto fail; |
9852 |
JNIEXPORT void JNICALL OS_NATIVE(SetWindowBounds) |
| 9853 |
rc = (jint)SetWindowResizeLimits((WindowRef)arg0, (HISize *)lparg1, (HISize *)lparg2); |
9853 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2) |
| 9854 |
fail: |
9854 |
{ |
| 9855 |
if (arg2 && lparg2) setCGPointFields(env, arg2, lparg2); |
9855 |
Rect _arg2, *lparg2=NULL; |
| 9856 |
if (arg1 && lparg1) setCGPointFields(env, arg1, lparg1); |
9856 |
OS_NATIVE_ENTER(env, that, SetWindowBounds_FUNC); |
| 9857 |
OS_NATIVE_EXIT(env, that, SetWindowResizeLimits_FUNC); |
9857 |
if (arg2) if ((lparg2 = getRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 9858 |
return rc; |
9858 |
SetWindowBounds((WindowRef)arg0, (WindowRegionCode)arg1, (Rect *)lparg2); |
| 9859 |
} |
9859 |
fail: |
| 9860 |
#endif |
9860 |
if (arg2 && lparg2) setRectFields(env, arg2, lparg2); |
| 9861 |
|
9861 |
OS_NATIVE_EXIT(env, that, SetWindowBounds_FUNC); |
| 9862 |
#ifndef NO_SetWindowTitleWithCFString |
9862 |
} |
| 9863 |
JNIEXPORT jint JNICALL OS_NATIVE(SetWindowTitleWithCFString) |
9863 |
#endif |
| 9864 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
9864 |
|
| 9865 |
{ |
9865 |
#ifndef NO_SetWindowDefaultButton |
| 9866 |
jint rc = 0; |
9866 |
JNIEXPORT jint JNICALL OS_NATIVE(SetWindowDefaultButton) |
| 9867 |
OS_NATIVE_ENTER(env, that, SetWindowTitleWithCFString_FUNC); |
9867 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 9868 |
rc = (jint)SetWindowTitleWithCFString((WindowRef)arg0, (CFStringRef)arg1); |
9868 |
{ |
| 9869 |
OS_NATIVE_EXIT(env, that, SetWindowTitleWithCFString_FUNC); |
9869 |
jint rc = 0; |
| 9870 |
return rc; |
9870 |
OS_NATIVE_ENTER(env, that, SetWindowDefaultButton_FUNC); |
| 9871 |
} |
9871 |
rc = (jint)SetWindowDefaultButton((WindowRef)arg0, (ControlRef)arg1); |
| 9872 |
#endif |
9872 |
OS_NATIVE_EXIT(env, that, SetWindowDefaultButton_FUNC); |
| 9873 |
|
9873 |
return rc; |
| 9874 |
#ifndef NO_ShowWindow |
9874 |
} |
| 9875 |
JNIEXPORT void JNICALL OS_NATIVE(ShowWindow) |
9875 |
#endif |
| 9876 |
(JNIEnv *env, jclass that, jint arg0) |
9876 |
|
| 9877 |
{ |
9877 |
#ifndef NO_SetWindowGroup |
| 9878 |
OS_NATIVE_ENTER(env, that, ShowWindow_FUNC); |
9878 |
JNIEXPORT jint JNICALL OS_NATIVE(SetWindowGroup) |
| 9879 |
ShowWindow((WindowRef)arg0); |
9879 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 9880 |
OS_NATIVE_EXIT(env, that, ShowWindow_FUNC); |
9880 |
{ |
| 9881 |
} |
9881 |
jint rc = 0; |
| 9882 |
#endif |
9882 |
OS_NATIVE_ENTER(env, that, SetWindowGroup_FUNC); |
| 9883 |
|
9883 |
rc = (jint)SetWindowGroup((WindowRef)arg0, (WindowGroupRef)arg1); |
| 9884 |
#ifndef NO_SizeControl |
9884 |
OS_NATIVE_EXIT(env, that, SetWindowGroup_FUNC); |
| 9885 |
JNIEXPORT void JNICALL OS_NATIVE(SizeControl) |
9885 |
return rc; |
| 9886 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshort arg2) |
9886 |
} |
| 9887 |
{ |
9887 |
#endif |
| 9888 |
OS_NATIVE_ENTER(env, that, SizeControl_FUNC); |
9888 |
|
| 9889 |
SizeControl((ControlRef)arg0, (SInt16)arg1, (SInt16)arg2); |
9889 |
#ifndef NO_SetWindowGroupOwner |
| 9890 |
OS_NATIVE_EXIT(env, that, SizeControl_FUNC); |
9890 |
JNIEXPORT jint JNICALL OS_NATIVE(SetWindowGroupOwner) |
| 9891 |
} |
9891 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 9892 |
#endif |
9892 |
{ |
| 9893 |
|
9893 |
jint rc = 0; |
| 9894 |
#ifndef NO_SizeWindow |
9894 |
OS_NATIVE_ENTER(env, that, SetWindowGroupOwner_FUNC); |
| 9895 |
JNIEXPORT void JNICALL OS_NATIVE(SizeWindow) |
9895 |
rc = (jint)SetWindowGroupOwner((WindowGroupRef)arg0, (WindowRef)arg1); |
| 9896 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshort arg2, jboolean arg3) |
9896 |
OS_NATIVE_EXIT(env, that, SetWindowGroupOwner_FUNC); |
| 9897 |
{ |
9897 |
return rc; |
| 9898 |
OS_NATIVE_ENTER(env, that, SizeWindow_FUNC); |
9898 |
} |
| 9899 |
SizeWindow((WindowRef)arg0, (short)arg1, (short)arg2, (Boolean)arg3); |
9899 |
#endif |
| 9900 |
OS_NATIVE_EXIT(env, that, SizeWindow_FUNC); |
9900 |
|
| 9901 |
} |
9901 |
#ifndef NO_SetWindowGroupParent |
| 9902 |
#endif |
9902 |
JNIEXPORT jint JNICALL OS_NATIVE(SetWindowGroupParent) |
| 9903 |
|
9903 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 9904 |
#ifndef NO_StillDown |
9904 |
{ |
| 9905 |
JNIEXPORT jboolean JNICALL OS_NATIVE(StillDown) |
9905 |
jint rc = 0; |
| 9906 |
(JNIEnv *env, jclass that) |
9906 |
OS_NATIVE_ENTER(env, that, SetWindowGroupParent_FUNC); |
| 9907 |
{ |
9907 |
rc = (jint)SetWindowGroupParent((WindowGroupRef)arg0, (WindowGroupRef)arg1); |
| 9908 |
jboolean rc = 0; |
9908 |
OS_NATIVE_EXIT(env, that, SetWindowGroupParent_FUNC); |
| 9909 |
OS_NATIVE_ENTER(env, that, StillDown_FUNC); |
9909 |
return rc; |
| 9910 |
rc = (jboolean)StillDown(); |
9910 |
} |
| 9911 |
OS_NATIVE_EXIT(env, that, StillDown_FUNC); |
9911 |
#endif |
| 9912 |
return rc; |
9912 |
|
| 9913 |
} |
9913 |
#ifndef NO_SetWindowModality |
| 9914 |
#endif |
9914 |
JNIEXPORT jint JNICALL OS_NATIVE(SetWindowModality) |
| 9915 |
|
9915 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 9916 |
#ifndef NO_SyncCGContextOriginWithPort |
9916 |
{ |
| 9917 |
JNIEXPORT jint JNICALL OS_NATIVE(SyncCGContextOriginWithPort) |
9917 |
jint rc = 0; |
| 9918 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
9918 |
OS_NATIVE_ENTER(env, that, SetWindowModality_FUNC); |
| 9919 |
{ |
9919 |
rc = (jint)SetWindowModality((WindowRef)arg0, (WindowModality)arg1, (WindowRef)arg2); |
| 9920 |
jint rc = 0; |
9920 |
OS_NATIVE_EXIT(env, that, SetWindowModality_FUNC); |
| 9921 |
OS_NATIVE_ENTER(env, that, SyncCGContextOriginWithPort_FUNC); |
9921 |
return rc; |
| 9922 |
rc = (jint)SyncCGContextOriginWithPort((CGContextRef)arg0, (CGrafPtr)arg1); |
9922 |
} |
| 9923 |
OS_NATIVE_EXIT(env, that, SyncCGContextOriginWithPort_FUNC); |
9923 |
#endif |
| 9924 |
return rc; |
9924 |
|
| 9925 |
} |
9925 |
#ifndef NO_SetWindowResizeLimits |
| 9926 |
#endif |
9926 |
JNIEXPORT jint JNICALL OS_NATIVE(SetWindowResizeLimits) |
| 9927 |
|
9927 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jobject arg2) |
| 9928 |
#ifndef NO_SysBeep |
9928 |
{ |
| 9929 |
JNIEXPORT void JNICALL OS_NATIVE(SysBeep) |
9929 |
CGPoint _arg1, *lparg1=NULL; |
| 9930 |
(JNIEnv *env, jclass that, jshort arg0) |
9930 |
CGPoint _arg2, *lparg2=NULL; |
| 9931 |
{ |
9931 |
jint rc = 0; |
| 9932 |
OS_NATIVE_ENTER(env, that, SysBeep_FUNC); |
9932 |
OS_NATIVE_ENTER(env, that, SetWindowResizeLimits_FUNC); |
| 9933 |
SysBeep((short)arg0); |
9933 |
if (arg1) if ((lparg1 = getCGPointFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 9934 |
OS_NATIVE_EXIT(env, that, SysBeep_FUNC); |
9934 |
if (arg2) if ((lparg2 = getCGPointFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 9935 |
} |
9935 |
rc = (jint)SetWindowResizeLimits((WindowRef)arg0, (HISize *)lparg1, (HISize *)lparg2); |
| 9936 |
#endif |
9936 |
fail: |
| 9937 |
|
9937 |
if (arg2 && lparg2) setCGPointFields(env, arg2, lparg2); |
| 9938 |
#ifndef NO_TXNActivate |
9938 |
if (arg1 && lparg1) setCGPointFields(env, arg1, lparg1); |
| 9939 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNActivate) |
9939 |
OS_NATIVE_EXIT(env, that, SetWindowResizeLimits_FUNC); |
| 9940 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2) |
9940 |
return rc; |
| 9941 |
{ |
9941 |
} |
| 9942 |
jint rc = 0; |
9942 |
#endif |
| 9943 |
OS_NATIVE_ENTER(env, that, TXNActivate_FUNC); |
9943 |
|
| 9944 |
rc = (jint)TXNActivate((TXNObject)arg0, (TXNFrameID)arg1, (TXNScrollBarState)arg2); |
9944 |
#ifndef NO_SetWindowTitleWithCFString |
| 9945 |
OS_NATIVE_EXIT(env, that, TXNActivate_FUNC); |
9945 |
JNIEXPORT jint JNICALL OS_NATIVE(SetWindowTitleWithCFString) |
| 9946 |
return rc; |
9946 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 9947 |
} |
9947 |
{ |
| 9948 |
#endif |
9948 |
jint rc = 0; |
| 9949 |
|
9949 |
OS_NATIVE_ENTER(env, that, SetWindowTitleWithCFString_FUNC); |
| 9950 |
#ifndef NO_TXNAdjustCursor |
9950 |
rc = (jint)SetWindowTitleWithCFString((WindowRef)arg0, (CFStringRef)arg1); |
| 9951 |
JNIEXPORT void JNICALL OS_NATIVE(TXNAdjustCursor) |
9951 |
OS_NATIVE_EXIT(env, that, SetWindowTitleWithCFString_FUNC); |
| 9952 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
9952 |
return rc; |
| 9953 |
{ |
9953 |
} |
| 9954 |
OS_NATIVE_ENTER(env, that, TXNAdjustCursor_FUNC); |
9954 |
#endif |
| 9955 |
TXNAdjustCursor((TXNObject)arg0, (RgnHandle)arg1); |
9955 |
|
| 9956 |
OS_NATIVE_EXIT(env, that, TXNAdjustCursor_FUNC); |
9956 |
#ifndef NO_ShowWindow |
| 9957 |
} |
9957 |
JNIEXPORT void JNICALL OS_NATIVE(ShowWindow) |
| 9958 |
#endif |
9958 |
(JNIEnv *env, jclass that, jint arg0) |
| 9959 |
|
9959 |
{ |
| 9960 |
#ifndef NO_TXNClick |
9960 |
OS_NATIVE_ENTER(env, that, ShowWindow_FUNC); |
| 9961 |
JNIEXPORT void JNICALL OS_NATIVE(TXNClick) |
9961 |
ShowWindow((WindowRef)arg0); |
| 9962 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
9962 |
OS_NATIVE_EXIT(env, that, ShowWindow_FUNC); |
| 9963 |
{ |
9963 |
} |
| 9964 |
EventRecord _arg1, *lparg1=NULL; |
9964 |
#endif |
| 9965 |
OS_NATIVE_ENTER(env, that, TXNClick_FUNC); |
9965 |
|
| 9966 |
if (arg1) if ((lparg1 = getEventRecordFields(env, arg1, &_arg1)) == NULL) goto fail; |
9966 |
#ifndef NO_SizeControl |
| 9967 |
TXNClick((TXNObject)arg0, (const EventRecord *)lparg1); |
9967 |
JNIEXPORT void JNICALL OS_NATIVE(SizeControl) |
| 9968 |
fail: |
9968 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshort arg2) |
| 9969 |
if (arg1 && lparg1) setEventRecordFields(env, arg1, lparg1); |
9969 |
{ |
| 9970 |
OS_NATIVE_EXIT(env, that, TXNClick_FUNC); |
9970 |
OS_NATIVE_ENTER(env, that, SizeControl_FUNC); |
| 9971 |
} |
9971 |
SizeControl((ControlRef)arg0, (SInt16)arg1, (SInt16)arg2); |
| 9972 |
#endif |
9972 |
OS_NATIVE_EXIT(env, that, SizeControl_FUNC); |
| 9973 |
|
9973 |
} |
| 9974 |
#ifndef NO_TXNCopy |
9974 |
#endif |
| 9975 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNCopy) |
9975 |
|
| 9976 |
(JNIEnv *env, jclass that, jint arg0) |
9976 |
#ifndef NO_SizeWindow |
| 9977 |
{ |
9977 |
JNIEXPORT void JNICALL OS_NATIVE(SizeWindow) |
| 9978 |
jint rc = 0; |
9978 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jshort arg2, jboolean arg3) |
| 9979 |
OS_NATIVE_ENTER(env, that, TXNCopy_FUNC); |
9979 |
{ |
| 9980 |
rc = (jint)TXNCopy((TXNObject)arg0); |
9980 |
OS_NATIVE_ENTER(env, that, SizeWindow_FUNC); |
| 9981 |
OS_NATIVE_EXIT(env, that, TXNCopy_FUNC); |
9981 |
SizeWindow((WindowRef)arg0, (short)arg1, (short)arg2, (Boolean)arg3); |
| 9982 |
return rc; |
9982 |
OS_NATIVE_EXIT(env, that, SizeWindow_FUNC); |
| 9983 |
} |
9983 |
} |
| 9984 |
#endif |
9984 |
#endif |
| 9985 |
|
9985 |
|
| 9986 |
#ifndef NO_TXNCut |
9986 |
#ifndef NO_StillDown |
| 9987 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNCut) |
9987 |
JNIEXPORT jboolean JNICALL OS_NATIVE(StillDown) |
| 9988 |
(JNIEnv *env, jclass that, jint arg0) |
9988 |
(JNIEnv *env, jclass that) |
| 9989 |
{ |
9989 |
{ |
| 9990 |
jint rc = 0; |
9990 |
jboolean rc = 0; |
| 9991 |
OS_NATIVE_ENTER(env, that, TXNCut_FUNC); |
9991 |
OS_NATIVE_ENTER(env, that, StillDown_FUNC); |
| 9992 |
rc = (jint)TXNCut((TXNObject)arg0); |
9992 |
rc = (jboolean)StillDown(); |
| 9993 |
OS_NATIVE_EXIT(env, that, TXNCut_FUNC); |
9993 |
OS_NATIVE_EXIT(env, that, StillDown_FUNC); |
| 9994 |
return rc; |
9994 |
return rc; |
| 9995 |
} |
9995 |
} |
| 9996 |
#endif |
9996 |
#endif |
| 9997 |
|
9997 |
|
| 9998 |
#ifndef NO_TXNDataSize |
9998 |
#ifndef NO_SyncCGContextOriginWithPort |
| 9999 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNDataSize) |
9999 |
JNIEXPORT jint JNICALL OS_NATIVE(SyncCGContextOriginWithPort) |
| 10000 |
(JNIEnv *env, jclass that, jint arg0) |
10000 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 10001 |
{ |
10001 |
{ |
| 10002 |
jint rc = 0; |
10002 |
jint rc = 0; |
| 10003 |
OS_NATIVE_ENTER(env, that, TXNDataSize_FUNC); |
10003 |
OS_NATIVE_ENTER(env, that, SyncCGContextOriginWithPort_FUNC); |
| 10004 |
rc = (jint)TXNDataSize((TXNObject)arg0); |
10004 |
rc = (jint)SyncCGContextOriginWithPort((CGContextRef)arg0, (CGrafPtr)arg1); |
| 10005 |
OS_NATIVE_EXIT(env, that, TXNDataSize_FUNC); |
10005 |
OS_NATIVE_EXIT(env, that, SyncCGContextOriginWithPort_FUNC); |
| 10006 |
return rc; |
10006 |
return rc; |
| 10007 |
} |
10007 |
} |
| 10008 |
#endif |
10008 |
#endif |
| 10009 |
|
10009 |
|
| 10010 |
#ifndef NO_TXNDeleteObject |
10010 |
#ifndef NO_SysBeep |
| 10011 |
JNIEXPORT void JNICALL OS_NATIVE(TXNDeleteObject) |
10011 |
JNIEXPORT void JNICALL OS_NATIVE(SysBeep) |
| 10012 |
(JNIEnv *env, jclass that, jint arg0) |
10012 |
(JNIEnv *env, jclass that, jshort arg0) |
| 10013 |
{ |
10013 |
{ |
| 10014 |
OS_NATIVE_ENTER(env, that, TXNDeleteObject_FUNC); |
10014 |
OS_NATIVE_ENTER(env, that, SysBeep_FUNC); |
| 10015 |
TXNDeleteObject((TXNObject)arg0); |
10015 |
SysBeep((short)arg0); |
| 10016 |
OS_NATIVE_EXIT(env, that, TXNDeleteObject_FUNC); |
10016 |
OS_NATIVE_EXIT(env, that, SysBeep_FUNC); |
| 10017 |
} |
10017 |
} |
| 10018 |
#endif |
10018 |
#endif |
| 10019 |
|
10019 |
|
| 10020 |
#ifndef NO_TXNDraw |
10020 |
#ifndef NO_TXNActivate |
| 10021 |
JNIEXPORT void JNICALL OS_NATIVE(TXNDraw) |
10021 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNActivate) |
| 10022 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
10022 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2) |
| 10023 |
{ |
10023 |
{ |
| 10024 |
OS_NATIVE_ENTER(env, that, TXNDraw_FUNC); |
10024 |
jint rc = 0; |
| 10025 |
TXNDraw((TXNObject)arg0, (GWorldPtr)arg1); |
10025 |
OS_NATIVE_ENTER(env, that, TXNActivate_FUNC); |
| 10026 |
OS_NATIVE_EXIT(env, that, TXNDraw_FUNC); |
10026 |
rc = (jint)TXNActivate((TXNObject)arg0, (TXNFrameID)arg1, (TXNScrollBarState)arg2); |
| 10027 |
} |
10027 |
OS_NATIVE_EXIT(env, that, TXNActivate_FUNC); |
| 10028 |
#endif |
10028 |
return rc; |
| 10029 |
|
10029 |
} |
| 10030 |
#ifndef NO_TXNEchoMode |
10030 |
#endif |
| 10031 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNEchoMode) |
10031 |
|
| 10032 |
(JNIEnv *env, jclass that, jint arg0, jchar arg1, jint arg2, jboolean arg3) |
10032 |
#ifndef NO_TXNAdjustCursor |
| 10033 |
{ |
10033 |
JNIEXPORT void JNICALL OS_NATIVE(TXNAdjustCursor) |
| 10034 |
jint rc = 0; |
10034 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 10035 |
OS_NATIVE_ENTER(env, that, TXNEchoMode_FUNC); |
10035 |
{ |
| 10036 |
rc = (jint)TXNEchoMode((TXNObject)arg0, (UniChar)arg1, (TextEncoding)arg2, (Boolean)arg3); |
10036 |
OS_NATIVE_ENTER(env, that, TXNAdjustCursor_FUNC); |
| 10037 |
OS_NATIVE_EXIT(env, that, TXNEchoMode_FUNC); |
10037 |
TXNAdjustCursor((TXNObject)arg0, (RgnHandle)arg1); |
| 10038 |
return rc; |
10038 |
OS_NATIVE_EXIT(env, that, TXNAdjustCursor_FUNC); |
| 10039 |
} |
10039 |
} |
| 10040 |
#endif |
10040 |
#endif |
| 10041 |
|
10041 |
|
| 10042 |
#ifndef NO_TXNFocus |
10042 |
#ifndef NO_TXNClick |
| 10043 |
JNIEXPORT void JNICALL OS_NATIVE(TXNFocus) |
10043 |
JNIEXPORT void JNICALL OS_NATIVE(TXNClick) |
| 10044 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
10044 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 10045 |
{ |
10045 |
{ |
| 10046 |
OS_NATIVE_ENTER(env, that, TXNFocus_FUNC); |
10046 |
EventRecord _arg1, *lparg1=NULL; |
| 10047 |
TXNFocus((TXNObject)arg0, (Boolean)arg1); |
10047 |
OS_NATIVE_ENTER(env, that, TXNClick_FUNC); |
| 10048 |
OS_NATIVE_EXIT(env, that, TXNFocus_FUNC); |
10048 |
if (arg1) if ((lparg1 = getEventRecordFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 10049 |
} |
10049 |
TXNClick((TXNObject)arg0, (const EventRecord *)lparg1); |
| 10050 |
#endif |
10050 |
fail: |
| 10051 |
|
10051 |
if (arg1 && lparg1) setEventRecordFields(env, arg1, lparg1); |
| 10052 |
#ifndef NO_TXNGetData |
10052 |
OS_NATIVE_EXIT(env, that, TXNClick_FUNC); |
| 10053 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNGetData) |
10053 |
} |
| 10054 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3) |
10054 |
#endif |
| 10055 |
{ |
10055 |
|
| 10056 |
jint *lparg3=NULL; |
10056 |
#ifndef NO_TXNCopy |
| 10057 |
jint rc = 0; |
10057 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNCopy) |
| 10058 |
OS_NATIVE_ENTER(env, that, TXNGetData_FUNC); |
10058 |
(JNIEnv *env, jclass that, jint arg0) |
| 10059 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
10059 |
{ |
| 10060 |
rc = (jint)TXNGetData((TXNObject)arg0, (TXNOffset)arg1, (TXNOffset)arg2, (Handle *)lparg3); |
10060 |
jint rc = 0; |
| 10061 |
fail: |
10061 |
OS_NATIVE_ENTER(env, that, TXNCopy_FUNC); |
| 10062 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
10062 |
rc = (jint)TXNCopy((TXNObject)arg0); |
| 10063 |
OS_NATIVE_EXIT(env, that, TXNGetData_FUNC); |
10063 |
OS_NATIVE_EXIT(env, that, TXNCopy_FUNC); |
| 10064 |
return rc; |
10064 |
return rc; |
| 10065 |
} |
10065 |
} |
| 10066 |
#endif |
10066 |
#endif |
| 10067 |
|
10067 |
|
| 10068 |
#ifndef NO_TXNGetLineCount |
10068 |
#ifndef NO_TXNCut |
| 10069 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNGetLineCount) |
10069 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNCut) |
| 10070 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
10070 |
(JNIEnv *env, jclass that, jint arg0) |
| 10071 |
{ |
10071 |
{ |
| 10072 |
jint *lparg1=NULL; |
10072 |
jint rc = 0; |
| 10073 |
jint rc = 0; |
10073 |
OS_NATIVE_ENTER(env, that, TXNCut_FUNC); |
| 10074 |
OS_NATIVE_ENTER(env, that, TXNGetLineCount_FUNC); |
10074 |
rc = (jint)TXNCut((TXNObject)arg0); |
| 10075 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
10075 |
OS_NATIVE_EXIT(env, that, TXNCut_FUNC); |
| 10076 |
rc = (jint)TXNGetLineCount((TXNObject)arg0, (ItemCount *)lparg1); |
10076 |
return rc; |
| 10077 |
fail: |
10077 |
} |
| 10078 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
10078 |
#endif |
| 10079 |
OS_NATIVE_EXIT(env, that, TXNGetLineCount_FUNC); |
10079 |
|
| 10080 |
return rc; |
10080 |
#ifndef NO_TXNDataSize |
| 10081 |
} |
10081 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNDataSize) |
| 10082 |
#endif |
10082 |
(JNIEnv *env, jclass that, jint arg0) |
| 10083 |
|
10083 |
{ |
| 10084 |
#ifndef NO_TXNGetLineMetrics |
10084 |
jint rc = 0; |
| 10085 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNGetLineMetrics) |
10085 |
OS_NATIVE_ENTER(env, that, TXNDataSize_FUNC); |
| 10086 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2, jintArray arg3) |
10086 |
rc = (jint)TXNDataSize((TXNObject)arg0); |
| 10087 |
{ |
10087 |
OS_NATIVE_EXIT(env, that, TXNDataSize_FUNC); |
| 10088 |
jint *lparg2=NULL; |
10088 |
return rc; |
| 10089 |
jint *lparg3=NULL; |
10089 |
} |
| 10090 |
jint rc = 0; |
10090 |
#endif |
| 10091 |
OS_NATIVE_ENTER(env, that, TXNGetLineMetrics_FUNC); |
10091 |
|
| 10092 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
10092 |
#ifndef NO_TXNDeleteObject |
| 10093 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
10093 |
JNIEXPORT void JNICALL OS_NATIVE(TXNDeleteObject) |
| 10094 |
rc = (jint)TXNGetLineMetrics((TXNObject)arg0, (UInt32)arg1, (Fixed *)lparg2, (Fixed *)lparg3); |
10094 |
(JNIEnv *env, jclass that, jint arg0) |
| 10095 |
fail: |
10095 |
{ |
| 10096 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
10096 |
OS_NATIVE_ENTER(env, that, TXNDeleteObject_FUNC); |
| 10097 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
10097 |
TXNDeleteObject((TXNObject)arg0); |
| 10098 |
OS_NATIVE_EXIT(env, that, TXNGetLineMetrics_FUNC); |
10098 |
OS_NATIVE_EXIT(env, that, TXNDeleteObject_FUNC); |
| 10099 |
return rc; |
10099 |
} |
| 10100 |
} |
10100 |
#endif |
| 10101 |
#endif |
10101 |
|
| 10102 |
|
10102 |
#ifndef NO_TXNDraw |
| 10103 |
#ifndef NO_TXNGetRectBounds |
10103 |
JNIEXPORT void JNICALL OS_NATIVE(TXNDraw) |
| 10104 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNGetRectBounds) |
10104 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 10105 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jobject arg2, jobject arg3) |
10105 |
{ |
| 10106 |
{ |
10106 |
OS_NATIVE_ENTER(env, that, TXNDraw_FUNC); |
| 10107 |
Rect _arg1, *lparg1=NULL; |
10107 |
TXNDraw((TXNObject)arg0, (GWorldPtr)arg1); |
| 10108 |
TXNLongRect _arg2, *lparg2=NULL; |
10108 |
OS_NATIVE_EXIT(env, that, TXNDraw_FUNC); |
| 10109 |
TXNLongRect _arg3, *lparg3=NULL; |
10109 |
} |
| 10110 |
jint rc = 0; |
10110 |
#endif |
| 10111 |
OS_NATIVE_ENTER(env, that, TXNGetRectBounds_FUNC); |
10111 |
|
| 10112 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
10112 |
#ifndef NO_TXNEchoMode |
| 10113 |
if (arg2) if ((lparg2 = getTXNLongRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
10113 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNEchoMode) |
| 10114 |
if (arg3) if ((lparg3 = getTXNLongRectFields(env, arg3, &_arg3)) == NULL) goto fail; |
10114 |
(JNIEnv *env, jclass that, jint arg0, jchar arg1, jint arg2, jboolean arg3) |
| 10115 |
rc = (jint)TXNGetRectBounds((TXNObject)arg0, (Rect *)lparg1, (TXNLongRect *)lparg2, (TXNLongRect *)lparg3); |
10115 |
{ |
| 10116 |
fail: |
10116 |
jint rc = 0; |
| 10117 |
if (arg3 && lparg3) setTXNLongRectFields(env, arg3, lparg3); |
10117 |
OS_NATIVE_ENTER(env, that, TXNEchoMode_FUNC); |
| 10118 |
if (arg2 && lparg2) setTXNLongRectFields(env, arg2, lparg2); |
10118 |
rc = (jint)TXNEchoMode((TXNObject)arg0, (UniChar)arg1, (TextEncoding)arg2, (Boolean)arg3); |
| 10119 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
10119 |
OS_NATIVE_EXIT(env, that, TXNEchoMode_FUNC); |
| 10120 |
OS_NATIVE_EXIT(env, that, TXNGetRectBounds_FUNC); |
10120 |
return rc; |
| 10121 |
return rc; |
10121 |
} |
| 10122 |
} |
10122 |
#endif |
| 10123 |
#endif |
10123 |
|
| 10124 |
|
10124 |
#ifndef NO_TXNFocus |
| 10125 |
#ifndef NO_TXNGetSelection |
10125 |
JNIEXPORT void JNICALL OS_NATIVE(TXNFocus) |
| 10126 |
JNIEXPORT void JNICALL OS_NATIVE(TXNGetSelection) |
10126 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
| 10127 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jintArray arg2) |
10127 |
{ |
| 10128 |
{ |
10128 |
OS_NATIVE_ENTER(env, that, TXNFocus_FUNC); |
| 10129 |
jint *lparg1=NULL; |
10129 |
TXNFocus((TXNObject)arg0, (Boolean)arg1); |
| 10130 |
jint *lparg2=NULL; |
10130 |
OS_NATIVE_EXIT(env, that, TXNFocus_FUNC); |
| 10131 |
OS_NATIVE_ENTER(env, that, TXNGetSelection_FUNC); |
10131 |
} |
| 10132 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
10132 |
#endif |
| 10133 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
10133 |
|
| 10134 |
TXNGetSelection((TXNObject)arg0, (TXNOffset *)lparg1, (TXNOffset *)lparg2); |
10134 |
#ifndef NO_TXNGetData |
| 10135 |
fail: |
10135 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNGetData) |
| 10136 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
10136 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3) |
| 10137 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
10137 |
{ |
| 10138 |
OS_NATIVE_EXIT(env, that, TXNGetSelection_FUNC); |
10138 |
jint *lparg3=NULL; |
| 10139 |
} |
10139 |
jint rc = 0; |
| 10140 |
#endif |
10140 |
OS_NATIVE_ENTER(env, that, TXNGetData_FUNC); |
| 10141 |
|
10141 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 10142 |
#ifndef NO_TXNGetTXNObjectControls |
10142 |
rc = (jint)TXNGetData((TXNObject)arg0, (TXNOffset)arg1, (TXNOffset)arg2, (Handle *)lparg3); |
| 10143 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNGetTXNObjectControls) |
10143 |
fail: |
| 10144 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2, jintArray arg3) |
10144 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 10145 |
{ |
10145 |
OS_NATIVE_EXIT(env, that, TXNGetData_FUNC); |
| 10146 |
jint *lparg2=NULL; |
10146 |
return rc; |
| 10147 |
jint *lparg3=NULL; |
10147 |
} |
| 10148 |
jint rc = 0; |
10148 |
#endif |
| 10149 |
OS_NATIVE_ENTER(env, that, TXNGetTXNObjectControls_FUNC); |
10149 |
|
| 10150 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
10150 |
#ifndef NO_TXNGetLineCount |
| 10151 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
10151 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNGetLineCount) |
| 10152 |
rc = (jint)TXNGetTXNObjectControls((TXNObject)arg0, (ItemCount)arg1, (const TXNControlTag *)lparg2, (TXNControlData *)lparg3); |
10152 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1) |
| 10153 |
fail: |
10153 |
{ |
| 10154 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
10154 |
jint *lparg1=NULL; |
| 10155 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
10155 |
jint rc = 0; |
| 10156 |
OS_NATIVE_EXIT(env, that, TXNGetTXNObjectControls_FUNC); |
10156 |
OS_NATIVE_ENTER(env, that, TXNGetLineCount_FUNC); |
| 10157 |
return rc; |
10157 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 10158 |
} |
10158 |
rc = (jint)TXNGetLineCount((TXNObject)arg0, (ItemCount *)lparg1); |
| 10159 |
#endif |
10159 |
fail: |
| 10160 |
|
10160 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 10161 |
#ifndef NO_TXNGetViewRect |
10161 |
OS_NATIVE_EXIT(env, that, TXNGetLineCount_FUNC); |
| 10162 |
JNIEXPORT void JNICALL OS_NATIVE(TXNGetViewRect) |
10162 |
return rc; |
| 10163 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
10163 |
} |
| 10164 |
{ |
10164 |
#endif |
| 10165 |
Rect _arg1, *lparg1=NULL; |
10165 |
|
| 10166 |
OS_NATIVE_ENTER(env, that, TXNGetViewRect_FUNC); |
10166 |
#ifndef NO_TXNGetLineMetrics |
| 10167 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
10167 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNGetLineMetrics) |
| 10168 |
TXNGetViewRect((TXNObject)arg0, lparg1); |
10168 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2, jintArray arg3) |
| 10169 |
fail: |
10169 |
{ |
| 10170 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
10170 |
jint *lparg2=NULL; |
| 10171 |
OS_NATIVE_EXIT(env, that, TXNGetViewRect_FUNC); |
10171 |
jint *lparg3=NULL; |
| 10172 |
} |
10172 |
jint rc = 0; |
| 10173 |
#endif |
10173 |
OS_NATIVE_ENTER(env, that, TXNGetLineMetrics_FUNC); |
| 10174 |
|
10174 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 10175 |
#ifndef NO_TXNInitTextension |
10175 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 10176 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNInitTextension) |
10176 |
rc = (jint)TXNGetLineMetrics((TXNObject)arg0, (UInt32)arg1, (Fixed *)lparg2, (Fixed *)lparg3); |
| 10177 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
10177 |
fail: |
| 10178 |
{ |
10178 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 10179 |
jint rc = 0; |
10179 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 10180 |
OS_NATIVE_ENTER(env, that, TXNInitTextension_FUNC); |
10180 |
OS_NATIVE_EXIT(env, that, TXNGetLineMetrics_FUNC); |
| 10181 |
rc = (jint)TXNInitTextension((const TXNMacOSPreferredFontDescription *)arg0, (ItemCount)arg1, (TXNInitOptions)arg2); |
10181 |
return rc; |
| 10182 |
OS_NATIVE_EXIT(env, that, TXNInitTextension_FUNC); |
10182 |
} |
| 10183 |
return rc; |
10183 |
#endif |
| 10184 |
} |
10184 |
|
| 10185 |
#endif |
10185 |
#ifndef NO_TXNGetRectBounds |
| 10186 |
|
10186 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNGetRectBounds) |
| 10187 |
#ifndef NO_TXNNewObject |
10187 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jobject arg2, jobject arg3) |
| 10188 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNNewObject) |
10188 |
{ |
| 10189 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2, jint arg3, jint arg4, jint arg5, jint arg6, jintArray arg7, jintArray arg8, jint arg9) |
10189 |
Rect _arg1, *lparg1=NULL; |
| 10190 |
{ |
10190 |
TXNLongRect _arg2, *lparg2=NULL; |
| 10191 |
Rect _arg2, *lparg2=NULL; |
10191 |
TXNLongRect _arg3, *lparg3=NULL; |
| 10192 |
jint *lparg7=NULL; |
10192 |
jint rc = 0; |
| 10193 |
jint *lparg8=NULL; |
10193 |
OS_NATIVE_ENTER(env, that, TXNGetRectBounds_FUNC); |
| 10194 |
jint rc = 0; |
10194 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 10195 |
OS_NATIVE_ENTER(env, that, TXNNewObject_FUNC); |
10195 |
if (arg2) if ((lparg2 = getTXNLongRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 10196 |
if (arg2) if ((lparg2 = getRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
10196 |
if (arg3) if ((lparg3 = getTXNLongRectFields(env, arg3, &_arg3)) == NULL) goto fail; |
| 10197 |
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail; |
10197 |
rc = (jint)TXNGetRectBounds((TXNObject)arg0, (Rect *)lparg1, (TXNLongRect *)lparg2, (TXNLongRect *)lparg3); |
| 10198 |
if (arg8) if ((lparg8 = (*env)->GetIntArrayElements(env, arg8, NULL)) == NULL) goto fail; |
10198 |
fail: |
| 10199 |
rc = (jint)TXNNewObject((const FSSpec *)arg0, (WindowRef)arg1, (const Rect *)lparg2, (TXNFrameOptions)arg3, (TXNFrameType)arg4, (TXNFileType)arg5, (TXNPermanentTextEncodingType)arg6, (TXNObject *)lparg7, (TXNFrameID *)lparg8, (TXNObjectRefcon)arg9); |
10199 |
if (arg3 && lparg3) setTXNLongRectFields(env, arg3, lparg3); |
| 10200 |
fail: |
10200 |
if (arg2 && lparg2) setTXNLongRectFields(env, arg2, lparg2); |
| 10201 |
if (arg8 && lparg8) (*env)->ReleaseIntArrayElements(env, arg8, lparg8, 0); |
10201 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 10202 |
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0); |
10202 |
OS_NATIVE_EXIT(env, that, TXNGetRectBounds_FUNC); |
| 10203 |
if (arg2 && lparg2) setRectFields(env, arg2, lparg2); |
10203 |
return rc; |
| 10204 |
OS_NATIVE_EXIT(env, that, TXNNewObject_FUNC); |
10204 |
} |
| 10205 |
return rc; |
10205 |
#endif |
| 10206 |
} |
10206 |
|
| 10207 |
#endif |
10207 |
#ifndef NO_TXNGetSelection |
| 10208 |
|
10208 |
JNIEXPORT void JNICALL OS_NATIVE(TXNGetSelection) |
| 10209 |
#ifndef NO_TXNOffsetToPoint |
10209 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jintArray arg2) |
| 10210 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNOffsetToPoint) |
10210 |
{ |
| 10211 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2) |
10211 |
jint *lparg1=NULL; |
| 10212 |
{ |
10212 |
jint *lparg2=NULL; |
| 10213 |
Point _arg2, *lparg2=NULL; |
10213 |
OS_NATIVE_ENTER(env, that, TXNGetSelection_FUNC); |
| 10214 |
jint rc = 0; |
10214 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 10215 |
OS_NATIVE_ENTER(env, that, TXNOffsetToPoint_FUNC); |
10215 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 10216 |
if (arg2) if ((lparg2 = getPointFields(env, arg2, &_arg2)) == NULL) goto fail; |
10216 |
TXNGetSelection((TXNObject)arg0, (TXNOffset *)lparg1, (TXNOffset *)lparg2); |
| 10217 |
rc = (jint)TXNOffsetToPoint((TXNObject)arg0, (TXNOffset)arg1, (Point *)lparg2); |
10217 |
fail: |
| 10218 |
fail: |
10218 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 10219 |
if (arg2 && lparg2) setPointFields(env, arg2, lparg2); |
10219 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); |
| 10220 |
OS_NATIVE_EXIT(env, that, TXNOffsetToPoint_FUNC); |
10220 |
OS_NATIVE_EXIT(env, that, TXNGetSelection_FUNC); |
| 10221 |
return rc; |
10221 |
} |
| 10222 |
} |
10222 |
#endif |
| 10223 |
#endif |
10223 |
|
| 10224 |
|
10224 |
#ifndef NO_TXNGetTXNObjectControls |
| 10225 |
#ifndef NO_TXNPaste |
10225 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNGetTXNObjectControls) |
| 10226 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNPaste) |
10226 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jintArray arg2, jintArray arg3) |
| 10227 |
(JNIEnv *env, jclass that, jint arg0) |
10227 |
{ |
| 10228 |
{ |
10228 |
jint *lparg2=NULL; |
| 10229 |
jint rc = 0; |
10229 |
jint *lparg3=NULL; |
| 10230 |
OS_NATIVE_ENTER(env, that, TXNPaste_FUNC); |
10230 |
jint rc = 0; |
| 10231 |
rc = (jint)TXNPaste((TXNObject)arg0); |
10231 |
OS_NATIVE_ENTER(env, that, TXNGetTXNObjectControls_FUNC); |
| 10232 |
OS_NATIVE_EXIT(env, that, TXNPaste_FUNC); |
10232 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 10233 |
return rc; |
10233 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 10234 |
} |
10234 |
rc = (jint)TXNGetTXNObjectControls((TXNObject)arg0, (ItemCount)arg1, (const TXNControlTag *)lparg2, (TXNControlData *)lparg3); |
| 10235 |
#endif |
10235 |
fail: |
| 10236 |
|
10236 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 10237 |
#ifndef NO_TXNPointToOffset |
10237 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 10238 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNPointToOffset) |
10238 |
OS_NATIVE_EXIT(env, that, TXNGetTXNObjectControls_FUNC); |
| 10239 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jintArray arg2) |
10239 |
return rc; |
| 10240 |
{ |
10240 |
} |
| 10241 |
Point _arg1, *lparg1=NULL; |
10241 |
#endif |
| 10242 |
jint *lparg2=NULL; |
10242 |
|
| 10243 |
jint rc = 0; |
10243 |
#ifndef NO_TXNGetViewRect |
| 10244 |
OS_NATIVE_ENTER(env, that, TXNPointToOffset_FUNC); |
10244 |
JNIEXPORT void JNICALL OS_NATIVE(TXNGetViewRect) |
| 10245 |
if (arg1) if ((lparg1 = getPointFields(env, arg1, &_arg1)) == NULL) goto fail; |
10245 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 10246 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
10246 |
{ |
| 10247 |
rc = (jint)TXNPointToOffset((TXNObject)arg0, *lparg1, (TXNOffset *)lparg2); |
10247 |
Rect _arg1, *lparg1=NULL; |
| 10248 |
fail: |
10248 |
OS_NATIVE_ENTER(env, that, TXNGetViewRect_FUNC); |
| 10249 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
10249 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 10250 |
if (arg1 && lparg1) setPointFields(env, arg1, lparg1); |
10250 |
TXNGetViewRect((TXNObject)arg0, lparg1); |
| 10251 |
OS_NATIVE_EXIT(env, that, TXNPointToOffset_FUNC); |
10251 |
fail: |
| 10252 |
return rc; |
10252 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 10253 |
} |
10253 |
OS_NATIVE_EXIT(env, that, TXNGetViewRect_FUNC); |
| 10254 |
#endif |
10254 |
} |
| 10255 |
|
10255 |
#endif |
| 10256 |
#ifndef NO_TXNSelectAll |
10256 |
|
| 10257 |
JNIEXPORT void JNICALL OS_NATIVE(TXNSelectAll) |
10257 |
#ifndef NO_TXNInitTextension |
| 10258 |
(JNIEnv *env, jclass that, jint arg0) |
10258 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNInitTextension) |
| 10259 |
{ |
10259 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 10260 |
OS_NATIVE_ENTER(env, that, TXNSelectAll_FUNC); |
10260 |
{ |
| 10261 |
TXNSelectAll((TXNObject)arg0); |
10261 |
jint rc = 0; |
| 10262 |
OS_NATIVE_EXIT(env, that, TXNSelectAll_FUNC); |
10262 |
OS_NATIVE_ENTER(env, that, TXNInitTextension_FUNC); |
| 10263 |
} |
10263 |
rc = (jint)TXNInitTextension((const TXNMacOSPreferredFontDescription *)arg0, (ItemCount)arg1, (TXNInitOptions)arg2); |
| 10264 |
#endif |
10264 |
OS_NATIVE_EXIT(env, that, TXNInitTextension_FUNC); |
| 10265 |
|
10265 |
return rc; |
| 10266 |
#ifndef NO_TXNSetBackground |
10266 |
} |
| 10267 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNSetBackground) |
10267 |
#endif |
| 10268 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
10268 |
|
| 10269 |
{ |
10269 |
#ifndef NO_TXNNewObject |
| 10270 |
TXNBackground _arg1, *lparg1=NULL; |
10270 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNNewObject) |
| 10271 |
jint rc = 0; |
10271 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2, jint arg3, jint arg4, jint arg5, jint arg6, jintArray arg7, jintArray arg8, jint arg9) |
| 10272 |
OS_NATIVE_ENTER(env, that, TXNSetBackground_FUNC); |
10272 |
{ |
| 10273 |
if (arg1) if ((lparg1 = getTXNBackgroundFields(env, arg1, &_arg1)) == NULL) goto fail; |
10273 |
Rect _arg2, *lparg2=NULL; |
| 10274 |
rc = (jint)TXNSetBackground((TXNObject)arg0, (const TXNBackground *)lparg1); |
10274 |
jint *lparg7=NULL; |
| 10275 |
fail: |
10275 |
jint *lparg8=NULL; |
| 10276 |
if (arg1 && lparg1) setTXNBackgroundFields(env, arg1, lparg1); |
10276 |
jint rc = 0; |
| 10277 |
OS_NATIVE_EXIT(env, that, TXNSetBackground_FUNC); |
10277 |
OS_NATIVE_ENTER(env, that, TXNNewObject_FUNC); |
| 10278 |
return rc; |
10278 |
if (arg2) if ((lparg2 = getRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 10279 |
} |
10279 |
if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail; |
| 10280 |
#endif |
10280 |
if (arg8) if ((lparg8 = (*env)->GetIntArrayElements(env, arg8, NULL)) == NULL) goto fail; |
| 10281 |
|
10281 |
rc = (jint)TXNNewObject((const FSSpec *)arg0, (WindowRef)arg1, (const Rect *)lparg2, (TXNFrameOptions)arg3, (TXNFrameType)arg4, (TXNFileType)arg5, (TXNPermanentTextEncodingType)arg6, (TXNObject *)lparg7, (TXNFrameID *)lparg8, (TXNObjectRefcon)arg9); |
| 10282 |
#ifndef NO_TXNSetData |
10282 |
fail: |
| 10283 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNSetData) |
10283 |
if (arg8 && lparg8) (*env)->ReleaseIntArrayElements(env, arg8, lparg8, 0); |
| 10284 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jcharArray arg2, jint arg3, jint arg4, jint arg5) |
10284 |
if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0); |
| 10285 |
{ |
10285 |
if (arg2 && lparg2) setRectFields(env, arg2, lparg2); |
| 10286 |
jchar *lparg2=NULL; |
10286 |
OS_NATIVE_EXIT(env, that, TXNNewObject_FUNC); |
| 10287 |
jint rc = 0; |
10287 |
return rc; |
| 10288 |
OS_NATIVE_ENTER(env, that, TXNSetData_FUNC); |
10288 |
} |
| 10289 |
if (arg2) if ((lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL)) == NULL) goto fail; |
10289 |
#endif |
| 10290 |
rc = (jint)TXNSetData((TXNObject)arg0, (TXNDataType)arg1, (const void *)lparg2, (ByteCount)arg3, (TXNOffset)arg4, (TXNOffset)arg5); |
10290 |
|
| 10291 |
fail: |
10291 |
#ifndef NO_TXNOffsetToPoint |
| 10292 |
if (arg2 && lparg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0); |
10292 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNOffsetToPoint) |
| 10293 |
OS_NATIVE_EXIT(env, that, TXNSetData_FUNC); |
10293 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jobject arg2) |
| 10294 |
return rc; |
10294 |
{ |
| 10295 |
} |
10295 |
Point _arg2, *lparg2=NULL; |
| 10296 |
#endif |
10296 |
jint rc = 0; |
| 10297 |
|
10297 |
OS_NATIVE_ENTER(env, that, TXNOffsetToPoint_FUNC); |
| 10298 |
#ifndef NO_TXNSetFrameBounds |
10298 |
if (arg2) if ((lparg2 = getPointFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 10299 |
JNIEXPORT void JNICALL OS_NATIVE(TXNSetFrameBounds) |
10299 |
rc = (jint)TXNOffsetToPoint((TXNObject)arg0, (TXNOffset)arg1, (Point *)lparg2); |
| 10300 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5) |
10300 |
fail: |
| 10301 |
{ |
10301 |
if (arg2 && lparg2) setPointFields(env, arg2, lparg2); |
| 10302 |
OS_NATIVE_ENTER(env, that, TXNSetFrameBounds_FUNC); |
10302 |
OS_NATIVE_EXIT(env, that, TXNOffsetToPoint_FUNC); |
| 10303 |
TXNSetFrameBounds((TXNObject)arg0, (SInt32)arg1, (SInt32)arg2, (SInt32)arg3, (SInt32)arg4, (TXNFrameID)arg5); |
10303 |
return rc; |
| 10304 |
OS_NATIVE_EXIT(env, that, TXNSetFrameBounds_FUNC); |
10304 |
} |
| 10305 |
} |
10305 |
#endif |
| 10306 |
#endif |
10306 |
|
| 10307 |
|
10307 |
#ifndef NO_TXNPaste |
| 10308 |
#ifndef NO_TXNSetRectBounds |
10308 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNPaste) |
| 10309 |
JNIEXPORT void JNICALL OS_NATIVE(TXNSetRectBounds) |
10309 |
(JNIEnv *env, jclass that, jint arg0) |
| 10310 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jobject arg2, jboolean arg3) |
10310 |
{ |
| 10311 |
{ |
10311 |
jint rc = 0; |
| 10312 |
Rect _arg1, *lparg1=NULL; |
10312 |
OS_NATIVE_ENTER(env, that, TXNPaste_FUNC); |
| 10313 |
TXNLongRect _arg2, *lparg2=NULL; |
10313 |
rc = (jint)TXNPaste((TXNObject)arg0); |
| 10314 |
OS_NATIVE_ENTER(env, that, TXNSetRectBounds_FUNC); |
10314 |
OS_NATIVE_EXIT(env, that, TXNPaste_FUNC); |
| 10315 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
10315 |
return rc; |
| 10316 |
if (arg2) if ((lparg2 = getTXNLongRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
10316 |
} |
| 10317 |
TXNSetRectBounds((TXNObject)arg0, (Rect *)lparg1, (TXNLongRect *)lparg2, (Boolean)arg3); |
10317 |
#endif |
| 10318 |
fail: |
10318 |
|
| 10319 |
if (arg2 && lparg2) setTXNLongRectFields(env, arg2, lparg2); |
10319 |
#ifndef NO_TXNPointToOffset |
| 10320 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
10320 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNPointToOffset) |
| 10321 |
OS_NATIVE_EXIT(env, that, TXNSetRectBounds_FUNC); |
10321 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jintArray arg2) |
| 10322 |
} |
10322 |
{ |
| 10323 |
#endif |
10323 |
Point _arg1, *lparg1=NULL; |
| 10324 |
|
10324 |
jint *lparg2=NULL; |
| 10325 |
#ifndef NO_TXNSetSelection |
10325 |
jint rc = 0; |
| 10326 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNSetSelection) |
10326 |
OS_NATIVE_ENTER(env, that, TXNPointToOffset_FUNC); |
| 10327 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
10327 |
if (arg1) if ((lparg1 = getPointFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 10328 |
{ |
10328 |
if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 10329 |
jint rc = 0; |
10329 |
rc = (jint)TXNPointToOffset((TXNObject)arg0, *lparg1, (TXNOffset *)lparg2); |
| 10330 |
OS_NATIVE_ENTER(env, that, TXNSetSelection_FUNC); |
10330 |
fail: |
| 10331 |
rc = (jint)TXNSetSelection((TXNObject)arg0, (TXNOffset)arg1, (TXNOffset)arg2); |
10331 |
if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0); |
| 10332 |
OS_NATIVE_EXIT(env, that, TXNSetSelection_FUNC); |
10332 |
if (arg1 && lparg1) setPointFields(env, arg1, lparg1); |
| 10333 |
return rc; |
10333 |
OS_NATIVE_EXIT(env, that, TXNPointToOffset_FUNC); |
| 10334 |
} |
10334 |
return rc; |
| 10335 |
#endif |
10335 |
} |
| 10336 |
|
10336 |
#endif |
| 10337 |
#ifndef NO_TXNSetTXNObjectControls |
10337 |
|
| 10338 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNSetTXNObjectControls) |
10338 |
#ifndef NO_TXNSelectAll |
| 10339 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1, jint arg2, jintArray arg3, jintArray arg4) |
10339 |
JNIEXPORT void JNICALL OS_NATIVE(TXNSelectAll) |
| 10340 |
{ |
10340 |
(JNIEnv *env, jclass that, jint arg0) |
| 10341 |
jint *lparg3=NULL; |
10341 |
{ |
| 10342 |
jint *lparg4=NULL; |
10342 |
OS_NATIVE_ENTER(env, that, TXNSelectAll_FUNC); |
| 10343 |
jint rc = 0; |
10343 |
TXNSelectAll((TXNObject)arg0); |
| 10344 |
OS_NATIVE_ENTER(env, that, TXNSetTXNObjectControls_FUNC); |
10344 |
OS_NATIVE_EXIT(env, that, TXNSelectAll_FUNC); |
| 10345 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
10345 |
} |
| 10346 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
10346 |
#endif |
| 10347 |
rc = (jint)TXNSetTXNObjectControls((TXNObject)arg0, (Boolean)arg1, (ItemCount)arg2, (const TXNControlTag *)lparg3, (const TXNControlData *)lparg4); |
10347 |
|
| 10348 |
fail: |
10348 |
#ifndef NO_TXNSetBackground |
| 10349 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
10349 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNSetBackground) |
| 10350 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
10350 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 10351 |
OS_NATIVE_EXIT(env, that, TXNSetTXNObjectControls_FUNC); |
10351 |
{ |
| 10352 |
return rc; |
10352 |
TXNBackground _arg1, *lparg1=NULL; |
| 10353 |
} |
10353 |
jint rc = 0; |
| 10354 |
#endif |
10354 |
OS_NATIVE_ENTER(env, that, TXNSetBackground_FUNC); |
| 10355 |
|
10355 |
if (arg1) if ((lparg1 = getTXNBackgroundFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 10356 |
#ifndef NO_TXNSetTypeAttributes |
10356 |
rc = (jint)TXNSetBackground((TXNObject)arg0, (const TXNBackground *)lparg1); |
| 10357 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNSetTypeAttributes) |
10357 |
fail: |
| 10358 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4) |
10358 |
if (arg1 && lparg1) setTXNBackgroundFields(env, arg1, lparg1); |
| 10359 |
{ |
10359 |
OS_NATIVE_EXIT(env, that, TXNSetBackground_FUNC); |
| 10360 |
jint rc = 0; |
10360 |
return rc; |
| 10361 |
OS_NATIVE_ENTER(env, that, TXNSetTypeAttributes_FUNC); |
10361 |
} |
| 10362 |
rc = (jint)TXNSetTypeAttributes((TXNObject)arg0, (ItemCount)arg1, (const TXNTypeAttributes *)arg2, (TXNOffset)arg3, (TXNOffset)arg4); |
10362 |
#endif |
| 10363 |
OS_NATIVE_EXIT(env, that, TXNSetTypeAttributes_FUNC); |
10363 |
|
| 10364 |
return rc; |
10364 |
#ifndef NO_TXNSetData |
| 10365 |
} |
10365 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNSetData) |
| 10366 |
#endif |
10366 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jcharArray arg2, jint arg3, jint arg4, jint arg5) |
| 10367 |
|
10367 |
{ |
| 10368 |
#ifndef NO_TXNShowSelection |
10368 |
jchar *lparg2=NULL; |
| 10369 |
JNIEXPORT void JNICALL OS_NATIVE(TXNShowSelection) |
10369 |
jint rc = 0; |
| 10370 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
10370 |
OS_NATIVE_ENTER(env, that, TXNSetData_FUNC); |
| 10371 |
{ |
10371 |
if (arg2) if ((lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL)) == NULL) goto fail; |
| 10372 |
OS_NATIVE_ENTER(env, that, TXNShowSelection_FUNC); |
10372 |
rc = (jint)TXNSetData((TXNObject)arg0, (TXNDataType)arg1, (const void *)lparg2, (ByteCount)arg3, (TXNOffset)arg4, (TXNOffset)arg5); |
| 10373 |
TXNShowSelection((TXNObject)arg0, (Boolean)arg1); |
10373 |
fail: |
| 10374 |
OS_NATIVE_EXIT(env, that, TXNShowSelection_FUNC); |
10374 |
if (arg2 && lparg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0); |
| 10375 |
} |
10375 |
OS_NATIVE_EXIT(env, that, TXNSetData_FUNC); |
| 10376 |
#endif |
10376 |
return rc; |
| 10377 |
|
10377 |
} |
| 10378 |
#ifndef NO_TestControl |
10378 |
#endif |
| 10379 |
JNIEXPORT jshort JNICALL OS_NATIVE(TestControl) |
10379 |
|
| 10380 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
10380 |
#ifndef NO_TXNSetFrameBounds |
| 10381 |
{ |
10381 |
JNIEXPORT void JNICALL OS_NATIVE(TXNSetFrameBounds) |
| 10382 |
Point _arg1, *lparg1=NULL; |
10382 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4, jint arg5) |
| 10383 |
jshort rc = 0; |
10383 |
{ |
| 10384 |
OS_NATIVE_ENTER(env, that, TestControl_FUNC); |
10384 |
OS_NATIVE_ENTER(env, that, TXNSetFrameBounds_FUNC); |
| 10385 |
if (arg1) if ((lparg1 = getPointFields(env, arg1, &_arg1)) == NULL) goto fail; |
10385 |
TXNSetFrameBounds((TXNObject)arg0, (SInt32)arg1, (SInt32)arg2, (SInt32)arg3, (SInt32)arg4, (TXNFrameID)arg5); |
| 10386 |
rc = (jshort)TestControl((ControlRef)arg0, *(Point *)lparg1); |
10386 |
OS_NATIVE_EXIT(env, that, TXNSetFrameBounds_FUNC); |
| 10387 |
fail: |
10387 |
} |
| 10388 |
if (arg1 && lparg1) setPointFields(env, arg1, lparg1); |
10388 |
#endif |
| 10389 |
OS_NATIVE_EXIT(env, that, TestControl_FUNC); |
10389 |
|
| 10390 |
return rc; |
10390 |
#ifndef NO_TXNSetRectBounds |
| 10391 |
} |
10391 |
JNIEXPORT void JNICALL OS_NATIVE(TXNSetRectBounds) |
| 10392 |
#endif |
10392 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jobject arg2, jboolean arg3) |
| 10393 |
|
10393 |
{ |
| 10394 |
#ifndef NO_TextFace |
10394 |
Rect _arg1, *lparg1=NULL; |
| 10395 |
JNIEXPORT void JNICALL OS_NATIVE(TextFace) |
10395 |
TXNLongRect _arg2, *lparg2=NULL; |
| 10396 |
(JNIEnv *env, jclass that, jshort arg0) |
10396 |
OS_NATIVE_ENTER(env, that, TXNSetRectBounds_FUNC); |
| 10397 |
{ |
10397 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 10398 |
OS_NATIVE_ENTER(env, that, TextFace_FUNC); |
10398 |
if (arg2) if ((lparg2 = getTXNLongRectFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 10399 |
TextFace((StyleParameter)arg0); |
10399 |
TXNSetRectBounds((TXNObject)arg0, (Rect *)lparg1, (TXNLongRect *)lparg2, (Boolean)arg3); |
| 10400 |
OS_NATIVE_EXIT(env, that, TextFace_FUNC); |
10400 |
fail: |
| 10401 |
} |
10401 |
if (arg2 && lparg2) setTXNLongRectFields(env, arg2, lparg2); |
| 10402 |
#endif |
10402 |
if (arg1 && lparg1) setRectFields(env, arg1, lparg1); |
| 10403 |
|
10403 |
OS_NATIVE_EXIT(env, that, TXNSetRectBounds_FUNC); |
| 10404 |
#ifndef NO_TextFont |
10404 |
} |
| 10405 |
JNIEXPORT void JNICALL OS_NATIVE(TextFont) |
10405 |
#endif |
| 10406 |
(JNIEnv *env, jclass that, jshort arg0) |
10406 |
|
| 10407 |
{ |
10407 |
#ifndef NO_TXNSetSelection |
| 10408 |
OS_NATIVE_ENTER(env, that, TextFont_FUNC); |
10408 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNSetSelection) |
| 10409 |
TextFont((short)arg0); |
10409 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 10410 |
OS_NATIVE_EXIT(env, that, TextFont_FUNC); |
10410 |
{ |
| 10411 |
} |
10411 |
jint rc = 0; |
| 10412 |
#endif |
10412 |
OS_NATIVE_ENTER(env, that, TXNSetSelection_FUNC); |
| 10413 |
|
10413 |
rc = (jint)TXNSetSelection((TXNObject)arg0, (TXNOffset)arg1, (TXNOffset)arg2); |
| 10414 |
#ifndef NO_TextMode |
10414 |
OS_NATIVE_EXIT(env, that, TXNSetSelection_FUNC); |
| 10415 |
JNIEXPORT void JNICALL OS_NATIVE(TextMode) |
10415 |
return rc; |
| 10416 |
(JNIEnv *env, jclass that, jshort arg0) |
10416 |
} |
| 10417 |
{ |
10417 |
#endif |
| 10418 |
OS_NATIVE_ENTER(env, that, TextMode_FUNC); |
10418 |
|
| 10419 |
TextMode((short)arg0); |
10419 |
#ifndef NO_TXNSetTXNObjectControls |
| 10420 |
OS_NATIVE_EXIT(env, that, TextMode_FUNC); |
10420 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNSetTXNObjectControls) |
| 10421 |
} |
10421 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1, jint arg2, jintArray arg3, jintArray arg4) |
| 10422 |
#endif |
10422 |
{ |
| 10423 |
|
10423 |
jint *lparg3=NULL; |
| 10424 |
#ifndef NO_TextSize |
10424 |
jint *lparg4=NULL; |
| 10425 |
JNIEXPORT void JNICALL OS_NATIVE(TextSize) |
10425 |
jint rc = 0; |
| 10426 |
(JNIEnv *env, jclass that, jshort arg0) |
10426 |
OS_NATIVE_ENTER(env, that, TXNSetTXNObjectControls_FUNC); |
| 10427 |
{ |
10427 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 10428 |
OS_NATIVE_ENTER(env, that, TextSize_FUNC); |
10428 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 10429 |
TextSize((short)arg0); |
10429 |
rc = (jint)TXNSetTXNObjectControls((TXNObject)arg0, (Boolean)arg1, (ItemCount)arg2, (const TXNControlTag *)lparg3, (const TXNControlData *)lparg4); |
| 10430 |
OS_NATIVE_EXIT(env, that, TextSize_FUNC); |
10430 |
fail: |
| 10431 |
} |
10431 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 10432 |
#endif |
10432 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 10433 |
|
10433 |
OS_NATIVE_EXIT(env, that, TXNSetTXNObjectControls_FUNC); |
| 10434 |
#ifndef NO_TextWidth |
10434 |
return rc; |
| 10435 |
JNIEXPORT jshort JNICALL OS_NATIVE(TextWidth) |
10435 |
} |
| 10436 |
(JNIEnv *env, jclass that, jbyteArray arg0, jshort arg1, jshort arg2) |
10436 |
#endif |
| 10437 |
{ |
10437 |
|
| 10438 |
jbyte *lparg0=NULL; |
10438 |
#ifndef NO_TXNSetTypeAttributes |
| 10439 |
jshort rc = 0; |
10439 |
JNIEXPORT jint JNICALL OS_NATIVE(TXNSetTypeAttributes) |
| 10440 |
OS_NATIVE_ENTER(env, that, TextWidth_FUNC); |
10440 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4) |
| 10441 |
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; |
10441 |
{ |
| 10442 |
rc = (jshort)TextWidth((const void *)lparg0, (short)arg1, (short)arg2); |
10442 |
jint rc = 0; |
| 10443 |
fail: |
10443 |
OS_NATIVE_ENTER(env, that, TXNSetTypeAttributes_FUNC); |
| 10444 |
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); |
10444 |
rc = (jint)TXNSetTypeAttributes((TXNObject)arg0, (ItemCount)arg1, (const TXNTypeAttributes *)arg2, (TXNOffset)arg3, (TXNOffset)arg4); |
| 10445 |
OS_NATIVE_EXIT(env, that, TextWidth_FUNC); |
10445 |
OS_NATIVE_EXIT(env, that, TXNSetTypeAttributes_FUNC); |
| 10446 |
return rc; |
10446 |
return rc; |
| 10447 |
} |
10447 |
} |
| 10448 |
#endif |
10448 |
#endif |
| 10449 |
|
10449 |
|
| 10450 |
#ifndef NO_TrackDrag |
10450 |
#ifndef NO_TXNShowSelection |
| 10451 |
JNIEXPORT jint JNICALL OS_NATIVE(TrackDrag) |
10451 |
JNIEXPORT void JNICALL OS_NATIVE(TXNShowSelection) |
| 10452 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
10452 |
(JNIEnv *env, jclass that, jint arg0, jboolean arg1) |
| 10453 |
{ |
10453 |
{ |
| 10454 |
EventRecord _arg1, *lparg1=NULL; |
10454 |
OS_NATIVE_ENTER(env, that, TXNShowSelection_FUNC); |
| 10455 |
jint rc = 0; |
10455 |
TXNShowSelection((TXNObject)arg0, (Boolean)arg1); |
| 10456 |
OS_NATIVE_ENTER(env, that, TrackDrag_FUNC); |
10456 |
OS_NATIVE_EXIT(env, that, TXNShowSelection_FUNC); |
| 10457 |
if (arg1) if ((lparg1 = getEventRecordFields(env, arg1, &_arg1)) == NULL) goto fail; |
10457 |
} |
| 10458 |
rc = (jint)TrackDrag((DragRef)arg0, (const EventRecord *)lparg1, (RgnHandle)arg2); |
10458 |
#endif |
| 10459 |
fail: |
10459 |
|
| 10460 |
if (arg1 && lparg1) setEventRecordFields(env, arg1, lparg1); |
10460 |
#ifndef NO_TestControl |
| 10461 |
OS_NATIVE_EXIT(env, that, TrackDrag_FUNC); |
10461 |
JNIEXPORT jshort JNICALL OS_NATIVE(TestControl) |
| 10462 |
return rc; |
10462 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1) |
| 10463 |
} |
10463 |
{ |
| 10464 |
#endif |
10464 |
Point _arg1, *lparg1=NULL; |
| 10465 |
|
10465 |
jshort rc = 0; |
| 10466 |
#ifndef NO_TrackMouseLocationWithOptions |
10466 |
OS_NATIVE_ENTER(env, that, TestControl_FUNC); |
| 10467 |
JNIEXPORT jint JNICALL OS_NATIVE(TrackMouseLocationWithOptions) |
10467 |
if (arg1) if ((lparg1 = getPointFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 10468 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jdouble arg2, jobject arg3, jintArray arg4, jshortArray arg5) |
10468 |
rc = (jshort)TestControl((ControlRef)arg0, *(Point *)lparg1); |
| 10469 |
{ |
10469 |
fail: |
| 10470 |
Point _arg3, *lparg3=NULL; |
10470 |
if (arg1 && lparg1) setPointFields(env, arg1, lparg1); |
| 10471 |
jint *lparg4=NULL; |
10471 |
OS_NATIVE_EXIT(env, that, TestControl_FUNC); |
| 10472 |
jshort *lparg5=NULL; |
10472 |
return rc; |
| 10473 |
jint rc = 0; |
10473 |
} |
| 10474 |
OS_NATIVE_ENTER(env, that, TrackMouseLocationWithOptions_FUNC); |
10474 |
#endif |
| 10475 |
if (arg3) if ((lparg3 = getPointFields(env, arg3, &_arg3)) == NULL) goto fail; |
10475 |
|
| 10476 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
10476 |
#ifndef NO_TextFace |
| 10477 |
if (arg5) if ((lparg5 = (*env)->GetShortArrayElements(env, arg5, NULL)) == NULL) goto fail; |
10477 |
JNIEXPORT void JNICALL OS_NATIVE(TextFace) |
| 10478 |
rc = (jint)TrackMouseLocationWithOptions((GrafPtr)arg0, (OptionBits)arg1, (EventTimeout)arg2, (Point *)lparg3, (UInt32 *)lparg4, (MouseTrackingResult *)lparg5); |
10478 |
(JNIEnv *env, jclass that, jshort arg0) |
| 10479 |
fail: |
10479 |
{ |
| 10480 |
if (arg5 && lparg5) (*env)->ReleaseShortArrayElements(env, arg5, lparg5, 0); |
10480 |
OS_NATIVE_ENTER(env, that, TextFace_FUNC); |
| 10481 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
10481 |
TextFace((StyleParameter)arg0); |
| 10482 |
if (arg3 && lparg3) setPointFields(env, arg3, lparg3); |
10482 |
OS_NATIVE_EXIT(env, that, TextFace_FUNC); |
| 10483 |
OS_NATIVE_EXIT(env, that, TrackMouseLocationWithOptions_FUNC); |
10483 |
} |
| 10484 |
return rc; |
10484 |
#endif |
| 10485 |
} |
10485 |
|
| 10486 |
#endif |
10486 |
#ifndef NO_TextFont |
| 10487 |
|
10487 |
JNIEXPORT void JNICALL OS_NATIVE(TextFont) |
| 10488 |
#ifndef NO_UnionRect |
10488 |
(JNIEnv *env, jclass that, jshort arg0) |
| 10489 |
JNIEXPORT void JNICALL OS_NATIVE(UnionRect) |
10489 |
{ |
| 10490 |
(JNIEnv *env, jclass that, jobject arg0, jobject arg1, jobject arg2) |
10490 |
OS_NATIVE_ENTER(env, that, TextFont_FUNC); |
| 10491 |
{ |
10491 |
TextFont((short)arg0); |
| 10492 |
Rect _arg0, *lparg0=NULL; |
10492 |
OS_NATIVE_EXIT(env, that, TextFont_FUNC); |
| 10493 |
Rect _arg1, *lparg1=NULL; |
10493 |
} |
| 10494 |
Rect _arg2, *lparg2=NULL; |
10494 |
#endif |
| 10495 |
OS_NATIVE_ENTER(env, that, UnionRect_FUNC); |
10495 |
|
| 10496 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
10496 |
#ifndef NO_TextMode |
| 10497 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
10497 |
JNIEXPORT void JNICALL OS_NATIVE(TextMode) |
| 10498 |
if (arg2) if ((lparg2 = &_arg2) == NULL) goto fail; |
10498 |
(JNIEnv *env, jclass that, jshort arg0) |
| 10499 |
UnionRect(lparg0, lparg1, lparg2); |
10499 |
{ |
| 10500 |
fail: |
10500 |
OS_NATIVE_ENTER(env, that, TextMode_FUNC); |
| 10501 |
if (arg2 && lparg2) setRectFields(env, arg2, lparg2); |
10501 |
TextMode((short)arg0); |
| 10502 |
OS_NATIVE_EXIT(env, that, UnionRect_FUNC); |
10502 |
OS_NATIVE_EXIT(env, that, TextMode_FUNC); |
| 10503 |
} |
10503 |
} |
| 10504 |
#endif |
10504 |
#endif |
| 10505 |
|
10505 |
|
| 10506 |
#ifndef NO_UnionRgn |
10506 |
#ifndef NO_TextSize |
| 10507 |
JNIEXPORT void JNICALL OS_NATIVE(UnionRgn) |
10507 |
JNIEXPORT void JNICALL OS_NATIVE(TextSize) |
| 10508 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
10508 |
(JNIEnv *env, jclass that, jshort arg0) |
| 10509 |
{ |
10509 |
{ |
| 10510 |
OS_NATIVE_ENTER(env, that, UnionRgn_FUNC); |
10510 |
OS_NATIVE_ENTER(env, that, TextSize_FUNC); |
| 10511 |
UnionRgn((RgnHandle)arg0, (RgnHandle)arg1, (RgnHandle)arg2); |
10511 |
TextSize((short)arg0); |
| 10512 |
OS_NATIVE_EXIT(env, that, UnionRgn_FUNC); |
10512 |
OS_NATIVE_EXIT(env, that, TextSize_FUNC); |
| 10513 |
} |
10513 |
} |
| 10514 |
#endif |
10514 |
#endif |
| 10515 |
|
10515 |
|
| 10516 |
#ifndef NO_UnlockPortBits |
10516 |
#ifndef NO_TextWidth |
| 10517 |
JNIEXPORT jint JNICALL OS_NATIVE(UnlockPortBits) |
10517 |
JNIEXPORT jshort JNICALL OS_NATIVE(TextWidth) |
| 10518 |
(JNIEnv *env, jclass that, jint arg0) |
10518 |
(JNIEnv *env, jclass that, jbyteArray arg0, jshort arg1, jshort arg2) |
| 10519 |
{ |
10519 |
{ |
| 10520 |
jint rc = 0; |
10520 |
jbyte *lparg0=NULL; |
| 10521 |
OS_NATIVE_ENTER(env, that, UnlockPortBits_FUNC); |
10521 |
jshort rc = 0; |
| 10522 |
rc = (jint)UnlockPortBits((GrafPtr)arg0); |
10522 |
OS_NATIVE_ENTER(env, that, TextWidth_FUNC); |
| 10523 |
OS_NATIVE_EXIT(env, that, UnlockPortBits_FUNC); |
10523 |
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 10524 |
return rc; |
10524 |
rc = (jshort)TextWidth((const void *)lparg0, (short)arg1, (short)arg2); |
| 10525 |
} |
10525 |
fail: |
| 10526 |
#endif |
10526 |
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); |
| 10527 |
|
10527 |
OS_NATIVE_EXIT(env, that, TextWidth_FUNC); |
| 10528 |
#ifndef NO_UpdateControls |
10528 |
return rc; |
| 10529 |
JNIEXPORT void JNICALL OS_NATIVE(UpdateControls) |
10529 |
} |
| 10530 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
10530 |
#endif |
| 10531 |
{ |
10531 |
|
| 10532 |
OS_NATIVE_ENTER(env, that, UpdateControls_FUNC); |
10532 |
#ifndef NO_TrackDrag |
| 10533 |
UpdateControls((WindowRef)arg0, (RgnHandle)arg1); |
10533 |
JNIEXPORT jint JNICALL OS_NATIVE(TrackDrag) |
| 10534 |
OS_NATIVE_EXIT(env, that, UpdateControls_FUNC); |
10534 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
| 10535 |
} |
10535 |
{ |
| 10536 |
#endif |
10536 |
EventRecord _arg1, *lparg1=NULL; |
| 10537 |
|
10537 |
jint rc = 0; |
| 10538 |
#ifndef NO_UpdateDataBrowserItems |
10538 |
OS_NATIVE_ENTER(env, that, TrackDrag_FUNC); |
| 10539 |
JNIEXPORT jint JNICALL OS_NATIVE(UpdateDataBrowserItems) |
10539 |
if (arg1) if ((lparg1 = getEventRecordFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 10540 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jint arg5) |
10540 |
rc = (jint)TrackDrag((DragRef)arg0, (const EventRecord *)lparg1, (RgnHandle)arg2); |
| 10541 |
{ |
10541 |
fail: |
| 10542 |
jint *lparg3=NULL; |
10542 |
if (arg1 && lparg1) setEventRecordFields(env, arg1, lparg1); |
| 10543 |
jint rc = 0; |
10543 |
OS_NATIVE_EXIT(env, that, TrackDrag_FUNC); |
| 10544 |
OS_NATIVE_ENTER(env, that, UpdateDataBrowserItems_FUNC); |
10544 |
return rc; |
| 10545 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
10545 |
} |
| 10546 |
rc = (jint)UpdateDataBrowserItems((ControlRef)arg0, (DataBrowserItemID)arg1, (UInt32)arg2, (const DataBrowserItemID *)lparg3, (DataBrowserPropertyID)arg4, (DataBrowserPropertyID)arg5); |
10546 |
#endif |
| 10547 |
fail: |
10547 |
|
| 10548 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
10548 |
#ifndef NO_TrackMouseLocationWithOptions |
| 10549 |
OS_NATIVE_EXIT(env, that, UpdateDataBrowserItems_FUNC); |
10549 |
JNIEXPORT jint JNICALL OS_NATIVE(TrackMouseLocationWithOptions) |
| 10550 |
return rc; |
10550 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jdouble arg2, jobject arg3, jintArray arg4, jshortArray arg5) |
| 10551 |
} |
10551 |
{ |
| 10552 |
#endif |
10552 |
Point _arg3, *lparg3=NULL; |
| 10553 |
|
10553 |
jint *lparg4=NULL; |
| 10554 |
#ifndef NO_UpgradeScriptInfoToTextEncoding |
10554 |
jshort *lparg5=NULL; |
| 10555 |
JNIEXPORT jint JNICALL OS_NATIVE(UpgradeScriptInfoToTextEncoding) |
10555 |
jint rc = 0; |
| 10556 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1, jshort arg2, jbyteArray arg3, jintArray arg4) |
10556 |
OS_NATIVE_ENTER(env, that, TrackMouseLocationWithOptions_FUNC); |
| 10557 |
{ |
10557 |
if (arg3) if ((lparg3 = getPointFields(env, arg3, &_arg3)) == NULL) goto fail; |
| 10558 |
jbyte *lparg3=NULL; |
10558 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 10559 |
jint *lparg4=NULL; |
10559 |
if (arg5) if ((lparg5 = (*env)->GetShortArrayElements(env, arg5, NULL)) == NULL) goto fail; |
| 10560 |
jint rc = 0; |
10560 |
rc = (jint)TrackMouseLocationWithOptions((GrafPtr)arg0, (OptionBits)arg1, (EventTimeout)arg2, (Point *)lparg3, (UInt32 *)lparg4, (MouseTrackingResult *)lparg5); |
| 10561 |
OS_NATIVE_ENTER(env, that, UpgradeScriptInfoToTextEncoding_FUNC); |
10561 |
fail: |
| 10562 |
if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail; |
10562 |
if (arg5 && lparg5) (*env)->ReleaseShortArrayElements(env, arg5, lparg5, 0); |
| 10563 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
10563 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 10564 |
rc = (jint)UpgradeScriptInfoToTextEncoding(arg0, arg1, arg2, lparg3, lparg4); |
10564 |
if (arg3 && lparg3) setPointFields(env, arg3, lparg3); |
| 10565 |
fail: |
10565 |
OS_NATIVE_EXIT(env, that, TrackMouseLocationWithOptions_FUNC); |
| 10566 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
10566 |
return rc; |
| 10567 |
if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0); |
10567 |
} |
| 10568 |
OS_NATIVE_EXIT(env, that, UpgradeScriptInfoToTextEncoding_FUNC); |
10568 |
#endif |
| 10569 |
return rc; |
10569 |
|
| 10570 |
} |
10570 |
#ifndef NO_UnionRect |
| 10571 |
#endif |
10571 |
JNIEXPORT void JNICALL OS_NATIVE(UnionRect) |
| 10572 |
|
10572 |
(JNIEnv *env, jclass that, jobject arg0, jobject arg1, jobject arg2) |
| 10573 |
#ifndef NO_WaitMouseMoved |
10573 |
{ |
| 10574 |
JNIEXPORT jboolean JNICALL OS_NATIVE(WaitMouseMoved) |
10574 |
Rect _arg0, *lparg0=NULL; |
| 10575 |
(JNIEnv *env, jclass that, jobject arg0) |
10575 |
Rect _arg1, *lparg1=NULL; |
| 10576 |
{ |
10576 |
Rect _arg2, *lparg2=NULL; |
| 10577 |
Point _arg0, *lparg0=NULL; |
10577 |
OS_NATIVE_ENTER(env, that, UnionRect_FUNC); |
| 10578 |
jboolean rc = 0; |
10578 |
if (arg0) if ((lparg0 = getRectFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 10579 |
OS_NATIVE_ENTER(env, that, WaitMouseMoved_FUNC); |
10579 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 10580 |
if (arg0) if ((lparg0 = getPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
10580 |
if (arg2) if ((lparg2 = &_arg2) == NULL) goto fail; |
| 10581 |
rc = (jboolean)WaitMouseMoved(*lparg0); |
10581 |
UnionRect(lparg0, lparg1, lparg2); |
| 10582 |
fail: |
10582 |
fail: |
| 10583 |
if (arg0 && lparg0) setPointFields(env, arg0, lparg0); |
10583 |
if (arg2 && lparg2) setRectFields(env, arg2, lparg2); |
| 10584 |
OS_NATIVE_EXIT(env, that, WaitMouseMoved_FUNC); |
10584 |
OS_NATIVE_EXIT(env, that, UnionRect_FUNC); |
| 10585 |
return rc; |
10585 |
} |
| 10586 |
} |
10586 |
#endif |
| 10587 |
#endif |
10587 |
|
| 10588 |
|
10588 |
#ifndef NO_UnionRgn |
| 10589 |
#ifndef NO_X2Fix |
10589 |
JNIEXPORT void JNICALL OS_NATIVE(UnionRgn) |
| 10590 |
JNIEXPORT jint JNICALL OS_NATIVE(X2Fix) |
10590 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 10591 |
(JNIEnv *env, jclass that, jdouble arg0) |
10591 |
{ |
| 10592 |
{ |
10592 |
OS_NATIVE_ENTER(env, that, UnionRgn_FUNC); |
| 10593 |
jint rc = 0; |
10593 |
UnionRgn((RgnHandle)arg0, (RgnHandle)arg1, (RgnHandle)arg2); |
| 10594 |
OS_NATIVE_ENTER(env, that, X2Fix_FUNC); |
10594 |
OS_NATIVE_EXIT(env, that, UnionRgn_FUNC); |
| 10595 |
rc = (jint)X2Fix(arg0); |
10595 |
} |
| 10596 |
OS_NATIVE_EXIT(env, that, X2Fix_FUNC); |
10596 |
#endif |
| 10597 |
return rc; |
10597 |
|
| 10598 |
} |
10598 |
#ifndef NO_UnlockPortBits |
| 10599 |
#endif |
10599 |
JNIEXPORT jint JNICALL OS_NATIVE(UnlockPortBits) |
| 10600 |
|
10600 |
(JNIEnv *env, jclass that, jint arg0) |
| 10601 |
#ifndef NO_ZoomWindowIdeal |
10601 |
{ |
| 10602 |
JNIEXPORT jint JNICALL OS_NATIVE(ZoomWindowIdeal) |
10602 |
jint rc = 0; |
| 10603 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jobject arg2) |
10603 |
OS_NATIVE_ENTER(env, that, UnlockPortBits_FUNC); |
| 10604 |
{ |
10604 |
rc = (jint)UnlockPortBits((GrafPtr)arg0); |
| 10605 |
Point _arg2, *lparg2=NULL; |
10605 |
OS_NATIVE_EXIT(env, that, UnlockPortBits_FUNC); |
| 10606 |
jint rc = 0; |
10606 |
return rc; |
| 10607 |
OS_NATIVE_ENTER(env, that, ZoomWindowIdeal_FUNC); |
10607 |
} |
| 10608 |
if (arg2) if ((lparg2 = getPointFields(env, arg2, &_arg2)) == NULL) goto fail; |
10608 |
#endif |
| 10609 |
rc = (jint)ZoomWindowIdeal((WindowRef)arg0, (WindowPartCode)arg1, (Point *)lparg2); |
10609 |
|
| 10610 |
fail: |
10610 |
#ifndef NO_UpdateControls |
| 10611 |
if (arg2 && lparg2) setPointFields(env, arg2, lparg2); |
10611 |
JNIEXPORT void JNICALL OS_NATIVE(UpdateControls) |
| 10612 |
OS_NATIVE_EXIT(env, that, ZoomWindowIdeal_FUNC); |
10612 |
(JNIEnv *env, jclass that, jint arg0, jint arg1) |
| 10613 |
return rc; |
10613 |
{ |
| 10614 |
} |
10614 |
OS_NATIVE_ENTER(env, that, UpdateControls_FUNC); |
| 10615 |
#endif |
10615 |
UpdateControls((WindowRef)arg0, (RgnHandle)arg1); |
| 10616 |
|
10616 |
OS_NATIVE_EXIT(env, that, UpdateControls_FUNC); |
| 10617 |
#ifndef NO_kHIViewWindowContentID |
10617 |
} |
| 10618 |
JNIEXPORT jint JNICALL OS_NATIVE(kHIViewWindowContentID) |
10618 |
#endif |
| 10619 |
(JNIEnv *env, jclass that) |
10619 |
|
| 10620 |
{ |
10620 |
#ifndef NO_UpdateDataBrowserItems |
| 10621 |
jint rc = 0; |
10621 |
JNIEXPORT jint JNICALL OS_NATIVE(UpdateDataBrowserItems) |
| 10622 |
OS_NATIVE_ENTER(env, that, kHIViewWindowContentID_FUNC); |
10622 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jintArray arg3, jint arg4, jint arg5) |
| 10623 |
rc = (jint)&kHIViewWindowContentID; |
10623 |
{ |
| 10624 |
OS_NATIVE_EXIT(env, that, kHIViewWindowContentID_FUNC); |
10624 |
jint *lparg3=NULL; |
| 10625 |
return rc; |
10625 |
jint rc = 0; |
| 10626 |
} |
10626 |
OS_NATIVE_ENTER(env, that, UpdateDataBrowserItems_FUNC); |
| 10627 |
#endif |
10627 |
if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 10628 |
|
10628 |
rc = (jint)UpdateDataBrowserItems((ControlRef)arg0, (DataBrowserItemID)arg1, (UInt32)arg2, (const DataBrowserItemID *)lparg3, (DataBrowserPropertyID)arg4, (DataBrowserPropertyID)arg5); |
| 10629 |
#ifndef NO_kPMDocumentFormatPDF |
10629 |
fail: |
| 10630 |
JNIEXPORT jint JNICALL OS_NATIVE(kPMDocumentFormatPDF) |
10630 |
if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0); |
| 10631 |
(JNIEnv *env, jclass that) |
10631 |
OS_NATIVE_EXIT(env, that, UpdateDataBrowserItems_FUNC); |
| 10632 |
{ |
10632 |
return rc; |
| 10633 |
jint rc = 0; |
10633 |
} |
| 10634 |
OS_NATIVE_ENTER(env, that, kPMDocumentFormatPDF_FUNC); |
10634 |
#endif |
| 10635 |
rc = (jint)kPMDocumentFormatPDF; |
10635 |
|
| 10636 |
OS_NATIVE_EXIT(env, that, kPMDocumentFormatPDF_FUNC); |
10636 |
#ifndef NO_UpgradeScriptInfoToTextEncoding |
| 10637 |
return rc; |
10637 |
JNIEXPORT jint JNICALL OS_NATIVE(UpgradeScriptInfoToTextEncoding) |
| 10638 |
} |
10638 |
(JNIEnv *env, jclass that, jshort arg0, jshort arg1, jshort arg2, jbyteArray arg3, jintArray arg4) |
| 10639 |
#endif |
10639 |
{ |
| 10640 |
|
10640 |
jbyte *lparg3=NULL; |
| 10641 |
#ifndef NO_kPMGraphicsContextCoreGraphics |
10641 |
jint *lparg4=NULL; |
| 10642 |
JNIEXPORT jint JNICALL OS_NATIVE(kPMGraphicsContextCoreGraphics) |
10642 |
jint rc = 0; |
| 10643 |
(JNIEnv *env, jclass that) |
10643 |
OS_NATIVE_ENTER(env, that, UpgradeScriptInfoToTextEncoding_FUNC); |
| 10644 |
{ |
10644 |
if (arg3) if ((lparg3 = (*env)->GetByteArrayElements(env, arg3, NULL)) == NULL) goto fail; |
| 10645 |
jint rc = 0; |
10645 |
if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail; |
| 10646 |
OS_NATIVE_ENTER(env, that, kPMGraphicsContextCoreGraphics_FUNC); |
10646 |
rc = (jint)UpgradeScriptInfoToTextEncoding(arg0, arg1, arg2, lparg3, lparg4); |
| 10647 |
rc = (jint)kPMGraphicsContextCoreGraphics; |
10647 |
fail: |
| 10648 |
OS_NATIVE_EXIT(env, that, kPMGraphicsContextCoreGraphics_FUNC); |
10648 |
if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0); |
| 10649 |
return rc; |
10649 |
if (arg3 && lparg3) (*env)->ReleaseByteArrayElements(env, arg3, lparg3, 0); |
| 10650 |
} |
10650 |
OS_NATIVE_EXIT(env, that, UpgradeScriptInfoToTextEncoding_FUNC); |
| 10651 |
#endif |
10651 |
return rc; |
| 10652 |
|
10652 |
} |
| 10653 |
#ifndef NO_memcpy__III |
10653 |
#endif |
| 10654 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__III) |
10654 |
|
| 10655 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
10655 |
#ifndef NO_WaitMouseMoved |
| 10656 |
{ |
10656 |
JNIEXPORT jboolean JNICALL OS_NATIVE(WaitMouseMoved) |
| 10657 |
OS_NATIVE_ENTER(env, that, memcpy__III_FUNC); |
10657 |
(JNIEnv *env, jclass that, jobject arg0) |
| 10658 |
memcpy((void *)arg0, (const void *)arg1, (size_t)arg2); |
10658 |
{ |
| 10659 |
OS_NATIVE_EXIT(env, that, memcpy__III_FUNC); |
10659 |
Point _arg0, *lparg0=NULL; |
| 10660 |
} |
10660 |
jboolean rc = 0; |
| 10661 |
#endif |
10661 |
OS_NATIVE_ENTER(env, that, WaitMouseMoved_FUNC); |
| 10662 |
|
10662 |
if (arg0) if ((lparg0 = getPointFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 10663 |
#ifndef NO_memcpy__ILorg_eclipse_swt_internal_carbon_ATSUTab_2I |
10663 |
rc = (jboolean)WaitMouseMoved(*lparg0); |
| 10664 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__ILorg_eclipse_swt_internal_carbon_ATSUTab_2I) |
10664 |
fail: |
| 10665 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
10665 |
if (arg0 && lparg0) setPointFields(env, arg0, lparg0); |
| 10666 |
{ |
10666 |
OS_NATIVE_EXIT(env, that, WaitMouseMoved_FUNC); |
| 10667 |
ATSUTab _arg1, *lparg1=NULL; |
10667 |
return rc; |
| 10668 |
OS_NATIVE_ENTER(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_ATSUTab_2I_FUNC); |
10668 |
} |
| 10669 |
if (arg1) if ((lparg1 = getATSUTabFields(env, arg1, &_arg1)) == NULL) goto fail; |
10669 |
#endif |
| 10670 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
10670 |
|
| 10671 |
fail: |
10671 |
#ifndef NO_X2Fix |
| 10672 |
OS_NATIVE_EXIT(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_ATSUTab_2I_FUNC); |
10672 |
JNIEXPORT jint JNICALL OS_NATIVE(X2Fix) |
| 10673 |
} |
10673 |
(JNIEnv *env, jclass that, jdouble arg0) |
| 10674 |
#endif |
10674 |
{ |
| 10675 |
|
10675 |
jint rc = 0; |
| 10676 |
#ifndef NO_memcpy__ILorg_eclipse_swt_internal_carbon_BitMap_2I |
10676 |
OS_NATIVE_ENTER(env, that, X2Fix_FUNC); |
| 10677 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__ILorg_eclipse_swt_internal_carbon_BitMap_2I) |
10677 |
rc = (jint)X2Fix(arg0); |
| 10678 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
10678 |
OS_NATIVE_EXIT(env, that, X2Fix_FUNC); |
| 10679 |
{ |
10679 |
return rc; |
| 10680 |
BitMap _arg1, *lparg1=NULL; |
10680 |
} |
| 10681 |
OS_NATIVE_ENTER(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_BitMap_2I_FUNC); |
10681 |
#endif |
| 10682 |
if (arg1) if ((lparg1 = getBitMapFields(env, arg1, &_arg1)) == NULL) goto fail; |
10682 |
|
| 10683 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
10683 |
#ifndef NO_ZoomWindowIdeal |
| 10684 |
fail: |
10684 |
JNIEXPORT jint JNICALL OS_NATIVE(ZoomWindowIdeal) |
| 10685 |
OS_NATIVE_EXIT(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_BitMap_2I_FUNC); |
10685 |
(JNIEnv *env, jclass that, jint arg0, jshort arg1, jobject arg2) |
| 10686 |
} |
10686 |
{ |
| 10687 |
#endif |
10687 |
Point _arg2, *lparg2=NULL; |
| 10688 |
|
10688 |
jint rc = 0; |
| 10689 |
#ifndef NO_memcpy__ILorg_eclipse_swt_internal_carbon_Cursor_2I |
10689 |
OS_NATIVE_ENTER(env, that, ZoomWindowIdeal_FUNC); |
| 10690 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__ILorg_eclipse_swt_internal_carbon_Cursor_2I) |
10690 |
if (arg2) if ((lparg2 = getPointFields(env, arg2, &_arg2)) == NULL) goto fail; |
| 10691 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
10691 |
rc = (jint)ZoomWindowIdeal((WindowRef)arg0, (WindowPartCode)arg1, (Point *)lparg2); |
| 10692 |
{ |
10692 |
fail: |
| 10693 |
Cursor _arg1, *lparg1=NULL; |
10693 |
if (arg2 && lparg2) setPointFields(env, arg2, lparg2); |
| 10694 |
OS_NATIVE_ENTER(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_Cursor_2I_FUNC); |
10694 |
OS_NATIVE_EXIT(env, that, ZoomWindowIdeal_FUNC); |
| 10695 |
if (arg1) if ((lparg1 = getCursorFields(env, arg1, &_arg1)) == NULL) goto fail; |
10695 |
return rc; |
| 10696 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
10696 |
} |
| 10697 |
fail: |
10697 |
#endif |
| 10698 |
OS_NATIVE_EXIT(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_Cursor_2I_FUNC); |
10698 |
|
| 10699 |
} |
10699 |
#ifndef NO_kHIViewWindowContentID |
| 10700 |
#endif |
10700 |
JNIEXPORT jint JNICALL OS_NATIVE(kHIViewWindowContentID) |
| 10701 |
|
10701 |
(JNIEnv *env, jclass that) |
| 10702 |
#ifndef NO_memcpy__ILorg_eclipse_swt_internal_carbon_EventRecord_2I |
10702 |
{ |
| 10703 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__ILorg_eclipse_swt_internal_carbon_EventRecord_2I) |
10703 |
jint rc = 0; |
| 10704 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
10704 |
OS_NATIVE_ENTER(env, that, kHIViewWindowContentID_FUNC); |
| 10705 |
{ |
10705 |
rc = (jint)&kHIViewWindowContentID; |
| 10706 |
EventRecord _arg1, *lparg1=NULL; |
10706 |
OS_NATIVE_EXIT(env, that, kHIViewWindowContentID_FUNC); |
| 10707 |
OS_NATIVE_ENTER(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_EventRecord_2I_FUNC); |
10707 |
return rc; |
| 10708 |
if (arg1) if ((lparg1 = getEventRecordFields(env, arg1, &_arg1)) == NULL) goto fail; |
10708 |
} |
| 10709 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
10709 |
#endif |
| 10710 |
fail: |
10710 |
|
| 10711 |
OS_NATIVE_EXIT(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_EventRecord_2I_FUNC); |
10711 |
#ifndef NO_kPMDocumentFormatPDF |
| 10712 |
} |
10712 |
JNIEXPORT jint JNICALL OS_NATIVE(kPMDocumentFormatPDF) |
| 10713 |
#endif |
10713 |
(JNIEnv *env, jclass that) |
| 10714 |
|
10714 |
{ |
| 10715 |
#ifndef NO_memcpy__ILorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2I |
10715 |
jint rc = 0; |
| 10716 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__ILorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2I) |
10716 |
OS_NATIVE_ENTER(env, that, kPMDocumentFormatPDF_FUNC); |
| 10717 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
10717 |
rc = (jint)kPMDocumentFormatPDF; |
| 10718 |
{ |
10718 |
OS_NATIVE_EXIT(env, that, kPMDocumentFormatPDF_FUNC); |
| 10719 |
FontSelectionQDStyle _arg1, *lparg1=NULL; |
10719 |
return rc; |
| 10720 |
OS_NATIVE_ENTER(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2I_FUNC); |
10720 |
} |
| 10721 |
if (arg1) if ((lparg1 = getFontSelectionQDStyleFields(env, arg1, &_arg1)) == NULL) goto fail; |
10721 |
#endif |
| 10722 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
10722 |
|
| 10723 |
fail: |
10723 |
#ifndef NO_kPMGraphicsContextCoreGraphics |
| 10724 |
OS_NATIVE_EXIT(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2I_FUNC); |
10724 |
JNIEXPORT jint JNICALL OS_NATIVE(kPMGraphicsContextCoreGraphics) |
| 10725 |
} |
10725 |
(JNIEnv *env, jclass that) |
| 10726 |
#endif |
10726 |
{ |
| 10727 |
|
10727 |
jint rc = 0; |
| 10728 |
#ifndef NO_memcpy__ILorg_eclipse_swt_internal_carbon_HMHelpContentRec_2I |
10728 |
OS_NATIVE_ENTER(env, that, kPMGraphicsContextCoreGraphics_FUNC); |
| 10729 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__ILorg_eclipse_swt_internal_carbon_HMHelpContentRec_2I) |
10729 |
rc = (jint)kPMGraphicsContextCoreGraphics; |
| 10730 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
10730 |
OS_NATIVE_EXIT(env, that, kPMGraphicsContextCoreGraphics_FUNC); |
| 10731 |
{ |
10731 |
return rc; |
| 10732 |
HMHelpContentRec _arg1, *lparg1=NULL; |
10732 |
} |
| 10733 |
OS_NATIVE_ENTER(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_HMHelpContentRec_2I_FUNC); |
10733 |
#endif |
| 10734 |
if (arg1) if ((lparg1 = getHMHelpContentRecFields(env, arg1, &_arg1)) == NULL) goto fail; |
10734 |
|
| 10735 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
10735 |
#ifndef NO_memcpy__III |
| 10736 |
fail: |
10736 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__III) |
| 10737 |
OS_NATIVE_EXIT(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_HMHelpContentRec_2I_FUNC); |
10737 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 10738 |
} |
10738 |
{ |
| 10739 |
#endif |
10739 |
OS_NATIVE_ENTER(env, that, memcpy__III_FUNC); |
| 10740 |
|
10740 |
memcpy((void *)arg0, (const void *)arg1, (size_t)arg2); |
| 10741 |
#ifndef NO_memcpy__ILorg_eclipse_swt_internal_carbon_PixMap_2I |
10741 |
OS_NATIVE_EXIT(env, that, memcpy__III_FUNC); |
| 10742 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__ILorg_eclipse_swt_internal_carbon_PixMap_2I) |
10742 |
} |
| 10743 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
10743 |
#endif |
| 10744 |
{ |
10744 |
|
| 10745 |
PixMap _arg1, *lparg1=NULL; |
10745 |
#ifndef NO_memcpy__ILorg_eclipse_swt_internal_carbon_ATSUTab_2I |
| 10746 |
OS_NATIVE_ENTER(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_PixMap_2I_FUNC); |
10746 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__ILorg_eclipse_swt_internal_carbon_ATSUTab_2I) |
| 10747 |
if (arg1) if ((lparg1 = getPixMapFields(env, arg1, &_arg1)) == NULL) goto fail; |
10747 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
| 10748 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
10748 |
{ |
| 10749 |
fail: |
10749 |
ATSUTab _arg1, *lparg1=NULL; |
| 10750 |
OS_NATIVE_EXIT(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_PixMap_2I_FUNC); |
10750 |
OS_NATIVE_ENTER(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_ATSUTab_2I_FUNC); |
| 10751 |
} |
10751 |
if (arg1) if ((lparg1 = getATSUTabFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 10752 |
#endif |
10752 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
| 10753 |
|
10753 |
fail: |
| 10754 |
#ifndef NO_memcpy__ILorg_eclipse_swt_internal_carbon_RGBColor_2I |
10754 |
OS_NATIVE_EXIT(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_ATSUTab_2I_FUNC); |
| 10755 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__ILorg_eclipse_swt_internal_carbon_RGBColor_2I) |
10755 |
} |
| 10756 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
10756 |
#endif |
| 10757 |
{ |
10757 |
|
| 10758 |
RGBColor _arg1, *lparg1=NULL; |
10758 |
#ifndef NO_memcpy__ILorg_eclipse_swt_internal_carbon_BitMap_2I |
| 10759 |
OS_NATIVE_ENTER(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_RGBColor_2I_FUNC); |
10759 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__ILorg_eclipse_swt_internal_carbon_BitMap_2I) |
| 10760 |
if (arg1) if ((lparg1 = getRGBColorFields(env, arg1, &_arg1)) == NULL) goto fail; |
10760 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
| 10761 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
10761 |
{ |
| 10762 |
fail: |
10762 |
BitMap _arg1, *lparg1=NULL; |
| 10763 |
OS_NATIVE_EXIT(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_RGBColor_2I_FUNC); |
10763 |
OS_NATIVE_ENTER(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_BitMap_2I_FUNC); |
| 10764 |
} |
10764 |
if (arg1) if ((lparg1 = getBitMapFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 10765 |
#endif |
10765 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
| 10766 |
|
10766 |
fail: |
| 10767 |
#ifndef NO_memcpy__ILorg_eclipse_swt_internal_carbon_Rect_2I |
10767 |
OS_NATIVE_EXIT(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_BitMap_2I_FUNC); |
| 10768 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__ILorg_eclipse_swt_internal_carbon_Rect_2I) |
10768 |
} |
| 10769 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
10769 |
#endif |
| 10770 |
{ |
10770 |
|
| 10771 |
Rect _arg1, *lparg1=NULL; |
10771 |
#ifndef NO_memcpy__ILorg_eclipse_swt_internal_carbon_Cursor_2I |
| 10772 |
OS_NATIVE_ENTER(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_Rect_2I_FUNC); |
10772 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__ILorg_eclipse_swt_internal_carbon_Cursor_2I) |
| 10773 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
10773 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
| 10774 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
10774 |
{ |
| 10775 |
fail: |
10775 |
Cursor _arg1, *lparg1=NULL; |
| 10776 |
OS_NATIVE_EXIT(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_Rect_2I_FUNC); |
10776 |
OS_NATIVE_ENTER(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_Cursor_2I_FUNC); |
| 10777 |
} |
10777 |
if (arg1) if ((lparg1 = getCursorFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 10778 |
#endif |
10778 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
| 10779 |
|
10779 |
fail: |
| 10780 |
#ifndef NO_memcpy__I_3BI |
10780 |
OS_NATIVE_EXIT(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_Cursor_2I_FUNC); |
| 10781 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__I_3BI) |
10781 |
} |
| 10782 |
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2) |
10782 |
#endif |
| 10783 |
{ |
10783 |
|
| 10784 |
jbyte *lparg1=NULL; |
10784 |
#ifndef NO_memcpy__ILorg_eclipse_swt_internal_carbon_EventRecord_2I |
| 10785 |
OS_NATIVE_ENTER(env, that, memcpy__I_3BI_FUNC); |
10785 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__ILorg_eclipse_swt_internal_carbon_EventRecord_2I) |
| 10786 |
#ifdef JNI_VERSION_1_2 |
10786 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
| 10787 |
if (IS_JNI_1_2) { |
10787 |
{ |
| 10788 |
if (arg1) if ((lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL)) == NULL) goto fail; |
10788 |
EventRecord _arg1, *lparg1=NULL; |
| 10789 |
} else |
10789 |
OS_NATIVE_ENTER(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_EventRecord_2I_FUNC); |
| 10790 |
#endif |
10790 |
if (arg1) if ((lparg1 = getEventRecordFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 10791 |
{ |
10791 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
| 10792 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
10792 |
fail: |
| 10793 |
} |
10793 |
OS_NATIVE_EXIT(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_EventRecord_2I_FUNC); |
| 10794 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
10794 |
} |
| 10795 |
fail: |
10795 |
#endif |
| 10796 |
#ifdef JNI_VERSION_1_2 |
10796 |
|
| 10797 |
if (IS_JNI_1_2) { |
10797 |
#ifndef NO_memcpy__ILorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2I |
| 10798 |
if (arg1 && lparg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, JNI_ABORT); |
10798 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__ILorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2I) |
| 10799 |
} else |
10799 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
| 10800 |
#endif |
10800 |
{ |
| 10801 |
{ |
10801 |
FontSelectionQDStyle _arg1, *lparg1=NULL; |
| 10802 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, JNI_ABORT); |
10802 |
OS_NATIVE_ENTER(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2I_FUNC); |
| 10803 |
} |
10803 |
if (arg1) if ((lparg1 = getFontSelectionQDStyleFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 10804 |
OS_NATIVE_EXIT(env, that, memcpy__I_3BI_FUNC); |
10804 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
| 10805 |
} |
10805 |
fail: |
| 10806 |
#endif |
10806 |
OS_NATIVE_EXIT(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2I_FUNC); |
| 10807 |
|
10807 |
} |
| 10808 |
#ifndef NO_memcpy__I_3CI |
10808 |
#endif |
| 10809 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__I_3CI) |
10809 |
|
| 10810 |
(JNIEnv *env, jclass that, jint arg0, jcharArray arg1, jint arg2) |
10810 |
#ifndef NO_memcpy__ILorg_eclipse_swt_internal_carbon_HMHelpContentRec_2I |
| 10811 |
{ |
10811 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__ILorg_eclipse_swt_internal_carbon_HMHelpContentRec_2I) |
| 10812 |
jchar *lparg1=NULL; |
10812 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
| 10813 |
OS_NATIVE_ENTER(env, that, memcpy__I_3CI_FUNC); |
10813 |
{ |
| 10814 |
#ifdef JNI_VERSION_1_2 |
10814 |
HMHelpContentRec _arg1, *lparg1=NULL; |
| 10815 |
if (IS_JNI_1_2) { |
10815 |
OS_NATIVE_ENTER(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_HMHelpContentRec_2I_FUNC); |
| 10816 |
if (arg1) if ((lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL)) == NULL) goto fail; |
10816 |
if (arg1) if ((lparg1 = getHMHelpContentRecFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 10817 |
} else |
10817 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
| 10818 |
#endif |
10818 |
fail: |
| 10819 |
{ |
10819 |
OS_NATIVE_EXIT(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_HMHelpContentRec_2I_FUNC); |
| 10820 |
if (arg1) if ((lparg1 = (*env)->GetCharArrayElements(env, arg1, NULL)) == NULL) goto fail; |
10820 |
} |
| 10821 |
} |
10821 |
#endif |
| 10822 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
10822 |
|
| 10823 |
fail: |
10823 |
#ifndef NO_memcpy__ILorg_eclipse_swt_internal_carbon_PixMap_2I |
| 10824 |
#ifdef JNI_VERSION_1_2 |
10824 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__ILorg_eclipse_swt_internal_carbon_PixMap_2I) |
| 10825 |
if (IS_JNI_1_2) { |
10825 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
| 10826 |
if (arg1 && lparg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, JNI_ABORT); |
10826 |
{ |
| 10827 |
} else |
10827 |
PixMap _arg1, *lparg1=NULL; |
| 10828 |
#endif |
10828 |
OS_NATIVE_ENTER(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_PixMap_2I_FUNC); |
| 10829 |
{ |
10829 |
if (arg1) if ((lparg1 = getPixMapFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 10830 |
if (arg1 && lparg1) (*env)->ReleaseCharArrayElements(env, arg1, lparg1, JNI_ABORT); |
10830 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
| 10831 |
} |
10831 |
fail: |
| 10832 |
OS_NATIVE_EXIT(env, that, memcpy__I_3CI_FUNC); |
10832 |
OS_NATIVE_EXIT(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_PixMap_2I_FUNC); |
| 10833 |
} |
10833 |
} |
| 10834 |
#endif |
10834 |
#endif |
| 10835 |
|
10835 |
|
| 10836 |
#ifndef NO_memcpy__I_3II |
10836 |
#ifndef NO_memcpy__ILorg_eclipse_swt_internal_carbon_RGBColor_2I |
| 10837 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__I_3II) |
10837 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__ILorg_eclipse_swt_internal_carbon_RGBColor_2I) |
| 10838 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jint arg2) |
10838 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
| 10839 |
{ |
10839 |
{ |
| 10840 |
jint *lparg1=NULL; |
10840 |
RGBColor _arg1, *lparg1=NULL; |
| 10841 |
OS_NATIVE_ENTER(env, that, memcpy__I_3II_FUNC); |
10841 |
OS_NATIVE_ENTER(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_RGBColor_2I_FUNC); |
| 10842 |
#ifdef JNI_VERSION_1_2 |
10842 |
if (arg1) if ((lparg1 = getRGBColorFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 10843 |
if (IS_JNI_1_2) { |
10843 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
| 10844 |
if (arg1) if ((lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL)) == NULL) goto fail; |
10844 |
fail: |
| 10845 |
} else |
10845 |
OS_NATIVE_EXIT(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_RGBColor_2I_FUNC); |
| 10846 |
#endif |
10846 |
} |
| 10847 |
{ |
10847 |
#endif |
| 10848 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
10848 |
|
| 10849 |
} |
10849 |
#ifndef NO_memcpy__ILorg_eclipse_swt_internal_carbon_Rect_2I |
| 10850 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
10850 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__ILorg_eclipse_swt_internal_carbon_Rect_2I) |
| 10851 |
fail: |
10851 |
(JNIEnv *env, jclass that, jint arg0, jobject arg1, jint arg2) |
| 10852 |
#ifdef JNI_VERSION_1_2 |
10852 |
{ |
| 10853 |
if (IS_JNI_1_2) { |
10853 |
Rect _arg1, *lparg1=NULL; |
| 10854 |
if (arg1 && lparg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, JNI_ABORT); |
10854 |
OS_NATIVE_ENTER(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_Rect_2I_FUNC); |
| 10855 |
} else |
10855 |
if (arg1) if ((lparg1 = getRectFields(env, arg1, &_arg1)) == NULL) goto fail; |
| 10856 |
#endif |
10856 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
| 10857 |
{ |
10857 |
fail: |
| 10858 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, JNI_ABORT); |
10858 |
OS_NATIVE_EXIT(env, that, memcpy__ILorg_eclipse_swt_internal_carbon_Rect_2I_FUNC); |
| 10859 |
} |
10859 |
} |
| 10860 |
OS_NATIVE_EXIT(env, that, memcpy__I_3II_FUNC); |
10860 |
#endif |
| 10861 |
} |
10861 |
|
| 10862 |
#endif |
10862 |
#ifndef NO_memcpy__I_3BI |
| 10863 |
|
10863 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__I_3BI) |
| 10864 |
#ifndef NO_memcpy__Lorg_eclipse_swt_internal_carbon_ATSLayoutRecord_2II |
10864 |
(JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2) |
| 10865 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__Lorg_eclipse_swt_internal_carbon_ATSLayoutRecord_2II) |
10865 |
{ |
| 10866 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2) |
10866 |
jbyte *lparg1=NULL; |
| 10867 |
{ |
10867 |
OS_NATIVE_ENTER(env, that, memcpy__I_3BI_FUNC); |
| 10868 |
ATSLayoutRecord _arg0, *lparg0=NULL; |
10868 |
#ifdef JNI_VERSION_1_2 |
| 10869 |
OS_NATIVE_ENTER(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_ATSLayoutRecord_2II_FUNC); |
10869 |
if (IS_JNI_1_2) { |
| 10870 |
if (arg0) if ((lparg0 = &_arg0) == NULL) goto fail; |
10870 |
if (arg1) if ((lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL)) == NULL) goto fail; |
| 10871 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
10871 |
} else |
| 10872 |
fail: |
10872 |
#endif |
| 10873 |
if (arg0 && lparg0) setATSLayoutRecordFields(env, arg0, lparg0); |
10873 |
{ |
| 10874 |
OS_NATIVE_EXIT(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_ATSLayoutRecord_2II_FUNC); |
10874 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 10875 |
} |
10875 |
} |
| 10876 |
#endif |
10876 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
| 10877 |
|
10877 |
fail: |
| 10878 |
#ifndef NO_memcpy__Lorg_eclipse_swt_internal_carbon_ATSTrapezoid_2II |
10878 |
#ifdef JNI_VERSION_1_2 |
| 10879 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__Lorg_eclipse_swt_internal_carbon_ATSTrapezoid_2II) |
10879 |
if (IS_JNI_1_2) { |
| 10880 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2) |
10880 |
if (arg1 && lparg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, JNI_ABORT); |
| 10881 |
{ |
10881 |
} else |
| 10882 |
ATSTrapezoid _arg0, *lparg0=NULL; |
10882 |
#endif |
| 10883 |
OS_NATIVE_ENTER(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_ATSTrapezoid_2II_FUNC); |
10883 |
{ |
| 10884 |
if (arg0) if ((lparg0 = &_arg0) == NULL) goto fail; |
10884 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, JNI_ABORT); |
| 10885 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
10885 |
} |
| 10886 |
fail: |
10886 |
OS_NATIVE_EXIT(env, that, memcpy__I_3BI_FUNC); |
| 10887 |
if (arg0 && lparg0) setATSTrapezoidFields(env, arg0, lparg0); |
10887 |
} |
| 10888 |
OS_NATIVE_EXIT(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_ATSTrapezoid_2II_FUNC); |
10888 |
#endif |
| 10889 |
} |
10889 |
|
| 10890 |
#endif |
10890 |
#ifndef NO_memcpy__I_3CI |
| 10891 |
|
10891 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__I_3CI) |
| 10892 |
#ifndef NO_memcpy__Lorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2II |
10892 |
(JNIEnv *env, jclass that, jint arg0, jcharArray arg1, jint arg2) |
| 10893 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__Lorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2II) |
10893 |
{ |
| 10894 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2) |
10894 |
jchar *lparg1=NULL; |
| 10895 |
{ |
10895 |
OS_NATIVE_ENTER(env, that, memcpy__I_3CI_FUNC); |
| 10896 |
FontSelectionQDStyle _arg0, *lparg0=NULL; |
10896 |
#ifdef JNI_VERSION_1_2 |
| 10897 |
OS_NATIVE_ENTER(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2II_FUNC); |
10897 |
if (IS_JNI_1_2) { |
| 10898 |
if (arg0) if ((lparg0 = &_arg0) == NULL) goto fail; |
10898 |
if (arg1) if ((lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL)) == NULL) goto fail; |
| 10899 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
10899 |
} else |
| 10900 |
fail: |
10900 |
#endif |
| 10901 |
if (arg0 && lparg0) setFontSelectionQDStyleFields(env, arg0, lparg0); |
10901 |
{ |
| 10902 |
OS_NATIVE_EXIT(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2II_FUNC); |
10902 |
if (arg1) if ((lparg1 = (*env)->GetCharArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 10903 |
} |
10903 |
} |
| 10904 |
#endif |
10904 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
| 10905 |
|
10905 |
fail: |
| 10906 |
#ifndef NO_memcpy__Lorg_eclipse_swt_internal_carbon_GDevice_2II |
10906 |
#ifdef JNI_VERSION_1_2 |
| 10907 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__Lorg_eclipse_swt_internal_carbon_GDevice_2II) |
10907 |
if (IS_JNI_1_2) { |
| 10908 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2) |
10908 |
if (arg1 && lparg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, JNI_ABORT); |
| 10909 |
{ |
10909 |
} else |
| 10910 |
GDevice _arg0, *lparg0=NULL; |
10910 |
#endif |
| 10911 |
OS_NATIVE_ENTER(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_GDevice_2II_FUNC); |
10911 |
{ |
| 10912 |
if (arg0) if ((lparg0 = &_arg0) == NULL) goto fail; |
10912 |
if (arg1 && lparg1) (*env)->ReleaseCharArrayElements(env, arg1, lparg1, JNI_ABORT); |
| 10913 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
10913 |
} |
| 10914 |
fail: |
10914 |
OS_NATIVE_EXIT(env, that, memcpy__I_3CI_FUNC); |
| 10915 |
if (arg0 && lparg0) setGDeviceFields(env, arg0, lparg0); |
10915 |
} |
| 10916 |
OS_NATIVE_EXIT(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_GDevice_2II_FUNC); |
10916 |
#endif |
| 10917 |
} |
10917 |
|
| 10918 |
#endif |
10918 |
#ifndef NO_memcpy__I_3II |
| 10919 |
|
10919 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__I_3II) |
| 10920 |
#ifndef NO_memcpy__Lorg_eclipse_swt_internal_carbon_HMHelpContentRec_2II |
10920 |
(JNIEnv *env, jclass that, jint arg0, jintArray arg1, jint arg2) |
| 10921 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__Lorg_eclipse_swt_internal_carbon_HMHelpContentRec_2II) |
10921 |
{ |
| 10922 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2) |
10922 |
jint *lparg1=NULL; |
| 10923 |
{ |
10923 |
OS_NATIVE_ENTER(env, that, memcpy__I_3II_FUNC); |
| 10924 |
HMHelpContentRec _arg0, *lparg0=NULL; |
10924 |
#ifdef JNI_VERSION_1_2 |
| 10925 |
OS_NATIVE_ENTER(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_HMHelpContentRec_2II_FUNC); |
10925 |
if (IS_JNI_1_2) { |
| 10926 |
if (arg0) if ((lparg0 = &_arg0) == NULL) goto fail; |
10926 |
if (arg1) if ((lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL)) == NULL) goto fail; |
| 10927 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
10927 |
} else |
| 10928 |
fail: |
10928 |
#endif |
| 10929 |
if (arg0 && lparg0) setHMHelpContentRecFields(env, arg0, lparg0); |
10929 |
{ |
| 10930 |
OS_NATIVE_EXIT(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_HMHelpContentRec_2II_FUNC); |
10930 |
if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 10931 |
} |
10931 |
} |
| 10932 |
#endif |
10932 |
memcpy((void *)arg0, (const void *)lparg1, (size_t)arg2); |
| 10933 |
|
10933 |
fail: |
| 10934 |
#ifndef NO_memcpy__Lorg_eclipse_swt_internal_carbon_PixMap_2II |
10934 |
#ifdef JNI_VERSION_1_2 |
| 10935 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__Lorg_eclipse_swt_internal_carbon_PixMap_2II) |
10935 |
if (IS_JNI_1_2) { |
| 10936 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2) |
10936 |
if (arg1 && lparg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, JNI_ABORT); |
| 10937 |
{ |
10937 |
} else |
| 10938 |
PixMap _arg0, *lparg0=NULL; |
10938 |
#endif |
| 10939 |
OS_NATIVE_ENTER(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_PixMap_2II_FUNC); |
10939 |
{ |
| 10940 |
if (arg0) if ((lparg0 = &_arg0) == NULL) goto fail; |
10940 |
if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, JNI_ABORT); |
| 10941 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
10941 |
} |
| 10942 |
fail: |
10942 |
OS_NATIVE_EXIT(env, that, memcpy__I_3II_FUNC); |
| 10943 |
if (arg0 && lparg0) setPixMapFields(env, arg0, lparg0); |
10943 |
} |
| 10944 |
OS_NATIVE_EXIT(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_PixMap_2II_FUNC); |
10944 |
#endif |
| 10945 |
} |
10945 |
|
| 10946 |
#endif |
10946 |
#ifndef NO_memcpy__Lorg_eclipse_swt_internal_carbon_ATSLayoutRecord_2II |
| 10947 |
|
10947 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__Lorg_eclipse_swt_internal_carbon_ATSLayoutRecord_2II) |
| 10948 |
#ifndef NO_memcpy__Lorg_eclipse_swt_internal_carbon_Rect_2II |
10948 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2) |
| 10949 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__Lorg_eclipse_swt_internal_carbon_Rect_2II) |
10949 |
{ |
| 10950 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2) |
10950 |
ATSLayoutRecord _arg0, *lparg0=NULL; |
| 10951 |
{ |
10951 |
OS_NATIVE_ENTER(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_ATSLayoutRecord_2II_FUNC); |
| 10952 |
Rect _arg0, *lparg0=NULL; |
10952 |
if (arg0) if ((lparg0 = &_arg0) == NULL) goto fail; |
| 10953 |
OS_NATIVE_ENTER(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_Rect_2II_FUNC); |
10953 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
| 10954 |
if (arg0) if ((lparg0 = &_arg0) == NULL) goto fail; |
10954 |
fail: |
| 10955 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
10955 |
if (arg0 && lparg0) setATSLayoutRecordFields(env, arg0, lparg0); |
| 10956 |
fail: |
10956 |
OS_NATIVE_EXIT(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_ATSLayoutRecord_2II_FUNC); |
| 10957 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
10957 |
} |
| 10958 |
OS_NATIVE_EXIT(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_Rect_2II_FUNC); |
10958 |
#endif |
| 10959 |
} |
10959 |
|
| 10960 |
#endif |
10960 |
#ifndef NO_memcpy__Lorg_eclipse_swt_internal_carbon_ATSTrapezoid_2II |
| 10961 |
|
10961 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__Lorg_eclipse_swt_internal_carbon_ATSTrapezoid_2II) |
| 10962 |
#ifndef NO_memcpy___3BII |
10962 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2) |
| 10963 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy___3BII) |
10963 |
{ |
| 10964 |
(JNIEnv *env, jclass that, jbyteArray arg0, jint arg1, jint arg2) |
10964 |
ATSTrapezoid _arg0, *lparg0=NULL; |
| 10965 |
{ |
10965 |
OS_NATIVE_ENTER(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_ATSTrapezoid_2II_FUNC); |
| 10966 |
jbyte *lparg0=NULL; |
10966 |
if (arg0) if ((lparg0 = &_arg0) == NULL) goto fail; |
| 10967 |
OS_NATIVE_ENTER(env, that, memcpy___3BII_FUNC); |
10967 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
| 10968 |
#ifdef JNI_VERSION_1_2 |
10968 |
fail: |
| 10969 |
if (IS_JNI_1_2) { |
10969 |
if (arg0 && lparg0) setATSTrapezoidFields(env, arg0, lparg0); |
| 10970 |
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail; |
10970 |
OS_NATIVE_EXIT(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_ATSTrapezoid_2II_FUNC); |
| 10971 |
} else |
10971 |
} |
| 10972 |
#endif |
10972 |
#endif |
| 10973 |
{ |
10973 |
|
| 10974 |
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; |
10974 |
#ifndef NO_memcpy__Lorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2II |
| 10975 |
} |
10975 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__Lorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2II) |
| 10976 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
10976 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2) |
| 10977 |
fail: |
10977 |
{ |
| 10978 |
#ifdef JNI_VERSION_1_2 |
10978 |
FontSelectionQDStyle _arg0, *lparg0=NULL; |
| 10979 |
if (IS_JNI_1_2) { |
10979 |
OS_NATIVE_ENTER(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2II_FUNC); |
| 10980 |
if (arg0 && lparg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0); |
10980 |
if (arg0) if ((lparg0 = &_arg0) == NULL) goto fail; |
| 10981 |
} else |
10981 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
| 10982 |
#endif |
10982 |
fail: |
| 10983 |
{ |
10983 |
if (arg0 && lparg0) setFontSelectionQDStyleFields(env, arg0, lparg0); |
| 10984 |
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); |
10984 |
OS_NATIVE_EXIT(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2II_FUNC); |
| 10985 |
} |
10985 |
} |
| 10986 |
OS_NATIVE_EXIT(env, that, memcpy___3BII_FUNC); |
10986 |
#endif |
| 10987 |
} |
10987 |
|
| 10988 |
#endif |
10988 |
#ifndef NO_memcpy__Lorg_eclipse_swt_internal_carbon_GDevice_2II |
| 10989 |
|
10989 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__Lorg_eclipse_swt_internal_carbon_GDevice_2II) |
| 10990 |
#ifndef NO_memcpy___3B_3CI |
10990 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2) |
| 10991 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy___3B_3CI) |
10991 |
{ |
| 10992 |
(JNIEnv *env, jclass that, jbyteArray arg0, jcharArray arg1, jint arg2) |
10992 |
GDevice _arg0, *lparg0=NULL; |
| 10993 |
{ |
10993 |
OS_NATIVE_ENTER(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_GDevice_2II_FUNC); |
| 10994 |
jbyte *lparg0=NULL; |
10994 |
if (arg0) if ((lparg0 = &_arg0) == NULL) goto fail; |
| 10995 |
jchar *lparg1=NULL; |
10995 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
| 10996 |
OS_NATIVE_ENTER(env, that, memcpy___3B_3CI_FUNC); |
10996 |
fail: |
| 10997 |
#ifdef JNI_VERSION_1_2 |
10997 |
if (arg0 && lparg0) setGDeviceFields(env, arg0, lparg0); |
| 10998 |
if (IS_JNI_1_2) { |
10998 |
OS_NATIVE_EXIT(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_GDevice_2II_FUNC); |
| 10999 |
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail; |
10999 |
} |
| 11000 |
if (arg1) if ((lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL)) == NULL) goto fail; |
11000 |
#endif |
| 11001 |
} else |
11001 |
|
| 11002 |
#endif |
11002 |
#ifndef NO_memcpy__Lorg_eclipse_swt_internal_carbon_HMHelpContentRec_2II |
| 11003 |
{ |
11003 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__Lorg_eclipse_swt_internal_carbon_HMHelpContentRec_2II) |
| 11004 |
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; |
11004 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2) |
| 11005 |
if (arg1) if ((lparg1 = (*env)->GetCharArrayElements(env, arg1, NULL)) == NULL) goto fail; |
11005 |
{ |
| 11006 |
} |
11006 |
HMHelpContentRec _arg0, *lparg0=NULL; |
| 11007 |
memcpy((void *)lparg0, (const void *)lparg1, (size_t)arg2); |
11007 |
OS_NATIVE_ENTER(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_HMHelpContentRec_2II_FUNC); |
| 11008 |
fail: |
11008 |
if (arg0) if ((lparg0 = &_arg0) == NULL) goto fail; |
| 11009 |
#ifdef JNI_VERSION_1_2 |
11009 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
| 11010 |
if (IS_JNI_1_2) { |
11010 |
fail: |
| 11011 |
if (arg1 && lparg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, JNI_ABORT); |
11011 |
if (arg0 && lparg0) setHMHelpContentRecFields(env, arg0, lparg0); |
| 11012 |
if (arg0 && lparg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0); |
11012 |
OS_NATIVE_EXIT(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_HMHelpContentRec_2II_FUNC); |
| 11013 |
} else |
11013 |
} |
| 11014 |
#endif |
11014 |
#endif |
| 11015 |
{ |
11015 |
|
| 11016 |
if (arg1 && lparg1) (*env)->ReleaseCharArrayElements(env, arg1, lparg1, JNI_ABORT); |
11016 |
#ifndef NO_memcpy__Lorg_eclipse_swt_internal_carbon_PixMap_2II |
| 11017 |
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); |
11017 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__Lorg_eclipse_swt_internal_carbon_PixMap_2II) |
| 11018 |
} |
11018 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2) |
| 11019 |
OS_NATIVE_EXIT(env, that, memcpy___3B_3CI_FUNC); |
11019 |
{ |
| 11020 |
} |
11020 |
PixMap _arg0, *lparg0=NULL; |
| 11021 |
#endif |
11021 |
OS_NATIVE_ENTER(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_PixMap_2II_FUNC); |
| 11022 |
|
11022 |
if (arg0) if ((lparg0 = &_arg0) == NULL) goto fail; |
| 11023 |
#ifndef NO_memcpy___3CII |
11023 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
| 11024 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy___3CII) |
11024 |
fail: |
| 11025 |
(JNIEnv *env, jclass that, jcharArray arg0, jint arg1, jint arg2) |
11025 |
if (arg0 && lparg0) setPixMapFields(env, arg0, lparg0); |
| 11026 |
{ |
11026 |
OS_NATIVE_EXIT(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_PixMap_2II_FUNC); |
| 11027 |
jchar *lparg0=NULL; |
11027 |
} |
| 11028 |
OS_NATIVE_ENTER(env, that, memcpy___3CII_FUNC); |
11028 |
#endif |
| 11029 |
#ifdef JNI_VERSION_1_2 |
11029 |
|
| 11030 |
if (IS_JNI_1_2) { |
11030 |
#ifndef NO_memcpy__Lorg_eclipse_swt_internal_carbon_PromiseHFSFlavor_2_3BI |
| 11031 |
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail; |
11031 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__Lorg_eclipse_swt_internal_carbon_PromiseHFSFlavor_2_3BI) |
| 11032 |
} else |
11032 |
(JNIEnv *env, jclass that, jobject arg0, jbyteArray arg1, jint arg2) |
| 11033 |
#endif |
11033 |
{ |
| 11034 |
{ |
11034 |
PromiseHFSFlavor _arg0, *lparg0=NULL; |
| 11035 |
if (arg0) if ((lparg0 = (*env)->GetCharArrayElements(env, arg0, NULL)) == NULL) goto fail; |
11035 |
jbyte *lparg1=NULL; |
| 11036 |
} |
11036 |
OS_NATIVE_ENTER(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_PromiseHFSFlavor_2_3BI_FUNC); |
| 11037 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
11037 |
if (arg0) if ((lparg0 = getPromiseHFSFlavorFields(env, arg0, &_arg0)) == NULL) goto fail; |
| 11038 |
fail: |
11038 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 11039 |
#ifdef JNI_VERSION_1_2 |
11039 |
memcpy((void *)lparg0, (const void *)lparg1, (size_t)arg2); |
| 11040 |
if (IS_JNI_1_2) { |
11040 |
fail: |
| 11041 |
if (arg0 && lparg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0); |
11041 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, 0); |
| 11042 |
} else |
11042 |
if (arg0 && lparg0) setPromiseHFSFlavorFields(env, arg0, lparg0); |
| 11043 |
#endif |
11043 |
OS_NATIVE_EXIT(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_PromiseHFSFlavor_2_3BI_FUNC); |
| 11044 |
{ |
11044 |
} |
| 11045 |
if (arg0 && lparg0) (*env)->ReleaseCharArrayElements(env, arg0, lparg0, 0); |
11045 |
#endif |
| 11046 |
} |
11046 |
|
| 11047 |
OS_NATIVE_EXIT(env, that, memcpy___3CII_FUNC); |
11047 |
#ifndef NO_memcpy__Lorg_eclipse_swt_internal_carbon_Rect_2II |
| 11048 |
} |
11048 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy__Lorg_eclipse_swt_internal_carbon_Rect_2II) |
| 11049 |
#endif |
11049 |
(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2) |
| 11050 |
|
11050 |
{ |
| 11051 |
#ifndef NO_memcpy___3C_3BI |
11051 |
Rect _arg0, *lparg0=NULL; |
| 11052 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy___3C_3BI) |
11052 |
OS_NATIVE_ENTER(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_Rect_2II_FUNC); |
| 11053 |
(JNIEnv *env, jclass that, jcharArray arg0, jbyteArray arg1, jint arg2) |
11053 |
if (arg0) if ((lparg0 = &_arg0) == NULL) goto fail; |
| 11054 |
{ |
11054 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
| 11055 |
jchar *lparg0=NULL; |
11055 |
fail: |
| 11056 |
jbyte *lparg1=NULL; |
11056 |
if (arg0 && lparg0) setRectFields(env, arg0, lparg0); |
| 11057 |
OS_NATIVE_ENTER(env, that, memcpy___3C_3BI_FUNC); |
11057 |
OS_NATIVE_EXIT(env, that, memcpy__Lorg_eclipse_swt_internal_carbon_Rect_2II_FUNC); |
| 11058 |
#ifdef JNI_VERSION_1_2 |
11058 |
} |
| 11059 |
if (IS_JNI_1_2) { |
11059 |
#endif |
| 11060 |
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail; |
11060 |
|
| 11061 |
if (arg1) if ((lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL)) == NULL) goto fail; |
11061 |
#ifndef NO_memcpy___3BII |
| 11062 |
} else |
11062 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy___3BII) |
| 11063 |
#endif |
11063 |
(JNIEnv *env, jclass that, jbyteArray arg0, jint arg1, jint arg2) |
| 11064 |
{ |
11064 |
{ |
| 11065 |
if (arg0) if ((lparg0 = (*env)->GetCharArrayElements(env, arg0, NULL)) == NULL) goto fail; |
11065 |
jbyte *lparg0=NULL; |
| 11066 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
11066 |
OS_NATIVE_ENTER(env, that, memcpy___3BII_FUNC); |
| 11067 |
} |
11067 |
#ifdef JNI_VERSION_1_2 |
| 11068 |
memcpy((void *)lparg0, (const void *)lparg1, (size_t)arg2); |
11068 |
if (IS_JNI_1_2) { |
| 11069 |
fail: |
11069 |
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail; |
| 11070 |
#ifdef JNI_VERSION_1_2 |
11070 |
} else |
| 11071 |
if (IS_JNI_1_2) { |
11071 |
#endif |
| 11072 |
if (arg1 && lparg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, JNI_ABORT); |
11072 |
{ |
| 11073 |
if (arg0 && lparg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0); |
11073 |
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 11074 |
} else |
11074 |
} |
| 11075 |
#endif |
11075 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
| 11076 |
{ |
11076 |
fail: |
| 11077 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, JNI_ABORT); |
11077 |
#ifdef JNI_VERSION_1_2 |
| 11078 |
if (arg0 && lparg0) (*env)->ReleaseCharArrayElements(env, arg0, lparg0, 0); |
11078 |
if (IS_JNI_1_2) { |
| 11079 |
} |
11079 |
if (arg0 && lparg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0); |
| 11080 |
OS_NATIVE_EXIT(env, that, memcpy___3C_3BI_FUNC); |
11080 |
} else |
| 11081 |
} |
11081 |
#endif |
| 11082 |
#endif |
11082 |
{ |
| 11083 |
|
11083 |
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); |
| 11084 |
#ifndef NO_memcpy___3FII |
11084 |
} |
| 11085 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy___3FII) |
11085 |
OS_NATIVE_EXIT(env, that, memcpy___3BII_FUNC); |
| 11086 |
(JNIEnv *env, jclass that, jfloatArray arg0, jint arg1, jint arg2) |
11086 |
} |
| 11087 |
{ |
11087 |
#endif |
| 11088 |
jfloat *lparg0=NULL; |
11088 |
|
| 11089 |
OS_NATIVE_ENTER(env, that, memcpy___3FII_FUNC); |
11089 |
#ifndef NO_memcpy___3B_3CI |
| 11090 |
#ifdef JNI_VERSION_1_2 |
11090 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy___3B_3CI) |
| 11091 |
if (IS_JNI_1_2) { |
11091 |
(JNIEnv *env, jclass that, jbyteArray arg0, jcharArray arg1, jint arg2) |
| 11092 |
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail; |
11092 |
{ |
| 11093 |
} else |
11093 |
jbyte *lparg0=NULL; |
| 11094 |
#endif |
11094 |
jchar *lparg1=NULL; |
| 11095 |
{ |
11095 |
OS_NATIVE_ENTER(env, that, memcpy___3B_3CI_FUNC); |
| 11096 |
if (arg0) if ((lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL)) == NULL) goto fail; |
11096 |
#ifdef JNI_VERSION_1_2 |
| 11097 |
} |
11097 |
if (IS_JNI_1_2) { |
| 11098 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
11098 |
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail; |
| 11099 |
fail: |
11099 |
if (arg1) if ((lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL)) == NULL) goto fail; |
| 11100 |
#ifdef JNI_VERSION_1_2 |
11100 |
} else |
| 11101 |
if (IS_JNI_1_2) { |
11101 |
#endif |
| 11102 |
if (arg0 && lparg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0); |
11102 |
{ |
| 11103 |
} else |
11103 |
if (arg0) if ((lparg0 = (*env)->GetByteArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 11104 |
#endif |
11104 |
if (arg1) if ((lparg1 = (*env)->GetCharArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 11105 |
{ |
11105 |
} |
| 11106 |
if (arg0 && lparg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0); |
11106 |
memcpy((void *)lparg0, (const void *)lparg1, (size_t)arg2); |
| 11107 |
} |
11107 |
fail: |
| 11108 |
OS_NATIVE_EXIT(env, that, memcpy___3FII_FUNC); |
11108 |
#ifdef JNI_VERSION_1_2 |
| 11109 |
} |
11109 |
if (IS_JNI_1_2) { |
| 11110 |
#endif |
11110 |
if (arg1 && lparg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, JNI_ABORT); |
| 11111 |
|
11111 |
if (arg0 && lparg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0); |
| 11112 |
#ifndef NO_memcpy___3III |
11112 |
} else |
| 11113 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy___3III) |
11113 |
#endif |
| 11114 |
(JNIEnv *env, jclass that, jintArray arg0, jint arg1, jint arg2) |
11114 |
{ |
| 11115 |
{ |
11115 |
if (arg1 && lparg1) (*env)->ReleaseCharArrayElements(env, arg1, lparg1, JNI_ABORT); |
| 11116 |
jint *lparg0=NULL; |
11116 |
if (arg0 && lparg0) (*env)->ReleaseByteArrayElements(env, arg0, lparg0, 0); |
| 11117 |
OS_NATIVE_ENTER(env, that, memcpy___3III_FUNC); |
11117 |
} |
| 11118 |
#ifdef JNI_VERSION_1_2 |
11118 |
OS_NATIVE_EXIT(env, that, memcpy___3B_3CI_FUNC); |
| 11119 |
if (IS_JNI_1_2) { |
11119 |
} |
| 11120 |
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail; |
11120 |
#endif |
| 11121 |
} else |
11121 |
|
| 11122 |
#endif |
11122 |
#ifndef NO_memcpy___3CII |
| 11123 |
{ |
11123 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy___3CII) |
| 11124 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
11124 |
(JNIEnv *env, jclass that, jcharArray arg0, jint arg1, jint arg2) |
| 11125 |
} |
11125 |
{ |
| 11126 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
11126 |
jchar *lparg0=NULL; |
| 11127 |
fail: |
11127 |
OS_NATIVE_ENTER(env, that, memcpy___3CII_FUNC); |
| 11128 |
#ifdef JNI_VERSION_1_2 |
11128 |
#ifdef JNI_VERSION_1_2 |
| 11129 |
if (IS_JNI_1_2) { |
11129 |
if (IS_JNI_1_2) { |
| 11130 |
if (arg0 && lparg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0); |
11130 |
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail; |
| 11131 |
} else |
11131 |
} else |
| 11132 |
#endif |
11132 |
#endif |
| 11133 |
{ |
11133 |
{ |
| 11134 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
11134 |
if (arg0) if ((lparg0 = (*env)->GetCharArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 11135 |
} |
11135 |
} |
| 11136 |
OS_NATIVE_EXIT(env, that, memcpy___3III_FUNC); |
11136 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
| 11137 |
} |
11137 |
fail: |
| 11138 |
#endif |
11138 |
#ifdef JNI_VERSION_1_2 |
| 11139 |
|
11139 |
if (IS_JNI_1_2) { |
| 11140 |
#ifndef NO_memset |
11140 |
if (arg0 && lparg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0); |
| 11141 |
JNIEXPORT void JNICALL OS_NATIVE(memset) |
11141 |
} else |
| 11142 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
11142 |
#endif |
| 11143 |
{ |
11143 |
{ |
| 11144 |
OS_NATIVE_ENTER(env, that, memset_FUNC); |
11144 |
if (arg0 && lparg0) (*env)->ReleaseCharArrayElements(env, arg0, lparg0, 0); |
| 11145 |
memset((void *)arg0, arg1, arg2); |
11145 |
} |
| 11146 |
OS_NATIVE_EXIT(env, that, memset_FUNC); |
11146 |
OS_NATIVE_EXIT(env, that, memcpy___3CII_FUNC); |
| 11147 |
} |
11147 |
} |
| 11148 |
#endif |
11148 |
#endif |
| 11149 |
|
11149 |
|
|
|
11150 |
#ifndef NO_memcpy___3C_3BI |
| 11151 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy___3C_3BI) |
| 11152 |
(JNIEnv *env, jclass that, jcharArray arg0, jbyteArray arg1, jint arg2) |
| 11153 |
{ |
| 11154 |
jchar *lparg0=NULL; |
| 11155 |
jbyte *lparg1=NULL; |
| 11156 |
OS_NATIVE_ENTER(env, that, memcpy___3C_3BI_FUNC); |
| 11157 |
#ifdef JNI_VERSION_1_2 |
| 11158 |
if (IS_JNI_1_2) { |
| 11159 |
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail; |
| 11160 |
if (arg1) if ((lparg1 = (*env)->GetPrimitiveArrayCritical(env, arg1, NULL)) == NULL) goto fail; |
| 11161 |
} else |
| 11162 |
#endif |
| 11163 |
{ |
| 11164 |
if (arg0) if ((lparg0 = (*env)->GetCharArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 11165 |
if (arg1) if ((lparg1 = (*env)->GetByteArrayElements(env, arg1, NULL)) == NULL) goto fail; |
| 11166 |
} |
| 11167 |
memcpy((void *)lparg0, (const void *)lparg1, (size_t)arg2); |
| 11168 |
fail: |
| 11169 |
#ifdef JNI_VERSION_1_2 |
| 11170 |
if (IS_JNI_1_2) { |
| 11171 |
if (arg1 && lparg1) (*env)->ReleasePrimitiveArrayCritical(env, arg1, lparg1, JNI_ABORT); |
| 11172 |
if (arg0 && lparg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0); |
| 11173 |
} else |
| 11174 |
#endif |
| 11175 |
{ |
| 11176 |
if (arg1 && lparg1) (*env)->ReleaseByteArrayElements(env, arg1, lparg1, JNI_ABORT); |
| 11177 |
if (arg0 && lparg0) (*env)->ReleaseCharArrayElements(env, arg0, lparg0, 0); |
| 11178 |
} |
| 11179 |
OS_NATIVE_EXIT(env, that, memcpy___3C_3BI_FUNC); |
| 11180 |
} |
| 11181 |
#endif |
| 11182 |
|
| 11183 |
#ifndef NO_memcpy___3FII |
| 11184 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy___3FII) |
| 11185 |
(JNIEnv *env, jclass that, jfloatArray arg0, jint arg1, jint arg2) |
| 11186 |
{ |
| 11187 |
jfloat *lparg0=NULL; |
| 11188 |
OS_NATIVE_ENTER(env, that, memcpy___3FII_FUNC); |
| 11189 |
#ifdef JNI_VERSION_1_2 |
| 11190 |
if (IS_JNI_1_2) { |
| 11191 |
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail; |
| 11192 |
} else |
| 11193 |
#endif |
| 11194 |
{ |
| 11195 |
if (arg0) if ((lparg0 = (*env)->GetFloatArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 11196 |
} |
| 11197 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
| 11198 |
fail: |
| 11199 |
#ifdef JNI_VERSION_1_2 |
| 11200 |
if (IS_JNI_1_2) { |
| 11201 |
if (arg0 && lparg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0); |
| 11202 |
} else |
| 11203 |
#endif |
| 11204 |
{ |
| 11205 |
if (arg0 && lparg0) (*env)->ReleaseFloatArrayElements(env, arg0, lparg0, 0); |
| 11206 |
} |
| 11207 |
OS_NATIVE_EXIT(env, that, memcpy___3FII_FUNC); |
| 11208 |
} |
| 11209 |
#endif |
| 11210 |
|
| 11211 |
#ifndef NO_memcpy___3III |
| 11212 |
JNIEXPORT void JNICALL OS_NATIVE(memcpy___3III) |
| 11213 |
(JNIEnv *env, jclass that, jintArray arg0, jint arg1, jint arg2) |
| 11214 |
{ |
| 11215 |
jint *lparg0=NULL; |
| 11216 |
OS_NATIVE_ENTER(env, that, memcpy___3III_FUNC); |
| 11217 |
#ifdef JNI_VERSION_1_2 |
| 11218 |
if (IS_JNI_1_2) { |
| 11219 |
if (arg0) if ((lparg0 = (*env)->GetPrimitiveArrayCritical(env, arg0, NULL)) == NULL) goto fail; |
| 11220 |
} else |
| 11221 |
#endif |
| 11222 |
{ |
| 11223 |
if (arg0) if ((lparg0 = (*env)->GetIntArrayElements(env, arg0, NULL)) == NULL) goto fail; |
| 11224 |
} |
| 11225 |
memcpy((void *)lparg0, (const void *)arg1, (size_t)arg2); |
| 11226 |
fail: |
| 11227 |
#ifdef JNI_VERSION_1_2 |
| 11228 |
if (IS_JNI_1_2) { |
| 11229 |
if (arg0 && lparg0) (*env)->ReleasePrimitiveArrayCritical(env, arg0, lparg0, 0); |
| 11230 |
} else |
| 11231 |
#endif |
| 11232 |
{ |
| 11233 |
if (arg0 && lparg0) (*env)->ReleaseIntArrayElements(env, arg0, lparg0, 0); |
| 11234 |
} |
| 11235 |
OS_NATIVE_EXIT(env, that, memcpy___3III_FUNC); |
| 11236 |
} |
| 11237 |
#endif |
| 11238 |
|
| 11239 |
#ifndef NO_memset |
| 11240 |
JNIEXPORT void JNICALL OS_NATIVE(memset) |
| 11241 |
(JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2) |
| 11242 |
{ |
| 11243 |
OS_NATIVE_ENTER(env, that, memset_FUNC); |
| 11244 |
memset((void *)arg0, arg1, arg2); |
| 11245 |
OS_NATIVE_EXIT(env, that, memset_FUNC); |
| 11246 |
} |
| 11247 |
#endif |
| 11248 |
|