~ubuntu-branches/debian/sid/swt-gtk/sid

« back to all changes in this revision

Viewing changes to cairo.c

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Perez
  • Date: 2009-12-07 10:22:24 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20091207102224-70w2tax575mcks1w
Tags: 3.5.1-1
* New upstream release. Closes: #558663.
* debian/control: 
  - Add Vcs-* fields for Git repository.
  - Allow DM-Uploads.
  - Remove "Conflicts", package should live with eclipse.
* debian/rules: Fix default-java path around AWT_LIB_PATH.
* debian/copyright: Minor update.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 *
16
16
 * IBM
17
17
 * -  Binding to permit interfacing between Cairo and SWT
18
 
 * -  Copyright (C) 2005, 2007 IBM Corp.  All Rights Reserved.
 
18
 * -  Copyright (C) 2005, 2008 IBM Corp.  All Rights Reserved.
19
19
 *
20
20
 * ***** END LICENSE BLOCK ***** */
21
21
 
39
39
 
40
40
#ifndef NO__1cairo_1append_1path
41
41
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1append_1path)
42
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1)
 
42
        (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1)
43
43
{
44
44
        Cairo_NATIVE_ENTER(env, that, _1cairo_1append_1path_FUNC);
45
45
        cairo_append_path((cairo_t *)arg0, (cairo_path_t *)arg1);
49
49
 
50
50
#ifndef NO__1cairo_1arc
51
51
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1arc)
52
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5)
 
52
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5)
53
53
{
54
54
        Cairo_NATIVE_ENTER(env, that, _1cairo_1arc_FUNC);
55
55
        cairo_arc((cairo_t *)arg0, arg1, arg2, arg3, arg4, arg5);
59
59
 
60
60
#ifndef NO__1cairo_1arc_1negative
61
61
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1arc_1negative)
62
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5)
 
62
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5)
63
63
{
64
64
        Cairo_NATIVE_ENTER(env, that, _1cairo_1arc_1negative_FUNC);
65
65
        cairo_arc_negative((cairo_t *)arg0, arg1, arg2, arg3, arg4, arg5);
69
69
 
70
70
#ifndef NO__1cairo_1clip
71
71
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1clip)
72
 
        (JNIEnv *env, jclass that, jint arg0)
 
72
        (JNIEnv *env, jclass that, jintLong arg0)
73
73
{
74
74
        Cairo_NATIVE_ENTER(env, that, _1cairo_1clip_FUNC);
75
75
        cairo_clip((cairo_t *)arg0);
79
79
 
80
80
#ifndef NO__1cairo_1clip_1preserve
81
81
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1clip_1preserve)
82
 
        (JNIEnv *env, jclass that, jint arg0)
 
82
        (JNIEnv *env, jclass that, jintLong arg0)
83
83
{
84
84
        Cairo_NATIVE_ENTER(env, that, _1cairo_1clip_1preserve_FUNC);
85
85
        cairo_clip_preserve((cairo_t *)arg0);
89
89
 
90
90
#ifndef NO__1cairo_1close_1path
91
91
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1close_1path)
92
 
        (JNIEnv *env, jclass that, jint arg0)
 
92
        (JNIEnv *env, jclass that, jintLong arg0)
93
93
{
94
94
        Cairo_NATIVE_ENTER(env, that, _1cairo_1close_1path_FUNC);
95
95
        cairo_close_path((cairo_t *)arg0);
99
99
 
100
100
#ifndef NO__1cairo_1copy_1page
101
101
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1copy_1page)
102
 
        (JNIEnv *env, jclass that, jint arg0)
 
102
        (JNIEnv *env, jclass that, jintLong arg0)
103
103
{
104
104
        Cairo_NATIVE_ENTER(env, that, _1cairo_1copy_1page_FUNC);
105
105
        cairo_copy_page((cairo_t *)arg0);
108
108
#endif
109
109
 
110
110
#ifndef NO__1cairo_1copy_1path
111
 
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1copy_1path)
112
 
        (JNIEnv *env, jclass that, jint arg0)
 
111
JNIEXPORT jintLong JNICALL Cairo_NATIVE(_1cairo_1copy_1path)
 
112
        (JNIEnv *env, jclass that, jintLong arg0)
113
113
{
114
 
        jint rc = 0;
 
114
        jintLong rc = 0;
115
115
        Cairo_NATIVE_ENTER(env, that, _1cairo_1copy_1path_FUNC);
116
 
        rc = (jint)cairo_copy_path((cairo_t *)arg0);
 
116
        rc = (jintLong)cairo_copy_path((cairo_t *)arg0);
117
117
        Cairo_NATIVE_EXIT(env, that, _1cairo_1copy_1path_FUNC);
118
118
        return rc;
119
119
}
120
120
#endif
121
121
 
122
122
#ifndef NO__1cairo_1copy_1path_1flat
123
 
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1copy_1path_1flat)
124
 
        (JNIEnv *env, jclass that, jint arg0)
 
123
JNIEXPORT jintLong JNICALL Cairo_NATIVE(_1cairo_1copy_1path_1flat)
 
124
        (JNIEnv *env, jclass that, jintLong arg0)
125
125
{
126
 
        jint rc = 0;
 
126
        jintLong rc = 0;
127
127
        Cairo_NATIVE_ENTER(env, that, _1cairo_1copy_1path_1flat_FUNC);
128
 
        rc = (jint)cairo_copy_path_flat((cairo_t *)arg0);
 
128
        rc = (jintLong)cairo_copy_path_flat((cairo_t *)arg0);
129
129
        Cairo_NATIVE_EXIT(env, that, _1cairo_1copy_1path_1flat_FUNC);
130
130
        return rc;
131
131
}
132
132
#endif
133
133
 
134
134
#ifndef NO__1cairo_1create
135
 
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1create)
136
 
        (JNIEnv *env, jclass that, jint arg0)
 
135
JNIEXPORT jintLong JNICALL Cairo_NATIVE(_1cairo_1create)
 
136
        (JNIEnv *env, jclass that, jintLong arg0)
137
137
{
138
 
        jint rc = 0;
 
138
        jintLong rc = 0;
139
139
        Cairo_NATIVE_ENTER(env, that, _1cairo_1create_FUNC);
140
 
        rc = (jint)cairo_create((cairo_surface_t *)arg0);
 
140
        rc = (jintLong)cairo_create((cairo_surface_t *)arg0);
141
141
        Cairo_NATIVE_EXIT(env, that, _1cairo_1create_FUNC);
142
142
        return rc;
143
143
}
145
145
 
146
146
#ifndef NO__1cairo_1curve_1to
147
147
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1curve_1to)
148
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5, jdouble arg6)
 
148
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5, jdouble arg6)
149
149
{
150
150
        Cairo_NATIVE_ENTER(env, that, _1cairo_1curve_1to_FUNC);
151
151
        cairo_curve_to((cairo_t *)arg0, arg1, arg2, arg3, arg4, arg5, arg6);
155
155
 
156
156
#ifndef NO__1cairo_1destroy
157
157
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1destroy)
158
 
        (JNIEnv *env, jclass that, jint arg0)
 
158
        (JNIEnv *env, jclass that, jintLong arg0)
159
159
{
160
160
        Cairo_NATIVE_ENTER(env, that, _1cairo_1destroy_FUNC);
161
161
        cairo_destroy((cairo_t *)arg0);
165
165
 
166
166
#ifndef NO__1cairo_1device_1to_1user
167
167
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1device_1to_1user)
168
 
        (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2)
 
168
        (JNIEnv *env, jclass that, jintLong arg0, jdoubleArray arg1, jdoubleArray arg2)
169
169
{
170
170
        jdouble *lparg1=NULL;
171
171
        jdouble *lparg2=NULL;
182
182
 
183
183
#ifndef NO__1cairo_1device_1to_1user_1distance
184
184
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1device_1to_1user_1distance)
185
 
        (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2)
 
185
        (JNIEnv *env, jclass that, jintLong arg0, jdoubleArray arg1, jdoubleArray arg2)
186
186
{
187
187
        jdouble *lparg1=NULL;
188
188
        jdouble *lparg2=NULL;
199
199
 
200
200
#ifndef NO__1cairo_1fill
201
201
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1fill)
202
 
        (JNIEnv *env, jclass that, jint arg0)
 
202
        (JNIEnv *env, jclass that, jintLong arg0)
203
203
{
204
204
        Cairo_NATIVE_ENTER(env, that, _1cairo_1fill_FUNC);
205
205
        cairo_fill((cairo_t *)arg0);
209
209
 
210
210
#ifndef NO__1cairo_1fill_1extents
211
211
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1fill_1extents)
212
 
        (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2, jdoubleArray arg3, jdoubleArray arg4)
 
212
        (JNIEnv *env, jclass that, jintLong arg0, jdoubleArray arg1, jdoubleArray arg2, jdoubleArray arg3, jdoubleArray arg4)
213
213
{
214
214
        jdouble *lparg1=NULL;
215
215
        jdouble *lparg2=NULL;
232
232
 
233
233
#ifndef NO__1cairo_1fill_1preserve
234
234
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1fill_1preserve)
235
 
        (JNIEnv *env, jclass that, jint arg0)
 
235
        (JNIEnv *env, jclass that, jintLong arg0)
236
236
{
237
237
        Cairo_NATIVE_ENTER(env, that, _1cairo_1fill_1preserve_FUNC);
238
238
        cairo_fill_preserve((cairo_t *)arg0);
242
242
 
243
243
#ifndef NO__1cairo_1font_1extents
244
244
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1font_1extents)
245
 
        (JNIEnv *env, jclass that, jint arg0, jobject arg1)
 
