Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 132514 | Differences between
and this patch

Collapse All | Expand All

(-)org.eclipse.swt_before/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DropTarget.java (-13 / +29 lines)
Lines 7-12 Link Here
7
 * 
7
 * 
8
 * Contributors:
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
9
 *     IBM Corporation - initial API and implementation
10
 *     Plum Canary Corporation - support for embedded file transfer
10
 *******************************************************************************/
11
 *******************************************************************************/
11
package org.eclipse.swt.dnd;
12
package org.eclipse.swt.dnd;
12
13
Lines 68-73 Link Here
68
 * </dl>
69
 * </dl>
69
 */
70
 */
70
public class DropTarget extends Widget {
71
public class DropTarget extends Widget {
72
	/**
73
	 * Author: Alexey Kharlamov
74
	 * Current Drag reference for use in EmbeddedFileTransfer
75
	 */
76
	static int currentDrag;
71
77
72
	private Control control;
78
	private Control control;
73
	private Listener controlListener;
79
	private Listener controlListener;
Lines 221-229 Link Here
221
}
227
}
222
228
223
private static int DragReceiveHandler(int theWindow, int handlerRefCon, int theDrag) {
229
private static int DragReceiveHandler(int theWindow, int handlerRefCon, int theDrag) {
224
	DropTarget target = FindDropTarget(theWindow, theDrag);
230
	currentDrag = theDrag;
225
	if (target == null) return OS.noErr;
231
	try{
226
	return target.dragReceiveHandler(theWindow, handlerRefCon, theDrag);   
232
		DropTarget target = FindDropTarget(theWindow, theDrag);
233
		if (target == null) return OS.noErr;
234
		return target.dragReceiveHandler(theWindow, handlerRefCon, theDrag);
235
	} finally {
236
		currentDrag = 0;
237
	}
227
}
238
}
228
239
229
private static int DragTrackingHandler(int message, int theWindow, int handlerRefCon, int theDrag) {
240
private static int DragTrackingHandler(int message, int theWindow, int handlerRefCon, int theDrag) {
Lines 231-249 Link Here
231
		CurrentDropTarget = null;
242
		CurrentDropTarget = null;
232
		return OS.noErr;
243
		return OS.noErr;
233
	}
244
	}
234
	DropTarget target = FindDropTarget(theWindow, theDrag);
245
	currentDrag = theDrag;
235
	if (CurrentDropTarget != null) {
246
	try{
236
		if (target == null || CurrentDropTarget.control.handle != target.control.handle) {
247
		DropTarget target = FindDropTarget(theWindow, theDrag);
237
			CurrentDropTarget.dragTrackingHandler(OS.kDragTrackingLeaveWindow, theWindow, handlerRefCon, theDrag);
248
		if (CurrentDropTarget != null) {
249
			if (target == null || CurrentDropTarget.control.handle != target.control.handle) {
250
				CurrentDropTarget.dragTrackingHandler(OS.kDragTrackingLeaveWindow, theWindow, handlerRefCon, theDrag);
251
				CurrentDropTarget = target;
252
				message = OS.kDragTrackingEnterWindow;
253
			}
254
		} else {
238
			CurrentDropTarget = target;
255
			CurrentDropTarget = target;
239
			message = OS.kDragTrackingEnterWindow;
256
			message = OS.kDragTrackingEnterWindow;
240
		}
257
		}
241
	} else {
258
		if (target == null) return OS.noErr;
242
		CurrentDropTarget = target;
259
		return target.dragTrackingHandler(message, theWindow, handlerRefCon, theDrag);
243
		message = OS.kDragTrackingEnterWindow;
260
	} finally {
261
		currentDrag = 0;
244
	}
262
	}
245
	if (target == null) return OS.noErr;
246
	return target.dragTrackingHandler(message, theWindow, handlerRefCon, theDrag);   
247
}
263
}
248
264
249
private static DropTarget FindDropTarget(int theWindow, int theDrag) {
265
private static DropTarget FindDropTarget(int theWindow, int theDrag) {
Lines 644-650 Link Here
644
		short[] numFlavors = new short[1];
660
		short[] numFlavors = new short[1];
645
		OS.CountDragItemFlavors(theDrag, theItemRef[0], numFlavors);
661
		OS.CountDragItemFlavors(theDrag, theItemRef[0], numFlavors);
646
		int[] theType = new int[1];
662
		int[] theType = new int[1];
647
		for (int j = 0; j < numFlavors.length; j++) {
663
		for (int j = 0; j < numFlavors[0]; j++) {
648
			theType[0] = 0;
664
			theType[0] = 0;
649
			if (OS.GetFlavorType(theDrag, theItemRef[0], (short) (j+1), theType) == OS.noErr) {
665
			if (OS.GetFlavorType(theDrag, theItemRef[0], (short) (j+1), theType) == OS.noErr) {
650
				boolean unique = true;
666
				boolean unique = true;
(-)org.eclipse.swt_before/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/EmbeddedFileTransfer.java (+256 lines)
Line 0 Link Here
1
/*****************************************************************************
2
 * Copyright (c) 2005, 2006 Plum Canary Corporation.
3
 * All rights reserved. This program and the accompanying materials 
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/org/documents/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     Plum Canary Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.swt.dnd;
12
13
import java.io.File;
14
import java.util.Date;
15
16
import org.eclipse.swt.internal.carbon.AEDesc;
17
import org.eclipse.swt.internal.carbon.CFRange;
18
import org.eclipse.swt.internal.carbon.OS;
19
import org.eclipse.swt.internal.carbon.PromiseHFSFlavor;
20
21
/**
22
 * is a transfer handling Clipboard operations for Windows file content OLE data
23
 * type.
24
 * 
25
 * @author Alexey Kharlamov <aharlamov@gmail.com>
26
 * @version $Revision: 1.6 $
27
 */
28
public class EmbeddedFileTransfer extends ByteArrayTransfer {
29
	private static final String FURL = "furl";
30
31
	private static final int FURL_ID = registerType(FURL);
32
33
	private static final String PROMISEHFS = "phfs";
34
35
	private static final int PROMISEHFS_ID = registerType(PROMISEHFS);
36
	
37
	private static final String FILE_FINDER_PROMISED_FLAVOR = "rWm1";
38
	
39
	private static final int FILE_FINDER_PROMISED_FLAVOR_ID = registerType(FILE_FINDER_PROMISED_FLAVOR);
40
41
	private static EmbeddedFileTransfer instance;
42
43
	public static synchronized EmbeddedFileTransfer getInstance() {
44
		if (instance == null) {
45
			instance = new EmbeddedFileTransfer();
46
		}
47
		return instance;
48
	}
49
50
	/**
51
	 * private constructor to ban instantiation.
52
	 */
53
	private EmbeddedFileTransfer() {
54
		super();
55
	}
56
57
	/*
58
	 * (non-Javadoc)
59
	 * 
60
	 * @see org.eclipse.swt.dnd.Transfer#getTypeIds()
61
	 */
62
	protected int[] getTypeIds() {
63
		return new int[] { PROMISEHFS_ID, FURL_ID };
64
	}
65
66
	/*
67
	 * (non-Javadoc)
68
	 * 
69
	 * @see org.eclipse.swt.dnd.Transfer#getTypeNames()
70
	 */
71
	protected String[] getTypeNames() {
72
		return new String[] { PROMISEHFS, FURL };
73
	}
74
75
	/*
76
	 * (non-Javadoc)
77
	 * 
78
	 * @see org.eclipse.swt.dnd.Transfer#javaToNative(java.lang.Object,
79
	 *      org.eclipse.swt.dnd.TransferData)
80
	 */
81
	protected void javaToNative(Object object, TransferData transferData) {
82
		DND.error(DND.ERROR_CANNOT_INIT_DRAG);
83
	}
84
85
	/*
86
	 * (non-Javadoc)
87
	 * 
88
	 * @see org.eclipse.swt.dnd.Transfer#nativeToJava(org.eclipse.swt.dnd.TransferData)
89
	 */
90
	protected Object nativeToJava(TransferData transferData) {
91
		if (!isSupportedType(transferData) || transferData.data == null)
92
			return null;
93
		int count = transferData.data.length;
94
		if (count == 0)
95
			return null;
96
97
		EmbeddedFile[] files = new EmbeddedFile[count];
98
		if (transferData.type == FURL_ID) {
99
			for (int lindex = 0; lindex < count; lindex++) {
100
				byte[] data = transferData.data[lindex];
101
				if (data.length == 0) return null;
102
				int url = OS.CFURLCreateWithBytes(OS.kCFAllocatorDefault, data, data.length, OS.kCFStringEncodingUTF8, 0);
103
				if (url == 0) return null;
104
				try{
105
					int path = OS.CFURLCopyFileSystemPath(url, OS.kCFURLPOSIXPathStyle);
106
					if (path == 0) return null;
107
					try {
108
						int length = OS.CFStringGetLength(path);
109
						if (length == 0) return null;
110
						char[] buffer= new char[length];
111
						CFRange range = new CFRange();
112
						range.length = length;
113
						OS.CFStringGetCharacters(path, range, buffer);
114
						String name = new String(buffer);
115
						File f = new File(name);
116
						files[lindex] = new EmbeddedFile(f, name, null, new Date(f.lastModified()));
117
					} finally {
118
						OS.CFRelease(path);
119
					}
120
				} finally {
121
					OS.CFRelease(url);
122
				}
123
			}
124
			return files;
125
		}
126
127
		if (transferData.type == PROMISEHFS_ID) {
128
			for (int i = 0; i < count; i++) {		
129
				byte[] data = transferData.data[i];
130
				byte[] dropFSRef = createTempDropDirectory(i);
131
				if(dropFSRef == null){
132
					return null;
133
				}
134
135
				int theDrag = DropTarget.currentDrag;
136
				
137
				PromiseHFSFlavor promiseFlavor = new PromiseHFSFlavor();
138
				OS.memcpy(promiseFlavor, data, PromiseHFSFlavor.sizeof);
139
				boolean isFromFileFind = promiseFlavor.promisedFlavor == FILE_FINDER_PROMISED_FLAVOR_ID;
140
				
141
				if(!isFromFileFind){
142
					if(!setDropLocation(theDrag, dropFSRef)) return null;
143
				}
144
				
145
				EmbeddedFile f = toEmbeddedFile(theDrag, i, promiseFlavor.promisedFlavor);
146
				if(f != null){
147
					files[i] = f;
148
				} else {
149
					return null;
150
				}
151
			}
152
			return files;
153
		}
154
		return null;
155
	}
156
157
	private boolean setDropLocation(int theDrag, byte[] dropFSRef) {
158
		int[] aliasHandle = new int[1];
159
		if(OS.FSNewAliasMinimal(dropFSRef, aliasHandle) != OS.noErr) return false;
160
		try{
161
			OS.HLock(aliasHandle[0]);
162
			int size = OS.GetHandleSize(aliasHandle[0]);
163
			AEDesc aeDesc = new AEDesc();
164
			int[] ptr = new int[1];
165
			OS.memcpy(ptr, aliasHandle[0], 4);
166
			if(OS.AECreateDesc(OS.typeAlias, ptr[0], size, aeDesc) != OS.noErr) return false;
167
			try{
168
				OS.SetDropLocation(theDrag, aeDesc);
169
			} finally {
170
				OS.AEDisposeDesc(aeDesc);
171
			}
172
		} finally {
173
			OS.DisposeHandle(aliasHandle[0]);
174
		}
175
		return true;
176
	}
177
178
	/**
179
	 * creates an FSSpec of a directory to drop the file.
180
	 * @param dropIndex
181
	 * @return
182
	 */
183
	private byte[] createTempDropDirectory(int dropIndex) {
184
		File tempDir = new File(System.getProperty("java.io.tmpdir"));
185
		File dropDir = null;
186
		// Try 10000 times to create a temp directory.
187
		for(int i =0; i < 10000; i++){
188
			dropDir = new File(tempDir, "eft"+dropIndex);
189
			if(!dropDir.exists() || (dropDir.isDirectory() && dropDir.list().length == 0)){
190
				dropDir.mkdirs();
191
				break;
192
			}
193
			dropIndex++;
194
		}
195
		if(dropDir == null){
196
			return null;
197
		}
198
		dropDir.deleteOnExit();
199
		
200
		String fullPath = dropDir.getAbsolutePath();
201
		char[] chars = new char[fullPath.length()];
202
		fullPath.getChars(0, chars.length, chars, 0);
203
		int cfstring = OS.CFStringCreateWithCharacters(OS.kCFAllocatorDefault, chars, chars.length);
204
		if(cfstring == 0){
205
			return null;
206
		}
207
		try{
208
			int cfurl = OS.CFURLCreateWithFileSystemPath(OS.kCFAllocatorDefault, cfstring, OS.kCFURLPOSIXPathStyle, true);
209
			if(cfurl == 0) return null;
210
			try{
211
				byte[] fsRef = new byte[80];
212
				if (!OS.CFURLGetFSRef(cfurl, fsRef)) return null;
213
				return fsRef;
214
			} finally {
215
				OS.CFRelease(cfurl);
216
			}
217
		} finally {
218
			OS.CFRelease(cfstring);
219
		}
220
	}
221
222
	private EmbeddedFile toEmbeddedFile(int theDrag, int index, int promisedFlavor) {
223
		int[] itemRef = new int[1];
224
		OS.GetDragItemReferenceNumber(theDrag, (short) (index + 1), itemRef);
225
		int[] size = new int[1];
226
		size[0] = 70;
227
		byte[] fsspec = new byte[size[0]];
228
		if(OS.GetFlavorData(theDrag, itemRef[0], promisedFlavor, fsspec, size, 0) != OS.noErr){
229
			return null;
230
		}
231
		byte[] fsRef = new byte[80];
232
		if (OS.FSpMakeFSRef(fsspec, fsRef) != OS.noErr)
233
			return null;
234
		int url = OS.CFURLCreateFromFSRef(OS.kCFAllocatorDefault, fsRef);
235
		if (url == 0) return null;
236
		try {
237
			int path = OS.CFURLCopyFileSystemPath(url, OS.kCFURLPOSIXPathStyle);
238
			if (path == 0) return null;
239
			try {
240
				int length = OS.CFStringGetLength(path);
241
				if (length == 0) return null;
242
				char[] buffer = new char[length];
243
				CFRange range = new CFRange();
244
				range.length = length;
245
				OS.CFStringGetCharacters(path, range, buffer);
246
				File tempFile = new File(new String(buffer));
247
				tempFile.deleteOnExit();
248
				return new EmbeddedFile(tempFile, tempFile.getName(), null, null);
249
			} finally {
250
				OS.CFRelease(path);
251
			}
252
		} finally {
253
			OS.CFRelease(url);
254
		}
255
	}
256
}
(-)org.eclipse.swt_before/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/EmbeddedFile.java (+94 lines)
Line 0 Link Here
1
/*****************************************************************************
2
 * Copyright (c) 2005, 2006 Plum Canary Corporation.
3
 * All rights reserved. This program and the accompanying materials 
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     Plum Canary Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.swt.dnd;
12
13
import java.io.File;
14
import java.io.FileInputStream;
15
import java.io.FileNotFoundException;
16
import java.io.InputStream;
17
import java.util.Date;
18
19
/**
20
 * is a representation of an embedded file for clipboard and DND operations.
21
 * 
22
 * @author Alexey Kharlamov <aharlamov@gmail.com>
23
 * @version $Revision: 1.3 $
24
 */
25
public class EmbeddedFile {
26
    
27
    private File tempFile;
28
    
29
    private Date creationTime;
30
31
    private String fileName;
32
33
    private Date lastWriteTime;
34
35
    /**
36
     * creates an embedded file.
37
     * 
38
     * @param file
39
     *            the file to create an input stream.
40
     * @param name
41
     *            the name of file.
42
     * @param creationTime
43
     *            the file creation time or null.
44
     * @param lastWriteTime
45
     *            the last write time or null.
46
     * @throws FileNotFoundException
47
     */
48
    public EmbeddedFile(File file, String name, Date creationTime, Date lastWriteTime) {
49
        super();
50
        this.tempFile = file;
51
        this.fileName = name;
52
        this.creationTime = creationTime;
53
        this.lastWriteTime = lastWriteTime;
54
    }
55
56
    /**
57
     * returns creation time of the file.
58
     * 
59
     * @return returns the creation date object or null if the value is not
60
     *         defined.
61
     */
62
    public Date getCreationTime() {
63
        return this.creationTime;
64
    }
65
66
    /**
67
     * returns a data stream.
68
     * 
69
     * @return the data stream.
70
     * @throws FileNotFoundException 
71
     */
72
    public InputStream getDataStream() throws FileNotFoundException {
73
        return new FileInputStream(tempFile);
74
    }
75
76
    /**
77
     * returns name of the embedded file.
78
     * 
79
     * @return the name.
80
     */
81
    public String getFileName() {
82
        return this.fileName;
83
    }
84
85
    /**
86
     * returns last write time of the file.
87
     * 
88
     * @return returns the creation date object or null if the value is not
89
     *         defined.
90
     */
91
    public Date getLastWriteTime() {
92
        return this.lastWriteTime;
93
    }
94
}
(-)org.eclipse.swt_before/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/EmbeddedFileTransfer.java (+250 lines)
Line 0 Link Here
1
/*****************************************************************************
2
 * Copyright (c) 2005, 2006 Plum Canary Corporation.
3
 * All rights reserved. This program and the accompanying materials 
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/org/documents/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     Plum Canary Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.swt.dnd;
12
13
import java.io.File;
14
import java.io.FileOutputStream;
15
import java.io.IOException;
16
import java.util.Date;
17
18
import org.eclipse.swt.internal.ole.win32.COM;
19
import org.eclipse.swt.internal.ole.win32.FILEDESCRIPTOR;
20
import org.eclipse.swt.internal.ole.win32.FILEDESCRIPTORA;
21
import org.eclipse.swt.internal.ole.win32.FORMATETC;
22
import org.eclipse.swt.internal.ole.win32.IDataObject;
23
import org.eclipse.swt.internal.ole.win32.IStream;
24
import org.eclipse.swt.internal.ole.win32.STGMEDIUM;
25
import org.eclipse.swt.internal.win32.FILETIME;
26
import org.eclipse.swt.internal.win32.OS;
27
28
/**
29
 * is a transfer handling Clipboard operations for Windows file content OLE data
30
 * type.
31
 * 
32
 * @author Alexey Kharlamov <aharlamov@gmail.com>
33
 * @version $Revision: 1.3 $
34
 */
35
public class EmbeddedFileTransfer extends Transfer {
36
    private static final String CF_FILECONTENT = "FileContents";
37
38
    private static final int CF_FILECONTENT_ID = registerType(CF_FILECONTENT);
39
40
    private static final String CF_FILEDESCRIPTION = "FileGroupDescriptor";
41
42
    private static final int CF_FILEDESCRIPTION_ID = registerType(CF_FILEDESCRIPTION);
43
44
    private static final long FILETIME_OFFSET = 11644473600000L;
45
46
    private static EmbeddedFileTransfer instance;
47
48
    public static synchronized EmbeddedFileTransfer getInstance() {
49
        if (instance == null) {
50
            instance = new EmbeddedFileTransfer();
51
        }
52
        return instance;
53
    }
54
55
    /**
56
     * private constructor to ban instantiation.
57
     */
58
    private EmbeddedFileTransfer() {
59
        super();
60
    }
61
62
    public TransferData[] getSupportedTypes() {
63
        int[] types = getTypeIds();
64
        TransferData[] data = new TransferData[types.length];
65
        for (int i = 0; i < types.length; i++) {
66
            data[i] = new TransferData();
67
            data[i].type = types[i];
68
            data[i].formatetc = new FORMATETC();
69
            data[i].formatetc.cfFormat = types[i];
70
            data[i].formatetc.dwAspect = COM.DVASPECT_CONTENT;
71
            data[i].formatetc.lindex = -1;
72
            data[i].formatetc.tymed = COM.TYMED_HGLOBAL;
73
        }
74
        return data;
75
    }
76
77
    public boolean isSupportedType(TransferData transferData) {
78
        if (transferData == null)
79
            return false;
80
        int[] types = getTypeIds();
81
        for (int i = 0; i < types.length; i++) {
82
            FORMATETC format = transferData.formatetc;
83
            if (format.cfFormat == types[i]
84
                    && (format.dwAspect & COM.DVASPECT_CONTENT) == COM.DVASPECT_CONTENT
85
                    && (format.tymed & COM.TYMED_HGLOBAL) == COM.TYMED_HGLOBAL)
86
                return true;
87
        }
88
        return false;
89
    }
90
91
    /*
92
     * (non-Javadoc)
93
     * 
94
     * @see org.eclipse.swt.dnd.Transfer#getTypeIds()
95
     */
96
    protected int[] getTypeIds() {
97
        return new int[] { CF_FILEDESCRIPTION_ID };
98
    }
99
100
    /*
101
     * (non-Javadoc)
102
     * 
103
     * @see org.eclipse.swt.dnd.Transfer#getTypeNames()
104
     */
105
    protected String[] getTypeNames() {
106
        return new String[] { CF_FILEDESCRIPTION };
107
    }
108
109
    /*
110
     * (non-Javadoc)
111
     * 
112
     * @see org.eclipse.swt.dnd.Transfer#javaToNative(java.lang.Object,
113
     *      org.eclipse.swt.dnd.TransferData)
114
     */
115
    protected void javaToNative(Object object, TransferData transferData) {
116
        DND.error(DND.ERROR_CANNOT_INIT_DRAG);
117
    }
118
119
    /*
120
     * (non-Javadoc)
121
     * 
122
     * @see org.eclipse.swt.dnd.Transfer#nativeToJava(org.eclipse.swt.dnd.TransferData)
123
     */
124
    protected Object nativeToJava(TransferData transferData) {
125
        if (!isSupportedType(transferData) || transferData.pIDataObject == 0)
126
            return null;
127
        EmbeddedFile[] result;
128
        IDataObject data = new IDataObject(transferData.pIDataObject);
129
        data.AddRef();
130
        FORMATETC formatetc;
131
        STGMEDIUM stgmedium;
132
        try {
133
            formatetc = transferData.formatetc;
134
            stgmedium = new STGMEDIUM();
135
            stgmedium.tymed = COM.TYMED_HGLOBAL;
136
            if (data.GetData(formatetc, stgmedium) != COM.S_OK) {
137
                return null;
138
            }
139
            int hMem = stgmedium.unionField;
140
            int[] fileCount = new int[1];
141
            int ptr = OS.GlobalLock(hMem);
142
            if (ptr == 0) {
143
                return null;
144
            }
145
            try {
146
                OS.MoveMemory(fileCount, ptr, 4);
147
                result = new EmbeddedFile[fileCount[0]];
148
                ptr += 4;
149
150
                for (int i = 0; i < fileCount[0]; i++) {
151
                    EmbeddedFile embeddedFile = null;
152
                    FILEDESCRIPTORA desc = new FILEDESCRIPTORA();
153
                    COM.MoveMemory(desc, ptr, FILEDESCRIPTORA.sizeof);
154
                    result[i] = createEmbeddedFile(desc, data);
155
                    ptr += FILEDESCRIPTORA.sizeof;
156
                }
157
            } finally {
158
                OS.GlobalFree(hMem);
159
            }
160
        } finally {
161
            data.Release();
162
        }
163
        return result;
164
    }
165
166
    private boolean checkObject(Object object) {
167
        return (object instanceof EmbeddedFile[]);
168
    }
169
170
    private EmbeddedFile createEmbeddedFile(FILEDESCRIPTOR desc,
171
            IDataObject data) {
172
        EmbeddedFile embeddedFile;
173
        Date ctime = null;
174
        Date ltime = null;
175
        if ((desc.dwFlags & COM.FD_CREATETIME) != 0) {
176
            ctime = FILETIME2Date(desc.ftCreationTime);
177
        }
178
        if ((desc.dwFlags & COM.FD_WRITESTIME) != 0) {
179
            ltime = FILETIME2Date(desc.ftLastWriteTime);
180
        }
181
182
        byte[] bytes = ((FILEDESCRIPTORA) desc).cFileName;
183
        char[] chars = new char[OS.MAX_PATH];
184
        OS.MultiByteToWideChar(OS.CP_ACP, 0, bytes, -1, chars, OS.MAX_PATH);
185
        StringBuffer buffer = new StringBuffer(OS.MAX_PATH);
186
        for (int i = 0; chars[i] != 0 && i < chars.length; i++) {
187
            buffer.append(chars[i]);
188
        }
189
        String name = buffer.toString();
190
191
        try {
192
            File tmpFile = saveContentTo(data, 0);
193
            tmpFile.deleteOnExit();
194
            embeddedFile = new EmbeddedFile(tmpFile, name, ctime, ltime);
195
        } catch (IOException e) {
196
            embeddedFile = null;
197
        }
198
        return embeddedFile;
199
    }
200
201
    private Date FILETIME2Date(FILETIME ft) {
202
        int low = ft.dwLowDateTime & 0x7FFFFFFF;
203
        int sign = (ft.dwLowDateTime >>> 31);
204
        long nanos = (ft.dwHighDateTime << 32) | (sign << 31) | low;
205
        return new Date((nanos - FILETIME_OFFSET) / 10);
206
    }
207
208
    private File saveContentTo(IDataObject data, int lindex) throws IOException {
209
        FORMATETC formatetc = new FORMATETC();
210
        formatetc.cfFormat = CF_FILECONTENT_ID;
211
        formatetc.dwAspect = COM.DVASPECT_CONTENT;
212
        formatetc.lindex = lindex;
213
        formatetc.tymed = COM.TYMED_ISTREAM;
214
215
        STGMEDIUM stgmedium = new STGMEDIUM();
216
        stgmedium.tymed = COM.TYMED_ISTREAM;
217
218
        if (data.GetData(formatetc, stgmedium) == COM.S_OK) {
219
            File tempFile = File.createTempFile("swtdnd", "tmp");
220
            boolean success = false;
221
            IStream tempContents = new IStream(stgmedium.unionField);
222
            tempContents.AddRef();
223
            try {
224
                FileOutputStream writer = new FileOutputStream(tempFile);
225
226
                int increment = 1024 * 4;
227
                int pv = COM.CoTaskMemAlloc(increment);
228
                int[] pcbWritten = new int[1];
229
                while (tempContents.Read(pv, increment, pcbWritten) == COM.S_OK
230
                        && pcbWritten[0] > 0) {
231
                    byte[] buffer = new byte[pcbWritten[0]];
232
                    OS.MoveMemory(buffer, pv, pcbWritten[0]);
233
                    // Note: if file does not exist, this
234
                    // will create the file the first time it is called
235
                    writer.write(buffer);
236
                    success = true;
237
                }
238
                COM.CoTaskMemFree(pv);
239
240
                writer.close();
241
            } finally {
242
                tempContents.Release();
243
            }
244
            return tempFile;
245
        } else {
246
            return null;
247
        }
248
    }
249
250
}
(-)org.eclipse.swt_before/Eclipse SWT PI/carbon/library/os.c (-11149 / +11248 lines)
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
(-)org.eclipse.swt_before/Eclipse SWT PI/carbon/library/os_stats.c (-838 / +845 lines)
Lines 1-838 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_stats.h"
13
#include "os_stats.h"
14
14
15
#ifdef NATIVE_STATS
15
#ifdef NATIVE_STATS
16
16
17
int OS_nativeFunctionCount = 796;
17
int OS_nativeFunctionCount = 803;
18
int OS_nativeFunctionCallCount[796];
18
int OS_nativeFunctionCallCount[803];
19
char * OS_nativeFunctionNames[] = {
19
char * OS_nativeFunctionNames[] = {
20
	"AECountItems",
20
	"AECountItems",
21
	"AEGetNthPtr",
21
	"AECreateDesc",
22
	"AEProcessAppleEvent",
22
	"AEDisposeDesc",
23
	"ATSFontGetPostScriptName",
23
	"AEGetNthPtr",
24
	"ATSUBatchBreakLines",
24
	"AEProcessAppleEvent",
25
	"ATSUCreateStyle",
25
	"ATSFontGetPostScriptName",
26
	"ATSUCreateTextLayout",
26
	"ATSUBatchBreakLines",
27
	"ATSUCreateTextLayoutWithTextPtr",
27
	"ATSUCreateStyle",
28
	"ATSUDirectGetLayoutDataArrayPtrFromTextLayout",
28
	"ATSUCreateTextLayout",
29
	"ATSUDirectReleaseLayoutDataArrayPtr",
29
	"ATSUCreateTextLayoutWithTextPtr",
30
	"ATSUDisposeStyle",
30
	"ATSUDirectGetLayoutDataArrayPtrFromTextLayout",
31
	"ATSUDisposeTextLayout",
31
	"ATSUDirectReleaseLayoutDataArrayPtr",
32
	"ATSUDrawText",
32
	"ATSUDisposeStyle",
33
	"ATSUFindFontFromName",
33
	"ATSUDisposeTextLayout",
34
	"ATSUFindFontName",
34
	"ATSUDrawText",
35
	"ATSUGetFontIDs",
35
	"ATSUFindFontFromName",
36
	"ATSUGetGlyphBounds__IIIIISII_3I",
36
	"ATSUFindFontName",
37
	"ATSUGetGlyphBounds__IIIIISILorg_eclipse_swt_internal_carbon_ATSTrapezoid_2_3I",
37
	"ATSUGetFontIDs",
38
	"ATSUGetLayoutControl",
38
	"ATSUGetGlyphBounds__IIIIISII_3I",
39
	"ATSUGetLineControl",
39
	"ATSUGetGlyphBounds__IIIIISILorg_eclipse_swt_internal_carbon_ATSTrapezoid_2_3I",
40
	"ATSUGetSoftLineBreaks",
40
	"ATSUGetLayoutControl",
41
	"ATSUGetTextHighlight",
41
	"ATSUGetLineControl",
42
	"ATSUGetUnjustifiedBounds",
42
	"ATSUGetSoftLineBreaks",
43
	"ATSUGlyphGetQuadraticPaths",
43
	"ATSUGetTextHighlight",
44
	"ATSUHighlightText",
44
	"ATSUGetUnjustifiedBounds",
45
	"ATSUNextCursorPosition",
45
	"ATSUGlyphGetQuadraticPaths",
46
	"ATSUOffsetToPosition",
46
	"ATSUHighlightText",
47
	"ATSUPositionToOffset",
47
	"ATSUNextCursorPosition",
48
	"ATSUPreviousCursorPosition",
48
	"ATSUOffsetToPosition",
49
	"ATSUSetAttributes",
49
	"ATSUPositionToOffset",
50
	"ATSUSetFontFeatures",
50
	"ATSUPreviousCursorPosition",
51
	"ATSUSetHighlightingMethod",
51
	"ATSUSetAttributes",
52
	"ATSUSetLayoutControls",
52
	"ATSUSetFontFeatures",
53
	"ATSUSetLineControls",
53
	"ATSUSetHighlightingMethod",
54
	"ATSUSetRunStyle",
54
	"ATSUSetLayoutControls",
55
	"ATSUSetSoftLineBreak",
55
	"ATSUSetLineControls",
56
	"ATSUSetTabArray",
56
	"ATSUSetRunStyle",
57
	"ATSUSetTextPointerLocation",
57
	"ATSUSetSoftLineBreak",
58
	"ATSUSetTransientFontMatching",
58
	"ATSUSetTabArray",
59
	"ATSUTextDeleted",
59
	"ATSUSetTextPointerLocation",
60
	"ATSUTextInserted",
60
	"ATSUSetTransientFontMatching",
61
	"ActiveNonFloatingWindow",
61
	"ATSUTextDeleted",
62
	"AddDataBrowserItems",
62
	"ATSUTextInserted",
63
	"AddDataBrowserListViewColumn",
63
	"ActiveNonFloatingWindow",
64
	"AddDragItemFlavor",
64
	"AddDataBrowserItems",
65
	"AppendMenuItemTextWithCFString",
65
	"AddDataBrowserListViewColumn",
66
	"AutoSizeDataBrowserListViewColumns",
66
	"AddDragItemFlavor",
67
	"BeginUpdate",
67
	"AppendMenuItemTextWithCFString",
68
	"BringToFront",
68
	"AutoSizeDataBrowserListViewColumns",
69
	"CFArrayAppendValue",
69
	"BeginUpdate",
70
	"CFArrayCreateMutable",
70
	"BringToFront",
71
	"CFArrayGetCount",
71
	"CFArrayAppendValue",
72
	"CFArrayGetValueAtIndex",
72
	"CFArrayCreateMutable",
73
	"CFRelease",
73
	"CFArrayGetCount",
74
	"CFStringCreateWithBytes",
74
	"CFArrayGetValueAtIndex",
75
	"CFStringCreateWithCharacters",
75
	"CFRelease",
76
	"CFStringGetBytes",
76
	"CFStringCreateWithBytes",
77
	"CFStringGetCharacters",
77
	"CFStringCreateWithCharacters",
78
	"CFStringGetLength",
78
	"CFStringGetBytes",
79
	"CFStringGetSystemEncoding",
79
	"CFStringGetCharacters",
80
	"CFURLCopyFileSystemPath",
80
	"CFStringGetLength",
81
	"CFURLCopyLastPathComponent",
81
	"CFStringGetSystemEncoding",
82
	"CFURLCreateCopyAppendingPathComponent",
82
	"CFURLCopyFileSystemPath",
83
	"CFURLCreateCopyDeletingLastPathComponent",
83
	"CFURLCopyLastPathComponent",
84
	"CFURLCreateFromFSRef",
84
	"CFURLCreateCopyAppendingPathComponent",
85
	"CFURLCreateWithFileSystemPath",
85
	"CFURLCreateCopyDeletingLastPathComponent",
86
	"CFURLGetFSRef",
86
	"CFURLCreateFromFSRef",
87
	"CGAffineTransformConcat",
87
	"CFURLCreateWithBytes",
88
	"CGAffineTransformInvert",
88
	"CFURLCreateWithFileSystemPath",
89
	"CGAffineTransformMake",
89
	"CFURLGetFSRef",
90
	"CGAffineTransformRotate",
90
	"CGAffineTransformConcat",
91
	"CGAffineTransformScale",
91
	"CGAffineTransformInvert",
92
	"CGAffineTransformTranslate",
92
	"CGAffineTransformMake",
93
	"CGBitmapContextCreate",
93
	"CGAffineTransformRotate",
94
	"CGColorSpaceCreateDeviceRGB",
94
	"CGAffineTransformScale",
95
	"CGColorSpaceRelease",
95
	"CGAffineTransformTranslate",
96
	"CGContextAddArc",
96
	"CGBitmapContextCreate",
97
	"CGContextAddArcToPoint",
97
	"CGColorSpaceCreateDeviceRGB",
98
	"CGContextAddLineToPoint",
98
	"CGColorSpaceRelease",
99
	"CGContextAddLines",
99
	"CGContextAddArc",
100
	"CGContextAddPath",
100
	"CGContextAddArcToPoint",
101
	"CGContextBeginPath",
101
	"CGContextAddLineToPoint",
102
	"CGContextClearRect",
102
	"CGContextAddLines",
103
	"CGContextClip",
103
	"CGContextAddPath",
104
	"CGContextClosePath",
104
	"CGContextBeginPath",
105
	"CGContextConcatCTM",
105
	"CGContextClearRect",
106
	"CGContextDrawImage",
106
	"CGContextClip",
107
	"CGContextEOClip",
107
	"CGContextClosePath",
108
	"CGContextEOFillPath",
108
	"CGContextConcatCTM",
109
	"CGContextFillPath",
109
	"CGContextDrawImage",
110
	"CGContextFillRect",
110
	"CGContextEOClip",
111
	"CGContextFlush",
111
	"CGContextEOFillPath",
112
	"CGContextGetInterpolationQuality",
112
	"CGContextFillPath",
113
	"CGContextGetTextPosition",
113
	"CGContextFillRect",
114
	"CGContextMoveToPoint",
114
	"CGContextFlush",
115
	"CGContextRelease",
115
	"CGContextGetInterpolationQuality",
116
	"CGContextRestoreGState",
116
	"CGContextGetTextPosition",
117
	"CGContextSaveGState",
117
	"CGContextMoveToPoint",
118
	"CGContextScaleCTM",
118
	"CGContextRelease",
119
	"CGContextSelectFont",
119
	"CGContextRestoreGState",
120
	"CGContextSetAlpha",
120
	"CGContextSaveGState",
121
	"CGContextSetFillColor",
121
	"CGContextScaleCTM",
122
	"CGContextSetFillColorSpace",
122
	"CGContextSelectFont",
123
	"CGContextSetFont",
123
	"CGContextSetAlpha",
124
	"CGContextSetFontSize",
124
	"CGContextSetFillColor",
125
	"CGContextSetInterpolationQuality",
125
	"CGContextSetFillColorSpace",
126
	"CGContextSetLineCap",
126
	"CGContextSetFont",
127
	"CGContextSetLineDash",
127
	"CGContextSetFontSize",
128
	"CGContextSetLineJoin",
128
	"CGContextSetInterpolationQuality",
129
	"CGContextSetLineWidth",
129
	"CGContextSetLineCap",
130
	"CGContextSetRGBFillColor",
130
	"CGContextSetLineDash",
131
	"CGContextSetRGBStrokeColor",
131
	"CGContextSetLineJoin",
132
	"CGContextSetRenderingIntent",
132
	"CGContextSetLineWidth",
133
	"CGContextSetShouldAntialias",
133
	"CGContextSetRGBFillColor",
134
	"CGContextSetShouldSmoothFonts",
134
	"CGContextSetRGBStrokeColor",
135
	"CGContextSetStrokeColor",
135
	"CGContextSetRenderingIntent",
136
	"CGContextSetStrokeColorSpace",
136
	"CGContextSetShouldAntialias",
137
	"CGContextSetTextDrawingMode",
137
	"CGContextSetShouldSmoothFonts",
138
	"CGContextSetTextMatrix",
138
	"CGContextSetStrokeColor",
139
	"CGContextSetTextPosition",
139
	"CGContextSetStrokeColorSpace",
140
	"CGContextShowText",
140
	"CGContextSetTextDrawingMode",
141
	"CGContextShowTextAtPoint",
141
	"CGContextSetTextMatrix",
142
	"CGContextStrokePath",
142
	"CGContextSetTextPosition",
143
	"CGContextStrokeRect",
143
	"CGContextShowText",
144
	"CGContextSynchronize",
144
	"CGContextShowTextAtPoint",
145
	"CGContextTranslateCTM",
145
	"CGContextStrokePath",
146
	"CGDataProviderCreateWithData",
146
	"CGContextStrokeRect",
147
	"CGDataProviderRelease",
147
	"CGContextSynchronize",
148
	"CGDisplayBaseAddress",
148
	"CGContextTranslateCTM",
149
	"CGDisplayBitsPerPixel",
149
	"CGDataProviderCreateWithData",
150
	"CGDisplayBitsPerSample",
150
	"CGDataProviderRelease",
151
	"CGDisplayBytesPerRow",
151
	"CGDisplayBaseAddress",
152
	"CGDisplayPixelsHigh",
152
	"CGDisplayBitsPerPixel",
153
	"CGDisplayPixelsWide",
153
	"CGDisplayBitsPerSample",
154
	"CGFontCreateWithPlatformFont",
154
	"CGDisplayBytesPerRow",
155
	"CGFontRelease",
155
	"CGDisplayPixelsHigh",
156
	"CGGetDisplaysWithRect",
156
	"CGDisplayPixelsWide",
157
	"CGImageCreate",
157
	"CGFontCreateWithPlatformFont",
158
	"CGImageGetAlphaInfo",
158
	"CGFontRelease",
159
	"CGImageGetBitsPerComponent",
159
	"CGGetDisplaysWithRect",
160
	"CGImageGetBitsPerPixel",
160
	"CGImageCreate",
161
	"CGImageGetBytesPerRow",
161
	"CGImageGetAlphaInfo",
162
	"CGImageGetColorSpace",
162
	"CGImageGetBitsPerComponent",
163
	"CGImageGetHeight",
163
	"CGImageGetBitsPerPixel",
164
	"CGImageGetWidth",
164
	"CGImageGetBytesPerRow",
165
	"CGImageRelease",
165
	"CGImageGetColorSpace",
166
	"CGPathAddArc",
166
	"CGImageGetHeight",
167
	"CGPathAddCurveToPoint",
167
	"CGImageGetWidth",
168
	"CGPathAddLineToPoint",
168
	"CGImageRelease",
169
	"CGPathAddPath",
169
	"CGPathAddArc",
170
	"CGPathAddQuadCurveToPoint",
170
	"CGPathAddCurveToPoint",
171
	"CGPathAddRect",
171
	"CGPathAddLineToPoint",
172
	"CGPathCloseSubpath",
172
	"CGPathAddPath",
173
	"CGPathCreateMutable",
173
	"CGPathAddQuadCurveToPoint",
174
	"CGPathGetBoundingBox",
174
	"CGPathAddRect",
175
	"CGPathGetCurrentPoint",
175
	"CGPathCloseSubpath",
176
	"CGPathIsEmpty",
176
	"CGPathCreateMutable",
177
	"CGPathMoveToPoint",
177
	"CGPathGetBoundingBox",
178
	"CGPathRelease",
178
	"CGPathGetCurrentPoint",
179
	"CGPointApplyAffineTransform",
179
	"CGPathIsEmpty",
180
	"CGPostKeyboardEvent",
180
	"CGPathMoveToPoint",
181
	"CGPostMouseEvent",
181
	"CGPathRelease",
182
	"CGWarpMouseCursorPosition",
182
	"CGPointApplyAffineTransform",
183
	"CPSEnableForegroundOperation",
183
	"CGPostKeyboardEvent",
184
	"CPSSetProcessName",
184
	"CGPostMouseEvent",
185
	"CallNextEventHandler",
185
	"CGWarpMouseCursorPosition",
186
	"CharWidth",
186
	"CPSEnableForegroundOperation",
187
	"ClearCurrentScrap",
187
	"CPSSetProcessName",
188
	"ClearKeyboardFocus",
188
	"CallNextEventHandler",
189
	"ClearMenuBar",
189
	"CharWidth",
190
	"ClipCGContextToRegion",
190
	"ClearCurrentScrap",
191
	"CloseDataBrowserContainer",
191
	"ClearKeyboardFocus",
192
	"ClosePoly",
192
	"ClearMenuBar",
193
	"CloseRgn",
193
	"ClipCGContextToRegion",
194
	"CollapseWindow",
194
	"CloseDataBrowserContainer",
195
	"ConvertEventRefToEventRecord",
195
	"ClosePoly",
196
	"ConvertFromPStringToUnicode",
196
	"CloseRgn",
197
	"ConvertFromUnicodeToPString",
197
	"CollapseWindow",
198
	"CopyBits",
198
	"ConvertEventRefToEventRecord",
199
	"CopyControlTitleAsCFString",
199
	"ConvertFromPStringToUnicode",
200
	"CopyDeepMask",
200
	"ConvertFromUnicodeToPString",
201
	"CopyMenuItemTextAsCFString",
201
	"CopyBits",
202
	"CopyRgn",
202
	"CopyControlTitleAsCFString",
203
	"CountDragItemFlavors",
203
	"CopyDeepMask",
204
	"CountDragItems",
204
	"CopyMenuItemTextAsCFString",
205
	"CountMenuItems",
205
	"CopyRgn",
206
	"CountSubControls",
206
	"CountDragItemFlavors",
207
	"CreateBevelButtonControl",
207
	"CountDragItems",
208
	"CreateCGContextForPort",
208
	"CountMenuItems",
209
	"CreateCheckBoxControl",
209
	"CountSubControls",
210
	"CreateDataBrowserControl",
210
	"CreateBevelButtonControl",
211
	"CreateEditUnicodeTextControl",
211
	"CreateCGContextForPort",
212
	"CreateEvent",
212
	"CreateCheckBoxControl",
213
	"CreateGroupBoxControl",
213
	"CreateDataBrowserControl",
214
	"CreateIconControl",
214
	"CreateEditUnicodeTextControl",
215
	"CreateLittleArrowsControl",
215
	"CreateEvent",
216
	"CreateNewMenu",
216
	"CreateGroupBoxControl",
217
	"CreateNewWindow",
217
	"CreateIconControl",
218
	"CreatePopupArrowControl",
218
	"CreateLittleArrowsControl",
219
	"CreatePopupButtonControl",
219
	"CreateNewMenu",
220
	"CreateProgressBarControl",
220
	"CreateNewWindow",
221
	"CreatePushButtonControl",
221
	"CreatePopupArrowControl",
222
	"CreatePushButtonWithIconControl",
222
	"CreatePopupButtonControl",
223
	"CreateRadioButtonControl",
223
	"CreateProgressBarControl",
224
	"CreateRootControl",
224
	"CreatePushButtonControl",
225
	"CreateScrollBarControl",
225
	"CreatePushButtonWithIconControl",
226
	"CreateSeparatorControl",
226
	"CreateRadioButtonControl",
227
	"CreateSliderControl",
227
	"CreateRootControl",
228
	"CreateStandardAlert",
228
	"CreateScrollBarControl",
229
	"CreateStaticTextControl",
229
	"CreateSeparatorControl",
230
	"CreateTabsControl",
230
	"CreateSliderControl",
231
	"CreateTextToUnicodeInfoByEncoding",
231
	"CreateStandardAlert",
232
	"CreateUnicodeToTextInfoByEncoding",
232
	"CreateStaticTextControl",
233
	"CreateUserPaneControl",
233
	"CreateTabsControl",
234
	"CreateWindowGroup",
234
	"CreateTextToUnicodeInfoByEncoding",
235
	"DMGetFirstScreenDevice",
235
	"CreateUnicodeToTextInfoByEncoding",
236
	"DMGetNextScreenDevice",
236
	"CreateUserPaneControl",
237
	"DeleteMenu",
237
	"CreateWindowGroup",
238
	"DeleteMenuItem",
238
	"DMGetFirstScreenDevice",
239
	"DeleteMenuItems",
239
	"DMGetNextScreenDevice",
240
	"DiffRgn",
240
	"DeleteMenu",
241
	"DisableControl",
241
	"DeleteMenuItem",
242
	"DisableMenuCommand",
242
	"DeleteMenuItems",
243
	"DisableMenuItem",
243
	"DiffRgn",
244
	"DisposeControl",
244
	"DisableControl",
245
	"DisposeDrag",
245
	"DisableMenuCommand",
246
	"DisposeGWorld",
246
	"DisableMenuItem",
247
	"DisposeHandle",
247
	"DisposeControl",
248
	"DisposeMenu",
248
	"DisposeDrag",
249
	"DisposePtr",
249
	"DisposeGWorld",
250
	"DisposeRgn",
250
	"DisposeHandle",
251
	"DisposeTextToUnicodeInfo",
251
	"DisposeMenu",
252
	"DisposeUnicodeToTextInfo",
252
	"DisposePtr",
253
	"DisposeWindow",
253
	"DisposeRgn",
254
	"DrawControlInCurrentPort",
254
	"DisposeTextToUnicodeInfo",
255
	"DrawMenuBar",
255
	"DisposeUnicodeToTextInfo",
256
	"DrawText",
256
	"DisposeWindow",
257
	"DrawThemeButton",
257
	"DrawControlInCurrentPort",
258
	"DrawThemeEditTextFrame",
258
	"DrawMenuBar",
259
	"DrawThemeFocusRect",
259
	"DrawText",
260
	"DrawThemePopupArrow",
260
	"DrawThemeButton",
261
	"DrawThemeSeparator",
261
	"DrawThemeEditTextFrame",
262
	"DrawThemeTextBox",
262
	"DrawThemeFocusRect",
263
	"EmbedControl",
263
	"DrawThemePopupArrow",
264
	"EmptyRect",
264
	"DrawThemeSeparator",
265
	"EmptyRgn",
265
	"DrawThemeTextBox",
266
	"EnableControl",
266
	"EmbedControl",
267
	"EnableMenuCommand",
267
	"EmptyRect",
268
	"EnableMenuItem",
268
	"EmptyRgn",
269
	"EndUpdate",
269
	"EnableControl",
270
	"EqualRect",
270
	"EnableMenuCommand",
271
	"EraseRect",
271
	"EnableMenuItem",
272
	"EraseRgn",
272
	"EndUpdate",
273
	"FMCreateFontFamilyInstanceIterator",
273
	"EqualRect",
274
	"FMCreateFontFamilyIterator",
274
	"EraseRect",
275
	"FMDisposeFontFamilyInstanceIterator",
275
	"EraseRgn",
276
	"FMDisposeFontFamilyIterator",
276
	"FMCreateFontFamilyInstanceIterator",
277
	"FMGetATSFontRefFromFont",
277
	"FMCreateFontFamilyIterator",
278
	"FMGetFontFamilyFromName",
278
	"FMDisposeFontFamilyInstanceIterator",
279
	"FMGetFontFamilyInstanceFromFont",
279
	"FMDisposeFontFamilyIterator",
280
	"FMGetFontFamilyName",
280
	"FMGetATSFontRefFromFont",
281
	"FMGetFontFromFontFamilyInstance",
281
	"FMGetFontFamilyFromName",
282
	"FMGetNextFontFamily",
282
	"FMGetFontFamilyInstanceFromFont",
283
	"FMGetNextFontFamilyInstance",
283
	"FMGetFontFamilyName",
284
	"FPIsFontPanelVisible",
284
	"FMGetFontFromFontFamilyInstance",
285
	"FPShowHideFontPanel",
285
	"FMGetNextFontFamily",
286
	"FSGetCatalogInfo",
286
	"FMGetNextFontFamilyInstance",
287
	"FSpGetFInfo",
287
	"FPIsFontPanelVisible",
288
	"FSpMakeFSRef",
288
	"FPShowHideFontPanel",
289
	"FetchFontInfo",
289
	"FSGetCatalogInfo",
290
	"FindWindow",
290
	"FSNewAliasMinimal",
291
	"Fix2Long",
291
	"FSpGetFInfo",
292
	"Fix2X",
292
	"FSpMakeFSRef",
293
	"FrameOval",
293
	"FetchFontInfo",
294
	"FramePoly",
294
	"FindWindow",
295
	"FrameRect",
295
	"Fix2Long",
296
	"FrameRoundRect",
296
	"Fix2X",
297
	"FrontWindow",
297
	"FrameOval",
298
	"Gestalt",
298
	"FramePoly",
299
	"GetAppFont",
299
	"FrameRect",
300
	"GetApplicationEventTarget",
300
	"FrameRoundRect",
301
	"GetAvailableWindowAttributes",
301
	"FrontWindow",
302
	"GetAvailableWindowPositioningBounds",
302
	"Gestalt",
303
	"GetBestControlRect",
303
	"GetAppFont",
304
	"GetCaretTime",
304
	"GetApplicationEventTarget",
305
	"GetClip",
305
	"GetAvailableWindowAttributes",
306
	"GetControl32BitMaximum",
306
	"GetAvailableWindowPositioningBounds",
307
	"GetControl32BitMinimum",
307
	"GetBestControlRect",
308
	"GetControl32BitValue",
308
	"GetCaretTime",
309
	"GetControlBounds",
309
	"GetClip",
310
	"GetControlData__ISIILorg_eclipse_swt_internal_carbon_ControlFontStyleRec_2_3I",
310
	"GetControl32BitMaximum",
311
	"GetControlData__ISIILorg_eclipse_swt_internal_carbon_Rect_2_3I",
311
	"GetControl32BitMinimum",
312
	"GetControlData__ISII_3B_3I",
312
	"GetControl32BitValue",
313
	"GetControlData__ISII_3I_3I",
313
	"GetControlBounds",
314
	"GetControlData__ISII_3S_3I",
314
	"GetControlData__ISIILorg_eclipse_swt_internal_carbon_ControlFontStyleRec_2_3I",
315
	"GetControlEventTarget",
315
	"GetControlData__ISIILorg_eclipse_swt_internal_carbon_Rect_2_3I",
316
	"GetControlFeatures",
316
	"GetControlData__ISII_3B_3I",
317
	"GetControlOwner",
317
	"GetControlData__ISII_3I_3I",
318
	"GetControlProperty",
318
	"GetControlData__ISII_3S_3I",
319
	"GetControlReference",
319
	"GetControlEventTarget",
320
	"GetControlRegion",
320
	"GetControlFeatures",
321
	"GetControlValue",
321
	"GetControlOwner",
322
	"GetControlViewSize",
322
	"GetControlProperty",
323
	"GetCurrentEventButtonState",
323
	"GetControlReference",
324
	"GetCurrentEventKeyModifiers",
324
	"GetControlRegion",
325
	"GetCurrentEventLoop",
325
	"GetControlValue",
326
	"GetCurrentEventQueue",
326
	"GetControlViewSize",
327
	"GetCurrentProcess",
327
	"GetCurrentEventButtonState",
328
	"GetCurrentScrap",
328
	"GetCurrentEventKeyModifiers",
329
	"GetDataBrowserCallbacks",
329
	"GetCurrentEventLoop",
330
	"GetDataBrowserItemCount",
330
	"GetCurrentEventQueue",
331
	"GetDataBrowserItemDataButtonValue",
331
	"GetCurrentProcess",
332
	"GetDataBrowserItemPartBounds",
332
	"GetCurrentScrap",
333
	"GetDataBrowserItemState",
333
	"GetDataBrowserCallbacks",
334
	"GetDataBrowserItems",
334
	"GetDataBrowserItemCount",
335
	"GetDataBrowserListViewDisclosureColumn",
335
	"GetDataBrowserItemDataButtonValue",
336
	"GetDataBrowserListViewHeaderBtnHeight",
336
	"GetDataBrowserItemPartBounds",
337
	"GetDataBrowserListViewHeaderDesc",
337
	"GetDataBrowserItemState",
338
	"GetDataBrowserScrollBarInset",
338
	"GetDataBrowserItems",
339
	"GetDataBrowserScrollPosition",
339
	"GetDataBrowserListViewDisclosureColumn",
340
	"GetDataBrowserSelectionAnchor",
340
	"GetDataBrowserListViewHeaderBtnHeight",
341
	"GetDataBrowserSelectionFlags",
341
	"GetDataBrowserListViewHeaderDesc",
342
	"GetDataBrowserSortProperty",
342
	"GetDataBrowserScrollBarInset",
343
	"GetDataBrowserTableViewColumnPosition",
343
	"GetDataBrowserScrollPosition",
344
	"GetDataBrowserTableViewItemID",
344
	"GetDataBrowserSelectionAnchor",
345
	"GetDataBrowserTableViewItemRow",
345
	"GetDataBrowserSelectionFlags",
346
	"GetDataBrowserTableViewNamedColumnWidth",
346
	"GetDataBrowserSortOrder",
347
	"GetDataBrowserTableViewRowHeight",
347
	"GetDataBrowserSortProperty",
348
	"GetDblTime",
348
	"GetDataBrowserTableViewColumnPosition",
349
	"GetDefFontSize",
349
	"GetDataBrowserTableViewItemID",
350
	"GetDeviceList",
350
	"GetDataBrowserTableViewItemRow",
351
	"GetDragAllowableActions",
351
	"GetDataBrowserTableViewNamedColumnWidth",
352
	"GetDragDropAction",
352
	"GetDataBrowserTableViewRowHeight",
353
	"GetDragItemReferenceNumber",
353
	"GetDblTime",
354
	"GetDragModifiers",
354
	"GetDefFontSize",
355
	"GetDragMouse",
355
	"GetDeviceList",
356
	"GetEventClass",
356
	"GetDragAllowableActions",
357
	"GetEventDispatcherTarget",
357
	"GetDragDropAction",
358
	"GetEventKind",
358
	"GetDragItemReferenceNumber",
359
	"GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_CGPoint_2",
359
	"GetDragModifiers",
360
	"GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_HICommand_2",
360
	"GetDragMouse",
361
	"GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Point_2",
361
	"GetEventClass",
362
	"GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_RGBColor_2",
362
	"GetEventDispatcherTarget",
363
	"GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Rect_2",
363
	"GetEventKind",
364
	"GetEventParameter__III_3II_3I_3B",
364
	"GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_CGPoint_2",
365
	"GetEventParameter__III_3II_3I_3C",
365
	"GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_HICommand_2",
366
	"GetEventParameter__III_3II_3I_3I",
366
	"GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Point_2",
367
	"GetEventParameter__III_3II_3I_3S",
367
	"GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_RGBColor_2",
368
	"GetEventTime",
368
	"GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Rect_2",
369
	"GetFlavorData",
369
	"GetEventParameter__III_3II_3I_3B",
370
	"GetFlavorDataSize",
370
	"GetEventParameter__III_3II_3I_3C",
371
	"GetFlavorType",
371
	"GetEventParameter__III_3II_3I_3I",
372
	"GetFontInfo",
372
	"GetEventParameter__III_3II_3I_3S",
373
	"GetGDevice",
373
	"GetEventTime",
374
	"GetGWorld",
374
	"GetFlavorData",
375
	"GetGlobalMouse",
375
	"GetFlavorDataSize",
376
	"GetHandleSize",
376
	"GetFlavorType",
377
	"GetIconFamilyData",
377
	"GetFontInfo",
378
	"GetIconRef",
378
	"GetGDevice",
379
	"GetIndMenuItemWithCommandID",
379
	"GetGWorld",
380
	"GetIndexedSubControl",
380
	"GetGlobalMouse",
381
	"GetItemMark",
381
	"GetHandleSize",
382
	"GetKeyboardFocus",
382
	"GetIconFamilyData",
383
	"GetLastUserEventTime",
383
	"GetIconRef",
384
	"GetMBarHeight",
384
	"GetIndMenuItemWithCommandID",
385
	"GetMainDevice",
385
	"GetIndexedSubControl",
386
	"GetMainEventQueue",
386
	"GetItemMark",
387
	"GetMenuCommandMark",
387
	"GetKeyboardFocus",
388
	"GetMenuEventTarget",
388
	"GetLastUserEventTime",
389
	"GetMenuFont",
389
	"GetMBarHeight",
390
	"GetMenuHeight",
390
	"GetMainDevice",
391
	"GetMenuID",
391
	"GetMainEventQueue",
392
	"GetMenuItemCommandID",
392
	"GetMenuCommandMark",
393
	"GetMenuItemHierarchicalMenu",
393
	"GetMenuEventTarget",
394
	"GetMenuItemRefCon",
394
	"GetMenuFont",
395
	"GetMenuTrackingData",
395
	"GetMenuHeight",
396
	"GetMenuWidth",
396
	"GetMenuID",
397
	"GetMouse",
397
	"GetMenuItemCommandID",
398
	"GetNextDevice",
398
	"GetMenuItemHierarchicalMenu",
399
	"GetPixBounds",
399
	"GetMenuItemRefCon",
400
	"GetPixDepth",
400
	"GetMenuTrackingData",
401
	"GetPort",
401
	"GetMenuWidth",
402
	"GetPortBitMapForCopyBits",
402
	"GetMouse",
403
	"GetPortBounds",
403
	"GetNextDevice",
404
	"GetPortClipRegion",
404
	"GetPixBounds",
405
	"GetPortVisibleRegion",
405
	"GetPixDepth",
406
	"GetPreviousWindow",
406
	"GetPort",
407
	"GetPtrSize",
407
	"GetPortBitMapForCopyBits",
408
	"GetRegionBounds",
408
	"GetPortBounds",
409
	"GetRootControl",
409
	"GetPortClipRegion",
410
	"GetScrapFlavorCount",
410
	"GetPortVisibleRegion",
411
	"GetScrapFlavorData__II_3I_3B",
411
	"GetPreviousWindow",
412
	"GetScrapFlavorData__II_3I_3C",
412
	"GetPtrSize",
413
	"GetScrapFlavorInfoList",
413
	"GetRegionBounds",
414
	"GetScrapFlavorSize",
414
	"GetRootControl",
415
	"GetScriptManagerVariable",
415
	"GetScrapFlavorCount",
416
	"GetSuperControl",
416
	"GetScrapFlavorData__II_3I_3B",
417
	"GetTabContentRect",
417
	"GetScrapFlavorData__II_3I_3C",
418
	"GetThemeBrushAsColor",
418
	"GetScrapFlavorInfoList",
419
	"GetThemeButtonContentBounds",
419
	"GetScrapFlavorSize",
420
	"GetThemeDrawingState",
420
	"GetScriptManagerVariable",
421
	"GetThemeFont",
421
	"GetSuperControl",
422
	"GetThemeMenuItemExtra",
422
	"GetTabContentRect",
423
	"GetThemeMetric",
423
	"GetThemeBrushAsColor",
424
	"GetThemeTextColor",
424
	"GetThemeButtonContentBounds",
425
	"GetThemeTextDimensions",
425
	"GetThemeDrawingState",
426
	"GetUserFocusEventTarget",
426
	"GetThemeFont",
427
	"GetUserFocusWindow",
427
	"GetThemeMenuItemExtra",
428
	"GetWRefCon",
428
	"GetThemeMetric",
429
	"GetWindowActivationScope",
429
	"GetThemeTextColor",
430
	"GetWindowBounds",
430
	"GetThemeTextDimensions",
431
	"GetWindowDefaultButton",
431
	"GetUserFocusEventTarget",
432
	"GetWindowEventTarget",
432
	"GetUserFocusWindow",
433
	"GetWindowFromPort",
433
	"GetWRefCon",
434
	"GetWindowGroupOfClass",
434
	"GetWindowActivationScope",
435
	"GetWindowModality",
435
	"GetWindowBounds",
436
	"GetWindowPort",
436
	"GetWindowDefaultButton",
437
	"GetWindowRegion",
437
	"GetWindowEventTarget",
438
	"GetWindowResizeLimits",
438
	"GetWindowFromPort",
439
	"GetWindowStructureWidths",
439
	"GetWindowGroupOfClass",
440
	"HIComboBoxAppendTextItem",
440
	"GetWindowModality",
441
	"HIComboBoxCopyTextItemAtIndex",
441
	"GetWindowPort",
442
	"HIComboBoxCreate",
442
	"GetWindowRegion",
443
	"HIComboBoxGetItemCount",
443
	"GetWindowResizeLimits",
444
	"HIComboBoxInsertTextItemAtIndex",
444
	"GetWindowStructureWidths",
445
	"HIComboBoxRemoveItemAtIndex",
445
	"HIComboBoxAppendTextItem",
446
	"HIObjectCopyClassID",
446
	"HIComboBoxCopyTextItemAtIndex",
447
	"HIObjectCreate",
447
	"HIComboBoxCreate",
448
	"HIObjectRegisterSubclass",
448
	"HIComboBoxGetItemCount",
449
	"HIViewAddSubview",
449
	"HIComboBoxInsertTextItemAtIndex",
450
	"HIViewClick",
450
	"HIComboBoxRemoveItemAtIndex",
451
	"HIViewConvertPoint",
451
	"HIObjectCopyClassID",
452
	"HIViewCreateOffscreenImage",
452
	"HIObjectCreate",
453
	"HIViewFindByID",
453
	"HIObjectRegisterSubclass",
454
	"HIViewGetFirstSubview",
454
	"HIViewAddSubview",
455
	"HIViewGetFrame",
455
	"HIViewClick",
456
	"HIViewGetLastSubview",
456
	"HIViewConvertPoint",
457
	"HIViewGetNextView",
457
	"HIViewCreateOffscreenImage",
458
	"HIViewGetRoot",
458
	"HIViewFindByID",
459
	"HIViewGetSizeConstraints",
459
	"HIViewGetFirstSubview",
460
	"HIViewGetSubviewHit",
460
	"HIViewGetFrame",
461
	"HIViewGetViewForMouseEvent",
461
	"HIViewGetLastSubview",
462
	"HIViewIsVisible",
462
	"HIViewGetNextView",
463
	"HIViewRemoveFromSuperview",
463
	"HIViewGetRoot",
464
	"HIViewSetBoundsOrigin",
464
	"HIViewGetSizeConstraints",
465
	"HIViewSetDrawingEnabled",
465
	"HIViewGetSubviewHit",
466
	"HIViewSetFrame",
466
	"HIViewGetViewForMouseEvent",
467
	"HIViewSetNeedsDisplay",
467
	"HIViewIsVisible",
468
	"HIViewSetNeedsDisplayInRegion",
468
	"HIViewRemoveFromSuperview",
469
	"HIViewSetVisible",
469
	"HIViewSetBoundsOrigin",
470
	"HIViewSetZOrder",
470
	"HIViewSetDrawingEnabled",
471
	"HIViewSimulateClick",
471
	"HIViewSetFrame",
472
	"HLock",
472
	"HIViewSetNeedsDisplay",
473
	"HMGetTagDelay",
473
	"HIViewSetNeedsDisplayInRegion",
474
	"HMHideTag",
474
	"HIViewSetVisible",
475
	"HMInstallControlContentCallback",
475
	"HIViewSetZOrder",
476
	"HMSetTagDelay",
476
	"HIViewSimulateClick",
477
	"HUnlock",
477
	"HLock",
478
	"HandleControlClick",
478
	"HMGetTagDelay",
479
	"HandleControlSetCursor",
479
	"HMHideTag",
480
	"HiWord",
480
	"HMInstallControlContentCallback",
481
	"HideWindow",
481
	"HMSetTagDelay",
482
	"HiliteMenu",
482
	"HUnlock",
483
	"IconRefToIconFamily",
483
	"HandleControlClick",
484
	"InitContextualMenus",
484
	"HandleControlSetCursor",
485
	"InitCursor",
485
	"HiWord",
486
	"InitDataBrowserCallbacks",
486
	"HideWindow",
487
	"InitDataBrowserCustomCallbacks",
487
	"HiliteMenu",
488
	"InsertMenu",
488
	"IconRefToIconFamily",
489
	"InsertMenuItemTextWithCFString",
489
	"InitContextualMenus",
490
	"InstallEventHandler",
490
	"InitCursor",
491
	"InstallEventLoopIdleTimer",
491
	"InitDataBrowserCallbacks",
492
	"InstallEventLoopTimer",
492
	"InitDataBrowserCustomCallbacks",
493
	"InstallReceiveHandler",
493
	"InsertMenu",
494
	"InstallTrackingHandler",
494
	"InsertMenuItemTextWithCFString",
495
	"InvalWindowRect",
495
	"InstallEventHandler",
496
	"InvalWindowRgn",
496
	"InstallEventLoopIdleTimer",
497
	"InvertRect",
497
	"InstallEventLoopTimer",
498
	"InvertRgn",
498
	"InstallReceiveHandler",
499
	"IsControlActive",
499
	"InstallTrackingHandler",
500
	"IsControlEnabled",
500
	"InvalWindowRect",
501
	"IsControlVisible",
501
	"InvalWindowRgn",
502
	"IsDataBrowserItemSelected",
502
	"InvertRect",
503
	"IsMenuCommandEnabled",
503
	"InvertRgn",
504
	"IsMenuItemEnabled",
504
	"IsControlActive",
505
	"IsValidControlHandle",
505
	"IsControlEnabled",
506
	"IsValidMenu",
506
	"IsControlVisible",
507
	"IsValidWindowPtr",
507
	"IsDataBrowserItemSelected",
508
	"IsWindowActive",
508
	"IsMenuCommandEnabled",
509
	"IsWindowCollapsed",
509
	"IsMenuItemEnabled",
510
	"IsWindowVisible",
510
	"IsValidControlHandle",
511
	"KeyTranslate",
511
	"IsValidMenu",
512
	"KillPoly",
512
	"IsValidWindowPtr",
513
	"LineTo",
513
	"IsWindowActive",
514
	"LoWord",
514
	"IsWindowCollapsed",
515
	"LockPortBits",
515
	"IsWindowVisible",
516
	"Long2Fix",
516
	"KeyTranslate",
517
	"MenuSelect",
517
	"KillPoly",
518
	"MoveControl",
518
	"LineTo",
519
	"MoveTo",
519
	"LoWord",
520
	"MoveWindow",
520
	"LockPortBits",
521
	"NavCreateChooseFolderDialog",
521
	"Long2Fix",
522
	"NavCreateGetFileDialog",
522
	"MenuSelect",
523
	"NavCreatePutFileDialog",
523
	"MoveControl",
524
	"NavDialogDispose",
524
	"MoveTo",
525
	"NavDialogGetReply",
525
	"MoveWindow",
526
	"NavDialogGetSaveFileName",
526
	"NavCreateChooseFolderDialog",
527
	"NavDialogGetUserAction",
527
	"NavCreateGetFileDialog",
528
	"NavDialogRun",
528
	"NavCreatePutFileDialog",
529
	"NavDialogSetSaveFileName",
529
	"NavDialogDispose",
530
	"NavGetDefaultDialogCreationOptions",
530
	"NavDialogGetReply",
531
	"NewControl",
531
	"NavDialogGetSaveFileName",
532
	"NewDrag",
532
	"NavDialogGetUserAction",
533
	"NewGWorldFromPtr",
533
	"NavDialogRun",
534
	"NewHandle",
534
	"NavDialogSetSaveFileName",
535
	"NewHandleClear",
535
	"NavGetDefaultDialogCreationOptions",
536
	"NewPtr",
536
	"NewControl",
537
	"NewPtrClear",
537
	"NewDrag",
538
	"NewRgn",
538
	"NewGWorldFromPtr",
539
	"OffsetRect",
539
	"NewHandle",
540
	"OffsetRgn",
540
	"NewHandleClear",
541
	"OpenDataBrowserContainer",
541
	"NewPtr",
542
	"OpenPoly",
542
	"NewPtrClear",
543
	"OpenRgn",
543
	"NewRgn",
544
	"PMCreatePageFormat",
544
	"OffsetRect",
545
	"PMCreatePrintSettings",
545
	"OffsetRgn",
546
	"PMCreateSession",
546
	"OpenDataBrowserContainer",
547
	"PMFlattenPageFormat",
547
	"OpenPoly",
548
	"PMFlattenPrintSettings",
548
	"OpenRgn",
549
	"PMGetAdjustedPageRect",
549
	"PMCreatePageFormat",
550
	"PMGetAdjustedPaperRect",
550
	"PMCreatePrintSettings",
551
	"PMGetCollate",
551
	"PMCreateSession",
552
	"PMGetCopies",
552
	"PMFlattenPageFormat",
553
	"PMGetFirstPage",
553
	"PMFlattenPrintSettings",
554
	"PMGetJobNameCFString",
554
	"PMGetAdjustedPageRect",
555
	"PMGetLastPage",
555
	"PMGetAdjustedPaperRect",
556
	"PMGetPageRange",
556
	"PMGetCollate",
557
	"PMGetResolution",
557
	"PMGetCopies",
558
	"PMRelease",
558
	"PMGetFirstPage",
559
	"PMSessionBeginDocumentNoDialog",
559
	"PMGetJobNameCFString",
560
	"PMSessionBeginPageNoDialog",
560
	"PMGetLastPage",
561
	"PMSessionCopyDestinationLocation",
561
	"PMGetPageRange",
562
	"PMSessionCreatePrinterList",
562
	"PMGetResolution",
563
	"PMSessionDefaultPageFormat",
563
	"PMRelease",
564
	"PMSessionDefaultPrintSettings",
564
	"PMSessionBeginDocumentNoDialog",
565
	"PMSessionEndDocumentNoDialog",
565
	"PMSessionBeginPageNoDialog",
566
	"PMSessionEndPageNoDialog",
566
	"PMSessionCopyDestinationLocation",
567
	"PMSessionError",
567
	"PMSessionCreatePrinterList",
568
	"PMSessionGetDestinationType",
568
	"PMSessionDefaultPageFormat",
569
	"PMSessionGetGraphicsContext",
569
	"PMSessionDefaultPrintSettings",
570
	"PMSessionPageSetupDialog",
570
	"PMSessionEndDocumentNoDialog",
571
	"PMSessionPrintDialog",
571
	"PMSessionEndPageNoDialog",
572
	"PMSessionSetCurrentPrinter",
572
	"PMSessionError",
573
	"PMSessionSetDestination",
573
	"PMSessionGetDestinationType",
574
	"PMSessionSetDocumentFormatGeneration",
574
	"PMSessionGetGraphicsContext",
575
	"PMSessionSetError",
575
	"PMSessionPageSetupDialog",
576
	"PMSessionUseSheets",
576
	"PMSessionPrintDialog",
577
	"PMSessionValidatePageFormat",
577
	"PMSessionSetCurrentPrinter",
578
	"PMSessionValidatePrintSettings",
578
	"PMSessionSetDestination",
579
	"PMSetCollate",
579
	"PMSessionSetDocumentFormatGeneration",
580
	"PMSetFirstPage",
580
	"PMSessionSetError",
581
	"PMSetJobNameCFString",
581
	"PMSessionUseSheets",
582
	"PMSetLastPage",
582
	"PMSessionValidatePageFormat",
583
	"PMSetPageRange",
583
	"PMSessionValidatePrintSettings",
584
	"PMUnflattenPageFormat",
584
	"PMSetCollate",
585
	"PMUnflattenPrintSettings",
585
	"PMSetFirstPage",
586
	"PaintOval",
586
	"PMSetJobNameCFString",
587
	"PaintPoly",
587
	"PMSetLastPage",
588
	"PaintRect",
588
	"PMSetPageRange",
589
	"PaintRoundRect",
589
	"PMUnflattenPageFormat",
590
	"PenSize",
590
	"PMUnflattenPrintSettings",
591
	"PickColor",
591
	"PaintOval",
592
	"PopUpMenuSelect",
592
	"PaintPoly",
593
	"PostEvent",
593
	"PaintRect",
594
	"PostEventToQueue",
594
	"PaintRoundRect",
595
	"PtInRect",
595
	"PenSize",
596
	"PtInRgn",
596
	"PickColor",
597
	"PutScrapFlavor__IIII_3B",
597
	"PopUpMenuSelect",
598
	"PutScrapFlavor__IIII_3C",
598
	"PostEvent",
599
	"QDBeginCGContext",
599
	"PostEventToQueue",
600
	"QDEndCGContext",
600
	"PtInRect",
601
	"QDFlushPortBuffer",
601
	"PtInRgn",
602
	"QDGlobalToLocalPoint",
602
	"PutScrapFlavor__IIII_3B",
603
	"QDLocalToGlobalPoint",
603
	"PutScrapFlavor__IIII_3C",
604
	"QDRegionToRects",
604
	"QDBeginCGContext",
605
	"QDSetDirtyRegion",
605
	"QDEndCGContext",
606
	"QDSetPatternOrigin",
606
	"QDFlushPortBuffer",
607
	"QDSwapTextFlags",
607
	"QDGlobalToLocalPoint",
608
	"RGBBackColor",
608
	"QDLocalToGlobalPoint",
609
	"RGBForeColor",
609
	"QDRegionToRects",
610
	"ReceiveNextEvent",
610
	"QDSetDirtyRegion",
611
	"RectInRgn",
611
	"QDSetPatternOrigin",
612
	"RectRgn",
612
	"QDSwapTextFlags",
613
	"RegisterAppearanceClient",
613
	"RGBBackColor",
614
	"ReleaseEvent",
614
	"RGBForeColor",
615
	"ReleaseIconRef",
615
	"ReceiveNextEvent",
616
	"ReleaseMenu",
616
	"RectInRgn",
617
	"ReleaseWindow",
617
	"RectRgn",
618
	"ReleaseWindowGroup",
618
	"RegisterAppearanceClient",
619
	"RemoveControlProperty",
619
	"ReleaseEvent",
620
	"RemoveDataBrowserItems",
620
	"ReleaseIconRef",
621
	"RemoveDataBrowserTableViewColumn",
621
	"ReleaseMenu",
622
	"RemoveEventHandler",
622
	"ReleaseWindow",
623
	"RemoveEventLoopTimer",
623
	"ReleaseWindowGroup",
624
	"RemoveReceiveHandler",
624
	"RemoveControlProperty",
625
	"RemoveTrackingHandler",
625
	"RemoveDataBrowserItems",
626
	"RepositionWindow",
626
	"RemoveDataBrowserTableViewColumn",
627
	"ReshapeCustomWindow",
627
	"RemoveEventHandler",
628
	"RestoreApplicationDockTileImage",
628
	"RemoveEventLoopTimer",
629
	"RetainEvent",
629
	"RemoveReceiveHandler",
630
	"RetainMenu",
630
	"RemoveTrackingHandler",
631
	"RetainWindow",
631
	"RepositionWindow",
632
	"RevealDataBrowserItem",
632
	"ReshapeCustomWindow",
633
	"RunStandardAlert",
633
	"RestoreApplicationDockTileImage",
634
	"ScrollRect",
634
	"RetainEvent",
635
	"SectRect",
635
	"RetainMenu",
636
	"SectRgn",
636
	"RetainWindow",
637
	"SelectWindow",
637
	"RevealDataBrowserItem",
638
	"SendBehind",
638
	"RunStandardAlert",
639
	"SendEventToEventTarget",
639
	"ScrollRect",
640
	"SetApplicationDockTileImage",
640
	"SectRect",
641
	"SetBevelButtonContentInfo",
641
	"SectRgn",
642
	"SetClip",
642
	"SelectWindow",
643
	"SetControl32BitMaximum",
643
	"SendBehind",
644
	"SetControl32BitMinimum",
644
	"SendEventToEventTarget",
645
	"SetControl32BitValue",
645
	"SetApplicationDockTileImage",
646
	"SetControlAction",
646
	"SetBevelButtonContentInfo",
647
	"SetControlBounds",
647
	"SetClip",
648
	"SetControlColorProc",
648
	"SetControl32BitMaximum",
649
	"SetControlData__IIIII",
649
	"SetControl32BitMinimum",
650
	"SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlButtonContentInfo_2",
650
	"SetControl32BitValue",
651
	"SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlTabInfoRecV1_2",
651
	"SetControlAction",
652
	"SetControlData__IIIILorg_eclipse_swt_internal_carbon_Rect_2",
652
	"SetControlBounds",
653
	"SetControlData__IIII_3B",
653
	"SetControlColorProc",
654
	"SetControlData__IIII_3I",
654
	"SetControlData__IIIII",
655
	"SetControlData__IIII_3S",
655
	"SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlButtonContentInfo_2",
656
	"SetControlFontStyle",
656
	"SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlTabInfoRecV1_2",
657
	"SetControlPopupMenuHandle",
657
	"SetControlData__IIIILorg_eclipse_swt_internal_carbon_Rect_2",
658
	"SetControlProperty",
658
	"SetControlData__IIII_3B",
659
	"SetControlReference",
659
	"SetControlData__IIII_3I",
660
	"SetControlTitleWithCFString",
660
	"SetControlData__IIII_3S",
661
	"SetControlViewSize",
661
	"SetControlFontStyle",
662
	"SetControlVisibility",
662
	"SetControlPopupMenuHandle",
663
	"SetCursor",
663
	"SetControlProperty",
664
	"SetDataBrowserCallbacks",
664
	"SetControlReference",
665
	"SetDataBrowserCustomCallbacks",
665
	"SetControlTitleWithCFString",
666
	"SetDataBrowserHasScrollBars",
666
	"SetControlViewSize",
667
	"SetDataBrowserItemDataBooleanValue",
667
	"SetControlVisibility",
668
	"SetDataBrowserItemDataButtonValue",
668
	"SetCursor",
669
	"SetDataBrowserItemDataIcon",
669
	"SetDataBrowserCallbacks",
670
	"SetDataBrowserItemDataItemID",
670
	"SetDataBrowserCustomCallbacks",
671
	"SetDataBrowserItemDataText",
671
	"SetDataBrowserHasScrollBars",
672
	"SetDataBrowserListViewDisclosureColumn",
672
	"SetDataBrowserItemDataBooleanValue",
673
	"SetDataBrowserListViewHeaderBtnHeight",
673
	"SetDataBrowserItemDataButtonValue",
674
	"SetDataBrowserListViewHeaderDesc",
674
	"SetDataBrowserItemDataIcon",
675
	"SetDataBrowserScrollPosition",
675
	"SetDataBrowserItemDataItemID",
676
	"SetDataBrowserSelectedItems",
676
	"SetDataBrowserItemDataText",
677
	"SetDataBrowserSelectionFlags",
677
	"SetDataBrowserListViewDisclosureColumn",
678
	"SetDataBrowserSortOrder",
678
	"SetDataBrowserListViewHeaderBtnHeight",
679
	"SetDataBrowserTableViewColumnPosition",
679
	"SetDataBrowserListViewHeaderDesc",
680
	"SetDataBrowserTableViewHiliteStyle",
680
	"SetDataBrowserScrollPosition",
681
	"SetDataBrowserTableViewItemRow",
681
	"SetDataBrowserSelectedItems",
682
	"SetDataBrowserTableViewNamedColumnWidth",
682
	"SetDataBrowserSelectionFlags",
683
	"SetDataBrowserTableViewRowHeight",
683
	"SetDataBrowserSortOrder",
684
	"SetDataBrowserTarget",
684
	"SetDataBrowserTableViewColumnPosition",
685
	"SetDragAllowableActions",
685
	"SetDataBrowserTableViewHiliteStyle",
686
	"SetDragDropAction",
686
	"SetDataBrowserTableViewItemRow",
687
	"SetDragInputProc",
687
	"SetDataBrowserTableViewNamedColumnWidth",
688
	"SetEventLoopTimerNextFireTime",
688
	"SetDataBrowserTableViewRowHeight",
689
	"SetEventParameter__IIII_3C",
689
	"SetDataBrowserTarget",
690
	"SetEventParameter__IIII_3I",
690
	"SetDragAllowableActions",
691
	"SetEventParameter__IIII_3S",
691
	"SetDragDropAction",
692
	"SetFontInfoForSelection",
692
	"SetDragInputProc",
693
	"SetFrontProcess",
693
	"SetDropLocation",
694
	"SetFrontProcessWithOptions",
694
	"SetEventLoopTimerNextFireTime",
695
	"SetGWorld",
695
	"SetEventParameter__IIII_3C",
696
	"SetItemMark",
696
	"SetEventParameter__IIII_3I",
697
	"SetKeyboardFocus",
697
	"SetEventParameter__IIII_3S",
698
	"SetMenuCommandMark",
698
	"SetFontInfoForSelection",
699
	"SetMenuFont",
699
	"SetFrontProcess",
700
	"SetMenuItemCommandKey",
700
	"SetFrontProcessWithOptions",
701
	"SetMenuItemHierarchicalMenu",
701
	"SetGWorld",
702
	"SetMenuItemIconHandle",
702
	"SetItemMark",
703
	"SetMenuItemKeyGlyph",
703
	"SetKeyboardFocus",
704
	"SetMenuItemModifiers",
704
	"SetMenuCommandMark",
705
	"SetMenuItemRefCon",
705
	"SetMenuFont",
706
	"SetMenuItemTextWithCFString",
706
	"SetMenuItemCommandKey",
707
	"SetMenuTitleWithCFString",
707
	"SetMenuItemHierarchicalMenu",
708
	"SetOrigin",
708
	"SetMenuItemIconHandle",
709
	"SetPort",
709
	"SetMenuItemKeyGlyph",
710
	"SetPortBounds",
710
	"SetMenuItemModifiers",
711
	"SetPortWindowPort",
711
	"SetMenuItemRefCon",
712
	"SetPt",
712
	"SetMenuItemTextWithCFString",
713
	"SetRect",
713
	"SetMenuTitleWithCFString",
714
	"SetRectRgn",
714
	"SetOrigin",
715
	"SetRootMenu",
715
	"SetPort",
716
	"SetThemeBackground",
716
	"SetPortBounds",
717
	"SetThemeCursor",
717
	"SetPortWindowPort",
718
	"SetThemeDrawingState",
718
	"SetPt",
719
	"SetThemeTextColor",
719
	"SetRect",
720
	"SetThemeWindowBackground",
720
	"SetRectRgn",
721
	"SetUpControlBackground",
721
	"SetRootMenu",
722
	"SetWRefCon",
722
	"SetThemeBackground",
723
	"SetWindowActivationScope",
723
	"SetThemeCursor",
724
	"SetWindowBounds",
724
	"SetThemeDrawingState",
725
	"SetWindowDefaultButton",
725
	"SetThemeTextColor",
726
	"SetWindowGroup",
726
	"SetThemeWindowBackground",
727
	"SetWindowGroupOwner",
727
	"SetUpControlBackground",
728
	"SetWindowGroupParent",
728
	"SetWRefCon",
729
	"SetWindowModality",
729
	"SetWindowActivationScope",
730
	"SetWindowResizeLimits",
730
	"SetWindowBounds",
731
	"SetWindowTitleWithCFString",
731
	"SetWindowDefaultButton",
732
	"ShowWindow",
732
	"SetWindowGroup",
733
	"SizeControl",
733
	"SetWindowGroupOwner",
734
	"SizeWindow",
734
	"SetWindowGroupParent",
735
	"StillDown",
735
	"SetWindowModality",
736
	"SyncCGContextOriginWithPort",
736
	"SetWindowResizeLimits",
737
	"SysBeep",
737
	"SetWindowTitleWithCFString",
738
	"TXNActivate",
738
	"ShowWindow",
739
	"TXNAdjustCursor",
739
	"SizeControl",
740
	"TXNClick",
740
	"SizeWindow",
741
	"TXNCopy",
741
	"StillDown",
742
	"TXNCut",
742
	"SyncCGContextOriginWithPort",
743
	"TXNDataSize",
743
	"SysBeep",
744
	"TXNDeleteObject",
744
	"TXNActivate",
745
	"TXNDraw",
745
	"TXNAdjustCursor",
746
	"TXNEchoMode",
746
	"TXNClick",
747
	"TXNFocus",
747
	"TXNCopy",
748
	"TXNGetData",
748
	"TXNCut",
749
	"TXNGetLineCount",
749
	"TXNDataSize",
750
	"TXNGetLineMetrics",
750
	"TXNDeleteObject",
751
	"TXNGetRectBounds",
751
	"TXNDraw",
752
	"TXNGetSelection",
752
	"TXNEchoMode",
753
	"TXNGetTXNObjectControls",
753
	"TXNFocus",
754
	"TXNGetViewRect",
754
	"TXNGetData",
755
	"TXNInitTextension",
755
	"TXNGetLineCount",
756
	"TXNNewObject",
756
	"TXNGetLineMetrics",
757
	"TXNOffsetToPoint",
757
	"TXNGetRectBounds",
758
	"TXNPaste",
758
	"TXNGetSelection",
759
	"TXNPointToOffset",
759
	"TXNGetTXNObjectControls",
760
	"TXNSelectAll",
760
	"TXNGetViewRect",
761
	"TXNSetBackground",
761
	"TXNInitTextension",
762
	"TXNSetData",
762
	"TXNNewObject",
763
	"TXNSetFrameBounds",
763
	"TXNOffsetToPoint",
764
	"TXNSetRectBounds",
764
	"TXNPaste",
765
	"TXNSetSelection",
765
	"TXNPointToOffset",
766
	"TXNSetTXNObjectControls",
766
	"TXNSelectAll",
767
	"TXNSetTypeAttributes",
767
	"TXNSetBackground",
768
	"TXNShowSelection",
768
	"TXNSetData",
769
	"TestControl",
769
	"TXNSetFrameBounds",
770
	"TextFace",
770
	"TXNSetRectBounds",
771
	"TextFont",
771
	"TXNSetSelection",
772
	"TextMode",
772
	"TXNSetTXNObjectControls",
773
	"TextSize",
773
	"TXNSetTypeAttributes",
774
	"TextWidth",
774
	"TXNShowSelection",
775
	"TrackDrag",
775
	"TestControl",
776
	"TrackMouseLocationWithOptions",
776
	"TextFace",
777
	"UnionRect",
777
	"TextFont",
778
	"UnionRgn",
778
	"TextMode",
779
	"UnlockPortBits",
779
	"TextSize",
780
	"UpdateControls",
780
	"TextWidth",
781
	"UpdateDataBrowserItems",
781
	"TrackDrag",
782
	"UpgradeScriptInfoToTextEncoding",
782
	"TrackMouseLocationWithOptions",
783
	"WaitMouseMoved",
783
	"UnionRect",
784
	"X2Fix",
784
	"UnionRgn",
785
	"ZoomWindowIdeal",
785
	"UnlockPortBits",
786
	"kHIViewWindowContentID",
786
	"UpdateControls",
787
	"kPMDocumentFormatPDF",
787
	"UpdateDataBrowserItems",
788
	"kPMGraphicsContextCoreGraphics",
788
	"UpgradeScriptInfoToTextEncoding",
789
	"memcpy__III",
789
	"WaitMouseMoved",
790
	"memcpy__ILorg_eclipse_swt_internal_carbon_ATSUTab_2I",
790
	"X2Fix",
791
	"memcpy__ILorg_eclipse_swt_internal_carbon_BitMap_2I",
791
	"ZoomWindowIdeal",
792
	"memcpy__ILorg_eclipse_swt_internal_carbon_Cursor_2I",
792
	"kHIViewWindowContentID",
793
	"memcpy__ILorg_eclipse_swt_internal_carbon_EventRecord_2I",
793
	"kPMDocumentFormatPDF",
794
	"memcpy__ILorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2I",
794
	"kPMGraphicsContextCoreGraphics",
795
	"memcpy__ILorg_eclipse_swt_internal_carbon_HMHelpContentRec_2I",
795
	"memcpy__III",
796
	"memcpy__ILorg_eclipse_swt_internal_carbon_PixMap_2I",
796
	"memcpy__ILorg_eclipse_swt_internal_carbon_ATSUTab_2I",
797
	"memcpy__ILorg_eclipse_swt_internal_carbon_RGBColor_2I",
797
	"memcpy__ILorg_eclipse_swt_internal_carbon_BitMap_2I",
798
	"memcpy__ILorg_eclipse_swt_internal_carbon_Rect_2I",
798
	"memcpy__ILorg_eclipse_swt_internal_carbon_Cursor_2I",
799
	"memcpy__I_3BI",
799
	"memcpy__ILorg_eclipse_swt_internal_carbon_EventRecord_2I",
800
	"memcpy__I_3CI",
800
	"memcpy__ILorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2I",
801
	"memcpy__I_3II",
801
	"memcpy__ILorg_eclipse_swt_internal_carbon_HMHelpContentRec_2I",
802
	"memcpy__Lorg_eclipse_swt_internal_carbon_ATSLayoutRecord_2II",
802
	"memcpy__ILorg_eclipse_swt_internal_carbon_PixMap_2I",
803
	"memcpy__Lorg_eclipse_swt_internal_carbon_ATSTrapezoid_2II",
803
	"memcpy__ILorg_eclipse_swt_internal_carbon_RGBColor_2I",
804
	"memcpy__Lorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2II",
804
	"memcpy__ILorg_eclipse_swt_internal_carbon_Rect_2I",
805
	"memcpy__Lorg_eclipse_swt_internal_carbon_GDevice_2II",
805
	"memcpy__I_3BI",
806
	"memcpy__Lorg_eclipse_swt_internal_carbon_HMHelpContentRec_2II",
806
	"memcpy__I_3CI",
807
	"memcpy__Lorg_eclipse_swt_internal_carbon_PixMap_2II",
807
	"memcpy__I_3II",
808
	"memcpy__Lorg_eclipse_swt_internal_carbon_Rect_2II",
808
	"memcpy__Lorg_eclipse_swt_internal_carbon_ATSLayoutRecord_2II",
809
	"memcpy___3BII",
809
	"memcpy__Lorg_eclipse_swt_internal_carbon_ATSTrapezoid_2II",
810
	"memcpy___3B_3CI",
810
	"memcpy__Lorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2II",
811
	"memcpy___3CII",
811
	"memcpy__Lorg_eclipse_swt_internal_carbon_GDevice_2II",
812
	"memcpy___3C_3BI",
812
	"memcpy__Lorg_eclipse_swt_internal_carbon_HMHelpContentRec_2II",
813
	"memcpy___3FII",
813
	"memcpy__Lorg_eclipse_swt_internal_carbon_PixMap_2II",
814
	"memcpy___3III",
814
	"memcpy__Lorg_eclipse_swt_internal_carbon_PromiseHFSFlavor_2_3BI",
815
	"memset",
815
	"memcpy__Lorg_eclipse_swt_internal_carbon_Rect_2II",
816
};
816
	"memcpy___3BII",
817
817
	"memcpy___3B_3CI",
818
#define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func
818
	"memcpy___3CII",
819
819
	"memcpy___3C_3BI",
820
JNIEXPORT jint JNICALL STATS_NATIVE(OS_1GetFunctionCount)
820
	"memcpy___3FII",
821
	(JNIEnv *env, jclass that)
821
	"memcpy___3III",
822
{
822
	"memset",
823
	return OS_nativeFunctionCount;
823
};
824
}
824
825
825
#define STATS_NATIVE(func) Java_org_eclipse_swt_tools_internal_NativeStats_##func
826
JNIEXPORT jstring JNICALL STATS_NATIVE(OS_1GetFunctionName)
826
827
	(JNIEnv *env, jclass that, jint index)
827
JNIEXPORT jint JNICALL STATS_NATIVE(OS_1GetFunctionCount)
828
{
828
	(JNIEnv *env, jclass that)
829
	return (*env)->NewStringUTF(env, OS_nativeFunctionNames[index]);
829
{
830
}
830
	return OS_nativeFunctionCount;
831
831
}
832
JNIEXPORT jint JNICALL STATS_NATIVE(OS_1GetFunctionCallCount)
832
833
	(JNIEnv *env, jclass that, jint index)
833
JNIEXPORT jstring JNICALL STATS_NATIVE(OS_1GetFunctionName)
834
{
834
	(JNIEnv *env, jclass that, jint index)
835
	return OS_nativeFunctionCallCount[index];
835
{
836
}
836
	return (*env)->NewStringUTF(env, OS_nativeFunctionNames[index]);
837
837
}
838
#endif
838
839
JNIEXPORT jint JNICALL STATS_NATIVE(OS_1GetFunctionCallCount)
840
	(JNIEnv *env, jclass that, jint index)
841
{
842
	return OS_nativeFunctionCallCount[index];
843
}
844
845
#endif
(-)org.eclipse.swt_before/Eclipse SWT PI/carbon/library/os_stats.h (-821 / +827 lines)
Lines 1-821 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
#ifdef NATIVE_STATS
12
#ifdef NATIVE_STATS
13
extern int OS_nativeFunctionCount;
13
extern int OS_nativeFunctionCount;
14
extern int OS_nativeFunctionCallCount[];
14
extern int OS_nativeFunctionCallCount[];
15
extern char* OS_nativeFunctionNames[];
15
extern char* OS_nativeFunctionNames[];
16
#define OS_NATIVE_ENTER(env, that, func) OS_nativeFunctionCallCount[func]++;
16
#define OS_NATIVE_ENTER(env, that, func) OS_nativeFunctionCallCount[func]++;
17
#define OS_NATIVE_EXIT(env, that, func) 
17
#define OS_NATIVE_EXIT(env, that, func) 
18
#else
18
#else
19
#define OS_NATIVE_ENTER(env, that, func) 
19
#define OS_NATIVE_ENTER(env, that, func) 
20
#define OS_NATIVE_EXIT(env, that, func) 
20
#define OS_NATIVE_EXIT(env, that, func) 
21
#endif
21
#endif
22
22
23
typedef enum {
23
typedef enum {
24
	AECountItems_FUNC,
24
	AECountItems_FUNC,
25
	AEGetNthPtr_FUNC,
25
	AECreateDesc_FUNC,
26
	AEProcessAppleEvent_FUNC,
26
	AEDisposeDesc_FUNC,
27
	ATSFontGetPostScriptName_FUNC,
27
	AEGetNthPtr_FUNC,
28
	ATSUBatchBreakLines_FUNC,
28
	AEProcessAppleEvent_FUNC,
29
	ATSUCreateStyle_FUNC,
29
	ATSFontGetPostScriptName_FUNC,
30
	ATSUCreateTextLayout_FUNC,
30
	ATSUBatchBreakLines_FUNC,
31
	ATSUCreateTextLayoutWithTextPtr_FUNC,
31
	ATSUCreateStyle_FUNC,
32
	ATSUDirectGetLayoutDataArrayPtrFromTextLayout_FUNC,
32
	ATSUCreateTextLayout_FUNC,
33
	ATSUDirectReleaseLayoutDataArrayPtr_FUNC,
33
	ATSUCreateTextLayoutWithTextPtr_FUNC,
34
	ATSUDisposeStyle_FUNC,
34
	ATSUDirectGetLayoutDataArrayPtrFromTextLayout_FUNC,
35
	ATSUDisposeTextLayout_FUNC,
35
	ATSUDirectReleaseLayoutDataArrayPtr_FUNC,
36
	ATSUDrawText_FUNC,
36
	ATSUDisposeStyle_FUNC,
37
	ATSUFindFontFromName_FUNC,
37
	ATSUDisposeTextLayout_FUNC,
38
	ATSUFindFontName_FUNC,
38
	ATSUDrawText_FUNC,
39
	ATSUGetFontIDs_FUNC,
39
	ATSUFindFontFromName_FUNC,
40
	ATSUGetGlyphBounds__IIIIISII_3I_FUNC,
40
	ATSUFindFontName_FUNC,
41
	ATSUGetGlyphBounds__IIIIISILorg_eclipse_swt_internal_carbon_ATSTrapezoid_2_3I_FUNC,
41
	ATSUGetFontIDs_FUNC,
42
	ATSUGetLayoutControl_FUNC,
42
	ATSUGetGlyphBounds__IIIIISII_3I_FUNC,
43
	ATSUGetLineControl_FUNC,
43
	ATSUGetGlyphBounds__IIIIISILorg_eclipse_swt_internal_carbon_ATSTrapezoid_2_3I_FUNC,
44
	ATSUGetSoftLineBreaks_FUNC,
44
	ATSUGetLayoutControl_FUNC,
45
	ATSUGetTextHighlight_FUNC,
45
	ATSUGetLineControl_FUNC,
46
	ATSUGetUnjustifiedBounds_FUNC,
46
	ATSUGetSoftLineBreaks_FUNC,
47
	ATSUGlyphGetQuadraticPaths_FUNC,
47
	ATSUGetTextHighlight_FUNC,
48
	ATSUHighlightText_FUNC,
48
	ATSUGetUnjustifiedBounds_FUNC,
49
	ATSUNextCursorPosition_FUNC,
49
	ATSUGlyphGetQuadraticPaths_FUNC,
50
	ATSUOffsetToPosition_FUNC,
50
	ATSUHighlightText_FUNC,
51
	ATSUPositionToOffset_FUNC,
51
	ATSUNextCursorPosition_FUNC,
52
	ATSUPreviousCursorPosition_FUNC,
52
	ATSUOffsetToPosition_FUNC,
53
	ATSUSetAttributes_FUNC,
53
	ATSUPositionToOffset_FUNC,
54
	ATSUSetFontFeatures_FUNC,
54
	ATSUPreviousCursorPosition_FUNC,
55
	ATSUSetHighlightingMethod_FUNC,
55
	ATSUSetAttributes_FUNC,
56
	ATSUSetLayoutControls_FUNC,
56
	ATSUSetFontFeatures_FUNC,
57
	ATSUSetLineControls_FUNC,
57
	ATSUSetHighlightingMethod_FUNC,
58
	ATSUSetRunStyle_FUNC,
58
	ATSUSetLayoutControls_FUNC,
59
	ATSUSetSoftLineBreak_FUNC,
59
	ATSUSetLineControls_FUNC,
60
	ATSUSetTabArray_FUNC,
60
	ATSUSetRunStyle_FUNC,
61
	ATSUSetTextPointerLocation_FUNC,
61
	ATSUSetSoftLineBreak_FUNC,
62
	ATSUSetTransientFontMatching_FUNC,
62
	ATSUSetTabArray_FUNC,
63
	ATSUTextDeleted_FUNC,
63
	ATSUSetTextPointerLocation_FUNC,
64
	ATSUTextInserted_FUNC,
64
	ATSUSetTransientFontMatching_FUNC,
65
	ActiveNonFloatingWindow_FUNC,
65
	ATSUTextDeleted_FUNC,
66
	AddDataBrowserItems_FUNC,
66
	ATSUTextInserted_FUNC,
67
	AddDataBrowserListViewColumn_FUNC,
67
	ActiveNonFloatingWindow_FUNC,
68
	AddDragItemFlavor_FUNC,
68
	AddDataBrowserItems_FUNC,
69
	AppendMenuItemTextWithCFString_FUNC,
69
	AddDataBrowserListViewColumn_FUNC,
70
	AutoSizeDataBrowserListViewColumns_FUNC,
70
	AddDragItemFlavor_FUNC,
71
	BeginUpdate_FUNC,
71
	AppendMenuItemTextWithCFString_FUNC,
72
	BringToFront_FUNC,
72
	AutoSizeDataBrowserListViewColumns_FUNC,
73
	CFArrayAppendValue_FUNC,
73
	BeginUpdate_FUNC,
74
	CFArrayCreateMutable_FUNC,
74
	BringToFront_FUNC,
75
	CFArrayGetCount_FUNC,
75
	CFArrayAppendValue_FUNC,
76
	CFArrayGetValueAtIndex_FUNC,
76
	CFArrayCreateMutable_FUNC,
77
	CFRelease_FUNC,
77
	CFArrayGetCount_FUNC,
78
	CFStringCreateWithBytes_FUNC,
78
	CFArrayGetValueAtIndex_FUNC,
79
	CFStringCreateWithCharacters_FUNC,
79
	CFRelease_FUNC,
80
	CFStringGetBytes_FUNC,
80
	CFStringCreateWithBytes_FUNC,
81
	CFStringGetCharacters_FUNC,
81
	CFStringCreateWithCharacters_FUNC,
82
	CFStringGetLength_FUNC,
82
	CFStringGetBytes_FUNC,
83
	CFStringGetSystemEncoding_FUNC,
83
	CFStringGetCharacters_FUNC,
84
	CFURLCopyFileSystemPath_FUNC,
84
	CFStringGetLength_FUNC,
85
	CFURLCopyLastPathComponent_FUNC,
85
	CFStringGetSystemEncoding_FUNC,
86
	CFURLCreateCopyAppendingPathComponent_FUNC,
86
	CFURLCopyFileSystemPath_FUNC,
87
	CFURLCreateCopyDeletingLastPathComponent_FUNC,
87
	CFURLCopyLastPathComponent_FUNC,
88
	CFURLCreateFromFSRef_FUNC,
88
	CFURLCreateCopyAppendingPathComponent_FUNC,
89
	CFURLCreateWithFileSystemPath_FUNC,
89
	CFURLCreateCopyDeletingLastPathComponent_FUNC,
90
	CFURLGetFSRef_FUNC,
90
	CFURLCreateFromFSRef_FUNC,
91
	CGAffineTransformConcat_FUNC,
91
	CFURLCreateWithBytes_FUNC,
92
	CGAffineTransformInvert_FUNC,
92
	CFURLCreateWithFileSystemPath_FUNC,
93
	CGAffineTransformMake_FUNC,
93
	CFURLGetFSRef_FUNC,
94
	CGAffineTransformRotate_FUNC,
94
	CGAffineTransformConcat_FUNC,
95
	CGAffineTransformScale_FUNC,
95
	CGAffineTransformInvert_FUNC,
96
	CGAffineTransformTranslate_FUNC,
96
	CGAffineTransformMake_FUNC,
97
	CGBitmapContextCreate_FUNC,
97
	CGAffineTransformRotate_FUNC,
98
	CGColorSpaceCreateDeviceRGB_FUNC,
98
	CGAffineTransformScale_FUNC,
99
	CGColorSpaceRelease_FUNC,
99
	CGAffineTransformTranslate_FUNC,
100
	CGContextAddArc_FUNC,
100
	CGBitmapContextCreate_FUNC,
101
	CGContextAddArcToPoint_FUNC,
101
	CGColorSpaceCreateDeviceRGB_FUNC,
102
	CGContextAddLineToPoint_FUNC,
102
	CGColorSpaceRelease_FUNC,
103
	CGContextAddLines_FUNC,
103
	CGContextAddArc_FUNC,
104
	CGContextAddPath_FUNC,
104
	CGContextAddArcToPoint_FUNC,
105
	CGContextBeginPath_FUNC,
105
	CGContextAddLineToPoint_FUNC,
106
	CGContextClearRect_FUNC,
106
	CGContextAddLines_FUNC,
107
	CGContextClip_FUNC,
107
	CGContextAddPath_FUNC,
108
	CGContextClosePath_FUNC,
108
	CGContextBeginPath_FUNC,
109
	CGContextConcatCTM_FUNC,
109
	CGContextClearRect_FUNC,
110
	CGContextDrawImage_FUNC,
110
	CGContextClip_FUNC,
111
	CGContextEOClip_FUNC,
111
	CGContextClosePath_FUNC,
112
	CGContextEOFillPath_FUNC,
112
	CGContextConcatCTM_FUNC,
113
	CGContextFillPath_FUNC,
113
	CGContextDrawImage_FUNC,
114
	CGContextFillRect_FUNC,
114
	CGContextEOClip_FUNC,
115
	CGContextFlush_FUNC,
115
	CGContextEOFillPath_FUNC,
116
	CGContextGetInterpolationQuality_FUNC,
116
	CGContextFillPath_FUNC,
117
	CGContextGetTextPosition_FUNC,
117
	CGContextFillRect_FUNC,
118
	CGContextMoveToPoint_FUNC,
118
	CGContextFlush_FUNC,
119
	CGContextRelease_FUNC,
119
	CGContextGetInterpolationQuality_FUNC,
120
	CGContextRestoreGState_FUNC,
120
	CGContextGetTextPosition_FUNC,
121
	CGContextSaveGState_FUNC,
121
	CGContextMoveToPoint_FUNC,
122
	CGContextScaleCTM_FUNC,
122
	CGContextRelease_FUNC,
123
	CGContextSelectFont_FUNC,
123
	CGContextRestoreGState_FUNC,
124
	CGContextSetAlpha_FUNC,
124
	CGContextSaveGState_FUNC,
125
	CGContextSetFillColor_FUNC,
125
	CGContextScaleCTM_FUNC,
126
	CGContextSetFillColorSpace_FUNC,
126
	CGContextSelectFont_FUNC,
127
	CGContextSetFont_FUNC,
127
	CGContextSetAlpha_FUNC,
128
	CGContextSetFontSize_FUNC,
128
	CGContextSetFillColor_FUNC,
129
	CGContextSetInterpolationQuality_FUNC,
129
	CGContextSetFillColorSpace_FUNC,
130
	CGContextSetLineCap_FUNC,
130
	CGContextSetFont_FUNC,
131
	CGContextSetLineDash_FUNC,
131
	CGContextSetFontSize_FUNC,
132
	CGContextSetLineJoin_FUNC,
132
	CGContextSetInterpolationQuality_FUNC,
133
	CGContextSetLineWidth_FUNC,
133
	CGContextSetLineCap_FUNC,
134
	CGContextSetRGBFillColor_FUNC,
134
	CGContextSetLineDash_FUNC,
135
	CGContextSetRGBStrokeColor_FUNC,
135
	CGContextSetLineJoin_FUNC,
136
	CGContextSetRenderingIntent_FUNC,
136
	CGContextSetLineWidth_FUNC,
137
	CGContextSetShouldAntialias_FUNC,
137
	CGContextSetRGBFillColor_FUNC,
138
	CGContextSetShouldSmoothFonts_FUNC,
138
	CGContextSetRGBStrokeColor_FUNC,
139
	CGContextSetStrokeColor_FUNC,
139
	CGContextSetRenderingIntent_FUNC,
140
	CGContextSetStrokeColorSpace_FUNC,
140
	CGContextSetShouldAntialias_FUNC,
141
	CGContextSetTextDrawingMode_FUNC,
141
	CGContextSetShouldSmoothFonts_FUNC,
142
	CGContextSetTextMatrix_FUNC,
142
	CGContextSetStrokeColor_FUNC,
143
	CGContextSetTextPosition_FUNC,
143
	CGContextSetStrokeColorSpace_FUNC,
144
	CGContextShowText_FUNC,
144
	CGContextSetTextDrawingMode_FUNC,
145
	CGContextShowTextAtPoint_FUNC,
145
	CGContextSetTextMatrix_FUNC,
146
	CGContextStrokePath_FUNC,
146
	CGContextSetTextPosition_FUNC,
147
	CGContextStrokeRect_FUNC,
147
	CGContextShowText_FUNC,
148
	CGContextSynchronize_FUNC,
148
	CGContextShowTextAtPoint_FUNC,
149
	CGContextTranslateCTM_FUNC,
149
	CGContextStrokePath_FUNC,
150
	CGDataProviderCreateWithData_FUNC,
150
	CGContextStrokeRect_FUNC,
151
	CGDataProviderRelease_FUNC,
151
	CGContextSynchronize_FUNC,
152
	CGDisplayBaseAddress_FUNC,
152
	CGContextTranslateCTM_FUNC,
153
	CGDisplayBitsPerPixel_FUNC,
153
	CGDataProviderCreateWithData_FUNC,
154
	CGDisplayBitsPerSample_FUNC,
154
	CGDataProviderRelease_FUNC,
155
	CGDisplayBytesPerRow_FUNC,
155
	CGDisplayBaseAddress_FUNC,
156
	CGDisplayPixelsHigh_FUNC,
156
	CGDisplayBitsPerPixel_FUNC,
157
	CGDisplayPixelsWide_FUNC,
157
	CGDisplayBitsPerSample_FUNC,
158
	CGFontCreateWithPlatformFont_FUNC,
158
	CGDisplayBytesPerRow_FUNC,
159
	CGFontRelease_FUNC,
159
	CGDisplayPixelsHigh_FUNC,
160
	CGGetDisplaysWithRect_FUNC,
160
	CGDisplayPixelsWide_FUNC,
161
	CGImageCreate_FUNC,
161
	CGFontCreateWithPlatformFont_FUNC,
162
	CGImageGetAlphaInfo_FUNC,
162
	CGFontRelease_FUNC,
163
	CGImageGetBitsPerComponent_FUNC,
163
	CGGetDisplaysWithRect_FUNC,
164
	CGImageGetBitsPerPixel_FUNC,
164
	CGImageCreate_FUNC,
165
	CGImageGetBytesPerRow_FUNC,
165
	CGImageGetAlphaInfo_FUNC,
166
	CGImageGetColorSpace_FUNC,
166
	CGImageGetBitsPerComponent_FUNC,
167
	CGImageGetHeight_FUNC,
167
	CGImageGetBitsPerPixel_FUNC,
168
	CGImageGetWidth_FUNC,
168
	CGImageGetBytesPerRow_FUNC,
169
	CGImageRelease_FUNC,
169
	CGImageGetColorSpace_FUNC,
170
	CGPathAddArc_FUNC,
170
	CGImageGetHeight_FUNC,
171
	CGPathAddCurveToPoint_FUNC,
171
	CGImageGetWidth_FUNC,
172
	CGPathAddLineToPoint_FUNC,
172
	CGImageRelease_FUNC,
173
	CGPathAddPath_FUNC,
173
	CGPathAddArc_FUNC,
174
	CGPathAddQuadCurveToPoint_FUNC,
174
	CGPathAddCurveToPoint_FUNC,
175
	CGPathAddRect_FUNC,
175
	CGPathAddLineToPoint_FUNC,
176
	CGPathCloseSubpath_FUNC,
176
	CGPathAddPath_FUNC,
177
	CGPathCreateMutable_FUNC,
177
	CGPathAddQuadCurveToPoint_FUNC,
178
	CGPathGetBoundingBox_FUNC,
178
	CGPathAddRect_FUNC,
179
	CGPathGetCurrentPoint_FUNC,
179
	CGPathCloseSubpath_FUNC,
180
	CGPathIsEmpty_FUNC,
180
	CGPathCreateMutable_FUNC,
181
	CGPathMoveToPoint_FUNC,
181
	CGPathGetBoundingBox_FUNC,
182
	CGPathRelease_FUNC,
182
	CGPathGetCurrentPoint_FUNC,
183
	CGPointApplyAffineTransform_FUNC,
183
	CGPathIsEmpty_FUNC,
184
	CGPostKeyboardEvent_FUNC,
184
	CGPathMoveToPoint_FUNC,
185
	CGPostMouseEvent_FUNC,
185
	CGPathRelease_FUNC,
186
	CGWarpMouseCursorPosition_FUNC,
186
	CGPointApplyAffineTransform_FUNC,
187
	CPSEnableForegroundOperation_FUNC,
187
	CGPostKeyboardEvent_FUNC,
188
	CPSSetProcessName_FUNC,
188
	CGPostMouseEvent_FUNC,
189
	CallNextEventHandler_FUNC,
189
	CGWarpMouseCursorPosition_FUNC,
190
	CharWidth_FUNC,
190
	CPSEnableForegroundOperation_FUNC,
191
	ClearCurrentScrap_FUNC,
191
	CPSSetProcessName_FUNC,
192
	ClearKeyboardFocus_FUNC,
192
	CallNextEventHandler_FUNC,
193
	ClearMenuBar_FUNC,
193
	CharWidth_FUNC,
194
	ClipCGContextToRegion_FUNC,
194
	ClearCurrentScrap_FUNC,
195
	CloseDataBrowserContainer_FUNC,
195
	ClearKeyboardFocus_FUNC,
196
	ClosePoly_FUNC,
196
	ClearMenuBar_FUNC,
197
	CloseRgn_FUNC,
197
	ClipCGContextToRegion_FUNC,
198
	CollapseWindow_FUNC,
198
	CloseDataBrowserContainer_FUNC,
199
	ConvertEventRefToEventRecord_FUNC,
199
	ClosePoly_FUNC,
200
	ConvertFromPStringToUnicode_FUNC,
200
	CloseRgn_FUNC,
201
	ConvertFromUnicodeToPString_FUNC,
201
	CollapseWindow_FUNC,
202
	CopyBits_FUNC,
202
	ConvertEventRefToEventRecord_FUNC,
203
	CopyControlTitleAsCFString_FUNC,
203
	ConvertFromPStringToUnicode_FUNC,
204
	CopyDeepMask_FUNC,
204
	ConvertFromUnicodeToPString_FUNC,
205
	CopyMenuItemTextAsCFString_FUNC,
205
	CopyBits_FUNC,
206
	CopyRgn_FUNC,
206
	CopyControlTitleAsCFString_FUNC,
207
	CountDragItemFlavors_FUNC,
207
	CopyDeepMask_FUNC,
208
	CountDragItems_FUNC,
208
	CopyMenuItemTextAsCFString_FUNC,
209
	CountMenuItems_FUNC,
209
	CopyRgn_FUNC,
210
	CountSubControls_FUNC,
210
	CountDragItemFlavors_FUNC,
211
	CreateBevelButtonControl_FUNC,
211
	CountDragItems_FUNC,
212
	CreateCGContextForPort_FUNC,
212
	CountMenuItems_FUNC,
213
	CreateCheckBoxControl_FUNC,
213
	CountSubControls_FUNC,
214
	CreateDataBrowserControl_FUNC,
214
	CreateBevelButtonControl_FUNC,
215
	CreateEditUnicodeTextControl_FUNC,
215
	CreateCGContextForPort_FUNC,
216
	CreateEvent_FUNC,
216
	CreateCheckBoxControl_FUNC,
217
	CreateGroupBoxControl_FUNC,
217
	CreateDataBrowserControl_FUNC,
218
	CreateIconControl_FUNC,
218
	CreateEditUnicodeTextControl_FUNC,
219
	CreateLittleArrowsControl_FUNC,
219
	CreateEvent_FUNC,
220
	CreateNewMenu_FUNC,
220
	CreateGroupBoxControl_FUNC,
221
	CreateNewWindow_FUNC,
221
	CreateIconControl_FUNC,
222
	CreatePopupArrowControl_FUNC,
222
	CreateLittleArrowsControl_FUNC,
223
	CreatePopupButtonControl_FUNC,
223
	CreateNewMenu_FUNC,
224
	CreateProgressBarControl_FUNC,
224
	CreateNewWindow_FUNC,
225
	CreatePushButtonControl_FUNC,
225
	CreatePopupArrowControl_FUNC,
226
	CreatePushButtonWithIconControl_FUNC,
226
	CreatePopupButtonControl_FUNC,
227
	CreateRadioButtonControl_FUNC,
227
	CreateProgressBarControl_FUNC,
228
	CreateRootControl_FUNC,
228
	CreatePushButtonControl_FUNC,
229
	CreateScrollBarControl_FUNC,
229
	CreatePushButtonWithIconControl_FUNC,
230
	CreateSeparatorControl_FUNC,
230
	CreateRadioButtonControl_FUNC,
231
	CreateSliderControl_FUNC,
231
	CreateRootControl_FUNC,
232
	CreateStandardAlert_FUNC,
232
	CreateScrollBarControl_FUNC,
233
	CreateStaticTextControl_FUNC,
233
	CreateSeparatorControl_FUNC,
234
	CreateTabsControl_FUNC,
234
	CreateSliderControl_FUNC,
235
	CreateTextToUnicodeInfoByEncoding_FUNC,
235
	CreateStandardAlert_FUNC,
236
	CreateUnicodeToTextInfoByEncoding_FUNC,
236
	CreateStaticTextControl_FUNC,
237
	CreateUserPaneControl_FUNC,
237
	CreateTabsControl_FUNC,
238
	CreateWindowGroup_FUNC,
238
	CreateTextToUnicodeInfoByEncoding_FUNC,
239
	DMGetFirstScreenDevice_FUNC,
239
	CreateUnicodeToTextInfoByEncoding_FUNC,
240
	DMGetNextScreenDevice_FUNC,
240
	CreateUserPaneControl_FUNC,
241
	DeleteMenu_FUNC,
241
	CreateWindowGroup_FUNC,
242
	DeleteMenuItem_FUNC,
242
	DMGetFirstScreenDevice_FUNC,
243
	DeleteMenuItems_FUNC,
243
	DMGetNextScreenDevice_FUNC,
244
	DiffRgn_FUNC,
244
	DeleteMenu_FUNC,
245
	DisableControl_FUNC,
245
	DeleteMenuItem_FUNC,
246
	DisableMenuCommand_FUNC,
246
	DeleteMenuItems_FUNC,
247
	DisableMenuItem_FUNC,
247
	DiffRgn_FUNC,
248
	DisposeControl_FUNC,
248
	DisableControl_FUNC,
249
	DisposeDrag_FUNC,
249
	DisableMenuCommand_FUNC,
250
	DisposeGWorld_FUNC,
250
	DisableMenuItem_FUNC,
251
	DisposeHandle_FUNC,
251
	DisposeControl_FUNC,
252
	DisposeMenu_FUNC,
252
	DisposeDrag_FUNC,
253
	DisposePtr_FUNC,
253
	DisposeGWorld_FUNC,
254
	DisposeRgn_FUNC,
254
	DisposeHandle_FUNC,
255
	DisposeTextToUnicodeInfo_FUNC,
255
	DisposeMenu_FUNC,
256
	DisposeUnicodeToTextInfo_FUNC,
256
	DisposePtr_FUNC,
257
	DisposeWindow_FUNC,
257
	DisposeRgn_FUNC,
258
	DrawControlInCurrentPort_FUNC,
258
	DisposeTextToUnicodeInfo_FUNC,
259
	DrawMenuBar_FUNC,
259
	DisposeUnicodeToTextInfo_FUNC,
260
	DrawText_FUNC,
260
	DisposeWindow_FUNC,
261
	DrawThemeButton_FUNC,
261
	DrawControlInCurrentPort_FUNC,
262
	DrawThemeEditTextFrame_FUNC,
262
	DrawMenuBar_FUNC,
263
	DrawThemeFocusRect_FUNC,
263
	DrawText_FUNC,
264
	DrawThemePopupArrow_FUNC,
264
	DrawThemeButton_FUNC,
265
	DrawThemeSeparator_FUNC,
265
	DrawThemeEditTextFrame_FUNC,
266
	DrawThemeTextBox_FUNC,
266
	DrawThemeFocusRect_FUNC,
267
	EmbedControl_FUNC,
267
	DrawThemePopupArrow_FUNC,
268
	EmptyRect_FUNC,
268
	DrawThemeSeparator_FUNC,
269
	EmptyRgn_FUNC,
269
	DrawThemeTextBox_FUNC,
270
	EnableControl_FUNC,
270
	EmbedControl_FUNC,
271
	EnableMenuCommand_FUNC,
271
	EmptyRect_FUNC,
272
	EnableMenuItem_FUNC,
272
	EmptyRgn_FUNC,
273
	EndUpdate_FUNC,
273
	EnableControl_FUNC,
274
	EqualRect_FUNC,
274
	EnableMenuCommand_FUNC,
275
	EraseRect_FUNC,
275
	EnableMenuItem_FUNC,
276
	EraseRgn_FUNC,
276
	EndUpdate_FUNC,
277
	FMCreateFontFamilyInstanceIterator_FUNC,
277
	EqualRect_FUNC,
278
	FMCreateFontFamilyIterator_FUNC,
278
	EraseRect_FUNC,
279
	FMDisposeFontFamilyInstanceIterator_FUNC,
279
	EraseRgn_FUNC,
280
	FMDisposeFontFamilyIterator_FUNC,
280
	FMCreateFontFamilyInstanceIterator_FUNC,
281
	FMGetATSFontRefFromFont_FUNC,
281
	FMCreateFontFamilyIterator_FUNC,
282
	FMGetFontFamilyFromName_FUNC,
282
	FMDisposeFontFamilyInstanceIterator_FUNC,
283
	FMGetFontFamilyInstanceFromFont_FUNC,
283
	FMDisposeFontFamilyIterator_FUNC,
284
	FMGetFontFamilyName_FUNC,
284
	FMGetATSFontRefFromFont_FUNC,
285
	FMGetFontFromFontFamilyInstance_FUNC,
285
	FMGetFontFamilyFromName_FUNC,
286
	FMGetNextFontFamily_FUNC,
286
	FMGetFontFamilyInstanceFromFont_FUNC,
287
	FMGetNextFontFamilyInstance_FUNC,
287
	FMGetFontFamilyName_FUNC,
288
	FPIsFontPanelVisible_FUNC,
288
	FMGetFontFromFontFamilyInstance_FUNC,
289
	FPShowHideFontPanel_FUNC,
289
	FMGetNextFontFamily_FUNC,
290
	FSGetCatalogInfo_FUNC,
290
	FMGetNextFontFamilyInstance_FUNC,
291
	FSpGetFInfo_FUNC,
291
	FPIsFontPanelVisible_FUNC,
292
	FSpMakeFSRef_FUNC,
292
	FPShowHideFontPanel_FUNC,
293
	FetchFontInfo_FUNC,
293
	FSGetCatalogInfo_FUNC,
294
	FindWindow_FUNC,
294
	FSNewAliasMinimal_FUNC,
295
	Fix2Long_FUNC,
295
	FSpGetFInfo_FUNC,
296
	Fix2X_FUNC,
296
	FSpMakeFSRef_FUNC,
297
	FrameOval_FUNC,
297
	FetchFontInfo_FUNC,
298
	FramePoly_FUNC,
298
	FindWindow_FUNC,
299
	FrameRect_FUNC,
299
	Fix2Long_FUNC,
300
	FrameRoundRect_FUNC,
300
	Fix2X_FUNC,
301
	FrontWindow_FUNC,
301
	FrameOval_FUNC,
302
	Gestalt_FUNC,
302
	FramePoly_FUNC,
303
	GetAppFont_FUNC,
303
	FrameRect_FUNC,
304
	GetApplicationEventTarget_FUNC,
304
	FrameRoundRect_FUNC,
305
	GetAvailableWindowAttributes_FUNC,
305
	FrontWindow_FUNC,
306
	GetAvailableWindowPositioningBounds_FUNC,
306
	Gestalt_FUNC,
307
	GetBestControlRect_FUNC,
307
	GetAppFont_FUNC,
308
	GetCaretTime_FUNC,
308
	GetApplicationEventTarget_FUNC,
309
	GetClip_FUNC,
309
	GetAvailableWindowAttributes_FUNC,
310
	GetControl32BitMaximum_FUNC,
310
	GetAvailableWindowPositioningBounds_FUNC,
311
	GetControl32BitMinimum_FUNC,
311
	GetBestControlRect_FUNC,
312
	GetControl32BitValue_FUNC,
312
	GetCaretTime_FUNC,
313
	GetControlBounds_FUNC,
313
	GetClip_FUNC,
314
	GetControlData__ISIILorg_eclipse_swt_internal_carbon_ControlFontStyleRec_2_3I_FUNC,
314
	GetControl32BitMaximum_FUNC,
315
	GetControlData__ISIILorg_eclipse_swt_internal_carbon_Rect_2_3I_FUNC,
315
	GetControl32BitMinimum_FUNC,
316
	GetControlData__ISII_3B_3I_FUNC,
316
	GetControl32BitValue_FUNC,
317
	GetControlData__ISII_3I_3I_FUNC,
317
	GetControlBounds_FUNC,
318
	GetControlData__ISII_3S_3I_FUNC,
318
	GetControlData__ISIILorg_eclipse_swt_internal_carbon_ControlFontStyleRec_2_3I_FUNC,
319
	GetControlEventTarget_FUNC,
319
	GetControlData__ISIILorg_eclipse_swt_internal_carbon_Rect_2_3I_FUNC,
320
	GetControlFeatures_FUNC,
320
	GetControlData__ISII_3B_3I_FUNC,
321
	GetControlOwner_FUNC,
321
	GetControlData__ISII_3I_3I_FUNC,
322
	GetControlProperty_FUNC,
322
	GetControlData__ISII_3S_3I_FUNC,
323
	GetControlReference_FUNC,
323
	GetControlEventTarget_FUNC,
324
	GetControlRegion_FUNC,
324
	GetControlFeatures_FUNC,
325
	GetControlValue_FUNC,
325
	GetControlOwner_FUNC,
326
	GetControlViewSize_FUNC,
326
	GetControlProperty_FUNC,
327
	GetCurrentEventButtonState_FUNC,
327
	GetControlReference_FUNC,
328
	GetCurrentEventKeyModifiers_FUNC,
328
	GetControlRegion_FUNC,
329
	GetCurrentEventLoop_FUNC,
329
	GetControlValue_FUNC,
330
	GetCurrentEventQueue_FUNC,
330
	GetControlViewSize_FUNC,
331
	GetCurrentProcess_FUNC,
331
	GetCurrentEventButtonState_FUNC,
332
	GetCurrentScrap_FUNC,
332
	GetCurrentEventKeyModifiers_FUNC,
333
	GetDataBrowserCallbacks_FUNC,
333
	GetCurrentEventLoop_FUNC,
334
	GetDataBrowserItemCount_FUNC,
334
	GetCurrentEventQueue_FUNC,
335
	GetDataBrowserItemDataButtonValue_FUNC,
335
	GetCurrentProcess_FUNC,
336
	GetDataBrowserItemPartBounds_FUNC,
336
	GetCurrentScrap_FUNC,
337
	GetDataBrowserItemState_FUNC,
337
	GetDataBrowserCallbacks_FUNC,
338
	GetDataBrowserItems_FUNC,
338
	GetDataBrowserItemCount_FUNC,
339
	GetDataBrowserListViewDisclosureColumn_FUNC,
339
	GetDataBrowserItemDataButtonValue_FUNC,
340
	GetDataBrowserListViewHeaderBtnHeight_FUNC,
340
	GetDataBrowserItemPartBounds_FUNC,
341
	GetDataBrowserListViewHeaderDesc_FUNC,
341
	GetDataBrowserItemState_FUNC,
342
	GetDataBrowserScrollBarInset_FUNC,
342
	GetDataBrowserItems_FUNC,
343
	GetDataBrowserScrollPosition_FUNC,
343
	GetDataBrowserListViewDisclosureColumn_FUNC,
344
	GetDataBrowserSelectionAnchor_FUNC,
344
	GetDataBrowserListViewHeaderBtnHeight_FUNC,
345
	GetDataBrowserSelectionFlags_FUNC,
345
	GetDataBrowserListViewHeaderDesc_FUNC,
346
	GetDataBrowserSortProperty_FUNC,
346
	GetDataBrowserScrollBarInset_FUNC,
347
	GetDataBrowserSortOrder_FUNC,
347
	GetDataBrowserScrollPosition_FUNC,
348
	GetDataBrowserTableViewColumnPosition_FUNC,
348
	GetDataBrowserSelectionAnchor_FUNC,
349
	GetDataBrowserTableViewItemID_FUNC,
349
	GetDataBrowserSelectionFlags_FUNC,
350
	GetDataBrowserTableViewItemRow_FUNC,
350
	GetDataBrowserSortOrder_FUNC,
351
	GetDataBrowserTableViewNamedColumnWidth_FUNC,
351
	GetDataBrowserSortProperty_FUNC,
352
	GetDataBrowserTableViewRowHeight_FUNC,
352
	GetDataBrowserTableViewColumnPosition_FUNC,
353
	GetDblTime_FUNC,
353
	GetDataBrowserTableViewItemID_FUNC,
354
	GetDefFontSize_FUNC,
354
	GetDataBrowserTableViewItemRow_FUNC,
355
	GetDeviceList_FUNC,
355
	GetDataBrowserTableViewNamedColumnWidth_FUNC,
356
	GetDragAllowableActions_FUNC,
356
	GetDataBrowserTableViewRowHeight_FUNC,
357
	GetDragDropAction_FUNC,
357
	GetDblTime_FUNC,
358
	GetDragItemReferenceNumber_FUNC,
358
	GetDefFontSize_FUNC,
359
	GetDragModifiers_FUNC,
359
	GetDeviceList_FUNC,
360
	GetDragMouse_FUNC,
360
	GetDragAllowableActions_FUNC,
361
	GetEventClass_FUNC,
361
	GetDragDropAction_FUNC,
362
	GetEventDispatcherTarget_FUNC,
362
	GetDragItemReferenceNumber_FUNC,
363
	GetEventKind_FUNC,
363
	GetDragModifiers_FUNC,
364
	GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_CGPoint_2_FUNC,
364
	GetDragMouse_FUNC,
365
	GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_HICommand_2_FUNC,
365
	GetEventClass_FUNC,
366
	GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Point_2_FUNC,
366
	GetEventDispatcherTarget_FUNC,
367
	GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_RGBColor_2_FUNC,
367
	GetEventKind_FUNC,
368
	GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Rect_2_FUNC,
368
	GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_CGPoint_2_FUNC,
369
	GetEventParameter__III_3II_3I_3B_FUNC,
369
	GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_HICommand_2_FUNC,
370
	GetEventParameter__III_3II_3I_3C_FUNC,
370
	GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Point_2_FUNC,
371
	GetEventParameter__III_3II_3I_3I_FUNC,
371
	GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_RGBColor_2_FUNC,
372
	GetEventParameter__III_3II_3I_3S_FUNC,
372
	GetEventParameter__III_3II_3ILorg_eclipse_swt_internal_carbon_Rect_2_FUNC,
373
	GetEventTime_FUNC,
373
	GetEventParameter__III_3II_3I_3B_FUNC,
374
	GetFlavorData_FUNC,
374
	GetEventParameter__III_3II_3I_3C_FUNC,
375
	GetFlavorDataSize_FUNC,
375
	GetEventParameter__III_3II_3I_3I_FUNC,
376
	GetFlavorType_FUNC,
376
	GetEventParameter__III_3II_3I_3S_FUNC,
377
	GetFontInfo_FUNC,
377
	GetEventTime_FUNC,
378
	GetGDevice_FUNC,
378
	GetFlavorData_FUNC,
379
	GetGWorld_FUNC,
379
	GetFlavorDataSize_FUNC,
380
	GetGlobalMouse_FUNC,
380
	GetFlavorType_FUNC,
381
	GetHandleSize_FUNC,
381
	GetFontInfo_FUNC,
382
	GetIconFamilyData_FUNC,
382
	GetGDevice_FUNC,
383
	GetIconRef_FUNC,
383
	GetGWorld_FUNC,
384
	GetIndMenuItemWithCommandID_FUNC,
384
	GetGlobalMouse_FUNC,
385
	GetIndexedSubControl_FUNC,
385
	GetHandleSize_FUNC,
386
	GetItemMark_FUNC,
386
	GetIconFamilyData_FUNC,
387
	GetKeyboardFocus_FUNC,
387
	GetIconRef_FUNC,
388
	GetLastUserEventTime_FUNC,
388
	GetIndMenuItemWithCommandID_FUNC,
389
	GetMBarHeight_FUNC,
389
	GetIndexedSubControl_FUNC,
390
	GetMainDevice_FUNC,
390
	GetItemMark_FUNC,
391
	GetMainEventQueue_FUNC,
391
	GetKeyboardFocus_FUNC,
392
	GetMenuCommandMark_FUNC,
392
	GetLastUserEventTime_FUNC,
393
	GetMenuEventTarget_FUNC,
393
	GetMBarHeight_FUNC,
394
	GetMenuFont_FUNC,
394
	GetMainDevice_FUNC,
395
	GetMenuHeight_FUNC,
395
	GetMainEventQueue_FUNC,
396
	GetMenuID_FUNC,
396
	GetMenuCommandMark_FUNC,
397
	GetMenuItemCommandID_FUNC,
397
	GetMenuEventTarget_FUNC,
398
	GetMenuItemHierarchicalMenu_FUNC,
398
	GetMenuFont_FUNC,
399
	GetMenuItemRefCon_FUNC,
399
	GetMenuHeight_FUNC,
400
	GetMenuTrackingData_FUNC,
400
	GetMenuID_FUNC,
401
	GetMenuWidth_FUNC,
401
	GetMenuItemCommandID_FUNC,
402
	GetMouse_FUNC,
402
	GetMenuItemHierarchicalMenu_FUNC,
403
	GetNextDevice_FUNC,
403
	GetMenuItemRefCon_FUNC,
404
	GetPixBounds_FUNC,
404
	GetMenuTrackingData_FUNC,
405
	GetPixDepth_FUNC,
405
	GetMenuWidth_FUNC,
406
	GetPort_FUNC,
406
	GetMouse_FUNC,
407
	GetPortBitMapForCopyBits_FUNC,
407
	GetNextDevice_FUNC,
408
	GetPortBounds_FUNC,
408
	GetPixBounds_FUNC,
409
	GetPortClipRegion_FUNC,
409
	GetPixDepth_FUNC,
410
	GetPortVisibleRegion_FUNC,
410
	GetPort_FUNC,
411
	GetPreviousWindow_FUNC,
411
	GetPortBitMapForCopyBits_FUNC,
412
	GetPtrSize_FUNC,
412
	GetPortBounds_FUNC,
413
	GetRegionBounds_FUNC,
413
	GetPortClipRegion_FUNC,
414
	GetRootControl_FUNC,
414
	GetPortVisibleRegion_FUNC,
415
	GetScrapFlavorCount_FUNC,
415
	GetPreviousWindow_FUNC,
416
	GetScrapFlavorData__II_3I_3B_FUNC,
416
	GetPtrSize_FUNC,
417
	GetScrapFlavorData__II_3I_3C_FUNC,
417
	GetRegionBounds_FUNC,
418
	GetScrapFlavorInfoList_FUNC,
418
	GetRootControl_FUNC,
419
	GetScrapFlavorSize_FUNC,
419
	GetScrapFlavorCount_FUNC,
420
	GetScriptManagerVariable_FUNC,
420
	GetScrapFlavorData__II_3I_3B_FUNC,
421
	GetSuperControl_FUNC,
421
	GetScrapFlavorData__II_3I_3C_FUNC,
422
	GetTabContentRect_FUNC,
422
	GetScrapFlavorInfoList_FUNC,
423
	GetThemeBrushAsColor_FUNC,
423
	GetScrapFlavorSize_FUNC,
424
	GetThemeButtonContentBounds_FUNC,
424
	GetScriptManagerVariable_FUNC,
425
	GetThemeDrawingState_FUNC,
425
	GetSuperControl_FUNC,
426
	GetThemeFont_FUNC,
426
	GetTabContentRect_FUNC,
427
	GetThemeMenuItemExtra_FUNC,
427
	GetThemeBrushAsColor_FUNC,
428
	GetThemeMetric_FUNC,
428
	GetThemeButtonContentBounds_FUNC,
429
	GetThemeTextColor_FUNC,
429
	GetThemeDrawingState_FUNC,
430
	GetThemeTextDimensions_FUNC,
430
	GetThemeFont_FUNC,
431
	GetUserFocusEventTarget_FUNC,
431
	GetThemeMenuItemExtra_FUNC,
432
	GetUserFocusWindow_FUNC,
432
	GetThemeMetric_FUNC,
433
	GetWRefCon_FUNC,
433
	GetThemeTextColor_FUNC,
434
	GetWindowActivationScope_FUNC,
434
	GetThemeTextDimensions_FUNC,
435
	GetWindowBounds_FUNC,
435
	GetUserFocusEventTarget_FUNC,
436
	GetWindowDefaultButton_FUNC,
436
	GetUserFocusWindow_FUNC,
437
	GetWindowEventTarget_FUNC,
437
	GetWRefCon_FUNC,
438
	GetWindowFromPort_FUNC,
438
	GetWindowActivationScope_FUNC,
439
	GetWindowGroupOfClass_FUNC,
439
	GetWindowBounds_FUNC,
440
	GetWindowModality_FUNC,
440
	GetWindowDefaultButton_FUNC,
441
	GetWindowPort_FUNC,
441
	GetWindowEventTarget_FUNC,
442
	GetWindowRegion_FUNC,
442
	GetWindowFromPort_FUNC,
443
	GetWindowResizeLimits_FUNC,
443
	GetWindowGroupOfClass_FUNC,
444
	GetWindowStructureWidths_FUNC,
444
	GetWindowModality_FUNC,
445
	HIComboBoxAppendTextItem_FUNC,
445
	GetWindowPort_FUNC,
446
	HIComboBoxCopyTextItemAtIndex_FUNC,
446
	GetWindowRegion_FUNC,
447
	HIComboBoxCreate_FUNC,
447
	GetWindowResizeLimits_FUNC,
448
	HIComboBoxGetItemCount_FUNC,
448
	GetWindowStructureWidths_FUNC,
449
	HIComboBoxInsertTextItemAtIndex_FUNC,
449
	HIComboBoxAppendTextItem_FUNC,
450
	HIComboBoxRemoveItemAtIndex_FUNC,
450
	HIComboBoxCopyTextItemAtIndex_FUNC,
451
	HIObjectCopyClassID_FUNC,
451
	HIComboBoxCreate_FUNC,
452
	HIObjectCreate_FUNC,
452
	HIComboBoxGetItemCount_FUNC,
453
	HIObjectRegisterSubclass_FUNC,
453
	HIComboBoxInsertTextItemAtIndex_FUNC,
454
	HIViewAddSubview_FUNC,
454
	HIComboBoxRemoveItemAtIndex_FUNC,
455
	HIViewClick_FUNC,
455
	HIObjectCopyClassID_FUNC,
456
	HIViewConvertPoint_FUNC,
456
	HIObjectCreate_FUNC,
457
	HIViewCreateOffscreenImage_FUNC,
457
	HIObjectRegisterSubclass_FUNC,
458
	HIViewFindByID_FUNC,
458
	HIViewAddSubview_FUNC,
459
	HIViewGetFirstSubview_FUNC,
459
	HIViewClick_FUNC,
460
	HIViewGetFrame_FUNC,
460
	HIViewConvertPoint_FUNC,
461
	HIViewGetLastSubview_FUNC,
461
	HIViewCreateOffscreenImage_FUNC,
462
	HIViewGetNextView_FUNC,
462
	HIViewFindByID_FUNC,
463
	HIViewGetRoot_FUNC,
463
	HIViewGetFirstSubview_FUNC,
464
	HIViewGetSizeConstraints_FUNC,
464
	HIViewGetFrame_FUNC,
465
	HIViewGetSubviewHit_FUNC,
465
	HIViewGetLastSubview_FUNC,
466
	HIViewGetViewForMouseEvent_FUNC,
466
	HIViewGetNextView_FUNC,
467
	HIViewIsVisible_FUNC,
467
	HIViewGetRoot_FUNC,
468
	HIViewRemoveFromSuperview_FUNC,
468
	HIViewGetSizeConstraints_FUNC,
469
	HIViewSetBoundsOrigin_FUNC,
469
	HIViewGetSubviewHit_FUNC,
470
	HIViewSetDrawingEnabled_FUNC,
470
	HIViewGetViewForMouseEvent_FUNC,
471
	HIViewSetFrame_FUNC,
471
	HIViewIsVisible_FUNC,
472
	HIViewSetNeedsDisplay_FUNC,
472
	HIViewRemoveFromSuperview_FUNC,
473
	HIViewSetNeedsDisplayInRegion_FUNC,
473
	HIViewSetBoundsOrigin_FUNC,
474
	HIViewSetVisible_FUNC,
474
	HIViewSetDrawingEnabled_FUNC,
475
	HIViewSetZOrder_FUNC,
475
	HIViewSetFrame_FUNC,
476
	HIViewSimulateClick_FUNC,
476
	HIViewSetNeedsDisplay_FUNC,
477
	HLock_FUNC,
477
	HIViewSetNeedsDisplayInRegion_FUNC,
478
	HMGetTagDelay_FUNC,
478
	HIViewSetVisible_FUNC,
479
	HMHideTag_FUNC,
479
	HIViewSetZOrder_FUNC,
480
	HMInstallControlContentCallback_FUNC,
480
	HIViewSimulateClick_FUNC,
481
	HMSetTagDelay_FUNC,
481
	HLock_FUNC,
482
	HUnlock_FUNC,
482
	HMGetTagDelay_FUNC,
483
	HandleControlClick_FUNC,
483
	HMHideTag_FUNC,
484
	HandleControlSetCursor_FUNC,
484
	HMInstallControlContentCallback_FUNC,
485
	HiWord_FUNC,
485
	HMSetTagDelay_FUNC,
486
	HideWindow_FUNC,
486
	HUnlock_FUNC,
487
	HiliteMenu_FUNC,
487
	HandleControlClick_FUNC,
488
	IconRefToIconFamily_FUNC,
488
	HandleControlSetCursor_FUNC,
489
	InitContextualMenus_FUNC,
489
	HiWord_FUNC,
490
	InitCursor_FUNC,
490
	HideWindow_FUNC,
491
	InitDataBrowserCallbacks_FUNC,
491
	HiliteMenu_FUNC,
492
	InitDataBrowserCustomCallbacks_FUNC,
492
	IconRefToIconFamily_FUNC,
493
	InsertMenu_FUNC,
493
	InitContextualMenus_FUNC,
494
	InsertMenuItemTextWithCFString_FUNC,
494
	InitCursor_FUNC,
495
	InstallEventHandler_FUNC,
495
	InitDataBrowserCallbacks_FUNC,
496
	InstallEventLoopIdleTimer_FUNC,
496
	InitDataBrowserCustomCallbacks_FUNC,
497
	InstallEventLoopTimer_FUNC,
497
	InsertMenu_FUNC,
498
	InstallReceiveHandler_FUNC,
498
	InsertMenuItemTextWithCFString_FUNC,
499
	InstallTrackingHandler_FUNC,
499
	InstallEventHandler_FUNC,
500
	InvalWindowRect_FUNC,
500
	InstallEventLoopIdleTimer_FUNC,
501
	InvalWindowRgn_FUNC,
501
	InstallEventLoopTimer_FUNC,
502
	InvertRect_FUNC,
502
	InstallReceiveHandler_FUNC,
503
	InvertRgn_FUNC,
503
	InstallTrackingHandler_FUNC,
504
	IsControlActive_FUNC,
504
	InvalWindowRect_FUNC,
505
	IsControlEnabled_FUNC,
505
	InvalWindowRgn_FUNC,
506
	IsControlVisible_FUNC,
506
	InvertRect_FUNC,
507
	IsDataBrowserItemSelected_FUNC,
507
	InvertRgn_FUNC,
508
	IsMenuCommandEnabled_FUNC,
508
	IsControlActive_FUNC,
509
	IsMenuItemEnabled_FUNC,
509
	IsControlEnabled_FUNC,
510
	IsValidControlHandle_FUNC,
510
	IsControlVisible_FUNC,
511
	IsValidMenu_FUNC,
511
	IsDataBrowserItemSelected_FUNC,
512
	IsValidWindowPtr_FUNC,
512
	IsMenuCommandEnabled_FUNC,
513
	IsWindowActive_FUNC,
513
	IsMenuItemEnabled_FUNC,
514
	IsWindowCollapsed_FUNC,
514
	IsValidControlHandle_FUNC,
515
	IsWindowVisible_FUNC,
515
	IsValidMenu_FUNC,
516
	KeyTranslate_FUNC,
516
	IsValidWindowPtr_FUNC,
517
	KillPoly_FUNC,
517
	IsWindowActive_FUNC,
518
	LineTo_FUNC,
518
	IsWindowCollapsed_FUNC,
519
	LoWord_FUNC,
519
	IsWindowVisible_FUNC,
520
	LockPortBits_FUNC,
520
	KeyTranslate_FUNC,
521
	Long2Fix_FUNC,
521
	KillPoly_FUNC,
522
	MenuSelect_FUNC,
522
	LineTo_FUNC,
523
	MoveControl_FUNC,
523
	LoWord_FUNC,
524
	MoveTo_FUNC,
524
	LockPortBits_FUNC,
525
	MoveWindow_FUNC,
525
	Long2Fix_FUNC,
526
	NavCreateChooseFolderDialog_FUNC,
526
	MenuSelect_FUNC,
527
	NavCreateGetFileDialog_FUNC,
527
	MoveControl_FUNC,
528
	NavCreatePutFileDialog_FUNC,
528
	MoveTo_FUNC,
529
	NavDialogDispose_FUNC,
529
	MoveWindow_FUNC,
530
	NavDialogGetReply_FUNC,
530
	NavCreateChooseFolderDialog_FUNC,
531
	NavDialogGetSaveFileName_FUNC,
531
	NavCreateGetFileDialog_FUNC,
532
	NavDialogGetUserAction_FUNC,
532
	NavCreatePutFileDialog_FUNC,
533
	NavDialogRun_FUNC,
533
	NavDialogDispose_FUNC,
534
	NavDialogSetSaveFileName_FUNC,
534
	NavDialogGetReply_FUNC,
535
	NavGetDefaultDialogCreationOptions_FUNC,
535
	NavDialogGetSaveFileName_FUNC,
536
	NewControl_FUNC,
536
	NavDialogGetUserAction_FUNC,
537
	NewDrag_FUNC,
537
	NavDialogRun_FUNC,
538
	NewGWorldFromPtr_FUNC,
538
	NavDialogSetSaveFileName_FUNC,
539
	NewHandle_FUNC,
539
	NavGetDefaultDialogCreationOptions_FUNC,
540
	NewHandleClear_FUNC,
540
	NewControl_FUNC,
541
	NewPtr_FUNC,
541
	NewDrag_FUNC,
542
	NewPtrClear_FUNC,
542
	NewGWorldFromPtr_FUNC,
543
	NewRgn_FUNC,
543
	NewHandle_FUNC,
544
	OffsetRect_FUNC,
544
	NewHandleClear_FUNC,
545
	OffsetRgn_FUNC,
545
	NewPtr_FUNC,
546
	OpenDataBrowserContainer_FUNC,
546
	NewPtrClear_FUNC,
547
	OpenPoly_FUNC,
547
	NewRgn_FUNC,
548
	OpenRgn_FUNC,
548
	OffsetRect_FUNC,
549
	PMCreatePageFormat_FUNC,
549
	OffsetRgn_FUNC,
550
	PMCreatePrintSettings_FUNC,
550
	OpenDataBrowserContainer_FUNC,
551
	PMCreateSession_FUNC,
551
	OpenPoly_FUNC,
552
	PMFlattenPageFormat_FUNC,
552
	OpenRgn_FUNC,
553
	PMFlattenPrintSettings_FUNC,
553
	PMCreatePageFormat_FUNC,
554
	PMGetAdjustedPageRect_FUNC,
554
	PMCreatePrintSettings_FUNC,
555
	PMGetAdjustedPaperRect_FUNC,
555
	PMCreateSession_FUNC,
556
	PMGetCollate_FUNC,
556
	PMFlattenPageFormat_FUNC,
557
	PMGetCopies_FUNC,
557
	PMFlattenPrintSettings_FUNC,
558
	PMGetFirstPage_FUNC,
558
	PMGetAdjustedPageRect_FUNC,
559
	PMGetJobNameCFString_FUNC,
559
	PMGetAdjustedPaperRect_FUNC,
560
	PMGetLastPage_FUNC,
560
	PMGetCollate_FUNC,
561
	PMGetPageRange_FUNC,
561
	PMGetCopies_FUNC,
562
	PMGetResolution_FUNC,
562
	PMGetFirstPage_FUNC,
563
	PMRelease_FUNC,
563
	PMGetJobNameCFString_FUNC,
564
	PMSessionBeginDocumentNoDialog_FUNC,
564
	PMGetLastPage_FUNC,
565
	PMSessionBeginPageNoDialog_FUNC,
565
	PMGetPageRange_FUNC,
566
	PMSessionCopyDestinationLocation_FUNC,
566
	PMGetResolution_FUNC,
567
	PMSessionCreatePrinterList_FUNC,
567
	PMRelease_FUNC,
568
	PMSessionDefaultPageFormat_FUNC,
568
	PMSessionBeginDocumentNoDialog_FUNC,
569
	PMSessionDefaultPrintSettings_FUNC,
569
	PMSessionBeginPageNoDialog_FUNC,
570
	PMSessionEndDocumentNoDialog_FUNC,
570
	PMSessionCopyDestinationLocation_FUNC,
571
	PMSessionEndPageNoDialog_FUNC,
571
	PMSessionCreatePrinterList_FUNC,
572
	PMSessionError_FUNC,
572
	PMSessionDefaultPageFormat_FUNC,
573
	PMSessionGetDestinationType_FUNC,
573
	PMSessionDefaultPrintSettings_FUNC,
574
	PMSessionGetGraphicsContext_FUNC,
574
	PMSessionEndDocumentNoDialog_FUNC,
575
	PMSessionPageSetupDialog_FUNC,
575
	PMSessionEndPageNoDialog_FUNC,
576
	PMSessionPrintDialog_FUNC,
576
	PMSessionError_FUNC,
577
	PMSessionSetCurrentPrinter_FUNC,
577
	PMSessionGetDestinationType_FUNC,
578
	PMSessionSetDestination_FUNC,
578
	PMSessionGetGraphicsContext_FUNC,
579
	PMSessionSetDocumentFormatGeneration_FUNC,
579
	PMSessionPageSetupDialog_FUNC,
580
	PMSessionSetError_FUNC,
580
	PMSessionPrintDialog_FUNC,
581
	PMSessionUseSheets_FUNC,
581
	PMSessionSetCurrentPrinter_FUNC,
582
	PMSessionValidatePageFormat_FUNC,
582
	PMSessionSetDestination_FUNC,
583
	PMSessionValidatePrintSettings_FUNC,
583
	PMSessionSetDocumentFormatGeneration_FUNC,
584
	PMSetCollate_FUNC,
584
	PMSessionSetError_FUNC,
585
	PMSetFirstPage_FUNC,
585
	PMSessionUseSheets_FUNC,
586
	PMSetJobNameCFString_FUNC,
586
	PMSessionValidatePageFormat_FUNC,
587
	PMSetLastPage_FUNC,
587
	PMSessionValidatePrintSettings_FUNC,
588
	PMSetPageRange_FUNC,
588
	PMSetCollate_FUNC,
589
	PMUnflattenPageFormat_FUNC,
589
	PMSetFirstPage_FUNC,
590
	PMUnflattenPrintSettings_FUNC,
590
	PMSetJobNameCFString_FUNC,
591
	PaintOval_FUNC,
591
	PMSetLastPage_FUNC,
592
	PaintPoly_FUNC,
592
	PMSetPageRange_FUNC,
593
	PaintRect_FUNC,
593
	PMUnflattenPageFormat_FUNC,
594
	PaintRoundRect_FUNC,
594
	PMUnflattenPrintSettings_FUNC,
595
	PenSize_FUNC,
595
	PaintOval_FUNC,
596
	PickColor_FUNC,
596
	PaintPoly_FUNC,
597
	PopUpMenuSelect_FUNC,
597
	PaintRect_FUNC,
598
	PostEvent_FUNC,
598
	PaintRoundRect_FUNC,
599
	PostEventToQueue_FUNC,
599
	PenSize_FUNC,
600
	PtInRect_FUNC,
600
	PickColor_FUNC,
601
	PtInRgn_FUNC,
601
	PopUpMenuSelect_FUNC,
602
	PutScrapFlavor__IIII_3B_FUNC,
602
	PostEvent_FUNC,
603
	PutScrapFlavor__IIII_3C_FUNC,
603
	PostEventToQueue_FUNC,
604
	QDBeginCGContext_FUNC,
604
	PtInRect_FUNC,
605
	QDEndCGContext_FUNC,
605
	PtInRgn_FUNC,
606
	QDFlushPortBuffer_FUNC,
606
	PutScrapFlavor__IIII_3B_FUNC,
607
	QDGlobalToLocalPoint_FUNC,
607
	PutScrapFlavor__IIII_3C_FUNC,
608
	QDLocalToGlobalPoint_FUNC,
608
	QDBeginCGContext_FUNC,
609
	QDRegionToRects_FUNC,
609
	QDEndCGContext_FUNC,
610
	QDSetDirtyRegion_FUNC,
610
	QDFlushPortBuffer_FUNC,
611
	QDSetPatternOrigin_FUNC,
611
	QDGlobalToLocalPoint_FUNC,
612
	QDSwapTextFlags_FUNC,
612
	QDLocalToGlobalPoint_FUNC,
613
	RGBBackColor_FUNC,
613
	QDRegionToRects_FUNC,
614
	RGBForeColor_FUNC,
614
	QDSetDirtyRegion_FUNC,
615
	ReceiveNextEvent_FUNC,
615
	QDSetPatternOrigin_FUNC,
616
	RectInRgn_FUNC,
616
	QDSwapTextFlags_FUNC,
617
	RectRgn_FUNC,
617
	RGBBackColor_FUNC,
618
	RegisterAppearanceClient_FUNC,
618
	RGBForeColor_FUNC,
619
	ReleaseEvent_FUNC,
619
	ReceiveNextEvent_FUNC,
620
	ReleaseIconRef_FUNC,
620
	RectInRgn_FUNC,
621
	ReleaseMenu_FUNC,
621
	RectRgn_FUNC,
622
	ReleaseWindow_FUNC,
622
	RegisterAppearanceClient_FUNC,
623
	ReleaseWindowGroup_FUNC,
623
	ReleaseEvent_FUNC,
624
	RemoveControlProperty_FUNC,
624
	ReleaseIconRef_FUNC,
625
	RemoveDataBrowserItems_FUNC,
625
	ReleaseMenu_FUNC,
626
	RemoveDataBrowserTableViewColumn_FUNC,
626
	ReleaseWindow_FUNC,
627
	RemoveEventHandler_FUNC,
627
	ReleaseWindowGroup_FUNC,
628
	RemoveEventLoopTimer_FUNC,
628
	RemoveControlProperty_FUNC,
629
	RemoveReceiveHandler_FUNC,
629
	RemoveDataBrowserItems_FUNC,
630
	RemoveTrackingHandler_FUNC,
630
	RemoveDataBrowserTableViewColumn_FUNC,
631
	RepositionWindow_FUNC,
631
	RemoveEventHandler_FUNC,
632
	ReshapeCustomWindow_FUNC,
632
	RemoveEventLoopTimer_FUNC,
633
	RestoreApplicationDockTileImage_FUNC,
633
	RemoveReceiveHandler_FUNC,
634
	RetainEvent_FUNC,
634
	RemoveTrackingHandler_FUNC,
635
	RetainMenu_FUNC,
635
	RepositionWindow_FUNC,
636
	RetainWindow_FUNC,
636
	ReshapeCustomWindow_FUNC,
637
	RevealDataBrowserItem_FUNC,
637
	RestoreApplicationDockTileImage_FUNC,
638
	RunStandardAlert_FUNC,
638
	RetainEvent_FUNC,
639
	ScrollRect_FUNC,
639
	RetainMenu_FUNC,
640
	SectRect_FUNC,
640
	RetainWindow_FUNC,
641
	SectRgn_FUNC,
641
	RevealDataBrowserItem_FUNC,
642
	SelectWindow_FUNC,
642
	RunStandardAlert_FUNC,
643
	SendBehind_FUNC,
643
	ScrollRect_FUNC,
644
	SendEventToEventTarget_FUNC,
644
	SectRect_FUNC,
645
	SetApplicationDockTileImage_FUNC,
645
	SectRgn_FUNC,
646
	SetBevelButtonContentInfo_FUNC,
646
	SelectWindow_FUNC,
647
	SetClip_FUNC,
647
	SendBehind_FUNC,
648
	SetControl32BitMaximum_FUNC,
648
	SendEventToEventTarget_FUNC,
649
	SetControl32BitMinimum_FUNC,
649
	SetApplicationDockTileImage_FUNC,
650
	SetControl32BitValue_FUNC,
650
	SetBevelButtonContentInfo_FUNC,
651
	SetControlAction_FUNC,
651
	SetClip_FUNC,
652
	SetControlBounds_FUNC,
652
	SetControl32BitMaximum_FUNC,
653
	SetControlColorProc_FUNC,
653
	SetControl32BitMinimum_FUNC,
654
	SetControlData__IIIII_FUNC,
654
	SetControl32BitValue_FUNC,
655
	SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlButtonContentInfo_2_FUNC,
655
	SetControlAction_FUNC,
656
	SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlTabInfoRecV1_2_FUNC,
656
	SetControlBounds_FUNC,
657
	SetControlData__IIIILorg_eclipse_swt_internal_carbon_Rect_2_FUNC,
657
	SetControlColorProc_FUNC,
658
	SetControlData__IIII_3B_FUNC,
658
	SetControlData__IIIII_FUNC,
659
	SetControlData__IIII_3I_FUNC,
659
	SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlButtonContentInfo_2_FUNC,
660
	SetControlData__IIII_3S_FUNC,
660
	SetControlData__IIIILorg_eclipse_swt_internal_carbon_ControlTabInfoRecV1_2_FUNC,
661
	SetControlFontStyle_FUNC,
661
	SetControlData__IIIILorg_eclipse_swt_internal_carbon_Rect_2_FUNC,
662
	SetControlPopupMenuHandle_FUNC,
662
	SetControlData__IIII_3B_FUNC,
663
	SetControlProperty_FUNC,
663
	SetControlData__IIII_3I_FUNC,
664
	SetControlReference_FUNC,
664
	SetControlData__IIII_3S_FUNC,
665
	SetControlTitleWithCFString_FUNC,
665
	SetControlFontStyle_FUNC,
666
	SetControlViewSize_FUNC,
666
	SetControlPopupMenuHandle_FUNC,
667
	SetControlVisibility_FUNC,
667
	SetControlProperty_FUNC,
668
	SetCursor_FUNC,
668
	SetControlReference_FUNC,
669
	SetDataBrowserCallbacks_FUNC,
669
	SetControlTitleWithCFString_FUNC,
670
	SetDataBrowserCustomCallbacks_FUNC,
670
	SetControlViewSize_FUNC,
671
	SetDataBrowserHasScrollBars_FUNC,
671
	SetControlVisibility_FUNC,
672
	SetDataBrowserItemDataBooleanValue_FUNC,
672
	SetCursor_FUNC,
673
	SetDataBrowserItemDataButtonValue_FUNC,
673
	SetDataBrowserCallbacks_FUNC,
674
	SetDataBrowserItemDataIcon_FUNC,
674
	SetDataBrowserCustomCallbacks_FUNC,
675
	SetDataBrowserItemDataItemID_FUNC,
675
	SetDataBrowserHasScrollBars_FUNC,
676
	SetDataBrowserItemDataText_FUNC,
676
	SetDataBrowserItemDataBooleanValue_FUNC,
677
	SetDataBrowserListViewDisclosureColumn_FUNC,
677
	SetDataBrowserItemDataButtonValue_FUNC,
678
	SetDataBrowserListViewHeaderBtnHeight_FUNC,
678
	SetDataBrowserItemDataIcon_FUNC,
679
	SetDataBrowserListViewHeaderDesc_FUNC,
679
	SetDataBrowserItemDataItemID_FUNC,
680
	SetDataBrowserScrollPosition_FUNC,
680
	SetDataBrowserItemDataText_FUNC,
681
	SetDataBrowserSelectedItems_FUNC,
681
	SetDataBrowserListViewDisclosureColumn_FUNC,
682
	SetDataBrowserSelectionFlags_FUNC,
682
	SetDataBrowserListViewHeaderBtnHeight_FUNC,
683
	SetDataBrowserSortOrder_FUNC,
683
	SetDataBrowserListViewHeaderDesc_FUNC,
684
	SetDataBrowserTableViewColumnPosition_FUNC,
684
	SetDataBrowserScrollPosition_FUNC,
685
	SetDataBrowserTableViewHiliteStyle_FUNC,
685
	SetDataBrowserSelectedItems_FUNC,
686
	SetDataBrowserTableViewItemRow_FUNC,
686
	SetDataBrowserSelectionFlags_FUNC,
687
	SetDataBrowserTableViewNamedColumnWidth_FUNC,
687
	SetDataBrowserSortOrder_FUNC,
688
	SetDataBrowserTableViewRowHeight_FUNC,
688
	SetDataBrowserTableViewColumnPosition_FUNC,
689
	SetDataBrowserTarget_FUNC,
689
	SetDataBrowserTableViewHiliteStyle_FUNC,
690
	SetDragAllowableActions_FUNC,
690
	SetDataBrowserTableViewItemRow_FUNC,
691
	SetDragDropAction_FUNC,
691
	SetDataBrowserTableViewNamedColumnWidth_FUNC,
692
	SetDragInputProc_FUNC,
692
	SetDataBrowserTableViewRowHeight_FUNC,
693
	SetEventLoopTimerNextFireTime_FUNC,
693
	SetDataBrowserTarget_FUNC,
694
	SetEventParameter__IIII_3C_FUNC,
694
	SetDragAllowableActions_FUNC,
695
	SetEventParameter__IIII_3I_FUNC,
695
	SetDragDropAction_FUNC,
696
	SetEventParameter__IIII_3S_FUNC,
696
	SetDragInputProc_FUNC,
697
	SetFontInfoForSelection_FUNC,
697
	SetDropLocation_FUNC,
698
	SetFrontProcess_FUNC,
698
	SetEventLoopTimerNextFireTime_FUNC,
699
	SetFrontProcessWithOptions_FUNC,
699
	SetEventParameter__IIII_3C_FUNC,
700
	SetGWorld_FUNC,
700
	SetEventParameter__IIII_3I_FUNC,
701
	SetItemMark_FUNC,
701
	SetEventParameter__IIII_3S_FUNC,
702
	SetKeyboardFocus_FUNC,
702
	SetFontInfoForSelection_FUNC,
703
	SetMenuCommandMark_FUNC,
703
	SetFrontProcess_FUNC,
704
	SetMenuFont_FUNC,
704
	SetFrontProcessWithOptions_FUNC,
705
	SetMenuItemCommandKey_FUNC,
705
	SetGWorld_FUNC,
706
	SetMenuItemHierarchicalMenu_FUNC,
706
	SetItemMark_FUNC,
707
	SetMenuItemIconHandle_FUNC,
707
	SetKeyboardFocus_FUNC,
708
	SetMenuItemKeyGlyph_FUNC,
708
	SetMenuCommandMark_FUNC,
709
	SetMenuItemModifiers_FUNC,
709
	SetMenuFont_FUNC,
710
	SetMenuItemRefCon_FUNC,
710
	SetMenuItemCommandKey_FUNC,
711
	SetMenuItemTextWithCFString_FUNC,
711
	SetMenuItemHierarchicalMenu_FUNC,
712
	SetMenuTitleWithCFString_FUNC,
712
	SetMenuItemIconHandle_FUNC,
713
	SetOrigin_FUNC,
713
	SetMenuItemKeyGlyph_FUNC,
714
	SetPort_FUNC,
714
	SetMenuItemModifiers_FUNC,
715
	SetPortBounds_FUNC,
715
	SetMenuItemRefCon_FUNC,
716
	SetPortWindowPort_FUNC,
716
	SetMenuItemTextWithCFString_FUNC,
717
	SetPt_FUNC,
717
	SetMenuTitleWithCFString_FUNC,
718
	SetRect_FUNC,
718
	SetOrigin_FUNC,
719
	SetRectRgn_FUNC,
719
	SetPort_FUNC,
720
	SetRootMenu_FUNC,
720
	SetPortBounds_FUNC,
721
	SetThemeBackground_FUNC,
721
	SetPortWindowPort_FUNC,
722
	SetThemeCursor_FUNC,
722
	SetPt_FUNC,
723
	SetThemeDrawingState_FUNC,
723
	SetRect_FUNC,
724
	SetThemeTextColor_FUNC,
724
	SetRectRgn_FUNC,
725
	SetThemeWindowBackground_FUNC,
725
	SetRootMenu_FUNC,
726
	SetUpControlBackground_FUNC,
726
	SetThemeBackground_FUNC,
727
	SetWRefCon_FUNC,
727
	SetThemeCursor_FUNC,
728
	SetWindowActivationScope_FUNC,
728
	SetThemeDrawingState_FUNC,
729
	SetWindowBounds_FUNC,
729
	SetThemeTextColor_FUNC,
730
	SetWindowDefaultButton_FUNC,
730
	SetThemeWindowBackground_FUNC,
731
	SetWindowGroup_FUNC,
731
	SetUpControlBackground_FUNC,
732
	SetWindowGroupOwner_FUNC,
732
	SetWRefCon_FUNC,
733
	SetWindowGroupParent_FUNC,
733
	SetWindowActivationScope_FUNC,
734
	SetWindowModality_FUNC,
734
	SetWindowBounds_FUNC,
735
	SetWindowResizeLimits_FUNC,
735
	SetWindowDefaultButton_FUNC,
736
	SetWindowTitleWithCFString_FUNC,
736
	SetWindowGroup_FUNC,
737
	ShowWindow_FUNC,
737
	SetWindowGroupOwner_FUNC,
738
	SizeControl_FUNC,
738
	SetWindowGroupParent_FUNC,
739
	SizeWindow_FUNC,
739
	SetWindowModality_FUNC,
740
	StillDown_FUNC,
740
	SetWindowResizeLimits_FUNC,
741
	SyncCGContextOriginWithPort_FUNC,
741
	SetWindowTitleWithCFString_FUNC,
742
	SysBeep_FUNC,
742
	ShowWindow_FUNC,
743
	TXNActivate_FUNC,
743
	SizeControl_FUNC,
744
	TXNAdjustCursor_FUNC,
744
	SizeWindow_FUNC,
745
	TXNClick_FUNC,
745
	StillDown_FUNC,
746
	TXNCopy_FUNC,
746
	SyncCGContextOriginWithPort_FUNC,
747
	TXNCut_FUNC,
747
	SysBeep_FUNC,
748
	TXNDataSize_FUNC,
748
	TXNActivate_FUNC,
749
	TXNDeleteObject_FUNC,
749
	TXNAdjustCursor_FUNC,
750
	TXNDraw_FUNC,
750
	TXNClick_FUNC,
751
	TXNEchoMode_FUNC,
751
	TXNCopy_FUNC,
752
	TXNFocus_FUNC,
752
	TXNCut_FUNC,
753
	TXNGetData_FUNC,
753
	TXNDataSize_FUNC,
754
	TXNGetLineCount_FUNC,
754
	TXNDeleteObject_FUNC,
755
	TXNGetLineMetrics_FUNC,
755
	TXNDraw_FUNC,
756
	TXNGetRectBounds_FUNC,
756
	TXNEchoMode_FUNC,
757
	TXNGetSelection_FUNC,
757
	TXNFocus_FUNC,
758
	TXNGetTXNObjectControls_FUNC,
758
	TXNGetData_FUNC,
759
	TXNGetViewRect_FUNC,
759
	TXNGetLineCount_FUNC,
760
	TXNInitTextension_FUNC,
760
	TXNGetLineMetrics_FUNC,
761
	TXNNewObject_FUNC,
761
	TXNGetRectBounds_FUNC,
762
	TXNOffsetToPoint_FUNC,
762
	TXNGetSelection_FUNC,
763
	TXNPaste_FUNC,
763
	TXNGetTXNObjectControls_FUNC,
764
	TXNPointToOffset_FUNC,
764
	TXNGetViewRect_FUNC,
765
	TXNSelectAll_FUNC,
765
	TXNInitTextension_FUNC,
766
	TXNSetBackground_FUNC,
766
	TXNNewObject_FUNC,
767
	TXNSetData_FUNC,
767
	TXNOffsetToPoint_FUNC,
768
	TXNSetFrameBounds_FUNC,
768
	TXNPaste_FUNC,
769
	TXNSetRectBounds_FUNC,
769
	TXNPointToOffset_FUNC,
770
	TXNSetSelection_FUNC,
770
	TXNSelectAll_FUNC,
771
	TXNSetTXNObjectControls_FUNC,
771
	TXNSetBackground_FUNC,
772
	TXNSetTypeAttributes_FUNC,
772
	TXNSetData_FUNC,
773
	TXNShowSelection_FUNC,
773
	TXNSetFrameBounds_FUNC,
774
	TestControl_FUNC,
774
	TXNSetRectBounds_FUNC,
775
	TextFace_FUNC,
775
	TXNSetSelection_FUNC,
776
	TextFont_FUNC,
776
	TXNSetTXNObjectControls_FUNC,
777
	TextMode_FUNC,
777
	TXNSetTypeAttributes_FUNC,
778
	TextSize_FUNC,
778
	TXNShowSelection_FUNC,
779
	TextWidth_FUNC,
779
	TestControl_FUNC,
780
	TrackDrag_FUNC,
780
	TextFace_FUNC,
781
	TrackMouseLocationWithOptions_FUNC,
781
	TextFont_FUNC,
782
	UnionRect_FUNC,
782
	TextMode_FUNC,
783
	UnionRgn_FUNC,
783
	TextSize_FUNC,
784
	UnlockPortBits_FUNC,
784
	TextWidth_FUNC,
785
	UpdateControls_FUNC,
785
	TrackDrag_FUNC,
786
	UpdateDataBrowserItems_FUNC,
786
	TrackMouseLocationWithOptions_FUNC,
787
	UpgradeScriptInfoToTextEncoding_FUNC,
787
	UnionRect_FUNC,
788
	WaitMouseMoved_FUNC,
788
	UnionRgn_FUNC,
789
	X2Fix_FUNC,
789
	UnlockPortBits_FUNC,
790
	ZoomWindowIdeal_FUNC,
790
	UpdateControls_FUNC,
791
	kHIViewWindowContentID_FUNC,
791
	UpdateDataBrowserItems_FUNC,
792
	kPMDocumentFormatPDF_FUNC,
792
	UpgradeScriptInfoToTextEncoding_FUNC,
793
	kPMGraphicsContextCoreGraphics_FUNC,
793
	WaitMouseMoved_FUNC,
794
	memcpy__III_FUNC,
794
	X2Fix_FUNC,
795
	memcpy__ILorg_eclipse_swt_internal_carbon_ATSUTab_2I_FUNC,
795
	ZoomWindowIdeal_FUNC,
796
	memcpy__ILorg_eclipse_swt_internal_carbon_BitMap_2I_FUNC,
796
	kHIViewWindowContentID_FUNC,
797
	memcpy__ILorg_eclipse_swt_internal_carbon_Cursor_2I_FUNC,
797
	kPMDocumentFormatPDF_FUNC,
798
	memcpy__ILorg_eclipse_swt_internal_carbon_EventRecord_2I_FUNC,
798
	kPMGraphicsContextCoreGraphics_FUNC,
799
	memcpy__ILorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2I_FUNC,
799
	memcpy__III_FUNC,
800
	memcpy__ILorg_eclipse_swt_internal_carbon_HMHelpContentRec_2I_FUNC,
800
	memcpy__ILorg_eclipse_swt_internal_carbon_ATSUTab_2I_FUNC,
801
	memcpy__ILorg_eclipse_swt_internal_carbon_PixMap_2I_FUNC,
801
	memcpy__ILorg_eclipse_swt_internal_carbon_BitMap_2I_FUNC,
802
	memcpy__ILorg_eclipse_swt_internal_carbon_RGBColor_2I_FUNC,
802
	memcpy__ILorg_eclipse_swt_internal_carbon_Cursor_2I_FUNC,
803
	memcpy__ILorg_eclipse_swt_internal_carbon_Rect_2I_FUNC,
803
	memcpy__ILorg_eclipse_swt_internal_carbon_EventRecord_2I_FUNC,
804
	memcpy__I_3BI_FUNC,
804
	memcpy__ILorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2I_FUNC,
805
	memcpy__I_3CI_FUNC,
805
	memcpy__ILorg_eclipse_swt_internal_carbon_HMHelpContentRec_2I_FUNC,
806
	memcpy__I_3II_FUNC,
806
	memcpy__ILorg_eclipse_swt_internal_carbon_PixMap_2I_FUNC,
807
	memcpy__Lorg_eclipse_swt_internal_carbon_ATSLayoutRecord_2II_FUNC,
807
	memcpy__ILorg_eclipse_swt_internal_carbon_RGBColor_2I_FUNC,
808
	memcpy__Lorg_eclipse_swt_internal_carbon_ATSTrapezoid_2II_FUNC,
808
	memcpy__ILorg_eclipse_swt_internal_carbon_Rect_2I_FUNC,
809
	memcpy__Lorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2II_FUNC,
809
	memcpy__I_3BI_FUNC,
810
	memcpy__Lorg_eclipse_swt_internal_carbon_GDevice_2II_FUNC,
810
	memcpy__I_3CI_FUNC,
811
	memcpy__Lorg_eclipse_swt_internal_carbon_HMHelpContentRec_2II_FUNC,
811
	memcpy__I_3II_FUNC,
812
	memcpy__Lorg_eclipse_swt_internal_carbon_PixMap_2II_FUNC,
812
	memcpy__Lorg_eclipse_swt_internal_carbon_ATSLayoutRecord_2II_FUNC,
813
	memcpy__Lorg_eclipse_swt_internal_carbon_Rect_2II_FUNC,
813
	memcpy__Lorg_eclipse_swt_internal_carbon_ATSTrapezoid_2II_FUNC,
814
	memcpy___3BII_FUNC,
814
	memcpy__Lorg_eclipse_swt_internal_carbon_FontSelectionQDStyle_2II_FUNC,
815
	memcpy___3B_3CI_FUNC,
815
	memcpy__Lorg_eclipse_swt_internal_carbon_GDevice_2II_FUNC,
816
	memcpy___3CII_FUNC,
816
	memcpy__Lorg_eclipse_swt_internal_carbon_HMHelpContentRec_2II_FUNC,
817
	memcpy___3C_3BI_FUNC,
817
	memcpy__Lorg_eclipse_swt_internal_carbon_PixMap_2II_FUNC,
818
	memcpy___3FII_FUNC,
818
	memcpy__Lorg_eclipse_swt_internal_carbon_PromiseHFSFlavor_2_3BI_FUNC,
819
	memcpy___3III_FUNC,
819
	memcpy__Lorg_eclipse_swt_internal_carbon_Rect_2II_FUNC,
820
	memset_FUNC,
820
	memcpy___3BII_FUNC,
821
} OS_FUNCS;
821
	memcpy___3B_3CI_FUNC,
822
	memcpy___3CII_FUNC,
823
	memcpy___3C_3BI_FUNC,
824
	memcpy___3FII_FUNC,
825
	memcpy___3III_FUNC,
826
	memset_FUNC,
827
} OS_FUNCS;
(-)org.eclipse.swt_before/Eclipse SWT PI/carbon/library/os_structs.c (-1988 / +2019 lines)
Lines 1-1988 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
14
15
#ifndef NO_AEDesc
15
#ifndef NO_AEDesc
16
typedef struct AEDesc_FID_CACHE {
16
typedef struct AEDesc_FID_CACHE {
17
	int cached;
17
	int cached;
18
	jclass clazz;
18
	jclass clazz;
19
	jfieldID descriptorType, dataHandle;
19
	jfieldID descriptorType, dataHandle;
20
} AEDesc_FID_CACHE;
20
} AEDesc_FID_CACHE;
21
21
22
AEDesc_FID_CACHE AEDescFc;
22
AEDesc_FID_CACHE AEDescFc;
23
23
24
void cacheAEDescFields(JNIEnv *env, jobject lpObject)
24
void cacheAEDescFields(JNIEnv *env, jobject lpObject)
25
{
25
{
26
	if (AEDescFc.cached) return;
26
	if (AEDescFc.cached) return;
27
	AEDescFc.clazz = (*env)->GetObjectClass(env, lpObject);
27
	AEDescFc.clazz = (*env)->GetObjectClass(env, lpObject);
28
	AEDescFc.descriptorType = (*env)->GetFieldID(env, AEDescFc.clazz, "descriptorType", "I");
28
	AEDescFc.descriptorType = (*env)->GetFieldID(env, AEDescFc.clazz, "descriptorType", "I");
29
	AEDescFc.dataHandle = (*env)->GetFieldID(env, AEDescFc.clazz, "dataHandle", "I");
29
	AEDescFc.dataHandle = (*env)->GetFieldID(env, AEDescFc.clazz, "dataHandle", "I");
30
	AEDescFc.cached = 1;
30
	AEDescFc.cached = 1;
31
}
31
}
32
32
33
AEDesc *getAEDescFields(JNIEnv *env, jobject lpObject, AEDesc *lpStruct)
33
AEDesc *getAEDescFields(JNIEnv *env, jobject lpObject, AEDesc *lpStruct)
34
{
34
{
35
	if (!AEDescFc.cached) cacheAEDescFields(env, lpObject);
35
	if (!AEDescFc.cached) cacheAEDescFields(env, lpObject);
36
	lpStruct->descriptorType = (DescType)(*env)->GetIntField(env, lpObject, AEDescFc.descriptorType);
36
	lpStruct->descriptorType = (DescType)(*env)->GetIntField(env, lpObject, AEDescFc.descriptorType);
37
	lpStruct->dataHandle = (AEDataStorage)(*env)->GetIntField(env, lpObject, AEDescFc.dataHandle);
37
	lpStruct->dataHandle = (AEDataStorage)(*env)->GetIntField(env, lpObject, AEDescFc.dataHandle);
38
	return lpStruct;
38
	return lpStruct;
39
}
39
}
40
40
41
void setAEDescFields(JNIEnv *env, jobject lpObject, AEDesc *lpStruct)
41
void setAEDescFields(JNIEnv *env, jobject lpObject, AEDesc *lpStruct)
42
{
42
{
43
	if (!AEDescFc.cached) cacheAEDescFields(env, lpObject);
43
	if (!AEDescFc.cached) cacheAEDescFields(env, lpObject);
44
	(*env)->SetIntField(env, lpObject, AEDescFc.descriptorType, (jint)lpStruct->descriptorType);
44
	(*env)->SetIntField(env, lpObject, AEDescFc.descriptorType, (jint)lpStruct->descriptorType);
45
	(*env)->SetIntField(env, lpObject, AEDescFc.dataHandle, (jint)lpStruct->dataHandle);
45
	(*env)->SetIntField(env, lpObject, AEDescFc.dataHandle, (jint)lpStruct->dataHandle);
46
}
46
}
47
#endif
47
#endif
48
48
49
#ifndef NO_ATSLayoutRecord
49
#ifndef NO_ATSLayoutRecord
50
typedef struct ATSLayoutRecord_FID_CACHE {
50
typedef struct ATSLayoutRecord_FID_CACHE {
51
	int cached;
51
	int cached;
52
	jclass clazz;
52
	jclass clazz;
53
	jfieldID glyphID, flags, originalOffset, realPos;
53
	jfieldID glyphID, flags, originalOffset, realPos;
54
} ATSLayoutRecord_FID_CACHE;
54
} ATSLayoutRecord_FID_CACHE;
55
55
56
ATSLayoutRecord_FID_CACHE ATSLayoutRecordFc;
56
ATSLayoutRecord_FID_CACHE ATSLayoutRecordFc;
57
57
58
void cacheATSLayoutRecordFields(JNIEnv *env, jobject lpObject)
58
void cacheATSLayoutRecordFields(JNIEnv *env, jobject lpObject)
59
{
59
{
60
	if (ATSLayoutRecordFc.cached) return;
60
	if (ATSLayoutRecordFc.cached) return;
61
	ATSLayoutRecordFc.clazz = (*env)->GetObjectClass(env, lpObject);
61
	ATSLayoutRecordFc.clazz = (*env)->GetObjectClass(env, lpObject);
62
	ATSLayoutRecordFc.glyphID = (*env)->GetFieldID(env, ATSLayoutRecordFc.clazz, "glyphID", "S");
62
	ATSLayoutRecordFc.glyphID = (*env)->GetFieldID(env, ATSLayoutRecordFc.clazz, "glyphID", "S");
63
	ATSLayoutRecordFc.flags = (*env)->GetFieldID(env, ATSLayoutRecordFc.clazz, "flags", "I");
63
	ATSLayoutRecordFc.flags = (*env)->GetFieldID(env, ATSLayoutRecordFc.clazz, "flags", "I");
64
	ATSLayoutRecordFc.originalOffset = (*env)->GetFieldID(env, ATSLayoutRecordFc.clazz, "originalOffset", "I");
64
	ATSLayoutRecordFc.originalOffset = (*env)->GetFieldID(env, ATSLayoutRecordFc.clazz, "originalOffset", "I");
65
	ATSLayoutRecordFc.realPos = (*env)->GetFieldID(env, ATSLayoutRecordFc.clazz, "realPos", "I");
65
	ATSLayoutRecordFc.realPos = (*env)->GetFieldID(env, ATSLayoutRecordFc.clazz, "realPos", "I");
66
	ATSLayoutRecordFc.cached = 1;
66
	ATSLayoutRecordFc.cached = 1;
67
}
67
}
68
68
69
ATSLayoutRecord *getATSLayoutRecordFields(JNIEnv *env, jobject lpObject, ATSLayoutRecord *lpStruct)
69
ATSLayoutRecord *getATSLayoutRecordFields(JNIEnv *env, jobject lpObject, ATSLayoutRecord *lpStruct)
70
{
70
{
71
	if (!ATSLayoutRecordFc.cached) cacheATSLayoutRecordFields(env, lpObject);
71
	if (!ATSLayoutRecordFc.cached) cacheATSLayoutRecordFields(env, lpObject);
72
	lpStruct->glyphID = (*env)->GetShortField(env, lpObject, ATSLayoutRecordFc.glyphID);
72
	lpStruct->glyphID = (*env)->GetShortField(env, lpObject, ATSLayoutRecordFc.glyphID);
73
	lpStruct->flags = (*env)->GetIntField(env, lpObject, ATSLayoutRecordFc.flags);
73
	lpStruct->flags = (*env)->GetIntField(env, lpObject, ATSLayoutRecordFc.flags);
74
	lpStruct->originalOffset = (*env)->GetIntField(env, lpObject, ATSLayoutRecordFc.originalOffset);
74
	lpStruct->originalOffset = (*env)->GetIntField(env, lpObject, ATSLayoutRecordFc.originalOffset);
75
	lpStruct->realPos = (*env)->GetIntField(env, lpObject, ATSLayoutRecordFc.realPos);
75
	lpStruct->realPos = (*env)->GetIntField(env, lpObject, ATSLayoutRecordFc.realPos);
76
	return lpStruct;
76
	return lpStruct;
77
}
77
}
78
78
79
void setATSLayoutRecordFields(JNIEnv *env, jobject lpObject, ATSLayoutRecord *lpStruct)
79
void setATSLayoutRecordFields(JNIEnv *env, jobject lpObject, ATSLayoutRecord *lpStruct)
80
{
80
{
81
	if (!ATSLayoutRecordFc.cached) cacheATSLayoutRecordFields(env, lpObject);
81
	if (!ATSLayoutRecordFc.cached) cacheATSLayoutRecordFields(env, lpObject);
82
	(*env)->SetShortField(env, lpObject, ATSLayoutRecordFc.glyphID, (jshort)lpStruct->glyphID);
82
	(*env)->SetShortField(env, lpObject, ATSLayoutRecordFc.glyphID, (jshort)lpStruct->glyphID);
83
	(*env)->SetIntField(env, lpObject, ATSLayoutRecordFc.flags, (jint)lpStruct->flags);
83
	(*env)->SetIntField(env, lpObject, ATSLayoutRecordFc.flags, (jint)lpStruct->flags);
84
	(*env)->SetIntField(env, lpObject, ATSLayoutRecordFc.originalOffset, (jint)lpStruct->originalOffset);
84
	(*env)->SetIntField(env, lpObject, ATSLayoutRecordFc.originalOffset, (jint)lpStruct->originalOffset);
85
	(*env)->SetIntField(env, lpObject, ATSLayoutRecordFc.realPos, (jint)lpStruct->realPos);
85
	(*env)->SetIntField(env, lpObject, ATSLayoutRecordFc.realPos, (jint)lpStruct->realPos);
86
}
86
}
87
#endif
87
#endif
88
88
89
#ifndef NO_ATSTrapezoid
89
#ifndef NO_ATSTrapezoid
90
typedef struct ATSTrapezoid_FID_CACHE {
90
typedef struct ATSTrapezoid_FID_CACHE {
91
	int cached;
91
	int cached;
92
	jclass clazz;
92
	jclass clazz;
93
	jfieldID upperLeft_x, upperLeft_y, upperRight_x, upperRight_y, lowerRight_x, lowerRight_y, lowerLeft_x, lowerLeft_y;
93
	jfieldID upperLeft_x, upperLeft_y, upperRight_x, upperRight_y, lowerRight_x, lowerRight_y, lowerLeft_x, lowerLeft_y;
94
} ATSTrapezoid_FID_CACHE;
94
} ATSTrapezoid_FID_CACHE;
95
95
96
ATSTrapezoid_FID_CACHE ATSTrapezoidFc;
96
ATSTrapezoid_FID_CACHE ATSTrapezoidFc;
97
97
98
void cacheATSTrapezoidFields(JNIEnv *env, jobject lpObject)
98
void cacheATSTrapezoidFields(JNIEnv *env, jobject lpObject)
99
{
99
{
100
	if (ATSTrapezoidFc.cached) return;
100
	if (ATSTrapezoidFc.cached) return;
101
	ATSTrapezoidFc.clazz = (*env)->GetObjectClass(env, lpObject);
101
	ATSTrapezoidFc.clazz = (*env)->GetObjectClass(env, lpObject);
102
	ATSTrapezoidFc.upperLeft_x = (*env)->GetFieldID(env, ATSTrapezoidFc.clazz, "upperLeft_x", "I");
102
	ATSTrapezoidFc.upperLeft_x = (*env)->GetFieldID(env, ATSTrapezoidFc.clazz, "upperLeft_x", "I");
103
	ATSTrapezoidFc.upperLeft_y = (*env)->GetFieldID(env, ATSTrapezoidFc.clazz, "upperLeft_y", "I");
103
	ATSTrapezoidFc.upperLeft_y = (*env)->GetFieldID(env, ATSTrapezoidFc.clazz, "upperLeft_y", "I");
104
	ATSTrapezoidFc.upperRight_x = (*env)->GetFieldID(env, ATSTrapezoidFc.clazz, "upperRight_x", "I");
104
	ATSTrapezoidFc.upperRight_x = (*env)->GetFieldID(env, ATSTrapezoidFc.clazz, "upperRight_x", "I");
105
	ATSTrapezoidFc.upperRight_y = (*env)->GetFieldID(env, ATSTrapezoidFc.clazz, "upperRight_y", "I");
105
	ATSTrapezoidFc.upperRight_y = (*env)->GetFieldID(env, ATSTrapezoidFc.clazz, "upperRight_y", "I");
106
	ATSTrapezoidFc.lowerRight_x = (*env)->GetFieldID(env, ATSTrapezoidFc.clazz, "lowerRight_x", "I");
106
	ATSTrapezoidFc.lowerRight_x = (*env)->GetFieldID(env, ATSTrapezoidFc.clazz, "lowerRight_x", "I");
107
	ATSTrapezoidFc.lowerRight_y = (*env)->GetFieldID(env, ATSTrapezoidFc.clazz, "lowerRight_y", "I");
107
	ATSTrapezoidFc.lowerRight_y = (*env)->GetFieldID(env, ATSTrapezoidFc.clazz, "lowerRight_y", "I");
108
	ATSTrapezoidFc.lowerLeft_x = (*env)->GetFieldID(env, ATSTrapezoidFc.clazz, "lowerLeft_x", "I");
108
	ATSTrapezoidFc.lowerLeft_x = (*env)->GetFieldID(env, ATSTrapezoidFc.clazz, "lowerLeft_x", "I");
109
	ATSTrapezoidFc.lowerLeft_y = (*env)->GetFieldID(env, ATSTrapezoidFc.clazz, "lowerLeft_y", "I");
109
	ATSTrapezoidFc.lowerLeft_y = (*env)->GetFieldID(env, ATSTrapezoidFc.clazz, "lowerLeft_y", "I");
110
	ATSTrapezoidFc.cached = 1;
110
	ATSTrapezoidFc.cached = 1;
111
}
111
}
112
112
113
ATSTrapezoid *getATSTrapezoidFields(JNIEnv *env, jobject lpObject, ATSTrapezoid *lpStruct)
113
ATSTrapezoid *getATSTrapezoidFields(JNIEnv *env, jobject lpObject, ATSTrapezoid *lpStruct)
114
{
114
{
115
	if (!ATSTrapezoidFc.cached) cacheATSTrapezoidFields(env, lpObject);
115
	if (!ATSTrapezoidFc.cached) cacheATSTrapezoidFields(env, lpObject);
116
	lpStruct->upperLeft.x = (*env)->GetIntField(env, lpObject, ATSTrapezoidFc.upperLeft_x);
116
	lpStruct->upperLeft.x = (*env)->GetIntField(env, lpObject, ATSTrapezoidFc.upperLeft_x);
117
	lpStruct->upperLeft.y = (*env)->GetIntField(env, lpObject, ATSTrapezoidFc.upperLeft_y);
117
	lpStruct->upperLeft.y = (*env)->GetIntField(env, lpObject, ATSTrapezoidFc.upperLeft_y);
118
	lpStruct->upperRight.x = (*env)->GetIntField(env, lpObject, ATSTrapezoidFc.upperRight_x);
118
	lpStruct->upperRight.x = (*env)->GetIntField(env, lpObject, ATSTrapezoidFc.upperRight_x);
119
	lpStruct->upperRight.y = (*env)->GetIntField(env, lpObject, ATSTrapezoidFc.upperRight_y);
119
	lpStruct->upperRight.y = (*env)->GetIntField(env, lpObject, ATSTrapezoidFc.upperRight_y);
120
	lpStruct->lowerRight.x = (*env)->GetIntField(env, lpObject, ATSTrapezoidFc.lowerRight_x);
120
	lpStruct->lowerRight.x = (*env)->GetIntField(env, lpObject, ATSTrapezoidFc.lowerRight_x);
121
	lpStruct->lowerRight.y = (*env)->GetIntField(env, lpObject, ATSTrapezoidFc.lowerRight_y);
121
	lpStruct->lowerRight.y = (*env)->GetIntField(env, lpObject, ATSTrapezoidFc.lowerRight_y);
122
	lpStruct->lowerLeft.x = (*env)->GetIntField(env, lpObject, ATSTrapezoidFc.lowerLeft_x);
122
	lpStruct->lowerLeft.x = (*env)->GetIntField(env, lpObject, ATSTrapezoidFc.lowerLeft_x);
123
	lpStruct->lowerLeft.y = (*env)->GetIntField(env, lpObject, ATSTrapezoidFc.lowerLeft_y);
123
	lpStruct->lowerLeft.y = (*env)->GetIntField(env, lpObject, ATSTrapezoidFc.lowerLeft_y);
124
	return lpStruct;
124
	return lpStruct;
125
}
125
}
126
126
127
void setATSTrapezoidFields(JNIEnv *env, jobject lpObject, ATSTrapezoid *lpStruct)
127
void setATSTrapezoidFields(JNIEnv *env, jobject lpObject, ATSTrapezoid *lpStruct)
128
{
128
{
129
	if (!ATSTrapezoidFc.cached) cacheATSTrapezoidFields(env, lpObject);
129
	if (!ATSTrapezoidFc.cached) cacheATSTrapezoidFields(env, lpObject);
130
	(*env)->SetIntField(env, lpObject, ATSTrapezoidFc.upperLeft_x, (jint)lpStruct->upperLeft.x);
130
	(*env)->SetIntField(env, lpObject, ATSTrapezoidFc.upperLeft_x, (jint)lpStruct->upperLeft.x);
131
	(*env)->SetIntField(env, lpObject, ATSTrapezoidFc.upperLeft_y, (jint)lpStruct->upperLeft.y);
131
	(*env)->SetIntField(env, lpObject, ATSTrapezoidFc.upperLeft_y, (jint)lpStruct->upperLeft.y);
132
	(*env)->SetIntField(env, lpObject, ATSTrapezoidFc.upperRight_x, (jint)lpStruct->upperRight.x);
132
	(*env)->SetIntField(env, lpObject, ATSTrapezoidFc.upperRight_x, (jint)lpStruct->upperRight.x);
133
	(*env)->SetIntField(env, lpObject, ATSTrapezoidFc.upperRight_y, (jint)lpStruct->upperRight.y);
133
	(*env)->SetIntField(env, lpObject, ATSTrapezoidFc.upperRight_y, (jint)lpStruct->upperRight.y);
134
	(*env)->SetIntField(env, lpObject, ATSTrapezoidFc.lowerRight_x, (jint)lpStruct->lowerRight.x);
134
	(*env)->SetIntField(env, lpObject, ATSTrapezoidFc.lowerRight_x, (jint)lpStruct->lowerRight.x);
135
	(*env)->SetIntField(env, lpObject, ATSTrapezoidFc.lowerRight_y, (jint)lpStruct->lowerRight.y);
135
	(*env)->SetIntField(env, lpObject, ATSTrapezoidFc.lowerRight_y, (jint)lpStruct->lowerRight.y);
136
	(*env)->SetIntField(env, lpObject, ATSTrapezoidFc.lowerLeft_x, (jint)lpStruct->lowerLeft.x);
136
	(*env)->SetIntField(env, lpObject, ATSTrapezoidFc.lowerLeft_x, (jint)lpStruct->lowerLeft.x);
137
	(*env)->SetIntField(env, lpObject, ATSTrapezoidFc.lowerLeft_y, (jint)lpStruct->lowerLeft.y);
137
	(*env)->SetIntField(env, lpObject, ATSTrapezoidFc.lowerLeft_y, (jint)lpStruct->lowerLeft.y);
138
}
138
}
139
#endif
139
#endif
140
140
141
#ifndef NO_ATSUCaret
141
#ifndef NO_ATSUCaret
142
typedef struct ATSUCaret_FID_CACHE {
142
typedef struct ATSUCaret_FID_CACHE {
143
	int cached;
143
	int cached;
144
	jclass clazz;
144
	jclass clazz;
145
	jfieldID fX, fY, fDeltaX, fDeltaY;
145
	jfieldID fX, fY, fDeltaX, fDeltaY;
146
} ATSUCaret_FID_CACHE;
146
} ATSUCaret_FID_CACHE;
147
147
148
ATSUCaret_FID_CACHE ATSUCaretFc;
148
ATSUCaret_FID_CACHE ATSUCaretFc;
149
149
150
void cacheATSUCaretFields(JNIEnv *env, jobject lpObject)
150
void cacheATSUCaretFields(JNIEnv *env, jobject lpObject)
151
{
151
{
152
	if (ATSUCaretFc.cached) return;
152
	if (ATSUCaretFc.cached) return;
153
	ATSUCaretFc.clazz = (*env)->GetObjectClass(env, lpObject);
153
	ATSUCaretFc.clazz = (*env)->GetObjectClass(env, lpObject);
154
	ATSUCaretFc.fX = (*env)->GetFieldID(env, ATSUCaretFc.clazz, "fX", "I");
154
	ATSUCaretFc.fX = (*env)->GetFieldID(env, ATSUCaretFc.clazz, "fX", "I");
155
	ATSUCaretFc.fY = (*env)->GetFieldID(env, ATSUCaretFc.clazz, "fY", "I");
155
	ATSUCaretFc.fY = (*env)->GetFieldID(env, ATSUCaretFc.clazz, "fY", "I");
156
	ATSUCaretFc.fDeltaX = (*env)->GetFieldID(env, ATSUCaretFc.clazz, "fDeltaX", "I");
156
	ATSUCaretFc.fDeltaX = (*env)->GetFieldID(env, ATSUCaretFc.clazz, "fDeltaX", "I");
157
	ATSUCaretFc.fDeltaY = (*env)->GetFieldID(env, ATSUCaretFc.clazz, "fDeltaY", "I");
157
	ATSUCaretFc.fDeltaY = (*env)->GetFieldID(env, ATSUCaretFc.clazz, "fDeltaY", "I");
158
	ATSUCaretFc.cached = 1;
158
	ATSUCaretFc.cached = 1;
159
}
159
}
160
160
161
ATSUCaret *getATSUCaretFields(JNIEnv *env, jobject lpObject, ATSUCaret *lpStruct)
161
ATSUCaret *getATSUCaretFields(JNIEnv *env, jobject lpObject, ATSUCaret *lpStruct)
162
{
162
{
163
	if (!ATSUCaretFc.cached) cacheATSUCaretFields(env, lpObject);
163
	if (!ATSUCaretFc.cached) cacheATSUCaretFields(env, lpObject);
164
	lpStruct->fX = (*env)->GetIntField(env, lpObject, ATSUCaretFc.fX);
164
	lpStruct->fX = (*env)->GetIntField(env, lpObject, ATSUCaretFc.fX);
165
	lpStruct->fY = (*env)->GetIntField(env, lpObject, ATSUCaretFc.fY);
165
	lpStruct->fY = (*env)->GetIntField(env, lpObject, ATSUCaretFc.fY);
166
	lpStruct->fDeltaX = (*env)->GetIntField(env, lpObject, ATSUCaretFc.fDeltaX);
166
	lpStruct->fDeltaX = (*env)->GetIntField(env, lpObject, ATSUCaretFc.fDeltaX);
167
	lpStruct->fDeltaY = (*env)->GetIntField(env, lpObject, ATSUCaretFc.fDeltaY);
167
	lpStruct->fDeltaY = (*env)->GetIntField(env, lpObject, ATSUCaretFc.fDeltaY);
168
	return lpStruct;
168
	return lpStruct;
169
}
169
}
170
170
171
void setATSUCaretFields(JNIEnv *env, jobject lpObject, ATSUCaret *lpStruct)
171
void setATSUCaretFields(JNIEnv *env, jobject lpObject, ATSUCaret *lpStruct)
172
{
172
{
173
	if (!ATSUCaretFc.cached) cacheATSUCaretFields(env, lpObject);
173
	if (!ATSUCaretFc.cached) cacheATSUCaretFields(env, lpObject);
174
	(*env)->SetIntField(env, lpObject, ATSUCaretFc.fX, (jint)lpStruct->fX);
174
	(*env)->SetIntField(env, lpObject, ATSUCaretFc.fX, (jint)lpStruct->fX);
175
	(*env)->SetIntField(env, lpObject, ATSUCaretFc.fY, (jint)lpStruct->fY);
175
	(*env)->SetIntField(env, lpObject, ATSUCaretFc.fY, (jint)lpStruct->fY);
176
	(*env)->SetIntField(env, lpObject, ATSUCaretFc.fDeltaX, (jint)lpStruct->fDeltaX);
176
	(*env)->SetIntField(env, lpObject, ATSUCaretFc.fDeltaX, (jint)lpStruct->fDeltaX);
177
	(*env)->SetIntField(env, lpObject, ATSUCaretFc.fDeltaY, (jint)lpStruct->fDeltaY);
177
	(*env)->SetIntField(env, lpObject, ATSUCaretFc.fDeltaY, (jint)lpStruct->fDeltaY);
178
}
178
}
179
#endif
179
#endif
180
180
181
#ifndef NO_ATSUTab
181
#ifndef NO_ATSUTab
182
typedef struct ATSUTab_FID_CACHE {
182
typedef struct ATSUTab_FID_CACHE {
183
	int cached;
183
	int cached;
184
	jclass clazz;
184
	jclass clazz;
185
	jfieldID tabPosition, tabType;
185
	jfieldID tabPosition, tabType;
186
} ATSUTab_FID_CACHE;
186
} ATSUTab_FID_CACHE;
187
187
188
ATSUTab_FID_CACHE ATSUTabFc;
188
ATSUTab_FID_CACHE ATSUTabFc;
189
189
190
void cacheATSUTabFields(JNIEnv *env, jobject lpObject)
190
void cacheATSUTabFields(JNIEnv *env, jobject lpObject)
191
{
191
{
192
	if (ATSUTabFc.cached) return;
192
	if (ATSUTabFc.cached) return;
193
	ATSUTabFc.clazz = (*env)->GetObjectClass(env, lpObject);
193
	ATSUTabFc.clazz = (*env)->GetObjectClass(env, lpObject);
194
	ATSUTabFc.tabPosition = (*env)->GetFieldID(env, ATSUTabFc.clazz, "tabPosition", "I");
194
	ATSUTabFc.tabPosition = (*env)->GetFieldID(env, ATSUTabFc.clazz, "tabPosition", "I");
195
	ATSUTabFc.tabType = (*env)->GetFieldID(env, ATSUTabFc.clazz, "tabType", "S");
195
	ATSUTabFc.tabType = (*env)->GetFieldID(env, ATSUTabFc.clazz, "tabType", "S");
196
	ATSUTabFc.cached = 1;
196
	ATSUTabFc.cached = 1;
197
}
197
}
198
198
199
ATSUTab *getATSUTabFields(JNIEnv *env, jobject lpObject, ATSUTab *lpStruct)
199
ATSUTab *getATSUTabFields(JNIEnv *env, jobject lpObject, ATSUTab *lpStruct)
200
{
200
{
201
	if (!ATSUTabFc.cached) cacheATSUTabFields(env, lpObject);
201
	if (!ATSUTabFc.cached) cacheATSUTabFields(env, lpObject);
202
	lpStruct->tabPosition = (*env)->GetIntField(env, lpObject, ATSUTabFc.tabPosition);
202
	lpStruct->tabPosition = (*env)->GetIntField(env, lpObject, ATSUTabFc.tabPosition);
203
	lpStruct->tabType = (*env)->GetShortField(env, lpObject, ATSUTabFc.tabType);
203
	lpStruct->tabType = (*env)->GetShortField(env, lpObject, ATSUTabFc.tabType);
204
	return lpStruct;
204
	return lpStruct;
205
}
205
}
206
206
207
void setATSUTabFields(JNIEnv *env, jobject lpObject, ATSUTab *lpStruct)
207
void setATSUTabFields(JNIEnv *env, jobject lpObject, ATSUTab *lpStruct)
208
{
208
{
209
	if (!ATSUTabFc.cached) cacheATSUTabFields(env, lpObject);
209
	if (!ATSUTabFc.cached) cacheATSUTabFields(env, lpObject);
210
	(*env)->SetIntField(env, lpObject, ATSUTabFc.tabPosition, (jint)lpStruct->tabPosition);
210
	(*env)->SetIntField(env, lpObject, ATSUTabFc.tabPosition, (jint)lpStruct->tabPosition);
211
	(*env)->SetShortField(env, lpObject, ATSUTabFc.tabType, (jshort)lpStruct->tabType);
211
	(*env)->SetShortField(env, lpObject, ATSUTabFc.tabType, (jshort)lpStruct->tabType);
212
}
212
}
213
#endif
213
#endif
214
214
215
#ifndef NO_ATSUUnhighlightData
215
#ifndef NO_ATSUUnhighlightData
216
typedef struct ATSUUnhighlightData_FID_CACHE {
216
typedef struct ATSUUnhighlightData_FID_CACHE {
217
	int cached;
217
	int cached;
218
	jclass clazz;
218
	jclass clazz;
219
	jfieldID dataType, red, green, blue, alpha;
219
	jfieldID dataType, red, green, blue, alpha;
220
} ATSUUnhighlightData_FID_CACHE;
220
} ATSUUnhighlightData_FID_CACHE;
221
221
222
ATSUUnhighlightData_FID_CACHE ATSUUnhighlightDataFc;
222
ATSUUnhighlightData_FID_CACHE ATSUUnhighlightDataFc;
223
223
224
void cacheATSUUnhighlightDataFields(JNIEnv *env, jobject lpObject)
224
void cacheATSUUnhighlightDataFields(JNIEnv *env, jobject lpObject)
225
{
225
{
226
	if (ATSUUnhighlightDataFc.cached) return;
226
	if (ATSUUnhighlightDataFc.cached) return;
227
	ATSUUnhighlightDataFc.clazz = (*env)->GetObjectClass(env, lpObject);
227
	ATSUUnhighlightDataFc.clazz = (*env)->GetObjectClass(env, lpObject);
228
	ATSUUnhighlightDataFc.dataType = (*env)->GetFieldID(env, ATSUUnhighlightDataFc.clazz, "dataType", "I");
228
	ATSUUnhighlightDataFc.dataType = (*env)->GetFieldID(env, ATSUUnhighlightDataFc.clazz, "dataType", "I");
229
	ATSUUnhighlightDataFc.red = (*env)->GetFieldID(env, ATSUUnhighlightDataFc.clazz, "red", "F");
229
	ATSUUnhighlightDataFc.red = (*env)->GetFieldID(env, ATSUUnhighlightDataFc.clazz, "red", "F");
230
	ATSUUnhighlightDataFc.green = (*env)->GetFieldID(env, ATSUUnhighlightDataFc.clazz, "green", "F");
230
	ATSUUnhighlightDataFc.green = (*env)->GetFieldID(env, ATSUUnhighlightDataFc.clazz, "green", "F");
231
	ATSUUnhighlightDataFc.blue = (*env)->GetFieldID(env, ATSUUnhighlightDataFc.clazz, "blue", "F");
231
	ATSUUnhighlightDataFc.blue = (*env)->GetFieldID(env, ATSUUnhighlightDataFc.clazz, "blue", "F");
232
	ATSUUnhighlightDataFc.alpha = (*env)->GetFieldID(env, ATSUUnhighlightDataFc.clazz, "alpha", "F");
232
	ATSUUnhighlightDataFc.alpha = (*env)->GetFieldID(env, ATSUUnhighlightDataFc.clazz, "alpha", "F");
233
	ATSUUnhighlightDataFc.cached = 1;
233
	ATSUUnhighlightDataFc.cached = 1;
234
}
234
}
235
235
236
ATSUUnhighlightData *getATSUUnhighlightDataFields(JNIEnv *env, jobject lpObject, ATSUUnhighlightData *lpStruct)
236
ATSUUnhighlightData *getATSUUnhighlightDataFields(JNIEnv *env, jobject lpObject, ATSUUnhighlightData *lpStruct)
237
{
237
{
238
	if (!ATSUUnhighlightDataFc.cached) cacheATSUUnhighlightDataFields(env, lpObject);
238
	if (!ATSUUnhighlightDataFc.cached) cacheATSUUnhighlightDataFields(env, lpObject);
239
	lpStruct->dataType = (*env)->GetIntField(env, lpObject, ATSUUnhighlightDataFc.dataType);
239
	lpStruct->dataType = (*env)->GetIntField(env, lpObject, ATSUUnhighlightDataFc.dataType);
240
	lpStruct->unhighlightData.backgroundColor.red = (*env)->GetFloatField(env, lpObject, ATSUUnhighlightDataFc.red);
240
	lpStruct->unhighlightData.backgroundColor.red = (*env)->GetFloatField(env, lpObject, ATSUUnhighlightDataFc.red);
241
	lpStruct->unhighlightData.backgroundColor.green = (*env)->GetFloatField(env, lpObject, ATSUUnhighlightDataFc.green);
241
	lpStruct->unhighlightData.backgroundColor.green = (*env)->GetFloatField(env, lpObject, ATSUUnhighlightDataFc.green);
242
	lpStruct->unhighlightData.backgroundColor.blue = (*env)->GetFloatField(env, lpObject, ATSUUnhighlightDataFc.blue);
242
	lpStruct->unhighlightData.backgroundColor.blue = (*env)->GetFloatField(env, lpObject, ATSUUnhighlightDataFc.blue);
243
	lpStruct->unhighlightData.backgroundColor.alpha = (*env)->GetFloatField(env, lpObject, ATSUUnhighlightDataFc.alpha);
243
	lpStruct->unhighlightData.backgroundColor.alpha = (*env)->GetFloatField(env, lpObject, ATSUUnhighlightDataFc.alpha);
244
	return lpStruct;
244
	return lpStruct;
245
}
245
}
246
246
247
void setATSUUnhighlightDataFields(JNIEnv *env, jobject lpObject, ATSUUnhighlightData *lpStruct)
247
void setATSUUnhighlightDataFields(JNIEnv *env, jobject lpObject, ATSUUnhighlightData *lpStruct)
248
{
248
{
249
	if (!ATSUUnhighlightDataFc.cached) cacheATSUUnhighlightDataFields(env, lpObject);
249
	if (!ATSUUnhighlightDataFc.cached) cacheATSUUnhighlightDataFields(env, lpObject);
250
	(*env)->SetIntField(env, lpObject, ATSUUnhighlightDataFc.dataType, (jint)lpStruct->dataType);
250
	(*env)->SetIntField(env, lpObject, ATSUUnhighlightDataFc.dataType, (jint)lpStruct->dataType);
251
	(*env)->SetFloatField(env, lpObject, ATSUUnhighlightDataFc.red, (jfloat)lpStruct->unhighlightData.backgroundColor.red);
251
	(*env)->SetFloatField(env, lpObject, ATSUUnhighlightDataFc.red, (jfloat)lpStruct->unhighlightData.backgroundColor.red);
252
	(*env)->SetFloatField(env, lpObject, ATSUUnhighlightDataFc.green, (jfloat)lpStruct->unhighlightData.backgroundColor.green);
252
	(*env)->SetFloatField(env, lpObject, ATSUUnhighlightDataFc.green, (jfloat)lpStruct->unhighlightData.backgroundColor.green);
253
	(*env)->SetFloatField(env, lpObject, ATSUUnhighlightDataFc.blue, (jfloat)lpStruct->unhighlightData.backgroundColor.blue);
253
	(*env)->SetFloatField(env, lpObject, ATSUUnhighlightDataFc.blue, (jfloat)lpStruct->unhighlightData.backgroundColor.blue);
254
	(*env)->SetFloatField(env, lpObject, ATSUUnhighlightDataFc.alpha, (jfloat)lpStruct->unhighlightData.backgroundColor.alpha);
254
	(*env)->SetFloatField(env, lpObject, ATSUUnhighlightDataFc.alpha, (jfloat)lpStruct->unhighlightData.backgroundColor.alpha);
255
}
255
}
256
#endif
256
#endif
257
257
258
#ifndef NO_AlertStdCFStringAlertParamRec
258
#ifndef NO_AlertStdCFStringAlertParamRec
259
typedef struct AlertStdCFStringAlertParamRec_FID_CACHE {
259
typedef struct AlertStdCFStringAlertParamRec_FID_CACHE {
260
	int cached;
260
	int cached;
261
	jclass clazz;
261
	jclass clazz;
262
	jfieldID version, movable, helpButton, defaultText, cancelText, otherText, defaultButton, cancelButton, position, flags;
262
	jfieldID version, movable, helpButton, defaultText, cancelText, otherText, defaultButton, cancelButton, position, flags;
263
} AlertStdCFStringAlertParamRec_FID_CACHE;
263
} AlertStdCFStringAlertParamRec_FID_CACHE;
264
264
265
AlertStdCFStringAlertParamRec_FID_CACHE AlertStdCFStringAlertParamRecFc;
265
AlertStdCFStringAlertParamRec_FID_CACHE AlertStdCFStringAlertParamRecFc;
266
266
267
void cacheAlertStdCFStringAlertParamRecFields(JNIEnv *env, jobject lpObject)
267
void cacheAlertStdCFStringAlertParamRecFields(JNIEnv *env, jobject lpObject)
268
{
268
{
269
	if (AlertStdCFStringAlertParamRecFc.cached) return;
269
	if (AlertStdCFStringAlertParamRecFc.cached) return;
270
	AlertStdCFStringAlertParamRecFc.clazz = (*env)->GetObjectClass(env, lpObject);
270
	AlertStdCFStringAlertParamRecFc.clazz = (*env)->GetObjectClass(env, lpObject);
271
	AlertStdCFStringAlertParamRecFc.version = (*env)->GetFieldID(env, AlertStdCFStringAlertParamRecFc.clazz, "version", "I");
271
	AlertStdCFStringAlertParamRecFc.version = (*env)->GetFieldID(env, AlertStdCFStringAlertParamRecFc.clazz, "version", "I");
272
	AlertStdCFStringAlertParamRecFc.movable = (*env)->GetFieldID(env, AlertStdCFStringAlertParamRecFc.clazz, "movable", "Z");
272
	AlertStdCFStringAlertParamRecFc.movable = (*env)->GetFieldID(env, AlertStdCFStringAlertParamRecFc.clazz, "movable", "Z");
273
	AlertStdCFStringAlertParamRecFc.helpButton = (*env)->GetFieldID(env, AlertStdCFStringAlertParamRecFc.clazz, "helpButton", "Z");
273
	AlertStdCFStringAlertParamRecFc.helpButton = (*env)->GetFieldID(env, AlertStdCFStringAlertParamRecFc.clazz, "helpButton", "Z");
274
	AlertStdCFStringAlertParamRecFc.defaultText = (*env)->GetFieldID(env, AlertStdCFStringAlertParamRecFc.clazz, "defaultText", "I");
274
	AlertStdCFStringAlertParamRecFc.defaultText = (*env)->GetFieldID(env, AlertStdCFStringAlertParamRecFc.clazz, "defaultText", "I");
275
	AlertStdCFStringAlertParamRecFc.cancelText = (*env)->GetFieldID(env, AlertStdCFStringAlertParamRecFc.clazz, "cancelText", "I");
275
	AlertStdCFStringAlertParamRecFc.cancelText = (*env)->GetFieldID(env, AlertStdCFStringAlertParamRecFc.clazz, "cancelText", "I");
276
	AlertStdCFStringAlertParamRecFc.otherText = (*env)->GetFieldID(env, AlertStdCFStringAlertParamRecFc.clazz, "otherText", "I");
276
	AlertStdCFStringAlertParamRecFc.otherText = (*env)->GetFieldID(env, AlertStdCFStringAlertParamRecFc.clazz, "otherText", "I");
277
	AlertStdCFStringAlertParamRecFc.defaultButton = (*env)->GetFieldID(env, AlertStdCFStringAlertParamRecFc.clazz, "defaultButton", "S");
277
	AlertStdCFStringAlertParamRecFc.defaultButton = (*env)->GetFieldID(env, AlertStdCFStringAlertParamRecFc.clazz, "defaultButton", "S");
278
	AlertStdCFStringAlertParamRecFc.cancelButton = (*env)->GetFieldID(env, AlertStdCFStringAlertParamRecFc.clazz, "cancelButton", "S");
278
	AlertStdCFStringAlertParamRecFc.cancelButton = (*env)->GetFieldID(env, AlertStdCFStringAlertParamRecFc.clazz, "cancelButton", "S");
279
	AlertStdCFStringAlertParamRecFc.position = (*env)->GetFieldID(env, AlertStdCFStringAlertParamRecFc.clazz, "position", "S");
279
	AlertStdCFStringAlertParamRecFc.position = (*env)->GetFieldID(env, AlertStdCFStringAlertParamRecFc.clazz, "position", "S");
280
	AlertStdCFStringAlertParamRecFc.flags = (*env)->GetFieldID(env, AlertStdCFStringAlertParamRecFc.clazz, "flags", "I");
280
	AlertStdCFStringAlertParamRecFc.flags = (*env)->GetFieldID(env, AlertStdCFStringAlertParamRecFc.clazz, "flags", "I");
281
	AlertStdCFStringAlertParamRecFc.cached = 1;
281
	AlertStdCFStringAlertParamRecFc.cached = 1;
282
}
282
}
283
283
284
AlertStdCFStringAlertParamRec *getAlertStdCFStringAlertParamRecFields(JNIEnv *env, jobject lpObject, AlertStdCFStringAlertParamRec *lpStruct)
284
AlertStdCFStringAlertParamRec *getAlertStdCFStringAlertParamRecFields(JNIEnv *env, jobject lpObject, AlertStdCFStringAlertParamRec *lpStruct)
285
{
285
{
286
	if (!AlertStdCFStringAlertParamRecFc.cached) cacheAlertStdCFStringAlertParamRecFields(env, lpObject);
286
	if (!AlertStdCFStringAlertParamRecFc.cached) cacheAlertStdCFStringAlertParamRecFields(env, lpObject);
287
	lpStruct->version = (*env)->GetIntField(env, lpObject, AlertStdCFStringAlertParamRecFc.version);
287
	lpStruct->version = (*env)->GetIntField(env, lpObject, AlertStdCFStringAlertParamRecFc.version);
288
	lpStruct->movable = (*env)->GetBooleanField(env, lpObject, AlertStdCFStringAlertParamRecFc.movable);
288
	lpStruct->movable = (*env)->GetBooleanField(env, lpObject, AlertStdCFStringAlertParamRecFc.movable);
289
	lpStruct->helpButton = (*env)->GetBooleanField(env, lpObject, AlertStdCFStringAlertParamRecFc.helpButton);
289
	lpStruct->helpButton = (*env)->GetBooleanField(env, lpObject, AlertStdCFStringAlertParamRecFc.helpButton);
290
	lpStruct->defaultText = (CFStringRef)(*env)->GetIntField(env, lpObject, AlertStdCFStringAlertParamRecFc.defaultText);
290
	lpStruct->defaultText = (CFStringRef)(*env)->GetIntField(env, lpObject, AlertStdCFStringAlertParamRecFc.defaultText);
291
	lpStruct->cancelText = (CFStringRef)(*env)->GetIntField(env, lpObject, AlertStdCFStringAlertParamRecFc.cancelText);
291
	lpStruct->cancelText = (CFStringRef)(*env)->GetIntField(env, lpObject, AlertStdCFStringAlertParamRecFc.cancelText);
292
	lpStruct->otherText = (CFStringRef)(*env)->GetIntField(env, lpObject, AlertStdCFStringAlertParamRecFc.otherText);
292
	lpStruct->otherText = (CFStringRef)(*env)->GetIntField(env, lpObject, AlertStdCFStringAlertParamRecFc.otherText);
293
	lpStruct->defaultButton = (*env)->GetShortField(env, lpObject, AlertStdCFStringAlertParamRecFc.defaultButton);
293
	lpStruct->defaultButton = (*env)->GetShortField(env, lpObject, AlertStdCFStringAlertParamRecFc.defaultButton);
294
	lpStruct->cancelButton = (*env)->GetShortField(env, lpObject, AlertStdCFStringAlertParamRecFc.cancelButton);
294
	lpStruct->cancelButton = (*env)->GetShortField(env, lpObject, AlertStdCFStringAlertParamRecFc.cancelButton);
295
	lpStruct->position = (*env)->GetShortField(env, lpObject, AlertStdCFStringAlertParamRecFc.position);
295
	lpStruct->position = (*env)->GetShortField(env, lpObject, AlertStdCFStringAlertParamRecFc.position);
296
	lpStruct->flags = (*env)->GetIntField(env, lpObject, AlertStdCFStringAlertParamRecFc.flags);
296
	lpStruct->flags = (*env)->GetIntField(env, lpObject, AlertStdCFStringAlertParamRecFc.flags);
297
	return lpStruct;
297
	return lpStruct;
298
}
298
}
299
299
300
void setAlertStdCFStringAlertParamRecFields(JNIEnv *env, jobject lpObject, AlertStdCFStringAlertParamRec *lpStruct)
300
void setAlertStdCFStringAlertParamRecFields(JNIEnv *env, jobject lpObject, AlertStdCFStringAlertParamRec *lpStruct)
301
{
301
{
302
	if (!AlertStdCFStringAlertParamRecFc.cached) cacheAlertStdCFStringAlertParamRecFields(env, lpObject);
302
	if (!AlertStdCFStringAlertParamRecFc.cached) cacheAlertStdCFStringAlertParamRecFields(env, lpObject);
303
	(*env)->SetIntField(env, lpObject, AlertStdCFStringAlertParamRecFc.version, (jint)lpStruct->version);
303
	(*env)->SetIntField(env, lpObject, AlertStdCFStringAlertParamRecFc.version, (jint)lpStruct->version);
304
	(*env)->SetBooleanField(env, lpObject, AlertStdCFStringAlertParamRecFc.movable, (jboolean)lpStruct->movable);
304
	(*env)->SetBooleanField(env, lpObject, AlertStdCFStringAlertParamRecFc.movable, (jboolean)lpStruct->movable);
305
	(*env)->SetBooleanField(env, lpObject, AlertStdCFStringAlertParamRecFc.helpButton, (jboolean)lpStruct->helpButton);
305
	(*env)->SetBooleanField(env, lpObject, AlertStdCFStringAlertParamRecFc.helpButton, (jboolean)lpStruct->helpButton);
306
	(*env)->SetIntField(env, lpObject, AlertStdCFStringAlertParamRecFc.defaultText, (jint)lpStruct->defaultText);
306
	(*env)->SetIntField(env, lpObject, AlertStdCFStringAlertParamRecFc.defaultText, (jint)lpStruct->defaultText);
307
	(*env)->SetIntField(env, lpObject, AlertStdCFStringAlertParamRecFc.cancelText, (jint)lpStruct->cancelText);
307
	(*env)->SetIntField(env, lpObject, AlertStdCFStringAlertParamRecFc.cancelText, (jint)lpStruct->cancelText);
308
	(*env)->SetIntField(env, lpObject, AlertStdCFStringAlertParamRecFc.otherText, (jint)lpStruct->otherText);
308
	(*env)->SetIntField(env, lpObject, AlertStdCFStringAlertParamRecFc.otherText, (jint)lpStruct->otherText);
309
	(*env)->SetShortField(env, lpObject, AlertStdCFStringAlertParamRecFc.defaultButton, (jshort)lpStruct->defaultButton);
309
	(*env)->SetShortField(env, lpObject, AlertStdCFStringAlertParamRecFc.defaultButton, (jshort)lpStruct->defaultButton);
310
	(*env)->SetShortField(env, lpObject, AlertStdCFStringAlertParamRecFc.cancelButton, (jshort)lpStruct->cancelButton);
310
	(*env)->SetShortField(env, lpObject, AlertStdCFStringAlertParamRecFc.cancelButton, (jshort)lpStruct->cancelButton);
311
	(*env)->SetShortField(env, lpObject, AlertStdCFStringAlertParamRecFc.position, (jshort)lpStruct->position);
311
	(*env)->SetShortField(env, lpObject, AlertStdCFStringAlertParamRecFc.position, (jshort)lpStruct->position);
312
	(*env)->SetIntField(env, lpObject, AlertStdCFStringAlertParamRecFc.flags, (jint)lpStruct->flags);
312
	(*env)->SetIntField(env, lpObject, AlertStdCFStringAlertParamRecFc.flags, (jint)lpStruct->flags);
313
}
313
}
314
#endif
314
#endif
315
315
316
#ifndef NO_BitMap
316
#ifndef NO_BitMap
317
typedef struct BitMap_FID_CACHE {
317
typedef struct BitMap_FID_CACHE {
318
	int cached;
318
	int cached;
319
	jclass clazz;
319
	jclass clazz;
320
	jfieldID baseAddr, rowBytes, top, left, bottom, right;
320
	jfieldID baseAddr, rowBytes, top, left, bottom, right;
321
} BitMap_FID_CACHE;
321
} BitMap_FID_CACHE;
322
322
323
BitMap_FID_CACHE BitMapFc;
323
BitMap_FID_CACHE BitMapFc;
324
324
325
void cacheBitMapFields(JNIEnv *env, jobject lpObject)
325
void cacheBitMapFields(JNIEnv *env, jobject lpObject)
326
{
326
{
327
	if (BitMapFc.cached) return;
327
	if (BitMapFc.cached) return;
328
	BitMapFc.clazz = (*env)->GetObjectClass(env, lpObject);
328
	BitMapFc.clazz = (*env)->GetObjectClass(env, lpObject);
329
	BitMapFc.baseAddr = (*env)->GetFieldID(env, BitMapFc.clazz, "baseAddr", "I");
329
	BitMapFc.baseAddr = (*env)->GetFieldID(env, BitMapFc.clazz, "baseAddr", "I");
330
	BitMapFc.rowBytes = (*env)->GetFieldID(env, BitMapFc.clazz, "rowBytes", "S");
330
	BitMapFc.rowBytes = (*env)->GetFieldID(env, BitMapFc.clazz, "rowBytes", "S");
331
	BitMapFc.top = (*env)->GetFieldID(env, BitMapFc.clazz, "top", "S");
331
	BitMapFc.top = (*env)->GetFieldID(env, BitMapFc.clazz, "top", "S");
332
	BitMapFc.left = (*env)->GetFieldID(env, BitMapFc.clazz, "left", "S");
332
	BitMapFc.left = (*env)->GetFieldID(env, BitMapFc.clazz, "left", "S");
333
	BitMapFc.bottom = (*env)->GetFieldID(env, BitMapFc.clazz, "bottom", "S");
333
	BitMapFc.bottom = (*env)->GetFieldID(env, BitMapFc.clazz, "bottom", "S");
334
	BitMapFc.right = (*env)->GetFieldID(env, BitMapFc.clazz, "right", "S");
334
	BitMapFc.right = (*env)->GetFieldID(env, BitMapFc.clazz, "right", "S");
335
	BitMapFc.cached = 1;
335
	BitMapFc.cached = 1;
336
}
336
}
337
337
338
BitMap *getBitMapFields(JNIEnv *env, jobject lpObject, BitMap *lpStruct)
338
BitMap *getBitMapFields(JNIEnv *env, jobject lpObject, BitMap *lpStruct)
339
{
339
{
340
	if (!BitMapFc.cached) cacheBitMapFields(env, lpObject);
340
	if (!BitMapFc.cached) cacheBitMapFields(env, lpObject);
341
	lpStruct->baseAddr = (void *)(*env)->GetIntField(env, lpObject, BitMapFc.baseAddr);
341
	lpStruct->baseAddr = (void *)(*env)->GetIntField(env, lpObject, BitMapFc.baseAddr);
342
	lpStruct->rowBytes = (*env)->GetShortField(env, lpObject, BitMapFc.rowBytes);
342
	lpStruct->rowBytes = (*env)->GetShortField(env, lpObject, BitMapFc.rowBytes);
343
	lpStruct->bounds.top = (*env)->GetShortField(env, lpObject, BitMapFc.top);
343
	lpStruct->bounds.top = (*env)->GetShortField(env, lpObject, BitMapFc.top);
344
	lpStruct->bounds.left = (*env)->GetShortField(env, lpObject, BitMapFc.left);
344
	lpStruct->bounds.left = (*env)->GetShortField(env, lpObject, BitMapFc.left);
345
	lpStruct->bounds.bottom = (*env)->GetShortField(env, lpObject, BitMapFc.bottom);
345
	lpStruct->bounds.bottom = (*env)->GetShortField(env, lpObject, BitMapFc.bottom);
346
	lpStruct->bounds.right = (*env)->GetShortField(env, lpObject, BitMapFc.right);
346
	lpStruct->bounds.right = (*env)->GetShortField(env, lpObject, BitMapFc.right);
347
	return lpStruct;
347
	return lpStruct;
348
}
348
}
349
349
350
void setBitMapFields(JNIEnv *env, jobject lpObject, BitMap *lpStruct)
350
void setBitMapFields(JNIEnv *env, jobject lpObject, BitMap *lpStruct)
351
{
351
{
352
	if (!BitMapFc.cached) cacheBitMapFields(env, lpObject);
352
	if (!BitMapFc.cached) cacheBitMapFields(env, lpObject);
353
	(*env)->SetIntField(env, lpObject, BitMapFc.baseAddr, (jint)lpStruct->baseAddr);
353
	(*env)->SetIntField(env, lpObject, BitMapFc.baseAddr, (jint)lpStruct->baseAddr);
354
	(*env)->SetShortField(env, lpObject, BitMapFc.rowBytes, (jshort)lpStruct->rowBytes);
354
	(*env)->SetShortField(env, lpObject, BitMapFc.rowBytes, (jshort)lpStruct->rowBytes);
355
	(*env)->SetShortField(env, lpObject, BitMapFc.top, (jshort)lpStruct->bounds.top);
355
	(*env)->SetShortField(env, lpObject, BitMapFc.top, (jshort)lpStruct->bounds.top);
356
	(*env)->SetShortField(env, lpObject, BitMapFc.left, (jshort)lpStruct->bounds.left);
356
	(*env)->SetShortField(env, lpObject, BitMapFc.left, (jshort)lpStruct->bounds.left);
357
	(*env)->SetShortField(env, lpObject, BitMapFc.bottom, (jshort)lpStruct->bounds.bottom);
357
	(*env)->SetShortField(env, lpObject, BitMapFc.bottom, (jshort)lpStruct->bounds.bottom);
358
	(*env)->SetShortField(env, lpObject, BitMapFc.right, (jshort)lpStruct->bounds.right);
358
	(*env)->SetShortField(env, lpObject, BitMapFc.right, (jshort)lpStruct->bounds.right);
359
}
359
}
360
#endif
360
#endif
361
361
362
#ifndef NO_CFRange
362
#ifndef NO_CFRange
363
typedef struct CFRange_FID_CACHE {
363
typedef struct CFRange_FID_CACHE {
364
	int cached;
364
	int cached;
365
	jclass clazz;
365
	jclass clazz;
366
	jfieldID location, length;
366
	jfieldID location, length;
367
} CFRange_FID_CACHE;
367
} CFRange_FID_CACHE;
368
368
369
CFRange_FID_CACHE CFRangeFc;
369
CFRange_FID_CACHE CFRangeFc;
370
370
371
void cacheCFRangeFields(JNIEnv *env, jobject lpObject)
371
void cacheCFRangeFields(JNIEnv *env, jobject lpObject)
372
{
372
{
373
	if (CFRangeFc.cached) return;
373
	if (CFRangeFc.cached) return;
374
	CFRangeFc.clazz = (*env)->GetObjectClass(env, lpObject);
374
	CFRangeFc.clazz = (*env)->GetObjectClass(env, lpObject);
375
	CFRangeFc.location = (*env)->GetFieldID(env, CFRangeFc.clazz, "location", "I");
375
	CFRangeFc.location = (*env)->GetFieldID(env, CFRangeFc.clazz, "location", "I");
376
	CFRangeFc.length = (*env)->GetFieldID(env, CFRangeFc.clazz, "length", "I");
376
	CFRangeFc.length = (*env)->GetFieldID(env, CFRangeFc.clazz, "length", "I");
377
	CFRangeFc.cached = 1;
377
	CFRangeFc.cached = 1;
378
}
378
}
379
379
380
CFRange *getCFRangeFields(JNIEnv *env, jobject lpObject, CFRange *lpStruct)
380
CFRange *getCFRangeFields(JNIEnv *env, jobject lpObject, CFRange *lpStruct)
381
{
381
{
382
	if (!CFRangeFc.cached) cacheCFRangeFields(env, lpObject);
382
	if (!CFRangeFc.cached) cacheCFRangeFields(env, lpObject);
383
	lpStruct->location = (CFIndex)(*env)->GetIntField(env, lpObject, CFRangeFc.location);
383
	lpStruct->location = (CFIndex)(*env)->GetIntField(env, lpObject, CFRangeFc.location);
384
	lpStruct->length = (CFIndex)(*env)->GetIntField(env, lpObject, CFRangeFc.length);
384
	lpStruct->length = (CFIndex)(*env)->GetIntField(env, lpObject, CFRangeFc.length);
385
	return lpStruct;
385
	return lpStruct;
386
}
386
}
387
387
388
void setCFRangeFields(JNIEnv *env, jobject lpObject, CFRange *lpStruct)
388
void setCFRangeFields(JNIEnv *env, jobject lpObject, CFRange *lpStruct)
389
{
389
{
390
	if (!CFRangeFc.cached) cacheCFRangeFields(env, lpObject);
390
	if (!CFRangeFc.cached) cacheCFRangeFields(env, lpObject);
391
	(*env)->SetIntField(env, lpObject, CFRangeFc.location, (jint)lpStruct->location);
391
	(*env)->SetIntField(env, lpObject, CFRangeFc.location, (jint)lpStruct->location);
392
	(*env)->SetIntField(env, lpObject, CFRangeFc.length, (jint)lpStruct->length);
392
	(*env)->SetIntField(env, lpObject, CFRangeFc.length, (jint)lpStruct->length);
393
}
393
}
394
#endif
394
#endif
395
395
396
#ifndef NO_CGPoint
396
#ifndef NO_CGPoint
397
typedef struct CGPoint_FID_CACHE {
397
typedef struct CGPoint_FID_CACHE {
398
	int cached;
398
	int cached;
399
	jclass clazz;
399
	jclass clazz;
400
	jfieldID x, y;
400
	jfieldID x, y;
401
} CGPoint_FID_CACHE;
401
} CGPoint_FID_CACHE;
402
402
403
CGPoint_FID_CACHE CGPointFc;
403
CGPoint_FID_CACHE CGPointFc;
404
404
405
void cacheCGPointFields(JNIEnv *env, jobject lpObject)
405
void cacheCGPointFields(JNIEnv *env, jobject lpObject)
406
{
406
{
407
	if (CGPointFc.cached) return;
407
	if (CGPointFc.cached) return;
408
	CGPointFc.clazz = (*env)->GetObjectClass(env, lpObject);
408
	CGPointFc.clazz = (*env)->GetObjectClass(env, lpObject);
409
	CGPointFc.x = (*env)->GetFieldID(env, CGPointFc.clazz, "x", "F");
409
	CGPointFc.x = (*env)->GetFieldID(env, CGPointFc.clazz, "x", "F");
410
	CGPointFc.y = (*env)->GetFieldID(env, CGPointFc.clazz, "y", "F");
410
	CGPointFc.y = (*env)->GetFieldID(env, CGPointFc.clazz, "y", "F");
411
	CGPointFc.cached = 1;
411
	CGPointFc.cached = 1;
412
}
412
}
413
413
414
CGPoint *getCGPointFields(JNIEnv *env, jobject lpObject, CGPoint *lpStruct)
414
CGPoint *getCGPointFields(JNIEnv *env, jobject lpObject, CGPoint *lpStruct)
415
{
415
{
416
	if (!CGPointFc.cached) cacheCGPointFields(env, lpObject);
416
	if (!CGPointFc.cached) cacheCGPointFields(env, lpObject);
417
	lpStruct->x = (float)(*env)->GetFloatField(env, lpObject, CGPointFc.x);
417
	lpStruct->x = (float)(*env)->GetFloatField(env, lpObject, CGPointFc.x);
418
	lpStruct->y = (float)(*env)->GetFloatField(env, lpObject, CGPointFc.y);
418
	lpStruct->y = (float)(*env)->GetFloatField(env, lpObject, CGPointFc.y);
419
	return lpStruct;
419
	return lpStruct;
420
}
420
}
421
421
422
void setCGPointFields(JNIEnv *env, jobject lpObject, CGPoint *lpStruct)
422
void setCGPointFields(JNIEnv *env, jobject lpObject, CGPoint *lpStruct)
423
{
423
{
424
	if (!CGPointFc.cached) cacheCGPointFields(env, lpObject);
424
	if (!CGPointFc.cached) cacheCGPointFields(env, lpObject);
425
	(*env)->SetFloatField(env, lpObject, CGPointFc.x, (jfloat)lpStruct->x);
425
	(*env)->SetFloatField(env, lpObject, CGPointFc.x, (jfloat)lpStruct->x);
426
	(*env)->SetFloatField(env, lpObject, CGPointFc.y, (jfloat)lpStruct->y);
426
	(*env)->SetFloatField(env, lpObject, CGPointFc.y, (jfloat)lpStruct->y);
427
}
427
}
428
#endif
428
#endif
429
429
430
#ifndef NO_CGRect
430
#ifndef NO_CGRect
431
typedef struct CGRect_FID_CACHE {
431
typedef struct CGRect_FID_CACHE {
432
	int cached;
432
	int cached;
433
	jclass clazz;
433
	jclass clazz;
434
	jfieldID x, y, width, height;
434
	jfieldID x, y, width, height;
435
} CGRect_FID_CACHE;
435
} CGRect_FID_CACHE;
436
436
437
CGRect_FID_CACHE CGRectFc;
437
CGRect_FID_CACHE CGRectFc;
438
438
439
void cacheCGRectFields(JNIEnv *env, jobject lpObject)
439
void cacheCGRectFields(JNIEnv *env, jobject lpObject)
440
{
440
{
441
	if (CGRectFc.cached) return;
441
	if (CGRectFc.cached) return;
442
	CGRectFc.clazz = (*env)->GetObjectClass(env, lpObject);
442
	CGRectFc.clazz = (*env)->GetObjectClass(env, lpObject);
443
	CGRectFc.x = (*env)->GetFieldID(env, CGRectFc.clazz, "x", "F");
443
	CGRectFc.x = (*env)->GetFieldID(env, CGRectFc.clazz, "x", "F");
444
	CGRectFc.y = (*env)->GetFieldID(env, CGRectFc.clazz, "y", "F");
444
	CGRectFc.y = (*env)->GetFieldID(env, CGRectFc.clazz, "y", "F");
445
	CGRectFc.width = (*env)->GetFieldID(env, CGRectFc.clazz, "width", "F");
445
	CGRectFc.width = (*env)->GetFieldID(env, CGRectFc.clazz, "width", "F");
446
	CGRectFc.height = (*env)->GetFieldID(env, CGRectFc.clazz, "height", "F");
446
	CGRectFc.height = (*env)->GetFieldID(env, CGRectFc.clazz, "height", "F");
447
	CGRectFc.cached = 1;
447
	CGRectFc.cached = 1;
448
}
448
}
449
449
450
CGRect *getCGRectFields(JNIEnv *env, jobject lpObject, CGRect *lpStruct)
450
CGRect *getCGRectFields(JNIEnv *env, jobject lpObject, CGRect *lpStruct)
451
{
451
{
452
	if (!CGRectFc.cached) cacheCGRectFields(env, lpObject);
452
	if (!CGRectFc.cached) cacheCGRectFields(env, lpObject);
453
	lpStruct->origin.x = (float)(*env)->GetFloatField(env, lpObject, CGRectFc.x);
453
	lpStruct->origin.x = (float)(*env)->GetFloatField(env, lpObject, CGRectFc.x);
454
	lpStruct->origin.y = (float)(*env)->GetFloatField(env, lpObject, CGRectFc.y);
454
	lpStruct->origin.y = (float)(*env)->GetFloatField(env, lpObject, CGRectFc.y);
455
	lpStruct->size.width = (float)(*env)->GetFloatField(env, lpObject, CGRectFc.width);
455
	lpStruct->size.width = (float)(*env)->GetFloatField(env, lpObject, CGRectFc.width);
456
	lpStruct->size.height = (float)(*env)->GetFloatField(env, lpObject, CGRectFc.height);
456
	lpStruct->size.height = (float)(*env)->GetFloatField(env, lpObject, CGRectFc.height);
457
	return lpStruct;
457
	return lpStruct;
458
}
458
}
459
459
460
void setCGRectFields(JNIEnv *env, jobject lpObject, CGRect *lpStruct)
460
void setCGRectFields(JNIEnv *env, jobject lpObject, CGRect *lpStruct)
461
{
461
{
462
	if (!CGRectFc.cached) cacheCGRectFields(env, lpObject);
462
	if (!CGRectFc.cached) cacheCGRectFields(env, lpObject);
463
	(*env)->SetFloatField(env, lpObject, CGRectFc.x, (jfloat)lpStruct->origin.x);
463
	(*env)->SetFloatField(env, lpObject, CGRectFc.x, (jfloat)lpStruct->origin.x);
464
	(*env)->SetFloatField(env, lpObject, CGRectFc.y, (jfloat)lpStruct->origin.y);
464
	(*env)->SetFloatField(env, lpObject, CGRectFc.y, (jfloat)lpStruct->origin.y);
465
	(*env)->SetFloatField(env, lpObject, CGRectFc.width, (jfloat)lpStruct->size.width);
465
	(*env)->SetFloatField(env, lpObject, CGRectFc.width, (jfloat)lpStruct->size.width);
466
	(*env)->SetFloatField(env, lpObject, CGRectFc.height, (jfloat)lpStruct->size.height);
466
	(*env)->SetFloatField(env, lpObject, CGRectFc.height, (jfloat)lpStruct->size.height);
467
}
467
}
468
#endif
468
#endif
469
469
470
#ifndef NO_ColorPickerInfo
470
#ifndef NO_ColorPickerInfo
471
typedef struct ColorPickerInfo_FID_CACHE {
471
typedef struct ColorPickerInfo_FID_CACHE {
472
	int cached;
472
	int cached;
473
	jclass clazz;
473
	jclass clazz;
474
	jfieldID profile, red, green, blue, dstProfile, flags, placeWhere, h, v, pickerType, eventProc, colorProc, colorProcData, prompt, editMenuID, cutItem, copyItem, pasteItem, clearItem, undoItem, newColorChosen;
474
	jfieldID profile, red, green, blue, dstProfile, flags, placeWhere, h, v, pickerType, eventProc, colorProc, colorProcData, prompt, editMenuID, cutItem, copyItem, pasteItem, clearItem, undoItem, newColorChosen;
475
} ColorPickerInfo_FID_CACHE;
475
} ColorPickerInfo_FID_CACHE;
476
476
477
ColorPickerInfo_FID_CACHE ColorPickerInfoFc;
477
ColorPickerInfo_FID_CACHE ColorPickerInfoFc;
478
478
479
void cacheColorPickerInfoFields(JNIEnv *env, jobject lpObject)
479
void cacheColorPickerInfoFields(JNIEnv *env, jobject lpObject)
480
{
480
{
481
	if (ColorPickerInfoFc.cached) return;
481
	if (ColorPickerInfoFc.cached) return;
482
	ColorPickerInfoFc.clazz = (*env)->GetObjectClass(env, lpObject);
482
	ColorPickerInfoFc.clazz = (*env)->GetObjectClass(env, lpObject);
483
	ColorPickerInfoFc.profile = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "profile", "I");
483
	ColorPickerInfoFc.profile = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "profile", "I");
484
	ColorPickerInfoFc.red = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "red", "S");
484
	ColorPickerInfoFc.red = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "red", "S");
485
	ColorPickerInfoFc.green = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "green", "S");
485
	ColorPickerInfoFc.green = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "green", "S");
486
	ColorPickerInfoFc.blue = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "blue", "S");
486
	ColorPickerInfoFc.blue = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "blue", "S");
487
	ColorPickerInfoFc.dstProfile = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "dstProfile", "I");
487
	ColorPickerInfoFc.dstProfile = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "dstProfile", "I");
488
	ColorPickerInfoFc.flags = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "flags", "I");
488
	ColorPickerInfoFc.flags = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "flags", "I");
489
	ColorPickerInfoFc.placeWhere = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "placeWhere", "S");
489
	ColorPickerInfoFc.placeWhere = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "placeWhere", "S");
490
	ColorPickerInfoFc.h = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "h", "S");
490
	ColorPickerInfoFc.h = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "h", "S");
491
	ColorPickerInfoFc.v = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "v", "S");
491
	ColorPickerInfoFc.v = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "v", "S");
492
	ColorPickerInfoFc.pickerType = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "pickerType", "I");
492
	ColorPickerInfoFc.pickerType = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "pickerType", "I");
493
	ColorPickerInfoFc.eventProc = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "eventProc", "I");
493
	ColorPickerInfoFc.eventProc = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "eventProc", "I");
494
	ColorPickerInfoFc.colorProc = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "colorProc", "I");
494
	ColorPickerInfoFc.colorProc = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "colorProc", "I");
495
	ColorPickerInfoFc.colorProcData = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "colorProcData", "I");
495
	ColorPickerInfoFc.colorProcData = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "colorProcData", "I");
496
	ColorPickerInfoFc.prompt = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "prompt", "[B");
496
	ColorPickerInfoFc.prompt = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "prompt", "[B");
497
	ColorPickerInfoFc.editMenuID = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "editMenuID", "S");
497
	ColorPickerInfoFc.editMenuID = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "editMenuID", "S");
498
	ColorPickerInfoFc.cutItem = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "cutItem", "S");
498
	ColorPickerInfoFc.cutItem = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "cutItem", "S");
499
	ColorPickerInfoFc.copyItem = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "copyItem", "S");
499
	ColorPickerInfoFc.copyItem = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "copyItem", "S");
500
	ColorPickerInfoFc.pasteItem = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "pasteItem", "S");
500
	ColorPickerInfoFc.pasteItem = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "pasteItem", "S");
501
	ColorPickerInfoFc.clearItem = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "clearItem", "S");
501
	ColorPickerInfoFc.clearItem = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "clearItem", "S");
502
	ColorPickerInfoFc.undoItem = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "undoItem", "S");
502
	ColorPickerInfoFc.undoItem = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "undoItem", "S");
503
	ColorPickerInfoFc.newColorChosen = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "newColorChosen", "Z");
503
	ColorPickerInfoFc.newColorChosen = (*env)->GetFieldID(env, ColorPickerInfoFc.clazz, "newColorChosen", "Z");
504
	ColorPickerInfoFc.cached = 1;
504
	ColorPickerInfoFc.cached = 1;
505
}
505
}
506
506
507
ColorPickerInfo *getColorPickerInfoFields(JNIEnv *env, jobject lpObject, ColorPickerInfo *lpStruct)
507
ColorPickerInfo *getColorPickerInfoFields(JNIEnv *env, jobject lpObject, ColorPickerInfo *lpStruct)
508
{
508
{
509
	if (!ColorPickerInfoFc.cached) cacheColorPickerInfoFields(env, lpObject);
509
	if (!ColorPickerInfoFc.cached) cacheColorPickerInfoFields(env, lpObject);
510
	lpStruct->theColor.profile = (CMProfileHandle)(*env)->GetIntField(env, lpObject, ColorPickerInfoFc.profile);
510
	lpStruct->theColor.profile = (CMProfileHandle)(*env)->GetIntField(env, lpObject, ColorPickerInfoFc.profile);
511
	lpStruct->theColor.color.rgb.red = (UInt16)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.red);
511
	lpStruct->theColor.color.rgb.red = (UInt16)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.red);
512
	lpStruct->theColor.color.rgb.green = (UInt16)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.green);
512
	lpStruct->theColor.color.rgb.green = (UInt16)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.green);
513
	lpStruct->theColor.color.rgb.blue = (UInt16)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.blue);
513
	lpStruct->theColor.color.rgb.blue = (UInt16)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.blue);
514
	lpStruct->dstProfile = (CMProfileHandle)(*env)->GetIntField(env, lpObject, ColorPickerInfoFc.dstProfile);
514
	lpStruct->dstProfile = (CMProfileHandle)(*env)->GetIntField(env, lpObject, ColorPickerInfoFc.dstProfile);
515
	lpStruct->flags = (UInt32)(*env)->GetIntField(env, lpObject, ColorPickerInfoFc.flags);
515
	lpStruct->flags = (UInt32)(*env)->GetIntField(env, lpObject, ColorPickerInfoFc.flags);
516
	lpStruct->placeWhere = (DialogPlacementSpec)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.placeWhere);
516
	lpStruct->placeWhere = (DialogPlacementSpec)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.placeWhere);
517
	lpStruct->dialogOrigin.h = (short)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.h);
517
	lpStruct->dialogOrigin.h = (short)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.h);
518
	lpStruct->dialogOrigin.v = (short)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.v);
518
	lpStruct->dialogOrigin.v = (short)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.v);
519
	lpStruct->pickerType = (OSType)(*env)->GetIntField(env, lpObject, ColorPickerInfoFc.pickerType);
519
	lpStruct->pickerType = (OSType)(*env)->GetIntField(env, lpObject, ColorPickerInfoFc.pickerType);
520
	lpStruct->eventProc = (UserEventUPP)(*env)->GetIntField(env, lpObject, ColorPickerInfoFc.eventProc);
520
	lpStruct->eventProc = (UserEventUPP)(*env)->GetIntField(env, lpObject, ColorPickerInfoFc.eventProc);
521
	lpStruct->colorProc = (ColorChangedUPP)(*env)->GetIntField(env, lpObject, ColorPickerInfoFc.colorProc);
521
	lpStruct->colorProc = (ColorChangedUPP)(*env)->GetIntField(env, lpObject, ColorPickerInfoFc.colorProc);
522
	lpStruct->colorProcData = (UInt32)(*env)->GetIntField(env, lpObject, ColorPickerInfoFc.colorProcData);
522
	lpStruct->colorProcData = (UInt32)(*env)->GetIntField(env, lpObject, ColorPickerInfoFc.colorProcData);
523
	{
523
	{
524
	jbyteArray lpObject1 = (jbyteArray)(*env)->GetObjectField(env, lpObject, ColorPickerInfoFc.prompt);
524
	jbyteArray lpObject1 = (jbyteArray)(*env)->GetObjectField(env, lpObject, ColorPickerInfoFc.prompt);
525
	(*env)->GetByteArrayRegion(env, lpObject1, 0, sizeof(lpStruct->prompt), (jbyte *)lpStruct->prompt);
525
	(*env)->GetByteArrayRegion(env, lpObject1, 0, sizeof(lpStruct->prompt), (jbyte *)lpStruct->prompt);
526
	}
526
	}
527
	lpStruct->mInfo.editMenuID = (SInt16)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.editMenuID);
527
	lpStruct->mInfo.editMenuID = (SInt16)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.editMenuID);
528
	lpStruct->mInfo.cutItem = (SInt16)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.cutItem);
528
	lpStruct->mInfo.cutItem = (SInt16)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.cutItem);
529
	lpStruct->mInfo.copyItem = (SInt16)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.copyItem);
529
	lpStruct->mInfo.copyItem = (SInt16)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.copyItem);
530
	lpStruct->mInfo.pasteItem = (SInt16)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.pasteItem);
530
	lpStruct->mInfo.pasteItem = (SInt16)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.pasteItem);
531
	lpStruct->mInfo.clearItem = (SInt16)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.clearItem);
531
	lpStruct->mInfo.clearItem = (SInt16)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.clearItem);
532
	lpStruct->mInfo.undoItem = (SInt16)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.undoItem);
532
	lpStruct->mInfo.undoItem = (SInt16)(*env)->GetShortField(env, lpObject, ColorPickerInfoFc.undoItem);
533
	lpStruct->newColorChosen = (Boolean)(*env)->GetBooleanField(env, lpObject, ColorPickerInfoFc.newColorChosen);
533
	lpStruct->newColorChosen = (Boolean)(*env)->GetBooleanField(env, lpObject, ColorPickerInfoFc.newColorChosen);
534
	return lpStruct;
534
	return lpStruct;
535
}
535
}
536
536
537
void setColorPickerInfoFields(JNIEnv *env, jobject lpObject, ColorPickerInfo *lpStruct)
537
void setColorPickerInfoFields(JNIEnv *env, jobject lpObject, ColorPickerInfo *lpStruct)
538
{
538
{
539
	if (!ColorPickerInfoFc.cached) cacheColorPickerInfoFields(env, lpObject);
539
	if (!ColorPickerInfoFc.cached) cacheColorPickerInfoFields(env, lpObject);
540
	(*env)->SetIntField(env, lpObject, ColorPickerInfoFc.profile, (jint)lpStruct->theColor.profile);
540
	(*env)->SetIntField(env, lpObject, ColorPickerInfoFc.profile, (jint)lpStruct->theColor.profile);
541
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.red, (jshort)lpStruct->theColor.color.rgb.red);
541
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.red, (jshort)lpStruct->theColor.color.rgb.red);
542
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.green, (jshort)lpStruct->theColor.color.rgb.green);
542
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.green, (jshort)lpStruct->theColor.color.rgb.green);
543
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.blue, (jshort)lpStruct->theColor.color.rgb.blue);
543
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.blue, (jshort)lpStruct->theColor.color.rgb.blue);
544
	(*env)->SetIntField(env, lpObject, ColorPickerInfoFc.dstProfile, (jint)lpStruct->dstProfile);
544
	(*env)->SetIntField(env, lpObject, ColorPickerInfoFc.dstProfile, (jint)lpStruct->dstProfile);
545
	(*env)->SetIntField(env, lpObject, ColorPickerInfoFc.flags, (jint)lpStruct->flags);
545
	(*env)->SetIntField(env, lpObject, ColorPickerInfoFc.flags, (jint)lpStruct->flags);
546
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.placeWhere, (jshort)lpStruct->placeWhere);
546
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.placeWhere, (jshort)lpStruct->placeWhere);
547
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.h, (jshort)lpStruct->dialogOrigin.h);
547
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.h, (jshort)lpStruct->dialogOrigin.h);
548
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.v, (jshort)lpStruct->dialogOrigin.v);
548
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.v, (jshort)lpStruct->dialogOrigin.v);
549
	(*env)->SetIntField(env, lpObject, ColorPickerInfoFc.pickerType, (jint)lpStruct->pickerType);
549
	(*env)->SetIntField(env, lpObject, ColorPickerInfoFc.pickerType, (jint)lpStruct->pickerType);
550
	(*env)->SetIntField(env, lpObject, ColorPickerInfoFc.eventProc, (jint)lpStruct->eventProc);
550
	(*env)->SetIntField(env, lpObject, ColorPickerInfoFc.eventProc, (jint)lpStruct->eventProc);
551
	(*env)->SetIntField(env, lpObject, ColorPickerInfoFc.colorProc, (jint)lpStruct->colorProc);
551
	(*env)->SetIntField(env, lpObject, ColorPickerInfoFc.colorProc, (jint)lpStruct->colorProc);
552
	(*env)->SetIntField(env, lpObject, ColorPickerInfoFc.colorProcData, (jint)lpStruct->colorProcData);
552
	(*env)->SetIntField(env, lpObject, ColorPickerInfoFc.colorProcData, (jint)lpStruct->colorProcData);
553
	{
553
	{
554
	jbyteArray lpObject1 = (jbyteArray)(*env)->GetObjectField(env, lpObject, ColorPickerInfoFc.prompt);
554
	jbyteArray lpObject1 = (jbyteArray)(*env)->GetObjectField(env, lpObject, ColorPickerInfoFc.prompt);
555
	(*env)->SetByteArrayRegion(env, lpObject1, 0, sizeof(lpStruct->prompt), (jbyte *)lpStruct->prompt);
555
	(*env)->SetByteArrayRegion(env, lpObject1, 0, sizeof(lpStruct->prompt), (jbyte *)lpStruct->prompt);
556
	}
556
	}
557
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.editMenuID, (jshort)lpStruct->mInfo.editMenuID);
557
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.editMenuID, (jshort)lpStruct->mInfo.editMenuID);
558
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.cutItem, (jshort)lpStruct->mInfo.cutItem);
558
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.cutItem, (jshort)lpStruct->mInfo.cutItem);
559
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.copyItem, (jshort)lpStruct->mInfo.copyItem);
559
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.copyItem, (jshort)lpStruct->mInfo.copyItem);
560
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.pasteItem, (jshort)lpStruct->mInfo.pasteItem);
560
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.pasteItem, (jshort)lpStruct->mInfo.pasteItem);
561
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.clearItem, (jshort)lpStruct->mInfo.clearItem);
561
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.clearItem, (jshort)lpStruct->mInfo.clearItem);
562
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.undoItem, (jshort)lpStruct->mInfo.undoItem);
562
	(*env)->SetShortField(env, lpObject, ColorPickerInfoFc.undoItem, (jshort)lpStruct->mInfo.undoItem);
563
	(*env)->SetBooleanField(env, lpObject, ColorPickerInfoFc.newColorChosen, (jboolean)lpStruct->newColorChosen);
563
	(*env)->SetBooleanField(env, lpObject, ColorPickerInfoFc.newColorChosen, (jboolean)lpStruct->newColorChosen);
564
}
564
}
565
#endif
565
#endif
566
566
567
#ifndef NO_ControlButtonContentInfo
567
#ifndef NO_ControlButtonContentInfo
568
typedef struct ControlButtonContentInfo_FID_CACHE {
568
typedef struct ControlButtonContentInfo_FID_CACHE {
569
	int cached;
569
	int cached;
570
	jclass clazz;
570
	jclass clazz;
571
	jfieldID contentType, iconRef;
571
	jfieldID contentType, iconRef;
572
} ControlButtonContentInfo_FID_CACHE;
572
} ControlButtonContentInfo_FID_CACHE;
573
573
574
ControlButtonContentInfo_FID_CACHE ControlButtonContentInfoFc;
574
ControlButtonContentInfo_FID_CACHE ControlButtonContentInfoFc;
575
575
576
void cacheControlButtonContentInfoFields(JNIEnv *env, jobject lpObject)
576
void cacheControlButtonContentInfoFields(JNIEnv *env, jobject lpObject)
577
{
577
{
578
	if (ControlButtonContentInfoFc.cached) return;
578
	if (ControlButtonContentInfoFc.cached) return;
579
	ControlButtonContentInfoFc.clazz = (*env)->GetObjectClass(env, lpObject);
579
	ControlButtonContentInfoFc.clazz = (*env)->GetObjectClass(env, lpObject);
580
	ControlButtonContentInfoFc.contentType = (*env)->GetFieldID(env, ControlButtonContentInfoFc.clazz, "contentType", "S");
580
	ControlButtonContentInfoFc.contentType = (*env)->GetFieldID(env, ControlButtonContentInfoFc.clazz, "contentType", "S");
581
	ControlButtonContentInfoFc.iconRef = (*env)->GetFieldID(env, ControlButtonContentInfoFc.clazz, "iconRef", "I");
581
	ControlButtonContentInfoFc.iconRef = (*env)->GetFieldID(env, ControlButtonContentInfoFc.clazz, "iconRef", "I");
582
	ControlButtonContentInfoFc.cached = 1;
582
	ControlButtonContentInfoFc.cached = 1;
583
}
583
}
584
584
585
ControlButtonContentInfo *getControlButtonContentInfoFields(JNIEnv *env, jobject lpObject, ControlButtonContentInfo *lpStruct)
585
ControlButtonContentInfo *getControlButtonContentInfoFields(JNIEnv *env, jobject lpObject, ControlButtonContentInfo *lpStruct)
586
{
586
{
587
	if (!ControlButtonContentInfoFc.cached) cacheControlButtonContentInfoFields(env, lpObject);
587
	if (!ControlButtonContentInfoFc.cached) cacheControlButtonContentInfoFields(env, lpObject);
588
	lpStruct->contentType = (ControlContentType)(*env)->GetShortField(env, lpObject, ControlButtonContentInfoFc.contentType);
588
	lpStruct->contentType = (ControlContentType)(*env)->GetShortField(env, lpObject, ControlButtonContentInfoFc.contentType);
589
	lpStruct->u.iconRef = (void *)(*env)->GetIntField(env, lpObject, ControlButtonContentInfoFc.iconRef);
589
	lpStruct->u.iconRef = (void *)(*env)->GetIntField(env, lpObject, ControlButtonContentInfoFc.iconRef);
590
	return lpStruct;
590
	return lpStruct;
591
}
591
}
592
592
593
void setControlButtonContentInfoFields(JNIEnv *env, jobject lpObject, ControlButtonContentInfo *lpStruct)
593
void setControlButtonContentInfoFields(JNIEnv *env, jobject lpObject, ControlButtonContentInfo *lpStruct)
594
{
594
{
595
	if (!ControlButtonContentInfoFc.cached) cacheControlButtonContentInfoFields(env, lpObject);
595
	if (!ControlButtonContentInfoFc.cached) cacheControlButtonContentInfoFields(env, lpObject);
596
	(*env)->SetShortField(env, lpObject, ControlButtonContentInfoFc.contentType, (jshort)lpStruct->contentType);
596
	(*env)->SetShortField(env, lpObject, ControlButtonContentInfoFc.contentType, (jshort)lpStruct->contentType);
597
	(*env)->SetIntField(env, lpObject, ControlButtonContentInfoFc.iconRef, (jint)lpStruct->u.iconRef);
597
	(*env)->SetIntField(env, lpObject, ControlButtonContentInfoFc.iconRef, (jint)lpStruct->u.iconRef);
598
}
598
}
599
#endif
599
#endif
600
600
601
#ifndef NO_ControlFontStyleRec
601
#ifndef NO_ControlFontStyleRec
602
typedef struct ControlFontStyleRec_FID_CACHE {
602
typedef struct ControlFontStyleRec_FID_CACHE {
603
	int cached;
603
	int cached;
604
	jclass clazz;
604
	jclass clazz;
605
	jfieldID flags, font, size, style, mode, just, foreColor_red, foreColor_green, foreColor_blue, backColor_red, backColor_green, backColor_blue;
605
	jfieldID flags, font, size, style, mode, just, foreColor_red, foreColor_green, foreColor_blue, backColor_red, backColor_green, backColor_blue;
606
} ControlFontStyleRec_FID_CACHE;
606
} ControlFontStyleRec_FID_CACHE;
607
607
608
ControlFontStyleRec_FID_CACHE ControlFontStyleRecFc;
608
ControlFontStyleRec_FID_CACHE ControlFontStyleRecFc;
609
609
610
void cacheControlFontStyleRecFields(JNIEnv *env, jobject lpObject)
610
void cacheControlFontStyleRecFields(JNIEnv *env, jobject lpObject)
611
{
611
{
612
	if (ControlFontStyleRecFc.cached) return;
612
	if (ControlFontStyleRecFc.cached) return;
613
	ControlFontStyleRecFc.clazz = (*env)->GetObjectClass(env, lpObject);
613
	ControlFontStyleRecFc.clazz = (*env)->GetObjectClass(env, lpObject);
614
	ControlFontStyleRecFc.flags = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "flags", "S");
614
	ControlFontStyleRecFc.flags = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "flags", "S");
615
	ControlFontStyleRecFc.font = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "font", "S");
615
	ControlFontStyleRecFc.font = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "font", "S");
616
	ControlFontStyleRecFc.size = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "size", "S");
616
	ControlFontStyleRecFc.size = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "size", "S");
617
	ControlFontStyleRecFc.style = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "style", "S");
617
	ControlFontStyleRecFc.style = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "style", "S");
618
	ControlFontStyleRecFc.mode = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "mode", "S");
618
	ControlFontStyleRecFc.mode = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "mode", "S");
619
	ControlFontStyleRecFc.just = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "just", "S");
619
	ControlFontStyleRecFc.just = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "just", "S");
620
	ControlFontStyleRecFc.foreColor_red = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "foreColor_red", "S");
620
	ControlFontStyleRecFc.foreColor_red = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "foreColor_red", "S");
621
	ControlFontStyleRecFc.foreColor_green = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "foreColor_green", "S");
621
	ControlFontStyleRecFc.foreColor_green = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "foreColor_green", "S");
622
	ControlFontStyleRecFc.foreColor_blue = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "foreColor_blue", "S");
622
	ControlFontStyleRecFc.foreColor_blue = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "foreColor_blue", "S");
623
	ControlFontStyleRecFc.backColor_red = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "backColor_red", "S");
623
	ControlFontStyleRecFc.backColor_red = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "backColor_red", "S");
624
	ControlFontStyleRecFc.backColor_green = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "backColor_green", "S");
624
	ControlFontStyleRecFc.backColor_green = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "backColor_green", "S");
625
	ControlFontStyleRecFc.backColor_blue = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "backColor_blue", "S");
625
	ControlFontStyleRecFc.backColor_blue = (*env)->GetFieldID(env, ControlFontStyleRecFc.clazz, "backColor_blue", "S");
626
	ControlFontStyleRecFc.cached = 1;
626
	ControlFontStyleRecFc.cached = 1;
627
}
627
}
628
628
629
ControlFontStyleRec *getControlFontStyleRecFields(JNIEnv *env, jobject lpObject, ControlFontStyleRec *lpStruct)
629
ControlFontStyleRec *getControlFontStyleRecFields(JNIEnv *env, jobject lpObject, ControlFontStyleRec *lpStruct)
630
{
630
{
631
	if (!ControlFontStyleRecFc.cached) cacheControlFontStyleRecFields(env, lpObject);
631
	if (!ControlFontStyleRecFc.cached) cacheControlFontStyleRecFields(env, lpObject);
632
	lpStruct->flags = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.flags);
632
	lpStruct->flags = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.flags);
633
	lpStruct->font = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.font);
633
	lpStruct->font = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.font);
634
	lpStruct->size = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.size);
634
	lpStruct->size = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.size);
635
	lpStruct->style = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.style);
635
	lpStruct->style = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.style);
636
	lpStruct->mode = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.mode);
636
	lpStruct->mode = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.mode);
637
	lpStruct->just = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.just);
637
	lpStruct->just = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.just);
638
	lpStruct->foreColor.red = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.foreColor_red);
638
	lpStruct->foreColor.red = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.foreColor_red);
639
	lpStruct->foreColor.green = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.foreColor_green);
639
	lpStruct->foreColor.green = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.foreColor_green);
640
	lpStruct->foreColor.blue = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.foreColor_blue);
640
	lpStruct->foreColor.blue = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.foreColor_blue);
641
	lpStruct->backColor.red = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.backColor_red);
641
	lpStruct->backColor.red = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.backColor_red);
642
	lpStruct->backColor.green = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.backColor_green);
642
	lpStruct->backColor.green = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.backColor_green);
643
	lpStruct->backColor.blue = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.backColor_blue);
643
	lpStruct->backColor.blue = (*env)->GetShortField(env, lpObject, ControlFontStyleRecFc.backColor_blue);
644
	return lpStruct;
644
	return lpStruct;
645
}
645
}
646
646
647
void setControlFontStyleRecFields(JNIEnv *env, jobject lpObject, ControlFontStyleRec *lpStruct)
647
void setControlFontStyleRecFields(JNIEnv *env, jobject lpObject, ControlFontStyleRec *lpStruct)
648
{
648
{
649
	if (!ControlFontStyleRecFc.cached) cacheControlFontStyleRecFields(env, lpObject);
649
	if (!ControlFontStyleRecFc.cached) cacheControlFontStyleRecFields(env, lpObject);
650
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.flags, (jshort)lpStruct->flags);
650
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.flags, (jshort)lpStruct->flags);
651
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.font, (jshort)lpStruct->font);
651
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.font, (jshort)lpStruct->font);
652
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.size, (jshort)lpStruct->size);
652
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.size, (jshort)lpStruct->size);
653
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.style, (jshort)lpStruct->style);
653
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.style, (jshort)lpStruct->style);
654
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.mode, (jshort)lpStruct->mode);
654
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.mode, (jshort)lpStruct->mode);
655
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.just, (jshort)lpStruct->just);
655
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.just, (jshort)lpStruct->just);
656
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.foreColor_red, (jshort)lpStruct->foreColor.red);
656
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.foreColor_red, (jshort)lpStruct->foreColor.red);
657
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.foreColor_green, (jshort)lpStruct->foreColor.green);
657
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.foreColor_green, (jshort)lpStruct->foreColor.green);
658
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.foreColor_blue, (jshort)lpStruct->foreColor.blue);
658
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.foreColor_blue, (jshort)lpStruct->foreColor.blue);
659
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.backColor_red, (jshort)lpStruct->backColor.red);
659
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.backColor_red, (jshort)lpStruct->backColor.red);
660
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.backColor_green, (jshort)lpStruct->backColor.green);
660
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.backColor_green, (jshort)lpStruct->backColor.green);
661
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.backColor_blue, (jshort)lpStruct->backColor.blue);
661
	(*env)->SetShortField(env, lpObject, ControlFontStyleRecFc.backColor_blue, (jshort)lpStruct->backColor.blue);
662
}
662
}
663
#endif
663
#endif
664
664
665
#ifndef NO_ControlTabEntry
665
#ifndef NO_ControlTabEntry
666
typedef struct ControlTabEntry_FID_CACHE {
666
typedef struct ControlTabEntry_FID_CACHE {
667
	int cached;
667
	int cached;
668
	jclass clazz;
668
	jclass clazz;
669
	jfieldID icon, name, enabled;
669
	jfieldID icon, name, enabled;
670
} ControlTabEntry_FID_CACHE;
670
} ControlTabEntry_FID_CACHE;
671
671
672
ControlTabEntry_FID_CACHE ControlTabEntryFc;
672
ControlTabEntry_FID_CACHE ControlTabEntryFc;
673
673
674
void cacheControlTabEntryFields(JNIEnv *env, jobject lpObject)
674
void cacheControlTabEntryFields(JNIEnv *env, jobject lpObject)
675
{
675
{
676
	if (ControlTabEntryFc.cached) return;
676
	if (ControlTabEntryFc.cached) return;
677
	ControlTabEntryFc.clazz = (*env)->GetObjectClass(env, lpObject);
677
	ControlTabEntryFc.clazz = (*env)->GetObjectClass(env, lpObject);
678
	ControlTabEntryFc.icon = (*env)->GetFieldID(env, ControlTabEntryFc.clazz, "icon", "I");
678
	ControlTabEntryFc.icon = (*env)->GetFieldID(env, ControlTabEntryFc.clazz, "icon", "I");
679
	ControlTabEntryFc.name = (*env)->GetFieldID(env, ControlTabEntryFc.clazz, "name", "I");
679
	ControlTabEntryFc.name = (*env)->GetFieldID(env, ControlTabEntryFc.clazz, "name", "I");
680
	ControlTabEntryFc.enabled = (*env)->GetFieldID(env, ControlTabEntryFc.clazz, "enabled", "Z");
680
	ControlTabEntryFc.enabled = (*env)->GetFieldID(env, ControlTabEntryFc.clazz, "enabled", "Z");
681
	ControlTabEntryFc.cached = 1;
681
	ControlTabEntryFc.cached = 1;
682
}
682
}
683
683
684
ControlTabEntry *getControlTabEntryFields(JNIEnv *env, jobject lpObject, ControlTabEntry *lpStruct)
684
ControlTabEntry *getControlTabEntryFields(JNIEnv *env, jobject lpObject, ControlTabEntry *lpStruct)
685
{
685
{
686
	if (!ControlTabEntryFc.cached) cacheControlTabEntryFields(env, lpObject);
686
	if (!ControlTabEntryFc.cached) cacheControlTabEntryFields(env, lpObject);
687
	lpStruct->icon = (ControlButtonContentInfo *)(*env)->GetIntField(env, lpObject, ControlTabEntryFc.icon);
687
	lpStruct->icon = (ControlButtonContentInfo *)(*env)->GetIntField(env, lpObject, ControlTabEntryFc.icon);
688
	lpStruct->name = (CFStringRef)(*env)->GetIntField(env, lpObject, ControlTabEntryFc.name);
688
	lpStruct->name = (CFStringRef)(*env)->GetIntField(env, lpObject, ControlTabEntryFc.name);
689
	lpStruct->enabled = (Boolean)(*env)->GetBooleanField(env, lpObject, ControlTabEntryFc.enabled);
689
	lpStruct->enabled = (Boolean)(*env)->GetBooleanField(env, lpObject, ControlTabEntryFc.enabled);
690
	return lpStruct;
690
	return lpStruct;
691
}
691
}
692
692
693
void setControlTabEntryFields(JNIEnv *env, jobject lpObject, ControlTabEntry *lpStruct)
693
void setControlTabEntryFields(JNIEnv *env, jobject lpObject, ControlTabEntry *lpStruct)
694
{
694
{
695
	if (!ControlTabEntryFc.cached) cacheControlTabEntryFields(env, lpObject);
695
	if (!ControlTabEntryFc.cached) cacheControlTabEntryFields(env, lpObject);
696
	(*env)->SetIntField(env, lpObject, ControlTabEntryFc.icon, (jint)lpStruct->icon);
696
	(*env)->SetIntField(env, lpObject, ControlTabEntryFc.icon, (jint)lpStruct->icon);
697
	(*env)->SetIntField(env, lpObject, ControlTabEntryFc.name, (jint)lpStruct->name);
697
	(*env)->SetIntField(env, lpObject, ControlTabEntryFc.name, (jint)lpStruct->name);
698
	(*env)->SetBooleanField(env, lpObject, ControlTabEntryFc.enabled, (jboolean)lpStruct->enabled);
698
	(*env)->SetBooleanField(env, lpObject, ControlTabEntryFc.enabled, (jboolean)lpStruct->enabled);
699
}
699
}
700
#endif
700
#endif
701
701
702
#ifndef NO_ControlTabInfoRecV1
702
#ifndef NO_ControlTabInfoRecV1
703
typedef struct ControlTabInfoRecV1_FID_CACHE {
703
typedef struct ControlTabInfoRecV1_FID_CACHE {
704
	int cached;
704
	int cached;
705
	jclass clazz;
705
	jclass clazz;
706
	jfieldID version, iconSuiteID, name;
706
	jfieldID version, iconSuiteID, name;
707
} ControlTabInfoRecV1_FID_CACHE;
707
} ControlTabInfoRecV1_FID_CACHE;
708
708
709
ControlTabInfoRecV1_FID_CACHE ControlTabInfoRecV1Fc;
709
ControlTabInfoRecV1_FID_CACHE ControlTabInfoRecV1Fc;
710
710
711
void cacheControlTabInfoRecV1Fields(JNIEnv *env, jobject lpObject)
711
void cacheControlTabInfoRecV1Fields(JNIEnv *env, jobject lpObject)
712
{
712
{
713
	if (ControlTabInfoRecV1Fc.cached) return;
713
	if (ControlTabInfoRecV1Fc.cached) return;
714
	ControlTabInfoRecV1Fc.clazz = (*env)->GetObjectClass(env, lpObject);
714
	ControlTabInfoRecV1Fc.clazz = (*env)->GetObjectClass(env, lpObject);
715
	ControlTabInfoRecV1Fc.version = (*env)->GetFieldID(env, ControlTabInfoRecV1Fc.clazz, "version", "S");
715
	ControlTabInfoRecV1Fc.version = (*env)->GetFieldID(env, ControlTabInfoRecV1Fc.clazz, "version", "S");
716
	ControlTabInfoRecV1Fc.iconSuiteID = (*env)->GetFieldID(env, ControlTabInfoRecV1Fc.clazz, "iconSuiteID", "S");
716
	ControlTabInfoRecV1Fc.iconSuiteID = (*env)->GetFieldID(env, ControlTabInfoRecV1Fc.clazz, "iconSuiteID", "S");
717
	ControlTabInfoRecV1Fc.name = (*env)->GetFieldID(env, ControlTabInfoRecV1Fc.clazz, "name", "I");
717
	ControlTabInfoRecV1Fc.name = (*env)->GetFieldID(env, ControlTabInfoRecV1Fc.clazz, "name", "I");
718
	ControlTabInfoRecV1Fc.cached = 1;
718
	ControlTabInfoRecV1Fc.cached = 1;
719
}
719
}
720
720
721
ControlTabInfoRecV1 *getControlTabInfoRecV1Fields(JNIEnv *env, jobject lpObject, ControlTabInfoRecV1 *lpStruct)
721
ControlTabInfoRecV1 *getControlTabInfoRecV1Fields(JNIEnv *env, jobject lpObject, ControlTabInfoRecV1 *lpStruct)
722
{
722
{
723
	if (!ControlTabInfoRecV1Fc.cached) cacheControlTabInfoRecV1Fields(env, lpObject);
723
	if (!ControlTabInfoRecV1Fc.cached) cacheControlTabInfoRecV1Fields(env, lpObject);
724
	lpStruct->version = (SInt16)(*env)->GetShortField(env, lpObject, ControlTabInfoRecV1Fc.version);
724
	lpStruct->version = (SInt16)(*env)->GetShortField(env, lpObject, ControlTabInfoRecV1Fc.version);
725
	lpStruct->iconSuiteID = (SInt16)(*env)->GetShortField(env, lpObject, ControlTabInfoRecV1Fc.iconSuiteID);
725
	lpStruct->iconSuiteID = (SInt16)(*env)->GetShortField(env, lpObject, ControlTabInfoRecV1Fc.iconSuiteID);
726
	lpStruct->name = (CFStringRef)(*env)->GetIntField(env, lpObject, ControlTabInfoRecV1Fc.name);
726
	lpStruct->name = (CFStringRef)(*env)->GetIntField(env, lpObject, ControlTabInfoRecV1Fc.name);
727
	return lpStruct;
727
	return lpStruct;
728
}
728
}
729
729
730
void setControlTabInfoRecV1Fields(JNIEnv *env, jobject lpObject, ControlTabInfoRecV1 *lpStruct)
730
void setControlTabInfoRecV1Fields(JNIEnv *env, jobject lpObject, ControlTabInfoRecV1 *lpStruct)
731
{
731
{
732
	if (!ControlTabInfoRecV1Fc.cached) cacheControlTabInfoRecV1Fields(env, lpObject);
732
	if (!ControlTabInfoRecV1Fc.cached) cacheControlTabInfoRecV1Fields(env, lpObject);
733
	(*env)->SetShortField(env, lpObject, ControlTabInfoRecV1Fc.version, (jshort)lpStruct->version);
733
	(*env)->SetShortField(env, lpObject, ControlTabInfoRecV1Fc.version, (jshort)lpStruct->version);
734
	(*env)->SetShortField(env, lpObject, ControlTabInfoRecV1Fc.iconSuiteID, (jshort)lpStruct->iconSuiteID);
734
	(*env)->SetShortField(env, lpObject, ControlTabInfoRecV1Fc.iconSuiteID, (jshort)lpStruct->iconSuiteID);
735
	(*env)->SetIntField(env, lpObject, ControlTabInfoRecV1Fc.name, (jint)lpStruct->name);
735
	(*env)->SetIntField(env, lpObject, ControlTabInfoRecV1Fc.name, (jint)lpStruct->name);
736
}
736
}
737
#endif
737
#endif
738
738
739
#ifndef NO_Cursor
739
#ifndef NO_Cursor
740
typedef struct Cursor_FID_CACHE {
740
typedef struct Cursor_FID_CACHE {
741
	int cached;
741
	int cached;
742
	jclass clazz;
742
	jclass clazz;
743
	jfieldID data, mask, hotSpot_v, hotSpot_h;
743
	jfieldID data, mask, hotSpot_v, hotSpot_h;
744
} Cursor_FID_CACHE;
744
} Cursor_FID_CACHE;
745
745
746
Cursor_FID_CACHE CursorFc;
746
Cursor_FID_CACHE CursorFc;
747
747
748
void cacheCursorFields(JNIEnv *env, jobject lpObject)
748
void cacheCursorFields(JNIEnv *env, jobject lpObject)
749
{
749
{
750
	if (CursorFc.cached) return;
750
	if (CursorFc.cached) return;
751
	CursorFc.clazz = (*env)->GetObjectClass(env, lpObject);
751
	CursorFc.clazz = (*env)->GetObjectClass(env, lpObject);
752
	CursorFc.data = (*env)->GetFieldID(env, CursorFc.clazz, "data", "[S");
752
	CursorFc.data = (*env)->GetFieldID(env, CursorFc.clazz, "data", "[S");
753
	CursorFc.mask = (*env)->GetFieldID(env, CursorFc.clazz, "mask", "[S");
753
	CursorFc.mask = (*env)->GetFieldID(env, CursorFc.clazz, "mask", "[S");
754
	CursorFc.hotSpot_v = (*env)->GetFieldID(env, CursorFc.clazz, "hotSpot_v", "S");
754
	CursorFc.hotSpot_v = (*env)->GetFieldID(env, CursorFc.clazz, "hotSpot_v", "S");
755
	CursorFc.hotSpot_h = (*env)->GetFieldID(env, CursorFc.clazz, "hotSpot_h", "S");
755
	CursorFc.hotSpot_h = (*env)->GetFieldID(env, CursorFc.clazz, "hotSpot_h", "S");
756
	CursorFc.cached = 1;
756
	CursorFc.cached = 1;
757
}
757
}
758
758
759
Cursor *getCursorFields(JNIEnv *env, jobject lpObject, Cursor *lpStruct)
759
Cursor *getCursorFields(JNIEnv *env, jobject lpObject, Cursor *lpStruct)
760
{
760
{
761
	if (!CursorFc.cached) cacheCursorFields(env, lpObject);
761
	if (!CursorFc.cached) cacheCursorFields(env, lpObject);
762
	{
762
	{
763
	jshortArray lpObject1 = (jshortArray)(*env)->GetObjectField(env, lpObject, CursorFc.data);
763
	jshortArray lpObject1 = (jshortArray)(*env)->GetObjectField(env, lpObject, CursorFc.data);
764
	(*env)->GetShortArrayRegion(env, lpObject1, 0, sizeof(lpStruct->data) / 2, (jshort *)lpStruct->data);
764
	(*env)->GetShortArrayRegion(env, lpObject1, 0, sizeof(lpStruct->data) / 2, (jshort *)lpStruct->data);
765
	}
765
	}
766
	{
766
	{
767
	jshortArray lpObject1 = (jshortArray)(*env)->GetObjectField(env, lpObject, CursorFc.mask);
767
	jshortArray lpObject1 = (jshortArray)(*env)->GetObjectField(env, lpObject, CursorFc.mask);
768
	(*env)->GetShortArrayRegion(env, lpObject1, 0, sizeof(lpStruct->mask) / 2, (jshort *)lpStruct->mask);
768
	(*env)->GetShortArrayRegion(env, lpObject1, 0, sizeof(lpStruct->mask) / 2, (jshort *)lpStruct->mask);
769
	}
769
	}
770
	lpStruct->hotSpot.v = (*env)->GetShortField(env, lpObject, CursorFc.hotSpot_v);
770
	lpStruct->hotSpot.v = (*env)->GetShortField(env, lpObject, CursorFc.hotSpot_v);
771
	lpStruct->hotSpot.h = (*env)->GetShortField(env, lpObject, CursorFc.hotSpot_h);
771
	lpStruct->hotSpot.h = (*env)->GetShortField(env, lpObject, CursorFc.hotSpot_h);
772
	return lpStruct;
772
	return lpStruct;
773
}
773
}
774
774
775
void setCursorFields(JNIEnv *env, jobject lpObject, Cursor *lpStruct)
775
void setCursorFields(JNIEnv *env, jobject lpObject, Cursor *lpStruct)
776
{
776
{
777
	if (!CursorFc.cached) cacheCursorFields(env, lpObject);
777
	if (!CursorFc.cached) cacheCursorFields(env, lpObject);
778
	{
778
	{
779
	jshortArray lpObject1 = (jshortArray)(*env)->GetObjectField(env, lpObject, CursorFc.data);
779
	jshortArray lpObject1 = (jshortArray)(*env)->GetObjectField(env, lpObject, CursorFc.data);
780
	(*env)->SetShortArrayRegion(env, lpObject1, 0, sizeof(lpStruct->data) / 2, (jshort *)lpStruct->data);
780
	(*env)->SetShortArrayRegion(env, lpObject1, 0, sizeof(lpStruct->data) / 2, (jshort *)lpStruct->data);
781
	}
781
	}
782
	{
782
	{
783
	jshortArray lpObject1 = (jshortArray)(*env)->GetObjectField(env, lpObject, CursorFc.mask);
783
	jshortArray lpObject1 = (jshortArray)(*env)->GetObjectField(env, lpObject, CursorFc.mask);
784
	(*env)->SetShortArrayRegion(env, lpObject1, 0, sizeof(lpStruct->mask) / 2, (jshort *)lpStruct->mask);
784
	(*env)->SetShortArrayRegion(env, lpObject1, 0, sizeof(lpStruct->mask) / 2, (jshort *)lpStruct->mask);
785
	}
785
	}
786
	(*env)->SetShortField(env, lpObject, CursorFc.hotSpot_v, (jshort)lpStruct->hotSpot.v);
786
	(*env)->SetShortField(env, lpObject, CursorFc.hotSpot_v, (jshort)lpStruct->hotSpot.v);
787
	(*env)->SetShortField(env, lpObject, CursorFc.hotSpot_h, (jshort)lpStruct->hotSpot.h);
787
	(*env)->SetShortField(env, lpObject, CursorFc.hotSpot_h, (jshort)lpStruct->hotSpot.h);
788
}
788
}
789
#endif
789
#endif
790
790
791
#ifndef NO_DataBrowserCallbacks
791
#ifndef NO_DataBrowserCallbacks
792
typedef struct DataBrowserCallbacks_FID_CACHE {
792
typedef struct DataBrowserCallbacks_FID_CACHE {
793
	int cached;
793
	int cached;
794
	jclass clazz;
794
	jclass clazz;
795
	jfieldID version, v1_itemDataCallback, v1_itemCompareCallback, v1_itemNotificationCallback, v1_addDragItemCallback, v1_acceptDragCallback, v1_receiveDragCallback, v1_postProcessDragCallback, v1_itemHelpContentCallback, v1_getContextualMenuCallback, v1_selectContextualMenuCallback;
795
	jfieldID version, v1_itemDataCallback, v1_itemCompareCallback, v1_itemNotificationCallback, v1_addDragItemCallback, v1_acceptDragCallback, v1_receiveDragCallback, v1_postProcessDragCallback, v1_itemHelpContentCallback, v1_getContextualMenuCallback, v1_selectContextualMenuCallback;
796
} DataBrowserCallbacks_FID_CACHE;
796
} DataBrowserCallbacks_FID_CACHE;
797
797
798
DataBrowserCallbacks_FID_CACHE DataBrowserCallbacksFc;
798
DataBrowserCallbacks_FID_CACHE DataBrowserCallbacksFc;
799
799
800
void cacheDataBrowserCallbacksFields(JNIEnv *env, jobject lpObject)
800
void cacheDataBrowserCallbacksFields(JNIEnv *env, jobject lpObject)
801
{
801
{
802
	if (DataBrowserCallbacksFc.cached) return;
802
	if (DataBrowserCallbacksFc.cached) return;
803
	DataBrowserCallbacksFc.clazz = (*env)->GetObjectClass(env, lpObject);
803
	DataBrowserCallbacksFc.clazz = (*env)->GetObjectClass(env, lpObject);
804
	DataBrowserCallbacksFc.version = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "version", "I");
804
	DataBrowserCallbacksFc.version = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "version", "I");
805
	DataBrowserCallbacksFc.v1_itemDataCallback = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "v1_itemDataCallback", "I");
805
	DataBrowserCallbacksFc.v1_itemDataCallback = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "v1_itemDataCallback", "I");
806
	DataBrowserCallbacksFc.v1_itemCompareCallback = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "v1_itemCompareCallback", "I");
806
	DataBrowserCallbacksFc.v1_itemCompareCallback = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "v1_itemCompareCallback", "I");
807
	DataBrowserCallbacksFc.v1_itemNotificationCallback = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "v1_itemNotificationCallback", "I");
807
	DataBrowserCallbacksFc.v1_itemNotificationCallback = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "v1_itemNotificationCallback", "I");
808
	DataBrowserCallbacksFc.v1_addDragItemCallback = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "v1_addDragItemCallback", "I");
808
	DataBrowserCallbacksFc.v1_addDragItemCallback = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "v1_addDragItemCallback", "I");
809
	DataBrowserCallbacksFc.v1_acceptDragCallback = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "v1_acceptDragCallback", "I");
809
	DataBrowserCallbacksFc.v1_acceptDragCallback = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "v1_acceptDragCallback", "I");
810
	DataBrowserCallbacksFc.v1_receiveDragCallback = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "v1_receiveDragCallback", "I");
810
	DataBrowserCallbacksFc.v1_receiveDragCallback = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "v1_receiveDragCallback", "I");
811
	DataBrowserCallbacksFc.v1_postProcessDragCallback = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "v1_postProcessDragCallback", "I");
811
	DataBrowserCallbacksFc.v1_postProcessDragCallback = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "v1_postProcessDragCallback", "I");
812
	DataBrowserCallbacksFc.v1_itemHelpContentCallback = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "v1_itemHelpContentCallback", "I");
812
	DataBrowserCallbacksFc.v1_itemHelpContentCallback = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "v1_itemHelpContentCallback", "I");
813
	DataBrowserCallbacksFc.v1_getContextualMenuCallback = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "v1_getContextualMenuCallback", "I");
813
	DataBrowserCallbacksFc.v1_getContextualMenuCallback = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "v1_getContextualMenuCallback", "I");
814
	DataBrowserCallbacksFc.v1_selectContextualMenuCallback = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "v1_selectContextualMenuCallback", "I");
814
	DataBrowserCallbacksFc.v1_selectContextualMenuCallback = (*env)->GetFieldID(env, DataBrowserCallbacksFc.clazz, "v1_selectContextualMenuCallback", "I");
815
	DataBrowserCallbacksFc.cached = 1;
815
	DataBrowserCallbacksFc.cached = 1;
816
}
816
}
817
817
818
DataBrowserCallbacks *getDataBrowserCallbacksFields(JNIEnv *env, jobject lpObject, DataBrowserCallbacks *lpStruct)
818
DataBrowserCallbacks *getDataBrowserCallbacksFields(JNIEnv *env, jobject lpObject, DataBrowserCallbacks *lpStruct)
819
{
819
{
820
	if (!DataBrowserCallbacksFc.cached) cacheDataBrowserCallbacksFields(env, lpObject);
820
	if (!DataBrowserCallbacksFc.cached) cacheDataBrowserCallbacksFields(env, lpObject);
821
	lpStruct->version = (UInt32)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.version);
821
	lpStruct->version = (UInt32)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.version);
822
	lpStruct->u.v1.itemDataCallback = (DataBrowserItemDataUPP)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.v1_itemDataCallback);
822
	lpStruct->u.v1.itemDataCallback = (DataBrowserItemDataUPP)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.v1_itemDataCallback);
823
	lpStruct->u.v1.itemCompareCallback = (DataBrowserItemCompareUPP)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.v1_itemCompareCallback);
823
	lpStruct->u.v1.itemCompareCallback = (DataBrowserItemCompareUPP)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.v1_itemCompareCallback);
824
	lpStruct->u.v1.itemNotificationCallback = (DataBrowserItemNotificationUPP)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.v1_itemNotificationCallback);
824
	lpStruct->u.v1.itemNotificationCallback = (DataBrowserItemNotificationUPP)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.v1_itemNotificationCallback);
825
	lpStruct->u.v1.addDragItemCallback = (DataBrowserAddDragItemUPP)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.v1_addDragItemCallback);
825
	lpStruct->u.v1.addDragItemCallback = (DataBrowserAddDragItemUPP)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.v1_addDragItemCallback);
826
	lpStruct->u.v1.acceptDragCallback = (DataBrowserAcceptDragUPP)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.v1_acceptDragCallback);
826
	lpStruct->u.v1.acceptDragCallback = (DataBrowserAcceptDragUPP)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.v1_acceptDragCallback);
827
	lpStruct->u.v1.receiveDragCallback = (DataBrowserReceiveDragUPP)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.v1_receiveDragCallback);
827
	lpStruct->u.v1.receiveDragCallback = (DataBrowserReceiveDragUPP)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.v1_receiveDragCallback);
828
	lpStruct->u.v1.postProcessDragCallback = (DataBrowserPostProcessDragUPP)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.v1_postProcessDragCallback);
828
	lpStruct->u.v1.postProcessDragCallback = (DataBrowserPostProcessDragUPP)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.v1_postProcessDragCallback);
829
	lpStruct->u.v1.itemHelpContentCallback = (DataBrowserItemHelpContentUPP)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.v1_itemHelpContentCallback);
829
	lpStruct->u.v1.itemHelpContentCallback = (DataBrowserItemHelpContentUPP)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.v1_itemHelpContentCallback);
830
	lpStruct->u.v1.getContextualMenuCallback = (DataBrowserGetContextualMenuUPP)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.v1_getContextualMenuCallback);
830
	lpStruct->u.v1.getContextualMenuCallback = (DataBrowserGetContextualMenuUPP)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.v1_getContextualMenuCallback);
831
	lpStruct->u.v1.selectContextualMenuCallback = (DataBrowserSelectContextualMenuUPP)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.v1_selectContextualMenuCallback);
831
	lpStruct->u.v1.selectContextualMenuCallback = (DataBrowserSelectContextualMenuUPP)(*env)->GetIntField(env, lpObject, DataBrowserCallbacksFc.v1_selectContextualMenuCallback);
832
	return lpStruct;
832
	return lpStruct;
833
}
833
}
834
834
835
void setDataBrowserCallbacksFields(JNIEnv *env, jobject lpObject, DataBrowserCallbacks *lpStruct)
835
void setDataBrowserCallbacksFields(JNIEnv *env, jobject lpObject, DataBrowserCallbacks *lpStruct)
836
{
836
{
837
	if (!DataBrowserCallbacksFc.cached) cacheDataBrowserCallbacksFields(env, lpObject);
837
	if (!DataBrowserCallbacksFc.cached) cacheDataBrowserCallbacksFields(env, lpObject);
838
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.version, (jint)lpStruct->version);
838
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.version, (jint)lpStruct->version);
839
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.v1_itemDataCallback, (jint)lpStruct->u.v1.itemDataCallback);
839
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.v1_itemDataCallback, (jint)lpStruct->u.v1.itemDataCallback);
840
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.v1_itemCompareCallback, (jint)lpStruct->u.v1.itemCompareCallback);
840
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.v1_itemCompareCallback, (jint)lpStruct->u.v1.itemCompareCallback);
841
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.v1_itemNotificationCallback, (jint)lpStruct->u.v1.itemNotificationCallback);
841
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.v1_itemNotificationCallback, (jint)lpStruct->u.v1.itemNotificationCallback);
842
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.v1_addDragItemCallback, (jint)lpStruct->u.v1.addDragItemCallback);
842
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.v1_addDragItemCallback, (jint)lpStruct->u.v1.addDragItemCallback);
843
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.v1_acceptDragCallback, (jint)lpStruct->u.v1.acceptDragCallback);
843
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.v1_acceptDragCallback, (jint)lpStruct->u.v1.acceptDragCallback);
844
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.v1_receiveDragCallback, (jint)lpStruct->u.v1.receiveDragCallback);
844
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.v1_receiveDragCallback, (jint)lpStruct->u.v1.receiveDragCallback);
845
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.v1_postProcessDragCallback, (jint)lpStruct->u.v1.postProcessDragCallback);
845
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.v1_postProcessDragCallback, (jint)lpStruct->u.v1.postProcessDragCallback);
846
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.v1_itemHelpContentCallback, (jint)lpStruct->u.v1.itemHelpContentCallback);
846
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.v1_itemHelpContentCallback, (jint)lpStruct->u.v1.itemHelpContentCallback);
847
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.v1_getContextualMenuCallback, (jint)lpStruct->u.v1.getContextualMenuCallback);
847
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.v1_getContextualMenuCallback, (jint)lpStruct->u.v1.getContextualMenuCallback);
848
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.v1_selectContextualMenuCallback, (jint)lpStruct->u.v1.selectContextualMenuCallback);
848
	(*env)->SetIntField(env, lpObject, DataBrowserCallbacksFc.v1_selectContextualMenuCallback, (jint)lpStruct->u.v1.selectContextualMenuCallback);
849
}
849
}
850
#endif
850
#endif
851
851
852
#ifndef NO_DataBrowserCustomCallbacks
852
#ifndef NO_DataBrowserCustomCallbacks
853
typedef struct DataBrowserCustomCallbacks_FID_CACHE {
853
typedef struct DataBrowserCustomCallbacks_FID_CACHE {
854
	int cached;
854
	int cached;
855
	jclass clazz;
855
	jclass clazz;
856
	jfieldID version, v1_drawItemCallback, v1_editTextCallback, v1_hitTestCallback, v1_trackingCallback, v1_dragRegionCallback, v1_acceptDragCallback, v1_receiveDragCallback;
856
	jfieldID version, v1_drawItemCallback, v1_editTextCallback, v1_hitTestCallback, v1_trackingCallback, v1_dragRegionCallback, v1_acceptDragCallback, v1_receiveDragCallback;
857
} DataBrowserCustomCallbacks_FID_CACHE;
857
} DataBrowserCustomCallbacks_FID_CACHE;
858
858
859
DataBrowserCustomCallbacks_FID_CACHE DataBrowserCustomCallbacksFc;
859
DataBrowserCustomCallbacks_FID_CACHE DataBrowserCustomCallbacksFc;
860
860
861
void cacheDataBrowserCustomCallbacksFields(JNIEnv *env, jobject lpObject)
861
void cacheDataBrowserCustomCallbacksFields(JNIEnv *env, jobject lpObject)
862
{
862
{
863
	if (DataBrowserCustomCallbacksFc.cached) return;
863
	if (DataBrowserCustomCallbacksFc.cached) return;
864
	DataBrowserCustomCallbacksFc.clazz = (*env)->GetObjectClass(env, lpObject);
864
	DataBrowserCustomCallbacksFc.clazz = (*env)->GetObjectClass(env, lpObject);
865
	DataBrowserCustomCallbacksFc.version = (*env)->GetFieldID(env, DataBrowserCustomCallbacksFc.clazz, "version", "I");
865
	DataBrowserCustomCallbacksFc.version = (*env)->GetFieldID(env, DataBrowserCustomCallbacksFc.clazz, "version", "I");
866
	DataBrowserCustomCallbacksFc.v1_drawItemCallback = (*env)->GetFieldID(env, DataBrowserCustomCallbacksFc.clazz, "v1_drawItemCallback", "I");
866
	DataBrowserCustomCallbacksFc.v1_drawItemCallback = (*env)->GetFieldID(env, DataBrowserCustomCallbacksFc.clazz, "v1_drawItemCallback", "I");
867
	DataBrowserCustomCallbacksFc.v1_editTextCallback = (*env)->GetFieldID(env, DataBrowserCustomCallbacksFc.clazz, "v1_editTextCallback", "I");
867
	DataBrowserCustomCallbacksFc.v1_editTextCallback = (*env)->GetFieldID(env, DataBrowserCustomCallbacksFc.clazz, "v1_editTextCallback", "I");
868
	DataBrowserCustomCallbacksFc.v1_hitTestCallback = (*env)->GetFieldID(env, DataBrowserCustomCallbacksFc.clazz, "v1_hitTestCallback", "I");
868
	DataBrowserCustomCallbacksFc.v1_hitTestCallback = (*env)->GetFieldID(env, DataBrowserCustomCallbacksFc.clazz, "v1_hitTestCallback", "I");
869
	DataBrowserCustomCallbacksFc.v1_trackingCallback = (*env)->GetFieldID(env, DataBrowserCustomCallbacksFc.clazz, "v1_trackingCallback", "I");
869
	DataBrowserCustomCallbacksFc.v1_trackingCallback = (*env)->GetFieldID(env, DataBrowserCustomCallbacksFc.clazz, "v1_trackingCallback", "I");
870
	DataBrowserCustomCallbacksFc.v1_dragRegionCallback = (*env)->GetFieldID(env, DataBrowserCustomCallbacksFc.clazz, "v1_dragRegionCallback", "I");
870
	DataBrowserCustomCallbacksFc.v1_dragRegionCallback = (*env)->GetFieldID(env, DataBrowserCustomCallbacksFc.clazz, "v1_dragRegionCallback", "I");
871
	DataBrowserCustomCallbacksFc.v1_acceptDragCallback = (*env)->GetFieldID(env, DataBrowserCustomCallbacksFc.clazz, "v1_acceptDragCallback", "I");
871
	DataBrowserCustomCallbacksFc.v1_acceptDragCallback = (*env)->GetFieldID(env, DataBrowserCustomCallbacksFc.clazz, "v1_acceptDragCallback", "I");
872
	DataBrowserCustomCallbacksFc.v1_receiveDragCallback = (*env)->GetFieldID(env, DataBrowserCustomCallbacksFc.clazz, "v1_receiveDragCallback", "I");
872
	DataBrowserCustomCallbacksFc.v1_receiveDragCallback = (*env)->GetFieldID(env, DataBrowserCustomCallbacksFc.clazz, "v1_receiveDragCallback", "I");
873
	DataBrowserCustomCallbacksFc.cached = 1;
873
	DataBrowserCustomCallbacksFc.cached = 1;
874
}
874
}
875
875
876
DataBrowserCustomCallbacks *getDataBrowserCustomCallbacksFields(JNIEnv *env, jobject lpObject, DataBrowserCustomCallbacks *lpStruct)
876
DataBrowserCustomCallbacks *getDataBrowserCustomCallbacksFields(JNIEnv *env, jobject lpObject, DataBrowserCustomCallbacks *lpStruct)
877
{
877
{
878
	if (!DataBrowserCustomCallbacksFc.cached) cacheDataBrowserCustomCallbacksFields(env, lpObject);
878
	if (!DataBrowserCustomCallbacksFc.cached) cacheDataBrowserCustomCallbacksFields(env, lpObject);
879
	lpStruct->version = (*env)->GetIntField(env, lpObject, DataBrowserCustomCallbacksFc.version);
879
	lpStruct->version = (*env)->GetIntField(env, lpObject, DataBrowserCustomCallbacksFc.version);
880
	lpStruct->u.v1.drawItemCallback = (DataBrowserDrawItemUPP)(*env)->GetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_drawItemCallback);
880
	lpStruct->u.v1.drawItemCallback = (DataBrowserDrawItemUPP)(*env)->GetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_drawItemCallback);
881
	lpStruct->u.v1.editTextCallback = (DataBrowserEditItemUPP)(*env)->GetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_editTextCallback);
881
	lpStruct->u.v1.editTextCallback = (DataBrowserEditItemUPP)(*env)->GetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_editTextCallback);
882
	lpStruct->u.v1.hitTestCallback = (DataBrowserHitTestUPP)(*env)->GetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_hitTestCallback);
882
	lpStruct->u.v1.hitTestCallback = (DataBrowserHitTestUPP)(*env)->GetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_hitTestCallback);
883
	lpStruct->u.v1.trackingCallback = (DataBrowserTrackingUPP)(*env)->GetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_trackingCallback);
883
	lpStruct->u.v1.trackingCallback = (DataBrowserTrackingUPP)(*env)->GetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_trackingCallback);
884
	lpStruct->u.v1.dragRegionCallback = (DataBrowserItemDragRgnUPP)(*env)->GetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_dragRegionCallback);
884
	lpStruct->u.v1.dragRegionCallback = (DataBrowserItemDragRgnUPP)(*env)->GetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_dragRegionCallback);
885
	lpStruct->u.v1.acceptDragCallback = (DataBrowserItemAcceptDragUPP)(*env)->GetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_acceptDragCallback);
885
	lpStruct->u.v1.acceptDragCallback = (DataBrowserItemAcceptDragUPP)(*env)->GetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_acceptDragCallback);
886
	lpStruct->u.v1.receiveDragCallback = (DataBrowserItemReceiveDragUPP)(*env)->GetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_receiveDragCallback);
886
	lpStruct->u.v1.receiveDragCallback = (DataBrowserItemReceiveDragUPP)(*env)->GetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_receiveDragCallback);
887
	return lpStruct;
887
	return lpStruct;
888
}
888
}
889
889
890
void setDataBrowserCustomCallbacksFields(JNIEnv *env, jobject lpObject, DataBrowserCustomCallbacks *lpStruct)
890
void setDataBrowserCustomCallbacksFields(JNIEnv *env, jobject lpObject, DataBrowserCustomCallbacks *lpStruct)
891
{
891
{
892
	if (!DataBrowserCustomCallbacksFc.cached) cacheDataBrowserCustomCallbacksFields(env, lpObject);
892
	if (!DataBrowserCustomCallbacksFc.cached) cacheDataBrowserCustomCallbacksFields(env, lpObject);
893
	(*env)->SetIntField(env, lpObject, DataBrowserCustomCallbacksFc.version, (jint)lpStruct->version);
893
	(*env)->SetIntField(env, lpObject, DataBrowserCustomCallbacksFc.version, (jint)lpStruct->version);
894
	(*env)->SetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_drawItemCallback, (jint)lpStruct->u.v1.drawItemCallback);
894
	(*env)->SetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_drawItemCallback, (jint)lpStruct->u.v1.drawItemCallback);
895
	(*env)->SetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_editTextCallback, (jint)lpStruct->u.v1.editTextCallback);
895
	(*env)->SetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_editTextCallback, (jint)lpStruct->u.v1.editTextCallback);
896
	(*env)->SetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_hitTestCallback, (jint)lpStruct->u.v1.hitTestCallback);
896
	(*env)->SetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_hitTestCallback, (jint)lpStruct->u.v1.hitTestCallback);
897
	(*env)->SetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_trackingCallback, (jint)lpStruct->u.v1.trackingCallback);
897
	(*env)->SetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_trackingCallback, (jint)lpStruct->u.v1.trackingCallback);
898
	(*env)->SetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_dragRegionCallback, (jint)lpStruct->u.v1.dragRegionCallback);
898
	(*env)->SetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_dragRegionCallback, (jint)lpStruct->u.v1.dragRegionCallback);
899
	(*env)->SetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_acceptDragCallback, (jint)lpStruct->u.v1.acceptDragCallback);
899
	(*env)->SetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_acceptDragCallback, (jint)lpStruct->u.v1.acceptDragCallback);
900
	(*env)->SetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_receiveDragCallback, (jint)lpStruct->u.v1.receiveDragCallback);
900
	(*env)->SetIntField(env, lpObject, DataBrowserCustomCallbacksFc.v1_receiveDragCallback, (jint)lpStruct->u.v1.receiveDragCallback);
901
}
901
}
902
#endif
902
#endif
903
903
904
#ifndef NO_DataBrowserListViewColumnDesc
904
#ifndef NO_DataBrowserListViewColumnDesc
905
typedef struct DataBrowserListViewColumnDesc_FID_CACHE {
905
typedef struct DataBrowserListViewColumnDesc_FID_CACHE {
906
	int cached;
906
	int cached;
907
	jclass clazz;
907
	jclass clazz;
908
	jfieldID propertyDesc_propertyID, propertyDesc_propertyType, propertyDesc_propertyFlags, headerBtnDesc_version, headerBtnDesc_minimumWidth, headerBtnDesc_maximumWidth, headerBtnDesc_titleOffset, headerBtnDesc_titleString, headerBtnDesc_initialOrder, headerBtnDesc_btnFontStyle_flags, headerBtnDesc_btnFontStyle_font, headerBtnDesc_btnFontStyle_size, headerBtnDesc_btnFontStyle_style, headerBtnDesc_btnFontStyle_mode, headerBtnDesc_btnFontStyle_just, headerBtnDesc_btnFontStyle_foreColor_red, headerBtnDesc_btnFontStyle_foreColor_green, headerBtnDesc_btnFontStyle_foreColor_blue, headerBtnDesc_btnFontStyle_backColor_red, headerBtnDesc_btnFontStyle_backColor_green, headerBtnDesc_btnFontStyle_backColor_blue, headerBtnDesc_btnContentInfo_contentType, headerBtnDesc_btnContentInfo_iconRef;
908
	jfieldID propertyDesc_propertyID, propertyDesc_propertyType, propertyDesc_propertyFlags, headerBtnDesc_version, headerBtnDesc_minimumWidth, headerBtnDesc_maximumWidth, headerBtnDesc_titleOffset, headerBtnDesc_titleString, headerBtnDesc_initialOrder, headerBtnDesc_btnFontStyle_flags, headerBtnDesc_btnFontStyle_font, headerBtnDesc_btnFontStyle_size, headerBtnDesc_btnFontStyle_style, headerBtnDesc_btnFontStyle_mode, headerBtnDesc_btnFontStyle_just, headerBtnDesc_btnFontStyle_foreColor_red, headerBtnDesc_btnFontStyle_foreColor_green, headerBtnDesc_btnFontStyle_foreColor_blue, headerBtnDesc_btnFontStyle_backColor_red, headerBtnDesc_btnFontStyle_backColor_green, headerBtnDesc_btnFontStyle_backColor_blue, headerBtnDesc_btnContentInfo_contentType, headerBtnDesc_btnContentInfo_iconRef;
909
} DataBrowserListViewColumnDesc_FID_CACHE;
909
} DataBrowserListViewColumnDesc_FID_CACHE;
910
910
911
DataBrowserListViewColumnDesc_FID_CACHE DataBrowserListViewColumnDescFc;
911
DataBrowserListViewColumnDesc_FID_CACHE DataBrowserListViewColumnDescFc;
912
912
913
void cacheDataBrowserListViewColumnDescFields(JNIEnv *env, jobject lpObject)
913
void cacheDataBrowserListViewColumnDescFields(JNIEnv *env, jobject lpObject)
914
{
914
{
915
	if (DataBrowserListViewColumnDescFc.cached) return;
915
	if (DataBrowserListViewColumnDescFc.cached) return;
916
	DataBrowserListViewColumnDescFc.clazz = (*env)->GetObjectClass(env, lpObject);
916
	DataBrowserListViewColumnDescFc.clazz = (*env)->GetObjectClass(env, lpObject);
917
	DataBrowserListViewColumnDescFc.propertyDesc_propertyID = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "propertyDesc_propertyID", "I");
917
	DataBrowserListViewColumnDescFc.propertyDesc_propertyID = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "propertyDesc_propertyID", "I");
918
	DataBrowserListViewColumnDescFc.propertyDesc_propertyType = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "propertyDesc_propertyType", "I");
918
	DataBrowserListViewColumnDescFc.propertyDesc_propertyType = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "propertyDesc_propertyType", "I");
919
	DataBrowserListViewColumnDescFc.propertyDesc_propertyFlags = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "propertyDesc_propertyFlags", "I");
919
	DataBrowserListViewColumnDescFc.propertyDesc_propertyFlags = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "propertyDesc_propertyFlags", "I");
920
	DataBrowserListViewColumnDescFc.headerBtnDesc_version = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_version", "I");
920
	DataBrowserListViewColumnDescFc.headerBtnDesc_version = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_version", "I");
921
	DataBrowserListViewColumnDescFc.headerBtnDesc_minimumWidth = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_minimumWidth", "S");
921
	DataBrowserListViewColumnDescFc.headerBtnDesc_minimumWidth = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_minimumWidth", "S");
922
	DataBrowserListViewColumnDescFc.headerBtnDesc_maximumWidth = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_maximumWidth", "S");
922
	DataBrowserListViewColumnDescFc.headerBtnDesc_maximumWidth = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_maximumWidth", "S");
923
	DataBrowserListViewColumnDescFc.headerBtnDesc_titleOffset = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_titleOffset", "S");
923
	DataBrowserListViewColumnDescFc.headerBtnDesc_titleOffset = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_titleOffset", "S");
924
	DataBrowserListViewColumnDescFc.headerBtnDesc_titleString = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_titleString", "I");
924
	DataBrowserListViewColumnDescFc.headerBtnDesc_titleString = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_titleString", "I");
925
	DataBrowserListViewColumnDescFc.headerBtnDesc_initialOrder = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_initialOrder", "S");
925
	DataBrowserListViewColumnDescFc.headerBtnDesc_initialOrder = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_initialOrder", "S");
926
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_flags = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_flags", "S");
926
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_flags = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_flags", "S");
927
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_font = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_font", "S");
927
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_font = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_font", "S");
928
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_size = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_size", "S");
928
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_size = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_size", "S");
929
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_style = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_style", "S");
929
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_style = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_style", "S");
930
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_mode = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_mode", "S");
930
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_mode = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_mode", "S");
931
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_just = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_just", "S");
931
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_just = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_just", "S");
932
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_foreColor_red = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_foreColor_red", "S");
932
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_foreColor_red = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_foreColor_red", "S");
933
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_foreColor_green = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_foreColor_green", "S");
933
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_foreColor_green = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_foreColor_green", "S");
934
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_foreColor_blue = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_foreColor_blue", "S");
934
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_foreColor_blue = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_foreColor_blue", "S");
935
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_backColor_red = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_backColor_red", "S");
935
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_backColor_red = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_backColor_red", "S");
936
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_backColor_green = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_backColor_green", "S");
936
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_backColor_green = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_backColor_green", "S");
937
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_backColor_blue = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_backColor_blue", "S");
937
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_backColor_blue = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnFontStyle_backColor_blue", "S");
938
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnContentInfo_contentType = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnContentInfo_contentType", "S");
938
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnContentInfo_contentType = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnContentInfo_contentType", "S");
939
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnContentInfo_iconRef = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnContentInfo_iconRef", "I");
939
	DataBrowserListViewColumnDescFc.headerBtnDesc_btnContentInfo_iconRef = (*env)->GetFieldID(env, DataBrowserListViewColumnDescFc.clazz, "headerBtnDesc_btnContentInfo_iconRef", "I");
940
	DataBrowserListViewColumnDescFc.cached = 1;
940
	DataBrowserListViewColumnDescFc.cached = 1;
941
}
941
}
942
942
943
DataBrowserListViewColumnDesc *getDataBrowserListViewColumnDescFields(JNIEnv *env, jobject lpObject, DataBrowserListViewColumnDesc *lpStruct)
943
DataBrowserListViewColumnDesc *getDataBrowserListViewColumnDescFields(JNIEnv *env, jobject lpObject, DataBrowserListViewColumnDesc *lpStruct)
944
{
944
{
945
	if (!DataBrowserListViewColumnDescFc.cached) cacheDataBrowserListViewColumnDescFields(env, lpObject);
945
	if (!DataBrowserListViewColumnDescFc.cached) cacheDataBrowserListViewColumnDescFields(env, lpObject);
946
	lpStruct->propertyDesc.propertyID = (DataBrowserPropertyID)(*env)->GetIntField(env, lpObject, DataBrowserListViewColumnDescFc.propertyDesc_propertyID);
946
	lpStruct->propertyDesc.propertyID = (DataBrowserPropertyID)(*env)->GetIntField(env, lpObject, DataBrowserListViewColumnDescFc.propertyDesc_propertyID);
947
	lpStruct->propertyDesc.propertyType = (OSType)(*env)->GetIntField(env, lpObject, DataBrowserListViewColumnDescFc.propertyDesc_propertyType);
947
	lpStruct->propertyDesc.propertyType = (OSType)(*env)->GetIntField(env, lpObject, DataBrowserListViewColumnDescFc.propertyDesc_propertyType);
948
	lpStruct->propertyDesc.propertyFlags = (DataBrowserPropertyFlags)(*env)->GetIntField(env, lpObject, DataBrowserListViewColumnDescFc.propertyDesc_propertyFlags);
948
	lpStruct->propertyDesc.propertyFlags = (DataBrowserPropertyFlags)(*env)->GetIntField(env, lpObject, DataBrowserListViewColumnDescFc.propertyDesc_propertyFlags);
949
	lpStruct->headerBtnDesc.version = (UInt32)(*env)->GetIntField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_version);
949
	lpStruct->headerBtnDesc.version = (UInt32)(*env)->GetIntField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_version);
950
	lpStruct->headerBtnDesc.minimumWidth = (UInt16)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_minimumWidth);
950
	lpStruct->headerBtnDesc.minimumWidth = (UInt16)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_minimumWidth);
951
	lpStruct->headerBtnDesc.maximumWidth = (UInt16)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_maximumWidth);
951
	lpStruct->headerBtnDesc.maximumWidth = (UInt16)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_maximumWidth);
952
	lpStruct->headerBtnDesc.titleOffset = (SInt16)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_titleOffset);
952
	lpStruct->headerBtnDesc.titleOffset = (SInt16)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_titleOffset);
953
	lpStruct->headerBtnDesc.titleString = (CFStringRef)(*env)->GetIntField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_titleString);
953
	lpStruct->headerBtnDesc.titleString = (CFStringRef)(*env)->GetIntField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_titleString);
954
	lpStruct->headerBtnDesc.initialOrder = (DataBrowserSortOrder)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_initialOrder);
954
	lpStruct->headerBtnDesc.initialOrder = (DataBrowserSortOrder)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_initialOrder);
955
	lpStruct->headerBtnDesc.btnFontStyle.flags = (SInt16)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_flags);
955
	lpStruct->headerBtnDesc.btnFontStyle.flags = (SInt16)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_flags);
956
	lpStruct->headerBtnDesc.btnFontStyle.font = (SInt16)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_font);
956
	lpStruct->headerBtnDesc.btnFontStyle.font = (SInt16)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_font);
957
	lpStruct->headerBtnDesc.btnFontStyle.size = (SInt16)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_size);
957
	lpStruct->headerBtnDesc.btnFontStyle.size = (SInt16)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_size);
958
	lpStruct->headerBtnDesc.btnFontStyle.style = (SInt16)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_style);
958
	lpStruct->headerBtnDesc.btnFontStyle.style = (SInt16)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_style);
959
	lpStruct->headerBtnDesc.btnFontStyle.mode = (SInt16)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_mode);
959
	lpStruct->headerBtnDesc.btnFontStyle.mode = (SInt16)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_mode);
960
	lpStruct->headerBtnDesc.btnFontStyle.just = (SInt16)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_just);
960
	lpStruct->headerBtnDesc.btnFontStyle.just = (SInt16)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_just);
961
	lpStruct->headerBtnDesc.btnFontStyle.foreColor.red = (unsigned short)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_foreColor_red);
961
	lpStruct->headerBtnDesc.btnFontStyle.foreColor.red = (unsigned short)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_foreColor_red);
962
	lpStruct->headerBtnDesc.btnFontStyle.foreColor.green = (unsigned short)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_foreColor_green);
962
	lpStruct->headerBtnDesc.btnFontStyle.foreColor.green = (unsigned short)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_foreColor_green);
963
	lpStruct->headerBtnDesc.btnFontStyle.foreColor.blue = (unsigned short)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_foreColor_blue);
963
	lpStruct->headerBtnDesc.btnFontStyle.foreColor.blue = (unsigned short)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_foreColor_blue);
964
	lpStruct->headerBtnDesc.btnFontStyle.backColor.red = (unsigned short)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_backColor_red);
964
	lpStruct->headerBtnDesc.btnFontStyle.backColor.red = (unsigned short)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_backColor_red);
965
	lpStruct->headerBtnDesc.btnFontStyle.backColor.green = (unsigned short)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_backColor_green);
965
	lpStruct->headerBtnDesc.btnFontStyle.backColor.green = (unsigned short)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_backColor_green);
966
	lpStruct->headerBtnDesc.btnFontStyle.backColor.blue = (unsigned short)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_backColor_blue);
966
	lpStruct->headerBtnDesc.btnFontStyle.backColor.blue = (unsigned short)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_backColor_blue);
967
	lpStruct->headerBtnDesc.btnContentInfo.contentType = (ControlContentType)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnContentInfo_contentType);
967
	lpStruct->headerBtnDesc.btnContentInfo.contentType = (ControlContentType)(*env)->GetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnContentInfo_contentType);
968
	lpStruct->headerBtnDesc.btnContentInfo.u.iconRef = (IconRef)(*env)->GetIntField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnContentInfo_iconRef);
968
	lpStruct->headerBtnDesc.btnContentInfo.u.iconRef = (IconRef)(*env)->GetIntField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnContentInfo_iconRef);
969
	return lpStruct;
969
	return lpStruct;
970
}
970
}
971
971
972
void setDataBrowserListViewColumnDescFields(JNIEnv *env, jobject lpObject, DataBrowserListViewColumnDesc *lpStruct)
972
void setDataBrowserListViewColumnDescFields(JNIEnv *env, jobject lpObject, DataBrowserListViewColumnDesc *lpStruct)
973
{
973
{
974
	if (!DataBrowserListViewColumnDescFc.cached) cacheDataBrowserListViewColumnDescFields(env, lpObject);
974
	if (!DataBrowserListViewColumnDescFc.cached) cacheDataBrowserListViewColumnDescFields(env, lpObject);
975
	(*env)->SetIntField(env, lpObject, DataBrowserListViewColumnDescFc.propertyDesc_propertyID, (jint)lpStruct->propertyDesc.propertyID);
975
	(*env)->SetIntField(env, lpObject, DataBrowserListViewColumnDescFc.propertyDesc_propertyID, (jint)lpStruct->propertyDesc.propertyID);
976
	(*env)->SetIntField(env, lpObject, DataBrowserListViewColumnDescFc.propertyDesc_propertyType, (jint)lpStruct->propertyDesc.propertyType);
976
	(*env)->SetIntField(env, lpObject, DataBrowserListViewColumnDescFc.propertyDesc_propertyType, (jint)lpStruct->propertyDesc.propertyType);
977
	(*env)->SetIntField(env, lpObject, DataBrowserListViewColumnDescFc.propertyDesc_propertyFlags, (jint)lpStruct->propertyDesc.propertyFlags);
977
	(*env)->SetIntField(env, lpObject, DataBrowserListViewColumnDescFc.propertyDesc_propertyFlags, (jint)lpStruct->propertyDesc.propertyFlags);
978
	(*env)->SetIntField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_version, (jint)lpStruct->headerBtnDesc.version);
978
	(*env)->SetIntField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_version, (jint)lpStruct->headerBtnDesc.version);
979
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_minimumWidth, (jshort)lpStruct->headerBtnDesc.minimumWidth);
979
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_minimumWidth, (jshort)lpStruct->headerBtnDesc.minimumWidth);
980
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_maximumWidth, (jshort)lpStruct->headerBtnDesc.maximumWidth);
980
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_maximumWidth, (jshort)lpStruct->headerBtnDesc.maximumWidth);
981
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_titleOffset, (jshort)lpStruct->headerBtnDesc.titleOffset);
981
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_titleOffset, (jshort)lpStruct->headerBtnDesc.titleOffset);
982
	(*env)->SetIntField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_titleString, (jint)lpStruct->headerBtnDesc.titleString);
982
	(*env)->SetIntField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_titleString, (jint)lpStruct->headerBtnDesc.titleString);
983
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_initialOrder, (jshort)lpStruct->headerBtnDesc.initialOrder);
983
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_initialOrder, (jshort)lpStruct->headerBtnDesc.initialOrder);
984
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_flags, (jshort)lpStruct->headerBtnDesc.btnFontStyle.flags);
984
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_flags, (jshort)lpStruct->headerBtnDesc.btnFontStyle.flags);
985
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_font, (jshort)lpStruct->headerBtnDesc.btnFontStyle.font);
985
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_font, (jshort)lpStruct->headerBtnDesc.btnFontStyle.font);
986
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_size, (jshort)lpStruct->headerBtnDesc.btnFontStyle.size);
986
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_size, (jshort)lpStruct->headerBtnDesc.btnFontStyle.size);
987
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_style, (jshort)lpStruct->headerBtnDesc.btnFontStyle.style);
987
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_style, (jshort)lpStruct->headerBtnDesc.btnFontStyle.style);
988
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_mode, (jshort)lpStruct->headerBtnDesc.btnFontStyle.mode);
988
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_mode, (jshort)lpStruct->headerBtnDesc.btnFontStyle.mode);
989
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_just, (jshort)lpStruct->headerBtnDesc.btnFontStyle.just);
989
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_just, (jshort)lpStruct->headerBtnDesc.btnFontStyle.just);
990
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_foreColor_red, (jshort)lpStruct->headerBtnDesc.btnFontStyle.foreColor.red);
990
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_foreColor_red, (jshort)lpStruct->headerBtnDesc.btnFontStyle.foreColor.red);
991
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_foreColor_green, (jshort)lpStruct->headerBtnDesc.btnFontStyle.foreColor.green);
991
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_foreColor_green, (jshort)lpStruct->headerBtnDesc.btnFontStyle.foreColor.green);
992
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_foreColor_blue, (jshort)lpStruct->headerBtnDesc.btnFontStyle.foreColor.blue);
992
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_foreColor_blue, (jshort)lpStruct->headerBtnDesc.btnFontStyle.foreColor.blue);
993
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_backColor_red, (jshort)lpStruct->headerBtnDesc.btnFontStyle.backColor.red);
993
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_backColor_red, (jshort)lpStruct->headerBtnDesc.btnFontStyle.backColor.red);
994
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_backColor_green, (jshort)lpStruct->headerBtnDesc.btnFontStyle.backColor.green);
994
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_backColor_green, (jshort)lpStruct->headerBtnDesc.btnFontStyle.backColor.green);
995
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_backColor_blue, (jshort)lpStruct->headerBtnDesc.btnFontStyle.backColor.blue);
995
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnFontStyle_backColor_blue, (jshort)lpStruct->headerBtnDesc.btnFontStyle.backColor.blue);
996
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnContentInfo_contentType, (jshort)lpStruct->headerBtnDesc.btnContentInfo.contentType);
996
	(*env)->SetShortField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnContentInfo_contentType, (jshort)lpStruct->headerBtnDesc.btnContentInfo.contentType);
997
	(*env)->SetIntField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnContentInfo_iconRef, (jint)lpStruct->headerBtnDesc.btnContentInfo.u.iconRef);
997
	(*env)->SetIntField(env, lpObject, DataBrowserListViewColumnDescFc.headerBtnDesc_btnContentInfo_iconRef, (jint)lpStruct->headerBtnDesc.btnContentInfo.u.iconRef);
998
}
998
}
999
#endif
999
#endif
1000
1000
1001
#ifndef NO_DataBrowserListViewHeaderDesc
1001
#ifndef NO_DataBrowserListViewHeaderDesc
1002
typedef struct DataBrowserListViewHeaderDesc_FID_CACHE {
1002
typedef struct DataBrowserListViewHeaderDesc_FID_CACHE {
1003
	int cached;
1003
	int cached;
1004
	jclass clazz;
1004
	jclass clazz;
1005
	jfieldID version, minimumWidth, maximumWidth, titleOffset, titleString, initialOrder, btnFontStyle_flags, btnFontStyle_font, btnFontStyle_size, btnFontStyle_style, btnFontStyle_mode, btnFontStyle_just, btnFontStyle_foreColor_red, btnFontStyle_foreColor_green, btnFontStyle_foreColor_blue, btnFontStyle_backColor_red, btnFontStyle_backColor_green, btnFontStyle_backColor_blue, btnContentInfo_contentType, btnContentInfo_iconRef;
1005
	jfieldID version, minimumWidth, maximumWidth, titleOffset, titleString, initialOrder, btnFontStyle_flags, btnFontStyle_font, btnFontStyle_size, btnFontStyle_style, btnFontStyle_mode, btnFontStyle_just, btnFontStyle_foreColor_red, btnFontStyle_foreColor_green, btnFontStyle_foreColor_blue, btnFontStyle_backColor_red, btnFontStyle_backColor_green, btnFontStyle_backColor_blue, btnContentInfo_contentType, btnContentInfo_iconRef;
1006
} DataBrowserListViewHeaderDesc_FID_CACHE;
1006
} DataBrowserListViewHeaderDesc_FID_CACHE;
1007
1007
1008
DataBrowserListViewHeaderDesc_FID_CACHE DataBrowserListViewHeaderDescFc;
1008
DataBrowserListViewHeaderDesc_FID_CACHE DataBrowserListViewHeaderDescFc;
1009
1009
1010
void cacheDataBrowserListViewHeaderDescFields(JNIEnv *env, jobject lpObject)
1010
void cacheDataBrowserListViewHeaderDescFields(JNIEnv *env, jobject lpObject)
1011
{
1011
{
1012
	if (DataBrowserListViewHeaderDescFc.cached) return;
1012
	if (DataBrowserListViewHeaderDescFc.cached) return;
1013
	DataBrowserListViewHeaderDescFc.clazz = (*env)->GetObjectClass(env, lpObject);
1013
	DataBrowserListViewHeaderDescFc.clazz = (*env)->GetObjectClass(env, lpObject);
1014
	DataBrowserListViewHeaderDescFc.version = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "version", "I");
1014
	DataBrowserListViewHeaderDescFc.version = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "version", "I");
1015
	DataBrowserListViewHeaderDescFc.minimumWidth = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "minimumWidth", "S");
1015
	DataBrowserListViewHeaderDescFc.minimumWidth = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "minimumWidth", "S");
1016
	DataBrowserListViewHeaderDescFc.maximumWidth = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "maximumWidth", "S");
1016
	DataBrowserListViewHeaderDescFc.maximumWidth = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "maximumWidth", "S");
1017
	DataBrowserListViewHeaderDescFc.titleOffset = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "titleOffset", "S");
1017
	DataBrowserListViewHeaderDescFc.titleOffset = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "titleOffset", "S");
1018
	DataBrowserListViewHeaderDescFc.titleString = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "titleString", "I");
1018
	DataBrowserListViewHeaderDescFc.titleString = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "titleString", "I");
1019
	DataBrowserListViewHeaderDescFc.initialOrder = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "initialOrder", "S");
1019
	DataBrowserListViewHeaderDescFc.initialOrder = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "initialOrder", "S");
1020
	DataBrowserListViewHeaderDescFc.btnFontStyle_flags = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_flags", "S");
1020
	DataBrowserListViewHeaderDescFc.btnFontStyle_flags = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_flags", "S");
1021
	DataBrowserListViewHeaderDescFc.btnFontStyle_font = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_font", "S");
1021
	DataBrowserListViewHeaderDescFc.btnFontStyle_font = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_font", "S");
1022
	DataBrowserListViewHeaderDescFc.btnFontStyle_size = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_size", "S");
1022
	DataBrowserListViewHeaderDescFc.btnFontStyle_size = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_size", "S");
1023
	DataBrowserListViewHeaderDescFc.btnFontStyle_style = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_style", "S");
1023
	DataBrowserListViewHeaderDescFc.btnFontStyle_style = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_style", "S");
1024
	DataBrowserListViewHeaderDescFc.btnFontStyle_mode = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_mode", "S");
1024
	DataBrowserListViewHeaderDescFc.btnFontStyle_mode = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_mode", "S");
1025
	DataBrowserListViewHeaderDescFc.btnFontStyle_just = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_just", "S");
1025
	DataBrowserListViewHeaderDescFc.btnFontStyle_just = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_just", "S");
1026
	DataBrowserListViewHeaderDescFc.btnFontStyle_foreColor_red = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_foreColor_red", "S");
1026
	DataBrowserListViewHeaderDescFc.btnFontStyle_foreColor_red = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_foreColor_red", "S");
1027
	DataBrowserListViewHeaderDescFc.btnFontStyle_foreColor_green = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_foreColor_green", "S");
1027
	DataBrowserListViewHeaderDescFc.btnFontStyle_foreColor_green = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_foreColor_green", "S");
1028
	DataBrowserListViewHeaderDescFc.btnFontStyle_foreColor_blue = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_foreColor_blue", "S");
1028
	DataBrowserListViewHeaderDescFc.btnFontStyle_foreColor_blue = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_foreColor_blue", "S");
1029
	DataBrowserListViewHeaderDescFc.btnFontStyle_backColor_red = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_backColor_red", "S");
1029
	DataBrowserListViewHeaderDescFc.btnFontStyle_backColor_red = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_backColor_red", "S");
1030
	DataBrowserListViewHeaderDescFc.btnFontStyle_backColor_green = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_backColor_green", "S");
1030
	DataBrowserListViewHeaderDescFc.btnFontStyle_backColor_green = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_backColor_green", "S");
1031
	DataBrowserListViewHeaderDescFc.btnFontStyle_backColor_blue = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_backColor_blue", "S");
1031
	DataBrowserListViewHeaderDescFc.btnFontStyle_backColor_blue = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnFontStyle_backColor_blue", "S");
1032
	DataBrowserListViewHeaderDescFc.btnContentInfo_contentType = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnContentInfo_contentType", "S");
1032
	DataBrowserListViewHeaderDescFc.btnContentInfo_contentType = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnContentInfo_contentType", "S");
1033
	DataBrowserListViewHeaderDescFc.btnContentInfo_iconRef = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnContentInfo_iconRef", "I");
1033
	DataBrowserListViewHeaderDescFc.btnContentInfo_iconRef = (*env)->GetFieldID(env, DataBrowserListViewHeaderDescFc.clazz, "btnContentInfo_iconRef", "I");
1034
	DataBrowserListViewHeaderDescFc.cached = 1;
1034
	DataBrowserListViewHeaderDescFc.cached = 1;
1035
}
1035
}
1036
1036
1037
DataBrowserListViewHeaderDesc *getDataBrowserListViewHeaderDescFields(JNIEnv *env, jobject lpObject, DataBrowserListViewHeaderDesc *lpStruct)
1037
DataBrowserListViewHeaderDesc *getDataBrowserListViewHeaderDescFields(JNIEnv *env, jobject lpObject, DataBrowserListViewHeaderDesc *lpStruct)
1038
{
1038
{
1039
	if (!DataBrowserListViewHeaderDescFc.cached) cacheDataBrowserListViewHeaderDescFields(env, lpObject);
1039
	if (!DataBrowserListViewHeaderDescFc.cached) cacheDataBrowserListViewHeaderDescFields(env, lpObject);
1040
	lpStruct->version = (*env)->GetIntField(env, lpObject, DataBrowserListViewHeaderDescFc.version);
1040
	lpStruct->version = (*env)->GetIntField(env, lpObject, DataBrowserListViewHeaderDescFc.version);
1041
	lpStruct->minimumWidth = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.minimumWidth);
1041
	lpStruct->minimumWidth = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.minimumWidth);
1042
	lpStruct->maximumWidth = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.maximumWidth);
1042
	lpStruct->maximumWidth = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.maximumWidth);
1043
	lpStruct->titleOffset = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.titleOffset);
1043
	lpStruct->titleOffset = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.titleOffset);
1044
	lpStruct->titleString = (CFStringRef)(*env)->GetIntField(env, lpObject, DataBrowserListViewHeaderDescFc.titleString);
1044
	lpStruct->titleString = (CFStringRef)(*env)->GetIntField(env, lpObject, DataBrowserListViewHeaderDescFc.titleString);
1045
	lpStruct->initialOrder = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.initialOrder);
1045
	lpStruct->initialOrder = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.initialOrder);
1046
	lpStruct->btnFontStyle.flags = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_flags);
1046
	lpStruct->btnFontStyle.flags = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_flags);
1047
	lpStruct->btnFontStyle.font = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_font);
1047
	lpStruct->btnFontStyle.font = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_font);
1048
	lpStruct->btnFontStyle.size = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_size);
1048
	lpStruct->btnFontStyle.size = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_size);
1049
	lpStruct->btnFontStyle.style = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_style);
1049
	lpStruct->btnFontStyle.style = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_style);
1050
	lpStruct->btnFontStyle.mode = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_mode);
1050
	lpStruct->btnFontStyle.mode = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_mode);
1051
	lpStruct->btnFontStyle.just = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_just);
1051
	lpStruct->btnFontStyle.just = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_just);
1052
	lpStruct->btnFontStyle.foreColor.red = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_foreColor_red);
1052
	lpStruct->btnFontStyle.foreColor.red = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_foreColor_red);
1053
	lpStruct->btnFontStyle.foreColor.green = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_foreColor_green);
1053
	lpStruct->btnFontStyle.foreColor.green = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_foreColor_green);
1054
	lpStruct->btnFontStyle.foreColor.blue = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_foreColor_blue);
1054
	lpStruct->btnFontStyle.foreColor.blue = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_foreColor_blue);
1055
	lpStruct->btnFontStyle.backColor.red = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_backColor_red);
1055
	lpStruct->btnFontStyle.backColor.red = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_backColor_red);
1056
	lpStruct->btnFontStyle.backColor.green = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_backColor_green);
1056
	lpStruct->btnFontStyle.backColor.green = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_backColor_green);
1057
	lpStruct->btnFontStyle.backColor.blue = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_backColor_blue);
1057
	lpStruct->btnFontStyle.backColor.blue = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_backColor_blue);
1058
	lpStruct->btnContentInfo.contentType = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnContentInfo_contentType);
1058
	lpStruct->btnContentInfo.contentType = (*env)->GetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnContentInfo_contentType);
1059
	lpStruct->btnContentInfo.u.iconRef = (IconRef)(*env)->GetIntField(env, lpObject, DataBrowserListViewHeaderDescFc.btnContentInfo_iconRef);
1059
	lpStruct->btnContentInfo.u.iconRef = (IconRef)(*env)->GetIntField(env, lpObject, DataBrowserListViewHeaderDescFc.btnContentInfo_iconRef);
1060
	return lpStruct;
1060
	return lpStruct;
1061
}
1061
}
1062
1062
1063
void setDataBrowserListViewHeaderDescFields(JNIEnv *env, jobject lpObject, DataBrowserListViewHeaderDesc *lpStruct)
1063
void setDataBrowserListViewHeaderDescFields(JNIEnv *env, jobject lpObject, DataBrowserListViewHeaderDesc *lpStruct)
1064
{
1064
{
1065
	if (!DataBrowserListViewHeaderDescFc.cached) cacheDataBrowserListViewHeaderDescFields(env, lpObject);
1065
	if (!DataBrowserListViewHeaderDescFc.cached) cacheDataBrowserListViewHeaderDescFields(env, lpObject);
1066
	(*env)->SetIntField(env, lpObject, DataBrowserListViewHeaderDescFc.version, (jint)lpStruct->version);
1066
	(*env)->SetIntField(env, lpObject, DataBrowserListViewHeaderDescFc.version, (jint)lpStruct->version);
1067
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.minimumWidth, (jshort)lpStruct->minimumWidth);
1067
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.minimumWidth, (jshort)lpStruct->minimumWidth);
1068
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.maximumWidth, (jshort)lpStruct->maximumWidth);
1068
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.maximumWidth, (jshort)lpStruct->maximumWidth);
1069
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.titleOffset, (jshort)lpStruct->titleOffset);
1069
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.titleOffset, (jshort)lpStruct->titleOffset);
1070
	(*env)->SetIntField(env, lpObject, DataBrowserListViewHeaderDescFc.titleString, (jint)lpStruct->titleString);
1070
	(*env)->SetIntField(env, lpObject, DataBrowserListViewHeaderDescFc.titleString, (jint)lpStruct->titleString);
1071
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.initialOrder, (jshort)lpStruct->initialOrder);
1071
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.initialOrder, (jshort)lpStruct->initialOrder);
1072
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_flags, (jshort)lpStruct->btnFontStyle.flags);
1072
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_flags, (jshort)lpStruct->btnFontStyle.flags);
1073
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_font, (jshort)lpStruct->btnFontStyle.font);
1073
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_font, (jshort)lpStruct->btnFontStyle.font);
1074
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_size, (jshort)lpStruct->btnFontStyle.size);
1074
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_size, (jshort)lpStruct->btnFontStyle.size);
1075
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_style, (jshort)lpStruct->btnFontStyle.style);
1075
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_style, (jshort)lpStruct->btnFontStyle.style);
1076
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_mode, (jshort)lpStruct->btnFontStyle.mode);
1076
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_mode, (jshort)lpStruct->btnFontStyle.mode);
1077
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_just, (jshort)lpStruct->btnFontStyle.just);
1077
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_just, (jshort)lpStruct->btnFontStyle.just);
1078
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_foreColor_red, (jshort)lpStruct->btnFontStyle.foreColor.red);
1078
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_foreColor_red, (jshort)lpStruct->btnFontStyle.foreColor.red);
1079
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_foreColor_green, (jshort)lpStruct->btnFontStyle.foreColor.green);
1079
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_foreColor_green, (jshort)lpStruct->btnFontStyle.foreColor.green);
1080
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_foreColor_blue, (jshort)lpStruct->btnFontStyle.foreColor.blue);
1080
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_foreColor_blue, (jshort)lpStruct->btnFontStyle.foreColor.blue);
1081
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_backColor_red, (jshort)lpStruct->btnFontStyle.backColor.red);
1081
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_backColor_red, (jshort)lpStruct->btnFontStyle.backColor.red);
1082
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_backColor_green, (jshort)lpStruct->btnFontStyle.backColor.green);
1082
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_backColor_green, (jshort)lpStruct->btnFontStyle.backColor.green);
1083
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_backColor_blue, (jshort)lpStruct->btnFontStyle.backColor.blue);
1083
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnFontStyle_backColor_blue, (jshort)lpStruct->btnFontStyle.backColor.blue);
1084
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnContentInfo_contentType, (jshort)lpStruct->btnContentInfo.contentType);
1084
	(*env)->SetShortField(env, lpObject, DataBrowserListViewHeaderDescFc.btnContentInfo_contentType, (jshort)lpStruct->btnContentInfo.contentType);
1085
	(*env)->SetIntField(env, lpObject, DataBrowserListViewHeaderDescFc.btnContentInfo_iconRef, (jint)lpStruct->btnContentInfo.u.iconRef);
1085
	(*env)->SetIntField(env, lpObject, DataBrowserListViewHeaderDescFc.btnContentInfo_iconRef, (jint)lpStruct->btnContentInfo.u.iconRef);
1086
}
1086
}
1087
#endif
1087
#endif
1088
1088
1089
#ifndef NO_EventRecord
1089
#ifndef NO_EventRecord
1090
typedef struct EventRecord_FID_CACHE {
1090
typedef struct EventRecord_FID_CACHE {
1091
	int cached;
1091
	int cached;
1092
	jclass clazz;
1092
	jclass clazz;
1093
	jfieldID what, message, when, where_v, where_h, modifiers;
1093
	jfieldID what, message, when, where_v, where_h, modifiers;
1094
} EventRecord_FID_CACHE;
1094
} EventRecord_FID_CACHE;
1095
1095
1096
EventRecord_FID_CACHE EventRecordFc;
1096
EventRecord_FID_CACHE EventRecordFc;
1097
1097
1098
void cacheEventRecordFields(JNIEnv *env, jobject lpObject)
1098
void cacheEventRecordFields(JNIEnv *env, jobject lpObject)
1099
{
1099
{
1100
	if (EventRecordFc.cached) return;
1100
	if (EventRecordFc.cached) return;
1101
	EventRecordFc.clazz = (*env)->GetObjectClass(env, lpObject);
1101
	EventRecordFc.clazz = (*env)->GetObjectClass(env, lpObject);
1102
	EventRecordFc.what = (*env)->GetFieldID(env, EventRecordFc.clazz, "what", "S");
1102
	EventRecordFc.what = (*env)->GetFieldID(env, EventRecordFc.clazz, "what", "S");
1103
	EventRecordFc.message = (*env)->GetFieldID(env, EventRecordFc.clazz, "message", "I");
1103
	EventRecordFc.message = (*env)->GetFieldID(env, EventRecordFc.clazz, "message", "I");
1104
	EventRecordFc.when = (*env)->GetFieldID(env, EventRecordFc.clazz, "when", "I");
1104
	EventRecordFc.when = (*env)->GetFieldID(env, EventRecordFc.clazz, "when", "I");
1105
	EventRecordFc.where_v = (*env)->GetFieldID(env, EventRecordFc.clazz, "where_v", "S");
1105
	EventRecordFc.where_v = (*env)->GetFieldID(env, EventRecordFc.clazz, "where_v", "S");
1106
	EventRecordFc.where_h = (*env)->GetFieldID(env, EventRecordFc.clazz, "where_h", "S");
1106
	EventRecordFc.where_h = (*env)->GetFieldID(env, EventRecordFc.clazz, "where_h", "S");
1107
	EventRecordFc.modifiers = (*env)->GetFieldID(env, EventRecordFc.clazz, "modifiers", "S");
1107
	EventRecordFc.modifiers = (*env)->GetFieldID(env, EventRecordFc.clazz, "modifiers", "S");
1108
	EventRecordFc.cached = 1;
1108
	EventRecordFc.cached = 1;
1109
}
1109
}
1110
1110
1111
EventRecord *getEventRecordFields(JNIEnv *env, jobject lpObject, EventRecord *lpStruct)
1111
EventRecord *getEventRecordFields(JNIEnv *env, jobject lpObject, EventRecord *lpStruct)
1112
{
1112
{
1113
	if (!EventRecordFc.cached) cacheEventRecordFields(env, lpObject);
1113
	if (!EventRecordFc.cached) cacheEventRecordFields(env, lpObject);
1114
	lpStruct->what = (EventKind)(*env)->GetShortField(env, lpObject, EventRecordFc.what);
1114
	lpStruct->what = (EventKind)(*env)->GetShortField(env, lpObject, EventRecordFc.what);
1115
	lpStruct->message = (*env)->GetIntField(env, lpObject, EventRecordFc.message);
1115
	lpStruct->message = (*env)->GetIntField(env, lpObject, EventRecordFc.message);
1116
	lpStruct->when = (*env)->GetIntField(env, lpObject, EventRecordFc.when);
1116
	lpStruct->when = (*env)->GetIntField(env, lpObject, EventRecordFc.when);
1117
	lpStruct->where.v = (*env)->GetShortField(env, lpObject, EventRecordFc.where_v);
1117
	lpStruct->where.v = (*env)->GetShortField(env, lpObject, EventRecordFc.where_v);
1118
	lpStruct->where.h = (*env)->GetShortField(env, lpObject, EventRecordFc.where_h);
1118
	lpStruct->where.h = (*env)->GetShortField(env, lpObject, EventRecordFc.where_h);
1119
	lpStruct->modifiers = (EventModifiers)(*env)->GetShortField(env, lpObject, EventRecordFc.modifiers);
1119
	lpStruct->modifiers = (EventModifiers)(*env)->GetShortField(env, lpObject, EventRecordFc.modifiers);
1120
	return lpStruct;
1120
	return lpStruct;
1121
}
1121
}
1122
1122
1123
void setEventRecordFields(JNIEnv *env, jobject lpObject, EventRecord *lpStruct)
1123
void setEventRecordFields(JNIEnv *env, jobject lpObject, EventRecord *lpStruct)
1124
{
1124
{
1125
	if (!EventRecordFc.cached) cacheEventRecordFields(env, lpObject);
1125
	if (!EventRecordFc.cached) cacheEventRecordFields(env, lpObject);
1126
	(*env)->SetShortField(env, lpObject, EventRecordFc.what, (jshort)lpStruct->what);
1126
	(*env)->SetShortField(env, lpObject, EventRecordFc.what, (jshort)lpStruct->what);
1127
	(*env)->SetIntField(env, lpObject, EventRecordFc.message, (jint)lpStruct->message);
1127
	(*env)->SetIntField(env, lpObject, EventRecordFc.message, (jint)lpStruct->message);
1128
	(*env)->SetIntField(env, lpObject, EventRecordFc.when, (jint)lpStruct->when);
1128
	(*env)->SetIntField(env, lpObject, EventRecordFc.when, (jint)lpStruct->when);
1129
	(*env)->SetShortField(env, lpObject, EventRecordFc.where_v, (jshort)lpStruct->where.v);
1129
	(*env)->SetShortField(env, lpObject, EventRecordFc.where_v, (jshort)lpStruct->where.v);
1130
	(*env)->SetShortField(env, lpObject, EventRecordFc.where_h, (jshort)lpStruct->where.h);
1130
	(*env)->SetShortField(env, lpObject, EventRecordFc.where_h, (jshort)lpStruct->where.h);
1131
	(*env)->SetShortField(env, lpObject, EventRecordFc.modifiers, (jshort)lpStruct->modifiers);
1131
	(*env)->SetShortField(env, lpObject, EventRecordFc.modifiers, (jshort)lpStruct->modifiers);
1132
}
1132
}
1133
#endif
1133
#endif
1134
1134
1135
#ifndef NO_FontInfo
1135
#ifndef NO_FontInfo
1136
typedef struct FontInfo_FID_CACHE {
1136
typedef struct FontInfo_FID_CACHE {
1137
	int cached;
1137
	int cached;
1138
	jclass clazz;
1138
	jclass clazz;
1139
	jfieldID ascent, descent, widMax, leading;
1139
	jfieldID ascent, descent, widMax, leading;
1140
} FontInfo_FID_CACHE;
1140
} FontInfo_FID_CACHE;
1141
1141
1142
FontInfo_FID_CACHE FontInfoFc;
1142
FontInfo_FID_CACHE FontInfoFc;
1143
1143
1144
void cacheFontInfoFields(JNIEnv *env, jobject lpObject)
1144
void cacheFontInfoFields(JNIEnv *env, jobject lpObject)
1145
{
1145
{
1146
	if (FontInfoFc.cached) return;
1146
	if (FontInfoFc.cached) return;
1147
	FontInfoFc.clazz = (*env)->GetObjectClass(env, lpObject);
1147
	FontInfoFc.clazz = (*env)->GetObjectClass(env, lpObject);
1148
	FontInfoFc.ascent = (*env)->GetFieldID(env, FontInfoFc.clazz, "ascent", "S");
1148
	FontInfoFc.ascent = (*env)->GetFieldID(env, FontInfoFc.clazz, "ascent", "S");
1149
	FontInfoFc.descent = (*env)->GetFieldID(env, FontInfoFc.clazz, "descent", "S");
1149
	FontInfoFc.descent = (*env)->GetFieldID(env, FontInfoFc.clazz, "descent", "S");
1150
	FontInfoFc.widMax = (*env)->GetFieldID(env, FontInfoFc.clazz, "widMax", "S");
1150
	FontInfoFc.widMax = (*env)->GetFieldID(env, FontInfoFc.clazz, "widMax", "S");
1151
	FontInfoFc.leading = (*env)->GetFieldID(env, FontInfoFc.clazz, "leading", "S");
1151
	FontInfoFc.leading = (*env)->GetFieldID(env, FontInfoFc.clazz, "leading", "S");
1152
	FontInfoFc.cached = 1;
1152
	FontInfoFc.cached = 1;
1153
}
1153
}
1154
1154
1155
FontInfo *getFontInfoFields(JNIEnv *env, jobject lpObject, FontInfo *lpStruct)
1155
FontInfo *getFontInfoFields(JNIEnv *env, jobject lpObject, FontInfo *lpStruct)
1156
{
1156
{
1157
	if (!FontInfoFc.cached) cacheFontInfoFields(env, lpObject);
1157
	if (!FontInfoFc.cached) cacheFontInfoFields(env, lpObject);
1158
	lpStruct->ascent = (*env)->GetShortField(env, lpObject, FontInfoFc.ascent);
1158
	lpStruct->ascent = (*env)->GetShortField(env, lpObject, FontInfoFc.ascent);
1159
	lpStruct->descent = (*env)->GetShortField(env, lpObject, FontInfoFc.descent);
1159
	lpStruct->descent = (*env)->GetShortField(env, lpObject, FontInfoFc.descent);
1160
	lpStruct->widMax = (*env)->GetShortField(env, lpObject, FontInfoFc.widMax);
1160
	lpStruct->widMax = (*env)->GetShortField(env, lpObject, FontInfoFc.widMax);
1161
	lpStruct->leading = (*env)->GetShortField(env, lpObject, FontInfoFc.leading);
1161
	lpStruct->leading = (*env)->GetShortField(env, lpObject, FontInfoFc.leading);
1162
	return lpStruct;
1162
	return lpStruct;
1163
}
1163
}
1164
1164
1165
void setFontInfoFields(JNIEnv *env, jobject lpObject, FontInfo *lpStruct)
1165
void setFontInfoFields(JNIEnv *env, jobject lpObject, FontInfo *lpStruct)
1166
{
1166
{
1167
	if (!FontInfoFc.cached) cacheFontInfoFields(env, lpObject);
1167
	if (!FontInfoFc.cached) cacheFontInfoFields(env, lpObject);
1168
	(*env)->SetShortField(env, lpObject, FontInfoFc.ascent, (jshort)lpStruct->ascent);
1168
	(*env)->SetShortField(env, lpObject, FontInfoFc.ascent, (jshort)lpStruct->ascent);
1169
	(*env)->SetShortField(env, lpObject, FontInfoFc.descent, (jshort)lpStruct->descent);
1169
	(*env)->SetShortField(env, lpObject, FontInfoFc.descent, (jshort)lpStruct->descent);
1170
	(*env)->SetShortField(env, lpObject, FontInfoFc.widMax, (jshort)lpStruct->widMax);
1170
	(*env)->SetShortField(env, lpObject, FontInfoFc.widMax, (jshort)lpStruct->widMax);
1171
	(*env)->SetShortField(env, lpObject, FontInfoFc.leading, (jshort)lpStruct->leading);
1171
	(*env)->SetShortField(env, lpObject, FontInfoFc.leading, (jshort)lpStruct->leading);
1172
}
1172
}
1173
#endif
1173
#endif
1174
1174
1175
#ifndef NO_FontSelectionQDStyle
1175
#ifndef NO_FontSelectionQDStyle
1176
typedef struct FontSelectionQDStyle_FID_CACHE {
1176
typedef struct FontSelectionQDStyle_FID_CACHE {
1177
	int cached;
1177
	int cached;
1178
	jclass clazz;
1178
	jclass clazz;
1179
	jfieldID version, instance_fontFamily, instance_fontStyle, size, hasColor, reserved, color_red, color_green, color_blue;
1179
	jfieldID version, instance_fontFamily, instance_fontStyle, size, hasColor, reserved, color_red, color_green, color_blue;
1180
} FontSelectionQDStyle_FID_CACHE;
1180
} FontSelectionQDStyle_FID_CACHE;
1181
1181
1182
FontSelectionQDStyle_FID_CACHE FontSelectionQDStyleFc;
1182
FontSelectionQDStyle_FID_CACHE FontSelectionQDStyleFc;
1183
1183
1184
void cacheFontSelectionQDStyleFields(JNIEnv *env, jobject lpObject)
1184
void cacheFontSelectionQDStyleFields(JNIEnv *env, jobject lpObject)
1185
{
1185
{
1186
	if (FontSelectionQDStyleFc.cached) return;
1186
	if (FontSelectionQDStyleFc.cached) return;
1187
	FontSelectionQDStyleFc.clazz = (*env)->GetObjectClass(env, lpObject);
1187
	FontSelectionQDStyleFc.clazz = (*env)->GetObjectClass(env, lpObject);
1188
	FontSelectionQDStyleFc.version = (*env)->GetFieldID(env, FontSelectionQDStyleFc.clazz, "version", "I");
1188
	FontSelectionQDStyleFc.version = (*env)->GetFieldID(env, FontSelectionQDStyleFc.clazz, "version", "I");
1189
	FontSelectionQDStyleFc.instance_fontFamily = (*env)->GetFieldID(env, FontSelectionQDStyleFc.clazz, "instance_fontFamily", "S");
1189
	FontSelectionQDStyleFc.instance_fontFamily = (*env)->GetFieldID(env, FontSelectionQDStyleFc.clazz, "instance_fontFamily", "S");
1190
	FontSelectionQDStyleFc.instance_fontStyle = (*env)->GetFieldID(env, FontSelectionQDStyleFc.clazz, "instance_fontStyle", "S");
1190
	FontSelectionQDStyleFc.instance_fontStyle = (*env)->GetFieldID(env, FontSelectionQDStyleFc.clazz, "instance_fontStyle", "S");
1191
	FontSelectionQDStyleFc.size = (*env)->GetFieldID(env, FontSelectionQDStyleFc.clazz, "size", "S");
1191
	FontSelectionQDStyleFc.size = (*env)->GetFieldID(env, FontSelectionQDStyleFc.clazz, "size", "S");
1192
	FontSelectionQDStyleFc.hasColor = (*env)->GetFieldID(env, FontSelectionQDStyleFc.clazz, "hasColor", "Z");
1192
	FontSelectionQDStyleFc.hasColor = (*env)->GetFieldID(env, FontSelectionQDStyleFc.clazz, "hasColor", "Z");
1193
	FontSelectionQDStyleFc.reserved = (*env)->GetFieldID(env, FontSelectionQDStyleFc.clazz, "reserved", "B");
1193
	FontSelectionQDStyleFc.reserved = (*env)->GetFieldID(env, FontSelectionQDStyleFc.clazz, "reserved", "B");
1194
	FontSelectionQDStyleFc.color_red = (*env)->GetFieldID(env, FontSelectionQDStyleFc.clazz, "color_red", "S");
1194
	FontSelectionQDStyleFc.color_red = (*env)->GetFieldID(env, FontSelectionQDStyleFc.clazz, "color_red", "S");
1195
	FontSelectionQDStyleFc.color_green = (*env)->GetFieldID(env, FontSelectionQDStyleFc.clazz, "color_green", "S");
1195
	FontSelectionQDStyleFc.color_green = (*env)->GetFieldID(env, FontSelectionQDStyleFc.clazz, "color_green", "S");
1196
	FontSelectionQDStyleFc.color_blue = (*env)->GetFieldID(env, FontSelectionQDStyleFc.clazz, "color_blue", "S");
1196
	FontSelectionQDStyleFc.color_blue = (*env)->GetFieldID(env, FontSelectionQDStyleFc.clazz, "color_blue", "S");
1197
	FontSelectionQDStyleFc.cached = 1;
1197
	FontSelectionQDStyleFc.cached = 1;
1198
}
1198
}
1199
1199
1200
FontSelectionQDStyle *getFontSelectionQDStyleFields(JNIEnv *env, jobject lpObject, FontSelectionQDStyle *lpStruct)
1200
FontSelectionQDStyle *getFontSelectionQDStyleFields(JNIEnv *env, jobject lpObject, FontSelectionQDStyle *lpStruct)
1201
{
1201
{
1202
	if (!FontSelectionQDStyleFc.cached) cacheFontSelectionQDStyleFields(env, lpObject);
1202
	if (!FontSelectionQDStyleFc.cached) cacheFontSelectionQDStyleFields(env, lpObject);
1203
	lpStruct->version = (*env)->GetIntField(env, lpObject, FontSelectionQDStyleFc.version);
1203
	lpStruct->version = (*env)->GetIntField(env, lpObject, FontSelectionQDStyleFc.version);
1204
	lpStruct->instance.fontFamily = (*env)->GetShortField(env, lpObject, FontSelectionQDStyleFc.instance_fontFamily);
1204
	lpStruct->instance.fontFamily = (*env)->GetShortField(env, lpObject, FontSelectionQDStyleFc.instance_fontFamily);
1205
	lpStruct->instance.fontStyle = (*env)->GetShortField(env, lpObject, FontSelectionQDStyleFc.instance_fontStyle);
1205
	lpStruct->instance.fontStyle = (*env)->GetShortField(env, lpObject, FontSelectionQDStyleFc.instance_fontStyle);
1206
	lpStruct->size = (*env)->GetShortField(env, lpObject, FontSelectionQDStyleFc.size);
1206
	lpStruct->size = (*env)->GetShortField(env, lpObject, FontSelectionQDStyleFc.size);
1207
	lpStruct->hasColor = (*env)->GetBooleanField(env, lpObject, FontSelectionQDStyleFc.hasColor);
1207
	lpStruct->hasColor = (*env)->GetBooleanField(env, lpObject, FontSelectionQDStyleFc.hasColor);
1208
	lpStruct->reserved = (*env)->GetByteField(env, lpObject, FontSelectionQDStyleFc.reserved);
1208
	lpStruct->reserved = (*env)->GetByteField(env, lpObject, FontSelectionQDStyleFc.reserved);
1209
	lpStruct->color.red = (*env)->GetShortField(env, lpObject, FontSelectionQDStyleFc.color_red);
1209
	lpStruct->color.red = (*env)->GetShortField(env, lpObject, FontSelectionQDStyleFc.color_red);
1210
	lpStruct->color.green = (*env)->GetShortField(env, lpObject, FontSelectionQDStyleFc.color_green);
1210
	lpStruct->color.green = (*env)->GetShortField(env, lpObject, FontSelectionQDStyleFc.color_green);
1211
	lpStruct->color.blue = (*env)->GetShortField(env, lpObject, FontSelectionQDStyleFc.color_blue);
1211
	lpStruct->color.blue = (*env)->GetShortField(env, lpObject, FontSelectionQDStyleFc.color_blue);
1212
	return lpStruct;
1212
	return lpStruct;
1213
}
1213
}
1214
1214
1215
void setFontSelectionQDStyleFields(JNIEnv *env, jobject lpObject, FontSelectionQDStyle *lpStruct)
1215
void setFontSelectionQDStyleFields(JNIEnv *env, jobject lpObject, FontSelectionQDStyle *lpStruct)
1216
{
1216
{
1217
	if (!FontSelectionQDStyleFc.cached) cacheFontSelectionQDStyleFields(env, lpObject);
1217
	if (!FontSelectionQDStyleFc.cached) cacheFontSelectionQDStyleFields(env, lpObject);
1218
	(*env)->SetIntField(env, lpObject, FontSelectionQDStyleFc.version, (jint)lpStruct->version);
1218
	(*env)->SetIntField(env, lpObject, FontSelectionQDStyleFc.version, (jint)lpStruct->version);
1219
	(*env)->SetShortField(env, lpObject, FontSelectionQDStyleFc.instance_fontFamily, (jshort)lpStruct->instance.fontFamily);
1219
	(*env)->SetShortField(env, lpObject, FontSelectionQDStyleFc.instance_fontFamily, (jshort)lpStruct->instance.fontFamily);
1220
	(*env)->SetShortField(env, lpObject, FontSelectionQDStyleFc.instance_fontStyle, (jshort)lpStruct->instance.fontStyle);
1220
	(*env)->SetShortField(env, lpObject, FontSelectionQDStyleFc.instance_fontStyle, (jshort)lpStruct->instance.fontStyle);
1221
	(*env)->SetShortField(env, lpObject, FontSelectionQDStyleFc.size, (jshort)lpStruct->size);
1221
	(*env)->SetShortField(env, lpObject, FontSelectionQDStyleFc.size, (jshort)lpStruct->size);
1222
	(*env)->SetBooleanField(env, lpObject, FontSelectionQDStyleFc.hasColor, (jboolean)lpStruct->hasColor);
1222
	(*env)->SetBooleanField(env, lpObject, FontSelectionQDStyleFc.hasColor, (jboolean)lpStruct->hasColor);
1223
	(*env)->SetByteField(env, lpObject, FontSelectionQDStyleFc.reserved, (jbyte)lpStruct->reserved);
1223
	(*env)->SetByteField(env, lpObject, FontSelectionQDStyleFc.reserved, (jbyte)lpStruct->reserved);
1224
	(*env)->SetShortField(env, lpObject, FontSelectionQDStyleFc.color_red, (jshort)lpStruct->color.red);
1224
	(*env)->SetShortField(env, lpObject, FontSelectionQDStyleFc.color_red, (jshort)lpStruct->color.red);
1225
	(*env)->SetShortField(env, lpObject, FontSelectionQDStyleFc.color_green, (jshort)lpStruct->color.green);
1225
	(*env)->SetShortField(env, lpObject, FontSelectionQDStyleFc.color_green, (jshort)lpStruct->color.green);
1226
	(*env)->SetShortField(env, lpObject, FontSelectionQDStyleFc.color_blue, (jshort)lpStruct->color.blue);
1226
	(*env)->SetShortField(env, lpObject, FontSelectionQDStyleFc.color_blue, (jshort)lpStruct->color.blue);
1227
}
1227
}
1228
#endif
1228
#endif
1229
1229
1230
#ifndef NO_GDevice
1230
#ifndef NO_GDevice
1231
typedef struct GDevice_FID_CACHE {
1231
typedef struct GDevice_FID_CACHE {
1232
	int cached;
1232
	int cached;
1233
	jclass clazz;
1233
	jclass clazz;
1234
	jfieldID gdRefNum, gdID, gdType, gdITable, gdResPref, gdSearchProc, gdCompProc, gdFlags, gdPMap, gdRefCon, gdNextGD, left, top, right, bottom, gdMode, gdCCBytes, gdCCDepth, gdCCXData, gdCCXMask, gdExt;
1234
	jfieldID gdRefNum, gdID, gdType, gdITable, gdResPref, gdSearchProc, gdCompProc, gdFlags, gdPMap, gdRefCon, gdNextGD, left, top, right, bottom, gdMode, gdCCBytes, gdCCDepth, gdCCXData, gdCCXMask, gdExt;
1235
} GDevice_FID_CACHE;
1235
} GDevice_FID_CACHE;
1236
1236
1237
GDevice_FID_CACHE GDeviceFc;
1237
GDevice_FID_CACHE GDeviceFc;
1238
1238
1239
void cacheGDeviceFields(JNIEnv *env, jobject lpObject)
1239
void cacheGDeviceFields(JNIEnv *env, jobject lpObject)
1240
{
1240
{
1241
	if (GDeviceFc.cached) return;
1241
	if (GDeviceFc.cached) return;
1242
	GDeviceFc.clazz = (*env)->GetObjectClass(env, lpObject);
1242
	GDeviceFc.clazz = (*env)->GetObjectClass(env, lpObject);
1243
	GDeviceFc.gdRefNum = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdRefNum", "S");
1243
	GDeviceFc.gdRefNum = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdRefNum", "S");
1244
	GDeviceFc.gdID = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdID", "S");
1244
	GDeviceFc.gdID = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdID", "S");
1245
	GDeviceFc.gdType = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdType", "S");
1245
	GDeviceFc.gdType = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdType", "S");
1246
	GDeviceFc.gdITable = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdITable", "I");
1246
	GDeviceFc.gdITable = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdITable", "I");
1247
	GDeviceFc.gdResPref = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdResPref", "S");
1247
	GDeviceFc.gdResPref = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdResPref", "S");
1248
	GDeviceFc.gdSearchProc = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdSearchProc", "I");
1248
	GDeviceFc.gdSearchProc = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdSearchProc", "I");
1249
	GDeviceFc.gdCompProc = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdCompProc", "I");
1249
	GDeviceFc.gdCompProc = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdCompProc", "I");
1250
	GDeviceFc.gdFlags = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdFlags", "S");
1250
	GDeviceFc.gdFlags = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdFlags", "S");
1251
	GDeviceFc.gdPMap = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdPMap", "I");
1251
	GDeviceFc.gdPMap = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdPMap", "I");
1252
	GDeviceFc.gdRefCon = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdRefCon", "I");
1252
	GDeviceFc.gdRefCon = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdRefCon", "I");
1253
	GDeviceFc.gdNextGD = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdNextGD", "I");
1253
	GDeviceFc.gdNextGD = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdNextGD", "I");
1254
	GDeviceFc.left = (*env)->GetFieldID(env, GDeviceFc.clazz, "left", "S");
1254
	GDeviceFc.left = (*env)->GetFieldID(env, GDeviceFc.clazz, "left", "S");
1255
	GDeviceFc.top = (*env)->GetFieldID(env, GDeviceFc.clazz, "top", "S");
1255
	GDeviceFc.top = (*env)->GetFieldID(env, GDeviceFc.clazz, "top", "S");
1256
	GDeviceFc.right = (*env)->GetFieldID(env, GDeviceFc.clazz, "right", "S");
1256
	GDeviceFc.right = (*env)->GetFieldID(env, GDeviceFc.clazz, "right", "S");
1257
	GDeviceFc.bottom = (*env)->GetFieldID(env, GDeviceFc.clazz, "bottom", "S");
1257
	GDeviceFc.bottom = (*env)->GetFieldID(env, GDeviceFc.clazz, "bottom", "S");
1258
	GDeviceFc.gdMode = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdMode", "I");
1258
	GDeviceFc.gdMode = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdMode", "I");
1259
	GDeviceFc.gdCCBytes = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdCCBytes", "S");
1259
	GDeviceFc.gdCCBytes = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdCCBytes", "S");
1260
	GDeviceFc.gdCCDepth = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdCCDepth", "S");
1260
	GDeviceFc.gdCCDepth = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdCCDepth", "S");
1261
	GDeviceFc.gdCCXData = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdCCXData", "I");
1261
	GDeviceFc.gdCCXData = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdCCXData", "I");
1262
	GDeviceFc.gdCCXMask = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdCCXMask", "I");
1262
	GDeviceFc.gdCCXMask = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdCCXMask", "I");
1263
	GDeviceFc.gdExt = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdExt", "I");
1263
	GDeviceFc.gdExt = (*env)->GetFieldID(env, GDeviceFc.clazz, "gdExt", "I");
1264
	GDeviceFc.cached = 1;
1264
	GDeviceFc.cached = 1;
1265
}
1265
}
1266
1266
1267
GDevice *getGDeviceFields(JNIEnv *env, jobject lpObject, GDevice *lpStruct)
1267
GDevice *getGDeviceFields(JNIEnv *env, jobject lpObject, GDevice *lpStruct)
1268
{
1268
{
1269
	if (!GDeviceFc.cached) cacheGDeviceFields(env, lpObject);
1269
	if (!GDeviceFc.cached) cacheGDeviceFields(env, lpObject);
1270
	lpStruct->gdRefNum = (*env)->GetShortField(env, lpObject, GDeviceFc.gdRefNum);
1270
	lpStruct->gdRefNum = (*env)->GetShortField(env, lpObject, GDeviceFc.gdRefNum);
1271
	lpStruct->gdID = (*env)->GetShortField(env, lpObject, GDeviceFc.gdID);
1271
	lpStruct->gdID = (*env)->GetShortField(env, lpObject, GDeviceFc.gdID);
1272
	lpStruct->gdType = (*env)->GetShortField(env, lpObject, GDeviceFc.gdType);
1272
	lpStruct->gdType = (*env)->GetShortField(env, lpObject, GDeviceFc.gdType);
1273
	lpStruct->gdITable = (ITabHandle)(*env)->GetIntField(env, lpObject, GDeviceFc.gdITable);
1273
	lpStruct->gdITable = (ITabHandle)(*env)->GetIntField(env, lpObject, GDeviceFc.gdITable);
1274
	lpStruct->gdResPref = (*env)->GetShortField(env, lpObject, GDeviceFc.gdResPref);
1274
	lpStruct->gdResPref = (*env)->GetShortField(env, lpObject, GDeviceFc.gdResPref);
1275
	lpStruct->gdSearchProc = (SProcHndl)(*env)->GetIntField(env, lpObject, GDeviceFc.gdSearchProc);
1275
	lpStruct->gdSearchProc = (SProcHndl)(*env)->GetIntField(env, lpObject, GDeviceFc.gdSearchProc);
1276
	lpStruct->gdCompProc = (CProcHndl)(*env)->GetIntField(env, lpObject, GDeviceFc.gdCompProc);
1276
	lpStruct->gdCompProc = (CProcHndl)(*env)->GetIntField(env, lpObject, GDeviceFc.gdCompProc);
1277
	lpStruct->gdFlags = (*env)->GetShortField(env, lpObject, GDeviceFc.gdFlags);
1277
	lpStruct->gdFlags = (*env)->GetShortField(env, lpObject, GDeviceFc.gdFlags);
1278
	lpStruct->gdPMap = (PixMapHandle)(*env)->GetIntField(env, lpObject, GDeviceFc.gdPMap);
1278
	lpStruct->gdPMap = (PixMapHandle)(*env)->GetIntField(env, lpObject, GDeviceFc.gdPMap);
1279
	lpStruct->gdRefCon = (*env)->GetIntField(env, lpObject, GDeviceFc.gdRefCon);
1279
	lpStruct->gdRefCon = (*env)->GetIntField(env, lpObject, GDeviceFc.gdRefCon);
1280
	lpStruct->gdNextGD = (GDHandle)(*env)->GetIntField(env, lpObject, GDeviceFc.gdNextGD);
1280
	lpStruct->gdNextGD = (GDHandle)(*env)->GetIntField(env, lpObject, GDeviceFc.gdNextGD);
1281
	lpStruct->gdRect.left = (*env)->GetShortField(env, lpObject, GDeviceFc.left);
1281
	lpStruct->gdRect.left = (*env)->GetShortField(env, lpObject, GDeviceFc.left);
1282
	lpStruct->gdRect.top = (*env)->GetShortField(env, lpObject, GDeviceFc.top);
1282
	lpStruct->gdRect.top = (*env)->GetShortField(env, lpObject, GDeviceFc.top);
1283
	lpStruct->gdRect.right = (*env)->GetShortField(env, lpObject, GDeviceFc.right);
1283
	lpStruct->gdRect.right = (*env)->GetShortField(env, lpObject, GDeviceFc.right);
1284
	lpStruct->gdRect.bottom = (*env)->GetShortField(env, lpObject, GDeviceFc.bottom);
1284
	lpStruct->gdRect.bottom = (*env)->GetShortField(env, lpObject, GDeviceFc.bottom);
1285
	lpStruct->gdMode = (*env)->GetIntField(env, lpObject, GDeviceFc.gdMode);
1285
	lpStruct->gdMode = (*env)->GetIntField(env, lpObject, GDeviceFc.gdMode);
1286
	lpStruct->gdCCBytes = (*env)->GetShortField(env, lpObject, GDeviceFc.gdCCBytes);
1286
	lpStruct->gdCCBytes = (*env)->GetShortField(env, lpObject, GDeviceFc.gdCCBytes);
1287
	lpStruct->gdCCDepth = (*env)->GetShortField(env, lpObject, GDeviceFc.gdCCDepth);
1287
	lpStruct->gdCCDepth = (*env)->GetShortField(env, lpObject, GDeviceFc.gdCCDepth);
1288
	lpStruct->gdCCXData = (Handle)(*env)->GetIntField(env, lpObject, GDeviceFc.gdCCXData);
1288
	lpStruct->gdCCXData = (Handle)(*env)->GetIntField(env, lpObject, GDeviceFc.gdCCXData);
1289
	lpStruct->gdCCXMask = (Handle)(*env)->GetIntField(env, lpObject, GDeviceFc.gdCCXMask);
1289
	lpStruct->gdCCXMask = (Handle)(*env)->GetIntField(env, lpObject, GDeviceFc.gdCCXMask);
1290
	lpStruct->gdExt = (Handle)(*env)->GetIntField(env, lpObject, GDeviceFc.gdExt);
1290
	lpStruct->gdExt = (Handle)(*env)->GetIntField(env, lpObject, GDeviceFc.gdExt);
1291
	return lpStruct;
1291
	return lpStruct;
1292
}
1292
}
1293
1293
1294
void setGDeviceFields(JNIEnv *env, jobject lpObject, GDevice *lpStruct)
1294
void setGDeviceFields(JNIEnv *env, jobject lpObject, GDevice *lpStruct)
1295
{
1295
{
1296
	if (!GDeviceFc.cached) cacheGDeviceFields(env, lpObject);
1296
	if (!GDeviceFc.cached) cacheGDeviceFields(env, lpObject);
1297
	(*env)->SetShortField(env, lpObject, GDeviceFc.gdRefNum, (jshort)lpStruct->gdRefNum);
1297
	(*env)->SetShortField(env, lpObject, GDeviceFc.gdRefNum, (jshort)lpStruct->gdRefNum);
1298
	(*env)->SetShortField(env, lpObject, GDeviceFc.gdID, (jshort)lpStruct->gdID);
1298
	(*env)->SetShortField(env, lpObject, GDeviceFc.gdID, (jshort)lpStruct->gdID);
1299
	(*env)->SetShortField(env, lpObject, GDeviceFc.gdType, (jshort)lpStruct->gdType);
1299
	(*env)->SetShortField(env, lpObject, GDeviceFc.gdType, (jshort)lpStruct->gdType);
1300
	(*env)->SetIntField(env, lpObject, GDeviceFc.gdITable, (jint)lpStruct->gdITable);
1300
	(*env)->SetIntField(env, lpObject, GDeviceFc.gdITable, (jint)lpStruct->gdITable);
1301
	(*env)->SetShortField(env, lpObject, GDeviceFc.gdResPref, (jshort)lpStruct->gdResPref);
1301
	(*env)->SetShortField(env, lpObject, GDeviceFc.gdResPref, (jshort)lpStruct->gdResPref);
1302
	(*env)->SetIntField(env, lpObject, GDeviceFc.gdSearchProc, (jint)lpStruct->gdSearchProc);
1302
	(*env)->SetIntField(env, lpObject, GDeviceFc.gdSearchProc, (jint)lpStruct->gdSearchProc);
1303
	(*env)->SetIntField(env, lpObject, GDeviceFc.gdCompProc, (jint)lpStruct->gdCompProc);
1303
	(*env)->SetIntField(env, lpObject, GDeviceFc.gdCompProc, (jint)lpStruct->gdCompProc);
1304
	(*env)->SetShortField(env, lpObject, GDeviceFc.gdFlags, (jshort)lpStruct->gdFlags);
1304
	(*env)->SetShortField(env, lpObject, GDeviceFc.gdFlags, (jshort)lpStruct->gdFlags);
1305
	(*env)->SetIntField(env, lpObject, GDeviceFc.gdPMap, (jint)lpStruct->gdPMap);
1305
	(*env)->SetIntField(env, lpObject, GDeviceFc.gdPMap, (jint)lpStruct->gdPMap);
1306
	(*env)->SetIntField(env, lpObject, GDeviceFc.gdRefCon, (jint)lpStruct->gdRefCon);
1306
	(*env)->SetIntField(env, lpObject, GDeviceFc.gdRefCon, (jint)lpStruct->gdRefCon);
1307
	(*env)->SetIntField(env, lpObject, GDeviceFc.gdNextGD, (jint)lpStruct->gdNextGD);
1307
	(*env)->SetIntField(env, lpObject, GDeviceFc.gdNextGD, (jint)lpStruct->gdNextGD);
1308
	(*env)->SetShortField(env, lpObject, GDeviceFc.left, (jshort)lpStruct->gdRect.left);
1308
	(*env)->SetShortField(env, lpObject, GDeviceFc.left, (jshort)lpStruct->gdRect.left);
1309
	(*env)->SetShortField(env, lpObject, GDeviceFc.top, (jshort)lpStruct->gdRect.top);
1309
	(*env)->SetShortField(env, lpObject, GDeviceFc.top, (jshort)lpStruct->gdRect.top);
1310
	(*env)->SetShortField(env, lpObject, GDeviceFc.right, (jshort)lpStruct->gdRect.right);
1310
	(*env)->SetShortField(env, lpObject, GDeviceFc.right, (jshort)lpStruct->gdRect.right);
1311
	(*env)->SetShortField(env, lpObject, GDeviceFc.bottom, (jshort)lpStruct->gdRect.bottom);
1311
	(*env)->SetShortField(env, lpObject, GDeviceFc.bottom, (jshort)lpStruct->gdRect.bottom);
1312
	(*env)->SetIntField(env, lpObject, GDeviceFc.gdMode, (jint)lpStruct->gdMode);
1312
	(*env)->SetIntField(env, lpObject, GDeviceFc.gdMode, (jint)lpStruct->gdMode);
1313
	(*env)->SetShortField(env, lpObject, GDeviceFc.gdCCBytes, (jshort)lpStruct->gdCCBytes);
1313
	(*env)->SetShortField(env, lpObject, GDeviceFc.gdCCBytes, (jshort)lpStruct->gdCCBytes);
1314
	(*env)->SetShortField(env, lpObject, GDeviceFc.gdCCDepth, (jshort)lpStruct->gdCCDepth);
1314
	(*env)->SetShortField(env, lpObject, GDeviceFc.gdCCDepth, (jshort)lpStruct->gdCCDepth);
1315
	(*env)->SetIntField(env, lpObject, GDeviceFc.gdCCXData, (jint)lpStruct->gdCCXData);
1315
	(*env)->SetIntField(env, lpObject, GDeviceFc.gdCCXData, (jint)lpStruct->gdCCXData);
1316
	(*env)->SetIntField(env, lpObject, GDeviceFc.gdCCXMask, (jint)lpStruct->gdCCXMask);
1316
	(*env)->SetIntField(env, lpObject, GDeviceFc.gdCCXMask, (jint)lpStruct->gdCCXMask);
1317
	(*env)->SetIntField(env, lpObject, GDeviceFc.gdExt, (jint)lpStruct->gdExt);
1317
	(*env)->SetIntField(env, lpObject, GDeviceFc.gdExt, (jint)lpStruct->gdExt);
1318
}
1318
}
1319
#endif
1319
#endif
1320
1320
1321
#ifndef NO_HICommand
1321
#ifndef NO_HICommand
1322
typedef struct HICommand_FID_CACHE {
1322
typedef struct HICommand_FID_CACHE {
1323
	int cached;
1323
	int cached;
1324
	jclass clazz;
1324
	jclass clazz;
1325
	jfieldID attributes, commandID, menu_menuRef, menu_menuItemIndex;
1325
	jfieldID attributes, commandID, menu_menuRef, menu_menuItemIndex;
1326
} HICommand_FID_CACHE;
1326
} HICommand_FID_CACHE;
1327
1327
1328
HICommand_FID_CACHE HICommandFc;
1328
HICommand_FID_CACHE HICommandFc;
1329
1329
1330
void cacheHICommandFields(JNIEnv *env, jobject lpObject)
1330
void cacheHICommandFields(JNIEnv *env, jobject lpObject)
1331
{
1331
{
1332
	if (HICommandFc.cached) return;
1332
	if (HICommandFc.cached) return;
1333
	HICommandFc.clazz = (*env)->GetObjectClass(env, lpObject);
1333
	HICommandFc.clazz = (*env)->GetObjectClass(env, lpObject);
1334
	HICommandFc.attributes = (*env)->GetFieldID(env, HICommandFc.clazz, "attributes", "I");
1334
	HICommandFc.attributes = (*env)->GetFieldID(env, HICommandFc.clazz, "attributes", "I");
1335
	HICommandFc.commandID = (*env)->GetFieldID(env, HICommandFc.clazz, "commandID", "I");
1335
	HICommandFc.commandID = (*env)->GetFieldID(env, HICommandFc.clazz, "commandID", "I");
1336
	HICommandFc.menu_menuRef = (*env)->GetFieldID(env, HICommandFc.clazz, "menu_menuRef", "I");
1336
	HICommandFc.menu_menuRef = (*env)->GetFieldID(env, HICommandFc.clazz, "menu_menuRef", "I");
1337
	HICommandFc.menu_menuItemIndex = (*env)->GetFieldID(env, HICommandFc.clazz, "menu_menuItemIndex", "S");
1337
	HICommandFc.menu_menuItemIndex = (*env)->GetFieldID(env, HICommandFc.clazz, "menu_menuItemIndex", "S");
1338
	HICommandFc.cached = 1;
1338
	HICommandFc.cached = 1;
1339
}
1339
}
1340
1340
1341
HICommand *getHICommandFields(JNIEnv *env, jobject lpObject, HICommand *lpStruct)
1341
HICommand *getHICommandFields(JNIEnv *env, jobject lpObject, HICommand *lpStruct)
1342
{
1342
{
1343
	if (!HICommandFc.cached) cacheHICommandFields(env, lpObject);
1343
	if (!HICommandFc.cached) cacheHICommandFields(env, lpObject);
1344
	lpStruct->attributes = (*env)->GetIntField(env, lpObject, HICommandFc.attributes);
1344
	lpStruct->attributes = (*env)->GetIntField(env, lpObject, HICommandFc.attributes);
1345
	lpStruct->commandID = (*env)->GetIntField(env, lpObject, HICommandFc.commandID);
1345
	lpStruct->commandID = (*env)->GetIntField(env, lpObject, HICommandFc.commandID);
1346
	lpStruct->menu.menuRef = (MenuRef)(*env)->GetIntField(env, lpObject, HICommandFc.menu_menuRef);
1346
	lpStruct->menu.menuRef = (MenuRef)(*env)->GetIntField(env, lpObject, HICommandFc.menu_menuRef);
1347
	lpStruct->menu.menuItemIndex = (MenuItemIndex)(*env)->GetShortField(env, lpObject, HICommandFc.menu_menuItemIndex);
1347
	lpStruct->menu.menuItemIndex = (MenuItemIndex)(*env)->GetShortField(env, lpObject, HICommandFc.menu_menuItemIndex);
1348
	return lpStruct;
1348
	return lpStruct;
1349
}
1349
}
1350
1350
1351
void setHICommandFields(JNIEnv *env, jobject lpObject, HICommand *lpStruct)
1351
void setHICommandFields(JNIEnv *env, jobject lpObject, HICommand *lpStruct)
1352
{
1352
{
1353
	if (!HICommandFc.cached) cacheHICommandFields(env, lpObject);
1353
	if (!HICommandFc.cached) cacheHICommandFields(env, lpObject);
1354
	(*env)->SetIntField(env, lpObject, HICommandFc.attributes, (jint)lpStruct->attributes);
1354
	(*env)->SetIntField(env, lpObject, HICommandFc.attributes, (jint)lpStruct->attributes);
1355
	(*env)->SetIntField(env, lpObject, HICommandFc.commandID, (jint)lpStruct->commandID);
1355
	(*env)->SetIntField(env, lpObject, HICommandFc.commandID, (jint)lpStruct->commandID);
1356
	(*env)->SetIntField(env, lpObject, HICommandFc.menu_menuRef, (jint)lpStruct->menu.menuRef);
1356
	(*env)->SetIntField(env, lpObject, HICommandFc.menu_menuRef, (jint)lpStruct->menu.menuRef);
1357
	(*env)->SetShortField(env, lpObject, HICommandFc.menu_menuItemIndex, (jshort)lpStruct->menu.menuItemIndex);
1357
	(*env)->SetShortField(env, lpObject, HICommandFc.menu_menuItemIndex, (jshort)lpStruct->menu.menuItemIndex);
1358
}
1358
}
1359
#endif
1359
#endif
1360
1360
1361
#ifndef NO_HMHelpContentRec
1361
#ifndef NO_HMHelpContentRec
1362
typedef struct HMHelpContentRec_FID_CACHE {
1362
typedef struct HMHelpContentRec_FID_CACHE {
1363
	int cached;
1363
	int cached;
1364
	jclass clazz;
1364
	jclass clazz;
1365
	jfieldID version, absHotRect_top, absHotRect_left, absHotRect_bottom, absHotRect_right, tagSide, content0_contentType, content0_tagCFString, content1_contentType, content1_tagCFString;
1365
	jfieldID version, absHotRect_top, absHotRect_left, absHotRect_bottom, absHotRect_right, tagSide, content0_contentType, content0_tagCFString, content1_contentType, content1_tagCFString;
1366
} HMHelpContentRec_FID_CACHE;
1366
} HMHelpContentRec_FID_CACHE;
1367
1367
1368
HMHelpContentRec_FID_CACHE HMHelpContentRecFc;
1368
HMHelpContentRec_FID_CACHE HMHelpContentRecFc;
1369
1369
1370
void cacheHMHelpContentRecFields(JNIEnv *env, jobject lpObject)
1370
void cacheHMHelpContentRecFields(JNIEnv *env, jobject lpObject)
1371
{
1371
{
1372
	if (HMHelpContentRecFc.cached) return;
1372
	if (HMHelpContentRecFc.cached) return;
1373
	HMHelpContentRecFc.clazz = (*env)->GetObjectClass(env, lpObject);
1373
	HMHelpContentRecFc.clazz = (*env)->GetObjectClass(env, lpObject);
1374
	HMHelpContentRecFc.version = (*env)->GetFieldID(env, HMHelpContentRecFc.clazz, "version", "I");
1374
	HMHelpContentRecFc.version = (*env)->GetFieldID(env, HMHelpContentRecFc.clazz, "version", "I");
1375
	HMHelpContentRecFc.absHotRect_top = (*env)->GetFieldID(env, HMHelpContentRecFc.clazz, "absHotRect_top", "S");
1375
	HMHelpContentRecFc.absHotRect_top = (*env)->GetFieldID(env, HMHelpContentRecFc.clazz, "absHotRect_top", "S");
1376
	HMHelpContentRecFc.absHotRect_left = (*env)->GetFieldID(env, HMHelpContentRecFc.clazz, "absHotRect_left", "S");
1376
	HMHelpContentRecFc.absHotRect_left = (*env)->GetFieldID(env, HMHelpContentRecFc.clazz, "absHotRect_left", "S");
1377
	HMHelpContentRecFc.absHotRect_bottom = (*env)->GetFieldID(env, HMHelpContentRecFc.clazz, "absHotRect_bottom", "S");
1377
	HMHelpContentRecFc.absHotRect_bottom = (*env)->GetFieldID(env, HMHelpContentRecFc.clazz, "absHotRect_bottom", "S");
1378
	HMHelpContentRecFc.absHotRect_right = (*env)->GetFieldID(env, HMHelpContentRecFc.clazz, "absHotRect_right", "S");
1378
	HMHelpContentRecFc.absHotRect_right = (*env)->GetFieldID(env, HMHelpContentRecFc.clazz, "absHotRect_right", "S");
1379
	HMHelpContentRecFc.tagSide = (*env)->GetFieldID(env, HMHelpContentRecFc.clazz, "tagSide", "S");
1379
	HMHelpContentRecFc.tagSide = (*env)->GetFieldID(env, HMHelpContentRecFc.clazz, "tagSide", "S");
1380
	HMHelpContentRecFc.content0_contentType = (*env)->GetFieldID(env, HMHelpContentRecFc.clazz, "content0_contentType", "I");
1380
	HMHelpContentRecFc.content0_contentType = (*env)->GetFieldID(env, HMHelpContentRecFc.clazz, "content0_contentType", "I");
1381
	HMHelpContentRecFc.content0_tagCFString = (*env)->GetFieldID(env, HMHelpContentRecFc.clazz, "content0_tagCFString", "I");
1381
	HMHelpContentRecFc.content0_tagCFString = (*env)->GetFieldID(env, HMHelpContentRecFc.clazz, "content0_tagCFString", "I");
1382
	HMHelpContentRecFc.content1_contentType = (*env)->GetFieldID(env, HMHelpContentRecFc.clazz, "content1_contentType", "I");
1382
	HMHelpContentRecFc.content1_contentType = (*env)->GetFieldID(env, HMHelpContentRecFc.clazz, "content1_contentType", "I");
1383
	HMHelpContentRecFc.content1_tagCFString = (*env)->GetFieldID(env, HMHelpContentRecFc.clazz, "content1_tagCFString", "I");
1383
	HMHelpContentRecFc.content1_tagCFString = (*env)->GetFieldID(env, HMHelpContentRecFc.clazz, "content1_tagCFString", "I");
1384
	HMHelpContentRecFc.cached = 1;
1384
	HMHelpContentRecFc.cached = 1;
1385
}
1385
}
1386
1386
1387
HMHelpContentRec *getHMHelpContentRecFields(JNIEnv *env, jobject lpObject, HMHelpContentRec *lpStruct)
1387
HMHelpContentRec *getHMHelpContentRecFields(JNIEnv *env, jobject lpObject, HMHelpContentRec *lpStruct)
1388
{
1388
{
1389
	if (!HMHelpContentRecFc.cached) cacheHMHelpContentRecFields(env, lpObject);
1389
	if (!HMHelpContentRecFc.cached) cacheHMHelpContentRecFields(env, lpObject);
1390
	lpStruct->version = (*env)->GetIntField(env, lpObject, HMHelpContentRecFc.version);
1390
	lpStruct->version = (*env)->GetIntField(env, lpObject, HMHelpContentRecFc.version);
1391
	lpStruct->absHotRect.top = (*env)->GetShortField(env, lpObject, HMHelpContentRecFc.absHotRect_top);
1391
	lpStruct->absHotRect.top = (*env)->GetShortField(env, lpObject, HMHelpContentRecFc.absHotRect_top);
1392
	lpStruct->absHotRect.left = (*env)->GetShortField(env, lpObject, HMHelpContentRecFc.absHotRect_left);
1392
	lpStruct->absHotRect.left = (*env)->GetShortField(env, lpObject, HMHelpContentRecFc.absHotRect_left);
1393
	lpStruct->absHotRect.bottom = (*env)->GetShortField(env, lpObject, HMHelpContentRecFc.absHotRect_bottom);
1393
	lpStruct->absHotRect.bottom = (*env)->GetShortField(env, lpObject, HMHelpContentRecFc.absHotRect_bottom);
1394
	lpStruct->absHotRect.right = (*env)->GetShortField(env, lpObject, HMHelpContentRecFc.absHotRect_right);
1394
	lpStruct->absHotRect.right = (*env)->GetShortField(env, lpObject, HMHelpContentRecFc.absHotRect_right);
1395
	lpStruct->tagSide = (*env)->GetShortField(env, lpObject, HMHelpContentRecFc.tagSide);
1395
	lpStruct->tagSide = (*env)->GetShortField(env, lpObject, HMHelpContentRecFc.tagSide);
1396
	lpStruct->content[0].contentType = (*env)->GetIntField(env, lpObject, HMHelpContentRecFc.content0_contentType);
1396
	lpStruct->content[0].contentType = (*env)->GetIntField(env, lpObject, HMHelpContentRecFc.content0_contentType);
1397
	lpStruct->content[0].u.tagCFString = (CFStringRef)(*env)->GetIntField(env, lpObject, HMHelpContentRecFc.content0_tagCFString);
1397
	lpStruct->content[0].u.tagCFString = (CFStringRef)(*env)->GetIntField(env, lpObject, HMHelpContentRecFc.content0_tagCFString);
1398
	lpStruct->content[1].contentType = (*env)->GetIntField(env, lpObject, HMHelpContentRecFc.content1_contentType);
1398
	lpStruct->content[1].contentType = (*env)->GetIntField(env, lpObject, HMHelpContentRecFc.content1_contentType);
1399
	lpStruct->content[1].u.tagCFString = (CFStringRef)(*env)->GetIntField(env, lpObject, HMHelpContentRecFc.content1_tagCFString);
1399
	lpStruct->content[1].u.tagCFString = (CFStringRef)(*env)->GetIntField(env, lpObject, HMHelpContentRecFc.content1_tagCFString);
1400
	return lpStruct;
1400
	return lpStruct;
1401
}
1401
}
1402
1402
1403
void setHMHelpContentRecFields(JNIEnv *env, jobject lpObject, HMHelpContentRec *lpStruct)
1403
void setHMHelpContentRecFields(JNIEnv *env, jobject lpObject, HMHelpContentRec *lpStruct)
1404
{
1404
{
1405
	if (!HMHelpContentRecFc.cached) cacheHMHelpContentRecFields(env, lpObject);
1405
	if (!HMHelpContentRecFc.cached) cacheHMHelpContentRecFields(env, lpObject);
1406
	(*env)->SetIntField(env, lpObject, HMHelpContentRecFc.version, (jint)lpStruct->version);
1406
	(*env)->SetIntField(env, lpObject, HMHelpContentRecFc.version, (jint)lpStruct->version);
1407
	(*env)->SetShortField(env, lpObject, HMHelpContentRecFc.absHotRect_top, (jshort)lpStruct->absHotRect.top);
1407
	(*env)->SetShortField(env, lpObject, HMHelpContentRecFc.absHotRect_top, (jshort)lpStruct->absHotRect.top);
1408
	(*env)->SetShortField(env, lpObject, HMHelpContentRecFc.absHotRect_left, (jshort)lpStruct->absHotRect.left);
1408
	(*env)->SetShortField(env, lpObject, HMHelpContentRecFc.absHotRect_left, (jshort)lpStruct->absHotRect.left);
1409
	(*env)->SetShortField(env, lpObject, HMHelpContentRecFc.absHotRect_bottom, (jshort)lpStruct->absHotRect.bottom);
1409
	(*env)->SetShortField(env, lpObject, HMHelpContentRecFc.absHotRect_bottom, (jshort)lpStruct->absHotRect.bottom);
1410
	(*env)->SetShortField(env, lpObject, HMHelpContentRecFc.absHotRect_right, (jshort)lpStruct->absHotRect.right);
1410
	(*env)->SetShortField(env, lpObject, HMHelpContentRecFc.absHotRect_right, (jshort)lpStruct->absHotRect.right);
1411
	(*env)->SetShortField(env, lpObject, HMHelpContentRecFc.tagSide, (jshort)lpStruct->tagSide);
1411
	(*env)->SetShortField(env, lpObject, HMHelpContentRecFc.tagSide, (jshort)lpStruct->tagSide);
1412
	(*env)->SetIntField(env, lpObject, HMHelpContentRecFc.content0_contentType, (jint)lpStruct->content[0].contentType);
1412
	(*env)->SetIntField(env, lpObject, HMHelpContentRecFc.content0_contentType, (jint)lpStruct->content[0].contentType);
1413
	(*env)->SetIntField(env, lpObject, HMHelpContentRecFc.content0_tagCFString, (jint)lpStruct->content[0].u.tagCFString);
1413
	(*env)->SetIntField(env, lpObject, HMHelpContentRecFc.content0_tagCFString, (jint)lpStruct->content[0].u.tagCFString);
1414
	(*env)->SetIntField(env, lpObject, HMHelpContentRecFc.content1_contentType, (jint)lpStruct->content[1].contentType);
1414
	(*env)->SetIntField(env, lpObject, HMHelpContentRecFc.content1_contentType, (jint)lpStruct->content[1].contentType);
1415
	(*env)->SetIntField(env, lpObject, HMHelpContentRecFc.content1_tagCFString, (jint)lpStruct->content[1].u.tagCFString);
1415
	(*env)->SetIntField(env, lpObject, HMHelpContentRecFc.content1_tagCFString, (jint)lpStruct->content[1].u.tagCFString);
1416
}
1416
}
1417
#endif
1417
#endif
1418
1418
1419
#ifndef NO_MenuTrackingData
1419
#ifndef NO_MenuTrackingData
1420
typedef struct MenuTrackingData_FID_CACHE {
1420
typedef struct MenuTrackingData_FID_CACHE {
1421
	int cached;
1421
	int cached;
1422
	jclass clazz;
1422
	jclass clazz;
1423
	jfieldID menu, itemSelected, itemUnderMouse, top, left, bottom, right, virtualMenuTop, virtualMenuBottom;
1423
	jfieldID menu, itemSelected, itemUnderMouse, top, left, bottom, right, virtualMenuTop, virtualMenuBottom;
1424
} MenuTrackingData_FID_CACHE;
1424
} MenuTrackingData_FID_CACHE;
1425
1425
1426
MenuTrackingData_FID_CACHE MenuTrackingDataFc;
1426
MenuTrackingData_FID_CACHE MenuTrackingDataFc;
1427
1427
1428
void cacheMenuTrackingDataFields(JNIEnv *env, jobject lpObject)
1428
void cacheMenuTrackingDataFields(JNIEnv *env, jobject lpObject)
1429
{
1429
{
1430
	if (MenuTrackingDataFc.cached) return;
1430
	if (MenuTrackingDataFc.cached) return;
1431
	MenuTrackingDataFc.clazz = (*env)->GetObjectClass(env, lpObject);
1431
	MenuTrackingDataFc.clazz = (*env)->GetObjectClass(env, lpObject);
1432
	MenuTrackingDataFc.menu = (*env)->GetFieldID(env, MenuTrackingDataFc.clazz, "menu", "I");
1432
	MenuTrackingDataFc.menu = (*env)->GetFieldID(env, MenuTrackingDataFc.clazz, "menu", "I");
1433
	MenuTrackingDataFc.itemSelected = (*env)->GetFieldID(env, MenuTrackingDataFc.clazz, "itemSelected", "S");
1433
	MenuTrackingDataFc.itemSelected = (*env)->GetFieldID(env, MenuTrackingDataFc.clazz, "itemSelected", "S");
1434
	MenuTrackingDataFc.itemUnderMouse = (*env)->GetFieldID(env, MenuTrackingDataFc.clazz, "itemUnderMouse", "S");
1434
	MenuTrackingDataFc.itemUnderMouse = (*env)->GetFieldID(env, MenuTrackingDataFc.clazz, "itemUnderMouse", "S");
1435
	MenuTrackingDataFc.top = (*env)->GetFieldID(env, MenuTrackingDataFc.clazz, "top", "S");
1435
	MenuTrackingDataFc.top = (*env)->GetFieldID(env, MenuTrackingDataFc.clazz, "top", "S");
1436
	MenuTrackingDataFc.left = (*env)->GetFieldID(env, MenuTrackingDataFc.clazz, "left", "S");
1436
	MenuTrackingDataFc.left = (*env)->GetFieldID(env, MenuTrackingDataFc.clazz, "left", "S");
1437
	MenuTrackingDataFc.bottom = (*env)->GetFieldID(env, MenuTrackingDataFc.clazz, "bottom", "S");
1437
	MenuTrackingDataFc.bottom = (*env)->GetFieldID(env, MenuTrackingDataFc.clazz, "bottom", "S");
1438
	MenuTrackingDataFc.right = (*env)->GetFieldID(env, MenuTrackingDataFc.clazz, "right", "S");
1438
	MenuTrackingDataFc.right = (*env)->GetFieldID(env, MenuTrackingDataFc.clazz, "right", "S");
1439
	MenuTrackingDataFc.virtualMenuTop = (*env)->GetFieldID(env, MenuTrackingDataFc.clazz, "virtualMenuTop", "I");
1439
	MenuTrackingDataFc.virtualMenuTop = (*env)->GetFieldID(env, MenuTrackingDataFc.clazz, "virtualMenuTop", "I");
1440
	MenuTrackingDataFc.virtualMenuBottom = (*env)->GetFieldID(env, MenuTrackingDataFc.clazz, "virtualMenuBottom", "I");
1440
	MenuTrackingDataFc.virtualMenuBottom = (*env)->GetFieldID(env, MenuTrackingDataFc.clazz, "virtualMenuBottom", "I");
1441
	MenuTrackingDataFc.cached = 1;
1441
	MenuTrackingDataFc.cached = 1;
1442
}
1442
}
1443
1443
1444
MenuTrackingData *getMenuTrackingDataFields(JNIEnv *env, jobject lpObject, MenuTrackingData *lpStruct)
1444
MenuTrackingData *getMenuTrackingDataFields(JNIEnv *env, jobject lpObject, MenuTrackingData *lpStruct)
1445
{
1445
{
1446
	if (!MenuTrackingDataFc.cached) cacheMenuTrackingDataFields(env, lpObject);
1446
	if (!MenuTrackingDataFc.cached) cacheMenuTrackingDataFields(env, lpObject);
1447
	lpStruct->menu = (MenuRef)(*env)->GetIntField(env, lpObject, MenuTrackingDataFc.menu);
1447
	lpStruct->menu = (MenuRef)(*env)->GetIntField(env, lpObject, MenuTrackingDataFc.menu);
1448
	lpStruct->itemSelected = (*env)->GetShortField(env, lpObject, MenuTrackingDataFc.itemSelected);
1448
	lpStruct->itemSelected = (*env)->GetShortField(env, lpObject, MenuTrackingDataFc.itemSelected);
1449
	lpStruct->itemUnderMouse = (*env)->GetShortField(env, lpObject, MenuTrackingDataFc.itemUnderMouse);
1449
	lpStruct->itemUnderMouse = (*env)->GetShortField(env, lpObject, MenuTrackingDataFc.itemUnderMouse);
1450
	lpStruct->itemRect.top = (*env)->GetShortField(env, lpObject, MenuTrackingDataFc.top);
1450
	lpStruct->itemRect.top = (*env)->GetShortField(env, lpObject, MenuTrackingDataFc.top);
1451
	lpStruct->itemRect.left = (*env)->GetShortField(env, lpObject, MenuTrackingDataFc.left);
1451
	lpStruct->itemRect.left = (*env)->GetShortField(env, lpObject, MenuTrackingDataFc.left);
1452
	lpStruct->itemRect.bottom = (*env)->GetShortField(env, lpObject, MenuTrackingDataFc.bottom);
1452
	lpStruct->itemRect.bottom = (*env)->GetShortField(env, lpObject, MenuTrackingDataFc.bottom);
1453
	lpStruct->itemRect.right = (*env)->GetShortField(env, lpObject, MenuTrackingDataFc.right);
1453
	lpStruct->itemRect.right = (*env)->GetShortField(env, lpObject, MenuTrackingDataFc.right);
1454
	lpStruct->virtualMenuTop = (*env)->GetIntField(env, lpObject, MenuTrackingDataFc.virtualMenuTop);
1454
	lpStruct->virtualMenuTop = (*env)->GetIntField(env, lpObject, MenuTrackingDataFc.virtualMenuTop);
1455
	lpStruct->virtualMenuBottom = (*env)->GetIntField(env, lpObject, MenuTrackingDataFc.virtualMenuBottom);
1455
	lpStruct->virtualMenuBottom = (*env)->GetIntField(env, lpObject, MenuTrackingDataFc.virtualMenuBottom);
1456
	return lpStruct;
1456
	return lpStruct;
1457
}
1457
}
1458
1458
1459
void setMenuTrackingDataFields(JNIEnv *env, jobject lpObject, MenuTrackingData *lpStruct)
1459
void setMenuTrackingDataFields(JNIEnv *env, jobject lpObject, MenuTrackingData *lpStruct)
1460
{
1460
{
1461
	if (!MenuTrackingDataFc.cached) cacheMenuTrackingDataFields(env, lpObject);
1461
	if (!MenuTrackingDataFc.cached) cacheMenuTrackingDataFields(env, lpObject);
1462
	(*env)->SetIntField(env, lpObject, MenuTrackingDataFc.menu, (jint)lpStruct->menu);
1462
	(*env)->SetIntField(env, lpObject, MenuTrackingDataFc.menu, (jint)lpStruct->menu);
1463
	(*env)->SetShortField(env, lpObject, MenuTrackingDataFc.itemSelected, (jshort)lpStruct->itemSelected);
1463
	(*env)->SetShortField(env, lpObject, MenuTrackingDataFc.itemSelected, (jshort)lpStruct->itemSelected);
1464
	(*env)->SetShortField(env, lpObject, MenuTrackingDataFc.itemUnderMouse, (jshort)lpStruct->itemUnderMouse);
1464
	(*env)->SetShortField(env, lpObject, MenuTrackingDataFc.itemUnderMouse, (jshort)lpStruct->itemUnderMouse);
1465
	(*env)->SetShortField(env, lpObject, MenuTrackingDataFc.top, (jshort)lpStruct->itemRect.top);
1465
	(*env)->SetShortField(env, lpObject, MenuTrackingDataFc.top, (jshort)lpStruct->itemRect.top);
1466
	(*env)->SetShortField(env, lpObject, MenuTrackingDataFc.left, (jshort)lpStruct->itemRect.left);
1466
	(*env)->SetShortField(env, lpObject, MenuTrackingDataFc.left, (jshort)lpStruct->itemRect.left);
1467
	(*env)->SetShortField(env, lpObject, MenuTrackingDataFc.bottom, (jshort)lpStruct->itemRect.bottom);
1467
	(*env)->SetShortField(env, lpObject, MenuTrackingDataFc.bottom, (jshort)lpStruct->itemRect.bottom);
1468
	(*env)->SetShortField(env, lpObject, MenuTrackingDataFc.right, (jshort)lpStruct->itemRect.right);
1468
	(*env)->SetShortField(env, lpObject, MenuTrackingDataFc.right, (jshort)lpStruct->itemRect.right);
1469
	(*env)->SetIntField(env, lpObject, MenuTrackingDataFc.virtualMenuTop, (jint)lpStruct->virtualMenuTop);
1469
	(*env)->SetIntField(env, lpObject, MenuTrackingDataFc.virtualMenuTop, (jint)lpStruct->virtualMenuTop);
1470
	(*env)->SetIntField(env, lpObject, MenuTrackingDataFc.virtualMenuBottom, (jint)lpStruct->virtualMenuBottom);
1470
	(*env)->SetIntField(env, lpObject, MenuTrackingDataFc.virtualMenuBottom, (jint)lpStruct->virtualMenuBottom);
1471
}
1471
}
1472
#endif
1472
#endif
1473
1473
1474
#ifndef NO_NavDialogCreationOptions
1474
#ifndef NO_NavDialogCreationOptions
1475
typedef struct NavDialogCreationOptions_FID_CACHE {
1475
typedef struct NavDialogCreationOptions_FID_CACHE {
1476
	int cached;
1476
	int cached;
1477
	jclass clazz;
1477
	jclass clazz;
1478
	jfieldID version, optionFlags, location_h, location_v, clientName, windowTitle, actionButtonLabel, cancelButtonLabel, saveFileName, message, preferenceKey, popupExtension, modality, parentWindow;
1478
	jfieldID version, optionFlags, location_h, location_v, clientName, windowTitle, actionButtonLabel, cancelButtonLabel, saveFileName, message, preferenceKey, popupExtension, modality, parentWindow;
1479
} NavDialogCreationOptions_FID_CACHE;
1479
} NavDialogCreationOptions_FID_CACHE;
1480
1480
1481
NavDialogCreationOptions_FID_CACHE NavDialogCreationOptionsFc;
1481
NavDialogCreationOptions_FID_CACHE NavDialogCreationOptionsFc;
1482
1482
1483
void cacheNavDialogCreationOptionsFields(JNIEnv *env, jobject lpObject)
1483
void cacheNavDialogCreationOptionsFields(JNIEnv *env, jobject lpObject)
1484
{
1484
{
1485
	if (NavDialogCreationOptionsFc.cached) return;
1485
	if (NavDialogCreationOptionsFc.cached) return;
1486
	NavDialogCreationOptionsFc.clazz = (*env)->GetObjectClass(env, lpObject);
1486
	NavDialogCreationOptionsFc.clazz = (*env)->GetObjectClass(env, lpObject);
1487
	NavDialogCreationOptionsFc.version = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "version", "S");
1487
	NavDialogCreationOptionsFc.version = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "version", "S");
1488
	NavDialogCreationOptionsFc.optionFlags = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "optionFlags", "I");
1488
	NavDialogCreationOptionsFc.optionFlags = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "optionFlags", "I");
1489
	NavDialogCreationOptionsFc.location_h = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "location_h", "S");
1489
	NavDialogCreationOptionsFc.location_h = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "location_h", "S");
1490
	NavDialogCreationOptionsFc.location_v = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "location_v", "S");
1490
	NavDialogCreationOptionsFc.location_v = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "location_v", "S");
1491
	NavDialogCreationOptionsFc.clientName = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "clientName", "I");
1491
	NavDialogCreationOptionsFc.clientName = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "clientName", "I");
1492
	NavDialogCreationOptionsFc.windowTitle = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "windowTitle", "I");
1492
	NavDialogCreationOptionsFc.windowTitle = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "windowTitle", "I");
1493
	NavDialogCreationOptionsFc.actionButtonLabel = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "actionButtonLabel", "I");
1493
	NavDialogCreationOptionsFc.actionButtonLabel = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "actionButtonLabel", "I");
1494
	NavDialogCreationOptionsFc.cancelButtonLabel = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "cancelButtonLabel", "I");
1494
	NavDialogCreationOptionsFc.cancelButtonLabel = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "cancelButtonLabel", "I");
1495
	NavDialogCreationOptionsFc.saveFileName = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "saveFileName", "I");
1495
	NavDialogCreationOptionsFc.saveFileName = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "saveFileName", "I");
1496
	NavDialogCreationOptionsFc.message = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "message", "I");
1496
	NavDialogCreationOptionsFc.message = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "message", "I");
1497
	NavDialogCreationOptionsFc.preferenceKey = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "preferenceKey", "I");
1497
	NavDialogCreationOptionsFc.preferenceKey = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "preferenceKey", "I");
1498
	NavDialogCreationOptionsFc.popupExtension = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "popupExtension", "I");
1498
	NavDialogCreationOptionsFc.popupExtension = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "popupExtension", "I");
1499
	NavDialogCreationOptionsFc.modality = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "modality", "I");
1499
	NavDialogCreationOptionsFc.modality = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "modality", "I");
1500
	NavDialogCreationOptionsFc.parentWindow = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "parentWindow", "I");
1500
	NavDialogCreationOptionsFc.parentWindow = (*env)->GetFieldID(env, NavDialogCreationOptionsFc.clazz, "parentWindow", "I");
1501
	NavDialogCreationOptionsFc.cached = 1;
1501
	NavDialogCreationOptionsFc.cached = 1;
1502
}
1502
}
1503
1503
1504
NavDialogCreationOptions *getNavDialogCreationOptionsFields(JNIEnv *env, jobject lpObject, NavDialogCreationOptions *lpStruct)
1504
NavDialogCreationOptions *getNavDialogCreationOptionsFields(JNIEnv *env, jobject lpObject, NavDialogCreationOptions *lpStruct)
1505
{
1505
{
1506
	if (!NavDialogCreationOptionsFc.cached) cacheNavDialogCreationOptionsFields(env, lpObject);
1506
	if (!NavDialogCreationOptionsFc.cached) cacheNavDialogCreationOptionsFields(env, lpObject);
1507
	lpStruct->version = (*env)->GetShortField(env, lpObject, NavDialogCreationOptionsFc.version);
1507
	lpStruct->version = (*env)->GetShortField(env, lpObject, NavDialogCreationOptionsFc.version);
1508
	lpStruct->optionFlags = (NavDialogOptionFlags)(*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.optionFlags);
1508
	lpStruct->optionFlags = (NavDialogOptionFlags)(*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.optionFlags);
1509
	lpStruct->location.h = (*env)->GetShortField(env, lpObject, NavDialogCreationOptionsFc.location_h);
1509
	lpStruct->location.h = (*env)->GetShortField(env, lpObject, NavDialogCreationOptionsFc.location_h);
1510
	lpStruct->location.v = (*env)->GetShortField(env, lpObject, NavDialogCreationOptionsFc.location_v);
1510
	lpStruct->location.v = (*env)->GetShortField(env, lpObject, NavDialogCreationOptionsFc.location_v);
1511
	lpStruct->clientName = (CFStringRef)(*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.clientName);
1511
	lpStruct->clientName = (CFStringRef)(*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.clientName);
1512
	lpStruct->windowTitle = (CFStringRef)(*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.windowTitle);
1512
	lpStruct->windowTitle = (CFStringRef)(*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.windowTitle);
1513
	lpStruct->actionButtonLabel = (CFStringRef)(*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.actionButtonLabel);
1513
	lpStruct->actionButtonLabel = (CFStringRef)(*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.actionButtonLabel);
1514
	lpStruct->cancelButtonLabel = (CFStringRef)(*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.cancelButtonLabel);
1514
	lpStruct->cancelButtonLabel = (CFStringRef)(*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.cancelButtonLabel);
1515
	lpStruct->saveFileName = (CFStringRef)(*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.saveFileName);
1515
	lpStruct->saveFileName = (CFStringRef)(*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.saveFileName);
1516
	lpStruct->message = (CFStringRef)(*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.message);
1516
	lpStruct->message = (CFStringRef)(*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.message);
1517
	lpStruct->preferenceKey = (*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.preferenceKey);
1517
	lpStruct->preferenceKey = (*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.preferenceKey);
1518
	lpStruct->popupExtension = (CFArrayRef)(*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.popupExtension);
1518
	lpStruct->popupExtension = (CFArrayRef)(*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.popupExtension);
1519
	lpStruct->modality = (WindowModality)(*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.modality);
1519
	lpStruct->modality = (WindowModality)(*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.modality);
1520
	lpStruct->parentWindow = (WindowRef)(*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.parentWindow);
1520
	lpStruct->parentWindow = (WindowRef)(*env)->GetIntField(env, lpObject, NavDialogCreationOptionsFc.parentWindow);
1521
	return lpStruct;
1521
	return lpStruct;
1522
}
1522
}
1523
1523
1524
void setNavDialogCreationOptionsFields(JNIEnv *env, jobject lpObject, NavDialogCreationOptions *lpStruct)
1524
void setNavDialogCreationOptionsFields(JNIEnv *env, jobject lpObject, NavDialogCreationOptions *lpStruct)
1525
{
1525
{
1526
	if (!NavDialogCreationOptionsFc.cached) cacheNavDialogCreationOptionsFields(env, lpObject);
1526
	if (!NavDialogCreationOptionsFc.cached) cacheNavDialogCreationOptionsFields(env, lpObject);
1527
	(*env)->SetShortField(env, lpObject, NavDialogCreationOptionsFc.version, (jshort)lpStruct->version);
1527
	(*env)->SetShortField(env, lpObject, NavDialogCreationOptionsFc.version, (jshort)lpStruct->version);
1528
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.optionFlags, (jint)lpStruct->optionFlags);
1528
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.optionFlags, (jint)lpStruct->optionFlags);
1529
	(*env)->SetShortField(env, lpObject, NavDialogCreationOptionsFc.location_h, (jshort)lpStruct->location.h);
1529
	(*env)->SetShortField(env, lpObject, NavDialogCreationOptionsFc.location_h, (jshort)lpStruct->location.h);
1530
	(*env)->SetShortField(env, lpObject, NavDialogCreationOptionsFc.location_v, (jshort)lpStruct->location.v);
1530
	(*env)->SetShortField(env, lpObject, NavDialogCreationOptionsFc.location_v, (jshort)lpStruct->location.v);
1531
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.clientName, (jint)lpStruct->clientName);
1531
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.clientName, (jint)lpStruct->clientName);
1532
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.windowTitle, (jint)lpStruct->windowTitle);
1532
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.windowTitle, (jint)lpStruct->windowTitle);
1533
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.actionButtonLabel, (jint)lpStruct->actionButtonLabel);
1533
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.actionButtonLabel, (jint)lpStruct->actionButtonLabel);
1534
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.cancelButtonLabel, (jint)lpStruct->cancelButtonLabel);
1534
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.cancelButtonLabel, (jint)lpStruct->cancelButtonLabel);
1535
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.saveFileName, (jint)lpStruct->saveFileName);
1535
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.saveFileName, (jint)lpStruct->saveFileName);
1536
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.message, (jint)lpStruct->message);
1536
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.message, (jint)lpStruct->message);
1537
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.preferenceKey, (jint)lpStruct->preferenceKey);
1537
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.preferenceKey, (jint)lpStruct->preferenceKey);
1538
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.popupExtension, (jint)lpStruct->popupExtension);
1538
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.popupExtension, (jint)lpStruct->popupExtension);
1539
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.modality, (jint)lpStruct->modality);
1539
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.modality, (jint)lpStruct->modality);
1540
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.parentWindow, (jint)lpStruct->parentWindow);
1540
	(*env)->SetIntField(env, lpObject, NavDialogCreationOptionsFc.parentWindow, (jint)lpStruct->parentWindow);
1541
}
1541
}
1542
#endif
1542
#endif
1543
1543
1544
#ifndef NO_NavReplyRecord
1544
#ifndef NO_NavReplyRecord
1545
typedef struct NavReplyRecord_FID_CACHE {
1545
typedef struct NavReplyRecord_FID_CACHE {
1546
	int cached;
1546
	int cached;
1547
	jclass clazz;
1547
	jclass clazz;
1548
	jfieldID version, validRecord, replacing, isStationery, translationNeeded, selection_descriptorType, selection_dataHandle, keyScript, fileTranslation, reserved1, saveFileName, saveFileExtensionHidden, reserved2, reserved;
1548
	jfieldID version, validRecord, replacing, isStationery, translationNeeded, selection_descriptorType, selection_dataHandle, keyScript, fileTranslation, reserved1, saveFileName, saveFileExtensionHidden, reserved2, reserved;
1549
} NavReplyRecord_FID_CACHE;
1549
} NavReplyRecord_FID_CACHE;
1550
1550
1551
NavReplyRecord_FID_CACHE NavReplyRecordFc;
1551
NavReplyRecord_FID_CACHE NavReplyRecordFc;
1552
1552
1553
void cacheNavReplyRecordFields(JNIEnv *env, jobject lpObject)
1553
void cacheNavReplyRecordFields(JNIEnv *env, jobject lpObject)
1554
{
1554
{
1555
	if (NavReplyRecordFc.cached) return;
1555
	if (NavReplyRecordFc.cached) return;
1556
	NavReplyRecordFc.clazz = (*env)->GetObjectClass(env, lpObject);
1556
	NavReplyRecordFc.clazz = (*env)->GetObjectClass(env, lpObject);
1557
	NavReplyRecordFc.version = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "version", "S");
1557
	NavReplyRecordFc.version = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "version", "S");
1558
	NavReplyRecordFc.validRecord = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "validRecord", "Z");
1558
	NavReplyRecordFc.validRecord = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "validRecord", "Z");
1559
	NavReplyRecordFc.replacing = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "replacing", "Z");
1559
	NavReplyRecordFc.replacing = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "replacing", "Z");
1560
	NavReplyRecordFc.isStationery = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "isStationery", "Z");
1560
	NavReplyRecordFc.isStationery = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "isStationery", "Z");
1561
	NavReplyRecordFc.translationNeeded = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "translationNeeded", "Z");
1561
	NavReplyRecordFc.translationNeeded = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "translationNeeded", "Z");
1562
	NavReplyRecordFc.selection_descriptorType = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "selection_descriptorType", "I");
1562
	NavReplyRecordFc.selection_descriptorType = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "selection_descriptorType", "I");
1563
	NavReplyRecordFc.selection_dataHandle = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "selection_dataHandle", "I");
1563
	NavReplyRecordFc.selection_dataHandle = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "selection_dataHandle", "I");
1564
	NavReplyRecordFc.keyScript = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "keyScript", "S");
1564
	NavReplyRecordFc.keyScript = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "keyScript", "S");
1565
	NavReplyRecordFc.fileTranslation = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "fileTranslation", "I");
1565
	NavReplyRecordFc.fileTranslation = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "fileTranslation", "I");
1566
	NavReplyRecordFc.reserved1 = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "reserved1", "I");
1566
	NavReplyRecordFc.reserved1 = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "reserved1", "I");
1567
	NavReplyRecordFc.saveFileName = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "saveFileName", "I");
1567
	NavReplyRecordFc.saveFileName = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "saveFileName", "I");
1568
	NavReplyRecordFc.saveFileExtensionHidden = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "saveFileExtensionHidden", "Z");
1568
	NavReplyRecordFc.saveFileExtensionHidden = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "saveFileExtensionHidden", "Z");
1569
	NavReplyRecordFc.reserved2 = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "reserved2", "B");
1569
	NavReplyRecordFc.reserved2 = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "reserved2", "B");
1570
	NavReplyRecordFc.reserved = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "reserved", "[B");
1570
	NavReplyRecordFc.reserved = (*env)->GetFieldID(env, NavReplyRecordFc.clazz, "reserved", "[B");
1571
	NavReplyRecordFc.cached = 1;
1571
	NavReplyRecordFc.cached = 1;
1572
}
1572
}
1573
1573
1574
NavReplyRecord *getNavReplyRecordFields(JNIEnv *env, jobject lpObject, NavReplyRecord *lpStruct)
1574
NavReplyRecord *getNavReplyRecordFields(JNIEnv *env, jobject lpObject, NavReplyRecord *lpStruct)
1575
{
1575
{
1576
	if (!NavReplyRecordFc.cached) cacheNavReplyRecordFields(env, lpObject);
1576
	if (!NavReplyRecordFc.cached) cacheNavReplyRecordFields(env, lpObject);
1577
	lpStruct->version = (UInt16)(*env)->GetShortField(env, lpObject, NavReplyRecordFc.version);
1577
	lpStruct->version = (UInt16)(*env)->GetShortField(env, lpObject, NavReplyRecordFc.version);
1578
	lpStruct->validRecord = (Boolean)(*env)->GetBooleanField(env, lpObject, NavReplyRecordFc.validRecord);
1578
	lpStruct->validRecord = (Boolean)(*env)->GetBooleanField(env, lpObject, NavReplyRecordFc.validRecord);
1579
	lpStruct->replacing = (Boolean)(*env)->GetBooleanField(env, lpObject, NavReplyRecordFc.replacing);
1579
	lpStruct->replacing = (Boolean)(*env)->GetBooleanField(env, lpObject, NavReplyRecordFc.replacing);
1580
	lpStruct->isStationery = (Boolean)(*env)->GetBooleanField(env, lpObject, NavReplyRecordFc.isStationery);
1580
	lpStruct->isStationery = (Boolean)(*env)->GetBooleanField(env, lpObject, NavReplyRecordFc.isStationery);
1581
	lpStruct->translationNeeded = (Boolean)(*env)->GetBooleanField(env, lpObject, NavReplyRecordFc.translationNeeded);
1581
	lpStruct->translationNeeded = (Boolean)(*env)->GetBooleanField(env, lpObject, NavReplyRecordFc.translationNeeded);
1582
	lpStruct->selection.descriptorType = (DescType)(*env)->GetIntField(env, lpObject, NavReplyRecordFc.selection_descriptorType);
1582
	lpStruct->selection.descriptorType = (DescType)(*env)->GetIntField(env, lpObject, NavReplyRecordFc.selection_descriptorType);
1583
	lpStruct->selection.dataHandle = (AEDataStorage)(*env)->GetIntField(env, lpObject, NavReplyRecordFc.selection_dataHandle);
1583
	lpStruct->selection.dataHandle = (AEDataStorage)(*env)->GetIntField(env, lpObject, NavReplyRecordFc.selection_dataHandle);
1584
	lpStruct->keyScript = (ScriptCode)(*env)->GetShortField(env, lpObject, NavReplyRecordFc.keyScript);
1584
	lpStruct->keyScript = (ScriptCode)(*env)->GetShortField(env, lpObject, NavReplyRecordFc.keyScript);
1585
	lpStruct->fileTranslation = (FileTranslationSpecArrayHandle)(*env)->GetIntField(env, lpObject, NavReplyRecordFc.fileTranslation);
1585
	lpStruct->fileTranslation = (FileTranslationSpecArrayHandle)(*env)->GetIntField(env, lpObject, NavReplyRecordFc.fileTranslation);
1586
	lpStruct->reserved1 = (UInt32)(*env)->GetIntField(env, lpObject, NavReplyRecordFc.reserved1);
1586
	lpStruct->reserved1 = (UInt32)(*env)->GetIntField(env, lpObject, NavReplyRecordFc.reserved1);
1587
	lpStruct->saveFileName = (CFStringRef)(*env)->GetIntField(env, lpObject, NavReplyRecordFc.saveFileName);
1587
	lpStruct->saveFileName = (CFStringRef)(*env)->GetIntField(env, lpObject, NavReplyRecordFc.saveFileName);
1588
	lpStruct->saveFileExtensionHidden = (Boolean)(*env)->GetBooleanField(env, lpObject, NavReplyRecordFc.saveFileExtensionHidden);
1588
	lpStruct->saveFileExtensionHidden = (Boolean)(*env)->GetBooleanField(env, lpObject, NavReplyRecordFc.saveFileExtensionHidden);
1589
	lpStruct->reserved2 = (UInt8)(*env)->GetByteField(env, lpObject, NavReplyRecordFc.reserved2);
1589
	lpStruct->reserved2 = (UInt8)(*env)->GetByteField(env, lpObject, NavReplyRecordFc.reserved2);
1590
	{
1590
	{
1591
	jbyteArray lpObject1 = (jbyteArray)(*env)->GetObjectField(env, lpObject, NavReplyRecordFc.reserved);
1591
	jbyteArray lpObject1 = (jbyteArray)(*env)->GetObjectField(env, lpObject, NavReplyRecordFc.reserved);
1592
	(*env)->GetByteArrayRegion(env, lpObject1, 0, sizeof(lpStruct->reserved), (jbyte *)lpStruct->reserved);
1592
	(*env)->GetByteArrayRegion(env, lpObject1, 0, sizeof(lpStruct->reserved), (jbyte *)lpStruct->reserved);
1593
	}
1593
	}
1594
	return lpStruct;
1594
	return lpStruct;
1595
}
1595
}
1596
1596
1597
void setNavReplyRecordFields(JNIEnv *env, jobject lpObject, NavReplyRecord *lpStruct)
1597
void setNavReplyRecordFields(JNIEnv *env, jobject lpObject, NavReplyRecord *lpStruct)
1598
{
1598
{
1599
	if (!NavReplyRecordFc.cached) cacheNavReplyRecordFields(env, lpObject);
1599
	if (!NavReplyRecordFc.cached) cacheNavReplyRecordFields(env, lpObject);
1600
	(*env)->SetShortField(env, lpObject, NavReplyRecordFc.version, (jshort)lpStruct->version);
1600
	(*env)->SetShortField(env, lpObject, NavReplyRecordFc.version, (jshort)lpStruct->version);
1601
	(*env)->SetBooleanField(env, lpObject, NavReplyRecordFc.validRecord, (jboolean)lpStruct->validRecord);
1601
	(*env)->SetBooleanField(env, lpObject, NavReplyRecordFc.validRecord, (jboolean)lpStruct->validRecord);
1602
	(*env)->SetBooleanField(env, lpObject, NavReplyRecordFc.replacing, (jboolean)lpStruct->replacing);
1602
	(*env)->SetBooleanField(env, lpObject, NavReplyRecordFc.replacing, (jboolean)lpStruct->replacing);
1603
	(*env)->SetBooleanField(env, lpObject, NavReplyRecordFc.isStationery, (jboolean)lpStruct->isStationery);
1603
	(*env)->SetBooleanField(env, lpObject, NavReplyRecordFc.isStationery, (jboolean)lpStruct->isStationery);
1604
	(*env)->SetBooleanField(env, lpObject, NavReplyRecordFc.translationNeeded, (jboolean)lpStruct->translationNeeded);
1604
	(*env)->SetBooleanField(env, lpObject, NavReplyRecordFc.translationNeeded, (jboolean)lpStruct->translationNeeded);
1605
	(*env)->SetIntField(env, lpObject, NavReplyRecordFc.selection_descriptorType, (jint)lpStruct->selection.descriptorType);
1605
	(*env)->SetIntField(env, lpObject, NavReplyRecordFc.selection_descriptorType, (jint)lpStruct->selection.descriptorType);
1606
	(*env)->SetIntField(env, lpObject, NavReplyRecordFc.selection_dataHandle, (jint)lpStruct->selection.dataHandle);
1606
	(*env)->SetIntField(env, lpObject, NavReplyRecordFc.selection_dataHandle, (jint)lpStruct->selection.dataHandle);
1607
	(*env)->SetShortField(env, lpObject, NavReplyRecordFc.keyScript, (jshort)lpStruct->keyScript);
1607
	(*env)->SetShortField(env, lpObject, NavReplyRecordFc.keyScript, (jshort)lpStruct->keyScript);
1608
	(*env)->SetIntField(env, lpObject, NavReplyRecordFc.fileTranslation, (jint)lpStruct->fileTranslation);
1608
	(*env)->SetIntField(env, lpObject, NavReplyRecordFc.fileTranslation, (jint)lpStruct->fileTranslation);
1609
	(*env)->SetIntField(env, lpObject, NavReplyRecordFc.reserved1, (jint)lpStruct->reserved1);
1609
	(*env)->SetIntField(env, lpObject, NavReplyRecordFc.reserved1, (jint)lpStruct->reserved1);
1610
	(*env)->SetIntField(env, lpObject, NavReplyRecordFc.saveFileName, (jint)lpStruct->saveFileName);
1610
	(*env)->SetIntField(env, lpObject, NavReplyRecordFc.saveFileName, (jint)lpStruct->saveFileName);
1611
	(*env)->SetBooleanField(env, lpObject, NavReplyRecordFc.saveFileExtensionHidden, (jboolean)lpStruct->saveFileExtensionHidden);
1611
	(*env)->SetBooleanField(env, lpObject, NavReplyRecordFc.saveFileExtensionHidden, (jboolean)lpStruct->saveFileExtensionHidden);
1612
	(*env)->SetByteField(env, lpObject, NavReplyRecordFc.reserved2, (jbyte)lpStruct->reserved2);
1612
	(*env)->SetByteField(env, lpObject, NavReplyRecordFc.reserved2, (jbyte)lpStruct->reserved2);
1613
	{
1613
	{
1614
	jbyteArray lpObject1 = (jbyteArray)(*env)->GetObjectField(env, lpObject, NavReplyRecordFc.reserved);
1614
	jbyteArray lpObject1 = (jbyteArray)(*env)->GetObjectField(env, lpObject, NavReplyRecordFc.reserved);
1615
	(*env)->SetByteArrayRegion(env, lpObject1, 0, sizeof(lpStruct->reserved), (jbyte *)lpStruct->reserved);
1615
	(*env)->SetByteArrayRegion(env, lpObject1, 0, sizeof(lpStruct->reserved), (jbyte *)lpStruct->reserved);
1616
	}
1616
	}
1617
}
1617
}
1618
#endif
1618
#endif
1619
1619
1620
#ifndef NO_PMRect
1620
#ifndef NO_PMRect
1621
typedef struct PMRect_FID_CACHE {
1621
typedef struct PMRect_FID_CACHE {
1622
	int cached;
1622
	int cached;
1623
	jclass clazz;
1623
	jclass clazz;
1624
	jfieldID top, left, bottom, right;
1624
	jfieldID top, left, bottom, right;
1625
} PMRect_FID_CACHE;
1625
} PMRect_FID_CACHE;
1626
1626
1627
PMRect_FID_CACHE PMRectFc;
1627
PMRect_FID_CACHE PMRectFc;
1628
1628
1629
void cachePMRectFields(JNIEnv *env, jobject lpObject)
1629
void cachePMRectFields(JNIEnv *env, jobject lpObject)
1630
{
1630
{
1631
	if (PMRectFc.cached) return;
1631
	if (PMRectFc.cached) return;
1632
	PMRectFc.clazz = (*env)->GetObjectClass(env, lpObject);
1632
	PMRectFc.clazz = (*env)->GetObjectClass(env, lpObject);
1633
	PMRectFc.top = (*env)->GetFieldID(env, PMRectFc.clazz, "top", "D");
1633
	PMRectFc.top = (*env)->GetFieldID(env, PMRectFc.clazz, "top", "D");
1634
	PMRectFc.left = (*env)->GetFieldID(env, PMRectFc.clazz, "left", "D");
1634
	PMRectFc.left = (*env)->GetFieldID(env, PMRectFc.clazz, "left", "D");
1635
	PMRectFc.bottom = (*env)->GetFieldID(env, PMRectFc.clazz, "bottom", "D");
1635
	PMRectFc.bottom = (*env)->GetFieldID(env, PMRectFc.clazz, "bottom", "D");
1636
	PMRectFc.right = (*env)->GetFieldID(env, PMRectFc.clazz, "right", "D");
1636
	PMRectFc.right = (*env)->GetFieldID(env, PMRectFc.clazz, "right", "D");
1637
	PMRectFc.cached = 1;
1637
	PMRectFc.cached = 1;
1638
}
1638
}
1639
1639
1640
PMRect *getPMRectFields(JNIEnv *env, jobject lpObject, PMRect *lpStruct)
1640
PMRect *getPMRectFields(JNIEnv *env, jobject lpObject, PMRect *lpStruct)
1641
{
1641
{
1642
	if (!PMRectFc.cached) cachePMRectFields(env, lpObject);
1642
	if (!PMRectFc.cached) cachePMRectFields(env, lpObject);
1643
	lpStruct->top = (double)(*env)->GetDoubleField(env, lpObject, PMRectFc.top);
1643
	lpStruct->top = (double)(*env)->GetDoubleField(env, lpObject, PMRectFc.top);
1644
	lpStruct->left = (double)(*env)->GetDoubleField(env, lpObject, PMRectFc.left);
1644
	lpStruct->left = (double)(*env)->GetDoubleField(env, lpObject, PMRectFc.left);
1645
	lpStruct->bottom = (double)(*env)->GetDoubleField(env, lpObject, PMRectFc.bottom);
1645
	lpStruct->bottom = (double)(*env)->GetDoubleField(env, lpObject, PMRectFc.bottom);
1646
	lpStruct->right = (double)(*env)->GetDoubleField(env, lpObject, PMRectFc.right);
1646
	lpStruct->right = (double)(*env)->GetDoubleField(env, lpObject, PMRectFc.right);
1647
	return lpStruct;
1647
	return lpStruct;
1648
}
1648
}
1649
1649
1650
void setPMRectFields(JNIEnv *env, jobject lpObject, PMRect *lpStruct)
1650
void setPMRectFields(JNIEnv *env, jobject lpObject, PMRect *lpStruct)
1651
{
1651
{
1652
	if (!PMRectFc.cached) cachePMRectFields(env, lpObject);
1652
	if (!PMRectFc.cached) cachePMRectFields(env, lpObject);
1653
	(*env)->SetDoubleField(env, lpObject, PMRectFc.top, (jdouble)lpStruct->top);
1653
	(*env)->SetDoubleField(env, lpObject, PMRectFc.top, (jdouble)lpStruct->top);
1654
	(*env)->SetDoubleField(env, lpObject, PMRectFc.left, (jdouble)lpStruct->left);
1654
	(*env)->SetDoubleField(env, lpObject, PMRectFc.left, (jdouble)lpStruct->left);
1655
	(*env)->SetDoubleField(env, lpObject, PMRectFc.bottom, (jdouble)lpStruct->bottom);
1655
	(*env)->SetDoubleField(env, lpObject, PMRectFc.bottom, (jdouble)lpStruct->bottom);
1656
	(*env)->SetDoubleField(env, lpObject, PMRectFc.right, (jdouble)lpStruct->right);
1656
	(*env)->SetDoubleField(env, lpObject, PMRectFc.right, (jdouble)lpStruct->right);
1657
}
1657
}
1658
#endif
1658
#endif
1659
1659
1660
#ifndef NO_PMResolution
1660
#ifndef NO_PMResolution
1661
typedef struct PMResolution_FID_CACHE {
1661
typedef struct PMResolution_FID_CACHE {
1662
	int cached;
1662
	int cached;
1663
	jclass clazz;
1663
	jclass clazz;
1664
	jfieldID hRes, vRes;
1664
	jfieldID hRes, vRes;
1665
} PMResolution_FID_CACHE;
1665
} PMResolution_FID_CACHE;
1666
1666
1667
PMResolution_FID_CACHE PMResolutionFc;
1667
PMResolution_FID_CACHE PMResolutionFc;
1668
1668
1669
void cachePMResolutionFields(JNIEnv *env, jobject lpObject)
1669
void cachePMResolutionFields(JNIEnv *env, jobject lpObject)
1670
{
1670
{
1671
	if (PMResolutionFc.cached) return;
1671
	if (PMResolutionFc.cached) return;
1672
	PMResolutionFc.clazz = (*env)->GetObjectClass(env, lpObject);
1672
	PMResolutionFc.clazz = (*env)->GetObjectClass(env, lpObject);
1673
	PMResolutionFc.hRes = (*env)->GetFieldID(env, PMResolutionFc.clazz, "hRes", "D");
1673
	PMResolutionFc.hRes = (*env)->GetFieldID(env, PMResolutionFc.clazz, "hRes", "D");
1674
	PMResolutionFc.vRes = (*env)->GetFieldID(env, PMResolutionFc.clazz, "vRes", "D");
1674
	PMResolutionFc.vRes = (*env)->GetFieldID(env, PMResolutionFc.clazz, "vRes", "D");
1675
	PMResolutionFc.cached = 1;
1675
	PMResolutionFc.cached = 1;
1676
}
1676
}
1677
1677
1678
PMResolution *getPMResolutionFields(JNIEnv *env, jobject lpObject, PMResolution *lpStruct)
1678
PMResolution *getPMResolutionFields(JNIEnv *env, jobject lpObject, PMResolution *lpStruct)
1679
{
1679
{
1680
	if (!PMResolutionFc.cached) cachePMResolutionFields(env, lpObject);
1680
	if (!PMResolutionFc.cached) cachePMResolutionFields(env, lpObject);
1681
	lpStruct->hRes = (*env)->GetDoubleField(env, lpObject, PMResolutionFc.hRes);
1681
	lpStruct->hRes = (*env)->GetDoubleField(env, lpObject, PMResolutionFc.hRes);
1682
	lpStruct->vRes = (*env)->GetDoubleField(env, lpObject, PMResolutionFc.vRes);
1682
	lpStruct->vRes = (*env)->GetDoubleField(env, lpObject, PMResolutionFc.vRes);
1683
	return lpStruct;
1683
	return lpStruct;
1684
}
1684
}
1685
1685
1686
void setPMResolutionFields(JNIEnv *env, jobject lpObject, PMResolution *lpStruct)
1686
void setPMResolutionFields(JNIEnv *env, jobject lpObject, PMResolution *lpStruct)
1687
{
1687
{
1688
	if (!PMResolutionFc.cached) cachePMResolutionFields(env, lpObject);
1688
	if (!PMResolutionFc.cached) cachePMResolutionFields(env, lpObject);
1689
	(*env)->SetDoubleField(env, lpObject, PMResolutionFc.hRes, (jdouble)lpStruct->hRes);
1689
	(*env)->SetDoubleField(env, lpObject, PMResolutionFc.hRes, (jdouble)lpStruct->hRes);
1690
	(*env)->SetDoubleField(env, lpObject, PMResolutionFc.vRes, (jdouble)lpStruct->vRes);
1690
	(*env)->SetDoubleField(env, lpObject, PMResolutionFc.vRes, (jdouble)lpStruct->vRes);
1691
}
1691
}
1692
#endif
1692
#endif
1693
1693
1694
#ifndef NO_PixMap
1694
#ifndef NO_PixMap
1695
typedef struct PixMap_FID_CACHE {
1695
typedef struct PixMap_FID_CACHE {
1696
	int cached;
1696
	int cached;
1697
	jclass clazz;
1697
	jclass clazz;
1698
	jfieldID pmVersion, packType, packSize, hRes, vRes, pixelType, pixelSize, cmpCount, cmpSize, pixelFormat, pmTable, pmExt;
1698
	jfieldID pmVersion, packType, packSize, hRes, vRes, pixelType, pixelSize, cmpCount, cmpSize, pixelFormat, pmTable, pmExt;
1699
} PixMap_FID_CACHE;
1699
} PixMap_FID_CACHE;
1700
1700
1701
PixMap_FID_CACHE PixMapFc;
1701
PixMap_FID_CACHE PixMapFc;
1702
1702
1703
void cachePixMapFields(JNIEnv *env, jobject lpObject)
1703
void cachePixMapFields(JNIEnv *env, jobject lpObject)
1704
{
1704
{
1705
	if (PixMapFc.cached) return;
1705
	if (PixMapFc.cached) return;
1706
	cacheBitMapFields(env, lpObject);
1706
	cacheBitMapFields(env, lpObject);
1707
	PixMapFc.clazz = (*env)->GetObjectClass(env, lpObject);
1707
	PixMapFc.clazz = (*env)->GetObjectClass(env, lpObject);
1708
	PixMapFc.pmVersion = (*env)->GetFieldID(env, PixMapFc.clazz, "pmVersion", "S");
1708
	PixMapFc.pmVersion = (*env)->GetFieldID(env, PixMapFc.clazz, "pmVersion", "S");
1709
	PixMapFc.packType = (*env)->GetFieldID(env, PixMapFc.clazz, "packType", "S");
1709
	PixMapFc.packType = (*env)->GetFieldID(env, PixMapFc.clazz, "packType", "S");
1710
	PixMapFc.packSize = (*env)->GetFieldID(env, PixMapFc.clazz, "packSize", "I");
1710
	PixMapFc.packSize = (*env)->GetFieldID(env, PixMapFc.clazz, "packSize", "I");
1711
	PixMapFc.hRes = (*env)->GetFieldID(env, PixMapFc.clazz, "hRes", "I");
1711
	PixMapFc.hRes = (*env)->GetFieldID(env, PixMapFc.clazz, "hRes", "I");
1712
	PixMapFc.vRes = (*env)->GetFieldID(env, PixMapFc.clazz, "vRes", "I");
1712
	PixMapFc.vRes = (*env)->GetFieldID(env, PixMapFc.clazz, "vRes", "I");
1713
	PixMapFc.pixelType = (*env)->GetFieldID(env, PixMapFc.clazz, "pixelType", "S");
1713
	PixMapFc.pixelType = (*env)->GetFieldID(env, PixMapFc.clazz, "pixelType", "S");
1714
	PixMapFc.pixelSize = (*env)->GetFieldID(env, PixMapFc.clazz, "pixelSize", "S");
1714
	PixMapFc.pixelSize = (*env)->GetFieldID(env, PixMapFc.clazz, "pixelSize", "S");
1715
	PixMapFc.cmpCount = (*env)->GetFieldID(env, PixMapFc.clazz, "cmpCount", "S");
1715
	PixMapFc.cmpCount = (*env)->GetFieldID(env, PixMapFc.clazz, "cmpCount", "S");
1716
	PixMapFc.cmpSize = (*env)->GetFieldID(env, PixMapFc.clazz, "cmpSize", "S");
1716
	PixMapFc.cmpSize = (*env)->GetFieldID(env, PixMapFc.clazz, "cmpSize", "S");
1717
	PixMapFc.pixelFormat = (*env)->GetFieldID(env, PixMapFc.clazz, "pixelFormat", "I");
1717
	PixMapFc.pixelFormat = (*env)->GetFieldID(env, PixMapFc.clazz, "pixelFormat", "I");
1718
	PixMapFc.pmTable = (*env)->GetFieldID(env, PixMapFc.clazz, "pmTable", "I");
1718
	PixMapFc.pmTable = (*env)->GetFieldID(env, PixMapFc.clazz, "pmTable", "I");
1719
	PixMapFc.pmExt = (*env)->GetFieldID(env, PixMapFc.clazz, "pmExt", "I");
1719
	PixMapFc.pmExt = (*env)->GetFieldID(env, PixMapFc.clazz, "pmExt", "I");
1720
	PixMapFc.cached = 1;
1720
	PixMapFc.cached = 1;
1721
}
1721
}
1722
1722
1723
PixMap *getPixMapFields(JNIEnv *env, jobject lpObject, PixMap *lpStruct)
1723
PixMap *getPixMapFields(JNIEnv *env, jobject lpObject, PixMap *lpStruct)
1724
{
1724
{
1725
	if (!PixMapFc.cached) cachePixMapFields(env, lpObject);
1725
	if (!PixMapFc.cached) cachePixMapFields(env, lpObject);
1726
	getBitMapFields(env, lpObject, (BitMap *)lpStruct);
1726
	getBitMapFields(env, lpObject, (BitMap *)lpStruct);
1727
	lpStruct->pmVersion = (*env)->GetShortField(env, lpObject, PixMapFc.pmVersion);
1727
	lpStruct->pmVersion = (*env)->GetShortField(env, lpObject, PixMapFc.pmVersion);
1728
	lpStruct->packType = (*env)->GetShortField(env, lpObject, PixMapFc.packType);
1728
	lpStruct->packType = (*env)->GetShortField(env, lpObject, PixMapFc.packType);
1729
	lpStruct->packSize = (*env)->GetIntField(env, lpObject, PixMapFc.packSize);
1729
	lpStruct->packSize = (*env)->GetIntField(env, lpObject, PixMapFc.packSize);
1730
	lpStruct->hRes = (*env)->GetIntField(env, lpObject, PixMapFc.hRes);
1730
	lpStruct->hRes = (*env)->GetIntField(env, lpObject, PixMapFc.hRes);
1731
	lpStruct->vRes = (*env)->GetIntField(env, lpObject, PixMapFc.vRes);
1731
	lpStruct->vRes = (*env)->GetIntField(env, lpObject, PixMapFc.vRes);
1732
	lpStruct->pixelType = (*env)->GetShortField(env, lpObject, PixMapFc.pixelType);
1732
	lpStruct->pixelType = (*env)->GetShortField(env, lpObject, PixMapFc.pixelType);
1733
	lpStruct->pixelSize = (*env)->GetShortField(env, lpObject, PixMapFc.pixelSize);
1733
	lpStruct->pixelSize = (*env)->GetShortField(env, lpObject, PixMapFc.pixelSize);
1734
	lpStruct->cmpCount = (*env)->GetShortField(env, lpObject, PixMapFc.cmpCount);
1734
	lpStruct->cmpCount = (*env)->GetShortField(env, lpObject, PixMapFc.cmpCount);
1735
	lpStruct->cmpSize = (*env)->GetShortField(env, lpObject, PixMapFc.cmpSize);
1735
	lpStruct->cmpSize = (*env)->GetShortField(env, lpObject, PixMapFc.cmpSize);
1736
	lpStruct->pixelFormat = (*env)->GetIntField(env, lpObject, PixMapFc.pixelFormat);
1736
	lpStruct->pixelFormat = (*env)->GetIntField(env, lpObject, PixMapFc.pixelFormat);
1737
	lpStruct->pmTable = (CTabHandle)(*env)->GetIntField(env, lpObject, PixMapFc.pmTable);
1737
	lpStruct->pmTable = (CTabHandle)(*env)->GetIntField(env, lpObject, PixMapFc.pmTable);
1738
	lpStruct->pmExt = (void *)(*env)->GetIntField(env, lpObject, PixMapFc.pmExt);
1738
	lpStruct->pmExt = (void *)(*env)->GetIntField(env, lpObject, PixMapFc.pmExt);
1739
	return lpStruct;
1739
	return lpStruct;
1740
}
1740
}
1741
1741
1742
void setPixMapFields(JNIEnv *env, jobject lpObject, PixMap *lpStruct)
1742
void setPixMapFields(JNIEnv *env, jobject lpObject, PixMap *lpStruct)
1743
{
1743
{
1744
	if (!PixMapFc.cached) cachePixMapFields(env, lpObject);
1744
	if (!PixMapFc.cached) cachePixMapFields(env, lpObject);
1745
	setBitMapFields(env, lpObject, (BitMap *)lpStruct);
1745
	setBitMapFields(env, lpObject, (BitMap *)lpStruct);
1746
	(*env)->SetShortField(env, lpObject, PixMapFc.pmVersion, (jshort)lpStruct->pmVersion);
1746
	(*env)->SetShortField(env, lpObject, PixMapFc.pmVersion, (jshort)lpStruct->pmVersion);
1747
	(*env)->SetShortField(env, lpObject, PixMapFc.packType, (jshort)lpStruct->packType);
1747
	(*env)->SetShortField(env, lpObject, PixMapFc.packType, (jshort)lpStruct->packType);
1748
	(*env)->SetIntField(env, lpObject, PixMapFc.packSize, (jint)lpStruct->packSize);
1748
	(*env)->SetIntField(env, lpObject, PixMapFc.packSize, (jint)lpStruct->packSize);
1749
	(*env)->SetIntField(env, lpObject, PixMapFc.hRes, (jint)lpStruct->hRes);
1749
	(*env)->SetIntField(env, lpObject, PixMapFc.hRes, (jint)lpStruct->hRes);
1750
	(*env)->SetIntField(env, lpObject, PixMapFc.vRes, (jint)lpStruct->vRes);
1750
	(*env)->SetIntField(env, lpObject, PixMapFc.vRes, (jint)lpStruct->vRes);
1751
	(*env)->SetShortField(env, lpObject, PixMapFc.pixelType, (jshort)lpStruct->pixelType);
1751
	(*env)->SetShortField(env, lpObject, PixMapFc.pixelType, (jshort)lpStruct->pixelType);
1752
	(*env)->SetShortField(env, lpObject, PixMapFc.pixelSize, (jshort)lpStruct->pixelSize);
1752
	(*env)->SetShortField(env, lpObject, PixMapFc.pixelSize, (jshort)lpStruct->pixelSize);
1753
	(*env)->SetShortField(env, lpObject, PixMapFc.cmpCount, (jshort)lpStruct->cmpCount);
1753
	(*env)->SetShortField(env, lpObject, PixMapFc.cmpCount, (jshort)lpStruct->cmpCount);
1754
	(*env)->SetShortField(env, lpObject, PixMapFc.cmpSize, (jshort)lpStruct->cmpSize);
1754
	(*env)->SetShortField(env, lpObject, PixMapFc.cmpSize, (jshort)lpStruct->cmpSize);
1755
	(*env)->SetIntField(env, lpObject, PixMapFc.pixelFormat, (jint)lpStruct->pixelFormat);
1755
	(*env)->SetIntField(env, lpObject, PixMapFc.pixelFormat, (jint)lpStruct->pixelFormat);
1756
	(*env)->SetIntField(env, lpObject, PixMapFc.pmTable, (jint)lpStruct->pmTable);
1756
	(*env)->SetIntField(env, lpObject, PixMapFc.pmTable, (jint)lpStruct->pmTable);
1757
	(*env)->SetIntField(env, lpObject, PixMapFc.pmExt, (jint)lpStruct->pmExt);
1757
	(*env)->SetIntField(env, lpObject, PixMapFc.pmExt, (jint)lpStruct->pmExt);
1758
}
1758
}
1759
#endif
1759
#endif
1760
1760
1761
#ifndef NO_Point
1761
#ifndef NO_Point
1762
typedef struct Point_FID_CACHE {
1762
typedef struct Point_FID_CACHE {
1763
	int cached;
1763
	int cached;
1764
	jclass clazz;
1764
	jclass clazz;
1765
	jfieldID v, h;
1765
	jfieldID v, h;
1766
} Point_FID_CACHE;
1766
} Point_FID_CACHE;
1767
1767
1768
Point_FID_CACHE PointFc;
1768
Point_FID_CACHE PointFc;
1769
1769
1770
void cachePointFields(JNIEnv *env, jobject lpObject)
1770
void cachePointFields(JNIEnv *env, jobject lpObject)
1771
{
1771
{
1772
	if (PointFc.cached) return;
1772
	if (PointFc.cached) return;
1773
	PointFc.clazz = (*env)->GetObjectClass(env, lpObject);
1773
	PointFc.clazz = (*env)->GetObjectClass(env, lpObject);
1774
	PointFc.v = (*env)->GetFieldID(env, PointFc.clazz, "v", "S");
1774
	PointFc.v = (*env)->GetFieldID(env, PointFc.clazz, "v", "S");
1775
	PointFc.h = (*env)->GetFieldID(env, PointFc.clazz, "h", "S");
1775
	PointFc.h = (*env)->GetFieldID(env, PointFc.clazz, "h", "S");
1776
	PointFc.cached = 1;
1776
	PointFc.cached = 1;
1777
}
1777
}
1778
1778
1779
Point *getPointFields(JNIEnv *env, jobject lpObject, Point *lpStruct)
1779
Point *getPointFields(JNIEnv *env, jobject lpObject, Point *lpStruct)
1780
{
1780
{
1781
	if (!PointFc.cached) cachePointFields(env, lpObject);
1781
	if (!PointFc.cached) cachePointFields(env, lpObject);
1782
	lpStruct->v = (*env)->GetShortField(env, lpObject, PointFc.v);
1782
	lpStruct->v = (*env)->GetShortField(env, lpObject, PointFc.v);
1783
	lpStruct->h = (*env)->GetShortField(env, lpObject, PointFc.h);
1783
	lpStruct->h = (*env)->GetShortField(env, lpObject, PointFc.h);
1784
	return lpStruct;
1784
	return lpStruct;
1785
}
1785
}
1786
1786
1787
void setPointFields(JNIEnv *env, jobject lpObject, Point *lpStruct)
1787
void setPointFields(JNIEnv *env, jobject lpObject, Point *lpStruct)
1788
{
1788
{
1789
	if (!PointFc.cached) cachePointFields(env, lpObject);
1789
	if (!PointFc.cached) cachePointFields(env, lpObject);
1790
	(*env)->SetShortField(env, lpObject, PointFc.v, (jshort)lpStruct->v);
1790
	(*env)->SetShortField(env, lpObject, PointFc.v, (jshort)lpStruct->v);
1791
	(*env)->SetShortField(env, lpObject, PointFc.h, (jshort)lpStruct->h);
1791
	(*env)->SetShortField(env, lpObject, PointFc.h, (jshort)lpStruct->h);
1792
}
1792
}
1793
#endif
1793
#endif
1794
1794
1795
#ifndef NO_RGBColor
1795
#ifndef NO_PromiseHFSFlavor
1796
typedef struct RGBColor_FID_CACHE {
1796
typedef struct PromiseHFSFlavor_FID_CACHE {
1797
	int cached;
1797
	int cached;
1798
	jclass clazz;
1798
	jclass clazz;
1799
	jfieldID red, green, blue;
1799
	jfieldID promisedFlavor;
1800
} RGBColor_FID_CACHE;
1800
} PromiseHFSFlavor_FID_CACHE;
1801
1801
1802
RGBColor_FID_CACHE RGBColorFc;
1802
PromiseHFSFlavor_FID_CACHE PromiseHFSFlavorFc;
1803
1803
1804
void cacheRGBColorFields(JNIEnv *env, jobject lpObject)
1804
void cachePromiseHFSFlavorFields(JNIEnv *env, jobject lpObject)
1805
{
1805
{
1806
	if (RGBColorFc.cached) return;
1806
	if (PromiseHFSFlavorFc.cached) return;
1807
	RGBColorFc.clazz = (*env)->GetObjectClass(env, lpObject);
1807
	PromiseHFSFlavorFc.clazz = (*env)->GetObjectClass(env, lpObject);
1808
	RGBColorFc.red = (*env)->GetFieldID(env, RGBColorFc.clazz, "red", "S");
1808
	PromiseHFSFlavorFc.promisedFlavor = (*env)->GetFieldID(env, PromiseHFSFlavorFc.clazz, "promisedFlavor", "I");
1809
	RGBColorFc.green = (*env)->GetFieldID(env, RGBColorFc.clazz, "green", "S");
1809
	PromiseHFSFlavorFc.cached = 1;
1810
	RGBColorFc.blue = (*env)->GetFieldID(env, RGBColorFc.clazz, "blue", "S");
1810
}
1811
	RGBColorFc.cached = 1;
1811
1812
}
1812
PromiseHFSFlavor *getPromiseHFSFlavorFields(JNIEnv *env, jobject lpObject, PromiseHFSFlavor *lpStruct)
1813
1813
{
1814
RGBColor *getRGBColorFields(JNIEnv *env, jobject lpObject, RGBColor *lpStruct)
1814
	if (!PromiseHFSFlavorFc.cached) cachePromiseHFSFlavorFields(env, lpObject);
1815
{
1815
	lpStruct->promisedFlavor = (*env)->GetIntField(env, lpObject, PromiseHFSFlavorFc.promisedFlavor);
1816
	if (!RGBColorFc.cached) cacheRGBColorFields(env, lpObject);
1816
	return lpStruct;
1817
	lpStruct->red = (*env)->GetShortField(env, lpObject, RGBColorFc.red);
1817
}
1818
	lpStruct->green = (*env)->GetShortField(env, lpObject, RGBColorFc.green);
1818
1819
	lpStruct->blue = (*env)->GetShortField(env, lpObject, RGBColorFc.blue);
1819
void setPromiseHFSFlavorFields(JNIEnv *env, jobject lpObject, PromiseHFSFlavor *lpStruct)
1820
	return lpStruct;
1820
{
1821
}
1821
	if (!PromiseHFSFlavorFc.cached) cachePromiseHFSFlavorFields(env, lpObject);
1822
1822
	(*env)->SetIntField(env, lpObject, PromiseHFSFlavorFc.promisedFlavor, (jint)lpStruct->promisedFlavor);
1823
void setRGBColorFields(JNIEnv *env, jobject lpObject, RGBColor *lpStruct)
1823
}
1824
{
1824
#endif
1825
	if (!RGBColorFc.cached) cacheRGBColorFields(env, lpObject);
1825
1826
	(*env)->SetShortField(env, lpObject, RGBColorFc.red, (jshort)lpStruct->red);
1826
#ifndef NO_RGBColor
1827
	(*env)->SetShortField(env, lpObject, RGBColorFc.green, (jshort)lpStruct->green);
1827
typedef struct RGBColor_FID_CACHE {
1828
	(*env)->SetShortField(env, lpObject, RGBColorFc.blue, (jshort)lpStruct->blue);
1828
	int cached;
1829
}
1829
	jclass clazz;
1830
#endif
1830
	jfieldID red, green, blue;
1831
1831
} RGBColor_FID_CACHE;
1832
#ifndef NO_Rect
1832
1833
typedef struct Rect_FID_CACHE {
1833
RGBColor_FID_CACHE RGBColorFc;
1834
	int cached;
1834
1835
	jclass clazz;
1835
void cacheRGBColorFields(JNIEnv *env, jobject lpObject)
1836
	jfieldID top, left, bottom, right;
1836
{
1837
} Rect_FID_CACHE;
1837
	if (RGBColorFc.cached) return;
1838
1838
	RGBColorFc.clazz = (*env)->GetObjectClass(env, lpObject);
1839
Rect_FID_CACHE RectFc;
1839
	RGBColorFc.red = (*env)->GetFieldID(env, RGBColorFc.clazz, "red", "S");
1840
1840
	RGBColorFc.green = (*env)->GetFieldID(env, RGBColorFc.clazz, "green", "S");
1841
void cacheRectFields(JNIEnv *env, jobject lpObject)
1841
	RGBColorFc.blue = (*env)->GetFieldID(env, RGBColorFc.clazz, "blue", "S");
1842
{
1842
	RGBColorFc.cached = 1;
1843
	if (RectFc.cached) return;
1843
}
1844
	RectFc.clazz = (*env)->GetObjectClass(env, lpObject);
1844
1845
	RectFc.top = (*env)->GetFieldID(env, RectFc.clazz, "top", "S");
1845
RGBColor *getRGBColorFields(JNIEnv *env, jobject lpObject, RGBColor *lpStruct)
1846
	RectFc.left = (*env)->GetFieldID(env, RectFc.clazz, "left", "S");
1846
{
1847
	RectFc.bottom = (*env)->GetFieldID(env, RectFc.clazz, "bottom", "S");
1847
	if (!RGBColorFc.cached) cacheRGBColorFields(env, lpObject);
1848
	RectFc.right = (*env)->GetFieldID(env, RectFc.clazz, "right", "S");
1848
	lpStruct->red = (*env)->GetShortField(env, lpObject, RGBColorFc.red);
1849
	RectFc.cached = 1;
1849
	lpStruct->green = (*env)->GetShortField(env, lpObject, RGBColorFc.green);
1850
}
1850
	lpStruct->blue = (*env)->GetShortField(env, lpObject, RGBColorFc.blue);
1851
1851
	return lpStruct;
1852
Rect *getRectFields(JNIEnv *env, jobject lpObject, Rect *lpStruct)
1852
}
1853
{
1853
1854
	if (!RectFc.cached) cacheRectFields(env, lpObject);
1854
void setRGBColorFields(JNIEnv *env, jobject lpObject, RGBColor *lpStruct)
1855
	lpStruct->top = (*env)->GetShortField(env, lpObject, RectFc.top);
1855
{
1856
	lpStruct->left = (*env)->GetShortField(env, lpObject, RectFc.left);
1856
	if (!RGBColorFc.cached) cacheRGBColorFields(env, lpObject);
1857
	lpStruct->bottom = (*env)->GetShortField(env, lpObject, RectFc.bottom);
1857
	(*env)->SetShortField(env, lpObject, RGBColorFc.red, (jshort)lpStruct->red);
1858
	lpStruct->right = (*env)->GetShortField(env, lpObject, RectFc.right);
1858
	(*env)->SetShortField(env, lpObject, RGBColorFc.green, (jshort)lpStruct->green);
1859
	return lpStruct;
1859
	(*env)->SetShortField(env, lpObject, RGBColorFc.blue, (jshort)lpStruct->blue);
1860
}
1860
}
1861
1861
#endif
1862
void setRectFields(JNIEnv *env, jobject lpObject, Rect *lpStruct)
1862
1863
{
1863
#ifndef NO_Rect
1864
	if (!RectFc.cached) cacheRectFields(env, lpObject);
1864
typedef struct Rect_FID_CACHE {
1865
	(*env)->SetShortField(env, lpObject, RectFc.top, (jshort)lpStruct->top);
1865
	int cached;
1866
	(*env)->SetShortField(env, lpObject, RectFc.left, (jshort)lpStruct->left);
1866
	jclass clazz;
1867
	(*env)->SetShortField(env, lpObject, RectFc.bottom, (jshort)lpStruct->bottom);
1867
	jfieldID top, left, bottom, right;
1868
	(*env)->SetShortField(env, lpObject, RectFc.right, (jshort)lpStruct->right);
1868
} Rect_FID_CACHE;
1869
}
1869
1870
#endif
1870
Rect_FID_CACHE RectFc;
1871
1871
1872
#ifndef NO_TXNBackground
1872
void cacheRectFields(JNIEnv *env, jobject lpObject)
1873
typedef struct TXNBackground_FID_CACHE {
1873
{
1874
	int cached;
1874
	if (RectFc.cached) return;
1875
	jclass clazz;
1875
	RectFc.clazz = (*env)->GetObjectClass(env, lpObject);
1876
	jfieldID bgType, bg_red, bg_green, bg_blue;
1876
	RectFc.top = (*env)->GetFieldID(env, RectFc.clazz, "top", "S");
1877
} TXNBackground_FID_CACHE;
1877
	RectFc.left = (*env)->GetFieldID(env, RectFc.clazz, "left", "S");
1878
1878
	RectFc.bottom = (*env)->GetFieldID(env, RectFc.clazz, "bottom", "S");
1879
TXNBackground_FID_CACHE TXNBackgroundFc;
1879
	RectFc.right = (*env)->GetFieldID(env, RectFc.clazz, "right", "S");
1880
1880
	RectFc.cached = 1;
1881
void cacheTXNBackgroundFields(JNIEnv *env, jobject lpObject)
1881
}
1882
{
1882
1883
	if (TXNBackgroundFc.cached) return;
1883
Rect *getRectFields(JNIEnv *env, jobject lpObject, Rect *lpStruct)
1884
	TXNBackgroundFc.clazz = (*env)->GetObjectClass(env, lpObject);
1884
{
1885
	TXNBackgroundFc.bgType = (*env)->GetFieldID(env, TXNBackgroundFc.clazz, "bgType", "I");
1885
	if (!RectFc.cached) cacheRectFields(env, lpObject);
1886
	TXNBackgroundFc.bg_red = (*env)->GetFieldID(env, TXNBackgroundFc.clazz, "bg_red", "S");
1886
	lpStruct->top = (*env)->GetShortField(env, lpObject, RectFc.top);
1887
	TXNBackgroundFc.bg_green = (*env)->GetFieldID(env, TXNBackgroundFc.clazz, "bg_green", "S");
1887
	lpStruct->left = (*env)->GetShortField(env, lpObject, RectFc.left);
1888
	TXNBackgroundFc.bg_blue = (*env)->GetFieldID(env, TXNBackgroundFc.clazz, "bg_blue", "S");
1888
	lpStruct->bottom = (*env)->GetShortField(env, lpObject, RectFc.bottom);
1889
	TXNBackgroundFc.cached = 1;
1889
	lpStruct->right = (*env)->GetShortField(env, lpObject, RectFc.right);
1890
}
1890
	return lpStruct;
1891
1891
}
1892
TXNBackground *getTXNBackgroundFields(JNIEnv *env, jobject lpObject, TXNBackground *lpStruct)
1892
1893
{
1893
void setRectFields(JNIEnv *env, jobject lpObject, Rect *lpStruct)
1894
	if (!TXNBackgroundFc.cached) cacheTXNBackgroundFields(env, lpObject);
1894
{
1895
	lpStruct->bgType = (*env)->GetIntField(env, lpObject, TXNBackgroundFc.bgType);
1895
	if (!RectFc.cached) cacheRectFields(env, lpObject);
1896
	lpStruct->bg.color.red = (*env)->GetShortField(env, lpObject, TXNBackgroundFc.bg_red);
1896
	(*env)->SetShortField(env, lpObject, RectFc.top, (jshort)lpStruct->top);
1897
	lpStruct->bg.color.green = (*env)->GetShortField(env, lpObject, TXNBackgroundFc.bg_green);
1897
	(*env)->SetShortField(env, lpObject, RectFc.left, (jshort)lpStruct->left);
1898
	lpStruct->bg.color.blue = (*env)->GetShortField(env, lpObject, TXNBackgroundFc.bg_blue);
1898
	(*env)->SetShortField(env, lpObject, RectFc.bottom, (jshort)lpStruct->bottom);
1899
	return lpStruct;
1899
	(*env)->SetShortField(env, lpObject, RectFc.right, (jshort)lpStruct->right);
1900
}
1900
}
1901
1901
#endif
1902
void setTXNBackgroundFields(JNIEnv *env, jobject lpObject, TXNBackground *lpStruct)
1902
1903
{
1903
#ifndef NO_TXNBackground
1904
	if (!TXNBackgroundFc.cached) cacheTXNBackgroundFields(env, lpObject);
1904
typedef struct TXNBackground_FID_CACHE {
1905
	(*env)->SetIntField(env, lpObject, TXNBackgroundFc.bgType, (jint)lpStruct->bgType);
1905
	int cached;
1906
	(*env)->SetShortField(env, lpObject, TXNBackgroundFc.bg_red, (jshort)lpStruct->bg.color.red);
1906
	jclass clazz;
1907
	(*env)->SetShortField(env, lpObject, TXNBackgroundFc.bg_green, (jshort)lpStruct->bg.color.green);
1907
	jfieldID bgType, bg_red, bg_green, bg_blue;
1908
	(*env)->SetShortField(env, lpObject, TXNBackgroundFc.bg_blue, (jshort)lpStruct->bg.color.blue);
1908
} TXNBackground_FID_CACHE;
1909
}
1909
1910
#endif
1910
TXNBackground_FID_CACHE TXNBackgroundFc;
1911
1911
1912
#ifndef NO_TXNLongRect
1912
void cacheTXNBackgroundFields(JNIEnv *env, jobject lpObject)
1913
typedef struct TXNLongRect_FID_CACHE {
1913
{
1914
	int cached;
1914
	if (TXNBackgroundFc.cached) return;
1915
	jclass clazz;
1915
	TXNBackgroundFc.clazz = (*env)->GetObjectClass(env, lpObject);
1916
	jfieldID top, left, bottom, right;
1916
	TXNBackgroundFc.bgType = (*env)->GetFieldID(env, TXNBackgroundFc.clazz, "bgType", "I");
1917
} TXNLongRect_FID_CACHE;
1917
	TXNBackgroundFc.bg_red = (*env)->GetFieldID(env, TXNBackgroundFc.clazz, "bg_red", "S");
1918
1918
	TXNBackgroundFc.bg_green = (*env)->GetFieldID(env, TXNBackgroundFc.clazz, "bg_green", "S");
1919
TXNLongRect_FID_CACHE TXNLongRectFc;
1919
	TXNBackgroundFc.bg_blue = (*env)->GetFieldID(env, TXNBackgroundFc.clazz, "bg_blue", "S");
1920
1920
	TXNBackgroundFc.cached = 1;
1921
void cacheTXNLongRectFields(JNIEnv *env, jobject lpObject)
1921
}
1922
{
1922
1923
	if (TXNLongRectFc.cached) return;
1923
TXNBackground *getTXNBackgroundFields(JNIEnv *env, jobject lpObject, TXNBackground *lpStruct)
1924
	TXNLongRectFc.clazz = (*env)->GetObjectClass(env, lpObject);
1924
{
1925
	TXNLongRectFc.top = (*env)->GetFieldID(env, TXNLongRectFc.clazz, "top", "I");
1925
	if (!TXNBackgroundFc.cached) cacheTXNBackgroundFields(env, lpObject);
1926
	TXNLongRectFc.left = (*env)->GetFieldID(env, TXNLongRectFc.clazz, "left", "I");
1926
	lpStruct->bgType = (*env)->GetIntField(env, lpObject, TXNBackgroundFc.bgType);
1927
	TXNLongRectFc.bottom = (*env)->GetFieldID(env, TXNLongRectFc.clazz, "bottom", "I");
1927
	lpStruct->bg.color.red = (*env)->GetShortField(env, lpObject, TXNBackgroundFc.bg_red);
1928
	TXNLongRectFc.right = (*env)->GetFieldID(env, TXNLongRectFc.clazz, "right", "I");
1928
	lpStruct->bg.color.green = (*env)->GetShortField(env, lpObject, TXNBackgroundFc.bg_green);
1929
	TXNLongRectFc.cached = 1;
1929
	lpStruct->bg.color.blue = (*env)->GetShortField(env, lpObject, TXNBackgroundFc.bg_blue);
1930
}
1930
	return lpStruct;
1931
1931
}
1932
TXNLongRect *getTXNLongRectFields(JNIEnv *env, jobject lpObject, TXNLongRect *lpStruct)
1932
1933
{
1933
void setTXNBackgroundFields(JNIEnv *env, jobject lpObject, TXNBackground *lpStruct)
1934
	if (!TXNLongRectFc.cached) cacheTXNLongRectFields(env, lpObject);
1934
{
1935
	lpStruct->top = (*env)->GetIntField(env, lpObject, TXNLongRectFc.top);
1935
	if (!TXNBackgroundFc.cached) cacheTXNBackgroundFields(env, lpObject);
1936
	lpStruct->left = (*env)->GetIntField(env, lpObject, TXNLongRectFc.left);
1936
	(*env)->SetIntField(env, lpObject, TXNBackgroundFc.bgType, (jint)lpStruct->bgType);
1937
	lpStruct->bottom = (*env)->GetIntField(env, lpObject, TXNLongRectFc.bottom);
1937
	(*env)->SetShortField(env, lpObject, TXNBackgroundFc.bg_red, (jshort)lpStruct->bg.color.red);
1938
	lpStruct->right = (*env)->GetIntField(env, lpObject, TXNLongRectFc.right);
1938
	(*env)->SetShortField(env, lpObject, TXNBackgroundFc.bg_green, (jshort)lpStruct->bg.color.green);
1939
	return lpStruct;
1939
	(*env)->SetShortField(env, lpObject, TXNBackgroundFc.bg_blue, (jshort)lpStruct->bg.color.blue);
1940
}
1940
}
1941
1941
#endif
1942
void setTXNLongRectFields(JNIEnv *env, jobject lpObject, TXNLongRect *lpStruct)
1942
1943
{
1943
#ifndef NO_TXNLongRect
1944
	if (!TXNLongRectFc.cached) cacheTXNLongRectFields(env, lpObject);
1944
typedef struct TXNLongRect_FID_CACHE {
1945
	(*env)->SetIntField(env, lpObject, TXNLongRectFc.top, (jint)lpStruct->top);
1945
	int cached;
1946
	(*env)->SetIntField(env, lpObject, TXNLongRectFc.left, (jint)lpStruct->left);
1946
	jclass clazz;
1947
	(*env)->SetIntField(env, lpObject, TXNLongRectFc.bottom, (jint)lpStruct->bottom);
1947
	jfieldID top, left, bottom, right;
1948
	(*env)->SetIntField(env, lpObject, TXNLongRectFc.right, (jint)lpStruct->right);
1948
} TXNLongRect_FID_CACHE;
1949
}
1949
1950
#endif
1950
TXNLongRect_FID_CACHE TXNLongRectFc;
1951
1951
1952
#ifndef NO_ThemeButtonDrawInfo
1952
void cacheTXNLongRectFields(JNIEnv *env, jobject lpObject)
1953
typedef struct ThemeButtonDrawInfo_FID_CACHE {
1953
{
1954
	int cached;
1954
	if (TXNLongRectFc.cached) return;
1955
	jclass clazz;
1955
	TXNLongRectFc.clazz = (*env)->GetObjectClass(env, lpObject);
1956
	jfieldID state, value, adornment;
1956
	TXNLongRectFc.top = (*env)->GetFieldID(env, TXNLongRectFc.clazz, "top", "I");
1957
} ThemeButtonDrawInfo_FID_CACHE;
1957
	TXNLongRectFc.left = (*env)->GetFieldID(env, TXNLongRectFc.clazz, "left", "I");
1958
1958
	TXNLongRectFc.bottom = (*env)->GetFieldID(env, TXNLongRectFc.clazz, "bottom", "I");
1959
ThemeButtonDrawInfo_FID_CACHE ThemeButtonDrawInfoFc;
1959
	TXNLongRectFc.right = (*env)->GetFieldID(env, TXNLongRectFc.clazz, "right", "I");
1960
1960
	TXNLongRectFc.cached = 1;
1961
void cacheThemeButtonDrawInfoFields(JNIEnv *env, jobject lpObject)
1961
}
1962
{
1962
1963
	if (ThemeButtonDrawInfoFc.cached) return;
1963
TXNLongRect *getTXNLongRectFields(JNIEnv *env, jobject lpObject, TXNLongRect *lpStruct)
1964
	ThemeButtonDrawInfoFc.clazz = (*env)->GetObjectClass(env, lpObject);
1964
{
1965
	ThemeButtonDrawInfoFc.state = (*env)->GetFieldID(env, ThemeButtonDrawInfoFc.clazz, "state", "I");
1965
	if (!TXNLongRectFc.cached) cacheTXNLongRectFields(env, lpObject);
1966
	ThemeButtonDrawInfoFc.value = (*env)->GetFieldID(env, ThemeButtonDrawInfoFc.clazz, "value", "S");
1966
	lpStruct->top = (*env)->GetIntField(env, lpObject, TXNLongRectFc.top);
1967
	ThemeButtonDrawInfoFc.adornment = (*env)->GetFieldID(env, ThemeButtonDrawInfoFc.clazz, "adornment", "S");
1967
	lpStruct->left = (*env)->GetIntField(env, lpObject, TXNLongRectFc.left);
1968
	ThemeButtonDrawInfoFc.cached = 1;
1968
	lpStruct->bottom = (*env)->GetIntField(env, lpObject, TXNLongRectFc.bottom);
1969
}
1969
	lpStruct->right = (*env)->GetIntField(env, lpObject, TXNLongRectFc.right);
1970
1970
	return lpStruct;
1971
ThemeButtonDrawInfo *getThemeButtonDrawInfoFields(JNIEnv *env, jobject lpObject, ThemeButtonDrawInfo *lpStruct)
1971
}
1972
{
1972
1973
	if (!ThemeButtonDrawInfoFc.cached) cacheThemeButtonDrawInfoFields(env, lpObject);
1973
void setTXNLongRectFields(JNIEnv *env, jobject lpObject, TXNLongRect *lpStruct)
1974
	lpStruct->state = (ThemeDrawState)(*env)->GetIntField(env, lpObject, ThemeButtonDrawInfoFc.state);
1974
{
1975
	lpStruct->value = (ThemeButtonValue)(*env)->GetShortField(env, lpObject, ThemeButtonDrawInfoFc.value);
1975
	if (!TXNLongRectFc.cached) cacheTXNLongRectFields(env, lpObject);
1976
	lpStruct->adornment = (ThemeButtonAdornment)(*env)->GetShortField(env, lpObject, ThemeButtonDrawInfoFc.adornment);
1976
	(*env)->SetIntField(env, lpObject, TXNLongRectFc.top, (jint)lpStruct->top);
1977
	return lpStruct;
1977
	(*env)->SetIntField(env, lpObject, TXNLongRectFc.left, (jint)lpStruct->left);
1978
}
1978
	(*env)->SetIntField(env, lpObject, TXNLongRectFc.bottom, (jint)lpStruct->bottom);
1979
1979
	(*env)->SetIntField(env, lpObject, TXNLongRectFc.right, (jint)lpStruct->right);
1980
void setThemeButtonDrawInfoFields(JNIEnv *env, jobject lpObject, ThemeButtonDrawInfo *lpStruct)
1980
}
1981
{
1981
#endif
1982
	if (!ThemeButtonDrawInfoFc.cached) cacheThemeButtonDrawInfoFields(env, lpObject);
1982
1983
	(*env)->SetIntField(env, lpObject, ThemeButtonDrawInfoFc.state, (jint)lpStruct->state);
1983
#ifndef NO_ThemeButtonDrawInfo
1984
	(*env)->SetShortField(env, lpObject, ThemeButtonDrawInfoFc.value, (jshort)lpStruct->value);
1984
typedef struct ThemeButtonDrawInfo_FID_CACHE {
1985
	(*env)->SetShortField(env, lpObject, ThemeButtonDrawInfoFc.adornment, (jshort)lpStruct->adornment);
1985
	int cached;
1986
}
1986
	jclass clazz;
1987
#endif
1987
	jfieldID state, value, adornment;
1988
1988
} ThemeButtonDrawInfo_FID_CACHE;
1989
1990
ThemeButtonDrawInfo_FID_CACHE ThemeButtonDrawInfoFc;
1991
1992
void cacheThemeButtonDrawInfoFields(JNIEnv *env, jobject lpObject)
1993
{
1994
	if (ThemeButtonDrawInfoFc.cached) return;
1995
	ThemeButtonDrawInfoFc.clazz = (*env)->GetObjectClass(env, lpObject);
1996
	ThemeButtonDrawInfoFc.state = (*env)->GetFieldID(env, ThemeButtonDrawInfoFc.clazz, "state", "I");
1997
	ThemeButtonDrawInfoFc.value = (*env)->GetFieldID(env, ThemeButtonDrawInfoFc.clazz, "value", "S");
1998
	ThemeButtonDrawInfoFc.adornment = (*env)->GetFieldID(env, ThemeButtonDrawInfoFc.clazz, "adornment", "S");
1999
	ThemeButtonDrawInfoFc.cached = 1;
2000
}
2001
2002
ThemeButtonDrawInfo *getThemeButtonDrawInfoFields(JNIEnv *env, jobject lpObject, ThemeButtonDrawInfo *lpStruct)
2003
{
2004
	if (!ThemeButtonDrawInfoFc.cached) cacheThemeButtonDrawInfoFields(env, lpObject);
2005
	lpStruct->state = (ThemeDrawState)(*env)->GetIntField(env, lpObject, ThemeButtonDrawInfoFc.state);
2006
	lpStruct->value = (ThemeButtonValue)(*env)->GetShortField(env, lpObject, ThemeButtonDrawInfoFc.value);
2007
	lpStruct->adornment = (ThemeButtonAdornment)(*env)->GetShortField(env, lpObject, ThemeButtonDrawInfoFc.adornment);
2008
	return lpStruct;
2009
}
2010
2011
void setThemeButtonDrawInfoFields(JNIEnv *env, jobject lpObject, ThemeButtonDrawInfo *lpStruct)
2012
{
2013
	if (!ThemeButtonDrawInfoFc.cached) cacheThemeButtonDrawInfoFields(env, lpObject);
2014
	(*env)->SetIntField(env, lpObject, ThemeButtonDrawInfoFc.state, (jint)lpStruct->state);
2015
	(*env)->SetShortField(env, lpObject, ThemeButtonDrawInfoFc.value, (jshort)lpStruct->value);
2016
	(*env)->SetShortField(env, lpObject, ThemeButtonDrawInfoFc.adornment, (jshort)lpStruct->adornment);
2017
}
2018
#endif
2019
(-)org.eclipse.swt_before/Eclipse SWT PI/carbon/library/os_structs.h (-481 / +493 lines)
Lines 1-481 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 "os.h"
12
#include "os.h"
13
13
14
#ifndef NO_AEDesc
14
#ifndef NO_AEDesc
15
void cacheAEDescFields(JNIEnv *env, jobject lpObject);
15
void cacheAEDescFields(JNIEnv *env, jobject lpObject);
16
AEDesc *getAEDescFields(JNIEnv *env, jobject lpObject, AEDesc *lpStruct);
16
AEDesc *getAEDescFields(JNIEnv *env, jobject lpObject, AEDesc *lpStruct);
17
void setAEDescFields(JNIEnv *env, jobject lpObject, AEDesc *lpStruct);
17
void setAEDescFields(JNIEnv *env, jobject lpObject, AEDesc *lpStruct);
18
#define AEDesc_sizeof() sizeof(AEDesc)
18
#define AEDesc_sizeof() sizeof(AEDesc)
19
#else
19
#else
20
#define cacheAEDescFields(a,b)
20
#define cacheAEDescFields(a,b)
21
#define getAEDescFields(a,b,c) NULL
21
#define getAEDescFields(a,b,c) NULL
22
#define setAEDescFields(a,b,c)
22
#define setAEDescFields(a,b,c)
23
#define AEDesc_sizeof() 0
23
#define AEDesc_sizeof() 0
24
#endif
24
#endif
25
25
26
#ifndef NO_ATSLayoutRecord
26
#ifndef NO_ATSLayoutRecord
27
void cacheATSLayoutRecordFields(JNIEnv *env, jobject lpObject);
27
void cacheATSLayoutRecordFields(JNIEnv *env, jobject lpObject);
28
ATSLayoutRecord *getATSLayoutRecordFields(JNIEnv *env, jobject lpObject, ATSLayoutRecord *lpStruct);
28
ATSLayoutRecord *getATSLayoutRecordFields(JNIEnv *env, jobject lpObject, ATSLayoutRecord *lpStruct);
29
void setATSLayoutRecordFields(JNIEnv *env, jobject lpObject, ATSLayoutRecord *lpStruct);
29
void setATSLayoutRecordFields(JNIEnv *env, jobject lpObject, ATSLayoutRecord *lpStruct);
30
#define ATSLayoutRecord_sizeof() sizeof(ATSLayoutRecord)
30
#define ATSLayoutRecord_sizeof() sizeof(ATSLayoutRecord)
31
#else
31
#else
32
#define cacheATSLayoutRecordFields(a,b)
32
#define cacheATSLayoutRecordFields(a,b)
33
#define getATSLayoutRecordFields(a,b,c) NULL
33
#define getATSLayoutRecordFields(a,b,c) NULL
34
#define setATSLayoutRecordFields(a,b,c)
34
#define setATSLayoutRecordFields(a,b,c)
35
#define ATSLayoutRecord_sizeof() 0
35
#define ATSLayoutRecord_sizeof() 0
36
#endif
36
#endif
37
37
38
#ifndef NO_ATSTrapezoid
38
#ifndef NO_ATSTrapezoid
39
void cacheATSTrapezoidFields(JNIEnv *env, jobject lpObject);
39
void cacheATSTrapezoidFields(JNIEnv *env, jobject lpObject);
40
ATSTrapezoid *getATSTrapezoidFields(JNIEnv *env, jobject lpObject, ATSTrapezoid *lpStruct);
40
ATSTrapezoid *getATSTrapezoidFields(JNIEnv *env, jobject lpObject, ATSTrapezoid *lpStruct);
41
void setATSTrapezoidFields(JNIEnv *env, jobject lpObject, ATSTrapezoid *lpStruct);
41
void setATSTrapezoidFields(JNIEnv *env, jobject lpObject, ATSTrapezoid *lpStruct);
42
#define ATSTrapezoid_sizeof() sizeof(ATSTrapezoid)
42
#define ATSTrapezoid_sizeof() sizeof(ATSTrapezoid)
43
#else
43
#else
44
#define cacheATSTrapezoidFields(a,b)
44
#define cacheATSTrapezoidFields(a,b)
45
#define getATSTrapezoidFields(a,b,c) NULL
45
#define getATSTrapezoidFields(a,b,c) NULL
46
#define setATSTrapezoidFields(a,b,c)
46
#define setATSTrapezoidFields(a,b,c)
47
#define ATSTrapezoid_sizeof() 0
47
#define ATSTrapezoid_sizeof() 0
48
#endif
48
#endif
49
49
50
#ifndef NO_ATSUCaret
50
#ifndef NO_ATSUCaret
51
void cacheATSUCaretFields(JNIEnv *env, jobject lpObject);
51
void cacheATSUCaretFields(JNIEnv *env, jobject lpObject);
52
ATSUCaret *getATSUCaretFields(JNIEnv *env, jobject lpObject, ATSUCaret *lpStruct);
52
ATSUCaret *getATSUCaretFields(JNIEnv *env, jobject lpObject, ATSUCaret *lpStruct);
53
void setATSUCaretFields(JNIEnv *env, jobject lpObject, ATSUCaret *lpStruct);
53
void setATSUCaretFields(JNIEnv *env, jobject lpObject, ATSUCaret *lpStruct);
54
#define ATSUCaret_sizeof() sizeof(ATSUCaret)
54
#define ATSUCaret_sizeof() sizeof(ATSUCaret)
55
#else
55
#else
56
#define cacheATSUCaretFields(a,b)
56
#define cacheATSUCaretFields(a,b)
57
#define getATSUCaretFields(a,b,c) NULL
57
#define getATSUCaretFields(a,b,c) NULL
58
#define setATSUCaretFields(a,b,c)
58
#define setATSUCaretFields(a,b,c)
59
#define ATSUCaret_sizeof() 0
59
#define ATSUCaret_sizeof() 0
60
#endif
60
#endif
61
61
62
#ifndef NO_ATSUTab
62
#ifndef NO_ATSUTab
63
void cacheATSUTabFields(JNIEnv *env, jobject lpObject);
63
void cacheATSUTabFields(JNIEnv *env, jobject lpObject);
64
ATSUTab *getATSUTabFields(JNIEnv *env, jobject lpObject, ATSUTab *lpStruct);
64
ATSUTab *getATSUTabFields(JNIEnv *env, jobject lpObject, ATSUTab *lpStruct);
65
void setATSUTabFields(JNIEnv *env, jobject lpObject, ATSUTab *lpStruct);
65
void setATSUTabFields(JNIEnv *env, jobject lpObject, ATSUTab *lpStruct);
66
#define ATSUTab_sizeof() sizeof(ATSUTab)
66
#define ATSUTab_sizeof() sizeof(ATSUTab)
67
#else
67
#else
68
#define cacheATSUTabFields(a,b)
68
#define cacheATSUTabFields(a,b)
69
#define getATSUTabFields(a,b,c) NULL
69
#define getATSUTabFields(a,b,c) NULL
70
#define setATSUTabFields(a,b,c)
70
#define setATSUTabFields(a,b,c)
71
#define ATSUTab_sizeof() 0
71
#define ATSUTab_sizeof() 0
72
#endif
72
#endif
73
73
74
#ifndef NO_ATSUUnhighlightData
74
#ifndef NO_ATSUUnhighlightData
75
void cacheATSUUnhighlightDataFields(JNIEnv *env, jobject lpObject);
75
void cacheATSUUnhighlightDataFields(JNIEnv *env, jobject lpObject);
76
ATSUUnhighlightData *getATSUUnhighlightDataFields(JNIEnv *env, jobject lpObject, ATSUUnhighlightData *lpStruct);
76
ATSUUnhighlightData *getATSUUnhighlightDataFields(JNIEnv *env, jobject lpObject, ATSUUnhighlightData *lpStruct);
77
void setATSUUnhighlightDataFields(JNIEnv *env, jobject lpObject, ATSUUnhighlightData *lpStruct);
77
void setATSUUnhighlightDataFields(JNIEnv *env, jobject lpObject, ATSUUnhighlightData *lpStruct);
78
#define ATSUUnhighlightData_sizeof() sizeof(ATSUUnhighlightData)
78
#define ATSUUnhighlightData_sizeof() sizeof(ATSUUnhighlightData)
79
#else
79
#else
80
#define cacheATSUUnhighlightDataFields(a,b)
80
#define cacheATSUUnhighlightDataFields(a,b)
81
#define getATSUUnhighlightDataFields(a,b,c) NULL
81
#define getATSUUnhighlightDataFields(a,b,c) NULL
82
#define setATSUUnhighlightDataFields(a,b,c)
82
#define setATSUUnhighlightDataFields(a,b,c)
83
#define ATSUUnhighlightData_sizeof() 0
83
#define ATSUUnhighlightData_sizeof() 0
84
#endif
84
#endif
85
85
86
#ifndef NO_AlertStdCFStringAlertParamRec
86
#ifndef NO_AlertStdCFStringAlertParamRec
87
void cacheAlertStdCFStringAlertParamRecFields(JNIEnv *env, jobject lpObject);
87
void cacheAlertStdCFStringAlertParamRecFields(JNIEnv *env, jobject lpObject);
88
AlertStdCFStringAlertParamRec *getAlertStdCFStringAlertParamRecFields(JNIEnv *env, jobject lpObject, AlertStdCFStringAlertParamRec *lpStruct);
88
AlertStdCFStringAlertParamRec *getAlertStdCFStringAlertParamRecFields(JNIEnv *env, jobject lpObject, AlertStdCFStringAlertParamRec *lpStruct);
89
void setAlertStdCFStringAlertParamRecFields(JNIEnv *env, jobject lpObject, AlertStdCFStringAlertParamRec *lpStruct);
89
void setAlertStdCFStringAlertParamRecFields(JNIEnv *env, jobject lpObject, AlertStdCFStringAlertParamRec *lpStruct);
90
#define AlertStdCFStringAlertParamRec_sizeof() sizeof(AlertStdCFStringAlertParamRec)
90
#define AlertStdCFStringAlertParamRec_sizeof() sizeof(AlertStdCFStringAlertParamRec)
91
#else
91
#else
92
#define cacheAlertStdCFStringAlertParamRecFields(a,b)
92
#define cacheAlertStdCFStringAlertParamRecFields(a,b)
93
#define getAlertStdCFStringAlertParamRecFields(a,b,c) NULL
93
#define getAlertStdCFStringAlertParamRecFields(a,b,c) NULL
94
#define setAlertStdCFStringAlertParamRecFields(a,b,c)
94
#define setAlertStdCFStringAlertParamRecFields(a,b,c)
95
#define AlertStdCFStringAlertParamRec_sizeof() 0
95
#define AlertStdCFStringAlertParamRec_sizeof() 0
96
#endif
96
#endif
97
97
98
#ifndef NO_BitMap
98
#ifndef NO_BitMap
99
void cacheBitMapFields(JNIEnv *env, jobject lpObject);
99
void cacheBitMapFields(JNIEnv *env, jobject lpObject);
100
BitMap *getBitMapFields(JNIEnv *env, jobject lpObject, BitMap *lpStruct);
100
BitMap *getBitMapFields(JNIEnv *env, jobject lpObject, BitMap *lpStruct);
101
void setBitMapFields(JNIEnv *env, jobject lpObject, BitMap *lpStruct);
101
void setBitMapFields(JNIEnv *env, jobject lpObject, BitMap *lpStruct);
102
#define BitMap_sizeof() sizeof(BitMap)
102
#define BitMap_sizeof() sizeof(BitMap)
103
#else
103
#else
104
#define cacheBitMapFields(a,b)
104
#define cacheBitMapFields(a,b)
105
#define getBitMapFields(a,b,c) NULL
105
#define getBitMapFields(a,b,c) NULL
106
#define setBitMapFields(a,b,c)
106
#define setBitMapFields(a,b,c)
107
#define BitMap_sizeof() 0
107
#define BitMap_sizeof() 0
108
#endif
108
#endif
109
109
110
#ifndef NO_CFRange
110
#ifndef NO_CFRange
111
void cacheCFRangeFields(JNIEnv *env, jobject lpObject);
111
void cacheCFRangeFields(JNIEnv *env, jobject lpObject);
112
CFRange *getCFRangeFields(JNIEnv *env, jobject lpObject, CFRange *lpStruct);
112
CFRange *getCFRangeFields(JNIEnv *env, jobject lpObject, CFRange *lpStruct);
113
void setCFRangeFields(JNIEnv *env, jobject lpObject, CFRange *lpStruct);
113
void setCFRangeFields(JNIEnv *env, jobject lpObject, CFRange *lpStruct);
114
#define CFRange_sizeof() sizeof(CFRange)
114
#define CFRange_sizeof() sizeof(CFRange)
115
#else
115
#else
116
#define cacheCFRangeFields(a,b)
116
#define cacheCFRangeFields(a,b)
117
#define getCFRangeFields(a,b,c) NULL
117
#define getCFRangeFields(a,b,c) NULL
118
#define setCFRangeFields(a,b,c)
118
#define setCFRangeFields(a,b,c)
119
#define CFRange_sizeof() 0
119
#define CFRange_sizeof() 0
120
#endif
120
#endif
121
121
122
#ifndef NO_CGPoint
122
#ifndef NO_CGPoint
123
void cacheCGPointFields(JNIEnv *env, jobject lpObject);
123
void cacheCGPointFields(JNIEnv *env, jobject lpObject);
124
CGPoint *getCGPointFields(JNIEnv *env, jobject lpObject, CGPoint *lpStruct);
124
CGPoint *getCGPointFields(JNIEnv *env, jobject lpObject, CGPoint *lpStruct);
125
void setCGPointFields(JNIEnv *env, jobject lpObject, CGPoint *lpStruct);
125
void setCGPointFields(JNIEnv *env, jobject lpObject, CGPoint *lpStruct);
126
#define CGPoint_sizeof() sizeof(CGPoint)
126
#define CGPoint_sizeof() sizeof(CGPoint)
127
#else
127
#else
128
#define cacheCGPointFields(a,b)
128
#define cacheCGPointFields(a,b)
129
#define getCGPointFields(a,b,c) NULL
129
#define getCGPointFields(a,b,c) NULL
130
#define setCGPointFields(a,b,c)
130
#define setCGPointFields(a,b,c)
131
#define CGPoint_sizeof() 0
131
#define CGPoint_sizeof() 0
132
#endif
132
#endif
133
133
134
#ifndef NO_CGRect
134
#ifndef NO_CGRect
135
void cacheCGRectFields(JNIEnv *env, jobject lpObject);
135
void cacheCGRectFields(JNIEnv *env, jobject lpObject);
136
CGRect *getCGRectFields(JNIEnv *env, jobject lpObject, CGRect *lpStruct);
136
CGRect *getCGRectFields(JNIEnv *env, jobject lpObject, CGRect *lpStruct);
137
void setCGRectFields(JNIEnv *env, jobject lpObject, CGRect *lpStruct);
137
void setCGRectFields(JNIEnv *env, jobject lpObject, CGRect *lpStruct);
138
#define CGRect_sizeof() sizeof(CGRect)
138
#define CGRect_sizeof() sizeof(CGRect)
139
#else
139
#else
140
#define cacheCGRectFields(a,b)
140
#define cacheCGRectFields(a,b)
141
#define getCGRectFields(a,b,c) NULL
141
#define getCGRectFields(a,b,c) NULL
142
#define setCGRectFields(a,b,c)
142
#define setCGRectFields(a,b,c)
143
#define CGRect_sizeof() 0
143
#define CGRect_sizeof() 0
144
#endif
144
#endif
145
145
146
#ifndef NO_ColorPickerInfo
146
#ifndef NO_ColorPickerInfo
147
void cacheColorPickerInfoFields(JNIEnv *env, jobject lpObject);
147
void cacheColorPickerInfoFields(JNIEnv *env, jobject lpObject);
148
ColorPickerInfo *getColorPickerInfoFields(JNIEnv *env, jobject lpObject, ColorPickerInfo *lpStruct);
148
ColorPickerInfo *getColorPickerInfoFields(JNIEnv *env, jobject lpObject, ColorPickerInfo *lpStruct);
149
void setColorPickerInfoFields(JNIEnv *env, jobject lpObject, ColorPickerInfo *lpStruct);
149
void setColorPickerInfoFields(JNIEnv *env, jobject lpObject, ColorPickerInfo *lpStruct);
150
#define ColorPickerInfo_sizeof() sizeof(ColorPickerInfo)
150
#define ColorPickerInfo_sizeof() sizeof(ColorPickerInfo)
151
#else
151
#else
152
#define cacheColorPickerInfoFields(a,b)
152
#define cacheColorPickerInfoFields(a,b)
153
#define getColorPickerInfoFields(a,b,c) NULL
153
#define getColorPickerInfoFields(a,b,c) NULL
154
#define setColorPickerInfoFields(a,b,c)
154
#define setColorPickerInfoFields(a,b,c)
155
#define ColorPickerInfo_sizeof() 0
155
#define ColorPickerInfo_sizeof() 0
156
#endif
156
#endif
157
157
158
#ifndef NO_ControlButtonContentInfo
158
#ifndef NO_ControlButtonContentInfo
159
void cacheControlButtonContentInfoFields(JNIEnv *env, jobject lpObject);
159
void cacheControlButtonContentInfoFields(JNIEnv *env, jobject lpObject);
160
ControlButtonContentInfo *getControlButtonContentInfoFields(JNIEnv *env, jobject lpObject, ControlButtonContentInfo *lpStruct);
160
ControlButtonContentInfo *getControlButtonContentInfoFields(JNIEnv *env, jobject lpObject, ControlButtonContentInfo *lpStruct);
161
void setControlButtonContentInfoFields(JNIEnv *env, jobject lpObject, ControlButtonContentInfo *lpStruct);
161
void setControlButtonContentInfoFields(JNIEnv *env, jobject lpObject, ControlButtonContentInfo *lpStruct);
162
#define ControlButtonContentInfo_sizeof() sizeof(ControlButtonContentInfo)
162
#define ControlButtonContentInfo_sizeof() sizeof(ControlButtonContentInfo)
163
#else
163
#else
164
#define cacheControlButtonContentInfoFields(a,b)
164
#define cacheControlButtonContentInfoFields(a,b)
165
#define getControlButtonContentInfoFields(a,b,c) NULL
165
#define getControlButtonContentInfoFields(a,b,c) NULL
166
#define setControlButtonContentInfoFields(a,b,c)
166
#define setControlButtonContentInfoFields(a,b,c)
167
#define ControlButtonContentInfo_sizeof() 0
167
#define ControlButtonContentInfo_sizeof() 0
168
#endif
168
#endif
169
169
170
#ifndef NO_ControlFontStyleRec
170
#ifndef NO_ControlFontStyleRec
171
void cacheControlFontStyleRecFields(JNIEnv *env, jobject lpObject);
171
void cacheControlFontStyleRecFields(JNIEnv *env, jobject lpObject);
172
ControlFontStyleRec *getControlFontStyleRecFields(JNIEnv *env, jobject lpObject, ControlFontStyleRec *lpStruct);
172
ControlFontStyleRec *getControlFontStyleRecFields(JNIEnv *env, jobject lpObject, ControlFontStyleRec *lpStruct);
173
void setControlFontStyleRecFields(JNIEnv *env, jobject lpObject, ControlFontStyleRec *lpStruct);
173
void setControlFontStyleRecFields(JNIEnv *env, jobject lpObject, ControlFontStyleRec *lpStruct);
174
#define ControlFontStyleRec_sizeof() sizeof(ControlFontStyleRec)
174
#define ControlFontStyleRec_sizeof() sizeof(ControlFontStyleRec)
175
#else
175
#else
176
#define cacheControlFontStyleRecFields(a,b)
176
#define cacheControlFontStyleRecFields(a,b)
177
#define getControlFontStyleRecFields(a,b,c) NULL
177
#define getControlFontStyleRecFields(a,b,c) NULL
178
#define setControlFontStyleRecFields(a,b,c)
178
#define setControlFontStyleRecFields(a,b,c)
179
#define ControlFontStyleRec_sizeof() 0
179
#define ControlFontStyleRec_sizeof() 0
180
#endif
180
#endif
181
181
182
#ifndef NO_ControlTabEntry
182
#ifndef NO_ControlTabEntry
183
void cacheControlTabEntryFields(JNIEnv *env, jobject lpObject);
183
void cacheControlTabEntryFields(JNIEnv *env, jobject lpObject);
184
ControlTabEntry *getControlTabEntryFields(JNIEnv *env, jobject lpObject, ControlTabEntry *lpStruct);
184
ControlTabEntry *getControlTabEntryFields(JNIEnv *env, jobject lpObject, ControlTabEntry *lpStruct);
185
void setControlTabEntryFields(JNIEnv *env, jobject lpObject, ControlTabEntry *lpStruct);
185
void setControlTabEntryFields(JNIEnv *env, jobject lpObject, ControlTabEntry *lpStruct);
186
#define ControlTabEntry_sizeof() sizeof(ControlTabEntry)
186
#define ControlTabEntry_sizeof() sizeof(ControlTabEntry)
187
#else
187
#else
188
#define cacheControlTabEntryFields(a,b)
188
#define cacheControlTabEntryFields(a,b)
189
#define getControlTabEntryFields(a,b,c) NULL
189
#define getControlTabEntryFields(a,b,c) NULL
190
#define setControlTabEntryFields(a,b,c)
190
#define setControlTabEntryFields(a,b,c)
191
#define ControlTabEntry_sizeof() 0
191
#define ControlTabEntry_sizeof() 0
192
#endif
192
#endif
193
193
194
#ifndef NO_ControlTabInfoRecV1
194
#ifndef NO_ControlTabInfoRecV1
195
void cacheControlTabInfoRecV1Fields(JNIEnv *env, jobject lpObject);
195
void cacheControlTabInfoRecV1Fields(JNIEnv *env, jobject lpObject);
196
ControlTabInfoRecV1 *getControlTabInfoRecV1Fields(JNIEnv *env, jobject lpObject, ControlTabInfoRecV1 *lpStruct);
196
ControlTabInfoRecV1 *getControlTabInfoRecV1Fields(JNIEnv *env, jobject lpObject, ControlTabInfoRecV1 *lpStruct);
197
void setControlTabInfoRecV1Fields(JNIEnv *env, jobject lpObject, ControlTabInfoRecV1 *lpStruct);
197
void setControlTabInfoRecV1Fields(JNIEnv *env, jobject lpObject, ControlTabInfoRecV1 *lpStruct);
198
#define ControlTabInfoRecV1_sizeof() sizeof(ControlTabInfoRecV1)
198
#define ControlTabInfoRecV1_sizeof() sizeof(ControlTabInfoRecV1)
199
#else
199
#else
200
#define cacheControlTabInfoRecV1Fields(a,b)
200
#define cacheControlTabInfoRecV1Fields(a,b)
201
#define getControlTabInfoRecV1Fields(a,b,c) NULL
201
#define getControlTabInfoRecV1Fields(a,b,c) NULL
202
#define setControlTabInfoRecV1Fields(a,b,c)
202
#define setControlTabInfoRecV1Fields(a,b,c)
203
#define ControlTabInfoRecV1_sizeof() 0
203
#define ControlTabInfoRecV1_sizeof() 0
204
#endif
204
#endif
205
205
206
#ifndef NO_Cursor
206
#ifndef NO_Cursor
207
void cacheCursorFields(JNIEnv *env, jobject lpObject);
207
void cacheCursorFields(JNIEnv *env, jobject lpObject);
208
Cursor *getCursorFields(JNIEnv *env, jobject lpObject, Cursor *lpStruct);
208
Cursor *getCursorFields(JNIEnv *env, jobject lpObject, Cursor *lpStruct);
209
void setCursorFields(JNIEnv *env, jobject lpObject, Cursor *lpStruct);
209
void setCursorFields(JNIEnv *env, jobject lpObject, Cursor *lpStruct);
210
#define Cursor_sizeof() sizeof(Cursor)
210
#define Cursor_sizeof() sizeof(Cursor)
211
#else
211
#else
212
#define cacheCursorFields(a,b)
212
#define cacheCursorFields(a,b)
213
#define getCursorFields(a,b,c) NULL
213
#define getCursorFields(a,b,c) NULL
214
#define setCursorFields(a,b,c)
214
#define setCursorFields(a,b,c)
215
#define Cursor_sizeof() 0
215
#define Cursor_sizeof() 0
216
#endif
216
#endif
217
217
218
#ifndef NO_DataBrowserCallbacks
218
#ifndef NO_DataBrowserCallbacks
219
void cacheDataBrowserCallbacksFields(JNIEnv *env, jobject lpObject);
219
void cacheDataBrowserCallbacksFields(JNIEnv *env, jobject lpObject);
220
DataBrowserCallbacks *getDataBrowserCallbacksFields(JNIEnv *env, jobject lpObject, DataBrowserCallbacks *lpStruct);
220
DataBrowserCallbacks *getDataBrowserCallbacksFields(JNIEnv *env, jobject lpObject, DataBrowserCallbacks *lpStruct);
221
void setDataBrowserCallbacksFields(JNIEnv *env, jobject lpObject, DataBrowserCallbacks *lpStruct);
221
void setDataBrowserCallbacksFields(JNIEnv *env, jobject lpObject, DataBrowserCallbacks *lpStruct);
222
#define DataBrowserCallbacks_sizeof() sizeof(DataBrowserCallbacks)
222
#define DataBrowserCallbacks_sizeof() sizeof(DataBrowserCallbacks)
223
#else
223
#else
224
#define cacheDataBrowserCallbacksFields(a,b)
224
#define cacheDataBrowserCallbacksFields(a,b)
225
#define getDataBrowserCallbacksFields(a,b,c) NULL
225
#define getDataBrowserCallbacksFields(a,b,c) NULL
226
#define setDataBrowserCallbacksFields(a,b,c)
226
#define setDataBrowserCallbacksFields(a,b,c)
227
#define DataBrowserCallbacks_sizeof() 0
227
#define DataBrowserCallbacks_sizeof() 0
228
#endif
228
#endif
229
229
230
#ifndef NO_DataBrowserCustomCallbacks
230
#ifndef NO_DataBrowserCustomCallbacks
231
void cacheDataBrowserCustomCallbacksFields(JNIEnv *env, jobject lpObject);
231
void cacheDataBrowserCustomCallbacksFields(JNIEnv *env, jobject lpObject);
232
DataBrowserCustomCallbacks *getDataBrowserCustomCallbacksFields(JNIEnv *env, jobject lpObject, DataBrowserCustomCallbacks *lpStruct);
232
DataBrowserCustomCallbacks *getDataBrowserCustomCallbacksFields(JNIEnv *env, jobject lpObject, DataBrowserCustomCallbacks *lpStruct);
233
void setDataBrowserCustomCallbacksFields(JNIEnv *env, jobject lpObject, DataBrowserCustomCallbacks *lpStruct);
233
void setDataBrowserCustomCallbacksFields(JNIEnv *env, jobject lpObject, DataBrowserCustomCallbacks *lpStruct);
234
#define DataBrowserCustomCallbacks_sizeof() sizeof(DataBrowserCustomCallbacks)
234
#define DataBrowserCustomCallbacks_sizeof() sizeof(DataBrowserCustomCallbacks)
235
#else
235
#else
236
#define cacheDataBrowserCustomCallbacksFields(a,b)
236
#define cacheDataBrowserCustomCallbacksFields(a,b)
237
#define getDataBrowserCustomCallbacksFields(a,b,c) NULL
237
#define getDataBrowserCustomCallbacksFields(a,b,c) NULL
238
#define setDataBrowserCustomCallbacksFields(a,b,c)
238
#define setDataBrowserCustomCallbacksFields(a,b,c)
239
#define DataBrowserCustomCallbacks_sizeof() 0
239
#define DataBrowserCustomCallbacks_sizeof() 0
240
#endif
240
#endif
241
241
242
#ifndef NO_DataBrowserListViewColumnDesc
242
#ifndef NO_DataBrowserListViewColumnDesc
243
void cacheDataBrowserListViewColumnDescFields(JNIEnv *env, jobject lpObject);
243
void cacheDataBrowserListViewColumnDescFields(JNIEnv *env, jobject lpObject);
244
DataBrowserListViewColumnDesc *getDataBrowserListViewColumnDescFields(JNIEnv *env, jobject lpObject, DataBrowserListViewColumnDesc *lpStruct);
244
DataBrowserListViewColumnDesc *getDataBrowserListViewColumnDescFields(JNIEnv *env, jobject lpObject, DataBrowserListViewColumnDesc *lpStruct);
245
void setDataBrowserListViewColumnDescFields(JNIEnv *env, jobject lpObject, DataBrowserListViewColumnDesc *lpStruct);
245
void setDataBrowserListViewColumnDescFields(JNIEnv *env, jobject lpObject, DataBrowserListViewColumnDesc *lpStruct);
246
#define DataBrowserListViewColumnDesc_sizeof() sizeof(DataBrowserListViewColumnDesc)
246
#define DataBrowserListViewColumnDesc_sizeof() sizeof(DataBrowserListViewColumnDesc)
247
#else
247
#else
248
#define cacheDataBrowserListViewColumnDescFields(a,b)
248
#define cacheDataBrowserListViewColumnDescFields(a,b)
249
#define getDataBrowserListViewColumnDescFields(a,b,c) NULL
249
#define getDataBrowserListViewColumnDescFields(a,b,c) NULL
250
#define setDataBrowserListViewColumnDescFields(a,b,c)
250
#define setDataBrowserListViewColumnDescFields(a,b,c)
251
#define DataBrowserListViewColumnDesc_sizeof() 0
251
#define DataBrowserListViewColumnDesc_sizeof() 0
252
#endif
252
#endif
253
253
254
#ifndef NO_DataBrowserListViewHeaderDesc
254
#ifndef NO_DataBrowserListViewHeaderDesc
255
void cacheDataBrowserListViewHeaderDescFields(JNIEnv *env, jobject lpObject);
255
void cacheDataBrowserListViewHeaderDescFields(JNIEnv *env, jobject lpObject);
256
DataBrowserListViewHeaderDesc *getDataBrowserListViewHeaderDescFields(JNIEnv *env, jobject lpObject, DataBrowserListViewHeaderDesc *lpStruct);
256
DataBrowserListViewHeaderDesc *getDataBrowserListViewHeaderDescFields(JNIEnv *env, jobject lpObject, DataBrowserListViewHeaderDesc *lpStruct);
257
void setDataBrowserListViewHeaderDescFields(JNIEnv *env, jobject lpObject, DataBrowserListViewHeaderDesc *lpStruct);
257
void setDataBrowserListViewHeaderDescFields(JNIEnv *env, jobject lpObject, DataBrowserListViewHeaderDesc *lpStruct);
258
#define DataBrowserListViewHeaderDesc_sizeof() sizeof(DataBrowserListViewHeaderDesc)
258
#define DataBrowserListViewHeaderDesc_sizeof() sizeof(DataBrowserListViewHeaderDesc)
259
#else
259
#else
260
#define cacheDataBrowserListViewHeaderDescFields(a,b)
260
#define cacheDataBrowserListViewHeaderDescFields(a,b)
261
#define getDataBrowserListViewHeaderDescFields(a,b,c) NULL
261
#define getDataBrowserListViewHeaderDescFields(a,b,c) NULL
262
#define setDataBrowserListViewHeaderDescFields(a,b,c)
262
#define setDataBrowserListViewHeaderDescFields(a,b,c)
263
#define DataBrowserListViewHeaderDesc_sizeof() 0
263
#define DataBrowserListViewHeaderDesc_sizeof() 0
264
#endif
264
#endif
265
265
266
#ifndef NO_EventRecord
266
#ifndef NO_EventRecord
267
void cacheEventRecordFields(JNIEnv *env, jobject lpObject);
267
void cacheEventRecordFields(JNIEnv *env, jobject lpObject);
268
EventRecord *getEventRecordFields(JNIEnv *env, jobject lpObject, EventRecord *lpStruct);
268
EventRecord *getEventRecordFields(JNIEnv *env, jobject lpObject, EventRecord *lpStruct);
269
void setEventRecordFields(JNIEnv *env, jobject lpObject, EventRecord *lpStruct);
269
void setEventRecordFields(JNIEnv *env, jobject lpObject, EventRecord *lpStruct);
270
#define EventRecord_sizeof() sizeof(EventRecord)
270
#define EventRecord_sizeof() sizeof(EventRecord)
271
#else
271
#else
272
#define cacheEventRecordFields(a,b)
272
#define cacheEventRecordFields(a,b)
273
#define getEventRecordFields(a,b,c) NULL
273
#define getEventRecordFields(a,b,c) NULL
274
#define setEventRecordFields(a,b,c)
274
#define setEventRecordFields(a,b,c)
275
#define EventRecord_sizeof() 0
275
#define EventRecord_sizeof() 0
276
#endif
276
#endif
277
277
278
#ifndef NO_FontInfo
278
#ifndef NO_FontInfo
279
void cacheFontInfoFields(JNIEnv *env, jobject lpObject);
279
void cacheFontInfoFields(JNIEnv *env, jobject lpObject);
280
FontInfo *getFontInfoFields(JNIEnv *env, jobject lpObject, FontInfo *lpStruct);
280
FontInfo *getFontInfoFields(JNIEnv *env, jobject lpObject, FontInfo *lpStruct);
281
void setFontInfoFields(JNIEnv *env, jobject lpObject, FontInfo *lpStruct);
281
void setFontInfoFields(JNIEnv *env, jobject lpObject, FontInfo *lpStruct);
282
#define FontInfo_sizeof() sizeof(FontInfo)
282
#define FontInfo_sizeof() sizeof(FontInfo)
283
#else
283
#else
284
#define cacheFontInfoFields(a,b)
284
#define cacheFontInfoFields(a,b)
285
#define getFontInfoFields(a,b,c) NULL
285
#define getFontInfoFields(a,b,c) NULL
286
#define setFontInfoFields(a,b,c)
286
#define setFontInfoFields(a,b,c)
287
#define FontInfo_sizeof() 0
287
#define FontInfo_sizeof() 0
288
#endif
288
#endif
289
289
290
#ifndef NO_FontSelectionQDStyle
290
#ifndef NO_FontSelectionQDStyle
291
void cacheFontSelectionQDStyleFields(JNIEnv *env, jobject lpObject);
291
void cacheFontSelectionQDStyleFields(JNIEnv *env, jobject lpObject);
292
FontSelectionQDStyle *getFontSelectionQDStyleFields(JNIEnv *env, jobject lpObject, FontSelectionQDStyle *lpStruct);
292
FontSelectionQDStyle *getFontSelectionQDStyleFields(JNIEnv *env, jobject lpObject, FontSelectionQDStyle *lpStruct);
293
void setFontSelectionQDStyleFields(JNIEnv *env, jobject lpObject, FontSelectionQDStyle *lpStruct);
293
void setFontSelectionQDStyleFields(JNIEnv *env, jobject lpObject, FontSelectionQDStyle *lpStruct);
294
#define FontSelectionQDStyle_sizeof() sizeof(FontSelectionQDStyle)
294
#define FontSelectionQDStyle_sizeof() sizeof(FontSelectionQDStyle)
295
#else
295
#else
296
#define cacheFontSelectionQDStyleFields(a,b)
296
#define cacheFontSelectionQDStyleFields(a,b)
297
#define getFontSelectionQDStyleFields(a,b,c) NULL
297
#define getFontSelectionQDStyleFields(a,b,c) NULL
298
#define setFontSelectionQDStyleFields(a,b,c)
298
#define setFontSelectionQDStyleFields(a,b,c)
299
#define FontSelectionQDStyle_sizeof() 0
299
#define FontSelectionQDStyle_sizeof() 0
300
#endif
300
#endif
301
301
302
#ifndef NO_GDevice
302
#ifndef NO_GDevice
303
void cacheGDeviceFields(JNIEnv *env, jobject lpObject);
303
void cacheGDeviceFields(JNIEnv *env, jobject lpObject);
304
GDevice *getGDeviceFields(JNIEnv *env, jobject lpObject, GDevice *lpStruct);
304
GDevice *getGDeviceFields(JNIEnv *env, jobject lpObject, GDevice *lpStruct);
305
void setGDeviceFields(JNIEnv *env, jobject lpObject, GDevice *lpStruct);
305
void setGDeviceFields(JNIEnv *env, jobject lpObject, GDevice *lpStruct);
306
#define GDevice_sizeof() sizeof(GDevice)
306
#define GDevice_sizeof() sizeof(GDevice)
307
#else
307
#else
308
#define cacheGDeviceFields(a,b)
308
#define cacheGDeviceFields(a,b)
309
#define getGDeviceFields(a,b,c) NULL
309
#define getGDeviceFields(a,b,c) NULL
310
#define setGDeviceFields(a,b,c)
310
#define setGDeviceFields(a,b,c)
311
#define GDevice_sizeof() 0
311
#define GDevice_sizeof() 0
312
#endif
312
#endif
313
313
314
#ifndef NO_HICommand
314
#ifndef NO_HICommand
315
void cacheHICommandFields(JNIEnv *env, jobject lpObject);
315
void cacheHICommandFields(JNIEnv *env, jobject lpObject);
316
HICommand *getHICommandFields(JNIEnv *env, jobject lpObject, HICommand *lpStruct);
316
HICommand *getHICommandFields(JNIEnv *env, jobject lpObject, HICommand *lpStruct);
317
void setHICommandFields(JNIEnv *env, jobject lpObject, HICommand *lpStruct);
317
void setHICommandFields(JNIEnv *env, jobject lpObject, HICommand *lpStruct);
318
#define HICommand_sizeof() sizeof(HICommand)
318
#define HICommand_sizeof() sizeof(HICommand)
319
#else
319
#else
320
#define cacheHICommandFields(a,b)
320
#define cacheHICommandFields(a,b)
321
#define getHICommandFields(a,b,c) NULL
321
#define getHICommandFields(a,b,c) NULL
322
#define setHICommandFields(a,b,c)
322
#define setHICommandFields(a,b,c)
323
#define HICommand_sizeof() 0
323
#define HICommand_sizeof() 0
324
#endif
324
#endif
325
325
326
#ifndef NO_HMHelpContentRec
326
#ifndef NO_HMHelpContentRec
327
void cacheHMHelpContentRecFields(JNIEnv *env, jobject lpObject);
327
void cacheHMHelpContentRecFields(JNIEnv *env, jobject lpObject);
328
HMHelpContentRec *getHMHelpContentRecFields(JNIEnv *env, jobject lpObject, HMHelpContentRec *lpStruct);
328
HMHelpContentRec *getHMHelpContentRecFields(JNIEnv *env, jobject lpObject, HMHelpContentRec *lpStruct);
329
void setHMHelpContentRecFields(JNIEnv *env, jobject lpObject, HMHelpContentRec *lpStruct);
329
void setHMHelpContentRecFields(JNIEnv *env, jobject lpObject, HMHelpContentRec *lpStruct);
330
#define HMHelpContentRec_sizeof() sizeof(HMHelpContentRec)
330
#define HMHelpContentRec_sizeof() sizeof(HMHelpContentRec)
331
#else
331
#else
332
#define cacheHMHelpContentRecFields(a,b)
332
#define cacheHMHelpContentRecFields(a,b)
333
#define getHMHelpContentRecFields(a,b,c) NULL
333
#define getHMHelpContentRecFields(a,b,c) NULL
334
#define setHMHelpContentRecFields(a,b,c)
334
#define setHMHelpContentRecFields(a,b,c)
335
#define HMHelpContentRec_sizeof() 0
335
#define HMHelpContentRec_sizeof() 0
336
#endif
336
#endif
337
337
338
#ifndef NO_MenuTrackingData
338
#ifndef NO_MenuTrackingData
339
void cacheMenuTrackingDataFields(JNIEnv *env, jobject lpObject);
339
void cacheMenuTrackingDataFields(JNIEnv *env, jobject lpObject);
340
MenuTrackingData *getMenuTrackingDataFields(JNIEnv *env, jobject lpObject, MenuTrackingData *lpStruct);
340
MenuTrackingData *getMenuTrackingDataFields(JNIEnv *env, jobject lpObject, MenuTrackingData *lpStruct);
341
void setMenuTrackingDataFields(JNIEnv *env, jobject lpObject, MenuTrackingData *lpStruct);
341
void setMenuTrackingDataFields(JNIEnv *env, jobject lpObject, MenuTrackingData *lpStruct);
342
#define MenuTrackingData_sizeof() sizeof(MenuTrackingData)
342
#define MenuTrackingData_sizeof() sizeof(MenuTrackingData)
343
#else
343
#else
344
#define cacheMenuTrackingDataFields(a,b)
344
#define cacheMenuTrackingDataFields(a,b)
345
#define getMenuTrackingDataFields(a,b,c) NULL
345
#define getMenuTrackingDataFields(a,b,c) NULL
346
#define setMenuTrackingDataFields(a,b,c)
346
#define setMenuTrackingDataFields(a,b,c)
347
#define MenuTrackingData_sizeof() 0
347
#define MenuTrackingData_sizeof() 0
348
#endif
348
#endif
349
349
350
#ifndef NO_NavDialogCreationOptions
350
#ifndef NO_NavDialogCreationOptions
351
void cacheNavDialogCreationOptionsFields(JNIEnv *env, jobject lpObject);
351
void cacheNavDialogCreationOptionsFields(JNIEnv *env, jobject lpObject);
352
NavDialogCreationOptions *getNavDialogCreationOptionsFields(JNIEnv *env, jobject lpObject, NavDialogCreationOptions *lpStruct);
352
NavDialogCreationOptions *getNavDialogCreationOptionsFields(JNIEnv *env, jobject lpObject, NavDialogCreationOptions *lpStruct);
353
void setNavDialogCreationOptionsFields(JNIEnv *env, jobject lpObject, NavDialogCreationOptions *lpStruct);
353
void setNavDialogCreationOptionsFields(JNIEnv *env, jobject lpObject, NavDialogCreationOptions *lpStruct);
354
#define NavDialogCreationOptions_sizeof() sizeof(NavDialogCreationOptions)
354
#define NavDialogCreationOptions_sizeof() sizeof(NavDialogCreationOptions)
355
#else
355
#else
356
#define cacheNavDialogCreationOptionsFields(a,b)
356
#define cacheNavDialogCreationOptionsFields(a,b)
357
#define getNavDialogCreationOptionsFields(a,b,c) NULL
357
#define getNavDialogCreationOptionsFields(a,b,c) NULL
358
#define setNavDialogCreationOptionsFields(a,b,c)
358
#define setNavDialogCreationOptionsFields(a,b,c)
359
#define NavDialogCreationOptions_sizeof() 0
359
#define NavDialogCreationOptions_sizeof() 0
360
#endif
360
#endif
361
361
362
#ifndef NO_NavReplyRecord
362
#ifndef NO_NavReplyRecord
363
void cacheNavReplyRecordFields(JNIEnv *env, jobject lpObject);
363
void cacheNavReplyRecordFields(JNIEnv *env, jobject lpObject);
364
NavReplyRecord *getNavReplyRecordFields(JNIEnv *env, jobject lpObject, NavReplyRecord *lpStruct);
364
NavReplyRecord *getNavReplyRecordFields(JNIEnv *env, jobject lpObject, NavReplyRecord *lpStruct);
365
void setNavReplyRecordFields(JNIEnv *env, jobject lpObject, NavReplyRecord *lpStruct);
365
void setNavReplyRecordFields(JNIEnv *env, jobject lpObject, NavReplyRecord *lpStruct);
366
#define NavReplyRecord_sizeof() sizeof(NavReplyRecord)
366
#define NavReplyRecord_sizeof() sizeof(NavReplyRecord)
367
#else
367
#else
368
#define cacheNavReplyRecordFields(a,b)
368
#define cacheNavReplyRecordFields(a,b)
369
#define getNavReplyRecordFields(a,b,c) NULL
369
#define getNavReplyRecordFields(a,b,c) NULL
370
#define setNavReplyRecordFields(a,b,c)
370
#define setNavReplyRecordFields(a,b,c)
371
#define NavReplyRecord_sizeof() 0
371
#define NavReplyRecord_sizeof() 0
372
#endif
372
#endif
373
373
374
#ifndef NO_PMRect
374
#ifndef NO_PMRect
375
void cachePMRectFields(JNIEnv *env, jobject lpObject);
375
void cachePMRectFields(JNIEnv *env, jobject lpObject);
376
PMRect *getPMRectFields(JNIEnv *env, jobject lpObject, PMRect *lpStruct);
376
PMRect *getPMRectFields(JNIEnv *env, jobject lpObject, PMRect *lpStruct);
377
void setPMRectFields(JNIEnv *env, jobject lpObject, PMRect *lpStruct);
377
void setPMRectFields(JNIEnv *env, jobject lpObject, PMRect *lpStruct);
378
#define PMRect_sizeof() sizeof(PMRect)
378
#define PMRect_sizeof() sizeof(PMRect)
379
#else
379
#else
380
#define cachePMRectFields(a,b)
380
#define cachePMRectFields(a,b)
381
#define getPMRectFields(a,b,c) NULL
381
#define getPMRectFields(a,b,c) NULL
382
#define setPMRectFields(a,b,c)
382
#define setPMRectFields(a,b,c)
383
#define PMRect_sizeof() 0
383
#define PMRect_sizeof() 0
384
#endif
384
#endif
385
385
386
#ifndef NO_PMResolution
386
#ifndef NO_PMResolution
387
void cachePMResolutionFields(JNIEnv *env, jobject lpObject);
387
void cachePMResolutionFields(JNIEnv *env, jobject lpObject);
388
PMResolution *getPMResolutionFields(JNIEnv *env, jobject lpObject, PMResolution *lpStruct);
388
PMResolution *getPMResolutionFields(JNIEnv *env, jobject lpObject, PMResolution *lpStruct);
389
void setPMResolutionFields(JNIEnv *env, jobject lpObject, PMResolution *lpStruct);
389
void setPMResolutionFields(JNIEnv *env, jobject lpObject, PMResolution *lpStruct);
390
#define PMResolution_sizeof() sizeof(PMResolution)
390
#define PMResolution_sizeof() sizeof(PMResolution)
391
#else
391
#else
392
#define cachePMResolutionFields(a,b)
392
#define cachePMResolutionFields(a,b)
393
#define getPMResolutionFields(a,b,c) NULL
393
#define getPMResolutionFields(a,b,c) NULL
394
#define setPMResolutionFields(a,b,c)
394
#define setPMResolutionFields(a,b,c)
395
#define PMResolution_sizeof() 0
395
#define PMResolution_sizeof() 0
396
#endif
396
#endif
397
397
398
#ifndef NO_PixMap
398
#ifndef NO_PixMap
399
void cachePixMapFields(JNIEnv *env, jobject lpObject);
399
void cachePixMapFields(JNIEnv *env, jobject lpObject);
400
PixMap *getPixMapFields(JNIEnv *env, jobject lpObject, PixMap *lpStruct);
400
PixMap *getPixMapFields(JNIEnv *env, jobject lpObject, PixMap *lpStruct);
401
void setPixMapFields(JNIEnv *env, jobject lpObject, PixMap *lpStruct);
401
void setPixMapFields(JNIEnv *env, jobject lpObject, PixMap *lpStruct);
402
#define PixMap_sizeof() sizeof(PixMap)
402
#define PixMap_sizeof() sizeof(PixMap)
403
#else
403
#else
404
#define cachePixMapFields(a,b)
404
#define cachePixMapFields(a,b)
405
#define getPixMapFields(a,b,c) NULL
405
#define getPixMapFields(a,b,c) NULL
406
#define setPixMapFields(a,b,c)
406
#define setPixMapFields(a,b,c)
407
#define PixMap_sizeof() 0
407
#define PixMap_sizeof() 0
408
#endif
408
#endif
409
409
410
#ifndef NO_Point
410
#ifndef NO_Point
411
void cachePointFields(JNIEnv *env, jobject lpObject);
411
void cachePointFields(JNIEnv *env, jobject lpObject);
412
Point *getPointFields(JNIEnv *env, jobject lpObject, Point *lpStruct);
412
Point *getPointFields(JNIEnv *env, jobject lpObject, Point *lpStruct);
413
void setPointFields(JNIEnv *env, jobject lpObject, Point *lpStruct);
413
void setPointFields(JNIEnv *env, jobject lpObject, Point *lpStruct);
414
#define Point_sizeof() sizeof(Point)
414
#define Point_sizeof() sizeof(Point)
415
#else
415
#else
416
#define cachePointFields(a,b)
416
#define cachePointFields(a,b)
417
#define getPointFields(a,b,c) NULL
417
#define getPointFields(a,b,c) NULL
418
#define setPointFields(a,b,c)
418
#define setPointFields(a,b,c)
419
#define Point_sizeof() 0
419
#define Point_sizeof() 0
420
#endif
420
#endif
421
421
422
#ifndef NO_RGBColor
422
#ifndef NO_PromiseHFSFlavor
423
void cacheRGBColorFields(JNIEnv *env, jobject lpObject);
423
void cachePromiseHFSFlavorFields(JNIEnv *env, jobject lpObject);
424
RGBColor *getRGBColorFields(JNIEnv *env, jobject lpObject, RGBColor *lpStruct);
424
PromiseHFSFlavor *getPromiseHFSFlavorFields(JNIEnv *env, jobject lpObject, PromiseHFSFlavor *lpStruct);
425
void setRGBColorFields(JNIEnv *env, jobject lpObject, RGBColor *lpStruct);
425
void setPromiseHFSFlavorFields(JNIEnv *env, jobject lpObject, PromiseHFSFlavor *lpStruct);
426
#define RGBColor_sizeof() sizeof(RGBColor)
426
#define PromiseHFSFlavor_sizeof() sizeof(PromiseHFSFlavor)
427
#else
427
#else
428
#define cacheRGBColorFields(a,b)
428
#define cachePromiseHFSFlavorFields(a,b)
429
#define getRGBColorFields(a,b,c) NULL
429
#define getPromiseHFSFlavorFields(a,b,c) NULL
430
#define setRGBColorFields(a,b,c)
430
#define setPromiseHFSFlavorFields(a,b,c)
431
#define RGBColor_sizeof() 0
431
#define PromiseHFSFlavor_sizeof() 0
432
#endif
432
#endif
433
433
434
#ifndef NO_Rect
434
#ifndef NO_RGBColor
435
void cacheRectFields(JNIEnv *env, jobject lpObject);
435
void cacheRGBColorFields(JNIEnv *env, jobject lpObject);
436
Rect *getRectFields(JNIEnv *env, jobject lpObject, Rect *lpStruct);
436
RGBColor *getRGBColorFields(JNIEnv *env, jobject lpObject, RGBColor *lpStruct);
437
void setRectFields(JNIEnv *env, jobject lpObject, Rect *lpStruct);
437
void setRGBColorFields(JNIEnv *env, jobject lpObject, RGBColor *lpStruct);
438
#define Rect_sizeof() sizeof(Rect)
438
#define RGBColor_sizeof() sizeof(RGBColor)
439
#else
439
#else
440
#define cacheRectFields(a,b)
440
#define cacheRGBColorFields(a,b)
441
#define getRectFields(a,b,c) NULL
441
#define getRGBColorFields(a,b,c) NULL
442
#define setRectFields(a,b,c)
442
#define setRGBColorFields(a,b,c)
443
#define Rect_sizeof() 0
443
#define RGBColor_sizeof() 0
444
#endif
444
#endif
445
445
446
#ifndef NO_TXNBackground
446
#ifndef NO_Rect
447
void cacheTXNBackgroundFields(JNIEnv *env, jobject lpObject);
447
void cacheRectFields(JNIEnv *env, jobject lpObject);
448
TXNBackground *getTXNBackgroundFields(JNIEnv *env, jobject lpObject, TXNBackground *lpStruct);
448
Rect *getRectFields(JNIEnv *env, jobject lpObject, Rect *lpStruct);
449
void setTXNBackgroundFields(JNIEnv *env, jobject lpObject, TXNBackground *lpStruct);
449
void setRectFields(JNIEnv *env, jobject lpObject, Rect *lpStruct);
450
#define TXNBackground_sizeof() sizeof(TXNBackground)
450
#define Rect_sizeof() sizeof(Rect)
451
#else
451
#else
452
#define cacheTXNBackgroundFields(a,b)
452
#define cacheRectFields(a,b)
453
#define getTXNBackgroundFields(a,b,c) NULL
453
#define getRectFields(a,b,c) NULL
454
#define setTXNBackgroundFields(a,b,c)
454
#define setRectFields(a,b,c)
455
#define TXNBackground_sizeof() 0
455
#define Rect_sizeof() 0
456
#endif
456
#endif
457
457
458
#ifndef NO_TXNLongRect
458
#ifndef NO_TXNBackground
459
void cacheTXNLongRectFields(JNIEnv *env, jobject lpObject);
459
void cacheTXNBackgroundFields(JNIEnv *env, jobject lpObject);
460
TXNLongRect *getTXNLongRectFields(JNIEnv *env, jobject lpObject, TXNLongRect *lpStruct);
460
TXNBackground *getTXNBackgroundFields(JNIEnv *env, jobject lpObject, TXNBackground *lpStruct);
461
void setTXNLongRectFields(JNIEnv *env, jobject lpObject, TXNLongRect *lpStruct);
461
void setTXNBackgroundFields(JNIEnv *env, jobject lpObject, TXNBackground *lpStruct);
462
#define TXNLongRect_sizeof() sizeof(TXNLongRect)
462
#define TXNBackground_sizeof() sizeof(TXNBackground)
463
#else
463
#else
464
#define cacheTXNLongRectFields(a,b)
464
#define cacheTXNBackgroundFields(a,b)
465
#define getTXNLongRectFields(a,b,c) NULL
465
#define getTXNBackgroundFields(a,b,c) NULL
466
#define setTXNLongRectFields(a,b,c)
466
#define setTXNBackgroundFields(a,b,c)
467
#define TXNLongRect_sizeof() 0
467
#define TXNBackground_sizeof() 0
468
#endif
468
#endif
469
469
470
#ifndef NO_ThemeButtonDrawInfo
470
#ifndef NO_TXNLongRect
471
void cacheThemeButtonDrawInfoFields(JNIEnv *env, jobject lpObject);
471
void cacheTXNLongRectFields(JNIEnv *env, jobject lpObject);
472
ThemeButtonDrawInfo *getThemeButtonDrawInfoFields(JNIEnv *env, jobject lpObject, ThemeButtonDrawInfo *lpStruct);
472
TXNLongRect *getTXNLongRectFields(JNIEnv *env, jobject lpObject, TXNLongRect *lpStruct);
473
void setThemeButtonDrawInfoFields(JNIEnv *env, jobject lpObject, ThemeButtonDrawInfo *lpStruct);
473
void setTXNLongRectFields(JNIEnv *env, jobject lpObject, TXNLongRect *lpStruct);
474
#define ThemeButtonDrawInfo_sizeof() sizeof(ThemeButtonDrawInfo)
474
#define TXNLongRect_sizeof() sizeof(TXNLongRect)
475
#else
475
#else
476
#define cacheThemeButtonDrawInfoFields(a,b)
476
#define cacheTXNLongRectFields(a,b)
477
#define getThemeButtonDrawInfoFields(a,b,c) NULL
477
#define getTXNLongRectFields(a,b,c) NULL
478
#define setThemeButtonDrawInfoFields(a,b,c)
478
#define setTXNLongRectFields(a,b,c)
479
#define ThemeButtonDrawInfo_sizeof() 0
479
#define TXNLongRect_sizeof() 0
480
#endif
480
#endif
481
481
482
#ifndef NO_ThemeButtonDrawInfo
483
void cacheThemeButtonDrawInfoFields(JNIEnv *env, jobject lpObject);
484
ThemeButtonDrawInfo *getThemeButtonDrawInfoFields(JNIEnv *env, jobject lpObject, ThemeButtonDrawInfo *lpStruct);
485
void setThemeButtonDrawInfoFields(JNIEnv *env, jobject lpObject, ThemeButtonDrawInfo *lpStruct);
486
#define ThemeButtonDrawInfo_sizeof() sizeof(ThemeButtonDrawInfo)
487
#else
488
#define cacheThemeButtonDrawInfoFields(a,b)
489
#define getThemeButtonDrawInfoFields(a,b,c) NULL
490
#define setThemeButtonDrawInfoFields(a,b,c)
491
#define ThemeButtonDrawInfo_sizeof() 0
492
#endif
493
(-)org.eclipse.swt_before/Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/OS.java (-1 / +10 lines)
Lines 9-14 Link Here
9
 *
9
 *
10
 * Contributors:
10
 * Contributors:
11
 *     IBM Corporation - initial API and implementation
11
 *     IBM Corporation - initial API and implementation
12
 *     Plum Canary Corporation - support for embedded file transfer
12
 **********************************************************************/
13
 **********************************************************************/
13
package org.eclipse.swt.internal.carbon;
14
package org.eclipse.swt.internal.carbon;
14
15
Lines 91-96 Link Here
91
	public static final int kCFAllocatorDefault = 0;
92
	public static final int kCFAllocatorDefault = 0;
92
	public static final int kCFURLPOSIXPathStyle = 0;
93
	public static final int kCFURLPOSIXPathStyle = 0;
93
	public static final int kCFStringEncodingASCII = 0x0600;
94
	public static final int kCFStringEncodingASCII = 0x0600;
95
	public static final int kCFStringEncodingUTF8 = 0x08000100;
94
	public static final int kCGEncodingMacRoman = 1;
96
	public static final int kCGEncodingMacRoman = 1;
95
	public static final int kCGImageAlphaFirst = 4;
97
	public static final int kCGImageAlphaFirst = 4;
96
	public static final int kCGImageAlphaNoneSkipFirst = 6;
98
	public static final int kCGImageAlphaNoneSkipFirst = 6;
Lines 660-665 Link Here
660
	public static final int teCenter = 1;
662
	public static final int teCenter = 1;
661
	public static final int teFlushRight = -1;
663
	public static final int teFlushRight = -1;
662
	public static final int teFlushLeft = -2;
664
	public static final int teFlushLeft = -2;
665
	public static final int typeAlias = ('a'<<24) + ('l'<<16) + ('i'<<8) + 's';
663
	public static final int typeCGContextRef= ('c'<<24) + ('n'<<16) + ('t'<<8) + 'x';
666
	public static final int typeCGContextRef= ('c'<<24) + ('n'<<16) + ('t'<<8) + 'x';
664
	public static final int typeChar = ('T'<<24) + ('E'<<16) + ('X'<<8) + 'T';
667
	public static final int typeChar = ('T'<<24) + ('E'<<16) + ('X'<<8) + 'T';
665
	public static final int typeControlPartCode = ('c'<<24) + ('p'<<16) + ('r'<<8) + 't';
668
	public static final int typeControlPartCode = ('c'<<24) + ('p'<<16) + ('r'<<8) + 't';
Lines 698-703 Link Here
698
public static final native int kPMGraphicsContextCoreGraphics();
701
public static final native int kPMGraphicsContextCoreGraphics();
699
public static final native int ActiveNonFloatingWindow();
702
public static final native int ActiveNonFloatingWindow();
700
public static final native int AECountItems(AEDesc theAEDescList, int[] theCount);
703
public static final native int AECountItems(AEDesc theAEDescList, int[] theCount);
704
public static final native int AECreateDesc(int type, int ptr, int size, AEDesc aeDesc);
705
public static final native int AEDisposeDesc(AEDesc aeDesc);
701
public static final native int AEGetNthPtr(AEDesc theAEDescList, int index, int desiredType, int[] theAEKeyword, int[] typeCode, int dataPtr, int maximumSize, int[] actualSize);
706
public static final native int AEGetNthPtr(AEDesc theAEDescList, int index, int desiredType, int[] theAEKeyword, int[] typeCode, int dataPtr, int maximumSize, int[] actualSize);
702
public static final native int AEProcessAppleEvent(EventRecord theEventRecord);
707
public static final native int AEProcessAppleEvent(EventRecord theEventRecord);
703
public static final native int ATSFontGetPostScriptName(int iFont, int iOptions, int[] oName); 
708
public static final native int ATSFontGetPostScriptName(int iFont, int iOptions, int[] oName); 
Lines 761-767 Link Here
761
public static final native int CFURLCreateCopyAppendingPathComponent(int allocator, int url, int pathComponent, boolean isDirectory);
766
public static final native int CFURLCreateCopyAppendingPathComponent(int allocator, int url, int pathComponent, boolean isDirectory);
762
public static final native int CFURLCreateCopyDeletingLastPathComponent(int allocator, int url);
767
public static final native int CFURLCreateCopyDeletingLastPathComponent(int allocator, int url);
763
public static final native int CFURLCreateFromFSRef(int allocator, byte[] fsRef);
768
public static final native int CFURLCreateFromFSRef(int allocator, byte[] fsRef);
764
public static final native int CFURLCreateWithFileSystemPath (int allocator, int filePath, int pathStyle, boolean isDirectory); 
769
public static final native int CFURLCreateWithFileSystemPath (int allocator, int filePath, int pathStyle, boolean isDirectory);
770
public static final native int CFURLCreateWithBytes(int allocator, byte[] urlBytes, int length, int encoding, int baseUrl);
765
public static final native boolean CFURLGetFSRef(int url, byte[] fsRef);
771
public static final native boolean CFURLGetFSRef(int url, byte[] fsRef);
766
public static final native void CGAffineTransformConcat (float[] t1, float[] t2, float[] result);
772
public static final native void CGAffineTransformConcat (float[] t1, float[] t2, float[] result);
767
public static final native void CGAffineTransformMake (float a, float b, float c, float d, float tx, float ty, float[] result);
773
public static final native void CGAffineTransformMake (float a, float b, float c, float d, float tx, float ty, float[] result);
Lines 966-971 Link Here
966
public static final native boolean FPIsFontPanelVisible();
972
public static final native boolean FPIsFontPanelVisible();
967
public static final native int FPShowHideFontPanel();
973
public static final native int FPShowHideFontPanel();
968
public static final native int FSpGetFInfo(byte[] spec, byte[] fndrInfo);
974
public static final native int FSpGetFInfo(byte[] spec, byte[] fndrInfo);
975
public static final native int FSNewAliasMinimal(byte[] fsRef, int[] aliasHandle);
969
public static final native int FSpMakeFSRef(byte[] source, byte[] newRef);
976
public static final native int FSpMakeFSRef(byte[] source, byte[] newRef);
970
public static final native int FSGetCatalogInfo(byte[] ref, int whichInfo, byte[] catalogInfo, byte[] outName, byte[] fsSpec, byte[] parentRef); 
977
public static final native int FSGetCatalogInfo(byte[] ref, int whichInfo, byte[] catalogInfo, byte[] outName, byte[] fsSpec, byte[] parentRef); 
971
public static final native short FindWindow(Point where, int[] wHandle);
978
public static final native short FindWindow(Point where, int[] wHandle);
Lines 1365-1370 Link Here
1365
public static final native int SetDragAllowableActions(int theDrag, int inActions, boolean isLocal);
1372
public static final native int SetDragAllowableActions(int theDrag, int inActions, boolean isLocal);
1366
public static final native int SetDragDropAction(int theDrag, int inAction);
1373
public static final native int SetDragDropAction(int theDrag, int inAction);
1367
public static final native int SetDragInputProc(int theDrag, int inputProc, int dragInputRefCon);
1374
public static final native int SetDragInputProc(int theDrag, int inputProc, int dragInputRefCon);
1375
public static final native int SetDropLocation(int theDrag, AEDesc desc);
1368
public static final native int SetEventLoopTimerNextFireTime(int inTimer, double inNextFire);
1376
public static final native int SetEventLoopTimerNextFireTime(int inTimer, double inNextFire);
1369
public static final native int SetEventParameter(int inEvent, int inName, int inType, int inSize, char[] inDataPtr);
1377
public static final native int SetEventParameter(int inEvent, int inName, int inType, int inSize, char[] inDataPtr);
1370
public static final native int SetEventParameter(int inEvent, int inName, int inType, int inSize, short[] inDataPtr);
1378
public static final native int SetEventParameter(int inEvent, int inName, int inType, int inSize, short[] inDataPtr);
Lines 1489-1493 Link Here
1489
public static final native void memcpy(int dest, EventRecord src, int size);
1497
public static final native void memcpy(int dest, EventRecord src, int size);
1490
public static final native void memcpy(int dest, ATSUTab src, int size);
1498
public static final native void memcpy(int dest, ATSUTab src, int size);
1491
public static final native void memcpy(float[] dest, int src, int size);
1499
public static final native void memcpy(float[] dest, int src, int size);
1500
public static final native void memcpy(PromiseHFSFlavor flavor, byte[] data, int size);
1492
public static final native void memset(int dest, int value, int size);
1501
public static final native void memset(int dest, int value, int size);
1493
}
1502
}
(-)org.eclipse.swt_before/Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/PromiseHFSFlavor.java (+21 lines)
Line 0 Link Here
1
/*****************************************************************************
2
 * Copyright (c) 2005, 2006 Plum Canary Corporation.
3
 * All rights reserved. This program and the accompanying materials 
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/org/documents/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     Plum Canary Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.swt.internal.carbon;
12
13
/**
14
 * 
15
 * @author Alexey Kharlamov <aharlamov@gmail.com>
16
 * @version 1.0
17
 */
18
public class PromiseHFSFlavor {
19
	public int promisedFlavor;
20
	public static final int sizeof = 14;	
21
}
(-)org.eclipse.swt_before/Eclipse SWT PI/win32/library/build-ce.bat (-4 / +4 lines)
Lines 12-18 Link Here
12
12
13
@echo off
13
@echo off
14
14
15
IF NOT "%JAVA_HOME%"=="" GOTO MAKE
15
IF NOT "%JAVA_HOME%"=="" GOTO HAVE_JAVAHOME
16
16
17
rem *****
17
rem *****
18
rem Javah
18
rem Javah
Lines 20-31 Link Here
20
set JAVA_HOME=j:\teamswt\swt-builddir\ive\bin
20
set JAVA_HOME=j:\teamswt\swt-builddir\ive\bin
21
set path=%JAVA_HOME%;%path%
21
set path=%JAVA_HOME%;%path%
22
22
23
:HAVE_JAVAHOME
23
rem ********
24
rem ********
24
rem MSVC 6.0
25
rem MSVC 6.0
25
rem ********
26
rem ********                      
26
call k:\dev\products\msvc60\vc98\bin\vcvars32.bat
27
call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" 
27
28
28
rem *****************
29
rem MS-SDK WinCE
29
rem MS-SDK WinCE
30
rem *****************
30
rem *****************
31
set WCEROOT=k:\dev\products\wince.sdk
31
set WCEROOT=k:\dev\products\wince.sdk
(-)org.eclipse.swt_before/Eclipse SWT PI/win32/library/build.bat (-3 / +4 lines)
Lines 12-18 Link Here
12
12
13
@echo off
13
@echo off
14
14
15
IF NOT "%JAVA_HOME%"=="" GOTO MAKE
15
IF NOT "%JAVA_HOME%"=="" GOTO HAVE_JAVAHOME
16
16
17
rem *****
17
rem *****
18
rem Javah
18
rem Javah
Lines 20-34 Link Here
20
set JAVA_HOME=j:\teamswt\swt-builddir\ibm-jdk1.4.1
20
set JAVA_HOME=j:\teamswt\swt-builddir\ibm-jdk1.4.1
21
set path=%JAVA_HOME%;%path%
21
set path=%JAVA_HOME%;%path%
22
22
23
:HAVE_JAVAHOME
23
rem ********
24
rem ********
24
rem MSVC 6.0
25
rem MSVC 6.0
25
rem ********
26
rem ********
26
call k:\dev\products\msvc60\vc98\bin\vcvars32.bat
27
call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" 
27
28
28
rem ****** 
29
rem ****** 
29
rem MS-SDK
30
rem MS-SDK
30
rem ******
31
rem ******
31
set Mssdk=K:\dev\PRODUCTS\PLATSDK\feb2003
32
set Mssdk=C:\PROGRA~1\MICROS~2.NET\VC7\PLATFO~1
32
call %mssdk%\setenv.bat
33
call %mssdk%\setenv.bat
33
34
34
set OUTPUT_DIR=..\..\..\org.eclipse.swt.win32\os\win32\x86
35
set OUTPUT_DIR=..\..\..\org.eclipse.swt.win32\os\win32\x86
(-)org.eclipse.swt_before/Eclipse SWT PI/win32/library/com.c (-41 / +69 lines)
Lines 360-365 Link Here
360
}
360
}
361
#endif
361
#endif
362
362
363
#ifndef NO_MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FILEDESCRIPTORA_2II
364
JNIEXPORT void JNICALL COM_NATIVE(MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FILEDESCRIPTORA_2II)
365
	(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2)
366
{
367
	FILEDESCRIPTORA _arg0, *lparg0=NULL;
368
	COM_NATIVE_ENTER(env, that, MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FILEDESCRIPTORA_2II_FUNC);
369
	if (arg0) if ((lparg0 = &_arg0) == NULL) goto fail;
370
	MoveMemory((PVOID)lparg0, (CONST VOID *)arg1, arg2);
371
fail:
372
	if (arg0 && lparg0) setFILEDESCRIPTORAFields(env, arg0, lparg0);
373
	COM_NATIVE_EXIT(env, that, MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FILEDESCRIPTORA_2II_FUNC);
374
}
375
#endif
376
377
#ifndef NO_MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FILEDESCRIPTORW_2II
378
JNIEXPORT void JNICALL COM_NATIVE(MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FILEDESCRIPTORW_2II)
379
	(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2)
380
{
381
	FILEDESCRIPTORW _arg0, *lparg0=NULL;
382
	COM_NATIVE_ENTER(env, that, MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FILEDESCRIPTORW_2II_FUNC);
383
	if (arg0) if ((lparg0 = &_arg0) == NULL) goto fail;
384
	MoveMemory((PVOID)lparg0, (CONST VOID *)arg1, arg2);
385
fail:
386
	if (arg0 && lparg0) setFILEDESCRIPTORWFields(env, arg0, lparg0);
387
	COM_NATIVE_EXIT(env, that, MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FILEDESCRIPTORW_2II_FUNC);
388
}
389
#endif
390
363
#ifndef NO_MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FORMATETC_2II
391
#ifndef NO_MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FORMATETC_2II
364
JNIEXPORT void JNICALL COM_NATIVE(MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FORMATETC_2II)
392
JNIEXPORT void JNICALL COM_NATIVE(MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FORMATETC_2II)
365
	(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2)
393
	(JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2)
Lines 907-913 Link Here
907
{
935
{
908
	jint rc = 0;
936
	jint rc = 0;
909
	COM_NATIVE_ENTER(env, that, VtblCall__IIII_FUNC);
937
	COM_NATIVE_ENTER(env, that, VtblCall__IIII_FUNC);
910
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint))(*(int **)arg1)[arg0])(arg1, arg2, arg3);
938
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint))(*(jint **)arg1)[arg0])(arg1, arg2, arg3);
911
	COM_NATIVE_EXIT(env, that, VtblCall__IIII_FUNC);
939
	COM_NATIVE_EXIT(env, that, VtblCall__IIII_FUNC);
912
	return rc;
940
	return rc;
913
}
941
}
Lines 919-925 Link Here
919
{
947
{
920
	jint rc = 0;
948
	jint rc = 0;
921
	COM_NATIVE_ENTER(env, that, VtblCall__IIIII_FUNC);
949
	COM_NATIVE_ENTER(env, that, VtblCall__IIIII_FUNC);
922
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint, jint))(*(int **)arg1)[arg0])(arg1, arg2, arg3, arg4);
950
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint, jint))(*(jint **)arg1)[arg0])(arg1, arg2, arg3, arg4);
923
	COM_NATIVE_EXIT(env, that, VtblCall__IIIII_FUNC);
951
	COM_NATIVE_EXIT(env, that, VtblCall__IIIII_FUNC);
924
	return rc;
952
	return rc;
925
}
953
}
Lines 931-937 Link Here
931
{
959
{
932
	jint rc = 0;
960
	jint rc = 0;
933
	COM_NATIVE_ENTER(env, that, VtblCall__IIIIII_FUNC);
961
	COM_NATIVE_ENTER(env, that, VtblCall__IIIIII_FUNC);
934
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint, jint, jint))(*(int **)arg1)[arg0])(arg1, arg2, arg3, arg4, arg5);
962
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint, jint, jint))(*(jint **)arg1)[arg0])(arg1, arg2, arg3, arg4, arg5);
935
	COM_NATIVE_EXIT(env, that, VtblCall__IIIIII_FUNC);
963
	COM_NATIVE_EXIT(env, that, VtblCall__IIIIII_FUNC);
936
	return rc;
964
	return rc;
937
}
965
}
Lines 943-949 Link Here
943
{
971
{
944
	jint rc = 0;
972
	jint rc = 0;
945
	COM_NATIVE_ENTER(env, that, VtblCall__IIIIIII_FUNC);
973
	COM_NATIVE_ENTER(env, that, VtblCall__IIIIIII_FUNC);
946
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint, jint, jint, jint))(*(int **)arg1)[arg0])(arg1, arg2, arg3, arg4, arg5, arg6);
974
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint, jint, jint, jint))(*(jint **)arg1)[arg0])(arg1, arg2, arg3, arg4, arg5, arg6);
947
	COM_NATIVE_EXIT(env, that, VtblCall__IIIIIII_FUNC);
975
	COM_NATIVE_EXIT(env, that, VtblCall__IIIIIII_FUNC);
948
	return rc;
976
	return rc;
949
}
977
}
Lines 955-961 Link Here
955
{
983
{
956
	jint rc = 0;
984
	jint rc = 0;
957
	COM_NATIVE_ENTER(env, that, VtblCall__IIIIIIII_FUNC);
985
	COM_NATIVE_ENTER(env, that, VtblCall__IIIIIIII_FUNC);
958
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint, jint, jint, jint, jint))(*(int **)arg1)[arg0])(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
986
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint, jint, jint, jint, jint))(*(jint **)arg1)[arg0])(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
959
	COM_NATIVE_EXIT(env, that, VtblCall__IIIIIIII_FUNC);
987
	COM_NATIVE_EXIT(env, that, VtblCall__IIIIIIII_FUNC);
960
	return rc;
988
	return rc;
961
}
989
}
Lines 967-973 Link Here
967
{
995
{
968
	jint rc = 0;
996
	jint rc = 0;
969
	COM_NATIVE_ENTER(env, that, VtblCall__IIIIIIIIII_FUNC);
997
	COM_NATIVE_ENTER(env, that, VtblCall__IIIIIIIIII_FUNC);
970
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint, jint, jint, jint, jint, jint, jint))(*(int **)arg1)[arg0])(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
998
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint, jint, jint, jint, jint, jint, jint))(*(jint **)arg1)[arg0])(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
971
	COM_NATIVE_EXIT(env, that, VtblCall__IIIIIIIIII_FUNC);
999
	COM_NATIVE_EXIT(env, that, VtblCall__IIIIIIIIII_FUNC);
972
	return rc;
1000
	return rc;
973
}
1001
}
Lines 983-989 Link Here
983
	COM_NATIVE_ENTER(env, that, VtblCall__IIIILorg_eclipse_swt_internal_ole_win32_DVTARGETDEVICE_2Lorg_eclipse_swt_internal_win32_SIZE_2_FUNC);
1011
	COM_NATIVE_ENTER(env, that, VtblCall__IIIILorg_eclipse_swt_internal_ole_win32_DVTARGETDEVICE_2Lorg_eclipse_swt_internal_win32_SIZE_2_FUNC);
984
	if (arg4) if ((lparg4 = getDVTARGETDEVICEFields(env, arg4, &_arg4)) == NULL) goto fail;
1012
	if (arg4) if ((lparg4 = getDVTARGETDEVICEFields(env, arg4, &_arg4)) == NULL) goto fail;
985
	if (arg5) if ((lparg5 = getSIZEFields(env, arg5, &_arg5)) == NULL) goto fail;
1013
	if (arg5) if ((lparg5 = getSIZEFields(env, arg5, &_arg5)) == NULL) goto fail;
986
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint, DVTARGETDEVICE *, SIZE *))(*(int **)arg1)[arg0])(arg1, arg2, arg3, lparg4, lparg5);
1014
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint, DVTARGETDEVICE *, SIZE *))(*(jint **)arg1)[arg0])(arg1, arg2, arg3, lparg4, lparg5);
987
fail:
1015
fail:
988
	if (arg5 && lparg5) setSIZEFields(env, arg5, lparg5);
1016
	if (arg5 && lparg5) setSIZEFields(env, arg5, lparg5);
989
	if (arg4 && lparg4) setDVTARGETDEVICEFields(env, arg4, lparg4);
1017
	if (arg4 && lparg4) setDVTARGETDEVICEFields(env, arg4, lparg4);
Lines 1002-1008 Link Here
1002
	COM_NATIVE_ENTER(env, that, VtblCall__IIIILorg_eclipse_swt_internal_ole_win32_GUID_2I_3I_FUNC);
1030
	COM_NATIVE_ENTER(env, that, VtblCall__IIIILorg_eclipse_swt_internal_ole_win32_GUID_2I_3I_FUNC);
1003
	if (arg4) if ((lparg4 = getGUIDFields(env, arg4, &_arg4)) == NULL) goto fail;
1031
	if (arg4) if ((lparg4 = getGUIDFields(env, arg4, &_arg4)) == NULL) goto fail;
1004
	if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail;
1032
	if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail;
1005
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint, GUID *, jint, jint *))(*(int **)arg1)[arg0])(arg1, arg2, arg3, lparg4, arg5, lparg6);
1033
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint, GUID *, jint, jint *))(*(jint **)arg1)[arg0])(arg1, arg2, arg3, lparg4, arg5, lparg6);
1006
fail:
1034
fail:
1007
	if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0);
1035
	if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0);
1008
	if (arg4 && lparg4) setGUIDFields(env, arg4, lparg4);
1036
	if (arg4 && lparg4) setGUIDFields(env, arg4, lparg4);
Lines 1019-1025 Link Here
1019
	jint rc = 0;
1047
	jint rc = 0;
1020
	COM_NATIVE_ENTER(env, that, VtblCall__IIII_3I_FUNC);
1048
	COM_NATIVE_ENTER(env, that, VtblCall__IIII_3I_FUNC);
1021
	if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
1049
	if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
1022
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint, jint *))(*(int **)arg1)[arg0])(arg1, arg2, arg3, lparg4);
1050
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint, jint *))(*(jint **)arg1)[arg0])(arg1, arg2, arg3, lparg4);
1023
fail:
1051
fail:
1024
	if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
1052
	if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
1025
	COM_NATIVE_EXIT(env, that, VtblCall__IIII_3I_FUNC);
1053
	COM_NATIVE_EXIT(env, that, VtblCall__IIII_3I_FUNC);
Lines 1037-1043 Link Here
1037
	COM_NATIVE_ENTER(env, that, VtblCall__IIILorg_eclipse_swt_internal_ole_win32_FORMATETC_2_3I_FUNC);
1065
	COM_NATIVE_ENTER(env, that, VtblCall__IIILorg_eclipse_swt_internal_ole_win32_FORMATETC_2_3I_FUNC);
1038
	if (arg3) if ((lparg3 = getFORMATETCFields(env, arg3, &_arg3)) == NULL) goto fail;
1066
	if (arg3) if ((lparg3 = getFORMATETCFields(env, arg3, &_arg3)) == NULL) goto fail;
1039
	if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
1067
	if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
1040
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, FORMATETC *, jint *))(*(int **)arg1)[arg0])(arg1, arg2, lparg3, lparg4);
1068
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, FORMATETC *, jint *))(*(jint **)arg1)[arg0])(arg1, arg2, lparg3, lparg4);
1041
fail:
1069
fail:
1042
	if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
1070
	if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
1043
	if (arg3 && lparg3) setFORMATETCFields(env, arg3, lparg3);
1071
	if (arg3 && lparg3) setFORMATETCFields(env, arg3, lparg3);
Lines 1054-1060 Link Here
1054
	jint rc = 0;
1082
	jint rc = 0;
1055
	COM_NATIVE_ENTER(env, that, VtblCall__IIILorg_eclipse_swt_internal_ole_win32_GUID_2_FUNC);
1083
	COM_NATIVE_ENTER(env, that, VtblCall__IIILorg_eclipse_swt_internal_ole_win32_GUID_2_FUNC);
1056
	if (arg3) if ((lparg3 = getGUIDFields(env, arg3, &_arg3)) == NULL) goto fail;
1084
	if (arg3) if ((lparg3 = getGUIDFields(env, arg3, &_arg3)) == NULL) goto fail;
1057
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, GUID *))(*(int **)arg1)[arg0])(arg1, arg2, lparg3);
1085
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, GUID *))(*(jint **)arg1)[arg0])(arg1, arg2, lparg3);
1058
fail:
1086
fail:
1059
	if (arg3 && lparg3) setGUIDFields(env, arg3, lparg3);
1087
	if (arg3 && lparg3) setGUIDFields(env, arg3, lparg3);
1060
	COM_NATIVE_EXIT(env, that, VtblCall__IIILorg_eclipse_swt_internal_ole_win32_GUID_2_FUNC);
1088
	COM_NATIVE_EXIT(env, that, VtblCall__IIILorg_eclipse_swt_internal_ole_win32_GUID_2_FUNC);
Lines 1070-1076 Link Here
1070
	jint rc = 0;
1098
	jint rc = 0;
1071
	COM_NATIVE_ENTER(env, that, VtblCall__IIILorg_eclipse_swt_internal_ole_win32_GUID_2II_FUNC);
1099
	COM_NATIVE_ENTER(env, that, VtblCall__IIILorg_eclipse_swt_internal_ole_win32_GUID_2II_FUNC);
1072
	if (arg3) if ((lparg3 = getGUIDFields(env, arg3, &_arg3)) == NULL) goto fail;
1100
	if (arg3) if ((lparg3 = getGUIDFields(env, arg3, &_arg3)) == NULL) goto fail;
1073
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, GUID *, jint, jint))(*(int **)arg1)[arg0])(arg1, arg2, lparg3, arg4, arg5);
1101
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, GUID *, jint, jint))(*(jint **)arg1)[arg0])(arg1, arg2, lparg3, arg4, arg5);
1074
fail:
1102
fail:
1075
	if (arg3 && lparg3) setGUIDFields(env, arg3, lparg3);
1103
	if (arg3 && lparg3) setGUIDFields(env, arg3, lparg3);
1076
	COM_NATIVE_EXIT(env, that, VtblCall__IIILorg_eclipse_swt_internal_ole_win32_GUID_2II_FUNC);
1104
	COM_NATIVE_EXIT(env, that, VtblCall__IIILorg_eclipse_swt_internal_ole_win32_GUID_2II_FUNC);
Lines 1092-1098 Link Here
1092
	if (arg6) if ((lparg6 = getDISPPARAMSFields(env, arg6, &_arg6)) == NULL) goto fail;
1120
	if (arg6) if ((lparg6 = getDISPPARAMSFields(env, arg6, &_arg6)) == NULL) goto fail;
1093
	if (arg8) if ((lparg8 = getEXCEPINFOFields(env, arg8, &_arg8)) == NULL) goto fail;
1121
	if (arg8) if ((lparg8 = getEXCEPINFOFields(env, arg8, &_arg8)) == NULL) goto fail;
1094
	if (arg9) if ((lparg9 = (*env)->GetIntArrayElements(env, arg9, NULL)) == NULL) goto fail;
1122
	if (arg9) if ((lparg9 = (*env)->GetIntArrayElements(env, arg9, NULL)) == NULL) goto fail;
1095
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, GUID *, jint, jint, DISPPARAMS *, jint, EXCEPINFO *, jint *))(*(int **)arg1)[arg0])(arg1, arg2, lparg3, arg4, arg5, lparg6, arg7, lparg8, lparg9);
1123
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, GUID *, jint, jint, DISPPARAMS *, jint, EXCEPINFO *, jint *))(*(jint **)arg1)[arg0])(arg1, arg2, lparg3, arg4, arg5, lparg6, arg7, lparg8, lparg9);
1096
fail:
1124
fail:
1097
	if (arg9 && lparg9) (*env)->ReleaseIntArrayElements(env, arg9, lparg9, 0);
1125
	if (arg9 && lparg9) (*env)->ReleaseIntArrayElements(env, arg9, lparg9, 0);
1098
	if (arg8 && lparg8) setEXCEPINFOFields(env, arg8, lparg8);
1126
	if (arg8 && lparg8) setEXCEPINFOFields(env, arg8, lparg8);
Lines 1113-1119 Link Here
1113
	COM_NATIVE_ENTER(env, that, VtblCall__IIILorg_eclipse_swt_internal_ole_win32_STATSTG_2_3I_FUNC);
1141
	COM_NATIVE_ENTER(env, that, VtblCall__IIILorg_eclipse_swt_internal_ole_win32_STATSTG_2_3I_FUNC);
1114
	if (arg3) if ((lparg3 = getSTATSTGFields(env, arg3, &_arg3)) == NULL) goto fail;
1142
	if (arg3) if ((lparg3 = getSTATSTGFields(env, arg3, &_arg3)) == NULL) goto fail;
1115
	if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
1143
	if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
1116
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, STATSTG *, jint *))(*(int **)arg1)[arg0])(arg1, arg2, lparg3, lparg4);
1144
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, STATSTG *, jint *))(*(jint **)arg1)[arg0])(arg1, arg2, lparg3, lparg4);
1117
fail:
1145
fail:
1118
	if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
1146
	if (arg4 && lparg4) (*env)->ReleaseIntArrayElements(env, arg4, lparg4, 0);
1119
	if (arg3 && lparg3) setSTATSTGFields(env, arg3, lparg3);
1147
	if (arg3 && lparg3) setSTATSTGFields(env, arg3, lparg3);
Lines 1132-1138 Link Here
1132
	COM_NATIVE_ENTER(env, that, VtblCall__IIILorg_eclipse_swt_internal_win32_MSG_2IIILorg_eclipse_swt_internal_win32_RECT_2_FUNC);
1160
	COM_NATIVE_ENTER(env, that, VtblCall__IIILorg_eclipse_swt_internal_win32_MSG_2IIILorg_eclipse_swt_internal_win32_RECT_2_FUNC);
1133
	if (arg3) if ((lparg3 = getMSGFields(env, arg3, &_arg3)) == NULL) goto fail;
1161
	if (arg3) if ((lparg3 = getMSGFields(env, arg3, &_arg3)) == NULL) goto fail;
1134
	if (arg7) if ((lparg7 = getRECTFields(env, arg7, &_arg7)) == NULL) goto fail;
1162
	if (arg7) if ((lparg7 = getRECTFields(env, arg7, &_arg7)) == NULL) goto fail;
1135
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, MSG *, jint, jint, jint, RECT *))(*(int **)arg1)[arg0])(arg1, arg2, lparg3, arg4, arg5, arg6, lparg7);
1163
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, MSG *, jint, jint, jint, RECT *))(*(jint **)arg1)[arg0])(arg1, arg2, lparg3, arg4, arg5, arg6, lparg7);
1136
fail:
1164
fail:
1137
	if (arg7 && lparg7) setRECTFields(env, arg7, lparg7);
1165
	if (arg7 && lparg7) setRECTFields(env, arg7, lparg7);
1138
	if (arg3 && lparg3) setMSGFields(env, arg3, lparg3);
1166
	if (arg3 && lparg3) setMSGFields(env, arg3, lparg3);
Lines 1149-1155 Link Here
1149
	jint rc = 0;
1177
	jint rc = 0;
1150
	COM_NATIVE_ENTER(env, that, VtblCall__IIILorg_eclipse_swt_internal_win32_SIZE_2_FUNC);
1178
	COM_NATIVE_ENTER(env, that, VtblCall__IIILorg_eclipse_swt_internal_win32_SIZE_2_FUNC);
1151
	if (arg3) if ((lparg3 = getSIZEFields(env, arg3, &_arg3)) == NULL) goto fail;
1179
	if (arg3) if ((lparg3 = getSIZEFields(env, arg3, &_arg3)) == NULL) goto fail;
1152
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, SIZE *))(*(int **)arg1)[arg0])(arg1, arg2, lparg3);
1180
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, SIZE *))(*(jint **)arg1)[arg0])(arg1, arg2, lparg3);
1153
fail:
1181
fail:
1154
	if (arg3 && lparg3) setSIZEFields(env, arg3, lparg3);
1182
	if (arg3 && lparg3) setSIZEFields(env, arg3, lparg3);
1155
	COM_NATIVE_EXIT(env, that, VtblCall__IIILorg_eclipse_swt_internal_win32_SIZE_2_FUNC);
1183
	COM_NATIVE_EXIT(env, that, VtblCall__IIILorg_eclipse_swt_internal_win32_SIZE_2_FUNC);
Lines 1163-1169 Link Here
1163
{
1191
{
1164
	jint rc = 0;
1192
	jint rc = 0;
1165
	COM_NATIVE_ENTER(env, that, VtblCall__IIIZ_FUNC);
1193
	COM_NATIVE_ENTER(env, that, VtblCall__IIIZ_FUNC);
1166
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jboolean))(*(int **)arg1)[arg0])(arg1, arg2, arg3);
1194
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jboolean))(*(jint **)arg1)[arg0])(arg1, arg2, arg3);
1167
	COM_NATIVE_EXIT(env, that, VtblCall__IIIZ_FUNC);
1195
	COM_NATIVE_EXIT(env, that, VtblCall__IIIZ_FUNC);
1168
	return rc;
1196
	return rc;
1169
}
1197
}
Lines 1177-1183 Link Here
1177
	jint rc = 0;
1205
	jint rc = 0;
1178
	COM_NATIVE_ENTER(env, that, VtblCall__III_3I_FUNC);
1206
	COM_NATIVE_ENTER(env, that, VtblCall__III_3I_FUNC);
1179
	if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
1207
	if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
1180
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint *))(*(int **)arg1)[arg0])(arg1, arg2, lparg3);
1208
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint *))(*(jint **)arg1)[arg0])(arg1, arg2, lparg3);
1181
fail:
1209
fail:
1182
	if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
1210
	if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
1183
	COM_NATIVE_EXIT(env, that, VtblCall__III_3I_FUNC);
1211
	COM_NATIVE_EXIT(env, that, VtblCall__III_3I_FUNC);
Lines 1195-1201 Link Here
1195
	COM_NATIVE_ENTER(env, that, VtblCall__III_3II_3I_FUNC);
1223
	COM_NATIVE_ENTER(env, that, VtblCall__III_3II_3I_FUNC);
1196
	if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
1224
	if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
1197
	if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail;
1225
	if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail;
1198
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint *, jint, jint *))(*(int **)arg1)[arg0])(arg1, arg2, lparg3, arg4, lparg5);
1226
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint *, jint, jint *))(*(jint **)arg1)[arg0])(arg1, arg2, lparg3, arg4, lparg5);
1199
fail:
1227
fail:
1200
	if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0);
1228
	if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0);
1201
	if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
1229
	if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
Lines 1218-1224 Link Here
1218
	if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
1246
	if (arg4) if ((lparg4 = (*env)->GetIntArrayElements(env, arg4, NULL)) == NULL) goto fail;
1219
	if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail;
1247
	if (arg5) if ((lparg5 = (*env)->GetIntArrayElements(env, arg5, NULL)) == NULL) goto fail;
1220
	if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail;
1248
	if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail;
1221
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint *, jint *, jint *, jint *))(*(int **)arg1)[arg0])(arg1, arg2, lparg3, lparg4, lparg5, lparg6);
1249
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint, jint *, jint *, jint *, jint *))(*(jint **)arg1)[arg0])(arg1, arg2, lparg3, lparg4, lparg5, lparg6);
1222
fail:
1250
fail:
1223
	if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0);
1251
	if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0);
1224
	if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0);
1252
	if (arg5 && lparg5) (*env)->ReleaseIntArrayElements(env, arg5, lparg5, 0);
Lines 1237-1243 Link Here
1237
	jint rc = 0;
1265
	jint rc = 0;
1238
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_CAUUID_2_FUNC);
1266
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_CAUUID_2_FUNC);
1239
	if (arg2) if ((lparg2 = getCAUUIDFields(env, arg2, &_arg2)) == NULL) goto fail;
1267
	if (arg2) if ((lparg2 = getCAUUIDFields(env, arg2, &_arg2)) == NULL) goto fail;
1240
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, CAUUID *))(*(int **)arg1)[arg0])(arg1, lparg2);
1268
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, CAUUID *))(*(jint **)arg1)[arg0])(arg1, lparg2);
1241
fail:
1269
fail:
1242
	if (arg2 && lparg2) setCAUUIDFields(env, arg2, lparg2);
1270
	if (arg2 && lparg2) setCAUUIDFields(env, arg2, lparg2);
1243
	COM_NATIVE_EXIT(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_CAUUID_2_FUNC);
1271
	COM_NATIVE_EXIT(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_CAUUID_2_FUNC);
Lines 1253-1259 Link Here
1253
	jint rc = 0;
1281
	jint rc = 0;
1254
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_CONTROLINFO_2_FUNC);
1282
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_CONTROLINFO_2_FUNC);
1255
	if (arg2) if ((lparg2 = getCONTROLINFOFields(env, arg2, &_arg2)) == NULL) goto fail;
1283
	if (arg2) if ((lparg2 = getCONTROLINFOFields(env, arg2, &_arg2)) == NULL) goto fail;
1256
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, CONTROLINFO *))(*(int **)arg1)[arg0])(arg1, lparg2);
1284
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, CONTROLINFO *))(*(jint **)arg1)[arg0])(arg1, lparg2);
1257
fail:
1285
fail:
1258
	if (arg2 && lparg2) setCONTROLINFOFields(env, arg2, lparg2);
1286
	if (arg2 && lparg2) setCONTROLINFOFields(env, arg2, lparg2);
1259
	COM_NATIVE_EXIT(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_CONTROLINFO_2_FUNC);
1287
	COM_NATIVE_EXIT(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_CONTROLINFO_2_FUNC);
Lines 1269-1275 Link Here
1269
	jint rc = 0;
1297
	jint rc = 0;
1270
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_FORMATETC_2_FUNC);
1298
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_FORMATETC_2_FUNC);
1271
	if (arg2) if ((lparg2 = getFORMATETCFields(env, arg2, &_arg2)) == NULL) goto fail;
1299
	if (arg2) if ((lparg2 = getFORMATETCFields(env, arg2, &_arg2)) == NULL) goto fail;
1272
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, FORMATETC *))(*(int **)arg1)[arg0])(arg1, lparg2);
1300
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, FORMATETC *))(*(jint **)arg1)[arg0])(arg1, lparg2);
1273
fail:
1301
fail:
1274
	if (arg2 && lparg2) setFORMATETCFields(env, arg2, lparg2);
1302
	if (arg2 && lparg2) setFORMATETCFields(env, arg2, lparg2);
1275
	COM_NATIVE_EXIT(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_FORMATETC_2_FUNC);
1303
	COM_NATIVE_EXIT(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_FORMATETC_2_FUNC);
Lines 1287-1293 Link Here
1287
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_FORMATETC_2Lorg_eclipse_swt_internal_ole_win32_STGMEDIUM_2_FUNC);
1315
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_FORMATETC_2Lorg_eclipse_swt_internal_ole_win32_STGMEDIUM_2_FUNC);
1288
	if (arg2) if ((lparg2 = getFORMATETCFields(env, arg2, &_arg2)) == NULL) goto fail;
1316
	if (arg2) if ((lparg2 = getFORMATETCFields(env, arg2, &_arg2)) == NULL) goto fail;
1289
	if (arg3) if ((lparg3 = getSTGMEDIUMFields(env, arg3, &_arg3)) == NULL) goto fail;
1317
	if (arg3) if ((lparg3 = getSTGMEDIUMFields(env, arg3, &_arg3)) == NULL) goto fail;
1290
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, FORMATETC *, STGMEDIUM *))(*(int **)arg1)[arg0])(arg1, lparg2, lparg3);
1318
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, FORMATETC *, STGMEDIUM *))(*(jint **)arg1)[arg0])(arg1, lparg2, lparg3);
1291
fail:
1319
fail:
1292
	if (arg3 && lparg3) setSTGMEDIUMFields(env, arg3, lparg3);
1320
	if (arg3 && lparg3) setSTGMEDIUMFields(env, arg3, lparg3);
1293
	if (arg2 && lparg2) setFORMATETCFields(env, arg2, lparg2);
1321
	if (arg2 && lparg2) setFORMATETCFields(env, arg2, lparg2);
Lines 1306-1312 Link Here
1306
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_FORMATETC_2Lorg_eclipse_swt_internal_ole_win32_STGMEDIUM_2Z_FUNC);
1334
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_FORMATETC_2Lorg_eclipse_swt_internal_ole_win32_STGMEDIUM_2Z_FUNC);
1307
	if (arg2) if ((lparg2 = getFORMATETCFields(env, arg2, &_arg2)) == NULL) goto fail;
1335
	if (arg2) if ((lparg2 = getFORMATETCFields(env, arg2, &_arg2)) == NULL) goto fail;
1308
	if (arg3) if ((lparg3 = getSTGMEDIUMFields(env, arg3, &_arg3)) == NULL) goto fail;
1336
	if (arg3) if ((lparg3 = getSTGMEDIUMFields(env, arg3, &_arg3)) == NULL) goto fail;
1309
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, FORMATETC *, STGMEDIUM *, jboolean))(*(int **)arg1)[arg0])(arg1, lparg2, lparg3, arg4);
1337
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, FORMATETC *, STGMEDIUM *, jboolean))(*(jint **)arg1)[arg0])(arg1, lparg2, lparg3, arg4);
1310
fail:
1338
fail:
1311
	if (arg3 && lparg3) setSTGMEDIUMFields(env, arg3, lparg3);
1339
	if (arg3 && lparg3) setSTGMEDIUMFields(env, arg3, lparg3);
1312
	if (arg2 && lparg2) setFORMATETCFields(env, arg2, lparg2);
1340
	if (arg2 && lparg2) setFORMATETCFields(env, arg2, lparg2);
Lines 1323-1329 Link Here
1323
	jint rc = 0;
1351
	jint rc = 0;
1324
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_GUID_2_FUNC);
1352
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_GUID_2_FUNC);
1325
	if (arg2) if ((lparg2 = getGUIDFields(env, arg2, &_arg2)) == NULL) goto fail;
1353
	if (arg2) if ((lparg2 = getGUIDFields(env, arg2, &_arg2)) == NULL) goto fail;
1326
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, GUID *))(*(int **)arg1)[arg0])(arg1, lparg2);
1354
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, GUID *))(*(jint **)arg1)[arg0])(arg1, lparg2);
1327
fail:
1355
fail:
1328
	if (arg2 && lparg2) setGUIDFields(env, arg2, lparg2);
1356
	if (arg2 && lparg2) setGUIDFields(env, arg2, lparg2);
1329
	COM_NATIVE_EXIT(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_GUID_2_FUNC);
1357
	COM_NATIVE_EXIT(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_GUID_2_FUNC);
Lines 1339-1345 Link Here
1339
	jint rc = 0;
1367
	jint rc = 0;
1340
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_GUID_2IIII_FUNC);
1368
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_GUID_2IIII_FUNC);
1341
	if (arg2) if ((lparg2 = getGUIDFields(env, arg2, &_arg2)) == NULL) goto fail;
1369
	if (arg2) if ((lparg2 = getGUIDFields(env, arg2, &_arg2)) == NULL) goto fail;
1342
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, GUID *, jint, jint, jint, jint))(*(int **)arg1)[arg0])(arg1, lparg2, arg3, arg4, arg5, arg6);
1370
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, GUID *, jint, jint, jint, jint))(*(jint **)arg1)[arg0])(arg1, lparg2, arg3, arg4, arg5, arg6);
1343
fail:
1371
fail:
1344
	if (arg2 && lparg2) setGUIDFields(env, arg2, lparg2);
1372
	if (arg2 && lparg2) setGUIDFields(env, arg2, lparg2);
1345
	COM_NATIVE_EXIT(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_GUID_2IIII_FUNC);
1373
	COM_NATIVE_EXIT(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_GUID_2IIII_FUNC);
Lines 1357-1363 Link Here
1357
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_GUID_2III_3I_FUNC);
1385
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_GUID_2III_3I_FUNC);
1358
	if (arg2) if ((lparg2 = getGUIDFields(env, arg2, &_arg2)) == NULL) goto fail;
1386
	if (arg2) if ((lparg2 = getGUIDFields(env, arg2, &_arg2)) == NULL) goto fail;
1359
	if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail;
1387
	if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail;
1360
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, GUID *, jint, jint, jint, jint *))(*(int **)arg1)[arg0])(arg1, lparg2, arg3, arg4, arg5, lparg6);
1388
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, GUID *, jint, jint, jint, jint *))(*(jint **)arg1)[arg0])(arg1, lparg2, arg3, arg4, arg5, lparg6);
1361
fail:
1389
fail:
1362
	if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0);
1390
	if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0);
1363
	if (arg2 && lparg2) setGUIDFields(env, arg2, lparg2);
1391
	if (arg2 && lparg2) setGUIDFields(env, arg2, lparg2);
Lines 1378-1384 Link Here
1378
	if (arg2) if ((lparg2 = getGUIDFields(env, arg2, &_arg2)) == NULL) goto fail;
1406
	if (arg2) if ((lparg2 = getGUIDFields(env, arg2, &_arg2)) == NULL) goto fail;
1379
	if (arg4) if ((lparg4 = getOLECMDFields(env, arg4, &_arg4)) == NULL) goto fail;
1407
	if (arg4) if ((lparg4 = getOLECMDFields(env, arg4, &_arg4)) == NULL) goto fail;
1380
	if (arg5) if ((lparg5 = getOLECMDTEXTFields(env, arg5, &_arg5)) == NULL) goto fail;
1408
	if (arg5) if ((lparg5 = getOLECMDTEXTFields(env, arg5, &_arg5)) == NULL) goto fail;
1381
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, GUID *, jint, OLECMD *, OLECMDTEXT *))(*(int **)arg1)[arg0])(arg1, lparg2, arg3, lparg4, lparg5);
1409
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, GUID *, jint, OLECMD *, OLECMDTEXT *))(*(jint **)arg1)[arg0])(arg1, lparg2, arg3, lparg4, lparg5);
1382
fail:
1410
fail:
1383
	if (arg5 && lparg5) setOLECMDTEXTFields(env, arg5, lparg5);
1411
	if (arg5 && lparg5) setOLECMDTEXTFields(env, arg5, lparg5);
1384
	if (arg4 && lparg4) setOLECMDFields(env, arg4, lparg4);
1412
	if (arg4 && lparg4) setOLECMDFields(env, arg4, lparg4);
Lines 1398-1404 Link Here
1398
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_GUID_2_3I_FUNC);
1426
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_GUID_2_3I_FUNC);
1399
	if (arg2) if ((lparg2 = getGUIDFields(env, arg2, &_arg2)) == NULL) goto fail;
1427
	if (arg2) if ((lparg2 = getGUIDFields(env, arg2, &_arg2)) == NULL) goto fail;
1400
	if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
1428
	if (arg3) if ((lparg3 = (*env)->GetIntArrayElements(env, arg3, NULL)) == NULL) goto fail;
1401
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, GUID *, jint *))(*(int **)arg1)[arg0])(arg1, lparg2, lparg3);
1429
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, GUID *, jint *))(*(jint **)arg1)[arg0])(arg1, lparg2, lparg3);
1402
fail:
1430
fail:
1403
	if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
1431
	if (arg3 && lparg3) (*env)->ReleaseIntArrayElements(env, arg3, lparg3, 0);
1404
	if (arg2 && lparg2) setGUIDFields(env, arg2, lparg2);
1432
	if (arg2 && lparg2) setGUIDFields(env, arg2, lparg2);
Lines 1415-1421 Link Here
1415
	jint rc = 0;
1443
	jint rc = 0;
1416
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_LICINFO_2_FUNC);
1444
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_LICINFO_2_FUNC);
1417
	if (arg2) if ((lparg2 = getLICINFOFields(env, arg2, &_arg2)) == NULL) goto fail;
1445
	if (arg2) if ((lparg2 = getLICINFOFields(env, arg2, &_arg2)) == NULL) goto fail;
1418
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, LICINFO *))(*(int **)arg1)[arg0])(arg1, lparg2);
1446
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, LICINFO *))(*(jint **)arg1)[arg0])(arg1, lparg2);
1419
fail:
1447
fail:
1420
	if (arg2 && lparg2) setLICINFOFields(env, arg2, lparg2);
1448
	if (arg2 && lparg2) setLICINFOFields(env, arg2, lparg2);
1421
	COM_NATIVE_EXIT(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_LICINFO_2_FUNC);
1449
	COM_NATIVE_EXIT(env, that, VtblCall__IILorg_eclipse_swt_internal_ole_win32_LICINFO_2_FUNC);
Lines 1431-1437 Link Here
1431
	jint rc = 0;
1459
	jint rc = 0;
1432
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_win32_MSG_2_FUNC);
1460
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_win32_MSG_2_FUNC);
1433
	if (arg2) if ((lparg2 = getMSGFields(env, arg2, &_arg2)) == NULL) goto fail;
1461
	if (arg2) if ((lparg2 = getMSGFields(env, arg2, &_arg2)) == NULL) goto fail;
1434
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, MSG *))(*(int **)arg1)[arg0])(arg1, lparg2);
1462
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, MSG *))(*(jint **)arg1)[arg0])(arg1, lparg2);
1435
fail:
1463
fail:
1436
	if (arg2 && lparg2) setMSGFields(env, arg2, lparg2);
1464
	if (arg2 && lparg2) setMSGFields(env, arg2, lparg2);
1437
	COM_NATIVE_EXIT(env, that, VtblCall__IILorg_eclipse_swt_internal_win32_MSG_2_FUNC);
1465
	COM_NATIVE_EXIT(env, that, VtblCall__IILorg_eclipse_swt_internal_win32_MSG_2_FUNC);
Lines 1447-1453 Link Here
1447
	jint rc = 0;
1475
	jint rc = 0;
1448
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_win32_RECT_2_FUNC);
1476
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_win32_RECT_2_FUNC);
1449
	if (arg2) if ((lparg2 = getRECTFields(env, arg2, &_arg2)) == NULL) goto fail;
1477
	if (arg2) if ((lparg2 = getRECTFields(env, arg2, &_arg2)) == NULL) goto fail;
1450
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, RECT *))(*(int **)arg1)[arg0])(arg1, lparg2);
1478
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, RECT *))(*(jint **)arg1)[arg0])(arg1, lparg2);
1451
fail:
1479
fail:
1452
	if (arg2 && lparg2) setRECTFields(env, arg2, lparg2);
1480
	if (arg2 && lparg2) setRECTFields(env, arg2, lparg2);
1453
	COM_NATIVE_EXIT(env, that, VtblCall__IILorg_eclipse_swt_internal_win32_RECT_2_FUNC);
1481
	COM_NATIVE_EXIT(env, that, VtblCall__IILorg_eclipse_swt_internal_win32_RECT_2_FUNC);
Lines 1463-1469 Link Here
1463
	jint rc = 0;
1491
	jint rc = 0;
1464
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_win32_RECT_2IZ_FUNC);
1492
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_win32_RECT_2IZ_FUNC);
1465
	if (arg2) if ((lparg2 = getRECTFields(env, arg2, &_arg2)) == NULL) goto fail;
1493
	if (arg2) if ((lparg2 = getRECTFields(env, arg2, &_arg2)) == NULL) goto fail;
1466
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, RECT *, jint, jboolean))(*(int **)arg1)[arg0])(arg1, lparg2, arg3, arg4);
1494
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, RECT *, jint, jboolean))(*(jint **)arg1)[arg0])(arg1, lparg2, arg3, arg4);
1467
fail:
1495
fail:
1468
	if (arg2 && lparg2) setRECTFields(env, arg2, lparg2);
1496
	if (arg2 && lparg2) setRECTFields(env, arg2, lparg2);
1469
	COM_NATIVE_EXIT(env, that, VtblCall__IILorg_eclipse_swt_internal_win32_RECT_2IZ_FUNC);
1497
	COM_NATIVE_EXIT(env, that, VtblCall__IILorg_eclipse_swt_internal_win32_RECT_2IZ_FUNC);
Lines 1481-1487 Link Here
1481
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_win32_RECT_2Lorg_eclipse_swt_internal_win32_RECT_2_FUNC);
1509
	COM_NATIVE_ENTER(env, that, VtblCall__IILorg_eclipse_swt_internal_win32_RECT_2Lorg_eclipse_swt_internal_win32_RECT_2_FUNC);
1482
	if (arg2) if ((lparg2 = getRECTFields(env, arg2, &_arg2)) == NULL) goto fail;
1510
	if (arg2) if ((lparg2 = getRECTFields(env, arg2, &_arg2)) == NULL) goto fail;
1483
	if (arg3) if ((lparg3 = getRECTFields(env, arg3, &_arg3)) == NULL) goto fail;
1511
	if (arg3) if ((lparg3 = getRECTFields(env, arg3, &_arg3)) == NULL) goto fail;
1484
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, RECT *, RECT *))(*(int **)arg1)[arg0])(arg1, lparg2, lparg3);
1512
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, RECT *, RECT *))(*(jint **)arg1)[arg0])(arg1, lparg2, lparg3);
1485
fail:
1513
fail:
1486
	if (arg3 && lparg3) setRECTFields(env, arg3, lparg3);
1514
	if (arg3 && lparg3) setRECTFields(env, arg3, lparg3);
1487
	if (arg2 && lparg2) setRECTFields(env, arg2, lparg2);
1515
	if (arg2 && lparg2) setRECTFields(env, arg2, lparg2);
Lines 1498-1504 Link Here
1498
	jint rc = 0;
1526
	jint rc = 0;
1499
	COM_NATIVE_ENTER(env, that, VtblCall__II_3C_FUNC);
1527
	COM_NATIVE_ENTER(env, that, VtblCall__II_3C_FUNC);
1500
	if (arg2) if ((lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL)) == NULL) goto fail;
1528
	if (arg2) if ((lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL)) == NULL) goto fail;
1501
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jchar *))(*(int **)arg1)[arg0])(arg1, lparg2);
1529
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jchar *))(*(jint **)arg1)[arg0])(arg1, lparg2);
1502
fail:
1530
fail:
1503
	if (arg2 && lparg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0);
1531
	if (arg2 && lparg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0);
1504
	COM_NATIVE_EXIT(env, that, VtblCall__II_3C_FUNC);
1532
	COM_NATIVE_EXIT(env, that, VtblCall__II_3C_FUNC);
Lines 1514-1520 Link Here
1514
	jint rc = 0;
1542
	jint rc = 0;
1515
	COM_NATIVE_ENTER(env, that, VtblCall__II_3CI_FUNC);
1543
	COM_NATIVE_ENTER(env, that, VtblCall__II_3CI_FUNC);
1516
	if (arg2) if ((lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL)) == NULL) goto fail;
1544
	if (arg2) if ((lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL)) == NULL) goto fail;
1517
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jchar *, jint))(*(int **)arg1)[arg0])(arg1, lparg2, arg3);
1545
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jchar *, jint))(*(jint **)arg1)[arg0])(arg1, lparg2, arg3);
1518
fail:
1546
fail:
1519
	if (arg2 && lparg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0);
1547
	if (arg2 && lparg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0);
1520
	COM_NATIVE_EXIT(env, that, VtblCall__II_3CI_FUNC);
1548
	COM_NATIVE_EXIT(env, that, VtblCall__II_3CI_FUNC);
Lines 1532-1538 Link Here
1532
	COM_NATIVE_ENTER(env, that, VtblCall__II_3CIIII_3I_FUNC);
1560
	COM_NATIVE_ENTER(env, that, VtblCall__II_3CIIII_3I_FUNC);
1533
	if (arg2) if ((lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL)) == NULL) goto fail;
1561
	if (arg2) if ((lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL)) == NULL) goto fail;
1534
	if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail;
1562
	if (arg7) if ((lparg7 = (*env)->GetIntArrayElements(env, arg7, NULL)) == NULL) goto fail;
1535
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jchar *, jint, jint, jint, jint, jint *))(*(int **)arg1)[arg0])(arg1, lparg2, arg3, arg4, arg5, arg6, lparg7);
1563
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jchar *, jint, jint, jint, jint, jint *))(*(jint **)arg1)[arg0])(arg1, lparg2, arg3, arg4, arg5, arg6, lparg7);
1536
fail:
1564
fail:
1537
	if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0);
1565
	if (arg7 && lparg7) (*env)->ReleaseIntArrayElements(env, arg7, lparg7, 0);
1538
	if (arg2 && lparg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0);
1566
	if (arg2 && lparg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0);
Lines 1551-1557 Link Here
1551
	COM_NATIVE_ENTER(env, that, VtblCall__II_3CIII_3I_FUNC);
1579
	COM_NATIVE_ENTER(env, that, VtblCall__II_3CIII_3I_FUNC);
1552
	if (arg2) if ((lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL)) == NULL) goto fail;
1580
	if (arg2) if ((lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL)) == NULL) goto fail;
1553
	if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail;
1581
	if (arg6) if ((lparg6 = (*env)->GetIntArrayElements(env, arg6, NULL)) == NULL) goto fail;
1554
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jchar *, jint, jint, jint, jint *))(*(int **)arg1)[arg0])(arg1, lparg2, arg3, arg4, arg5, lparg6);
1582
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jchar *, jint, jint, jint, jint *))(*(jint **)arg1)[arg0])(arg1, lparg2, arg3, arg4, arg5, lparg6);
1555
fail:
1583
fail:
1556
	if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0);
1584
	if (arg6 && lparg6) (*env)->ReleaseIntArrayElements(env, arg6, lparg6, 0);
1557
	if (arg2 && lparg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0);
1585
	if (arg2 && lparg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0);
Lines 1570-1576 Link Here
1570
	COM_NATIVE_ENTER(env, that, VtblCall__II_3C_3C_FUNC);
1598
	COM_NATIVE_ENTER(env, that, VtblCall__II_3C_3C_FUNC);
1571
	if (arg2) if ((lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL)) == NULL) goto fail;
1599
	if (arg2) if ((lparg2 = (*env)->GetCharArrayElements(env, arg2, NULL)) == NULL) goto fail;
1572
	if (arg3) if ((lparg3 = (*env)->GetCharArrayElements(env, arg3, NULL)) == NULL) goto fail;
1600
	if (arg3) if ((lparg3 = (*env)->GetCharArrayElements(env, arg3, NULL)) == NULL) goto fail;
1573
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jchar *, jchar *))(*(int **)arg1)[arg0])(arg1, lparg2, lparg3);
1601
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jchar *, jchar *))(*(jint **)arg1)[arg0])(arg1, lparg2, lparg3);
1574
fail:
1602
fail:
1575
	if (arg3 && lparg3) (*env)->ReleaseCharArrayElements(env, arg3, lparg3, 0);
1603
	if (arg3 && lparg3) (*env)->ReleaseCharArrayElements(env, arg3, lparg3, 0);
1576
	if (arg2 && lparg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0);
1604
	if (arg2 && lparg2) (*env)->ReleaseCharArrayElements(env, arg2, lparg2, 0);
Lines 1587-1593 Link Here
1587
	jint rc = 0;
1615
	jint rc = 0;
1588
	COM_NATIVE_ENTER(env, that, VtblCall__II_3I_FUNC);
1616
	COM_NATIVE_ENTER(env, that, VtblCall__II_3I_FUNC);
1589
	if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail;
1617
	if (arg2) if ((lparg2 = (*env)->GetIntArrayElements(env, arg2, NULL)) == NULL) goto fail;
1590
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint *))(*(int **)arg1)[arg0])(arg1, lparg2);
1618
	rc = (jint)((jint (STDMETHODCALLTYPE *)(jint, jint *))(*(jint **)arg1)[arg0])(arg1, lparg2);
1591
fail:
1619
fail:
1592
	if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
1620
	if (arg2 && lparg2) (*env)->ReleaseIntArrayElements(env, arg2, lparg2, 0);
1593
	COM_NATIVE_EXIT(env, that, VtblCall__II_3I_FUNC);
1621
	COM_NATIVE_EXIT(env, that, VtblCall__II_3I_FUNC);
(-)org.eclipse.swt_before/Eclipse SWT PI/win32/library/com_stats.c (-2 / +4 lines)
Lines 14-21 Link Here
14
14
15
#ifdef NATIVE_STATS
15
#ifdef NATIVE_STATS
16
16
17
int COM_nativeFunctionCount = 99;
17
int COM_nativeFunctionCount = 101;
18
int COM_nativeFunctionCallCount[99];
18
int COM_nativeFunctionCallCount[101];
19
char * COM_nativeFunctionNames[] = {
19
char * COM_nativeFunctionNames[] = {
20
	"CLSIDFromProgID",
20
	"CLSIDFromProgID",
21
	"CLSIDFromString",
21
	"CLSIDFromString",
Lines 37-42 Link Here
37
	"MoveMemory__ILorg_eclipse_swt_internal_ole_win32_STATSTG_2I",
37
	"MoveMemory__ILorg_eclipse_swt_internal_ole_win32_STATSTG_2I",
38
	"MoveMemory__ILorg_eclipse_swt_internal_ole_win32_STGMEDIUM_2I",
38
	"MoveMemory__ILorg_eclipse_swt_internal_ole_win32_STGMEDIUM_2I",
39
	"MoveMemory__Lorg_eclipse_swt_internal_ole_win32_DISPPARAMS_2II",
39
	"MoveMemory__Lorg_eclipse_swt_internal_ole_win32_DISPPARAMS_2II",
40
	"MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FILEDESCRIPTORA_2II",
41
	"MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FILEDESCRIPTORW_2II",
40
	"MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FORMATETC_2II",
42
	"MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FORMATETC_2II",
41
	"MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FUNCDESC_2II",
43
	"MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FUNCDESC_2II",
42
	"MoveMemory__Lorg_eclipse_swt_internal_ole_win32_GUID_2II",
44
	"MoveMemory__Lorg_eclipse_swt_internal_ole_win32_GUID_2II",
(-)org.eclipse.swt_before/Eclipse SWT PI/win32/library/com_stats.h (+2 lines)
Lines 41-46 Link Here
41
	MoveMemory__ILorg_eclipse_swt_internal_ole_win32_STATSTG_2I_FUNC,
41
	MoveMemory__ILorg_eclipse_swt_internal_ole_win32_STATSTG_2I_FUNC,
42
	MoveMemory__ILorg_eclipse_swt_internal_ole_win32_STGMEDIUM_2I_FUNC,
42
	MoveMemory__ILorg_eclipse_swt_internal_ole_win32_STGMEDIUM_2I_FUNC,
43
	MoveMemory__Lorg_eclipse_swt_internal_ole_win32_DISPPARAMS_2II_FUNC,
43
	MoveMemory__Lorg_eclipse_swt_internal_ole_win32_DISPPARAMS_2II_FUNC,
44
	MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FILEDESCRIPTORA_2II_FUNC,
45
	MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FILEDESCRIPTORW_2II_FUNC,
44
	MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FORMATETC_2II_FUNC,
46
	MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FORMATETC_2II_FUNC,
45
	MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FUNCDESC_2II_FUNC,
47
	MoveMemory__Lorg_eclipse_swt_internal_ole_win32_FUNCDESC_2II_FUNC,
46
	MoveMemory__Lorg_eclipse_swt_internal_ole_win32_GUID_2II_FUNC,
48
	MoveMemory__Lorg_eclipse_swt_internal_ole_win32_GUID_2II_FUNC,
(-)org.eclipse.swt_before/Eclipse SWT PI/win32/library/com_structs.c (+193 lines)
Lines 273-278 Link Here
273
}
273
}
274
#endif
274
#endif
275
275
276
#ifndef NO_FILEDESCRIPTOR
277
typedef struct FILEDESCRIPTOR_FID_CACHE {
278
	int cached;
279
	jclass clazz;
280
	jfieldID dwFlags, dwFileAttributes, ftCreationTime, ftLastAccessTime, ftLastWriteTime;
281
} FILEDESCRIPTOR_FID_CACHE;
282
283
FILEDESCRIPTOR_FID_CACHE FILEDESCRIPTORFc;
284
285
void cacheFILEDESCRIPTORFields(JNIEnv *env, jobject lpObject)
286
{
287
	if (FILEDESCRIPTORFc.cached) return;
288
	FILEDESCRIPTORFc.clazz = (*env)->GetObjectClass(env, lpObject);
289
	FILEDESCRIPTORFc.dwFlags = (*env)->GetFieldID(env, FILEDESCRIPTORFc.clazz, "dwFlags", "I");
290
	FILEDESCRIPTORFc.dwFileAttributes = (*env)->GetFieldID(env, FILEDESCRIPTORFc.clazz, "dwFileAttributes", "I");
291
	FILEDESCRIPTORFc.ftCreationTime = (*env)->GetFieldID(env, FILEDESCRIPTORFc.clazz, "ftCreationTime", "Lorg/eclipse/swt/internal/win32/FILETIME;");
292
	FILEDESCRIPTORFc.ftLastAccessTime = (*env)->GetFieldID(env, FILEDESCRIPTORFc.clazz, "ftLastAccessTime", "Lorg/eclipse/swt/internal/win32/FILETIME;");
293
	FILEDESCRIPTORFc.ftLastWriteTime = (*env)->GetFieldID(env, FILEDESCRIPTORFc.clazz, "ftLastWriteTime", "Lorg/eclipse/swt/internal/win32/FILETIME;");
294
	FILEDESCRIPTORFc.cached = 1;
295
}
296
297
FILEDESCRIPTOR *getFILEDESCRIPTORFields(JNIEnv *env, jobject lpObject, FILEDESCRIPTOR *lpStruct)
298
{
299
	if (!FILEDESCRIPTORFc.cached) cacheFILEDESCRIPTORFields(env, lpObject);
300
	lpStruct->dwFlags = (*env)->GetIntField(env, lpObject, FILEDESCRIPTORFc.dwFlags);
301
	lpStruct->dwFileAttributes = (*env)->GetIntField(env, lpObject, FILEDESCRIPTORFc.dwFileAttributes);
302
	{
303
	jobject lpObject1 = (*env)->GetObjectField(env, lpObject, FILEDESCRIPTORFc.ftCreationTime);
304
	getFILETIMEFields(env, lpObject1, &lpStruct->ftCreationTime);
305
	}
306
	{
307
	jobject lpObject1 = (*env)->GetObjectField(env, lpObject, FILEDESCRIPTORFc.ftLastAccessTime);
308
	getFILETIMEFields(env, lpObject1, &lpStruct->ftLastAccessTime);
309
	}
310
	{
311
	jobject lpObject1 = (*env)->GetObjectField(env, lpObject, FILEDESCRIPTORFc.ftLastWriteTime);
312
	getFILETIMEFields(env, lpObject1, &lpStruct->ftLastWriteTime);
313
	}
314
	return lpStruct;
315
}
316
317
void setFILEDESCRIPTORFields(JNIEnv *env, jobject lpObject, FILEDESCRIPTOR *lpStruct)
318
{
319
	if (!FILEDESCRIPTORFc.cached) cacheFILEDESCRIPTORFields(env, lpObject);
320
	(*env)->SetIntField(env, lpObject, FILEDESCRIPTORFc.dwFlags, (jint)lpStruct->dwFlags);
321
	(*env)->SetIntField(env, lpObject, FILEDESCRIPTORFc.dwFileAttributes, (jint)lpStruct->dwFileAttributes);
322
	{
323
	jobject lpObject1 = (*env)->GetObjectField(env, lpObject, FILEDESCRIPTORFc.ftCreationTime);
324
	setFILETIMEFields(env, lpObject1, &lpStruct->ftCreationTime);
325
	}
326
	{
327
	jobject lpObject1 = (*env)->GetObjectField(env, lpObject, FILEDESCRIPTORFc.ftLastAccessTime);
328
	setFILETIMEFields(env, lpObject1, &lpStruct->ftLastAccessTime);
329
	}
330
	{
331
	jobject lpObject1 = (*env)->GetObjectField(env, lpObject, FILEDESCRIPTORFc.ftLastWriteTime);
332
	setFILETIMEFields(env, lpObject1, &lpStruct->ftLastWriteTime);
333
	}
334
}
335
#endif
336
337
#ifndef NO_FILEDESCRIPTORA
338
typedef struct FILEDESCRIPTORA_FID_CACHE {
339
	int cached;
340
	jclass clazz;
341
	jfieldID cFileName;
342
} FILEDESCRIPTORA_FID_CACHE;
343
344
FILEDESCRIPTORA_FID_CACHE FILEDESCRIPTORAFc;
345
346
void cacheFILEDESCRIPTORAFields(JNIEnv *env, jobject lpObject)
347
{
348
	if (FILEDESCRIPTORAFc.cached) return;
349
	cacheFILEDESCRIPTORFields(env, lpObject);
350
	FILEDESCRIPTORAFc.clazz = (*env)->GetObjectClass(env, lpObject);
351
	FILEDESCRIPTORAFc.cFileName = (*env)->GetFieldID(env, FILEDESCRIPTORAFc.clazz, "cFileName", "[B");
352
	FILEDESCRIPTORAFc.cached = 1;
353
}
354
355
FILEDESCRIPTORA *getFILEDESCRIPTORAFields(JNIEnv *env, jobject lpObject, FILEDESCRIPTORA *lpStruct)
356
{
357
	if (!FILEDESCRIPTORAFc.cached) cacheFILEDESCRIPTORAFields(env, lpObject);
358
	lpStruct->dwFlags = (*env)->GetIntField(env, lpObject, FILEDESCRIPTORFc.dwFlags);
359
	lpStruct->dwFileAttributes = (*env)->GetIntField(env, lpObject, FILEDESCRIPTORFc.dwFileAttributes);
360
	{
361
	jobject lpObject1 = (*env)->GetObjectField(env, lpObject, FILEDESCRIPTORFc.ftCreationTime);
362
	getFILETIMEFields(env, lpObject1, &lpStruct->ftCreationTime);
363
	}
364
	{
365
	jobject lpObject1 = (*env)->GetObjectField(env, lpObject, FILEDESCRIPTORFc.ftLastAccessTime);
366
	getFILETIMEFields(env, lpObject1, &lpStruct->ftLastAccessTime);
367
	}
368
	{
369
	jobject lpObject1 = (*env)->GetObjectField(env, lpObject, FILEDESCRIPTORFc.ftLastWriteTime);
370
	getFILETIMEFields(env, lpObject1, &lpStruct->ftLastWriteTime);
371
	}
372
	{
373
	jbyteArray lpObject1 = (jbyteArray)(*env)->GetObjectField(env, lpObject, FILEDESCRIPTORAFc.cFileName);
374
	(*env)->GetByteArrayRegion(env, lpObject1, 0, sizeof(lpStruct->cFileName), (jbyte *)lpStruct->cFileName);
375
	}
376
	return lpStruct;
377
}
378
379
void setFILEDESCRIPTORAFields(JNIEnv *env, jobject lpObject, FILEDESCRIPTORA *lpStruct)
380
{
381
	if (!FILEDESCRIPTORAFc.cached) cacheFILEDESCRIPTORAFields(env, lpObject);
382
	(*env)->SetIntField(env, lpObject, FILEDESCRIPTORFc.dwFlags, (jint)lpStruct->dwFlags);
383
	(*env)->SetIntField(env, lpObject, FILEDESCRIPTORFc.dwFileAttributes, (jint)lpStruct->dwFileAttributes);
384
	{
385
	jobject lpObject1 = (*env)->GetObjectField(env, lpObject, FILEDESCRIPTORFc.ftCreationTime);
386
	setFILETIMEFields(env, lpObject1, &lpStruct->ftCreationTime);
387
	}
388
	{
389
	jobject lpObject1 = (*env)->GetObjectField(env, lpObject, FILEDESCRIPTORFc.ftLastAccessTime);
390
	setFILETIMEFields(env, lpObject1, &lpStruct->ftLastAccessTime);
391
	}
392
	{
393
	jobject lpObject1 = (*env)->GetObjectField(env, lpObject, FILEDESCRIPTORFc.ftLastWriteTime);
394
	setFILETIMEFields(env, lpObject1, &lpStruct->ftLastWriteTime);
395
	}
396
	{
397
	jbyteArray lpObject1 = (jbyteArray)(*env)->GetObjectField(env, lpObject, FILEDESCRIPTORAFc.cFileName);
398
	(*env)->SetByteArrayRegion(env, lpObject1, 0, sizeof(lpStruct->cFileName), (jbyte *)lpStruct->cFileName);
399
	}
400
}
401
#endif
402
403
#ifndef NO_FILEDESCRIPTORW
404
typedef struct FILEDESCRIPTORW_FID_CACHE {
405
	int cached;
406
	jclass clazz;
407
	jfieldID cFileName;
408
} FILEDESCRIPTORW_FID_CACHE;
409
410
FILEDESCRIPTORW_FID_CACHE FILEDESCRIPTORWFc;
411
412
void cacheFILEDESCRIPTORWFields(JNIEnv *env, jobject lpObject)
413
{
414
	if (FILEDESCRIPTORWFc.cached) return;
415
	cacheFILEDESCRIPTORFields(env, lpObject);
416
	FILEDESCRIPTORWFc.clazz = (*env)->GetObjectClass(env, lpObject);
417
	FILEDESCRIPTORWFc.cFileName = (*env)->GetFieldID(env, FILEDESCRIPTORWFc.clazz, "cFileName", "[C");
418
	FILEDESCRIPTORWFc.cached = 1;
419
}
420
421
FILEDESCRIPTORW *getFILEDESCRIPTORWFields(JNIEnv *env, jobject lpObject, FILEDESCRIPTORW *lpStruct)
422
{
423
	if (!FILEDESCRIPTORWFc.cached) cacheFILEDESCRIPTORWFields(env, lpObject);
424
	lpStruct->dwFlags = (*env)->GetIntField(env, lpObject, FILEDESCRIPTORFc.dwFlags);
425
	lpStruct->dwFileAttributes = (*env)->GetIntField(env, lpObject, FILEDESCRIPTORFc.dwFileAttributes);
426
	{
427
	jobject lpObject1 = (*env)->GetObjectField(env, lpObject, FILEDESCRIPTORFc.ftCreationTime);
428
	getFILETIMEFields(env, lpObject1, &lpStruct->ftCreationTime);
429
	}
430
	{
431
	jobject lpObject1 = (*env)->GetObjectField(env, lpObject, FILEDESCRIPTORFc.ftLastAccessTime);
432
	getFILETIMEFields(env, lpObject1, &lpStruct->ftLastAccessTime);
433
	}
434
	{
435
	jobject lpObject1 = (*env)->GetObjectField(env, lpObject, FILEDESCRIPTORFc.ftLastWriteTime);
436
	getFILETIMEFields(env, lpObject1, &lpStruct->ftLastWriteTime);
437
	}
438
	{
439
	jcharArray lpObject1 = (jcharArray)(*env)->GetObjectField(env, lpObject, FILEDESCRIPTORWFc.cFileName);
440
	(*env)->GetCharArrayRegion(env, lpObject1, 0, sizeof(lpStruct->cFileName) / 2, (jchar *)lpStruct->cFileName);
441
	}
442
	return lpStruct;
443
}
444
445
void setFILEDESCRIPTORWFields(JNIEnv *env, jobject lpObject, FILEDESCRIPTORW *lpStruct)
446
{
447
	if (!FILEDESCRIPTORWFc.cached) cacheFILEDESCRIPTORWFields(env, lpObject);
448
	(*env)->SetIntField(env, lpObject, FILEDESCRIPTORFc.dwFlags, (jint)lpStruct->dwFlags);
449
	(*env)->SetIntField(env, lpObject, FILEDESCRIPTORFc.dwFileAttributes, (jint)lpStruct->dwFileAttributes);
450
	{
451
	jobject lpObject1 = (*env)->GetObjectField(env, lpObject, FILEDESCRIPTORFc.ftCreationTime);
452
	setFILETIMEFields(env, lpObject1, &lpStruct->ftCreationTime);
453
	}
454
	{
455
	jobject lpObject1 = (*env)->GetObjectField(env, lpObject, FILEDESCRIPTORFc.ftLastAccessTime);
456
	setFILETIMEFields(env, lpObject1, &lpStruct->ftLastAccessTime);
457
	}
458
	{
459
	jobject lpObject1 = (*env)->GetObjectField(env, lpObject, FILEDESCRIPTORFc.ftLastWriteTime);
460
	setFILETIMEFields(env, lpObject1, &lpStruct->ftLastWriteTime);
461
	}
462
	{
463
	jcharArray lpObject1 = (jcharArray)(*env)->GetObjectField(env, lpObject, FILEDESCRIPTORWFc.cFileName);
464
	(*env)->SetCharArrayRegion(env, lpObject1, 0, sizeof(lpStruct->cFileName) / 2, (jchar *)lpStruct->cFileName);
465
	}
466
}
467
#endif
468
276
#ifndef NO_FORMATETC
469
#ifndef NO_FORMATETC
277
typedef struct FORMATETC_FID_CACHE {
470
typedef struct FORMATETC_FID_CACHE {
278
	int cached;
471
	int cached;
(-)org.eclipse.swt_before/Eclipse SWT PI/win32/library/com_structs.h (+36 lines)
Lines 83-88 Link Here
83
#define EXCEPINFO_sizeof() 0
83
#define EXCEPINFO_sizeof() 0
84
#endif
84
#endif
85
85
86
#ifndef NO_FILEDESCRIPTOR
87
void cacheFILEDESCRIPTORFields(JNIEnv *env, jobject lpObject);
88
FILEDESCRIPTOR *getFILEDESCRIPTORFields(JNIEnv *env, jobject lpObject, FILEDESCRIPTOR *lpStruct);
89
void setFILEDESCRIPTORFields(JNIEnv *env, jobject lpObject, FILEDESCRIPTOR *lpStruct);
90
#define FILEDESCRIPTOR_sizeof() sizeof(FILEDESCRIPTOR)
91
#else
92
#define cacheFILEDESCRIPTORFields(a,b)
93
#define getFILEDESCRIPTORFields(a,b,c) NULL
94
#define setFILEDESCRIPTORFields(a,b,c)
95
#define FILEDESCRIPTOR_sizeof() 0
96
#endif
97
98
#ifndef NO_FILEDESCRIPTORA
99
void cacheFILEDESCRIPTORAFields(JNIEnv *env, jobject lpObject);
100
FILEDESCRIPTORA *getFILEDESCRIPTORAFields(JNIEnv *env, jobject lpObject, FILEDESCRIPTORA *lpStruct);
101
void setFILEDESCRIPTORAFields(JNIEnv *env, jobject lpObject, FILEDESCRIPTORA *lpStruct);
102
#define FILEDESCRIPTORA_sizeof() sizeof(FILEDESCRIPTORA)
103
#else
104
#define cacheFILEDESCRIPTORAFields(a,b)
105
#define getFILEDESCRIPTORAFields(a,b,c) NULL
106
#define setFILEDESCRIPTORAFields(a,b,c)
107
#define FILEDESCRIPTORA_sizeof() 0
108
#endif
109
110
#ifndef NO_FILEDESCRIPTORW
111
void cacheFILEDESCRIPTORWFields(JNIEnv *env, jobject lpObject);
112
FILEDESCRIPTORW *getFILEDESCRIPTORWFields(JNIEnv *env, jobject lpObject, FILEDESCRIPTORW *lpStruct);
113
void setFILEDESCRIPTORWFields(JNIEnv *env, jobject lpObject, FILEDESCRIPTORW *lpStruct);
114
#define FILEDESCRIPTORW_sizeof() sizeof(FILEDESCRIPTORW)
115
#else
116
#define cacheFILEDESCRIPTORWFields(a,b)
117
#define getFILEDESCRIPTORWFields(a,b,c) NULL
118
#define setFILEDESCRIPTORWFields(a,b,c)
119
#define FILEDESCRIPTORW_sizeof() 0
120
#endif
121
86
#ifndef NO_FORMATETC
122
#ifndef NO_FORMATETC
87
void cacheFORMATETCFields(JNIEnv *env, jobject lpObject);
123
void cacheFORMATETCFields(JNIEnv *env, jobject lpObject);
88
FORMATETC *getFORMATETCFields(JNIEnv *env, jobject lpObject, FORMATETC *lpStruct);
124
FORMATETC *getFORMATETCFields(JNIEnv *env, jobject lpObject, FORMATETC *lpStruct);
(-)org.eclipse.swt_before/Eclipse SWT PI/win32/library/make_win32.mak (-3 / +3 lines)
Lines 30-44 Link Here
30
30
31
AWT_PREFIX = swt-awt
31
AWT_PREFIX = swt-awt
32
AWT_LIB    = $(AWT_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).dll
32
AWT_LIB    = $(AWT_PREFIX)-$(WS_PREFIX)-$(SWT_VERSION).dll
33
AWT_LIBS   = $(JAVA_HOME)\jre\bin\jawt.lib
33
AWT_LIBS   = $(JAVA_HOME)\lib\jawt.lib
34
AWT_OBJS   = swt_awt.obj
34
AWT_OBJS   = swt_awt.obj
35
35
36
# Uncomment for Native Stats tool
36
# Uncomment for Native Stats tool
37
#NATIVE_STATS = -DNATIVE_STATS
37
#NATIVE_STATS = -DNATIVE_STATS
38
38
39
# Uncomment for debug flags
39
# Uncomment for debug flags
40
#SWT_CDEBUG = -Zi -Odi
40
SWT_CDEBUG = -Zi -Odi
41
#SWT_LDEBUG = /DEBUG /DEBUGTYPE:both
41
SWT_LDEBUG = /DEBUG /DEBUGTYPE:both
42
42
43
# note: thoroughly test all examples after changing any optimization flags
43
# note: thoroughly test all examples after changing any optimization flags
44
SWT_WINDOWS_SDK = -DWINVER=0x0500 -D_WIN32_WINDOWS=0x0400 -D_WIN32_WINNT=0x501 -D_WIN32_IE=0x0500
44
SWT_WINDOWS_SDK = -DWINVER=0x0500 -D_WIN32_WINDOWS=0x0400 -D_WIN32_WINNT=0x501 -D_WIN32_IE=0x0500
(-)org.eclipse.swt_before/Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/COM.java (-2 / +16 lines)
Lines 7-12 Link Here
7
 * 
7
 * 
8
 * Contributors:
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
9
 *     IBM Corporation - initial API and implementation
10
 *     Plum Canary Corporation - support for embedded file transfer
10
 *******************************************************************************/
11
 *******************************************************************************/
11
package org.eclipse.swt.internal.ole.win32;
12
package org.eclipse.swt.internal.ole.win32;
12
13
Lines 222-228 Link Here
222
	//public static final int E_NOTLICENSED = -2147221230;
223
	//public static final int E_NOTLICENSED = -2147221230;
223
	//public static final int E_OUTOFMEMORY = -2147024882;
224
	//public static final int E_OUTOFMEMORY = -2147024882;
224
	//public static final int E_POINTER = -2147467261;
225
	//public static final int E_POINTER = -2147467261;
225
	public static final int GMEM_FIXED = 0;
226
227
//    public static final int FD_CLSID = 0x0001;
228
//    public static final int FD_SIZEPOINT = 0x0002;
229
//    public static final int FD_ATTRIBUTES = 0x0004;
230
    public static final int FD_CREATETIME = 0x0008;
231
//    public static final int FD_ACCESSTIME = 0x0010;
232
    public static final int FD_WRITESTIME = 0x0020;
233
//    public static final int FD_FILESIZE = 0x0040;
234
//    public static final int FD_PROGRESSUI = 0x4000;
235
//    public static final int FD_LINKUI = 0x8000;
236
    
237
    public static final int GMEM_FIXED = 0;
226
	//public static final int GMEM_MOVABLE = 2;
238
	//public static final int GMEM_MOVABLE = 2;
227
	//public static final int GMEM_NODISCARD = 32;
239
	//public static final int GMEM_NODISCARD = 32;
228
	public static final int GMEM_ZEROINIT = 64;
240
	public static final int GMEM_ZEROINIT = 64;
Lines 342-348 Link Here
342
	//public static final int TYMED_GDI = 16;
354
	//public static final int TYMED_GDI = 16;
343
	public static final int TYMED_HGLOBAL = 1;
355
	public static final int TYMED_HGLOBAL = 1;
344
	//public static final int TYMED_ISTORAGE = 8;
356
	//public static final int TYMED_ISTORAGE = 8;
345
	//public static final int TYMED_ISTREAM = 4;
357
	public static final int TYMED_ISTREAM = 4;
346
	//public static final int TYMED_MFPICT = 32;
358
	//public static final int TYMED_MFPICT = 32;
347
	//public static final int TYMED_NULL = 0;
359
	//public static final int TYMED_NULL = 0;
348
	public static final short DISPATCH_METHOD = 0x1;
360
	public static final short DISPATCH_METHOD = 0x1;
Lines 412-417 Link Here
412
public static final native void MoveMemory(RECT Destination, int Source, int Length);
424
public static final native void MoveMemory(RECT Destination, int Source, int Length);
413
public static final native void MoveMemory(FUNCDESC Destination, int Source, int Length);
425
public static final native void MoveMemory(FUNCDESC Destination, int Source, int Length);
414
public static final native void MoveMemory(VARDESC Destination, int Source, int Length);
426
public static final native void MoveMemory(VARDESC Destination, int Source, int Length);
427
public static final native void MoveMemory(FILEDESCRIPTORW Destination, int Source, int Length);
428
public static final native void MoveMemory(FILEDESCRIPTORA Destination, int Source, int Length);
415
public static final native int OleCreate(GUID rclsid, GUID riid, int renderopt, FORMATETC pFormatEtc, int pClientSite, int pStg, int[] ppvObject);
429
public static final native int OleCreate(GUID rclsid, GUID riid, int renderopt, FORMATETC pFormatEtc, int pClientSite, int pStg, int[] ppvObject);
416
public static final native int OleCreateFromFile(GUID rclsid, char[] lpszFileName, GUID riid, int renderopt, FORMATETC pFormatEtc, int pClientSite, int pStg, int[] ppvObj); 
430
public static final native int OleCreateFromFile(GUID rclsid, char[] lpszFileName, GUID riid, int renderopt, FORMATETC pFormatEtc, int pClientSite, int pStg, int[] ppvObj); 
417
public static final native int OleCreatePropertyFrame(int hwndOwner,int x, int y, char[] lpszCaption, int cObjects, int[] lplpUnk, int cPages, int lpPageClsID, int lcid, int dwReserved, int lpvReserved);
431
public static final native int OleCreatePropertyFrame(int hwndOwner,int x, int y, char[] lpszCaption, int cObjects, int[] lplpUnk, int cPages, int lpPageClsID, int lcid, int dwReserved, int lpvReserved);
(-)org.eclipse.swt_before/Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/FILEDESCRIPTOR.java (+34 lines)
Line 0 Link Here
1
/*****************************************************************************
2
 * Copyright (c) 2005, 2006 Plum Canary Corporation.
3
 * All rights reserved. This program and the accompanying materials 
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/org/documents/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     Plum Canary Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.swt.internal.ole.win32;
12
13
import org.eclipse.swt.internal.win32.FILETIME;
14
import org.eclipse.swt.internal.win32.OS;
15
16
/**
17
 * is a representation of Win32 FILEDESCRIPTOR structure.
18
 *   
19
 * @author harlamov
20
 * @version $Revision: 1.3 $
21
 */
22
public class FILEDESCRIPTOR {
23
    public int dwFlags; 
24
//    public GUID clsid = new GUID(); 
25
//    public SIZE sizel = new SIZE(); 
26
//    public POINT pointl = new POINT();
27
    public int dwFileAttributes; 
28
    public FILETIME ftCreationTime = new FILETIME(); 
29
    public FILETIME ftLastAccessTime = new FILETIME(); 
30
    public FILETIME ftLastWriteTime = new FILETIME(); 
31
//    public int nFileSizeHigh; 
32
//    public int nFileSizeLow; 
33
    public static /*final*/ int sizeof = OS.IsUnicode ? 592 : 332;
34
}
(-)org.eclipse.swt_before/Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/FILEDESCRIPTORA.java (+18 lines)
Line 0 Link Here
1
/*****************************************************************************
2
 * Copyright (c) 2005, 2006 Plum Canary Corporation.
3
 * All rights reserved. This program and the accompanying materials 
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/org/documents/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     Plum Canary Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.swt.internal.ole.win32;
12
13
import org.eclipse.swt.internal.win32.OS;
14
15
public final class FILEDESCRIPTORA extends FILEDESCRIPTOR {
16
    public byte[] cFileName = new byte[OS.MAX_PATH];
17
    public static final int sizeof = 332;
18
}
(-)org.eclipse.swt_before/Eclipse SWT PI/win32/org/eclipse/swt/internal/ole/win32/FILEDESCRIPTORW.java (+18 lines)
Line 0 Link Here
1
/*****************************************************************************
2
 * Copyright (c) 2005, 2006 Plum Canary Corporation.
3
 * All rights reserved. This program and the accompanying materials 
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/org/documents/epl-v10.html
7
 * 
8
 * Contributors:
9
 *     Plum Canary Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.swt.internal.ole.win32;
12
13
import org.eclipse.swt.internal.win32.OS;
14
15
public final class FILEDESCRIPTORW extends FILEDESCRIPTOR {
16
    public char[] cFileName = new char[OS.MAX_PATH];
17
    public static final int sizeof = 592;
18
}

Return to bug 132514