@nativescript/canvas 1.0.0-alpha.16 → 1.0.0-alpha.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/Canvas/common.js +108 -110
  2. package/Canvas/common.js.map +1 -1
  3. package/package.json +1 -1
  4. package/platforms/ios/CanvasNative.xcframework/Info.plist +44 -0
  5. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
  6. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +1996 -0
  7. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h +21 -0
  8. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/Utils.h +26 -0
  9. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +3873 -0
  10. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist +0 -0
  11. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  12. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64.swiftsourceinfo +0 -0
  13. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  14. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +3257 -0
  15. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftdoc +0 -0
  16. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftinterface +3257 -0
  17. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/module.modulemap +11 -0
  18. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/TNSCanvas.nib +0 -0
  19. package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Info.plist +20 -0
  20. package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  21. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
  22. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +3998 -0
  23. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h +21 -0
  24. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/Utils.h +26 -0
  25. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +3873 -0
  26. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist +0 -0
  27. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  28. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64.swiftsourceinfo +0 -0
  29. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  30. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64.swiftsourceinfo +0 -0
  31. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  32. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3257 -0
  33. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftdoc +0 -0
  34. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftinterface +3257 -0
  35. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  36. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +3257 -0
  37. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64.swiftdoc +0 -0
  38. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64.swiftinterface +3257 -0
  39. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/module.modulemap +11 -0
  40. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/TNSCanvas.nib +0 -0
  41. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +344 -0
  42. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Info.plist +20 -0
  43. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  44. package/platforms/ios/Podfile +1 -1