245
        (JNIEnv *env, jclass that, jintLong arg0, jobject arg1)
246
246
{
247
247
        cairo_font_extents_t _arg1, *lparg1=NULL;
248
248
        Cairo_NATIVE_ENTER(env, that, _1cairo_1font_1extents_FUNC);
255
255
#endif
256
256
 
257
257
#ifndef NO__1cairo_1font_1options_1create
258
 
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1font_1options_1create)
 
258
JNIEXPORT jintLong JNICALL Cairo_NATIVE(_1cairo_1font_1options_1create)
259
259
        (JNIEnv *env, jclass that)
260
260
{
261
 
        jint rc = 0;
 
261
        jintLong rc = 0;
262
262
        Cairo_NATIVE_ENTER(env, that, _1cairo_1font_1options_1create_FUNC);
263
 
        rc = (jint)cairo_font_options_create();
 
263
        rc = (jintLong)cairo_font_options_create();
264
264
        Cairo_NATIVE_EXIT(env, that, _1cairo_1font_1options_1create_FUNC);
265
265
        return rc;
266
266
}
268
268
 
269
269
#ifndef NO__1cairo_1font_1options_1destroy
270
270
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1font_1options_1destroy)
271
 
        (JNIEnv *env, jclass that, jint arg0)
 
271
        (JNIEnv *env, jclass that, jintLong arg0)
272
272
{
273
273
        Cairo_NATIVE_ENTER(env, that, _1cairo_1font_1options_1destroy_FUNC);
274
274
        cairo_font_options_destroy((cairo_font_options_t *)arg0);
278
278
 
279
279
#ifndef NO__1cairo_1font_1options_1get_1antialias
280
280
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1font_1options_1get_1antialias)
281
 
        (JNIEnv *env, jclass that, jint arg0)
 
281
        (JNIEnv *env, jclass that, jintLong arg0)
282
282
{
283
283
        jint rc = 0;
284
284
        Cairo_NATIVE_ENTER(env, that, _1cairo_1font_1options_1get_1antialias_FUNC);
290
290
 
291
291
#ifndef NO__1cairo_1font_1options_1set_1antialias
292
292
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1font_1options_1set_1antialias)
293
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1)
 
293
        (JNIEnv *env, jclass that, jintLong arg0, jint arg1)
294
294
{
295
295
        Cairo_NATIVE_ENTER(env, that, _1cairo_1font_1options_1set_1antialias_FUNC);
296
296
        cairo_font_options_set_antialias((cairo_font_options_t *)arg0, arg1);
300
300
 
301
301
#ifndef NO__1cairo_1get_1antialias
302
302
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1get_1antialias)
303
 
        (JNIEnv *env, jclass that, jint arg0)
 
303
        (JNIEnv *env, jclass that, jintLong arg0)
304
304
{
305
305
        jint rc = 0;
306
306
        Cairo_NATIVE_ENTER(env, that, _1cairo_1get_1antialias_FUNC);
312
312
 
313
313
#ifndef NO__1cairo_1get_1current_1point
314
314
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1get_1current_1point)
315
 
        (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2)
 
315
        (JNIEnv *env, jclass that, jintLong arg0, jdoubleArray arg1, jdoubleArray arg2)
316
316
{
317
317
        jdouble *lparg1=NULL;
318
318
        jdouble *lparg2=NULL;
329
329
 
330
330
#ifndef NO__1cairo_1get_1fill_1rule
331
331
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1get_1fill_1rule)
332
 
        (JNIEnv *env, jclass that, jint arg0)
 
332
        (JNIEnv *env, jclass that, jintLong arg0)
333
333
{
334
334
        jint rc = 0;
335
335
        Cairo_NATIVE_ENTER(env, that, _1cairo_1get_1fill_1rule_FUNC);
340
340
#endif
341
341
 
342
342
#ifndef NO__1cairo_1get_1font_1face
343
 
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1get_1font_1face)
344
 
        (JNIEnv *env, jclass that, jint arg0)
 
343
JNIEXPORT jintLong JNICALL Cairo_NATIVE(_1cairo_1get_1font_1face)
 
344
        (JNIEnv *env, jclass that, jintLong arg0)
345
345
{
346
 
        jint rc = 0;
 
346
        jintLong rc = 0;
347
347
        Cairo_NATIVE_ENTER(env, that, _1cairo_1get_1font_1face_FUNC);
348
 
        rc = (jint)cairo_get_font_face((cairo_t *)arg0);
 
348
        rc = (jintLong)cairo_get_font_face((cairo_t *)arg0);
349
349
        Cairo_NATIVE_EXIT(env, that, _1cairo_1get_1font_1face_FUNC);
350
350
        return rc;
351
351
}
353
353
 
354
354
#ifndef NO__1cairo_1get_1font_1matrix
355
355
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1get_1font_1matrix)
356
 
        (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1)
 
356
        (JNIEnv *env, jclass that, jintLong arg0, jdoubleArray arg1)
357
357
{
358
358
        jdouble *lparg1=NULL;
359
359
        Cairo_NATIVE_ENTER(env, that, _1cairo_1get_1font_1matrix_FUNC);
367
367
 
368
368
#ifndef NO__1cairo_1get_1font_1options
369
369
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1get_1font_1options)
370
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1)
 
370
        (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1)
371
371
{
372
372
        Cairo_NATIVE_ENTER(env, that, _1cairo_1get_1font_1options_FUNC);
373
373
        cairo_get_font_options((cairo_t *)arg0, (cairo_font_options_t *)arg1);
377
377
 
378
378
#ifndef NO__1cairo_1get_1line_1cap
379
379
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1get_1line_1cap)
380
 
        (JNIEnv *env, jclass that, jint arg0)
 
380
        (JNIEnv *env, jclass that, jintLong arg0)
381
381
{
382
382
        jint rc = 0;
383
383
        Cairo_NATIVE_ENTER(env, that, _1cairo_1get_1line_1cap_FUNC);
389
389
 
390
390
#ifndef NO__1cairo_1get_1line_1join
391
391
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1get_1line_1join)
392
 
        (JNIEnv *env, jclass that, jint arg0)
 
392
        (JNIEnv *env, jclass that, jintLong arg0)
393
393
{
394
394
        jint rc = 0;
395
395
        Cairo_NATIVE_ENTER(env, that, _1cairo_1get_1line_1join_FUNC);
401
401
 
402
402
#ifndef NO__1cairo_1get_1line_1width
403
403
JNIEXPORT jdouble JNICALL Cairo_NATIVE(_1cairo_1get_1line_1width)
404
 
        (JNIEnv *env, jclass that, jint arg0)
 
404
        (JNIEnv *env, jclass that, jintLong arg0)
405
405
{
406
406
        jdouble rc = 0;
407
407
        Cairo_NATIVE_ENTER(env, that, _1cairo_1get_1line_1width_FUNC);
413
413
 
414
414
#ifndef NO__1cairo_1get_1matrix
415
415
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1get_1matrix)
416
 
        (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1)
 
416
        (JNIEnv *env, jclass that, jintLong arg0, jdoubleArray arg1)
417
417
{
418
418
        jdouble *lparg1=NULL;
419
419
        Cairo_NATIVE_ENTER(env, that, _1cairo_1get_1matrix_FUNC);
427
427
 
428
428
#ifndef NO__1cairo_1get_1miter_1limit
429
429
JNIEXPORT jdouble JNICALL Cairo_NATIVE(_1cairo_1get_1miter_1limit)
430
 
        (JNIEnv *env, jclass that, jint arg0)
 
430
        (JNIEnv *env, jclass that, jintLong arg0)
431
431
{
432
432
        jdouble rc = 0;
433
433
        Cairo_NATIVE_ENTER(env, that, _1cairo_1get_1miter_1limit_FUNC);
439
439
 
440
440
#ifndef NO__1cairo_1get_1operator
441
441
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1get_1operator)
442
 
        (JNIEnv *env, jclass that, jint arg0)
 
442
        (JNIEnv *env, jclass that, jintLong arg0)
443
443
{
444
444
        jint rc = 0;
445
445
        Cairo_NATIVE_ENTER(env, that, _1cairo_1get_1operator_FUNC);
450
450
#endif
451
451
 
452
452
#ifndef NO__1cairo_1get_1source
453
 
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1get_1source)
454
 
        (JNIEnv *env, jclass that, jint arg0)
 
453
JNIEXPORT jintLong JNICALL Cairo_NATIVE(_1cairo_1get_1source)
 
454
        (JNIEnv *env, jclass that, jintLong arg0)
455
455
{
456
 
        jint rc = 0;
 
456
        jintLong rc = 0;
457
457
        Cairo_NATIVE_ENTER(env, that, _1cairo_1get_1source_FUNC);
458
 
        rc = (jint)cairo_get_source((cairo_t *)arg0);
 
458
        rc = (jintLong)cairo_get_source((cairo_t *)arg0);
459
459
        Cairo_NATIVE_EXIT(env, that, _1cairo_1get_1source_FUNC);
460
460
        return rc;
461
461
}
462
462
#endif
463
463
 
464
464
#ifndef NO__1cairo_1get_1target
465
 
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1get_1target)
466
 
        (JNIEnv *env, jclass that, jint arg0)
 
465
JNIEXPORT jintLong JNICALL Cairo_NATIVE(_1cairo_1get_1target)
 
466
        (JNIEnv *env, jclass that, jintLong arg0)
467
467
{
468
 
        jint rc = 0;
 
468
        jintLong rc = 0;
469
469
        Cairo_NATIVE_ENTER(env, that, _1cairo_1get_1target_FUNC);
470
 
        rc = (jint)cairo_get_target((cairo_t *)arg0);
 
470
        rc = (jintLong)cairo_get_target((cairo_t *)arg0);
471
471
        Cairo_NATIVE_EXIT(env, that, _1cairo_1get_1target_FUNC);
472
472
        return rc;
473
473
}
475
475
 
476
476
#ifndef NO__1cairo_1get_1tolerance
477
477
JNIEXPORT jdouble JNICALL Cairo_NATIVE(_1cairo_1get_1tolerance)
478
 
        (JNIEnv *env, jclass that, jint arg0)
 
478
        (JNIEnv *env, jclass that, jintLong arg0)
479
479
{
480
480
        jdouble rc = 0;
481
481
        Cairo_NATIVE_ENTER(env, that, _1cairo_1get_1tolerance_FUNC);
487
487
 
488
488
#ifndef NO__1cairo_1glyph_1extents
489
489
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1glyph_1extents)
490
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
 
490
        (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jint arg2, jintLong arg3)
491
491
{
492
492
        Cairo_NATIVE_ENTER(env, that, _1cairo_1glyph_1extents_FUNC);
493
493
        cairo_glyph_extents((cairo_t *)arg0, (cairo_glyph_t *)arg1, arg2, (cairo_text_extents_t *)arg3);
497
497
 
498
498
#ifndef NO__1cairo_1glyph_1path
499
499
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1glyph_1path)
500
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
 
500
        (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jint arg2)
501
501
{
502
502
        Cairo_NATIVE_ENTER(env, that, _1cairo_1glyph_1path_FUNC);
503
503
        cairo_glyph_path((cairo_t *)arg0, (cairo_glyph_t *)arg1, arg2);
507
507
 
508
508
#ifndef NO__1cairo_1identity_1matrix
509
509
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1identity_1matrix)
510
 
        (JNIEnv *env, jclass that, jint arg0)
 
510
        (JNIEnv *env, jclass that, jintLong arg0)
511
511
{
512
512
        Cairo_NATIVE_ENTER(env, that, _1cairo_1identity_1matrix_FUNC);
513
513
        cairo_identity_matrix((cairo_t *)arg0);
516
516
#endif
517
517
 
518
518
#ifndef NO__1cairo_1image_1surface_1create
519
 
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1image_1surface_1create)
 
519
JNIEXPORT jintLong JNICALL Cairo_NATIVE(_1cairo_1image_1surface_1create)
520
520
        (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
521
521
{
522
 
        jint rc = 0;
 
522
        jintLong rc = 0;
523
523
        Cairo_NATIVE_ENTER(env, that, _1cairo_1image_1surface_1create_FUNC);
524
 
        rc = (jint)cairo_image_surface_create(arg0, arg1, arg2);
 
524
        rc = (jintLong)cairo_image_surface_create(arg0, arg1, arg2);
525
525
        Cairo_NATIVE_EXIT(env, that, _1cairo_1image_1surface_1create_FUNC);
526
526
        return rc;
527
527
}
528
528
#endif
529
529
 
530
530
#ifndef NO__1cairo_1image_1surface_1create_1for_1data
531
 
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1image_1surface_1create_1for_1data)
532
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
 
531
JNIEXPORT jintLong JNICALL Cairo_NATIVE(_1cairo_1image_1surface_1create_1for_1data)
 
532
        (JNIEnv *env, jclass that, jintLong arg0, jint arg1, jint arg2, jint arg3, jint arg4)
533
533
{
534
 
        jint rc = 0;
 
534
        jintLong rc = 0;
535
535
        Cairo_NATIVE_ENTER(env, that, _1cairo_1image_1surface_1create_1for_1data_FUNC);
536
 
        rc = (jint)cairo_image_surface_create_for_data((unsigned char *)arg0, arg1, arg2, arg3, arg4);
 
536
        rc = (jintLong)cairo_image_surface_create_for_data((unsigned char *)arg0, arg1, arg2, arg3, arg4);
537
537
        Cairo_NATIVE_EXIT(env, that, _1cairo_1image_1surface_1create_1for_1data_FUNC);
538
538
        return rc;
539
539
}
541
541
 
542
542
#ifndef NO__1cairo_1image_1surface_1get_1height
543
543
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1image_1surface_1get_1height)
544
 
        (JNIEnv *env, jclass that, jint arg0)
 
544
        (JNIEnv *env, jclass that, jintLong arg0)
545
545
{
546
546
        jint rc = 0;
547
547
        Cairo_NATIVE_ENTER(env, that, _1cairo_1image_1surface_1get_1height_FUNC);
553
553
 
554
554
#ifndef NO__1cairo_1image_1surface_1get_1width
555
555
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1image_1surface_1get_1width)
556
 
        (JNIEnv *env, jclass that, jint arg0)
 
556
        (JNIEnv *env, jclass that, jintLong arg0)
557
557
{
558
558
        jint rc = 0;
559
559
        Cairo_NATIVE_ENTER(env, that, _1cairo_1image_1surface_1get_1width_FUNC);
565
565
 
566
566
#ifndef NO__1cairo_1in_1fill
567
567
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1in_1fill)
568
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
 
568
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2)
569
569
{
570
570
        jint rc = 0;
571
571
        Cairo_NATIVE_ENTER(env, that, _1cairo_1in_1fill_FUNC);
577
577
 
578
578
#ifndef NO__1cairo_1in_1stroke
579
579
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1in_1stroke)
580
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
 
580
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2)
581
581
{
582
582
        jint rc = 0;
583
583
        Cairo_NATIVE_ENTER(env, that, _1cairo_1in_1stroke_FUNC);
589
589
 
590
590
#ifndef NO__1cairo_1line_1to
591
591
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1line_1to)
592
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
 
592
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2)
593
593
{
594
594
        Cairo_NATIVE_ENTER(env, that, _1cairo_1line_1to_FUNC);
595
595
        cairo_line_to((cairo_t *)arg0, arg1, arg2);
599
599
 
600
600
#ifndef NO__1cairo_1mask
601
601
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1mask)
602
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1)
 
602
        (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1)
603
603
{
604
604
        Cairo_NATIVE_ENTER(env, that, _1cairo_1mask_FUNC);
605
605
        cairo_mask((cairo_t *)arg0, (cairo_pattern_t *)arg1);
609
609
 
610
610
#ifndef NO__1cairo_1mask_1surface
611
611
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1mask_1surface)
612
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1, jdouble arg2, jdouble arg3)
 
612
        (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jdouble arg2, jdouble arg3)
613
613
{
614
614
        Cairo_NATIVE_ENTER(env, that, _1cairo_1mask_1surface_FUNC);
615
615
        cairo_mask_surface((cairo_t *)arg0, (cairo_surface_t *)arg1, arg2, arg3);
807
807
 
808
808
#ifndef NO__1cairo_1move_1to
809
809
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1move_1to)
810
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
 
810
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2)
811
811
{
812
812
        Cairo_NATIVE_ENTER(env, that, _1cairo_1move_1to_FUNC);
813
813
        cairo_move_to((cairo_t *)arg0, arg1, arg2);
817
817
 
818
818
#ifndef NO__1cairo_1new_1path
819
819
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1new_1path)
820
 
        (JNIEnv *env, jclass that, jint arg0)
 
820
        (JNIEnv *env, jclass that, jintLong arg0)
821
821
{
822
822
        Cairo_NATIVE_ENTER(env, that, _1cairo_1new_1path_FUNC);
823
823
        cairo_new_path((cairo_t *)arg0);
827
827
 
828
828
#ifndef NO__1cairo_1paint
829
829
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1paint)
830
 
        (JNIEnv *env, jclass that, jint arg0)
 
830
        (JNIEnv *env, jclass that, jintLong arg0)
831
831
{
832
832
        Cairo_NATIVE_ENTER(env, that, _1cairo_1paint_FUNC);
833
833
        cairo_paint((cairo_t *)arg0);
837
837
 
838
838
#ifndef NO__1cairo_1paint_1with_1alpha
839
839
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1paint_1with_1alpha)
840
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1)
 
840
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1)
841
841
{
842
842
        Cairo_NATIVE_ENTER(env, that, _1cairo_1paint_1with_1alpha_FUNC);
843
843
        cairo_paint_with_alpha((cairo_t *)arg0, arg1);
847
847
 
848
848
#ifndef NO__1cairo_1path_1destroy
849
849
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1path_1destroy)
850
 
        (JNIEnv *env, jclass that, jint arg0)
 
850
        (JNIEnv *env, jclass that, jintLong arg0)
851
851
{
852
852
        Cairo_NATIVE_ENTER(env, that, _1cairo_1path_1destroy_FUNC);
853
853
        cairo_path_destroy((cairo_path_t *)arg0);
857
857
 
858
858
#ifndef NO__1cairo_1pattern_1add_1color_1stop_1rgb
859
859
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1pattern_1add_1color_1stop_1rgb)
860
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4)
 
860
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4)
861
861
{
862
862
        Cairo_NATIVE_ENTER(env, that, _1cairo_1pattern_1add_1color_1stop_1rgb_FUNC);
863
863
        cairo_pattern_add_color_stop_rgb((cairo_pattern_t *)arg0, arg1, arg2, arg3, arg4);
867
867
 
868
868
#ifndef NO__1cairo_1pattern_1add_1color_1stop_1rgba
869
869
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1pattern_1add_1color_1stop_1rgba)
870
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5)
 