@@ -0,0 +1,3873 @@
1
+ #ifndef CBINDGEN_BINDINGS_H
2
+ #define CBINDGEN_BINDINGS_H
3
+
4
+ /* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */
5
+
6
+ #include <stdarg.h>
7
+ #include <stdbool.h>
8
+ #include <stdint.h>
9
+ #include <stdlib.h>
10
+
11
+ typedef enum CompositeOperationType {
12
+ SourceOver = 0,
13
+ SourceIn = 1,
14
+ SourceOut = 2,
15
+ SourceAtop = 3,
16
+ DestinationOver = 4,
17
+ DestinationIn = 5,
18
+ DestinationOut = 6,
19
+ DestinationAtop = 7,
20
+ Lighter = 8,
21
+ Copy = 9,
22
+ Xor = 10,
23
+ Multiply = 11,
24
+ Screen = 12,
25
+ Overlay = 13,
26
+ Darken = 14,
27
+ Lighten = 15,
28
+ ColorDodge = 16,
29
+ ColorBurn = 17,
30
+ HardLight = 18,
31
+ SoftLight = 19,
32
+ Difference = 20,
33
+ Exclusion = 21,
34
+ Hue = 22,
35
+ Saturation = 23,
36
+ Color = 24,
37
+ Luminosity = 25,
38
+ } CompositeOperationType;
39
+
40
+ typedef enum FillRule {
41
+ NonZero = 0,
42
+ EvenOdd = 1,
43
+ } FillRule;
44
+
45
+ typedef enum ImageSmoothingQuality {
46
+ Low = 0,
47
+ Medium = 1,
48
+ High = 2,
49
+ } ImageSmoothingQuality;
50
+
51
+ typedef enum LineCap {
52
+ CapButt = 0,
53
+ CapRound = 1,
54
+ CapSquare = 2,
55
+ } LineCap;
56
+
57
+ typedef enum LineJoin {
58
+ JoinRound = 0,
59
+ JoinBevel = 1,
60
+ JoinMiter = 2,
61
+ } LineJoin;
62
+
63
+ typedef enum PaintStyleValueType {
64
+ PaintStyleValueTypeColor = 0,
65
+ PaintStyleValueTypeGradient = 1,
66
+ PaintStyleValueTypePattern = 2,
67
+ } PaintStyleValueType;
68
+
69
+ typedef enum Repetition {
70
+ Repeat = 0,
71
+ RepeatX = 1,
72
+ RepeatY = 2,
73
+ NoRepeat = 3,
74
+ } Repetition;
75
+
76
+ typedef enum TextAlign {
77
+ START = 0,
78
+ LEFT = 1,
79
+ CENTER = 2,
80
+ RIGHT = 3,
81
+ END = 4,
82
+ } TextAlign;
83
+
84
+ typedef enum TextBaseLine {
85
+ TOP = 0,
86
+ HANGING = 1,
87
+ MIDDLE = 2,
88
+ ALPHABETIC = 3,
89
+ IDEOGRAPHIC = 4,
90
+ BOTTOM = 5,
91
+ } TextBaseLine;
92
+
93
+ typedef enum TextDirection {
94
+ LTR = 0,
95
+ RTL = 1,
96
+ } TextDirection;
97
+
98
+ typedef struct Context Context;
99
+
100
+ typedef struct F32Array {
101
+ float *data;
102
+ uintptr_t data_len;
103
+ } F32Array;
104
+
105
+ typedef struct F64Array {
106
+ double *data;
107
+ uintptr_t data_len;
108
+ } F64Array;
109
+
110
+ typedef struct I16Array {
111
+ int16_t *data;
112
+ uintptr_t data_len;
113
+ } I16Array;
114
+
115
+ typedef struct I32Array {
116
+ int32_t *data;
117
+ uintptr_t data_len;
118
+ } I32Array;
119
+
120
+ typedef struct I8Array {
121
+ int8_t *data;
122
+ uintptr_t data_len;
123
+ } I8Array;
124
+
125
+ typedef struct U16Array {
126
+ uint16_t *data;
127
+ uintptr_t data_len;
128
+ } U16Array;
129
+
130
+ typedef struct U32Array {
131
+ uint32_t *data;
132
+ uintptr_t data_len;
133
+ } U32Array;
134
+
135
+ typedef struct U8Array {
136
+ uint8_t *data;
137
+ uintptr_t data_len;
138
+ } U8Array;
139
+
140
+ typedef struct PaintStyleValue {
141
+ long long value;
142
+ enum PaintStyleValueType value_type;
143
+ } PaintStyleValue;
144
+
145
+ #if defined(TARGET_OS_ANDROID)
146
+ /**
147
+ * AndroidBitmap functions result code.
148
+ */
149
+ typedef int32_t _bindgen_ty_1;
150
+ #endif
151
+
152
+ #if defined(TARGET_OS_ANDROID)
153
+ /**
154
+ * Bitmap pixel format.
155
+ */
156
+ typedef uint32_t AndroidBitmapFormat;
157
+ #endif
158
+
159
+ #if defined(TARGET_OS_ANDROID)
160
+ /**
161
+ * Operation was successful.
162
+ */
163
+ #define ANDROID_BITMAP_RESULT_SUCCESS 0
164
+ #endif
165
+
166
+ #if defined(TARGET_OS_ANDROID)
167
+ /**
168
+ * Bad parameter.
169
+ */
170
+ #define ANDROID_BITMAP_RESULT_BAD_PARAMETER -1
171
+ #endif
172
+
173
+ #if defined(TARGET_OS_ANDROID)
174
+ /**
175
+ * JNI exception occured.
176
+ */
177
+ #define ANDROID_BITMAP_RESULT_JNI_EXCEPTION -2
178
+ #endif
179
+
180
+ #if defined(TARGET_OS_ANDROID)
181
+ /**
182
+ * Allocation failed.
183
+ */
184
+ #define ANDROID_BITMAP_RESULT_ALLOCATION_FAILED -3
185
+ #endif
186
+
187
+ #if defined(TARGET_OS_ANDROID)
188
+ /**
189
+ * No format.
190
+ */
191
+ #define AndroidBitmapFormat_ANDROID_BITMAP_FORMAT_NONE 0
192
+ #endif
193
+
194
+ #if defined(TARGET_OS_ANDROID)
195
+ /**
196
+ * Red: 8 bits, Green: 8 bits, Blue: 8 bits, Alpha: 8 bits.
197
+ */
198
+ #define AndroidBitmapFormat_ANDROID_BITMAP_FORMAT_RGBA_8888 1
199
+ #endif
200
+
201
+ #if defined(TARGET_OS_ANDROID)
202
+ /**
203
+ * Red: 5 bits, Green: 6 bits, Blue: 5 bits.
204
+ */
205
+ #define AndroidBitmapFormat_ANDROID_BITMAP_FORMAT_RGB_565 4
206
+ #endif
207
+
208
+ #if defined(TARGET_OS_ANDROID)
209
+ /**
210
+ * Deprecated in API level 13. Because of the poor quality of this configuration, it is advised to use ARGB_8888 instead.
211
+ */
212
+ #define AndroidBitmapFormat_ANDROID_BITMAP_FORMAT_RGBA_4444 7
213
+ #endif
214
+
215
+ #if defined(TARGET_OS_ANDROID)
216
+ /**
217
+ * Alpha: 8 bits.
218
+ */
219
+ #define AndroidBitmapFormat_ANDROID_BITMAP_FORMAT_A_8 8
220
+ #endif
221
+
222
+ void destroy_f32_array(struct F32Array *array);
223
+
224
+ void destroy_f64_array(struct F64Array *array);
225
+
226
+ void destroy_i16_array(struct I16Array *array);
227
+
228
+ void destroy_i32_array(struct I32Array *array);
229
+
230
+ void destroy_i8_array(struct I8Array *array);
231
+
232
+ void destroy_paint_style_value(long long value);
233
+
234
+ void destroy_u16_array(struct U16Array *array);
235
+
236
+ void destroy_u32_array(struct U32Array *array);
237
+
238
+ void destroy_u8_array(struct U8Array *array);
239
+
240
+ #if defined(TARGET_OS_ANDROID)
241
+ jlong Java_org_nativescript_canvas_TNSCanvas_nativeInitContext(JNIEnv,
242
+ JClass,
243
+ jfloat width,
244
+ jfloat height,
245
+ jfloat density,
246
+ jint buffer_id,
247
+ jint samples,
248
+ jboolean alpha,
249
+ jint font_color,
250
+ jfloat ppi,
251
+ jint direction);
252
+ #endif
253
+
254
+ #if defined(TARGET_OS_ANDROID)
255
+ jlong Java_org_nativescript_canvas_TNSCanvas_nativeInitContextWithCustomSurface(JNIEnv,
256
+ JClass,
257
+ jfloat width,
258
+ jfloat height,
259
+ jfloat density,
260
+ jboolean alpha,
261
+ jint font_color,
262
+ jfloat ppi,
263
+ jint direction);
264
+ #endif
265
+
266
+ #if defined(TARGET_OS_ANDROID)
267
+ void Java_org_nativescript_canvas_TNSCanvas_nativeDestroyContext(JNIEnv, JClass, jlong context);
268
+ #endif
269
+
270
+ #if defined(TARGET_OS_ANDROID)
271
+ void Java_org_nativescript_canvas_TNSCanvas_nativeResizeSurface(JNIEnv,
272
+ JClass,
273
+ jlong context,
274
+ jfloat width,
275
+ jfloat height,
276
+ jfloat density,
277
+ jint buffer_id,
278
+ jint samples,
279
+ jboolean alpha,
280
+ jfloat ppi);
281
+ #endif
282
+
283
+ #if defined(TARGET_OS_ANDROID)
284
+ void Java_org_nativescript_canvas_TNSCanvas_nativeResizeCustomSurface(JNIEnv,
285
+ JClass,
286
+ jlong context,
287
+ jfloat width,
288
+ jfloat height,
289
+ jfloat density,
290
+ jboolean alpha,
291
+ jfloat ppi);
292
+ #endif
293
+
294
+ #if defined(TARGET_OS_ANDROID)
295
+ jstring Java_org_nativescript_canvas_TNSCanvas_nativeDataURL(JNIEnv env,
296
+ JClass,
297
+ jlong context,
298
+ JString format,
299
+ jfloat quality);
300
+ #endif
301
+
302
+ #if defined(TARGET_OS_ANDROID)
303
+ jbyteArray Java_org_nativescript_canvas_TNSCanvas_nativeSnapshotCanvas(JNIEnv env,
304
+ JClass,
305
+ jlong context);
306
+ #endif
307
+
308
+ #if defined(TARGET_OS_ANDROID)
309
+ void Java_org_nativescript_canvas_TNSCanvas_nativeFlush(JNIEnv, JClass, jlong context);
310
+ #endif
311
+
312
+ #if defined(TARGET_OS_ANDROID)
313
+ void Java_org_nativescript_canvas_TNSCanvas_nativeCustomWithBitmapFlush(JNIEnv env,
314
+ JClass,
315
+ jlong context,
316
+ JObject bitmap);
317
+ #endif
318
+
319
+ #if defined(TARGET_OS_ANDROID)
320
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetDirection(JNIEnv,
321
+ JClass,
322
+ jlong context,
323
+ jint direction);
324
+ #endif
325
+
326
+ #if defined(TARGET_OS_ANDROID)
327
+ jint Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetDirection(JNIEnv,
328
+ JClass,
329
+ jlong context);
330
+ #endif
331
+
332
+ #if defined(TARGET_OS_ANDROID)
333
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetFillStyle(JNIEnv,
334
+ JClass,
335
+ jlong context,
336
+ jlong style);
337
+ #endif
338
+
339
+ #if defined(TARGET_OS_ANDROID)
340
+ jobject Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetFillStyle(JNIEnv env,
341
+ JClass,
342
+ jlong context);
343
+ #endif
344
+
345
+ #if defined(TARGET_OS_ANDROID)
346
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetFilter(JNIEnv env,
347
+ JClass,
348
+ jlong context,
349
+ JString filter);
350
+ #endif
351
+
352
+ #if defined(TARGET_OS_ANDROID)
353
+ jstring Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetFilter(JNIEnv env,
354
+ JClass,
355
+ jlong context);
356
+ #endif
357
+
358
+ #if defined(TARGET_OS_ANDROID)
359
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetFont(JNIEnv env,
360
+ JClass,
361
+ jlong context,
362
+ JString filter);
363
+ #endif
364
+
365
+ #if defined(TARGET_OS_ANDROID)
366
+ jstring Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetFont(JNIEnv env,
367
+ JClass,
368
+ jlong context);
369
+ #endif
370
+
371
+ #if defined(TARGET_OS_ANDROID)
372
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetGlobalAlpha(JNIEnv,
373
+ JClass,
374
+ jlong context,
375
+ jfloat alpha);
376
+ #endif
377
+
378
+ #if defined(TARGET_OS_ANDROID)
379
+ jfloat Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetGlobalAlpha(JNIEnv,
380
+ JClass,
381
+ jlong context);
382
+ #endif
383
+
384
+ #if defined(TARGET_OS_ANDROID)
385
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetGlobalCompositeOperation(JNIEnv,
386
+ JClass,
387
+ jlong context,
388
+ jint operation);
389
+ #endif
390
+
391
+ #if defined(TARGET_OS_ANDROID)
392
+ jint Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetGlobalCompositeOperation(JNIEnv,
393
+ JClass,
394
+ jlong context);
395
+ #endif
396
+
397
+ #if defined(TARGET_OS_ANDROID)
398
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetImageSmoothingEnabled(JNIEnv,
399
+ JClass,
400
+ jlong context,
401
+ jboolean enabled);
402
+ #endif
403
+
404
+ #if defined(TARGET_OS_ANDROID)
405
+ jboolean Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetImageSmoothingEnabled(JNIEnv,
406
+ JClass,
407
+ jlong context);
408
+ #endif
409
+
410
+ #if defined(TARGET_OS_ANDROID)
411
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetImageSmoothingQuality(JNIEnv,
412
+ JClass,
413
+ jlong context,
414
+ jint quality);
415
+ #endif
416
+
417
+ #if defined(TARGET_OS_ANDROID)
418
+ jint Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetImageSmoothingQuality(JNIEnv,
419
+ JClass,
420
+ jlong context);
421
+ #endif
422
+
423
+ #if defined(TARGET_OS_ANDROID)
424
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetLineCap(JNIEnv,
425
+ JClass,
426
+ jlong context,
427
+ jint cap);
428
+ #endif
429
+
430
+ #if defined(TARGET_OS_ANDROID)
431
+ jint Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetLineCap(JNIEnv,
432
+ JClass,
433
+ jlong context);
434
+ #endif
435
+
436
+ #if defined(TARGET_OS_ANDROID)
437
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetLineDashOffset(JNIEnv,
438
+ JClass,
439
+ jlong context,
440
+ jfloat offset);
441
+ #endif
442
+
443
+ #if defined(TARGET_OS_ANDROID)
444
+ jfloat Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetLineDashOffset(JNIEnv,
445
+ JClass,
446
+ jlong context);
447
+ #endif
448
+
449
+ #if defined(TARGET_OS_ANDROID)
450
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetLineJoin(JNIEnv,
451
+ JClass,
452
+ jlong context,
453
+ jint join);
454
+ #endif
455
+
456
+ #if defined(TARGET_OS_ANDROID)
457
+ jint Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetLineJoin(JNIEnv,
458
+ JClass,
459
+ jlong context);
460
+ #endif
461
+
462
+ #if defined(TARGET_OS_ANDROID)
463
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetLineWidth(JNIEnv,
464
+ JClass,
465
+ jlong context,
466
+ jfloat width);
467
+ #endif
468
+
469
+ #if defined(TARGET_OS_ANDROID)
470
+ jfloat Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetLineWidth(JNIEnv,
471
+ JClass,
472
+ jlong context);
473
+ #endif
474
+
475
+ #if defined(TARGET_OS_ANDROID)
476
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetMiterLimit(JNIEnv,
477
+ JClass,
478
+ jlong context,
479
+ jfloat limit);
480
+ #endif
481
+
482
+ #if defined(TARGET_OS_ANDROID)
483
+ jfloat Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetMiterLimit(JNIEnv,
484
+ JClass,
485
+ jlong context);
486
+ #endif
487
+
488
+ #if defined(TARGET_OS_ANDROID)
489
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetShadowBlur(JNIEnv,
490
+ JClass,
491
+ jlong context,
492
+ jfloat blur);
493
+ #endif
494
+
495
+ #if defined(TARGET_OS_ANDROID)
496
+ jfloat Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetShadowBlur(JNIEnv,
497
+ JClass,
498
+ jlong context);
499
+ #endif
500
+
501
+ #if defined(TARGET_OS_ANDROID)
502
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetShadowColor(JNIEnv,
503
+ JClass,
504
+ jlong context,
505
+ uint8_t r,
506
+ uint8_t g,
507
+ uint8_t b,
508
+ uint8_t a);
509
+ #endif
510
+
511
+ #if defined(TARGET_OS_ANDROID)
512
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetShadowColorString(JNIEnv env,
513
+ JClass,
514
+ jlong context,
515
+ JString color);
516
+ #endif
517
+
518
+ #if defined(TARGET_OS_ANDROID)
519
+ jstring Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetShadowColor(JNIEnv env,
520
+ JClass,
521
+ jlong context);
522
+ #endif
523
+
524
+ #if defined(TARGET_OS_ANDROID)
525
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetShadowOffsetX(JNIEnv,
526
+ JClass,
527
+ jlong context,
528
+ jfloat x);
529
+ #endif
530
+
531
+ #if defined(TARGET_OS_ANDROID)
532
+ jfloat Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetShadowOffsetX(JNIEnv,
533
+ JClass,
534
+ jlong context);
535
+ #endif
536
+
537
+ #if defined(TARGET_OS_ANDROID)
538
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetShadowOffsetY(JNIEnv,
539
+ JClass,
540
+ jlong context,
541
+ jfloat y);
542
+ #endif
543
+
544
+ #if defined(TARGET_OS_ANDROID)
545
+ jfloat Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetShadowOffsetY(JNIEnv,
546
+ JClass,
547
+ jlong context);
548
+ #endif
549
+
550
+ #if defined(TARGET_OS_ANDROID)
551
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetStrokeStyle(JNIEnv,
552
+ JClass,
553
+ jlong context,
554
+ jlong style);
555
+ #endif
556
+
557
+ #if defined(TARGET_OS_ANDROID)
558
+ jobject Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetStrokeStyle(JNIEnv env,
559
+ JClass,
560
+ jlong context);
561
+ #endif
562
+
563
+ #if defined(TARGET_OS_ANDROID)
564
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetTextAlign(JNIEnv,
565
+ JClass,
566
+ jlong context,
567
+ jint align);
568
+ #endif
569
+
570
+ #if defined(TARGET_OS_ANDROID)
571
+ jint Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetTextAlign(JNIEnv,
572
+ JClass,
573
+ jlong context);
574
+ #endif
575
+
576
+ #if defined(TARGET_OS_ANDROID)
577
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetTextBaseline(JNIEnv,
578
+ JClass,
579
+ jlong context,
580
+ jint baseline);
581
+ #endif
582
+
583
+ #if defined(TARGET_OS_ANDROID)
584
+ jint Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetTextBaseline(JNIEnv,
585
+ JClass,
586
+ jlong context);
587
+ #endif
588
+
589
+ #if defined(TARGET_OS_ANDROID)
590
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeArc(JNIEnv,
591
+ JClass,
592
+ jlong context,
593
+ jfloat x,
594
+ jfloat y,
595
+ jfloat radius,
596
+ jfloat start_angle,
597
+ jfloat end_angle,
598
+ jboolean anti_clockwise);
599
+ #endif
600
+
601
+ #if defined(TARGET_OS_ANDROID)
602
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeArcTo(JNIEnv,
603
+ JClass,
604
+ jlong context,
605
+ jfloat x1,
606
+ jfloat y1,
607
+ jfloat x2,
608
+ jfloat y2,
609
+ jfloat radius);
610
+ #endif
611
+
612
+ #if defined(TARGET_OS_ANDROID)
613
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeBeginPath(JNIEnv,
614
+ JClass,
615
+ jlong context);
616
+ #endif
617
+
618
+ #if defined(TARGET_OS_ANDROID)
619
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeBezierCurveTo(JNIEnv,
620
+ JClass,
621
+ jlong context,
622
+ jfloat cp1x,
623
+ jfloat cp1y,
624
+ jfloat cp2x,
625
+ jfloat cp2y,
626
+ jfloat x,
627
+ jfloat y);
628
+ #endif
629
+
630
+ #if defined(TARGET_OS_ANDROID)
631
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeClearRect(JNIEnv,
632
+ JClass,
633
+ jlong context,
634
+ jfloat x,
635
+ jfloat y,
636
+ jfloat width,
637
+ jfloat height);
638
+ #endif
639
+
640
+ #if defined(TARGET_OS_ANDROID)
641
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeClip(JNIEnv,
642
+ JClass,
643
+ jlong context,
644
+ jlong path,
645
+ jint rule);
646
+ #endif
647
+
648
+ #if defined(TARGET_OS_ANDROID)
649
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeClipRule(JNIEnv,
650
+ JClass,
651
+ jlong context,
652
+ jint rule);
653
+ #endif
654
+
655
+ #if defined(TARGET_OS_ANDROID)
656
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeClosePath(JNIEnv,
657
+ JClass,
658
+ jlong context);
659
+ #endif
660
+
661
+ #if defined(TARGET_OS_ANDROID)
662
+ jlong Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeCreateImageData(JNIEnv,
663
+ JClass,
664
+ jint width,
665
+ jint height);
666
+ #endif
667
+
668
+ #if defined(TARGET_OS_ANDROID)
669
+ jlong Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeCreateLinearGradient(JNIEnv,
670
+ JClass,
671
+ jlong context,
672
+ jfloat x0,
673
+ jfloat y0,
674
+ jfloat x1,
675
+ jfloat y1);
676
+ #endif
677
+
678
+ #if defined(TARGET_OS_ANDROID)
679
+ jlong Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeCreatePatternEncoded(JNIEnv env,
680
+ JClass,
681
+ jlong context,
682
+ jbyteArray image_data,
683
+ jint repetition);
684
+ #endif
685
+
686
+ #if defined(TARGET_OS_ANDROID)
687
+ jlong Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeCreatePattern(JNIEnv env,
688
+ JClass,
689
+ jlong context,
690
+ jbyteArray image_data,
691
+ jint width,
692
+ jint height,
693
+ jint repetition);
694
+ #endif
695
+
696
+ #if defined(TARGET_OS_ANDROID)
697
+ jlong Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeCreatePatternWithAsset(JNIEnv,
698
+ JClass,
699
+ jlong context,
700
+ jlong asset,
701
+ jint repetition);
702
+ #endif
703
+
704
+ #if defined(TARGET_OS_ANDROID)
705
+ jlong Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeCreateRadialGradient(JNIEnv,
706
+ JClass,
707
+ jlong context,
708
+ jfloat x0,
709
+ jfloat y0,
710
+ jfloat r0,
711
+ jfloat x1,
712
+ jfloat y1,
713
+ jfloat r1);
714
+ #endif
715
+
716
+ #if defined(TARGET_OS_ANDROID)
717
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeDrawImageDxDyWithBitmap(JNIEnv env,
718
+ JClass,
719
+ jlong context,
720
+ JObject bitmap,
721
+ jfloat width,
722
+ jfloat height,
723
+ jfloat dx,
724
+ jfloat dy);
725
+ #endif
726
+
727
+ #if defined(TARGET_OS_ANDROID)
728
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeDrawImageDxDy(JNIEnv env,
729
+ JClass,
730
+ jlong context,
731
+ jbyteArray image_data,
732
+ jfloat width,
733
+ jfloat height,
734
+ jfloat dx,
735
+ jfloat dy);
736
+ #endif
737
+
738
+ #if defined(TARGET_OS_ANDROID)
739
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeDrawImageDxDyWithAsset(JNIEnv,
740
+ JClass,
741
+ jlong context,
742
+ jlong asset,
743
+ jfloat dx,
744
+ jfloat dy);
745
+ #endif
746
+
747
+ #if defined(TARGET_OS_ANDROID)
748
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeDrawImageDxDyDwDhWithBitmap(JNIEnv env,
749
+ JClass,
750
+ jlong context,
751
+ JObject bitmap,
752
+ jfloat width,
753
+ jfloat height,
754
+ jfloat dx,
755
+ jfloat dy,
756
+ jfloat d_width,
757
+ jfloat d_height);
758
+ #endif
759
+
760
+ #if defined(TARGET_OS_ANDROID)
761
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeDrawImageDxDyDwDh(JNIEnv env,
762
+ JClass,
763
+ jlong context,
764
+ jbyteArray image_data,
765
+ jfloat width,
766
+ jfloat height,
767
+ jfloat dx,
768
+ jfloat dy,
769
+ jfloat d_width,
770
+ jfloat d_height);
771
+ #endif
772
+
773
+ #if defined(TARGET_OS_ANDROID)
774
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeDrawImageDxDyDwDhWithAsset(JNIEnv,
775
+ JClass,
776
+ jlong context,
777
+ jlong asset,
778
+ jfloat dx,
779
+ jfloat dy,
780
+ jfloat d_width,
781
+ jfloat d_height);
782
+ #endif
783
+
784
+ #if defined(TARGET_OS_ANDROID)
785
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeDrawImageWithBitmap(JNIEnv env,
786
+ JClass,
787
+ jlong context,
788
+ JObject bitmap,
789
+ jfloat width,
790
+ jfloat height,
791
+ jfloat sx,
792
+ jfloat sy,
793
+ jfloat s_width,
794
+ jfloat s_height,
795
+ jfloat dx,
796
+ jfloat dy,
797
+ jfloat d_width,
798
+ jfloat d_height);
799
+ #endif
800
+
801
+ #if defined(TARGET_OS_ANDROID)
802
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeDrawImageWithAsset(JNIEnv,
803
+ JClass,
804
+ jlong context,
805
+ jlong asset,
806
+ jfloat sx,
807
+ jfloat sy,
808
+ jfloat s_width,
809
+ jfloat s_height,
810
+ jfloat dx,
811
+ jfloat dy,
812
+ jfloat d_width,
813
+ jfloat d_height);
814
+ #endif
815
+
816
+ #if defined(TARGET_OS_ANDROID)
817
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeDrawImage(JNIEnv env,
818
+ JClass,
819
+ jlong context,
820
+ jbyteArray image_data,
821
+ jfloat width,
822
+ jfloat height,
823
+ jfloat sx,
824
+ jfloat sy,
825
+ jfloat s_width,
826
+ jfloat s_height,
827
+ jfloat dx,
828
+ jfloat dy,
829
+ jfloat d_width,
830
+ jfloat d_height);
831
+ #endif
832
+
833
+ #if defined(TARGET_OS_ANDROID)
834
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeEllipse(JNIEnv,
835
+ JClass,
836
+ jlong context,
837
+ jfloat x,
838
+ jfloat y,
839
+ jfloat radius_x,
840
+ jfloat radius_y,
841
+ jfloat rotation,
842
+ jfloat start_angle,
843
+ jfloat end_angle,
844
+ jboolean anticlockwise);
845
+ #endif
846
+
847
+ #if defined(TARGET_OS_ANDROID)
848
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeFill(JNIEnv,
849
+ JClass,
850
+ jlong context,
851
+ jlong path,
852
+ jint rule);
853
+ #endif
854
+
855
+ #if defined(TARGET_OS_ANDROID)
856
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeFillRect(JNIEnv,
857
+ JClass,
858
+ jlong context,
859
+ jfloat x,
860
+ jfloat y,
861
+ jfloat width,
862
+ jfloat height);
863
+ #endif
864
+
865
+ #if defined(TARGET_OS_ANDROID)
866
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeFillText(JNIEnv env,
867
+ JClass,
868
+ jlong context,
869
+ JString text,
870
+ jfloat x,
871
+ jfloat y,
872
+ jfloat width);
873
+ #endif
874
+
875
+ #if defined(TARGET_OS_ANDROID)
876
+ jlong Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetImageData(JNIEnv,
877
+ JClass,
878
+ jlong context,
879
+ jfloat sx,
880
+ jfloat sy,
881
+ jfloat sw,
882
+ jfloat sh);
883
+ #endif
884
+
885
+ #if defined(TARGET_OS_ANDROID)
886
+ jfloatArray Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetLineDash(JNIEnv env,
887
+ JClass,
888
+ jlong context);
889
+ #endif
890
+
891
+ #if defined(TARGET_OS_ANDROID)
892
+ jlong Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeGetTansform(JNIEnv,
893
+ JClass,
894
+ jlong context);
895
+ #endif
896
+
897
+ #if defined(TARGET_OS_ANDROID)
898
+ bool Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeIsPointInPath(JNIEnv,
899
+ JClass,
900
+ jlong context,
901
+ jlong path,
902
+ jfloat x,
903
+ jfloat y,
904
+ jint rule);
905
+ #endif
906
+
907
+ #if defined(TARGET_OS_ANDROID)
908
+ bool Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeIsPointInStroke(JNIEnv,
909
+ JClass,
910
+ jlong context,
911
+ jlong path,
912
+ jfloat x,
913
+ jfloat y);
914
+ #endif
915
+
916
+ #if defined(TARGET_OS_ANDROID)
917
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeLineTo(JNIEnv,
918
+ JClass,
919
+ jlong context,
920
+ jfloat x,
921
+ jfloat y);
922
+ #endif
923
+
924
+ #if defined(TARGET_OS_ANDROID)
925
+ jlong Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeMeasureText(JNIEnv env,
926
+ JClass,
927
+ jlong context,
928
+ JString text);
929
+ #endif
930
+
931
+ #if defined(TARGET_OS_ANDROID)
932
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeMoveTo(JNIEnv,
933
+ JClass,
934
+ jlong context,
935
+ jfloat x,
936
+ jfloat y);
937
+ #endif
938
+
939
+ #if defined(TARGET_OS_ANDROID)
940
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativePutImageData(JNIEnv,
941
+ JClass,
942
+ jlong context,
943
+ jlong image_data,
944
+ jfloat dx,
945
+ jfloat dy,
946
+ jfloat dirty_x,
947
+ jfloat dirty_y,
948
+ jfloat dirty_width,
949
+ jfloat dirty_height);
950
+ #endif
951
+
952
+ #if defined(TARGET_OS_ANDROID)
953
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeQuadraticCurveTo(JNIEnv,
954
+ JClass,
955
+ jlong context,
956
+ jfloat cpx,
957
+ jfloat cpy,
958
+ jfloat x,
959
+ jfloat y);
960
+ #endif
961
+
962
+ #if defined(TARGET_OS_ANDROID)
963
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeRect(JNIEnv,
964
+ JClass,
965
+ jlong context,
966
+ jfloat x,
967
+ jfloat y,
968
+ jfloat width,
969
+ jfloat height);
970
+ #endif
971
+
972
+ #if defined(TARGET_OS_ANDROID)
973
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeResetTransform(JNIEnv,
974
+ JClass,
975
+ jlong context);
976
+ #endif
977
+
978
+ #if defined(TARGET_OS_ANDROID)
979
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeRestore(JNIEnv,
980
+ JClass,
981
+ jlong context);
982
+ #endif
983
+
984
+ #if defined(TARGET_OS_ANDROID)
985
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeRotate(JNIEnv,
986
+ JClass,
987
+ jlong context,
988
+ jfloat angle);
989
+ #endif
990
+
991
+ #if defined(TARGET_OS_ANDROID)
992
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSave(JNIEnv,
993
+ JClass,
994
+ jlong context);
995
+ #endif
996
+
997
+ #if defined(TARGET_OS_ANDROID)
998
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeScale(JNIEnv,
999
+ JClass,
1000
+ jlong context,
1001
+ jfloat x,
1002
+ jfloat y);
1003
+ #endif
1004
+
1005
+ #if defined(TARGET_OS_ANDROID)
1006
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetLineDash(JNIEnv env,
1007
+ JClass,
1008
+ jlong context,
1009
+ jfloatArray dash);
1010
+ #endif
1011
+
1012
+ #if defined(TARGET_OS_ANDROID)
1013
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetTransform(JNIEnv,
1014
+ JClass,
1015
+ jlong context,
1016
+ jfloat a,
1017
+ jfloat b,
1018
+ jfloat c,
1019
+ jfloat d,
1020
+ jfloat e,
1021
+ jfloat f);
1022
+ #endif
1023
+
1024
+ #if defined(TARGET_OS_ANDROID)
1025
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetTransformMatrix(JNIEnv,
1026
+ JClass,
1027
+ jlong context,
1028
+ jlong matrix);
1029
+ #endif
1030
+
1031
+ #if defined(TARGET_OS_ANDROID)
1032
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeStroke(JNIEnv,
1033
+ JClass,
1034
+ jlong context,
1035
+ jlong path);
1036
+ #endif
1037
+
1038
+ #if defined(TARGET_OS_ANDROID)
1039
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeStrokeRect(JNIEnv,
1040
+ JClass,
1041
+ jlong context,
1042
+ jfloat x,
1043
+ jfloat y,
1044
+ jfloat width,
1045
+ jfloat height);
1046
+ #endif
1047
+
1048
+ #if defined(TARGET_OS_ANDROID)
1049
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeStrokeText(JNIEnv env,
1050
+ JClass,
1051
+ jlong context,
1052
+ JString text,
1053
+ jfloat x,
1054
+ jfloat y,
1055
+ jfloat width);
1056
+ #endif
1057
+
1058
+ #if defined(TARGET_OS_ANDROID)
1059
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeTransform(JNIEnv,
1060
+ JClass,
1061
+ jlong context,
1062
+ jfloat a,
1063
+ jfloat b,
1064
+ jfloat c,
1065
+ jfloat d,
1066
+ jfloat e,
1067
+ jfloat f);
1068
+ #endif
1069
+
1070
+ #if defined(TARGET_OS_ANDROID)
1071
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeTranslate(JNIEnv,
1072
+ JClass,
1073
+ jlong context,
1074
+ jfloat x,
1075
+ jfloat y);
1076
+ #endif
1077
+
1078
+ #if defined(TARGET_OS_ANDROID)
1079
+ void Java_org_nativescript_canvas_TextureRender_nativeDrawFrame(JNIEnv env,
1080
+ JClass,
1081
+ JObject surface_texture_object,
1082
+ bool flip_y_web_gl,
1083
+ jint fbo,
1084
+ jint rbo,
1085
+ jint program,
1086
+ jint external_texture,
1087
+ jint sampler_pos,
1088
+ jint array_buffer,
1089
+ jint pos,
1090
+ jfloatArray matrix,
1091
+ jint matrix_pos,
1092
+ jint width,
1093
+ jint height,
1094
+ jint render_width,
1095
+ jint render_height,
1096
+ jint internal_format,
1097
+ jint format,
1098
+ jint draw_count);
1099
+ #endif
1100
+
1101
+ #if defined(TARGET_OS_ANDROID)
1102
+ void Java_org_nativescript_canvas_TNSWebGL2RenderingContext_nativeFlipInPlace3D(JNIEnv env,
1103
+ JClass,
1104
+ JByteBuffer pixels,
1105
+ jint bytesPerPixel,
1106
+ jint height,
1107
+ jint depth);
1108
+ #endif
1109
+
1110
+ #if defined(TARGET_OS_ANDROID)
1111
+ void Java_org_nativescript_canvas_TNSWebGL2RenderingContext_nativeTexImage3DBuffer(JNIEnv env,
1112
+ JClass,
1113
+ jint target,
1114
+ jint level,
1115
+ jint internalformat,
1116
+ jint width,
1117
+ jint height,
1118
+ jint depth,
1119
+ jint border,
1120
+ jint format,
1121
+ jint image_type,
1122
+ JByteBuffer buffer,
1123
+ jboolean flipY);
1124
+ #endif
1125
+
1126
+ #if defined(TARGET_OS_ANDROID)
1127
+ void Java_org_nativescript_canvas_TNSWebGL2RenderingContext_nativeTexImage3DByteArray(JNIEnv env,
1128
+ JClass,
1129
+ jint target,
1130
+ jint level,
1131
+ jint internalformat,
1132
+ jint width,
1133
+ jint height,
1134
+ jint depth,
1135
+ jint border,
1136
+ jint format,
1137
+ jint image_type,
1138
+ jbyteArray byteArray,
1139
+ jboolean flipY);
1140
+ #endif
1141
+
1142
+ #if defined(TARGET_OS_ANDROID)
1143
+ void Java_org_nativescript_canvas_TNSWebGL2RenderingContext_nativeTexImage3DShortArray(JNIEnv env,
1144
+ JClass,
1145
+ jint target,
1146
+ jint level,
1147
+ jint internalformat,
1148
+ jint width,
1149
+ jint height,
1150
+ jint depth,
1151
+ jint border,
1152
+ jint format,
1153
+ jint image_type,
1154
+ jshortArray shortArray,
1155
+ jboolean flipY);
1156
+ #endif
1157
+
1158
+ #if defined(TARGET_OS_ANDROID)
1159
+ void Java_org_nativescript_canvas_TNSWebGL2RenderingContext_nativeTexImage3DIntArray(JNIEnv env,
1160
+ JClass,
1161
+ jint target,
1162
+ jint level,
1163
+ jint internalformat,
1164
+ jint width,
1165
+ jint height,
1166
+ jint depth,
1167
+ jint border,
1168
+ jint format,
1169
+ jint image_type,
1170
+ jintArray intArray,
1171
+ jboolean flipY);
1172
+ #endif
1173
+
1174
+ #if defined(TARGET_OS_ANDROID)
1175
+ void Java_org_nativescript_canvas_TNSWebGL2RenderingContext_nativeTexImage3DFloatArray(JNIEnv env,
1176
+ JClass,
1177
+ jint target,
1178
+ jint level,
1179
+ jint internalformat,
1180
+ jint width,
1181
+ jint height,
1182
+ jint depth,
1183
+ jint border,
1184
+ jint format,
1185
+ jint image_type,
1186
+ jfloatArray floatArray,
1187
+ jboolean flipY);
1188
+ #endif
1189
+
1190
+ #if defined(TARGET_OS_ANDROID)
1191
+ void Java_org_nativescript_canvas_TNSWebGL2RenderingContext_nativeTexImage3DDoubleArray(JNIEnv env,
1192
+ JClass,
1193
+ jint target,
1194
+ jint level,
1195
+ jint internalformat,
1196
+ jint width,
1197
+ jint height,
1198
+ jint depth,
1199
+ jint border,
1200
+ jint format,
1201
+ jint image_type,
1202
+ jdoubleArray doubleArray,
1203
+ jboolean flipY);
1204
+ #endif
1205
+
1206
+ #if defined(TARGET_OS_ANDROID)
1207
+ void Java_org_nativescript_canvas_TNSWebGL2RenderingContext_nativeTexImage3DLongArray(JNIEnv env,
1208
+ JClass,
1209
+ jint target,
1210
+ jint level,
1211
+ jint internalformat,
1212
+ jint width,
1213
+ jint height,
1214
+ jint depth,
1215
+ jint border,
1216
+ jint format,
1217
+ jint image_type,
1218
+ jlongArray longArray,
1219
+ jboolean flipY);
1220
+ #endif
1221
+
1222
+ #if defined(TARGET_OS_ANDROID)
1223
+ void Java_org_nativescript_canvas_TNSWebGL2RenderingContext_nativeTexImage3DAsset(JNIEnv _env,
1224
+ JClass,
1225
+ jint target,
1226
+ jint level,
1227
+ jint internalformat,
1228
+ jint width,
1229
+ jint height,
1230
+ jint depth,
1231
+ jint border,
1232
+ jint format,
1233
+ jint image_type,
1234
+ jlong asset,
1235
+ jboolean flipY);
1236
+ #endif
1237
+
1238
+ #if defined(TARGET_OS_ANDROID)
1239
+ void Java_org_nativescript_canvas_TNSWebGL2RenderingContext_nativeTexImage3DBitmap(JNIEnv env,
1240
+ JClass,
1241
+ jint target,
1242
+ jint level,
1243
+ jint internalformat,
1244
+ jint width,
1245
+ jint height,
1246
+ jint depth,
1247
+ jint border,
1248
+ jint format,
1249
+ jint image_type,
1250
+ JObject bitmap,
1251
+ jboolean flipY);
1252
+ #endif
1253
+
1254
+ #if defined(TARGET_OS_ANDROID)
1255
+ void Java_org_nativescript_canvas_TNSWebGL2RenderingContext_nativeTexSubImage3DBuffer(JNIEnv env,
1256
+ JClass,
1257
+ jint target,
1258
+ jint level,
1259
+ jint xoffset,
1260
+ jint yoffset,
1261
+ jint zoffset,
1262
+ jint width,
1263
+ jint height,
1264
+ jint depth,
1265
+ jint format,
1266
+ jint image_type,
1267
+ JByteBuffer buffer,
1268
+ jboolean flipY);
1269
+ #endif
1270
+
1271
+ #if defined(TARGET_OS_ANDROID)
1272
+ void Java_org_nativescript_canvas_TNSWebGL2RenderingContext_nativeTexSubImage3DByteArray(JNIEnv env,
1273
+ JClass,
1274
+ jint target,
1275
+ jint level,
1276
+ jint xoffset,
1277
+ jint yoffset,
1278
+ jint zoffset,
1279
+ jint width,
1280
+ jint height,
1281
+ jint depth,
1282
+ jint format,
1283
+ jint image_type,
1284
+ jbyteArray byteArray,
1285
+ jboolean flipY);
1286
+ #endif
1287
+
1288
+ #if defined(TARGET_OS_ANDROID)
1289
+ void Java_org_nativescript_canvas_TNSWebGL2RenderingContext_nativeTexSubImage3DShortArray(JNIEnv env,
1290
+ JClass,
1291
+ jint target,
1292
+ jint level,
1293
+ jint xoffset,
1294
+ jint yoffset,
1295
+ jint zoffset,
1296
+ jint width,
1297
+ jint height,
1298
+ jint depth,
1299
+ jint format,
1300
+ jint image_type,
1301
+ jshortArray shortArray,
1302
+ jboolean flipY);
1303
+ #endif
1304
+
1305
+ #if defined(TARGET_OS_ANDROID)
1306
+ void Java_org_nativescript_canvas_TNSWebGL2RenderingContext_nativeTexSubImage3DIntArray(JNIEnv env,
1307
+ JClass,
1308
+ jint target,
1309
+ jint level,
1310
+ jint xoffset,
1311
+ jint yoffset,
1312
+ jint zoffset,
1313
+ jint width,
1314
+ jint height,
1315
+ jint depth,
1316
+ jint format,
1317
+ jint image_type,
1318
+ jintArray intArray,
1319
+ jboolean flipY);
1320
+ #endif
1321
+
1322
+ #if defined(TARGET_OS_ANDROID)
1323
+ void Java_org_nativescript_canvas_TNSWebGL2RenderingContext_nativeTexSubImage3DLongArray(JNIEnv env,
1324
+ JClass,
1325
+ jint target,
1326
+ jint level,
1327
+ jint xoffset,
1328
+ jint yoffset,
1329
+ jint zoffset,
1330
+ jint width,
1331
+ jint height,
1332
+ jint depth,
1333
+ jint format,
1334
+ jint image_type,
1335
+ jlongArray longArray,
1336
+ jboolean flipY);
1337
+ #endif
1338
+
1339
+ #if defined(TARGET_OS_ANDROID)
1340
+ void Java_org_nativescript_canvas_TNSWebGL2RenderingContext_nativeTexSubImage3DFloatArray(JNIEnv env,
1341
+ JClass,
1342
+ jint target,
1343
+ jint level,
1344
+ jint xoffset,
1345
+ jint yoffset,
1346
+ jint zoffset,
1347
+ jint width,
1348
+ jint height,
1349
+ jint depth,
1350
+ jint format,
1351
+ jint image_type,
1352
+ jfloatArray floatArray,
1353
+ jboolean flipY);
1354
+ #endif
1355
+
1356
+ #if defined(TARGET_OS_ANDROID)
1357
+ void Java_org_nativescript_canvas_TNSWebGL2RenderingContext_nativeTexSubImage3DDoubleArray(JNIEnv env,
1358
+ JClass,
1359
+ jint target,
1360
+ jint level,
1361
+ jint xoffset,
1362
+ jint yoffset,
1363
+ jint zoffset,
1364
+ jint width,
1365
+ jint height,
1366
+ jint depth,
1367
+ jint format,
1368
+ jint image_type,
1369
+ jdoubleArray doubleArray,
1370
+ jboolean flipY);
1371
+ #endif
1372
+
1373
+ #if defined(TARGET_OS_ANDROID)
1374
+ void Java_org_nativescript_canvas_TNSWebGL2RenderingContext_nativeTexSubImage3DAsset(JNIEnv _env,
1375
+ JClass,
1376
+ jint target,
1377
+ jint level,
1378
+ jint xoffset,
1379
+ jint yoffset,
1380
+ jint zoffset,
1381
+ jint width,
1382
+ jint height,
1383
+ jint depth,
1384
+ jint format,
1385
+ jint image_type,
1386
+ jlong asset,
1387
+ jboolean flipY);
1388
+ #endif
1389
+
1390
+ #if defined(TARGET_OS_ANDROID)
1391
+ void Java_org_nativescript_canvas_TNSWebGL2RenderingContext_nativeTexSubImage3DBitmap(JNIEnv env,
1392
+ JClass,
1393
+ jint target,
1394
+ jint level,
1395
+ jint xoffset,
1396
+ jint yoffset,
1397
+ jint zoffset,
1398
+ jint width,
1399
+ jint height,
1400
+ jint depth,
1401
+ jint format,
1402
+ jint image_type,
1403
+ JObject bitmap,
1404
+ jboolean flipY);
1405
+ #endif
1406
+
1407
+ #if defined(TARGET_OS_ANDROID)
1408
+ void Java_org_nativescript_canvas_TNSWebGLRenderingContext_nativeTexImage2DTexture(JNIEnv _env,
1409
+ JClass,
1410
+ jint width,
1411
+ jint height,
1412
+ jint src_texture);
1413
+ #endif
1414
+
1415
+ #if defined(TARGET_OS_ANDROID)
1416
+ void Java_org_nativescript_canvas_TNSWebGLRenderingContext_nativeFlipBufferInPlace(JNIEnv env,
1417
+ JClass,
1418
+ JByteBuffer pixels,
1419
+ jint bytesPerPixel,
1420
+ jint height);
1421
+ #endif
1422
+
1423
+ #if defined(TARGET_OS_ANDROID)
1424
+ void Java_org_nativescript_canvas_TNSWebGLRenderingContext_nativeGetVertexAttribOffset(JNIEnv env,
1425
+ JClass,
1426
+ jint index,
1427
+ jint pname,
1428
+ JByteBuffer buffer);
1429
+ #endif
1430
+
1431
+ #if defined(TARGET_OS_ANDROID)
1432
+ void Java_org_nativescript_canvas_TNSWebGLRenderingContext_nativeBindBuffer(JNIEnv _env,
1433
+ JClass,
1434
+ jint target,
1435
+ jint buffer);
1436
+ #endif
1437
+
1438
+ #if defined(TARGET_OS_ANDROID)
1439
+ void Java_org_nativescript_canvas_TNSWebGLRenderingContext_nativeReadPixels(JNIEnv _env,
1440
+ JClass,
1441
+ jint x,
1442
+ jint y,
1443
+ jint width,
1444
+ jint height,
1445
+ jint format,
1446
+ jint pixel_type);
1447
+ #endif
1448
+
1449
+ #if defined(TARGET_OS_ANDROID)
1450
+ void Java_org_nativescript_canvas_TNSWebGLRenderingContext_nativeTexImage2DByteArray(JNIEnv env,
1451
+ JClass,
1452
+ jint target,
1453
+ jint level,
1454
+ jint internalformat,
1455
+ jint width,
1456
+ jint height,
1457
+ jint border,
1458
+ jint format,
1459
+ jint image_type,
1460
+ jbyteArray byteArray,
1461
+ jboolean flipY);
1462
+ #endif
1463
+
1464
+ #if defined(TARGET_OS_ANDROID)
1465
+ void Java_org_nativescript_canvas_TNSWebGLRenderingContext_nativeTexImage2DShortArray(JNIEnv env,
1466
+ JClass,
1467
+ jint target,
1468
+ jint level,
1469
+ jint internalformat,
1470
+ jint width,
1471
+ jint height,
1472
+ jint border,
1473
+ jint format,
1474
+ jint image_type,
1475
+ jshortArray shortArray,
1476
+ jboolean flipY);
1477
+ #endif
1478
+
1479
+ #if defined(TARGET_OS_ANDROID)
1480
+ void Java_org_nativescript_canvas_TNSWebGLRenderingContext_nativeTexImage2DIntArray(JNIEnv env,
1481
+ JClass,
1482
+ jint target,
1483
+ jint level,
1484
+ jint internalformat,
1485
+ jint width,
1486
+ jint height,
1487
+ jint border,
1488
+ jint format,
1489
+ jint image_type,
1490
+ jintArray intArray,
1491
+ jboolean flipY);
1492
+ #endif
1493
+
1494
+ #if defined(TARGET_OS_ANDROID)
1495
+ void Java_org_nativescript_canvas_TNSWebGLRenderingContext_nativeTexImage2DFloatArray(JNIEnv env,
1496
+ JClass,
1497
+ jint target,
1498
+ jint level,
1499
+ jint internalformat,
1500
+ jint width,
1501
+ jint height,
1502
+ jint border,
1503
+ jint format,
1504
+ jint image_type,
1505
+ jfloatArray floatArray,
1506
+ jboolean flipY);
1507
+ #endif
1508
+
1509
+ #if defined(TARGET_OS_ANDROID)
1510
+ void Java_org_nativescript_canvas_TNSWebGLRenderingContext_nativeTexImage2DBuffer(JNIEnv env,
1511
+ JClass,
1512
+ jint target,
1513
+ jint level,
1514
+ jint internalformat,
1515
+ jint width,
1516
+ jint height,
1517
+ jint border,
1518
+ jint format,
1519
+ jint image_type,
1520
+ JByteBuffer buffer,
1521
+ jboolean flipY);
1522
+ #endif
1523
+
1524
+ #if defined(TARGET_OS_ANDROID)
1525
+ void Java_org_nativescript_canvas_TNSWebGLRenderingContext_nativeTexImage2DAsset(JNIEnv _env,
1526
+ JClass,
1527
+ jint target,
1528
+ jint level,
1529
+ jint internalformat,
1530
+ jint border,
1531
+ jint format,
1532
+ jint image_type,
1533
+ jlong asset,
1534
+ jboolean flipY);
1535
+ #endif
1536
+
1537
+ #if defined(TARGET_OS_ANDROID)
1538
+ void Java_org_nativescript_canvas_TNSWebGLRenderingContext_nativeTexImage2DBitmap(JNIEnv env,
1539
+ JClass,
1540
+ jint target,
1541
+ jint level,
1542
+ jint internalformat,
1543
+ jint width,
1544
+ jint height,
1545
+ jint border,
1546
+ jint format,
1547
+ jint image_type,
1548
+ JObject bitmap,
1549
+ jboolean flipY);
1550
+ #endif
1551
+
1552
+ #if defined(TARGET_OS_ANDROID)
1553
+ void Java_org_nativescript_canvas_TNSWebGLRenderingContext_nativeTexSubImage2DByteArray(JNIEnv env,
1554
+ JClass,
1555
+ jint target,
1556
+ jint level,
1557
+ jint xoffset,
1558
+ jint yoffset,
1559
+ jint width,
1560
+ jint height,
1561
+ jint format,
1562
+ jint image_type,
1563
+ jbyteArray byteArray,
1564
+ jboolean flip_y);
1565
+ #endif
1566
+
1567
+ #if defined(TARGET_OS_ANDROID)
1568
+ void Java_org_nativescript_canvas_TNSWebGLRenderingContext_nativeTexSubImage2DShortArray(JNIEnv env,
1569
+ JClass,
1570
+ jint target,
1571
+ jint level,
1572
+ jint xoffset,
1573
+ jint yoffset,
1574
+ jint width,
1575
+ jint height,
1576
+ jint format,
1577
+ jint image_type,
1578
+ jshortArray shortArray,
1579
+ jboolean flip_y);
1580
+ #endif
1581
+
1582
+ #if defined(TARGET_OS_ANDROID)
1583
+ void Java_org_nativescript_canvas_TNSWebGLRenderingContext_nativeTexSubImage2DIntArray(JNIEnv env,
1584
+ JClass,
1585
+ jint target,
1586
+ jint level,
1587
+ jint xoffset,
1588
+ jint yoffset,
1589
+ jint width,
1590
+ jint height,
1591
+ jint format,
1592
+ jint image_type,
1593
+ jintArray intArray,
1594
+ jboolean flip_y);
1595
+ #endif
1596
+
1597
+ #if defined(TARGET_OS_ANDROID)
1598
+ void Java_org_nativescript_canvas_TNSWebGLRenderingContext_nativeTexSubImage2DFloatArray(JNIEnv env,
1599
+ JClass,
1600
+ jint target,
1601
+ jint level,
1602
+ jint xoffset,
1603
+ jint yoffset,
1604
+ jint width,
1605
+ jint height,
1606
+ jint format,
1607
+ jint image_type,
1608
+ jfloatArray floatArray,
1609
+ jboolean flip_y);
1610
+ #endif
1611
+
1612
+ #if defined(TARGET_OS_ANDROID)
1613
+ void Java_org_nativescript_canvas_TNSWebGLRenderingContext_nativeTexSubImage2DBuffer(JNIEnv env,
1614
+ JClass,
1615
+ jint target,
1616
+ jint level,
1617
+ jint xoffset,
1618
+ jint yoffset,
1619
+ jint width,
1620
+ jint height,
1621
+ jint format,
1622
+ jint image_type,
1623
+ JByteBuffer buffer,
1624
+ jboolean flip_y);
1625
+ #endif
1626
+
1627
+ #if defined(TARGET_OS_ANDROID)
1628
+ void Java_org_nativescript_canvas_TNSWebGLRenderingContext_nativeTexSubImage2DAsset(JNIEnv _env,
1629
+ JClass,
1630
+ jint target,
1631
+ jint level,
1632
+ jint xoffset,
1633
+ jint yoffset,
1634
+ jint width,
1635
+ jint height,
1636
+ jint format,
1637
+ jint image_type,
1638
+ jlong asset,
1639
+ jboolean flip_y);
1640
+ #endif
1641
+
1642
+ #if defined(TARGET_OS_ANDROID)
1643
+ void Java_org_nativescript_canvas_TNSWebGLRenderingContext_nativeTexSubImage2DBitmap(JNIEnv env,
1644
+ JClass,
1645
+ jint target,
1646
+ jint level,
1647
+ jint xoffset,
1648
+ jint yoffset,
1649
+ jint width,
1650
+ jint height,
1651
+ jint format,
1652
+ jint image_type,
1653
+ JObject bitmap,
1654
+ jboolean flip_y);
1655
+ #endif
1656
+
1657
+ #if defined(TARGET_OS_ANDROID)
1658
+ void Java_org_nativescript_canvas_TNSWebGLRenderingContext_nativeVertexAttribPointer(JNIEnv _env,
1659
+ JClass,
1660
+ jint index,
1661
+ jint size,
1662
+ jint pointer_type,
1663
+ jboolean normalized,
1664
+ jint stride,
1665
+ jlong offset);
1666
+ #endif
1667
+
1668
+ #if defined(TARGET_OS_ANDROID)
1669
+ void Java_org_nativescript_canvas_TNSCanvasGradient_nativeAddColorStop(JNIEnv env,
1670
+ JClass,
1671
+ long long style,
1672
+ float stop,
1673
+ JString color);
1674
+ #endif
1675
+
1676
+ #if defined(TARGET_OS_ANDROID)
1677
+ jlong Java_org_nativescript_canvas_TNSImageAsset_nativeInit(JNIEnv, JClass);
1678
+ #endif
1679
+
1680
+ #if defined(TARGET_OS_ANDROID)
1681
+ jbyteArray Java_org_nativescript_canvas_TNSImageAsset_nativeGetBytes(JNIEnv env,
1682
+ JClass,
1683
+ jlong asset);
1684
+ #endif
1685
+
1686
+ #if defined(TARGET_OS_ANDROID)
1687
+ jint Java_org_nativescript_canvas_TNSImageAsset_nativeGetWidth(JNIEnv _env, JClass, jlong asset);
1688
+ #endif
1689
+
1690
+ #if defined(TARGET_OS_ANDROID)
1691
+ jint Java_org_nativescript_canvas_TNSImageAsset_nativeGetHeight(JNIEnv _env, JClass, jlong asset);
1692
+ #endif
1693
+
1694
+ #if defined(TARGET_OS_ANDROID)
1695
+ jboolean Java_org_nativescript_canvas_TNSImageAsset_nativeScale(JNIEnv _env,
1696
+ JClass,
1697
+ jlong asset,
1698
+ jint x,
1699
+ jint y);
1700
+ #endif
1701
+
1702
+ #if defined(TARGET_OS_ANDROID)
1703
+ jboolean Java_org_nativescript_canvas_TNSImageAsset_nativeFlipX(JNIEnv _env, JClass, jlong asset);
1704
+ #endif
1705
+
1706
+ #if defined(TARGET_OS_ANDROID)
1707
+ jboolean Java_org_nativescript_canvas_TNSImageAsset_nativeFlipY(JNIEnv _env, JClass, jlong asset);
1708
+ #endif
1709
+
1710
+ #if defined(TARGET_OS_ANDROID)
1711
+ jboolean Java_org_nativescript_canvas_TNSImageAsset_nativeSave(JNIEnv env,
1712
+ JClass,
1713
+ jlong asset,
1714
+ JString path,
1715
+ jint format);
1716
+ #endif
1717
+
1718
+ #if defined(TARGET_OS_ANDROID)
1719
+ jstring Java_org_nativescript_canvas_TNSImageAsset_nativeGetError(JNIEnv env, JClass, jlong asset);
1720
+ #endif
1721
+
1722
+ #if defined(TARGET_OS_ANDROID)
1723
+ jboolean Java_org_nativescript_canvas_TNSImageAsset_nativeHasError(JNIEnv _env,
1724
+ JClass,
1725
+ jlong asset);
1726
+ #endif
1727
+
1728
+ #if defined(TARGET_OS_ANDROID)
1729
+ void Java_org_nativescript_canvas_TNSImageAsset_nativeDestroy(JNIEnv _env, JClass, jlong asset);
1730
+ #endif
1731
+
1732
+ #if defined(TARGET_OS_ANDROID)
1733
+ jboolean Java_org_nativescript_canvas_TNSImageAsset_nativeLoadAssetPath(JNIEnv env,
1734
+ JClass,
1735
+ jlong asset,
1736
+ JString path);
1737
+ #endif
1738
+
1739
+ #if defined(TARGET_OS_ANDROID)
1740
+ jboolean Java_org_nativescript_canvas_TNSImageAsset_nativeLoadAssetBytes(JNIEnv env,
1741
+ JClass,
1742
+ jlong asset,
1743
+ jbyteArray buffer);
1744
+ #endif
1745
+
1746
+ #if defined(TARGET_OS_ANDROID)
1747
+ jlong Java_org_nativescript_canvas_TNSImageBitmap_nativeCreateFromBuffer(JNIEnv env,
1748
+ JClass,
1749
+ JByteBuffer image_buffer,
1750
+ jfloat image_width,
1751
+ jfloat image_height,
1752
+ jboolean flip_y,
1753
+ jint premultiply_alpha,
1754
+ jint color_space_conversion,
1755
+ jint resize_quality,
1756
+ jfloat resize_width,
1757
+ jfloat resize_height);
1758
+ #endif
1759
+
1760
+ #if defined(TARGET_OS_ANDROID)
1761
+ jlong Java_org_nativescript_canvas_TNSImageBitmap_nativeCreateFromBufferSrcRect(JNIEnv env,
1762
+ JClass,
1763
+ JByteBuffer image_buffer,
1764
+ jfloat image_width,
1765
+ jfloat image_height,
1766
+ jfloat sx,
1767
+ jfloat sy,
1768
+ jfloat s_width,
1769
+ jfloat s_height,
1770
+ jboolean flip_y,
1771
+ jint premultiply_alpha,
1772
+ jint color_space_conversion,
1773
+ jint resize_quality,
1774
+ jfloat resize_width,
1775
+ jfloat resize_height);
1776
+ #endif
1777
+
1778
+ #if defined(TARGET_OS_ANDROID)
1779
+ jlong Java_org_nativescript_canvas_TNSImageBitmap_nativeCreateFromBufferEncoded(JNIEnv env,
1780
+ JClass,
1781
+ JByteBuffer image_buffer,
1782
+ jboolean flip_y,
1783
+ jint premultiply_alpha,
1784
+ jint color_space_conversion,
1785
+ jint resize_quality,
1786
+ jfloat resize_width,
1787
+ jfloat resize_height);
1788
+ #endif
1789
+
1790
+ #if defined(TARGET_OS_ANDROID)
1791
+ jlong Java_org_nativescript_canvas_TNSImageBitmap_nativeCreateFromBufferEncodedSrcRect(JNIEnv env,
1792
+ JClass,
1793
+ JByteBuffer image_buffer,
1794
+ jfloat sx,
1795
+ jfloat sy,
1796
+ jfloat s_width,
1797
+ jfloat s_height,
1798
+ jboolean flip_y,
1799
+ jint premultiply_alpha,
1800
+ jint color_space_conversion,
1801
+ jint resize_quality,
1802
+ jfloat resize_width,
1803
+ jfloat resize_height);
1804
+ #endif
1805
+
1806
+ #if defined(TARGET_OS_ANDROID)
1807
+ jlong Java_org_nativescript_canvas_TNSImageBitmap_nativeCreateFromBytes(JNIEnv env,
1808
+ JClass,
1809
+ jbyteArray image_bytes,
1810
+ jfloat image_width,
1811
+ jfloat image_height,
1812
+ jboolean flip_y,
1813
+ jint premultiply_alpha,
1814
+ jint color_space_conversion,
1815
+ jint resize_quality,
1816
+ jfloat resize_width,
1817
+ jfloat resize_height);
1818
+ #endif
1819
+
1820
+ #if defined(TARGET_OS_ANDROID)
1821
+ jlong Java_org_nativescript_canvas_TNSImageBitmap_nativeCreateFromBytesSrcRect(JNIEnv env,
1822
+ JClass,
1823
+ jbyteArray image_bytes,
1824
+ jfloat image_width,
1825
+ jfloat image_height,
1826
+ jfloat sx,
1827
+ jfloat sy,
1828
+ jfloat s_width,
1829
+ jfloat s_height,
1830
+ jboolean flip_y,
1831
+ jint premultiply_alpha,
1832
+ jint color_space_conversion,
1833
+ jint resize_quality,
1834
+ jfloat resize_width,
1835
+ jfloat resize_height);
1836
+ #endif
1837
+
1838
+ #if defined(TARGET_OS_ANDROID)
1839
+ jlong Java_org_nativescript_canvas_TNSImageBitmap_nativeCreateFromBytesEncoded(JNIEnv env,
1840
+ JClass,
1841
+ jbyteArray image_bytes,
1842
+ jboolean flip_y,
1843
+ jint premultiply_alpha,
1844
+ jint color_space_conversion,
1845
+ jint resize_quality,
1846
+ jfloat resize_width,
1847
+ jfloat resize_height);
1848
+ #endif
1849
+
1850
+ #if defined(TARGET_OS_ANDROID)
1851
+ jlong Java_org_nativescript_canvas_TNSImageBitmap_nativeCreateFromBytesEncodedSrcRect(JNIEnv env,
1852
+ JClass,
1853
+ jbyteArray image_bytes,
1854
+ jfloat sx,
1855
+ jfloat sy,
1856
+ jfloat s_width,
1857
+ jfloat s_height,
1858
+ jboolean flip_y,
1859
+ jint premultiply_alpha,
1860
+ jint color_space_conversion,
1861
+ jint resize_quality,
1862
+ jfloat resize_width,
1863
+ jfloat resize_height);
1864
+ #endif
1865
+
1866
+ #if defined(TARGET_OS_ANDROID)
1867
+ jlong Java_org_nativescript_canvas_TNSImageBitmap_nativeCreateFromAsset(JNIEnv,
1868
+ JClass,
1869
+ jlong asset,
1870
+ jboolean flip_y,
1871
+ jint premultiply_alpha,
1872
+ jint color_space_conversion,
1873
+ jint resize_quality,
1874
+ jfloat resize_width,
1875
+ jfloat resize_height);
1876
+ #endif
1877
+
1878
+ #if defined(TARGET_OS_ANDROID)
1879
+ jlong Java_org_nativescript_canvas_TNSImageBitmap_nativeCreateFromAssetSrcRect(JNIEnv,
1880
+ JClass,
1881
+ jlong asset,
1882
+ jfloat sx,
1883
+ jfloat sy,
1884
+ jfloat s_width,
1885
+ jfloat s_height,
1886
+ jboolean flip_y,
1887
+ jint premultiply_alpha,
1888
+ jint color_space_conversion,
1889
+ jint resize_quality,
1890
+ jfloat resize_width,
1891
+ jfloat resize_height);
1892
+ #endif
1893
+
1894
+ #if defined(TARGET_OS_ANDROID)
1895
+ jlong Java_org_nativescript_canvas_TNSImageBitmap_nativeCreateFromBitmap(JNIEnv env,
1896
+ JClass,
1897
+ JObject bitmap,
1898
+ jboolean flip_y,
1899
+ jint premultiply_alpha,
1900
+ jint color_space_conversion,
1901
+ jint resize_quality,
1902
+ jfloat resize_width,
1903
+ jfloat resize_height);
1904
+ #endif
1905
+
1906
+ #if defined(TARGET_OS_ANDROID)
1907
+ jlong Java_org_nativescript_canvas_TNSImageBitmap_nativeCreateFromBitmapSrcRect(JNIEnv env,
1908
+ JClass,
1909
+ JObject bitmap,
1910
+ jfloat sx,
1911
+ jfloat sy,
1912
+ jfloat s_width,
1913
+ jfloat s_height,
1914
+ jboolean flip_y,
1915
+ jint premultiply_alpha,
1916
+ jint color_space_conversion,
1917
+ jint resize_quality,
1918
+ jfloat resize_width,
1919
+ jfloat resize_height);
1920
+ #endif
1921
+
1922
+ #if defined(TARGET_OS_ANDROID)
1923
+ jlong Java_org_nativescript_canvas_TNSImageBitmap_nativeCreateFromImageData(JNIEnv,
1924
+ JClass,
1925
+ jlong image_data,
1926
+ jboolean flip_y,
1927
+ jint premultiply_alpha,
1928
+ jint color_space_conversion,
1929
+ jint resize_quality,
1930
+ jfloat resize_width,
1931
+ jfloat resize_height);
1932
+ #endif
1933
+
1934
+ #if defined(TARGET_OS_ANDROID)
1935
+ jlong Java_org_nativescript_canvas_TNSImageBitmap_nativeCreateFromImageDataSrcRect(JNIEnv,
1936
+ JClass,
1937
+ jlong image_data,
1938
+ jfloat sx,
1939
+ jfloat sy,
1940
+ jfloat s_width,
1941
+ jfloat s_height,
1942
+ jboolean flip_y,
1943
+ jint premultiply_alpha,
1944
+ jint color_space_conversion,
1945
+ jint resize_quality,
1946
+ jfloat resize_width,
1947
+ jfloat resize_height);
1948
+ #endif
1949
+
1950
+ #if defined(TARGET_OS_ANDROID)
1951
+ jlong Java_org_nativescript_canvas_TNSImageData_nativeInit(JNIEnv, JClass, jint width, jint height);
1952
+ #endif
1953
+
1954
+ #if defined(TARGET_OS_ANDROID)
1955
+ jint Java_org_nativescript_canvas_TNSImageData_nativeWidth(JNIEnv, JClass, jlong image_data);
1956
+ #endif
1957
+
1958
+ #if defined(TARGET_OS_ANDROID)
1959
+ jint Java_org_nativescript_canvas_TNSImageData_nativeHeight(JNIEnv, JClass, jlong image_data);
1960
+ #endif
1961
+
1962
+ #if defined(TARGET_OS_ANDROID)
1963
+ jobject Java_org_nativescript_canvas_TNSImageData_nativeData(JNIEnv env, JClass, jlong image_data);
1964
+ #endif
1965
+
1966
+ #if defined(TARGET_OS_ANDROID)
1967
+ jint Java_org_nativescript_canvas_TNSImageData_nativeDataLength(JNIEnv, JClass, jlong image_data);
1968
+ #endif
1969
+
1970
+ #if defined(TARGET_OS_ANDROID)
1971
+ void Java_org_nativescript_canvas_TNSImageData_nativeDestroy(JNIEnv, JClass, jlong image_data);
1972
+ #endif
1973
+
1974
+ #if defined(TARGET_OS_ANDROID)
1975
+ jlong Java_org_nativescript_canvas_TNSDOMMatrix_nativeInit(JNIEnv, JClass);
1976
+ #endif
1977
+
1978
+ #if defined(TARGET_OS_ANDROID)
1979
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeUpdate(JNIEnv env,
1980
+ JClass,
1981
+ jlong matrix,
1982
+ jfloatArray data);
1983
+ #endif
1984
+
1985
+ #if defined(TARGET_OS_ANDROID)
1986
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeA(JNIEnv, JClass, jlong matrix);
1987
+ #endif
1988
+
1989
+ #if defined(TARGET_OS_ANDROID)
1990
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetA(JNIEnv, JClass, jlong matrix, jfloat a);
1991
+ #endif
1992
+
1993
+ #if defined(TARGET_OS_ANDROID)
1994
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeB(JNIEnv, JClass, jlong matrix);
1995
+ #endif
1996
+
1997
+ #if defined(TARGET_OS_ANDROID)
1998
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetB(JNIEnv, JClass, jlong matrix, jfloat b);
1999
+ #endif
2000
+
2001
+ #if defined(TARGET_OS_ANDROID)
2002
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeC(JNIEnv, JClass, jlong matrix);
2003
+ #endif
2004
+
2005
+ #if defined(TARGET_OS_ANDROID)
2006
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetC(JNIEnv, JClass, jlong matrix, jfloat c);
2007
+ #endif
2008
+
2009
+ #if defined(TARGET_OS_ANDROID)
2010
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeD(JNIEnv, JClass, jlong matrix);
2011
+ #endif
2012
+
2013
+ #if defined(TARGET_OS_ANDROID)
2014
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetD(JNIEnv, JClass, jlong matrix, jfloat d);
2015
+ #endif
2016
+
2017
+ #if defined(TARGET_OS_ANDROID)
2018
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeE(JNIEnv, JClass, jlong matrix);
2019
+ #endif
2020
+
2021
+ #if defined(TARGET_OS_ANDROID)
2022
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetE(JNIEnv, JClass, jlong matrix, jfloat e);
2023
+ #endif
2024
+
2025
+ #if defined(TARGET_OS_ANDROID)
2026
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeF(JNIEnv, JClass, jlong matrix);
2027
+ #endif
2028
+
2029
+ #if defined(TARGET_OS_ANDROID)
2030
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetF(JNIEnv, JClass, jlong matrix, jfloat f);
2031
+ #endif
2032
+
2033
+ #if defined(TARGET_OS_ANDROID)
2034
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeM11(JNIEnv, JClass, jlong matrix);
2035
+ #endif
2036
+
2037
+ #if defined(TARGET_OS_ANDROID)
2038
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetM11(JNIEnv,
2039
+ JClass,
2040
+ jlong matrix,
2041
+ jfloat m11);
2042
+ #endif
2043
+
2044
+ #if defined(TARGET_OS_ANDROID)
2045
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeM12(JNIEnv, JClass, jlong matrix);
2046
+ #endif
2047
+
2048
+ #if defined(TARGET_OS_ANDROID)
2049
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetM12(JNIEnv,
2050
+ JClass,
2051
+ jlong matrix,
2052
+ jfloat m12);
2053
+ #endif
2054
+
2055
+ #if defined(TARGET_OS_ANDROID)
2056
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeM13(JNIEnv, JClass, jlong matrix);
2057
+ #endif
2058
+
2059
+ #if defined(TARGET_OS_ANDROID)
2060
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetM13(JNIEnv,
2061
+ JClass,
2062
+ jlong matrix,
2063
+ jfloat m13);
2064
+ #endif
2065
+
2066
+ #if defined(TARGET_OS_ANDROID)
2067
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeM14(JNIEnv, JClass, jlong matrix);
2068
+ #endif
2069
+
2070
+ #if defined(TARGET_OS_ANDROID)
2071
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetM14(JNIEnv,
2072
+ JClass,
2073
+ jlong matrix,
2074
+ jfloat m14);
2075
+ #endif
2076
+
2077
+ #if defined(TARGET_OS_ANDROID)
2078
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeM21(JNIEnv, JClass, jlong matrix);
2079
+ #endif
2080
+
2081
+ #if defined(TARGET_OS_ANDROID)
2082
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetM21(JNIEnv,
2083
+ JClass,
2084
+ jlong matrix,
2085
+ jfloat m21);
2086
+ #endif
2087
+
2088
+ #if defined(TARGET_OS_ANDROID)
2089
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeM22(JNIEnv, JClass, jlong matrix);
2090
+ #endif
2091
+
2092
+ #if defined(TARGET_OS_ANDROID)
2093
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetM22(JNIEnv,
2094
+ JClass,
2095
+ jlong matrix,
2096
+ jfloat m22);
2097
+ #endif
2098
+
2099
+ #if defined(TARGET_OS_ANDROID)
2100
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeM23(JNIEnv, JClass, jlong matrix);
2101
+ #endif
2102
+
2103
+ #if defined(TARGET_OS_ANDROID)
2104
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetM23(JNIEnv,
2105
+ JClass,
2106
+ jlong matrix,
2107
+ jfloat m23);
2108
+ #endif
2109
+
2110
+ #if defined(TARGET_OS_ANDROID)
2111
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeM24(JNIEnv, JClass, jlong matrix);
2112
+ #endif
2113
+
2114
+ #if defined(TARGET_OS_ANDROID)
2115
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetM24(JNIEnv,
2116
+ JClass,
2117
+ jlong matrix,
2118
+ jfloat m24);
2119
+ #endif
2120
+
2121
+ #if defined(TARGET_OS_ANDROID)
2122
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeM31(JNIEnv, JClass, jlong matrix);
2123
+ #endif
2124
+
2125
+ #if defined(TARGET_OS_ANDROID)
2126
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetM31(JNIEnv,
2127
+ JClass,
2128
+ jlong matrix,
2129
+ jfloat m31);
2130
+ #endif
2131
+
2132
+ #if defined(TARGET_OS_ANDROID)
2133
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeM32(JNIEnv, JClass, jlong matrix);
2134
+ #endif
2135
+
2136
+ #if defined(TARGET_OS_ANDROID)
2137
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetM32(JNIEnv,
2138
+ JClass,
2139
+ jlong matrix,
2140
+ jfloat m32);
2141
+ #endif
2142
+
2143
+ #if defined(TARGET_OS_ANDROID)
2144
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeM33(JNIEnv, JClass, jlong matrix);
2145
+ #endif
2146
+
2147
+ #if defined(TARGET_OS_ANDROID)
2148
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetM33(JNIEnv,
2149
+ JClass,
2150
+ jlong matrix,
2151
+ jfloat m33);
2152
+ #endif
2153
+
2154
+ #if defined(TARGET_OS_ANDROID)
2155
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeM34(JNIEnv, JClass, jlong matrix);
2156
+ #endif
2157
+
2158
+ #if defined(TARGET_OS_ANDROID)
2159
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetM34(JNIEnv,
2160
+ JClass,
2161
+ jlong matrix,
2162
+ jfloat m34);
2163
+ #endif
2164
+
2165
+ #if defined(TARGET_OS_ANDROID)
2166
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeM41(JNIEnv, JClass, jlong matrix);
2167
+ #endif
2168
+
2169
+ #if defined(TARGET_OS_ANDROID)
2170
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetM41(JNIEnv,
2171
+ JClass,
2172
+ jlong matrix,
2173
+ jfloat m41);
2174
+ #endif
2175
+
2176
+ #if defined(TARGET_OS_ANDROID)
2177
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeM42(JNIEnv, JClass, jlong matrix);
2178
+ #endif
2179
+
2180
+ #if defined(TARGET_OS_ANDROID)
2181
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetM42(JNIEnv,
2182
+ JClass,
2183
+ jlong matrix,
2184
+ jfloat m42);
2185
+ #endif
2186
+
2187
+ #if defined(TARGET_OS_ANDROID)
2188
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeM43(JNIEnv, JClass, jlong matrix);
2189
+ #endif
2190
+
2191
+ #if defined(TARGET_OS_ANDROID)
2192
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetM43(JNIEnv,
2193
+ JClass,
2194
+ jlong matrix,
2195
+ jfloat m43);
2196
+ #endif
2197
+
2198
+ #if defined(TARGET_OS_ANDROID)
2199
+ jfloat Java_org_nativescript_canvas_TNSDOMMatrix_nativeM44(JNIEnv, JClass, jlong matrix);
2200
+ #endif
2201
+
2202
+ #if defined(TARGET_OS_ANDROID)
2203
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeSetM44(JNIEnv,
2204
+ JClass,
2205
+ jlong matrix,
2206
+ jfloat m44);
2207
+ #endif
2208
+
2209
+ #if defined(TARGET_OS_ANDROID)
2210
+ void Java_org_nativescript_canvas_TNSDOMMatrix_nativeDestroy(JNIEnv, JClass, jlong matrix);
2211
+ #endif
2212
+
2213
+ #if defined(TARGET_OS_ANDROID)
2214
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetFillColorWithString(JNIEnv env,
2215
+ JClass,
2216
+ jlong context,
2217
+ JString color);
2218
+ #endif
2219
+
2220
+ #if defined(TARGET_OS_ANDROID)
2221
+ void Java_org_nativescript_canvas_TNSCanvasRenderingContext2D_nativeSetStrokeColorWithString(JNIEnv env,
2222
+ JClass,
2223
+ jlong context,
2224
+ JString color);
2225
+ #endif
2226
+
2227
+ #if defined(TARGET_OS_ANDROID)
2228
+ void Java_org_nativescript_canvas_TNSColorStyle_nativeDestroy(JNIEnv, JClass, jlong style);
2229
+ #endif
2230
+
2231
+ #if defined(TARGET_OS_ANDROID)
2232
+ jstring Java_org_nativescript_canvas_TNSColor_nativeGetColorString(JNIEnv env, JClass, jlong color);
2233
+ #endif
2234
+
2235
+ #if defined(TARGET_OS_ANDROID)
2236
+ jlong Java_org_nativescript_canvas_TNSPath2D_nativeInit(JNIEnv, JClass);
2237
+ #endif
2238
+
2239
+ #if defined(TARGET_OS_ANDROID)
2240
+ jlong Java_org_nativescript_canvas_TNSPath2D_nativeCreateWithPath(JNIEnv, JClass, jlong path);
2241
+ #endif
2242
+
2243
+ #if defined(TARGET_OS_ANDROID)
2244
+ jlong Java_org_nativescript_canvas_TNSPath2D_nativeCreateWithString(JNIEnv env,
2245
+ JClass,
2246
+ JString string);
2247
+ #endif
2248
+
2249
+ #if defined(TARGET_OS_ANDROID)
2250
+ void Java_org_nativescript_canvas_TNSPath2D_nativeAddPath(JNIEnv,
2251
+ JClass,
2252
+ jlong path,
2253
+ jlong path_to_add);
2254
+ #endif
2255
+
2256
+ #if defined(TARGET_OS_ANDROID)
2257
+ void Java_org_nativescript_canvas_TNSPath2D_nativeAddPathWithMatrix(JNIEnv,
2258
+ JClass,
2259
+ jlong path,
2260
+ jlong path_to_add,
2261
+ jlong matrix);
2262
+ #endif
2263
+
2264
+ #if defined(TARGET_OS_ANDROID)
2265
+ void Java_org_nativescript_canvas_TNSPath2D_nativeClosePath(JNIEnv, JClass, jlong path);
2266
+ #endif
2267
+
2268
+ #if defined(TARGET_OS_ANDROID)
2269
+ void Java_org_nativescript_canvas_TNSPath2D_nativeMoveTo(JNIEnv,
2270
+ JClass,
2271
+ jlong path,
2272
+ jfloat x,
2273
+ jfloat y);
2274
+ #endif
2275
+
2276
+ #if defined(TARGET_OS_ANDROID)
2277
+ void Java_org_nativescript_canvas_TNSPath2D_nativeLineTo(JNIEnv,
2278
+ JClass,
2279
+ jlong path,
2280
+ jfloat x,
2281
+ jfloat y);
2282
+ #endif
2283
+
2284
+ #if defined(TARGET_OS_ANDROID)
2285
+ void Java_org_nativescript_canvas_TNSPath2D_nativeBezierCurveTo(JNIEnv,
2286
+ JClass,
2287
+ jlong path,
2288
+ jfloat cp1x,
2289
+ jfloat cp1y,
2290
+ jfloat cp2x,
2291
+ jfloat cp2y,
2292
+ jfloat x,
2293
+ jfloat y);
2294
+ #endif
2295
+
2296
+ #if defined(TARGET_OS_ANDROID)
2297
+ void Java_org_nativescript_canvas_TNSPath2D_nativeQuadraticCurveTo(JNIEnv,
2298
+ JClass,
2299
+ jlong path,
2300
+ jfloat cpx,
2301
+ jfloat cpy,
2302
+ jfloat x,
2303
+ jfloat y);
2304
+ #endif
2305
+
2306
+ #if defined(TARGET_OS_ANDROID)
2307
+ void Java_org_nativescript_canvas_TNSPath2D_nativeArc(JNIEnv,
2308
+ JClass,
2309
+ jlong path,
2310
+ jfloat x,
2311
+ jfloat y,
2312
+ jfloat radius,
2313
+ jfloat start_angle,
2314
+ jfloat end_angle,
2315
+ bool anti_clockwise);
2316
+ #endif
2317
+
2318
+ #if defined(TARGET_OS_ANDROID)
2319
+ void Java_org_nativescript_canvas_TNSPath2D_nativeArcTo(JNIEnv,
2320
+ JClass,
2321
+ jlong path,
2322
+ jfloat x1,
2323
+ jfloat y1,
2324
+ jfloat x2,
2325
+ jfloat y2,
2326
+ jfloat radius);
2327
+ #endif
2328
+
2329
+ #if defined(TARGET_OS_ANDROID)
2330
+ void Java_org_nativescript_canvas_TNSPath2D_nativeEllipse(JNIEnv,
2331
+ JClass,
2332
+ jlong path,
2333
+ jfloat x,
2334
+ jfloat y,
2335
+ jfloat radius_x,
2336
+ jfloat radius_y,
2337
+ jfloat rotation,
2338
+ jfloat start_angle,
2339
+ jfloat end_angle,
2340
+ bool anticlockwise);
2341
+ #endif
2342
+
2343
+ #if defined(TARGET_OS_ANDROID)
2344
+ void Java_org_nativescript_canvas_TNSPath2D_nativeRect(JNIEnv,
2345
+ JClass,
2346
+ jlong path,
2347
+ jfloat x,
2348
+ jfloat y,
2349
+ jfloat width,
2350
+ jfloat height);
2351
+ #endif
2352
+
2353
+ #if defined(TARGET_OS_ANDROID)
2354
+ void Java_org_nativescript_canvas_TNSPath2D_nativeDestroy(JNIEnv, JClass, jlong path);
2355
+ #endif
2356
+
2357
+ #if defined(TARGET_OS_ANDROID)
2358
+ void Java_org_nativescript_canvas_TNSPattern_nativeSetTransform(JNIEnv,
2359
+ JClass,
2360
+ jlong pattern,
2361
+ jlong matrix);
2362
+ #endif
2363
+
2364
+ #if defined(TARGET_OS_ANDROID)
2365
+ void Java_org_nativescript_canvas_TNSSVG_nativeDrawSVG(JNIEnv env,
2366
+ JClass,
2367
+ jlong context,
2368
+ JString svg);
2369
+ #endif
2370
+
2371
+ #if defined(TARGET_OS_ANDROID)
2372
+ void Java_org_nativescript_canvas_TNSSVG_nativeDrawSVGFromPath(JNIEnv env,
2373
+ JClass,
2374
+ jlong context,
2375
+ JString path);
2376
+ #endif
2377
+
2378
+ #if defined(TARGET_OS_ANDROID)
2379
+ jlong Java_org_nativescript_canvas_TNSTextDecoder_nativeInit(JNIEnv env, JClass, JString decoding);
2380
+ #endif
2381
+
2382
+ #if defined(TARGET_OS_ANDROID)
2383
+ void Java_org_nativescript_canvas_TNSTextDecoder_nativeDestroy(JNIEnv, JClass, jlong decoder);
2384
+ #endif
2385
+
2386
+ #if defined(TARGET_OS_ANDROID)
2387
+ jstring Java_org_nativescript_canvas_TNSTextDecoder_nativeGetEncoding(JNIEnv env,
2388
+ JClass,
2389
+ jlong decoder);
2390
+ #endif
2391
+
2392
+ #if defined(TARGET_OS_ANDROID)
2393
+ jstring Java_org_nativescript_canvas_TNSTextDecoder_nativeDecodeBuffer(JNIEnv env,
2394
+ JClass,
2395
+ jlong decoder,
2396
+ JByteBuffer data);
2397
+ #endif
2398
+
2399
+ #if defined(TARGET_OS_ANDROID)
2400
+ jbyteArray Java_org_nativescript_canvas_TNSTextDecoder_nativeDecodeBufferToBytes(JNIEnv env,
2401
+ JClass,
2402
+ jlong decoder,
2403
+ JByteBuffer data);
2404
+ #endif
2405
+
2406
+ #if defined(TARGET_OS_ANDROID)
2407
+ jstring Java_org_nativescript_canvas_TNSTextDecoder_nativeDecode(JNIEnv env,
2408
+ JClass,
2409
+ jlong decoder,
2410
+ jbyteArray data);
2411
+ #endif
2412
+
2413
+ #if defined(TARGET_OS_ANDROID)
2414
+ jbyteArray Java_org_nativescript_canvas_TNSTextDecoder_nativeDecodeToBytes(JNIEnv env,
2415
+ JClass,
2416
+ jlong decoder,
2417
+ jbyteArray data);
2418
+ #endif
2419
+
2420
+ #if defined(TARGET_OS_ANDROID)
2421
+ jlong Java_org_nativescript_canvas_TNSTextEncoder_nativeInit(JNIEnv env, JClass, JString encoding);
2422
+ #endif
2423
+
2424
+ #if defined(TARGET_OS_ANDROID)
2425
+ void Java_org_nativescript_canvas_TNSTextEncoder_nativeDestroy(JNIEnv, JClass, jlong encoder);
2426
+ #endif
2427
+
2428
+ #if defined(TARGET_OS_ANDROID)
2429
+ jstring Java_org_nativescript_canvas_TNSTextEncoder_nativeGetEncoding(JNIEnv env,
2430
+ JClass,
2431
+ jlong encoder);
2432
+ #endif
2433
+
2434
+ #if defined(TARGET_OS_ANDROID)
2435
+ jbyteArray Java_org_nativescript_canvas_TNSTextEncoder_nativeEncode(JNIEnv env,
2436
+ JClass,
2437
+ jlong encoder,
2438
+ JString text);
2439
+ #endif
2440
+
2441
+ #if defined(TARGET_OS_ANDROID)
2442
+ jfloat Java_org_nativescript_canvas_TNSTextMetrics_nativeGetWidth(JNIEnv, JClass, jlong metrics);
2443
+ #endif
2444
+
2445
+ #if defined(TARGET_OS_ANDROID)
2446
+ jfloat Java_org_nativescript_canvas_TNSTextMetrics_nativeGetActualBoundingBoxLeft(JNIEnv,
2447
+ JClass,
2448
+ jlong metrics);
2449
+ #endif
2450
+
2451
+ #if defined(TARGET_OS_ANDROID)
2452
+ jfloat Java_org_nativescript_canvas_TNSTextMetrics_nativeGetActualBoundingBoxRight(JNIEnv,
2453
+ JClass,
2454
+ jlong metrics);
2455
+ #endif
2456
+
2457
+ #if defined(TARGET_OS_ANDROID)
2458
+ jfloat Java_org_nativescript_canvas_TNSTextMetrics_nativeGetActualBoundingBoxAscent(JNIEnv,
2459
+ JClass,
2460
+ jlong metrics);
2461
+ #endif
2462
+
2463
+ #if defined(TARGET_OS_ANDROID)
2464
+ jfloat Java_org_nativescript_canvas_TNSTextMetrics_nativeGetActualBoundingBoxDescent(JNIEnv,
2465
+ JClass,
2466
+ jlong metrics);
2467
+ #endif
2468
+
2469
+ #if defined(TARGET_OS_ANDROID)
2470
+ jfloat Java_org_nativescript_canvas_TNSTextMetrics_nativeGetFontBoundingBoxAscent(JNIEnv,
2471
+ JClass,
2472
+ jlong metrics);
2473
+ #endif
2474
+
2475
+ #if defined(TARGET_OS_ANDROID)
2476
+ jfloat Java_org_nativescript_canvas_TNSTextMetrics_nativeGetFontBoundingBoxDescent(JNIEnv,
2477
+ JClass,
2478
+ jlong metrics);
2479
+ #endif
2480
+
2481
+ #if defined(TARGET_OS_ANDROID)
2482
+ jfloat Java_org_nativescript_canvas_TNSTextMetrics_nativeGetEmHeightAscent(JNIEnv,
2483
+ JClass,
2484
+ jlong metrics);
2485
+ #endif
2486
+
2487
+ #if defined(TARGET_OS_ANDROID)
2488
+ jfloat Java_org_nativescript_canvas_TNSTextMetrics_nativeGetEmHeightDescent(JNIEnv,
2489
+ JClass,
2490
+ jlong metrics);
2491
+ #endif
2492
+
2493
+ #if defined(TARGET_OS_ANDROID)
2494
+ jfloat Java_org_nativescript_canvas_TNSTextMetrics_nativeGetHangingBaseline(JNIEnv,
2495
+ JClass,
2496
+ jlong metrics);
2497
+ #endif
2498
+
2499
+ #if defined(TARGET_OS_ANDROID)
2500
+ jfloat Java_org_nativescript_canvas_TNSTextMetrics_nativeGetAlphabeticBaseline(JNIEnv,
2501
+ JClass,
2502
+ jlong metrics);
2503
+ #endif
2504
+
2505
+ #if defined(TARGET_OS_ANDROID)
2506
+ jfloat Java_org_nativescript_canvas_TNSTextMetrics_nativeGetIdeographicBaseline(JNIEnv,
2507
+ JClass,
2508
+ jlong metrics);
2509
+ #endif
2510
+
2511
+ #if defined(TARGET_OS_ANDROID)
2512
+ void Java_org_nativescript_canvas_TNSTextMetrics_nativeDestroy(JNIEnv, JClass, jlong metrics);
2513
+ #endif
2514
+
2515
+ #if defined(TARGET_OS_ANDROID)
2516
+ jbyteArray Java_org_nativescript_canvas_Utils_nativeGetByteBufferFromBitmap(JNIEnv env,
2517
+ JClass,
2518
+ JObject bitmap);
2519
+ #endif
2520
+
2521
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2522
+ void destroy_string(const char *string);
2523
+ #endif
2524
+
2525
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2526
+ void destroy_context(long long context);
2527
+ #endif
2528
+
2529
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2530
+ void destroy_paint_style(long long style);
2531
+ #endif
2532
+
2533
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2534
+ void destroy_text_metrics(long long metrics);
2535
+ #endif
2536
+
2537
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2538
+ long long context_init_context(float width,
2539
+ float height,
2540
+ float density,
2541
+ int buffer_id,
2542
+ uintptr_t samples,
2543
+ bool alpha,
2544
+ unsigned int font_color,
2545
+ float ppi,
2546
+ enum TextDirection direction);
2547
+ #endif
2548
+
2549
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2550
+ long long context_init_context_with_custom_surface(float width,
2551
+ float height,
2552
+ float density,
2553
+ bool alpha,
2554
+ int font_color,
2555
+ float ppi,
2556
+ enum TextDirection direction);
2557
+ #endif
2558
+
2559
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2560
+ void context_resize_custom_surface(long long context,
2561
+ float width,
2562
+ float height,
2563
+ float density,
2564
+ bool alpha,
2565
+ float ppi);
2566
+ #endif
2567
+
2568
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2569
+ void context_resize_surface(long long context,
2570
+ float width,
2571
+ float height,
2572
+ float density,
2573
+ int buffer_id,
2574
+ uintptr_t samples,
2575
+ bool alpha,
2576
+ float ppi);
2577
+ #endif
2578
+
2579
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2580
+ const char *context_data_url(long long context, const char *format, float quality);
2581
+ #endif
2582
+
2583
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2584
+ struct U8Array *context_snapshot_canvas(long long context);
2585
+ #endif
2586
+
2587
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2588
+ void context_flush(long long context);
2589
+ #endif
2590
+
2591
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2592
+ void context_custom_with_buffer_flush(long long context,
2593
+ uint8_t *buf,
2594
+ uintptr_t buf_size,
2595
+ float width,
2596
+ float height);
2597
+ #endif
2598
+
2599
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2600
+ void context_set_direction(long long context, enum TextDirection direction);
2601
+ #endif
2602
+
2603
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2604
+ enum TextDirection context_get_direction(const struct Context *context);
2605
+ #endif
2606
+
2607
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2608
+ void context_set_fill_style(long long context, long long style);
2609
+ #endif
2610
+
2611
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2612
+ struct PaintStyleValue *context_get_fill_style(long long context);
2613
+ #endif
2614
+
2615
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2616
+ void context_set_filter(long long context, const char *filter);
2617
+ #endif
2618
+
2619
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2620
+ const char *context_get_filter(long long context);
2621
+ #endif
2622
+
2623
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2624
+ void context_set_font(long long context, const char *filter);
2625
+ #endif
2626
+
2627
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2628
+ const char *context_get_font(long long context);
2629
+ #endif
2630
+
2631
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2632
+ void context_set_global_alpha(long long context, float alpha);
2633
+ #endif
2634
+
2635
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2636
+ float context_get_global_alpha(long long context);
2637
+ #endif
2638
+
2639
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2640
+ void context_set_global_composite_operation(long long context,
2641
+ enum CompositeOperationType operation);
2642
+ #endif
2643
+
2644
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2645
+ enum CompositeOperationType context_get_global_composite_operation(long long context);
2646
+ #endif
2647
+
2648
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2649
+ void context_set_image_smoothing_enabled(long long context, bool enabled);
2650
+ #endif
2651
+
2652
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2653
+ bool context_get_image_smoothing_enabled(long long context);
2654
+ #endif
2655
+
2656
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2657
+ void context_set_image_smoothing_quality(long long context, enum ImageSmoothingQuality quality);
2658
+ #endif
2659
+
2660
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2661
+ enum ImageSmoothingQuality context_get_image_smoothing_quality(long long context);
2662
+ #endif
2663
+
2664
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2665
+ void context_set_line_cap(long long context, enum LineCap cap);
2666
+ #endif
2667
+
2668
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2669
+ enum LineCap context_get_line_cap(long long context);
2670
+ #endif
2671
+
2672
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2673
+ void context_set_line_dash_offset(long long context, float offset);
2674
+ #endif
2675
+
2676
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2677
+ float context_get_line_dash_offset(long long context);
2678
+ #endif
2679
+
2680
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2681
+ void context_set_line_join(long long context, enum LineJoin join);
2682
+ #endif
2683
+
2684
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2685
+ enum LineJoin context_get_line_join(long long context);
2686
+ #endif
2687
+
2688
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2689
+ void context_set_line_width(long long context, float width);
2690
+ #endif
2691
+
2692
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2693
+ float context_get_line_width(long long context);
2694
+ #endif
2695
+
2696
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2697
+ void context_set_miter_limit(long long context, float limit);
2698
+ #endif
2699
+
2700
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2701
+ float context_get_miter_limit(long long context);
2702
+ #endif
2703
+
2704
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2705
+ void context_set_shadow_blur(long long context, float blur);
2706
+ #endif
2707
+
2708
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2709
+ float context_get_shadow_blur(long long context);
2710
+ #endif
2711
+
2712
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2713
+ void context_set_shadow_color(long long context, uint8_t r, uint8_t g, uint8_t b, uint8_t a);
2714
+ #endif
2715
+
2716
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2717
+ void context_set_shadow_color_string(long long context, const char *color);
2718
+ #endif
2719
+
2720
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2721
+ const char *context_get_shadow_color(long long context);
2722
+ #endif
2723
+
2724
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2725
+ void context_set_shadow_offset_x(long long context, float x);
2726
+ #endif
2727
+
2728
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2729
+ float context_get_shadow_offset_x(long long context);
2730
+ #endif
2731
+
2732
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2733
+ void context_set_shadow_offset_y(long long context, float y);
2734
+ #endif
2735
+
2736
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2737
+ float context_get_shadow_offset_y(long long context);
2738
+ #endif
2739
+
2740
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2741
+ void context_set_stroke_style(long long context, long long style);
2742
+ #endif
2743
+
2744
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2745
+ struct PaintStyleValue *context_get_stroke_style(long long context);
2746
+ #endif
2747
+
2748
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2749
+ void context_set_text_align(long long context, enum TextAlign align);
2750
+ #endif
2751
+
2752
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2753
+ enum TextAlign context_get_text_align(long long context);
2754
+ #endif
2755
+
2756
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2757
+ void context_set_text_baseline(long long context, enum TextBaseLine baseline);
2758
+ #endif
2759
+
2760
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2761
+ enum TextBaseLine context_get_text_baseline(long long context);
2762
+ #endif
2763
+
2764
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2765
+ void context_arc(long long context,
2766
+ float x,
2767
+ float y,
2768
+ float radius,
2769
+ float start_angle,
2770
+ float end_angle,
2771
+ bool anti_clockwise);
2772
+ #endif
2773
+
2774
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2775
+ void context_arc_to(long long context, float x1, float y1, float x2, float y2, float radius);
2776
+ #endif
2777
+
2778
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2779
+ void context_begin_path(long long context);
2780
+ #endif
2781
+
2782
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2783
+ void context_bezier_curve_to(long long context,
2784
+ float cp1x,
2785
+ float cp1y,
2786
+ float cp2x,
2787
+ float cp2y,
2788
+ float x,
2789
+ float y);
2790
+ #endif
2791
+
2792
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2793
+ void context_clear_rect(long long context, float x, float y, float width, float height);
2794
+ #endif
2795
+
2796
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2797
+ void context_clip(long long context, long long path, enum FillRule rule);
2798
+ #endif
2799
+
2800
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2801
+ void context_clip_rule(long long context, enum FillRule rule);
2802
+ #endif
2803
+
2804
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2805
+ void context_close_path(long long context);
2806
+ #endif
2807
+
2808
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2809
+ long long context_create_image_data(int width, int height);
2810
+ #endif
2811
+
2812
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2813
+ long long context_create_linear_gradient(long long context, float x0, float y0, float x1, float y1);
2814
+ #endif
2815
+
2816
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2817
+ long long context_create_pattern(long long context,
2818
+ const uint8_t *image_data,
2819
+ uintptr_t image_len,
2820
+ int width,
2821
+ int height,
2822
+ enum Repetition repetition);
2823
+ #endif
2824
+
2825
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2826
+ long long context_create_pattern_asset(long long context,
2827
+ long long asset,
2828
+ enum Repetition repetition);
2829
+ #endif
2830
+
2831
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2832
+ long long context_create_pattern_encoded(long long context,
2833
+ const uint8_t *image_data,
2834
+ uintptr_t image_len,
2835
+ enum Repetition repetition);
2836
+ #endif
2837
+
2838
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2839
+ long long context_create_radial_gradient(long long context,
2840
+ float x0,
2841
+ float y0,
2842
+ float r0,
2843
+ float x1,
2844
+ float y1,
2845
+ float r1);
2846
+ #endif
2847
+
2848
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2849
+ void context_draw_image_dx_dy(long long context,
2850
+ const uint8_t *image_data,
2851
+ uintptr_t image_len,
2852
+ float width,
2853
+ float height,
2854
+ float dx,
2855
+ float dy);
2856
+ #endif
2857
+
2858
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2859
+ void context_draw_image_dx_dy_dw_dh(long long context,
2860
+ const uint8_t *image_data,
2861
+ uintptr_t image_len,
2862
+ float width,
2863
+ float height,
2864
+ float dx,
2865
+ float dy,
2866
+ float d_width,
2867
+ float d_height);
2868
+ #endif
2869
+
2870
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2871
+ void context_draw_image(long long context,
2872
+ const uint8_t *image_data,
2873
+ uintptr_t image_len,
2874
+ float width,
2875
+ float height,
2876
+ float sx,
2877
+ float sy,
2878
+ float s_width,
2879
+ float s_height,
2880
+ float dx,
2881
+ float dy,
2882
+ float d_width,
2883
+ float d_height);
2884
+ #endif
2885
+
2886
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2887
+ void context_draw_image_encoded_dx_dy(long long context,
2888
+ const uint8_t *image_data,
2889
+ uintptr_t image_len,
2890
+ float dx,
2891
+ float dy);
2892
+ #endif
2893
+
2894
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2895
+ void context_draw_image_encoded_dx_dy_dw_dh(long long context,
2896
+ const uint8_t *image_data,
2897
+ uintptr_t image_len,
2898
+ float dx,
2899
+ float dy,
2900
+ float d_width,
2901
+ float d_height);
2902
+ #endif
2903
+
2904
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2905
+ void context_draw_image_encoded(long long context,
2906
+ const uint8_t *image_data,
2907
+ uintptr_t image_len,
2908
+ float sx,
2909
+ float sy,
2910
+ float s_width,
2911
+ float s_height,
2912
+ float dx,
2913
+ float dy,
2914
+ float d_width,
2915
+ float d_height);
2916
+ #endif
2917
+
2918
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2919
+ void context_draw_image_dx_dy_asset(long long context, long long asset, float dx, float dy);
2920
+ #endif
2921
+
2922
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2923
+ void context_draw_image_dx_dy_dw_dh_asset(long long context,
2924
+ long long asset,
2925
+ float dx,
2926
+ float dy,
2927
+ float d_width,
2928
+ float d_height);
2929
+ #endif
2930
+
2931
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2932
+ void context_draw_image_asset(long long context,
2933
+ long long asset,
2934
+ float sx,
2935
+ float sy,
2936
+ float s_width,
2937
+ float s_height,
2938
+ float dx,
2939
+ float dy,
2940
+ float d_width,
2941
+ float d_height);
2942
+ #endif
2943
+
2944
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2945
+ void context_ellipse(long long context,
2946
+ float x,
2947
+ float y,
2948
+ float radius_x,
2949
+ float radius_y,
2950
+ float rotation,
2951
+ float start_angle,
2952
+ float end_angle,
2953
+ bool anticlockwise);
2954
+ #endif
2955
+
2956
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2957
+ void context_fill(long long context, long long path, enum FillRule rule);
2958
+ #endif
2959
+
2960
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2961
+ void context_fill_rect(long long context, float x, float y, float width, float height);
2962
+ #endif
2963
+
2964
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2965
+ void context_fill_text(long long context, const char *text, float x, float y, float width);
2966
+ #endif
2967
+
2968
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2969
+ long long context_get_image_data(long long context, float sx, float sy, float sw, float sh);
2970
+ #endif
2971
+
2972
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2973
+ struct F32Array *context_get_line_dash(long long context);
2974
+ #endif
2975
+
2976
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2977
+ long long context_get_transform(long long context);
2978
+ #endif
2979
+
2980
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2981
+ bool context_is_point_in_path(long long context,
2982
+ long long path,
2983
+ float x,
2984
+ float y,
2985
+ enum FillRule rule);
2986
+ #endif
2987
+
2988
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2989
+ bool context_is_point_in_stroke(long long context, long long path, float x, float y);
2990
+ #endif
2991
+
2992
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2993
+ void context_line_to(long long context, float x, float y);
2994
+ #endif
2995
+
2996
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
2997
+ long long context_measure_text(long long context, const char *text);
2998
+ #endif
2999
+
3000
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3001
+ void context_move_to(long long context, float x, float y);
3002
+ #endif
3003
+
3004
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3005
+ void context_put_image_data(long long context,
3006
+ long long image_data,
3007
+ float dx,
3008
+ float dy,
3009
+ float dirty_x,
3010
+ float dirty_y,
3011
+ float dirty_width,
3012
+ float dirty_height);
3013
+ #endif
3014
+
3015
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3016
+ void context_quadratic_curve_to(long long context, float cpx, float cpy, float x, float y);
3017
+ #endif
3018
+
3019
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3020
+ void context_rect(long long context, float x, float y, float width, float height);
3021
+ #endif
3022
+
3023
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3024
+ void context_reset_transform(long long context);
3025
+ #endif
3026
+
3027
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3028
+ void context_restore(long long context);
3029
+ #endif
3030
+
3031
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3032
+ void context_rotate(long long context, float angle);
3033
+ #endif
3034
+
3035
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3036
+ void context_save(long long context);
3037
+ #endif
3038
+
3039
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3040
+ void context_scale(long long context, float x, float y);
3041
+ #endif
3042
+
3043
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3044
+ void context_set_line_dash(long long context, const float *data, uintptr_t data_length);
3045
+ #endif
3046
+
3047
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3048
+ void context_set_transform(long long context, float a, float b, float c, float d, float e, float f);
3049
+ #endif
3050
+
3051
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3052
+ void context_set_transform_matrix(long long context, long long matrix);
3053
+ #endif
3054
+
3055
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3056
+ void context_stroke(long long context, long long path);
3057
+ #endif
3058
+
3059
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3060
+ void context_stroke_rect(long long context, float x, float y, float width, float height);
3061
+ #endif
3062
+
3063
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3064
+ void context_stroke_text(long long context, const char *text, float x, float y, float width);
3065
+ #endif
3066
+
3067
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3068
+ void context_transform(long long context, float a, float b, float c, float d, float e, float f);
3069
+ #endif
3070
+
3071
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3072
+ void context_translate(long long context, float x, float y);
3073
+ #endif
3074
+
3075
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3076
+ void gl_tex_image_2D_asset(unsigned int target,
3077
+ int level,
3078
+ int internalformat,
3079
+ int border,
3080
+ unsigned int format,
3081
+ unsigned int image_type,
3082
+ long long asset,
3083
+ bool flip_y);
3084
+ #endif
3085
+
3086
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3087
+ void gl_tex_sub_image_2D_asset(unsigned int target,
3088
+ int level,
3089
+ int xoffset,
3090
+ int yoffset,
3091
+ unsigned int format,
3092
+ unsigned int image_type,
3093
+ long long asset,
3094
+ bool flip_y);
3095
+ #endif
3096
+
3097
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3098
+ void gl_tex_image_3D_asset(unsigned int target,
3099
+ int level,
3100
+ int internalformat,
3101
+ int width,
3102
+ int height,
3103
+ int depth,
3104
+ int border,
3105
+ unsigned int format,
3106
+ unsigned int image_type,
3107
+ long long asset,
3108
+ bool flip_y);
3109
+ #endif
3110
+
3111
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3112
+ void gl_tex_sub_image_3D_asset(unsigned int target,
3113
+ int level,
3114
+ int xoffset,
3115
+ int yoffset,
3116
+ int zoffset,
3117
+ int width,
3118
+ int height,
3119
+ int depth,
3120
+ unsigned int format,
3121
+ unsigned int image_type,
3122
+ long long asset,
3123
+ bool flip_y);
3124
+ #endif
3125
+
3126
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3127
+ void gl_vertex_attrib_pointer(unsigned int index,
3128
+ int size,
3129
+ unsigned int pointer_type,
3130
+ bool normalized,
3131
+ int stride,
3132
+ long long offset);
3133
+ #endif
3134
+
3135
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3136
+ long long gl_get_vertex_attrib_offset(unsigned int index, unsigned int pname);
3137
+ #endif
3138
+
3139
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3140
+ void gradient_add_color_stop(long long style, float stop, const char *color);
3141
+ #endif
3142
+
3143
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3144
+ long long image_asset_create(void);
3145
+ #endif
3146
+
3147
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3148
+ bool image_asset_load_from_path(long long asset, const char *path);
3149
+ #endif
3150
+
3151
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3152
+ bool image_asset_load_from_raw(long long asset, const uint8_t *array, uintptr_t size);
3153
+ #endif
3154
+
3155
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3156
+ struct U8Array *image_asset_get_bytes(long long asset);
3157
+ #endif
3158
+
3159
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3160
+ struct U8Array *image_asset_get_rgba_bytes(long long asset);
3161
+ #endif
3162
+
3163
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3164
+ struct U8Array *image_asset_get_rgb_bytes(long long asset);
3165
+ #endif
3166
+
3167
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3168
+ unsigned int image_asset_width(long long asset);
3169
+ #endif
3170
+
3171
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3172
+ unsigned int image_asset_height(long long asset);
3173
+ #endif
3174
+
3175
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3176
+ const char *image_asset_get_error(long long asset);
3177
+ #endif
3178
+
3179
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3180
+ bool image_asset_has_error(long long asset);
3181
+ #endif
3182
+
3183
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3184
+ bool image_asset_scale(long long asset, unsigned int x, unsigned int y);
3185
+ #endif
3186
+
3187
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3188
+ bool image_asset_flip_x(long long asset);
3189
+ #endif
3190
+
3191
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3192
+ bool image_asset_flip_x_in_place(long long asset);
3193
+ #endif
3194
+
3195
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3196
+ bool image_asset_flip_y(long long asset);
3197
+ #endif
3198
+
3199
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3200
+ void image_asset_flip_y_in_place_owned(uint8_t *buf, uintptr_t length);
3201
+ #endif
3202
+
3203
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3204
+ void image_asset_flip_x_in_place_owned(uint8_t *buf, uintptr_t length);
3205
+ #endif
3206
+
3207
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3208
+ bool image_asset_flip_y_in_place(long long asset);
3209
+ #endif
3210
+
3211
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3212
+ bool image_asset_save_path(long long asset, const char *path, unsigned int format);
3213
+ #endif
3214
+
3215
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3216
+ void destroy_image_asset(long long asset);
3217
+ #endif
3218
+
3219
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3220
+ long long image_bitmap_create_from_bytes(const uint8_t *image_bytes,
3221
+ uintptr_t image_size,
3222
+ float image_width,
3223
+ float image_height,
3224
+ bool flip_y,
3225
+ int32_t premultiply_alpha,
3226
+ int32_t color_space_conversion,
3227
+ int32_t resize_quality,
3228
+ float resize_width,
3229
+ float resize_height);
3230
+ #endif
3231
+
3232
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3233
+ long long image_bitmap_create_from_bytes_src_rect(const uint8_t *image_bytes,
3234
+ uintptr_t image_size,
3235
+ float image_width,
3236
+ float image_height,
3237
+ float sx,
3238
+ float sy,
3239
+ float s_width,
3240
+ float s_height,
3241
+ bool flip_y,
3242
+ int32_t premultiply_alpha,
3243
+ int32_t color_space_conversion,
3244
+ int32_t resize_quality,
3245
+ float resize_width,
3246
+ float resize_height);
3247
+ #endif
3248
+
3249
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3250
+ long long image_bitmap_create_from_image_asset(long long asset,
3251
+ bool flip_y,
3252
+ int premultiply_alpha,
3253
+ int color_space_conversion,
3254
+ int resize_quality,
3255
+ float resize_width,
3256
+ float resize_height);
3257
+ #endif
3258
+
3259
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3260
+ long long image_bitmap_create_from_image_asset_src_rect(long long asset,
3261
+ float sx,
3262
+ float sy,
3263
+ float s_width,
3264
+ float s_height,
3265
+ bool flip_y,
3266
+ int premultiply_alpha,
3267
+ int color_space_conversion,
3268
+ int resize_quality,
3269
+ float resize_width,
3270
+ float resize_height);
3271
+ #endif
3272
+
3273
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3274
+ long long image_bitmap_create_from_bytes_encoded(const uint8_t *image_bytes,
3275
+ uintptr_t image_size,
3276
+ bool flip_y,
3277
+ int32_t premultiply_alpha,
3278
+ int32_t color_space_conversion,
3279
+ int32_t resize_quality,
3280
+ float resize_width,
3281
+ float resize_height);
3282
+ #endif
3283
+
3284
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3285
+ long long image_bitmap_create_from_bytes_encoded_src_rect(const uint8_t *image_bytes,
3286
+ uintptr_t image_size,
3287
+ float sx,
3288
+ float sy,
3289
+ float s_width,
3290
+ float s_height,
3291
+ bool flip_y,
3292
+ int32_t premultiply_alpha,
3293
+ int32_t color_space_conversion,
3294
+ int32_t resize_quality,
3295
+ float resize_width,
3296
+ float resize_height);
3297
+ #endif
3298
+
3299
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3300
+ long long image_bitmap_create_from_image_data(long long image_data,
3301
+ bool flip_y,
3302
+ int premultiply_alpha,
3303
+ int color_space_conversion,
3304
+ int resize_quality,
3305
+ float resize_width,
3306
+ float resize_height);
3307
+ #endif
3308
+
3309
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3310
+ long long image_bitmap_create_from_image_data_src_rect(long long image_data,
3311
+ float sx,
3312
+ float sy,
3313
+ float s_width,
3314
+ float s_height,
3315
+ bool flip_y,
3316
+ int premultiply_alpha,
3317
+ int color_space_conversion,
3318
+ int resize_quality,
3319
+ float resize_width,
3320
+ float resize_height);
3321
+ #endif
3322
+
3323
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3324
+ long long image_data_create(int width, int height);
3325
+ #endif
3326
+
3327
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3328
+ int image_data_width(long long image_data);
3329
+ #endif
3330
+
3331
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3332
+ int image_data_height(long long image_data);
3333
+ #endif
3334
+
3335
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3336
+ uint8_t *image_data_data(long long image_data);
3337
+ #endif
3338
+
3339
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3340
+ uintptr_t image_data_data_length(long long image_data);
3341
+ #endif
3342
+
3343
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3344
+ void destroy_image_data(long long image_data);
3345
+ #endif
3346
+
3347
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3348
+ long long matrix_create(void);
3349
+ #endif
3350
+
3351
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3352
+ void matrix_update(long long matrix, const float *data, uintptr_t data_len);
3353
+ #endif
3354
+
3355
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3356
+ float matrix_a(long long matrix);
3357
+ #endif
3358
+
3359
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3360
+ void matrix_set_a(long long matrix, float a);
3361
+ #endif
3362
+
3363
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3364
+ float matrix_b(long long matrix);
3365
+ #endif
3366
+
3367
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3368
+ void matrix_set_b(long long matrix, float b);
3369
+ #endif
3370
+
3371
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3372
+ float matrix_c(long long matrix);
3373
+ #endif
3374
+
3375
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3376
+ void matrix_set_c(long long matrix, float c);
3377
+ #endif
3378
+
3379
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3380
+ float matrix_d(long long matrix);
3381
+ #endif
3382
+
3383
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3384
+ void matrix_set_d(long long matrix, float d);
3385
+ #endif
3386
+
3387
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3388
+ float matrix_e(long long matrix);
3389
+ #endif
3390
+
3391
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3392
+ void matrix_set_e(long long matrix, float e);
3393
+ #endif
3394
+
3395
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3396
+ float matrix_f(long long matrix);
3397
+ #endif
3398
+
3399
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3400
+ void matrix_set_f(long long matrix, float f);
3401
+ #endif
3402
+
3403
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3404
+ float matrix_m11(long long matrix);
3405
+ #endif
3406
+
3407
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3408
+ void matrix_set_m11(long long matrix, float m11);
3409
+ #endif
3410
+
3411
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3412
+ float matrix_m12(long long matrix);
3413
+ #endif
3414
+
3415
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3416
+ void matrix_set_m12(long long matrix, float m12);
3417
+ #endif
3418
+
3419
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3420
+ float matrix_m13(long long matrix);
3421
+ #endif
3422
+
3423
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3424
+ void matrix_set_m13(long long matrix, float m13);
3425
+ #endif
3426
+
3427
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3428
+ float matrix_m14(long long matrix);
3429
+ #endif
3430
+
3431
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3432
+ void matrix_set_m14(long long matrix, float m14);
3433
+ #endif
3434
+
3435
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3436
+ float matrix_m21(long long matrix);
3437
+ #endif
3438
+
3439
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3440
+ void matrix_set_m21(long long matrix, float m21);
3441
+ #endif
3442
+
3443
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3444
+ float matrix_m22(long long matrix);
3445
+ #endif
3446
+
3447
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3448
+ void matrix_set_m22(long long matrix, float m22);
3449
+ #endif
3450
+
3451
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3452
+ float matrix_m23(long long matrix);
3453
+ #endif
3454
+
3455
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3456
+ void matrix_set_m23(long long matrix, float m23);
3457
+ #endif
3458
+
3459
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3460
+ float matrix_m24(long long matrix);
3461
+ #endif
3462
+
3463
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3464
+ void matrix_set_m24(long long matrix, float m24);
3465
+ #endif
3466
+
3467
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3468
+ float matrix_m31(long long matrix);
3469
+ #endif
3470
+
3471
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3472
+ void matrix_set_m31(long long matrix, float m31);
3473
+ #endif
3474
+
3475
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3476
+ float matrix_m32(long long matrix);
3477
+ #endif
3478
+
3479
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3480
+ void matrix_set_m32(long long matrix, float m32);
3481
+ #endif
3482
+
3483
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3484
+ float matrix_m33(long long matrix);
3485
+ #endif
3486
+
3487
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3488
+ void matrix_set_m33(long long matrix, float m33);
3489
+ #endif
3490
+
3491
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3492
+ float matrix_m34(long long matrix);
3493
+ #endif
3494
+
3495
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3496
+ void matrix_set_m34(long long matrix, float m34);
3497
+ #endif
3498
+
3499
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3500
+ float matrix_m41(long long matrix);
3501
+ #endif
3502
+
3503
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3504
+ void matrix_set_m41(long long matrix, float m41);
3505
+ #endif
3506
+
3507
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3508
+ float matrix_m42(long long matrix);
3509
+ #endif
3510
+
3511
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3512
+ void matrix_set_m42(long long matrix, float m42);
3513
+ #endif
3514
+
3515
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3516
+ float matrix_m43(long long matrix);
3517
+ #endif
3518
+
3519
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3520
+ void matrix_set_m43(long long matrix, float m43);
3521
+ #endif
3522
+
3523
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3524
+ float matrix_m44(long long matrix);
3525
+ #endif
3526
+
3527
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3528
+ void matrix_set_m44(long long matrix, float m44);
3529
+ #endif
3530
+
3531
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3532
+ void destroy_matrix(long long matrix);
3533
+ #endif
3534
+
3535
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3536
+ void paint_style_set_fill_color_with_string(long long context, const char *color);
3537
+ #endif
3538
+
3539
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3540
+ void paint_style_set_stroke_color_with_string(long long context, const char *color);
3541
+ #endif
3542
+
3543
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3544
+ const char *paint_style_get_color_string(long long color);
3545
+ #endif
3546
+
3547
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3548
+ long long path_create(void);
3549
+ #endif
3550
+
3551
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3552
+ long long path_create_with_path(long long path);
3553
+ #endif
3554
+
3555
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3556
+ long long path_create_with_string(const char *string);
3557
+ #endif
3558
+
3559
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3560
+ void path_add_path(long long path, long long path_to_add);
3561
+ #endif
3562
+
3563
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3564
+ void path_add_path_with_matrix(long long path, long long path_to_add, long long matrix);
3565
+ #endif
3566
+
3567
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3568
+ void path_close_path(long long path);
3569
+ #endif
3570
+
3571
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3572
+ void path_move_to(long long path, float x, float y);
3573
+ #endif
3574
+
3575
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3576
+ void path_line_to(long long path, float x, float y);
3577
+ #endif
3578
+
3579
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3580
+ void path_bezier_curve_to(long long path,
3581
+ float cp1x,
3582
+ float cp1y,
3583
+ float cp2x,
3584
+ float cp2y,
3585
+ float x,
3586
+ float y);
3587
+ #endif
3588
+
3589
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3590
+ void path_quadratic_curve_to(long long path, float cpx, float cpy, float x, float y);
3591
+ #endif
3592
+
3593
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3594
+ void path_arc(long long path,
3595
+ float x,
3596
+ float y,
3597
+ float radius,
3598
+ float start_angle,
3599
+ float end_angle,
3600
+ bool anti_clockwise);
3601
+ #endif
3602
+
3603
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3604
+ void path_arc_to(long long path, float x1, float y1, float x2, float y2, float radius);
3605
+ #endif
3606
+
3607
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3608
+ void path_ellipse(long long path,
3609
+ float x,
3610
+ float y,
3611
+ float radius_x,
3612
+ float radius_y,
3613
+ float rotation,
3614
+ float start_angle,
3615
+ float end_angle,
3616
+ bool anticlockwise);
3617
+ #endif
3618
+
3619
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3620
+ void path_rect(long long path, float x, float y, float width, float height);
3621
+ #endif
3622
+
3623
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3624
+ void destroy_path(long long path);
3625
+ #endif
3626
+
3627
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3628
+ void pattern_set_transform(long long pattern, long long matrix);
3629
+ #endif
3630
+
3631
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3632
+ void svg_draw_from_string(long long context, const int8_t *svg);
3633
+ #endif
3634
+
3635
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3636
+ void svg_draw_from_path(long long context, const int8_t *path);
3637
+ #endif
3638
+
3639
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3640
+ long long text_decoder_create(const char *decoding);
3641
+ #endif
3642
+
3643
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3644
+ const char *text_decoder_get_encoding(long long decoder);
3645
+ #endif
3646
+
3647
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3648
+ const char *text_decoder_decode(long long decoder, const uint8_t *data, uintptr_t len);
3649
+ #endif
3650
+
3651
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3652
+ const struct U8Array *text_decoder_decode_to_bytes(long long decoder,
3653
+ const uint8_t *data,
3654
+ uintptr_t len);
3655
+ #endif
3656
+
3657
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3658
+ const char *text_decoder_decode_u16(long long decoder, const uint16_t *data, uintptr_t len);
3659
+ #endif
3660
+
3661
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3662
+ const char *text_decoder_decode_i16(long long decoder, const int16_t *data, uintptr_t len);
3663
+ #endif
3664
+
3665
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3666
+ const char *text_decoder_decode_i32(long long decoder, const int32_t *data, uintptr_t len);
3667
+ #endif
3668
+
3669
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3670
+ void destroy_text_decoder(long long decoder);
3671
+ #endif
3672
+
3673
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3674
+ struct U8Array *text_decoder_decode_bytes(long long decoder, const uint8_t *data, uintptr_t len);
3675
+ #endif
3676
+
3677
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3678
+ struct U8Array *text_decoder_decode_u16_bytes(long long decoder,
3679
+ const uint16_t *data,
3680
+ uintptr_t len);
3681
+ #endif
3682
+
3683
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3684
+ struct U8Array *text_decoder_decode_i16_bytes(long long decoder,
3685
+ const int16_t *data,
3686
+ uintptr_t len);
3687
+ #endif
3688
+
3689
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3690
+ struct U8Array *text_decoder_decode_i32_bytes(long long decoder,
3691
+ const int32_t *data,
3692
+ uintptr_t len);
3693
+ #endif
3694
+
3695
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3696
+ struct U8Array *text_decoder_decode_u32_bytes(long long decoder,
3697
+ const uint32_t *data,
3698
+ uintptr_t len);
3699
+ #endif
3700
+
3701
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3702
+ long long text_encoder_create(const char *encoding);
3703
+ #endif
3704
+
3705
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3706
+ const char *text_encoder_get_encoding(long long encoder);
3707
+ #endif
3708
+
3709
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3710
+ struct U8Array *text_encoder_encode(long long encoder, const char *text);
3711
+ #endif
3712
+
3713
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3714
+ void destroy_text_encoder(long long encoder);
3715
+ #endif
3716
+
3717
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3718
+ float text_metrics_get_width(long long metrics);
3719
+ #endif
3720
+
3721
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3722
+ float text_metrics_get_actual_bounding_box_left(long long metrics);
3723
+ #endif
3724
+
3725
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3726
+ float text_metrics_get_actual_bounding_box_right(long long metrics);
3727
+ #endif
3728
+
3729
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3730
+ float text_metrics_get_actual_bounding_box_ascent(long long metrics);
3731
+ #endif
3732
+
3733
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3734
+ float text_metrics_get_actual_bounding_box_descent(long long metrics);
3735
+ #endif
3736
+
3737
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3738
+ float text_metrics_get_font_bounding_box_ascent(long long metrics);
3739
+ #endif
3740
+
3741
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3742
+ float text_metrics_get_font_bounding_box_descent(long long metrics);
3743
+ #endif
3744
+
3745
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3746
+ float text_metrics_get_em_height_ascent(long long metrics);
3747
+ #endif
3748
+
3749
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3750
+ float text_metrics_get_em_height_descent(long long metrics);
3751
+ #endif
3752
+
3753
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3754
+ float text_metrics_get_hanging_baseline(long long metrics);
3755
+ #endif
3756
+
3757
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3758
+ float text_metrics_get_alphabetic_baseline(long long metrics);
3759
+ #endif
3760
+
3761
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3762
+ float text_metrics_get_ideographic_baseline(long long metrics);
3763
+ #endif
3764
+
3765
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3766
+ void flip_y_in_place(uint8_t *data, uintptr_t length, uintptr_t bytes_per_row, uintptr_t height);
3767
+ #endif
3768
+
3769
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3770
+ void flip_y_in_place_3d(uint8_t *data,
3771
+ uintptr_t length,
3772
+ uintptr_t bytes_per_row,
3773
+ uintptr_t height,
3774
+ uintptr_t depth);
3775
+ #endif
3776
+
3777
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3778
+ void flip_y_in_place_3d_i8(int8_t *data,
3779
+ uintptr_t length,
3780
+ uintptr_t bytes_per_row,
3781
+ uintptr_t height,
3782
+ uintptr_t depth);
3783
+ #endif
3784
+
3785
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3786
+ void flip_y_in_place_3d_u16(uint16_t *data,
3787
+ uintptr_t length,
3788
+ uintptr_t bytes_per_row,
3789
+ uintptr_t height,
3790
+ uintptr_t depth);
3791
+ #endif
3792
+
3793
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3794
+ void flip_y_in_place_3d_i16(int16_t *data,
3795
+ uintptr_t length,
3796
+ uintptr_t bytes_per_row,
3797
+ uintptr_t height,
3798
+ uintptr_t depth);
3799
+ #endif
3800
+
3801
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3802
+ void flip_y_in_place_3d_u32(uint32_t *data,
3803
+ uintptr_t length,
3804
+ uintptr_t bytes_per_row,
3805
+ uintptr_t height,
3806
+ uintptr_t depth);
3807
+ #endif
3808
+
3809
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3810
+ void flip_y_in_place_3d_i32(int32_t *data,
3811
+ uintptr_t length,
3812
+ uintptr_t bytes_per_row,
3813
+ uintptr_t height,
3814
+ uintptr_t depth);
3815
+ #endif
3816
+
3817
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3818
+ void flip_y_in_place_3d_f32(float *data,
3819
+ uintptr_t length,
3820
+ uintptr_t bytes_per_row,
3821
+ uintptr_t height,
3822
+ uintptr_t depth);
3823
+ #endif
3824
+
3825
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3826
+ void flip_y_in_place_3d_f64(double *data,
3827
+ uintptr_t length,
3828
+ uintptr_t bytes_per_row,
3829
+ uintptr_t height,
3830
+ uintptr_t depth);
3831
+ #endif
3832
+
3833
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3834
+ void flip_y_in_place_i8(int8_t *data, uintptr_t length, uintptr_t bytes_per_row, uintptr_t height);
3835
+ #endif
3836
+
3837
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3838
+ void flip_y_in_place_u16(uint16_t *data,
3839
+ uintptr_t length,
3840
+ uintptr_t bytes_per_row,
3841
+ uintptr_t height);
3842
+ #endif
3843
+
3844
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3845
+ void flip_y_in_place_i16(int16_t *data,
3846
+ uintptr_t length,
3847
+ uintptr_t bytes_per_row,
3848
+ uintptr_t height);
3849
+ #endif
3850
+
3851
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3852
+ void flip_y_in_place_u32(uint32_t *data,
3853
+ uintptr_t length,
3854
+ uintptr_t bytes_per_row,
3855
+ uintptr_t height);
3856
+ #endif
3857
+
3858
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3859
+ void flip_y_in_place_i32(int32_t *data,
3860
+ uintptr_t length,
3861
+ uintptr_t bytes_per_row,
3862
+ uintptr_t height);
3863
+ #endif
3864
+
3865
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3866
+ void flip_y_in_place_f32(float *data, uintptr_t length, uintptr_t bytes_per_row, uintptr_t height);
3867
+ #endif
3868
+
3869
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
3870
+ void flip_y_in_place_f64(double *data, uintptr_t length, uintptr_t bytes_per_row, uintptr_t height);
3871
+ #endif
3872
+
3873
+ #endif /* CBINDGEN_BINDINGS_H */