870
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5)
871
871
{
872
872
        Cairo_NATIVE_ENTER(env, that, _1cairo_1pattern_1add_1color_1stop_1rgba_FUNC);
873
873
        cairo_pattern_add_color_stop_rgba((cairo_pattern_t *)arg0, arg1, arg2, arg3, arg4, arg5);
876
876
#endif
877
877
 
878
878
#ifndef NO__1cairo_1pattern_1create_1for_1surface
879
 
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1pattern_1create_1for_1surface)
880
 
        (JNIEnv *env, jclass that, jint arg0)
 
879
JNIEXPORT jintLong JNICALL Cairo_NATIVE(_1cairo_1pattern_1create_1for_1surface)
 
880
        (JNIEnv *env, jclass that, jintLong arg0)
881
881
{
882
 
        jint rc = 0;
 
882
        jintLong rc = 0;
883
883
        Cairo_NATIVE_ENTER(env, that, _1cairo_1pattern_1create_1for_1surface_FUNC);
884
 
        rc = (jint)cairo_pattern_create_for_surface((cairo_surface_t *)arg0);
 
884
        rc = (jintLong)cairo_pattern_create_for_surface((cairo_surface_t *)arg0);
885
885
        Cairo_NATIVE_EXIT(env, that, _1cairo_1pattern_1create_1for_1surface_FUNC);
886
886
        return rc;
887
887
}
888
888
#endif
889
889
 
890
890
#ifndef NO__1cairo_1pattern_1create_1linear
891
 
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1pattern_1create_1linear)
 
891
JNIEXPORT jintLong JNICALL Cairo_NATIVE(_1cairo_1pattern_1create_1linear)
892
892
        (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2, jdouble arg3)
893
893
{
894
 
        jint rc = 0;
 
894
        jintLong rc = 0;
895
895
        Cairo_NATIVE_ENTER(env, that, _1cairo_1pattern_1create_1linear_FUNC);
896
 
        rc = (jint)cairo_pattern_create_linear(arg0, arg1, arg2, arg3);
 
896
        rc = (jintLong)cairo_pattern_create_linear(arg0, arg1, arg2, arg3);
897
897
        Cairo_NATIVE_EXIT(env, that, _1cairo_1pattern_1create_1linear_FUNC);
898
898
        return rc;
899
899
}
900
900
#endif
901
901
 
902
902
#ifndef NO__1cairo_1pattern_1create_1radial
903
 
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1pattern_1create_1radial)
 
903
JNIEXPORT jintLong JNICALL Cairo_NATIVE(_1cairo_1pattern_1create_1radial)
904
904
        (JNIEnv *env, jclass that, jdouble arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5)
905
905
{
906
 
        jint rc = 0;
 
906
        jintLong rc = 0;
907
907
        Cairo_NATIVE_ENTER(env, that, _1cairo_1pattern_1create_1radial_FUNC);
908
 
        rc = (jint)cairo_pattern_create_radial(arg0, arg1, arg2, arg3, arg4, arg5);
 
908
        rc = (jintLong)cairo_pattern_create_radial(arg0, arg1, arg2, arg3, arg4, arg5);
909
909
        Cairo_NATIVE_EXIT(env, that, _1cairo_1pattern_1create_1radial_FUNC);
910
910
        return rc;
911
911
}
913
913
 
914
914
#ifndef NO__1cairo_1pattern_1destroy
915
915
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1pattern_1destroy)
916
 
        (JNIEnv *env, jclass that, jint arg0)
 
916
        (JNIEnv *env, jclass that, jintLong arg0)
917
917
{
918
918
        Cairo_NATIVE_ENTER(env, that, _1cairo_1pattern_1destroy_FUNC);
919
919
        cairo_pattern_destroy((cairo_pattern_t *)arg0);
923
923
 
924
924
#ifndef NO__1cairo_1pattern_1get_1extend
925
925
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1pattern_1get_1extend)
926
 
        (JNIEnv *env, jclass that, jint arg0)
 
926
        (JNIEnv *env, jclass that, jintLong arg0)
927
927
{
928
928
        jint rc = 0;
929
929
        Cairo_NATIVE_ENTER(env, that, _1cairo_1pattern_1get_1extend_FUNC);
935
935
 
936
936
#ifndef NO__1cairo_1pattern_1get_1filter
937
937
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1pattern_1get_1filter)
938
 
        (JNIEnv *env, jclass that, jint arg0)
 
938
        (JNIEnv *env, jclass that, jintLong arg0)
939
939
{
940
940
        jint rc = 0;
941
941
        Cairo_NATIVE_ENTER(env, that, _1cairo_1pattern_1get_1filter_FUNC);
947
947
 
948
948
#ifndef NO__1cairo_1pattern_1get_1matrix
949
949
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1pattern_1get_1matrix)
950
 
        (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1)
 
950
        (JNIEnv *env, jclass that, jintLong arg0, jdoubleArray arg1)
951
951
{
952
952
        jdouble *lparg1=NULL;
953
953
        Cairo_NATIVE_ENTER(env, that, _1cairo_1pattern_1get_1matrix_FUNC);
961
961
 
962
962
#ifndef NO__1cairo_1pattern_1reference
963
963
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1pattern_1reference)
964
 
        (JNIEnv *env, jclass that, jint arg0)
 
964
        (JNIEnv *env, jclass that, jintLong arg0)
965
965
{
966
966
        Cairo_NATIVE_ENTER(env, that, _1cairo_1pattern_1reference_FUNC);
967
967
        cairo_pattern_reference((cairo_pattern_t *)arg0);
971
971
 
972
972
#ifndef NO__1cairo_1pattern_1set_1extend
973
973
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1pattern_1set_1extend)
974
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1)
 
974
        (JNIEnv *env, jclass that, jintLong arg0, jint arg1)
975
975
{
976
976
        Cairo_NATIVE_ENTER(env, that, _1cairo_1pattern_1set_1extend_FUNC);
977
977
        cairo_pattern_set_extend((cairo_pattern_t *)arg0, arg1);
981
981
 
982
982
#ifndef NO__1cairo_1pattern_1set_1filter
983
983
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1pattern_1set_1filter)
984
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1)
 
984
        (JNIEnv *env, jclass that, jintLong arg0, jint arg1)
985
985
{
986
986
        Cairo_NATIVE_ENTER(env, that, _1cairo_1pattern_1set_1filter_FUNC);
987
987
        cairo_pattern_set_filter((cairo_pattern_t *)arg0, arg1);
991
991
 
992
992
#ifndef NO__1cairo_1pattern_1set_1matrix
993
993
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1pattern_1set_1matrix)
994
 
        (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1)
 
994
        (JNIEnv *env, jclass that, jintLong arg0, jdoubleArray arg1)
995
995
{
996
996
        jdouble *lparg1=NULL;
997
997
        Cairo_NATIVE_ENTER(env, that, _1cairo_1pattern_1set_1matrix_FUNC);
1005
1005
 
1006
1006
#ifndef NO__1cairo_1pdf_1surface_1set_1size
1007
1007
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1pdf_1surface_1set_1size)
1008
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
 
1008
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2)
1009
1009
{
1010
1010
        Cairo_NATIVE_ENTER(env, that, _1cairo_1pdf_1surface_1set_1size_FUNC);
1011
1011
/*
1012
1012
        cairo_pdf_surface_set_size((cairo_surface_t *)arg0, arg1, arg2);
1013
1013
*/
1014
1014
        {
1015
 
                static int initialized = 0;
1016
 
                static void *handle = NULL;
1017
 
                typedef void (*FPTR)(cairo_surface_t *, jdouble, jdouble);
1018
 
                static FPTR fptr;
1019
 
                if (!initialized) {
1020
 
                        if (!handle) handle = dlopen(cairo_pdf_surface_set_size_LIB, RTLD_LAZY);
1021
 
                        if (handle) fptr = (FPTR)dlsym(handle, "cairo_pdf_surface_set_size");
1022
 
                        initialized = 1;
1023
 
                }
1024
 
                if (fptr) {
1025
 
                        (*fptr)((cairo_surface_t *)arg0, arg1, arg2);
 
1015
                LOAD_FUNCTION(fp, cairo_pdf_surface_set_size)
 
1016
                if (fp) {
 
1017
                        ((void (CALLING_CONVENTION*)(cairo_surface_t *, jdouble, jdouble))fp)((cairo_surface_t *)arg0, arg1, arg2);
1026
1018
                }
1027
1019
        }
1028
1020
        Cairo_NATIVE_EXIT(env, that, _1cairo_1pdf_1surface_1set_1size_FUNC);
1031
1023
 
1032
1024
#ifndef NO__1cairo_1ps_1surface_1set_1size
1033
1025
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1ps_1surface_1set_1size)
1034
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
 
1026
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2)
1035
1027
{
1036
1028
        Cairo_NATIVE_ENTER(env, that, _1cairo_1ps_1surface_1set_1size_FUNC);
1037
1029
/*
1038
1030
        cairo_ps_surface_set_size((cairo_surface_t *)arg0, arg1, arg2);
1039
1031
*/
1040
1032
        {
1041
 
                static int initialized = 0;
1042
 
                static void *handle = NULL;
1043
 
                typedef void (*FPTR)(cairo_surface_t *, jdouble, jdouble);
1044
 
                static FPTR fptr;
1045
 
                if (!initialized) {
1046
 
                        if (!handle) handle = dlopen(cairo_ps_surface_set_size_LIB, RTLD_LAZY);
1047
 
                        if (handle) fptr = (FPTR)dlsym(handle, "cairo_ps_surface_set_size");
1048
 
                        initialized = 1;
1049
 
                }
1050
 
                if (fptr) {
1051
 
                        (*fptr)((cairo_surface_t *)arg0, arg1, arg2);
 
1033
                LOAD_FUNCTION(fp, cairo_ps_surface_set_size)
 
1034
                if (fp) {
 
1035
                        ((void (CALLING_CONVENTION*)(cairo_surface_t *, jdouble, jdouble))fp)((cairo_surface_t *)arg0, arg1, arg2);
1052
1036
                }
1053
1037
        }
1054
1038
        Cairo_NATIVE_EXIT(env, that, _1cairo_1ps_1surface_1set_1size_FUNC);
1057
1041
 
1058
1042
#ifndef NO__1cairo_1rectangle
1059
1043
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1rectangle)
1060
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4)
 
1044
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4)
1061
1045
{
1062
1046
        Cairo_NATIVE_ENTER(env, that, _1cairo_1rectangle_FUNC);
1063
1047
        cairo_rectangle((cairo_t *)arg0, arg1, arg2, arg3, arg4);
1066
1050
#endif
1067
1051
 
1068
1052
#ifndef NO__1cairo_1reference
1069
 
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1reference)
1070
 
        (JNIEnv *env, jclass that, jint arg0)
 
1053
JNIEXPORT jintLong JNICALL Cairo_NATIVE(_1cairo_1reference)
 
1054
        (JNIEnv *env, jclass that, jintLong arg0)
1071
1055
{
1072
 
        jint rc = 0;
 
1056
        jintLong rc = 0;
1073
1057
        Cairo_NATIVE_ENTER(env, that, _1cairo_1reference_FUNC);
1074
 
        rc = (jint)cairo_reference((cairo_t *)arg0);
 
1058
        rc = (jintLong)cairo_reference((cairo_t *)arg0);
1075
1059
        Cairo_NATIVE_EXIT(env, that, _1cairo_1reference_FUNC);
1076
1060
        return rc;
1077
1061
}
1079
1063
 
1080
1064
#ifndef NO__1cairo_1rel_1curve_1to
1081
1065
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1rel_1curve_1to)
1082
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5, jdouble arg6)
 
1066
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4, jdouble arg5, jdouble arg6)
1083
1067
{
1084
1068
        Cairo_NATIVE_ENTER(env, that, _1cairo_1rel_1curve_1to_FUNC);
1085
1069
        cairo_rel_curve_to((cairo_t *)arg0, arg1, arg2, arg3, arg4, arg5, arg6);
1089
1073
 
1090
1074
#ifndef NO__1cairo_1rel_1line_1to
1091
1075
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1rel_1line_1to)
1092
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
 
1076
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2)
1093
1077
{
1094
1078
        Cairo_NATIVE_ENTER(env, that, _1cairo_1rel_1line_1to_FUNC);
1095
1079
        cairo_rel_line_to((cairo_t *)arg0, arg1, arg2);
1099
1083
 
1100
1084
#ifndef NO__1cairo_1rel_1move_1to
1101
1085
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1rel_1move_1to)
1102
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
 
1086
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2)
1103
1087
{
1104
1088
        Cairo_NATIVE_ENTER(env, that, _1cairo_1rel_1move_1to_FUNC);
1105
1089
        cairo_rel_move_to((cairo_t *)arg0, arg1, arg2);
1109
1093
 
1110
1094
#ifndef NO__1cairo_1reset_1clip
1111
1095
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1reset_1clip)
1112
 
        (JNIEnv *env, jclass that, jint arg0)
 
1096
        (JNIEnv *env, jclass that, jintLong arg0)
1113
1097
{
1114
1098
        Cairo_NATIVE_ENTER(env, that, _1cairo_1reset_1clip_FUNC);
1115
1099
        cairo_reset_clip((cairo_t *)arg0);
1119
1103
 
1120
1104
#ifndef NO__1cairo_1restore
1121
1105
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1restore)
1122
 
        (JNIEnv *env, jclass that, jint arg0)
 
1106
        (JNIEnv *env, jclass that, jintLong arg0)
1123
1107
{
1124
1108
        Cairo_NATIVE_ENTER(env, that, _1cairo_1restore_FUNC);
1125
1109
        cairo_restore((cairo_t *)arg0);
1129
1113
 
1130
1114
#ifndef NO__1cairo_1rotate
1131
1115
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1rotate)
1132
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1)
 
1116
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1)
1133
1117
{
1134
1118
        Cairo_NATIVE_ENTER(env, that, _1cairo_1rotate_FUNC);
1135
1119
        cairo_rotate((cairo_t *)arg0, arg1);
1139
1123
 
1140
1124
#ifndef NO__1cairo_1save
1141
1125
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1save)
1142
 
        (JNIEnv *env, jclass that, jint arg0)
 
1126
        (JNIEnv *env, jclass that, jintLong arg0)
1143
1127
{
1144
1128
        Cairo_NATIVE_ENTER(env, that, _1cairo_1save_FUNC);
1145
1129
        cairo_save((cairo_t *)arg0);
1149
1133
 
1150
1134
#ifndef NO__1cairo_1scale
1151
1135
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1scale)
1152
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
 
1136
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2)
1153
1137
{
1154
1138
        Cairo_NATIVE_ENTER(env, that, _1cairo_1scale_FUNC);
1155
1139
        cairo_scale((cairo_t *)arg0, arg1, arg2);
1159
1143
 
1160
1144
#ifndef NO__1cairo_1select_1font_1face
1161
1145
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1select_1font_1face)
1162
 
        (JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jint arg2, jint arg3)
 
1146
        (JNIEnv *env, jclass that, jintLong arg0, jbyteArray arg1, jint arg2, jint arg3)
1163
1147
{
1164
1148
        jbyte *lparg1=NULL;
1165
1149
        Cairo_NATIVE_ENTER(env, that, _1cairo_1select_1font_1face_FUNC);
1173
1157
 
1174
1158
#ifndef NO__1cairo_1set_1antialias
1175
1159
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1set_1antialias)
1176
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1)
 
1160
        (JNIEnv *env, jclass that, jintLong arg0, jint arg1)
1177
1161
{
1178
1162
        Cairo_NATIVE_ENTER(env, that, _1cairo_1set_1antialias_FUNC);
1179
1163
        cairo_set_antialias((cairo_t *)arg0, arg1);
1183
1167
 
1184
1168
#ifndef NO__1cairo_1set_1dash
1185
1169
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1set_1dash)
1186
 
        (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jint arg2, jdouble arg3)
 
1170
        (JNIEnv *env, jclass that, jintLong arg0, jdoubleArray arg1, jint arg2, jdouble arg3)
1187
1171
{
1188
1172
        jdouble *lparg1=NULL;
1189
1173
        Cairo_NATIVE_ENTER(env, that, _1cairo_1set_1dash_FUNC);
1197
1181
 
1198
1182
#ifndef NO__1cairo_1set_1fill_1rule
1199
1183
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1set_1fill_1rule)
1200
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1)
 
1184
        (JNIEnv *env, jclass that, jintLong arg0, jint arg1)
1201
1185
{
1202
1186
        Cairo_NATIVE_ENTER(env, that, _1cairo_1set_1fill_1rule_FUNC);
1203
1187
        cairo_set_fill_rule((cairo_t *)arg0, arg1);
1207
1191
 
1208
1192
#ifndef NO__1cairo_1set_1font_1face
1209
1193
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1set_1font_1face)
1210
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1)
 
1194
        (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1)
1211
1195
{
1212
1196
        Cairo_NATIVE_ENTER(env, that, _1cairo_1set_1font_1face_FUNC);
1213
1197
        cairo_set_font_face((cairo_t *)arg0, (cairo_font_face_t *)arg1);
1217
1201
 
1218
1202
#ifndef NO__1cairo_1set_1font_1matrix
1219
1203
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1set_1font_1matrix)
1220
 
        (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1)
 
1204
        (JNIEnv *env, jclass that, jintLong arg0, jdoubleArray arg1)
1221
1205
{
1222
1206
        jdouble *lparg1=NULL;
1223
1207
        Cairo_NATIVE_ENTER(env, that, _1cairo_1set_1font_1matrix_FUNC);
1231
1215
 
1232
1216
#ifndef NO__1cairo_1set_1font_1options
1233
1217
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1set_1font_1options)
1234
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1)
 
1218
        (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1)
1235
1219
{
1236
1220
        Cairo_NATIVE_ENTER(env, that, _1cairo_1set_1font_1options_FUNC);
1237
1221
        cairo_set_font_options((cairo_t *)arg0, (cairo_font_options_t *)arg1);
1241
1225
 
1242
1226
#ifndef NO__1cairo_1set_1font_1size
1243
1227
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1set_1font_1size)
1244
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1)
 
1228
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1)
1245
1229
{
1246
1230
        Cairo_NATIVE_ENTER(env, that, _1cairo_1set_1font_1size_FUNC);
1247
1231
        cairo_set_font_size((cairo_t *)arg0, arg1);
1251
1235
 
1252
1236
#ifndef NO__1cairo_1set_1line_1cap
1253
1237
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1set_1line_1cap)
1254
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1)
 
1238
        (JNIEnv *env, jclass that, jintLong arg0, jint arg1)
1255
1239
{
1256
1240
        Cairo_NATIVE_ENTER(env, that, _1cairo_1set_1line_1cap_FUNC);
1257
1241
        cairo_set_line_cap((cairo_t *)arg0, arg1);
1261
1245
 
1262
1246
#ifndef NO__1cairo_1set_1line_1join
1263
1247
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1set_1line_1join)
1264
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1)
 
1248
        (JNIEnv *env, jclass that, jintLong arg0, jint arg1)
1265
1249
{
1266
1250
        Cairo_NATIVE_ENTER(env, that, _1cairo_1set_1line_1join_FUNC);
1267
1251
        cairo_set_line_join((cairo_t *)arg0, arg1);
1271
1255
 
1272
1256
#ifndef NO__1cairo_1set_1line_1width
1273
1257
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1set_1line_1width)
1274
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1)
 
1258
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1)
1275
1259
{
1276
1260
        Cairo_NATIVE_ENTER(env, that, _1cairo_1set_1line_1width_FUNC);
1277
1261
        cairo_set_line_width((cairo_t *)arg0, arg1);
1281
1265
 
1282
1266
#ifndef NO__1cairo_1set_1matrix
1283
1267
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1set_1matrix)
1284
 
        (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1)
 
1268
        (JNIEnv *env, jclass that, jintLong arg0, jdoubleArray arg1)
1285
1269
{
1286
1270
        jdouble *lparg1=NULL;
1287
1271
        Cairo_NATIVE_ENTER(env, that, _1cairo_1set_1matrix_FUNC);
1295
1279
 
1296
1280
#ifndef NO__1cairo_1set_1miter_1limit
1297
1281
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1set_1miter_1limit)
1298
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1)
 
1282
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1)
1299
1283
{
1300
1284
        Cairo_NATIVE_ENTER(env, that, _1cairo_1set_1miter_1limit_FUNC);
1301
1285
        cairo_set_miter_limit((cairo_t *)arg0, arg1);
1305
1289
 
1306
1290
#ifndef NO__1cairo_1set_1operator
1307
1291
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1set_1operator)
1308
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1)
 
1292
        (JNIEnv *env, jclass that, jintLong arg0, jint arg1)
1309
1293
{
1310
1294
        Cairo_NATIVE_ENTER(env, that, _1cairo_1set_1operator_FUNC);
1311
1295
        cairo_set_operator((cairo_t *)arg0, arg1);
1315
1299
 
1316
1300
#ifndef NO__1cairo_1set_1source
1317
1301
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1set_1source)
1318
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1)
 
1302
        (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1)
1319
1303
{
1320
1304
        Cairo_NATIVE_ENTER(env, that, _1cairo_1set_1source_FUNC);
1321
1305
        cairo_set_source((cairo_t *)arg0, (cairo_pattern_t *)arg1);
1325
1309
 
1326
1310
#ifndef NO__1cairo_1set_1source_1rgb
1327
1311
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1set_1source_1rgb)
1328
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jdouble arg3)
 
1312
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2, jdouble arg3)
1329
1313
{
1330
1314
        Cairo_NATIVE_ENTER(env, that, _1cairo_1set_1source_1rgb_FUNC);
1331
1315
        cairo_set_source_rgb((cairo_t *)arg0, arg1, arg2, arg3);
1335
1319
 
1336
1320
#ifndef NO__1cairo_1set_1source_1rgba
1337
1321
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1set_1source_1rgba)
1338
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4)
 
1322
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2, jdouble arg3, jdouble arg4)
1339
1323
{
1340
1324
        Cairo_NATIVE_ENTER(env, that, _1cairo_1set_1source_1rgba_FUNC);
1341
1325
        cairo_set_source_rgba((cairo_t *)arg0, arg1, arg2, arg3, arg4);
1345
1329
 
1346
1330
#ifndef NO__1cairo_1set_1source_1surface
1347
1331
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1set_1source_1surface)
1348
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1, jdouble arg2, jdouble arg3)
 
1332
        (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jdouble arg2, jdouble arg3)
1349
1333
{
1350
1334
        Cairo_NATIVE_ENTER(env, that, _1cairo_1set_1source_1surface_FUNC);
1351
1335
        cairo_set_source_surface((cairo_t *)arg0, (cairo_surface_t *)arg1, arg2, arg3);
1355
1339
 
1356
1340
#ifndef NO__1cairo_1set_1tolerance
1357
1341
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1set_1tolerance)
1358
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1)
 
1342
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1)
1359
1343
{
1360
1344
        Cairo_NATIVE_ENTER(env, that, _1cairo_1set_1tolerance_FUNC);
1361
1345
        cairo_set_tolerance((cairo_t *)arg0, arg1);
1365
1349
 
1366
1350
#ifndef NO__1cairo_1show_1glyphs
1367
1351
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1show_1glyphs)
1368
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
 
1352
        (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jint arg2)
1369
1353
{
1370
1354
        Cairo_NATIVE_ENTER(env, that, _1cairo_1show_1glyphs_FUNC);
1371
1355
        cairo_show_glyphs((cairo_t *)arg0, (cairo_glyph_t *)arg1, arg2);
1375
1359
 
1376
1360
#ifndef NO__1cairo_1show_1page
1377
1361
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1show_1page)
1378
 
        (JNIEnv *env, jclass that, jint arg0)
 
1362
        (JNIEnv *env, jclass that, jintLong arg0)
1379
1363
{
1380
1364
        Cairo_NATIVE_ENTER(env, that, _1cairo_1show_1page_FUNC);
1381
1365
        cairo_show_page((cairo_t *)arg0);
1385
1369
 
1386
1370
#ifndef NO__1cairo_1show_1text
1387
1371
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1show_1text)
1388
 
        (JNIEnv *env, jclass that, jint arg0, jbyteArray arg1)
 
1372
        (JNIEnv *env, jclass that, jintLong arg0, jbyteArray arg1)
1389
1373
{
1390
1374
        jbyte *lparg1=NULL;
1391
1375
        Cairo_NATIVE_ENTER(env, that, _1cairo_1show_1text_FUNC);
1399
1383
 
1400
1384
#ifndef NO__1cairo_1status
1401
1385
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1status)
1402
 
        (JNIEnv *env, jclass that, jint arg0)
 
1386
        (JNIEnv *env, jclass that, jintLong arg0)
1403
1387
{
1404
1388
        jint rc = 0;
1405
1389
        Cairo_NATIVE_ENTER(env, that, _1cairo_1status_FUNC);
1410
1394
#endif
1411
1395
 
1412
1396
#ifndef NO__1cairo_1status_1to_1string
1413
 
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1status_1to_1string)
 
1397
JNIEXPORT jintLong JNICALL Cairo_NATIVE(_1cairo_1status_1to_1string)
1414
1398
        (JNIEnv *env, jclass that, jint arg0)
1415
1399
{
1416
 
        jint rc = 0;
 
1400
        jintLong rc = 0;
1417
1401
        Cairo_NATIVE_ENTER(env, that, _1cairo_1status_1to_1string_FUNC);
1418
 
        rc = (jint)cairo_status_to_string(arg0);
 
1402
        rc = (jintLong)cairo_status_to_string(arg0);
1419
1403
        Cairo_NATIVE_EXIT(env, that, _1cairo_1status_1to_1string_FUNC);
1420
1404
        return rc;
1421
1405
}
1423
1407
 
1424
1408
#ifndef NO__1cairo_1stroke
1425
1409
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1stroke)
1426
 
        (JNIEnv *env, jclass that, jint arg0)
 
1410
        (JNIEnv *env, jclass that, jintLong arg0)
1427
1411
{
1428
1412
        Cairo_NATIVE_ENTER(env, that, _1cairo_1stroke_FUNC);
1429
1413
        cairo_stroke((cairo_t *)arg0);
1433
1417
 
1434
1418
#ifndef NO__1cairo_1stroke_1extents
1435
1419
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1stroke_1extents)
1436
 
        (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2, jdoubleArray arg3, jdoubleArray arg4)
 
1420
        (JNIEnv *env, jclass that, jintLong arg0, jdoubleArray arg1, jdoubleArray arg2, jdoubleArray arg3, jdoubleArray arg4)
1437
1421
{
1438
1422
        jdouble *lparg1=NULL;
1439
1423
        jdouble *lparg2=NULL;
1456
1440
 
1457
1441
#ifndef NO__1cairo_1stroke_1preserve
1458
1442
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1stroke_1preserve)
1459
 
        (JNIEnv *env, jclass that, jint arg0)
 
1443
        (JNIEnv *env, jclass that, jintLong arg0)
1460
1444
{
1461
1445
        Cairo_NATIVE_ENTER(env, that, _1cairo_1stroke_1preserve_FUNC);
1462
1446
        cairo_stroke_preserve((cairo_t *)arg0);
1465
1449
#endif
1466
1450
 
1467
1451
#ifndef NO__1cairo_1surface_1create_1similar
1468
 
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1surface_1create_1similar)
1469
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
 
1452
JNIEXPORT jintLong JNICALL Cairo_NATIVE(_1cairo_1surface_1create_1similar)
 
1453
        (JNIEnv *env, jclass that, jintLong arg0, jint arg1, jint arg2, jint arg3)
1470
1454
{
1471
 
        jint rc = 0;
 
1455
        jintLong rc = 0;
1472
1456
        Cairo_NATIVE_ENTER(env, that, _1cairo_1surface_1create_1similar_FUNC);
1473
 
        rc = (jint)cairo_surface_create_similar((cairo_surface_t *)arg0, arg1, arg2, arg3);
 
1457
        rc = (jintLong)cairo_surface_create_similar((cairo_surface_t *)arg0, arg1, arg2, arg3);
1474
1458
        Cairo_NATIVE_EXIT(env, that, _1cairo_1surface_1create_1similar_FUNC);
1475
1459
        return rc;
1476
1460
}
1478
1462
 
1479
1463
#ifndef NO__1cairo_1surface_1destroy
1480
1464
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1surface_1destroy)
1481
 
        (JNIEnv *env, jclass that, jint arg0)
 
1465
        (JNIEnv *env, jclass that, jintLong arg0)
1482
1466
{
1483
1467
        Cairo_NATIVE_ENTER(env, that, _1cairo_1surface_1destroy_FUNC);
1484
1468
        cairo_surface_destroy((cairo_surface_t *)arg0);
1488
1472
 
1489
1473
#ifndef NO__1cairo_1surface_1finish
1490
1474
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1surface_1finish)
1491
 
        (JNIEnv *env, jclass that, jint arg0)
 
1475
        (JNIEnv *env, jclass that, jintLong arg0)
1492
1476
{
1493
1477
        Cairo_NATIVE_ENTER(env, that, _1cairo_1surface_1finish_FUNC);
1494
1478
        cairo_surface_finish((cairo_surface_t *)arg0);
1498
1482
 
1499
1483
#ifndef NO__1cairo_1surface_1get_1type
1500
1484
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1surface_1get_1type)
1501
 
        (JNIEnv *env, jclass that, jint arg0)
 
1485
        (JNIEnv *env, jclass that, jintLong arg0)
1502
1486
{
1503
1487
        jint rc = 0;
1504
1488
        Cairo_NATIVE_ENTER(env, that, _1cairo_1surface_1get_1type_FUNC);
1506
1490
        rc = (jint)cairo_surface_get_type((cairo_surface_t *)arg0);
1507
1491
*/
1508
1492
        {
1509
 
                static int initialized = 0;
1510
 
                static void *handle = NULL;
1511
 
                typedef jint (*FPTR)(cairo_surface_t *);
1512
 
                static FPTR fptr;
1513
 
                rc = 0;
1514
 
                if (!initialized) {
1515
 
                        if (!handle) handle = dlopen(cairo_surface_get_type_LIB, RTLD_LAZY);
1516
 
                        if (handle) fptr = (FPTR)dlsym(handle, "cairo_surface_get_type");
1517
 
                        initialized = 1;
1518
 
                }
1519
 
                if (fptr) {
1520
 
                        rc = (jint)(*fptr)((cairo_surface_t *)arg0);
 
1493
                LOAD_FUNCTION(fp, cairo_surface_get_type)
 
1494
                if (fp) {
 
1495
                        rc = (jint)((jint (CALLING_CONVENTION*)(cairo_surface_t *))fp)((cairo_surface_t *)arg0);
1521
1496
                }
1522
1497
        }
1523
1498
        Cairo_NATIVE_EXIT(env, that, _1cairo_1surface_1get_1type_FUNC);
1526
1501
#endif
1527
1502
 
1528
1503
#ifndef NO__1cairo_1surface_1get_1user_1data
1529
 
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1surface_1get_1user_1data)
1530
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1)
 
1504
JNIEXPORT jintLong JNICALL Cairo_NATIVE(_1cairo_1surface_1get_1user_1data)
 
1505
        (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1)
1531
1506
{
1532
 
        jint rc = 0;
 
1507
        jintLong rc = 0;
1533
1508
        Cairo_NATIVE_ENTER(env, that, _1cairo_1surface_1get_1user_1data_FUNC);
1534
 
        rc = (jint)cairo_surface_get_user_data((cairo_surface_t *)arg0, (cairo_user_data_key_t *)arg1);
 
1509
        rc = (jintLong)cairo_surface_get_user_data((cairo_surface_t *)arg0, (cairo_user_data_key_t *)arg1);
1535
1510
        Cairo_NATIVE_EXIT(env, that, _1cairo_1surface_1get_1user_1data_FUNC);
1536
1511
        return rc;
1537
1512
}
1539
1514
 
1540
1515
#ifndef NO__1cairo_1surface_1reference
1541
1516
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1surface_1reference)
1542
 
        (JNIEnv *env, jclass that, jint arg0)
 
1517
        (JNIEnv *env, jclass that, jintLong arg0)
1543
1518
{
1544
1519
        Cairo_NATIVE_ENTER(env, that, _1cairo_1surface_1reference_FUNC);
1545
1520
        cairo_surface_reference((cairo_surface_t *)arg0);
1549
1524
 
1550
1525
#ifndef NO__1cairo_1surface_1set_1device_1offset
1551
1526
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1surface_1set_1device_1offset)
1552
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
 
1527
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2)
1553
1528
{
1554
1529
        Cairo_NATIVE_ENTER(env, that, _1cairo_1surface_1set_1device_1offset_FUNC);
1555
1530
        cairo_surface_set_device_offset((cairo_surface_t *)arg0, arg1, arg2);
1559
1534
 
1560
1535
#ifndef NO__1cairo_1surface_1set_1fallback_1resolution
1561
1536
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1surface_1set_1fallback_1resolution)
1562
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
 
1537
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2)
1563
1538
{
1564
1539
        Cairo_NATIVE_ENTER(env, that, _1cairo_1surface_1set_1fallback_1resolution_FUNC);
1565
1540
/*
1566
1541
        cairo_surface_set_fallback_resolution(arg0, arg1, arg2);
1567
1542
*/
1568
1543
        {
1569
 
                static int initialized = 0;
1570
 
                static void *handle = NULL;
1571
 
                typedef void (*FPTR)(jint, jdouble, jdouble);
1572
 
                static FPTR fptr;
1573
 
                if (!initialized) {
1574
 
                        if (!handle) handle = dlopen(cairo_surface_set_fallback_resolution_LIB, RTLD_LAZY);
1575
 
                        if (handle) fptr = (FPTR)dlsym(handle, "cairo_surface_set_fallback_resolution");
1576
 
                        initialized = 1;
1577
 
                }
1578
 
                if (fptr) {
1579
 
                        (*fptr)(arg0, arg1, arg2);
 
1544
                LOAD_FUNCTION(fp, cairo_surface_set_fallback_resolution)
 
1545
                if (fp) {
 
1546
                        ((void (CALLING_CONVENTION*)(jintLong, jdouble, jdouble))fp)(arg0, arg1, arg2);
1580
1547
                }
1581
1548
        }
1582
1549
        Cairo_NATIVE_EXIT(env, that, _1cairo_1surface_1set_1fallback_1resolution_FUNC);
1585
1552
 
1586
1553
#ifndef NO__1cairo_1surface_1set_1user_1data
1587
1554
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1surface_1set_1user_1data)
1588
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3)
 
1555
        (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2, jintLong arg3)
1589
1556
{
1590
1557
        jint rc = 0;
1591
1558
        Cairo_NATIVE_ENTER(env, that, _1cairo_1surface_1set_1user_1data_FUNC);
1597
1564
 
1598
1565
#ifndef NO__1cairo_1text_1extents
1599
1566
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1text_1extents)
1600
 
        (JNIEnv *env, jclass that, jint arg0, jbyteArray arg1, jobject arg2)
 
1567
        (JNIEnv *env, jclass that, jintLong arg0, jbyteArray arg1, jobject arg2)
1601
1568
{
1602
1569
        jbyte *lparg1=NULL;
1603
1570
        cairo_text_extents_t _arg2, *lparg2=NULL;
1614
1581
 
1615
1582
#ifndef NO__1cairo_1text_1path
1616
1583
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1text_1path)
1617
 
        (JNIEnv *env, jclass that, jint arg0, jbyteArray arg1)
 
1584
        (JNIEnv *env, jclass that, jintLong arg0, jbyteArray arg1)
1618
1585
{
1619
1586
        jbyte *lparg1=NULL;
1620
1587
        Cairo_NATIVE_ENTER(env, that, _1cairo_1text_1path_FUNC);
1628
1595
 
1629
1596
#ifndef NO__1cairo_1transform
1630
1597
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1transform)
1631
 
        (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1)
 
1598
        (JNIEnv *env, jclass that, jintLong arg0, jdoubleArray arg1)
1632
1599
{
1633
1600
        jdouble *lparg1=NULL;
1634
1601
        Cairo_NATIVE_ENTER(env, that, _1cairo_1transform_FUNC);
1642
1609
 
1643
1610
#ifndef NO__1cairo_1translate
1644
1611
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1translate)
1645
 
        (JNIEnv *env, jclass that, jint arg0, jdouble arg1, jdouble arg2)
 
1612
        (JNIEnv *env, jclass that, jintLong arg0, jdouble arg1, jdouble arg2)
1646
1613
{
1647
1614
        Cairo_NATIVE_ENTER(env, that, _1cairo_1translate_FUNC);
1648
1615
        cairo_translate((cairo_t *)arg0, arg1, arg2);
1652
1619
 
1653
1620
#ifndef NO__1cairo_1user_1to_1device
1654
1621
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1user_1to_1device)
1655
 
        (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2)
 
1622
        (JNIEnv *env, jclass that, jintLong arg0, jdoubleArray arg1, jdoubleArray arg2)
1656
1623
{
1657
1624
        jdouble *lparg1=NULL;
1658
1625
        jdouble *lparg2=NULL;
1669
1636
 
1670
1637
#ifndef NO__1cairo_1user_1to_1device_1distance
1671
1638
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1user_1to_1device_1distance)
1672
 
        (JNIEnv *env, jclass that, jint arg0, jdoubleArray arg1, jdoubleArray arg2)
 
1639
        (JNIEnv *env, jclass that, jintLong arg0, jdoubleArray arg1, jdoubleArray arg2)
1673
1640
{
1674
1641
        jdouble *lparg1=NULL;
1675
1642
        jdouble *lparg2=NULL;
1685
1652
#endif
1686
1653
 
1687
1654
#ifndef NO__1cairo_1xlib_1surface_1create
1688
 
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1xlib_1surface_1create)
1689
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
 
1655
JNIEXPORT jintLong JNICALL Cairo_NATIVE(_1cairo_1xlib_1surface_1create)
 
1656
        (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2, jint arg3, jint arg4)
1690
1657
{
1691
 
        jint rc = 0;
 
1658
        jintLong rc = 0;
1692
1659
        Cairo_NATIVE_ENTER(env, that, _1cairo_1xlib_1surface_1create_FUNC);
1693
 
        rc = (jint)cairo_xlib_surface_create((Display *)arg0, (Drawable)arg1, (Visual *)arg2, arg3, arg4);
 
1660
        rc = (jintLong)cairo_xlib_surface_create((Display *)arg0, (Drawable)arg1, (Visual *)arg2, arg3, arg4);
1694
1661
        Cairo_NATIVE_EXIT(env, that, _1cairo_1xlib_1surface_1create_FUNC);
1695
1662
        return rc;
1696
1663
}
1697
1664
#endif
1698
1665
 
1699
1666
#ifndef NO__1cairo_1xlib_1surface_1create_1for_1bitmap
1700
 
JNIEXPORT jint JNICALL Cairo_NATIVE(_1cairo_1xlib_1surface_1create_1for_1bitmap)
1701
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2, jint arg3, jint arg4)
 
1667
JNIEXPORT jintLong JNICALL Cairo_NATIVE(_1cairo_1xlib_1surface_1create_1for_1bitmap)
 
1668
        (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2, jint arg3, jint arg4)
1702
1669
{
1703
 
        jint rc = 0;
 
1670
        jintLong rc = 0;
1704
1671
        Cairo_NATIVE_ENTER(env, that, _1cairo_1xlib_1surface_1create_1for_1bitmap_FUNC);
1705
 
        rc = (jint)cairo_xlib_surface_create_for_bitmap((Display *)arg0, (Pixmap)arg1, (Screen *)arg2, arg3, arg4);
 
1672
        rc = (jintLong)cairo_xlib_surface_create_for_bitmap((Display *)arg0, (Pixmap)arg1, (Screen *)arg2, arg3, arg4);
1706
1673
        Cairo_NATIVE_EXIT(env, that, _1cairo_1xlib_1surface_1create_1for_1bitmap_FUNC);
1707
1674
        return rc;
1708
1675
}
1710
1677
 
1711
1678
#ifndef NO__1cairo_1xlib_1surface_1set_1size
1712
1679
JNIEXPORT void JNICALL Cairo_NATIVE(_1cairo_1xlib_1surface_1set_1size)
1713
 
        (JNIEnv *env, jclass that, jint arg0, jint arg1, jint arg2)
 
1680
        (JNIEnv *env, jclass that, jintLong arg0, jint arg1, jint arg2)
1714
1681
{
1715
1682
        Cairo_NATIVE_ENTER(env, that, _1cairo_1xlib_1surface_1set_1size_FUNC);
1716
1683
        cairo_xlib_surface_set_size((cairo_surface_t *)arg0, arg1, arg2);
1778
1745
}
1779
1746
#endif
1780
1747
 
1781
 
#ifndef NO_memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1data_1t_2II
1782
 
JNIEXPORT void JNICALL Cairo_NATIVE(memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1data_1t_2II)
1783
 
        (JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2)
 
1748
#if (!defined(NO_memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1data_1t_2II) && !defined(JNI64)) || (!defined(NO_memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1data_1t_2JJ) && defined(JNI64))
 
1749
#ifndef JNI64
 
1750
JNIEXPORT void JNICALL Cairo_NATIVE(memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1data_1t_2II)(JNIEnv *env, jclass that, jobject arg0, jintLong arg1, jintLong arg2)
 
1751
#else
 
1752
JNIEXPORT void JNICALL Cairo_NATIVE(memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1data_1t_2JJ)(JNIEnv *env, jclass that, jobject arg0, jintLong arg1, jintLong arg2)
 
1753
#endif
1784
1754
{
1785
1755
        cairo_path_data_t _arg0, *lparg0=NULL;
 
1756
#ifndef JNI64
1786
1757
        Cairo_NATIVE_ENTER(env, that, memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1data_1t_2II_FUNC);
 
1758
#else
 
1759
        Cairo_NATIVE_ENTER(env, that, memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1data_1t_2JJ_FUNC);
 
1760
#endif
1787
1761
        if (arg0) if ((lparg0 = getcairo_path_data_tFields(env, arg0, &_arg0)) == NULL) goto fail;
1788
1762
        memmove((void *)lparg0, (const void *)arg1, (size_t)arg2);
1789
1763
fail:
1790
1764
        if (arg0 && lparg0) setcairo_path_data_tFields(env, arg0, lparg0);
 
1765
#ifndef JNI64
1791
1766
        Cairo_NATIVE_EXIT(env, that, memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1data_1t_2II_FUNC);
 
1767
#else
 
1768
        Cairo_NATIVE_EXIT(env, that, memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1data_1t_2JJ_FUNC);
 
1769
#endif
1792
1770
}
1793
1771
#endif
1794
1772
 
1795
 
#ifndef NO_memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1t_2II
1796
 
JNIEXPORT void JNICALL Cairo_NATIVE(memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1t_2II)
1797
 
        (JNIEnv *env, jclass that, jobject arg0, jint arg1, jint arg2)
 
1773
#if (!defined(NO_memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1t_2II) && !defined(JNI64)) || (!defined(NO_memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1t_2JJ) && defined(JNI64))
 
1774
#ifndef JNI64
 
1775
JNIEXPORT void JNICALL Cairo_NATIVE(memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1t_2II)(JNIEnv *env, jclass that, jobject arg0, jintLong arg1, jintLong arg2)
 
1776
#else
 
1777
JNIEXPORT void JNICALL Cairo_NATIVE(memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1t_2JJ)(JNIEnv *env, jclass that, jobject arg0, jintLong arg1, jintLong arg2)
 
1778
#endif
1798
1779
{
1799
1780
        cairo_path_t _arg0, *lparg0=NULL;
 
1781
#ifndef JNI64
1800
1782
        Cairo_NATIVE_ENTER(env, that, memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1t_2II_FUNC);
 
1783
#else
 
1784
        Cairo_NATIVE_ENTER(env, that, memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1t_2JJ_FUNC);
 
1785
#endif
1801
1786
        if (arg0) if ((lparg0 = getcairo_path_tFields(env, arg0, &_arg0)) == NULL) goto fail;
1802
1787
        memmove((void *)lparg0, (const void *)arg1, (size_t)arg2);
1803
1788
fail:
1804
1789
        if (arg0 && lparg0) setcairo_path_tFields(env, arg0, lparg0);
 
1790
#ifndef JNI64
1805
1791
        Cairo_NATIVE_EXIT(env, that, memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1t_2II_FUNC);
 
1792
#else
 
1793
        Cairo_NATIVE_EXIT(env, that, memmove__Lorg_eclipse_swt_internal_cairo_cairo_1path_1t_2JJ_FUNC);
 
1794
#endif
1806
1795
}
1807
1796
#endif
1808
1797
 
1809
 
#ifndef NO_memmove___3DII
1810
 
JNIEXPORT void JNICALL Cairo_NATIVE(memmove___3DII)
1811
 
        (JNIEnv *env, jclass that, jdoubleArray arg0, jint arg1, jint arg2)
 
1798
#if (!defined(NO_memmove___3DII) && !defined(JNI64)) || (!defined(NO_memmove___3DJJ) && defined(JNI64))
 
1799
#ifndef JNI64
 
1800
JNIEXPORT void JNICALL Cairo_NATIVE(memmove___3DII)(JNIEnv *env, jclass that, jdoubleArray arg0, jintLong arg1, jintLong arg2)
 
1801
#else
 
1802
JNIEXPORT void JNICALL Cairo_NATIVE(memmove___3DJJ)(JNIEnv *env, jclass that, jdoubleArray arg0, jintLong arg1, jintLong arg2)
 
1803
#endif
1812
1804
{
1813
1805
        jdouble *lparg0=NULL;
 
1806
#ifndef JNI64
1814
1807
        Cairo_NATIVE_ENTER(env, that, memmove___3DII_FUNC);
 
1808
#else
 
1809
        Cairo_NATIVE_ENTER(env, that, memmove___3DJJ_FUNC);
 
1810
#endif
1815
1811
        if (arg0) if ((lparg0 = (*env)->GetDoubleArrayElements(env, arg0, NULL)) == NULL) goto fail;
1816
1812
        memmove((void *)lparg0, (const void *)arg1, (size_t)arg2);
1817
1813
fail:
1818
1814
        if (arg0 && lparg0) (*env)->ReleaseDoubleArrayElements(env, arg0, lparg0, 0);
 
1815
#ifndef JNI64
1819
1816
        Cairo_NATIVE_EXIT(env, that, memmove___3DII_FUNC);
 
1817
#else
 
1818
        Cairo_NATIVE_EXIT(env, that, memmove___3DJJ_FUNC);
 
1819
#endif
1820
1820
}
1821
1821
#endif
1822
1822