@nativescript/canvas 1.0.0-alpha.8 → 1.0.0

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 (95) hide show
  1. package/Canvas/common.d.ts +34 -14
  2. package/Canvas/common.js +413 -202
  3. package/Canvas/common.js.map +1 -1
  4. package/Canvas/index.android.d.ts +2 -0
  5. package/Canvas/index.android.js +8 -7
  6. package/Canvas/index.android.js.map +1 -1
  7. package/Canvas/index.d.ts +14 -0
  8. package/Canvas/index.ios.d.ts +1 -0
  9. package/Canvas/index.ios.js +1 -2
  10. package/Canvas/index.ios.js.map +1 -1
  11. package/Canvas2D/CanvasGradient/CanvasGradient.android.js.map +1 -1
  12. package/Canvas2D/CanvasRenderingContext2D/index.android.js +6 -0
  13. package/Canvas2D/CanvasRenderingContext2D/index.android.js.map +1 -1
  14. package/Canvas2D/CanvasRenderingContext2D/index.ios.js +9 -0
  15. package/Canvas2D/CanvasRenderingContext2D/index.ios.js.map +1 -1
  16. package/Canvas2D/DOMMatrix/common.d.ts +1 -0
  17. package/Canvas2D/DOMMatrix/common.js +4 -0
  18. package/Canvas2D/DOMMatrix/common.js.map +1 -1
  19. package/Canvas2D/ImageData/common.d.ts +1 -0
  20. package/Canvas2D/ImageData/common.js +4 -0
  21. package/Canvas2D/ImageData/common.js.map +1 -1
  22. package/Canvas2D/Path2D/common.d.ts +1 -0
  23. package/Canvas2D/Path2D/common.js +4 -0
  24. package/Canvas2D/Path2D/common.js.map +1 -1
  25. package/Canvas2D/TextMetrics/common.d.ts +1 -0
  26. package/Canvas2D/TextMetrics/common.js +4 -0
  27. package/Canvas2D/TextMetrics/common.js.map +1 -1
  28. package/ImageAsset/common.d.ts +1 -0
  29. package/ImageAsset/common.js +4 -0
  30. package/ImageAsset/common.js.map +1 -1
  31. package/ImageBitmap/common.d.ts +1 -0
  32. package/ImageBitmap/common.js +4 -0
  33. package/ImageBitmap/common.js.map +1 -1
  34. package/TextDecoder/common.d.ts +1 -0
  35. package/TextDecoder/common.js +4 -0
  36. package/TextDecoder/common.js.map +1 -1
  37. package/TextEncoder/common.d.ts +1 -0
  38. package/TextEncoder/common.js +4 -0
  39. package/TextEncoder/common.js.map +1 -1
  40. package/WebGL/WebGLRenderingContext/index.android.js +4 -1
  41. package/WebGL/WebGLRenderingContext/index.android.js.map +1 -1
  42. package/WebGL/WebGLRenderingContext/index.ios.js +2 -2
  43. package/WebGL/WebGLRenderingContext/index.ios.js.map +1 -1
  44. package/WebGL2/WebGL2RenderingContext/index.android.js +2 -2
  45. package/WebGL2/WebGL2RenderingContext/index.android.js.map +1 -1
  46. package/WebGL2/WebGL2RenderingContext/index.ios.js +25 -15
  47. package/WebGL2/WebGL2RenderingContext/index.ios.js.map +1 -1
  48. package/angular/bundles/nativescript-canvas-angular.umd.js.map +1 -1
  49. package/angular/fesm2015/nativescript-canvas-angular.js.map +1 -1
  50. package/index.d.ts +2 -1
  51. package/index.js +17 -7
  52. package/index.js.map +1 -1
  53. package/package.json +1 -2
  54. package/platforms/android/include.gradle +1 -1
  55. package/platforms/ios/CanvasNative.xcframework/Info.plist +44 -0
  56. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
  57. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +1996 -0
  58. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h +21 -0
  59. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/Utils.h +26 -0
  60. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +1592 -0
  61. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist +0 -0
  62. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  63. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64.swiftsourceinfo +0 -0
  64. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  65. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +3257 -0
  66. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftdoc +0 -0
  67. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftinterface +3257 -0
  68. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/module.modulemap +11 -0
  69. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/TNSCanvas.nib +0 -0
  70. package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Info.plist +20 -0
  71. package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  72. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
  73. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +3998 -0
  74. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h +21 -0
  75. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/Utils.h +26 -0
  76. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +1592 -0
  77. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist +0 -0
  78. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  79. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64.swiftsourceinfo +0 -0
  80. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  81. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64.swiftsourceinfo +0 -0
  82. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  83. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3257 -0
  84. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftdoc +0 -0
  85. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftinterface +3257 -0
  86. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  87. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +3257 -0
  88. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64.swiftdoc +0 -0
  89. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64.swiftinterface +3257 -0
  90. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/module.modulemap +11 -0
  91. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/TNSCanvas.nib +0 -0
  92. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +344 -0
  93. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Info.plist +20 -0
  94. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  95. package/platforms/ios/Podfile +1 -1
@@ -0,0 +1,1592 @@
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_IOS) || defined(TARGET_OS_MACOS))
241
+ void destroy_string(const char *string);
242
+ #endif
243
+
244
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
245
+ void destroy_context(long long context);
246
+ #endif
247
+
248
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
249
+ void destroy_paint_style(long long style);
250
+ #endif
251
+
252
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
253
+ void destroy_text_metrics(long long metrics);
254
+ #endif
255
+
256
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
257
+ long long context_init_context(float width,
258
+ float height,
259
+ float density,
260
+ int buffer_id,
261
+ uintptr_t samples,
262
+ bool alpha,
263
+ unsigned int font_color,
264
+ float ppi,
265
+ enum TextDirection direction);
266
+ #endif
267
+
268
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
269
+ long long context_init_context_with_custom_surface(float width,
270
+ float height,
271
+ float density,
272
+ bool alpha,
273
+ int font_color,
274
+ float ppi,
275
+ enum TextDirection direction);
276
+ #endif
277
+
278
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
279
+ void context_resize_custom_surface(long long context,
280
+ float width,
281
+ float height,
282
+ float density,
283
+ bool alpha,
284
+ float ppi);
285
+ #endif
286
+
287
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
288
+ void context_resize_surface(long long context,
289
+ float width,
290
+ float height,
291
+ float density,
292
+ int buffer_id,
293
+ uintptr_t samples,
294
+ bool alpha,
295
+ float ppi);
296
+ #endif
297
+
298
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
299
+ const char *context_data_url(long long context, const char *format, float quality);
300
+ #endif
301
+
302
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
303
+ struct U8Array *context_snapshot_canvas(long long context);
304
+ #endif
305
+
306
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
307
+ void context_flush(long long context);
308
+ #endif
309
+
310
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
311
+ void context_custom_with_buffer_flush(long long context,
312
+ uint8_t *buf,
313
+ uintptr_t buf_size,
314
+ float width,
315
+ float height);
316
+ #endif
317
+
318
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
319
+ void context_set_direction(long long context, enum TextDirection direction);
320
+ #endif
321
+
322
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
323
+ enum TextDirection context_get_direction(const struct Context *context);
324
+ #endif
325
+
326
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
327
+ void context_set_fill_style(long long context, long long style);
328
+ #endif
329
+
330
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
331
+ struct PaintStyleValue *context_get_fill_style(long long context);
332
+ #endif
333
+
334
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
335
+ void context_set_filter(long long context, const char *filter);
336
+ #endif
337
+
338
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
339
+ const char *context_get_filter(long long context);
340
+ #endif
341
+
342
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
343
+ void context_set_font(long long context, const char *filter);
344
+ #endif
345
+
346
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
347
+ const char *context_get_font(long long context);
348
+ #endif
349
+
350
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
351
+ void context_set_global_alpha(long long context, float alpha);
352
+ #endif
353
+
354
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
355
+ float context_get_global_alpha(long long context);
356
+ #endif
357
+
358
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
359
+ void context_set_global_composite_operation(long long context,
360
+ enum CompositeOperationType operation);
361
+ #endif
362
+
363
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
364
+ enum CompositeOperationType context_get_global_composite_operation(long long context);
365
+ #endif
366
+
367
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
368
+ void context_set_image_smoothing_enabled(long long context, bool enabled);
369
+ #endif
370
+
371
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
372
+ bool context_get_image_smoothing_enabled(long long context);
373
+ #endif
374
+
375
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
376
+ void context_set_image_smoothing_quality(long long context, enum ImageSmoothingQuality quality);
377
+ #endif
378
+
379
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
380
+ enum ImageSmoothingQuality context_get_image_smoothing_quality(long long context);
381
+ #endif
382
+
383
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
384
+ void context_set_line_cap(long long context, enum LineCap cap);
385
+ #endif
386
+
387
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
388
+ enum LineCap context_get_line_cap(long long context);
389
+ #endif
390
+
391
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
392
+ void context_set_line_dash_offset(long long context, float offset);
393
+ #endif
394
+
395
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
396
+ float context_get_line_dash_offset(long long context);
397
+ #endif
398
+
399
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
400
+ void context_set_line_join(long long context, enum LineJoin join);
401
+ #endif
402
+
403
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
404
+ enum LineJoin context_get_line_join(long long context);
405
+ #endif
406
+
407
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
408
+ void context_set_line_width(long long context, float width);
409
+ #endif
410
+
411
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
412
+ float context_get_line_width(long long context);
413
+ #endif
414
+
415
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
416
+ void context_set_miter_limit(long long context, float limit);
417
+ #endif
418
+
419
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
420
+ float context_get_miter_limit(long long context);
421
+ #endif
422
+
423
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
424
+ void context_set_shadow_blur(long long context, float blur);
425
+ #endif
426
+
427
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
428
+ float context_get_shadow_blur(long long context);
429
+ #endif
430
+
431
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
432
+ void context_set_shadow_color(long long context, uint8_t r, uint8_t g, uint8_t b, uint8_t a);
433
+ #endif
434
+
435
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
436
+ void context_set_shadow_color_string(long long context, const char *color);
437
+ #endif
438
+
439
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
440
+ const char *context_get_shadow_color(long long context);
441
+ #endif
442
+
443
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
444
+ void context_set_shadow_offset_x(long long context, float x);
445
+ #endif
446
+
447
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
448
+ float context_get_shadow_offset_x(long long context);
449
+ #endif
450
+
451
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
452
+ void context_set_shadow_offset_y(long long context, float y);
453
+ #endif
454
+
455
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
456
+ float context_get_shadow_offset_y(long long context);
457
+ #endif
458
+
459
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
460
+ void context_set_stroke_style(long long context, long long style);
461
+ #endif
462
+
463
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
464
+ struct PaintStyleValue *context_get_stroke_style(long long context);
465
+ #endif
466
+
467
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
468
+ void context_set_text_align(long long context, enum TextAlign align);
469
+ #endif
470
+
471
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
472
+ enum TextAlign context_get_text_align(long long context);
473
+ #endif
474
+
475
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
476
+ void context_set_text_baseline(long long context, enum TextBaseLine baseline);
477
+ #endif
478
+
479
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
480
+ enum TextBaseLine context_get_text_baseline(long long context);
481
+ #endif
482
+
483
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
484
+ void context_arc(long long context,
485
+ float x,
486
+ float y,
487
+ float radius,
488
+ float start_angle,
489
+ float end_angle,
490
+ bool anti_clockwise);
491
+ #endif
492
+
493
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
494
+ void context_arc_to(long long context, float x1, float y1, float x2, float y2, float radius);
495
+ #endif
496
+
497
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
498
+ void context_begin_path(long long context);
499
+ #endif
500
+
501
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
502
+ void context_bezier_curve_to(long long context,
503
+ float cp1x,
504
+ float cp1y,
505
+ float cp2x,
506
+ float cp2y,
507
+ float x,
508
+ float y);
509
+ #endif
510
+
511
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
512
+ void context_clear_rect(long long context, float x, float y, float width, float height);
513
+ #endif
514
+
515
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
516
+ void context_clip(long long context, long long path, enum FillRule rule);
517
+ #endif
518
+
519
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
520
+ void context_clip_rule(long long context, enum FillRule rule);
521
+ #endif
522
+
523
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
524
+ void context_close_path(long long context);
525
+ #endif
526
+
527
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
528
+ long long context_create_image_data(int width, int height);
529
+ #endif
530
+
531
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
532
+ long long context_create_linear_gradient(long long context, float x0, float y0, float x1, float y1);
533
+ #endif
534
+
535
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
536
+ long long context_create_pattern(long long context,
537
+ const uint8_t *image_data,
538
+ uintptr_t image_len,
539
+ int width,
540
+ int height,
541
+ enum Repetition repetition);
542
+ #endif
543
+
544
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
545
+ long long context_create_pattern_asset(long long context,
546
+ long long asset,
547
+ enum Repetition repetition);
548
+ #endif
549
+
550
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
551
+ long long context_create_pattern_encoded(long long context,
552
+ const uint8_t *image_data,
553
+ uintptr_t image_len,
554
+ enum Repetition repetition);
555
+ #endif
556
+
557
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
558
+ long long context_create_radial_gradient(long long context,
559
+ float x0,
560
+ float y0,
561
+ float r0,
562
+ float x1,
563
+ float y1,
564
+ float r1);
565
+ #endif
566
+
567
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
568
+ void context_draw_image_dx_dy(long long context,
569
+ const uint8_t *image_data,
570
+ uintptr_t image_len,
571
+ float width,
572
+ float height,
573
+ float dx,
574
+ float dy);
575
+ #endif
576
+
577
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
578
+ void context_draw_image_dx_dy_dw_dh(long long context,
579
+ const uint8_t *image_data,
580
+ uintptr_t image_len,
581
+ float width,
582
+ float height,
583
+ float dx,
584
+ float dy,
585
+ float d_width,
586
+ float d_height);
587
+ #endif
588
+
589
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
590
+ void context_draw_image(long long context,
591
+ const uint8_t *image_data,
592
+ uintptr_t image_len,
593
+ float width,
594
+ float height,
595
+ float sx,
596
+ float sy,
597
+ float s_width,
598
+ float s_height,
599
+ float dx,
600
+ float dy,
601
+ float d_width,
602
+ float d_height);
603
+ #endif
604
+
605
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
606
+ void context_draw_image_encoded_dx_dy(long long context,
607
+ const uint8_t *image_data,
608
+ uintptr_t image_len,
609
+ float dx,
610
+ float dy);
611
+ #endif
612
+
613
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
614
+ void context_draw_image_encoded_dx_dy_dw_dh(long long context,
615
+ const uint8_t *image_data,
616
+ uintptr_t image_len,
617
+ float dx,
618
+ float dy,
619
+ float d_width,
620
+ float d_height);
621
+ #endif
622
+
623
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
624
+ void context_draw_image_encoded(long long context,
625
+ const uint8_t *image_data,
626
+ uintptr_t image_len,
627
+ float sx,
628
+ float sy,
629
+ float s_width,
630
+ float s_height,
631
+ float dx,
632
+ float dy,
633
+ float d_width,
634
+ float d_height);
635
+ #endif
636
+
637
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
638
+ void context_draw_image_dx_dy_asset(long long context, long long asset, float dx, float dy);
639
+ #endif
640
+
641
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
642
+ void context_draw_image_dx_dy_dw_dh_asset(long long context,
643
+ long long asset,
644
+ float dx,
645
+ float dy,
646
+ float d_width,
647
+ float d_height);
648
+ #endif
649
+
650
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
651
+ void context_draw_image_asset(long long context,
652
+ long long asset,
653
+ float sx,
654
+ float sy,
655
+ float s_width,
656
+ float s_height,
657
+ float dx,
658
+ float dy,
659
+ float d_width,
660
+ float d_height);
661
+ #endif
662
+
663
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
664
+ void context_ellipse(long long context,
665
+ float x,
666
+ float y,
667
+ float radius_x,
668
+ float radius_y,
669
+ float rotation,
670
+ float start_angle,
671
+ float end_angle,
672
+ bool anticlockwise);
673
+ #endif
674
+
675
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
676
+ void context_fill(long long context, long long path, enum FillRule rule);
677
+ #endif
678
+
679
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
680
+ void context_fill_rect(long long context, float x, float y, float width, float height);
681
+ #endif
682
+
683
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
684
+ void context_fill_text(long long context, const char *text, float x, float y, float width);
685
+ #endif
686
+
687
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
688
+ long long context_get_image_data(long long context, float sx, float sy, float sw, float sh);
689
+ #endif
690
+
691
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
692
+ struct F32Array *context_get_line_dash(long long context);
693
+ #endif
694
+
695
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
696
+ long long context_get_transform(long long context);
697
+ #endif
698
+
699
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
700
+ bool context_is_point_in_path(long long context,
701
+ long long path,
702
+ float x,
703
+ float y,
704
+ enum FillRule rule);
705
+ #endif
706
+
707
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
708
+ bool context_is_point_in_stroke(long long context, long long path, float x, float y);
709
+ #endif
710
+
711
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
712
+ void context_line_to(long long context, float x, float y);
713
+ #endif
714
+
715
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
716
+ long long context_measure_text(long long context, const char *text);
717
+ #endif
718
+
719
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
720
+ void context_move_to(long long context, float x, float y);
721
+ #endif
722
+
723
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
724
+ void context_put_image_data(long long context,
725
+ long long image_data,
726
+ float dx,
727
+ float dy,
728
+ float dirty_x,
729
+ float dirty_y,
730
+ float dirty_width,
731
+ float dirty_height);
732
+ #endif
733
+
734
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
735
+ void context_quadratic_curve_to(long long context, float cpx, float cpy, float x, float y);
736
+ #endif
737
+
738
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
739
+ void context_rect(long long context, float x, float y, float width, float height);
740
+ #endif
741
+
742
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
743
+ void context_reset_transform(long long context);
744
+ #endif
745
+
746
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
747
+ void context_restore(long long context);
748
+ #endif
749
+
750
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
751
+ void context_rotate(long long context, float angle);
752
+ #endif
753
+
754
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
755
+ void context_save(long long context);
756
+ #endif
757
+
758
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
759
+ void context_scale(long long context, float x, float y);
760
+ #endif
761
+
762
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
763
+ void context_set_line_dash(long long context, const float *data, uintptr_t data_length);
764
+ #endif
765
+
766
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
767
+ void context_set_transform(long long context, float a, float b, float c, float d, float e, float f);
768
+ #endif
769
+
770
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
771
+ void context_set_transform_matrix(long long context, long long matrix);
772
+ #endif
773
+
774
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
775
+ void context_stroke(long long context, long long path);
776
+ #endif
777
+
778
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
779
+ void context_stroke_rect(long long context, float x, float y, float width, float height);
780
+ #endif
781
+
782
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
783
+ void context_stroke_text(long long context, const char *text, float x, float y, float width);
784
+ #endif
785
+
786
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
787
+ void context_transform(long long context, float a, float b, float c, float d, float e, float f);
788
+ #endif
789
+
790
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
791
+ void context_translate(long long context, float x, float y);
792
+ #endif
793
+
794
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
795
+ void gl_tex_image_2D_asset(unsigned int target,
796
+ int level,
797
+ int internalformat,
798
+ int border,
799
+ unsigned int format,
800
+ unsigned int image_type,
801
+ long long asset,
802
+ bool flip_y);
803
+ #endif
804
+
805
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
806
+ void gl_tex_sub_image_2D_asset(unsigned int target,
807
+ int level,
808
+ int xoffset,
809
+ int yoffset,
810
+ unsigned int format,
811
+ unsigned int image_type,
812
+ long long asset,
813
+ bool flip_y);
814
+ #endif
815
+
816
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
817
+ void gl_tex_image_3D_asset(unsigned int target,
818
+ int level,
819
+ int internalformat,
820
+ int width,
821
+ int height,
822
+ int depth,
823
+ int border,
824
+ unsigned int format,
825
+ unsigned int image_type,
826
+ long long asset,
827
+ bool flip_y);
828
+ #endif
829
+
830
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
831
+ void gl_tex_sub_image_3D_asset(unsigned int target,
832
+ int level,
833
+ int xoffset,
834
+ int yoffset,
835
+ int zoffset,
836
+ int width,
837
+ int height,
838
+ int depth,
839
+ unsigned int format,
840
+ unsigned int image_type,
841
+ long long asset,
842
+ bool flip_y);
843
+ #endif
844
+
845
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
846
+ void gl_vertex_attrib_pointer(unsigned int index,
847
+ int size,
848
+ unsigned int pointer_type,
849
+ bool normalized,
850
+ int stride,
851
+ long long offset);
852
+ #endif
853
+
854
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
855
+ long long gl_get_vertex_attrib_offset(unsigned int index, unsigned int pname);
856
+ #endif
857
+
858
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
859
+ void gradient_add_color_stop(long long style, float stop, const char *color);
860
+ #endif
861
+
862
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
863
+ long long image_asset_create(void);
864
+ #endif
865
+
866
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
867
+ bool image_asset_load_from_path(long long asset, const char *path);
868
+ #endif
869
+
870
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
871
+ bool image_asset_load_from_raw(long long asset, const uint8_t *array, uintptr_t size);
872
+ #endif
873
+
874
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
875
+ struct U8Array *image_asset_get_bytes(long long asset);
876
+ #endif
877
+
878
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
879
+ struct U8Array *image_asset_get_rgba_bytes(long long asset);
880
+ #endif
881
+
882
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
883
+ struct U8Array *image_asset_get_rgb_bytes(long long asset);
884
+ #endif
885
+
886
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
887
+ unsigned int image_asset_width(long long asset);
888
+ #endif
889
+
890
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
891
+ unsigned int image_asset_height(long long asset);
892
+ #endif
893
+
894
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
895
+ const char *image_asset_get_error(long long asset);
896
+ #endif
897
+
898
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
899
+ bool image_asset_has_error(long long asset);
900
+ #endif
901
+
902
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
903
+ bool image_asset_scale(long long asset, unsigned int x, unsigned int y);
904
+ #endif
905
+
906
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
907
+ bool image_asset_flip_x(long long asset);
908
+ #endif
909
+
910
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
911
+ bool image_asset_flip_x_in_place(long long asset);
912
+ #endif
913
+
914
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
915
+ bool image_asset_flip_y(long long asset);
916
+ #endif
917
+
918
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
919
+ void image_asset_flip_y_in_place_owned(uint8_t *buf, uintptr_t length);
920
+ #endif
921
+
922
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
923
+ void image_asset_flip_x_in_place_owned(uint8_t *buf, uintptr_t length);
924
+ #endif
925
+
926
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
927
+ bool image_asset_flip_y_in_place(long long asset);
928
+ #endif
929
+
930
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
931
+ bool image_asset_save_path(long long asset, const char *path, unsigned int format);
932
+ #endif
933
+
934
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
935
+ void destroy_image_asset(long long asset);
936
+ #endif
937
+
938
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
939
+ long long image_bitmap_create_from_bytes(const uint8_t *image_bytes,
940
+ uintptr_t image_size,
941
+ float image_width,
942
+ float image_height,
943
+ bool flip_y,
944
+ int32_t premultiply_alpha,
945
+ int32_t color_space_conversion,
946
+ int32_t resize_quality,
947
+ float resize_width,
948
+ float resize_height);
949
+ #endif
950
+
951
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
952
+ long long image_bitmap_create_from_bytes_src_rect(const uint8_t *image_bytes,
953
+ uintptr_t image_size,
954
+ float image_width,
955
+ float image_height,
956
+ float sx,
957
+ float sy,
958
+ float s_width,
959
+ float s_height,
960
+ bool flip_y,
961
+ int32_t premultiply_alpha,
962
+ int32_t color_space_conversion,
963
+ int32_t resize_quality,
964
+ float resize_width,
965
+ float resize_height);
966
+ #endif
967
+
968
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
969
+ long long image_bitmap_create_from_image_asset(long long asset,
970
+ bool flip_y,
971
+ int premultiply_alpha,
972
+ int color_space_conversion,
973
+ int resize_quality,
974
+ float resize_width,
975
+ float resize_height);
976
+ #endif
977
+
978
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
979
+ long long image_bitmap_create_from_image_asset_src_rect(long long asset,
980
+ float sx,
981
+ float sy,
982
+ float s_width,
983
+ float s_height,
984
+ bool flip_y,
985
+ int premultiply_alpha,
986
+ int color_space_conversion,
987
+ int resize_quality,
988
+ float resize_width,
989
+ float resize_height);
990
+ #endif
991
+
992
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
993
+ long long image_bitmap_create_from_bytes_encoded(const uint8_t *image_bytes,
994
+ uintptr_t image_size,
995
+ bool flip_y,
996
+ int32_t premultiply_alpha,
997
+ int32_t color_space_conversion,
998
+ int32_t resize_quality,
999
+ float resize_width,
1000
+ float resize_height);
1001
+ #endif
1002
+
1003
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1004
+ long long image_bitmap_create_from_bytes_encoded_src_rect(const uint8_t *image_bytes,
1005
+ uintptr_t image_size,
1006
+ float sx,
1007
+ float sy,
1008
+ float s_width,
1009
+ float s_height,
1010
+ bool flip_y,
1011
+ int32_t premultiply_alpha,
1012
+ int32_t color_space_conversion,
1013
+ int32_t resize_quality,
1014
+ float resize_width,
1015
+ float resize_height);
1016
+ #endif
1017
+
1018
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1019
+ long long image_bitmap_create_from_image_data(long long image_data,
1020
+ bool flip_y,
1021
+ int premultiply_alpha,
1022
+ int color_space_conversion,
1023
+ int resize_quality,
1024
+ float resize_width,
1025
+ float resize_height);
1026
+ #endif
1027
+
1028
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1029
+ long long image_bitmap_create_from_image_data_src_rect(long long image_data,
1030
+ float sx,
1031
+ float sy,
1032
+ float s_width,
1033
+ float s_height,
1034
+ bool flip_y,
1035
+ int premultiply_alpha,
1036
+ int color_space_conversion,
1037
+ int resize_quality,
1038
+ float resize_width,
1039
+ float resize_height);
1040
+ #endif
1041
+
1042
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1043
+ long long image_data_create(int width, int height);
1044
+ #endif
1045
+
1046
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1047
+ int image_data_width(long long image_data);
1048
+ #endif
1049
+
1050
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1051
+ int image_data_height(long long image_data);
1052
+ #endif
1053
+
1054
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1055
+ uint8_t *image_data_data(long long image_data);
1056
+ #endif
1057
+
1058
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1059
+ uintptr_t image_data_data_length(long long image_data);
1060
+ #endif
1061
+
1062
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1063
+ void destroy_image_data(long long image_data);
1064
+ #endif
1065
+
1066
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1067
+ long long matrix_create(void);
1068
+ #endif
1069
+
1070
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1071
+ void matrix_update(long long matrix, const float *data, uintptr_t data_len);
1072
+ #endif
1073
+
1074
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1075
+ float matrix_a(long long matrix);
1076
+ #endif
1077
+
1078
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1079
+ void matrix_set_a(long long matrix, float a);
1080
+ #endif
1081
+
1082
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1083
+ float matrix_b(long long matrix);
1084
+ #endif
1085
+
1086
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1087
+ void matrix_set_b(long long matrix, float b);
1088
+ #endif
1089
+
1090
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1091
+ float matrix_c(long long matrix);
1092
+ #endif
1093
+
1094
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1095
+ void matrix_set_c(long long matrix, float c);
1096
+ #endif
1097
+
1098
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1099
+ float matrix_d(long long matrix);
1100
+ #endif
1101
+
1102
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1103
+ void matrix_set_d(long long matrix, float d);
1104
+ #endif
1105
+
1106
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1107
+ float matrix_e(long long matrix);
1108
+ #endif
1109
+
1110
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1111
+ void matrix_set_e(long long matrix, float e);
1112
+ #endif
1113
+
1114
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1115
+ float matrix_f(long long matrix);
1116
+ #endif
1117
+
1118
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1119
+ void matrix_set_f(long long matrix, float f);
1120
+ #endif
1121
+
1122
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1123
+ float matrix_m11(long long matrix);
1124
+ #endif
1125
+
1126
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1127
+ void matrix_set_m11(long long matrix, float m11);
1128
+ #endif
1129
+
1130
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1131
+ float matrix_m12(long long matrix);
1132
+ #endif
1133
+
1134
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1135
+ void matrix_set_m12(long long matrix, float m12);
1136
+ #endif
1137
+
1138
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1139
+ float matrix_m13(long long matrix);
1140
+ #endif
1141
+
1142
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1143
+ void matrix_set_m13(long long matrix, float m13);
1144
+ #endif
1145
+
1146
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1147
+ float matrix_m14(long long matrix);
1148
+ #endif
1149
+
1150
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1151
+ void matrix_set_m14(long long matrix, float m14);
1152
+ #endif
1153
+
1154
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1155
+ float matrix_m21(long long matrix);
1156
+ #endif
1157
+
1158
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1159
+ void matrix_set_m21(long long matrix, float m21);
1160
+ #endif
1161
+
1162
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1163
+ float matrix_m22(long long matrix);
1164
+ #endif
1165
+
1166
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1167
+ void matrix_set_m22(long long matrix, float m22);
1168
+ #endif
1169
+
1170
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1171
+ float matrix_m23(long long matrix);
1172
+ #endif
1173
+
1174
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1175
+ void matrix_set_m23(long long matrix, float m23);
1176
+ #endif
1177
+
1178
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1179
+ float matrix_m24(long long matrix);
1180
+ #endif
1181
+
1182
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1183
+ void matrix_set_m24(long long matrix, float m24);
1184
+ #endif
1185
+
1186
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1187
+ float matrix_m31(long long matrix);
1188
+ #endif
1189
+
1190
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1191
+ void matrix_set_m31(long long matrix, float m31);
1192
+ #endif
1193
+
1194
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1195
+ float matrix_m32(long long matrix);
1196
+ #endif
1197
+
1198
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1199
+ void matrix_set_m32(long long matrix, float m32);
1200
+ #endif
1201
+
1202
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1203
+ float matrix_m33(long long matrix);
1204
+ #endif
1205
+
1206
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1207
+ void matrix_set_m33(long long matrix, float m33);
1208
+ #endif
1209
+
1210
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1211
+ float matrix_m34(long long matrix);
1212
+ #endif
1213
+
1214
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1215
+ void matrix_set_m34(long long matrix, float m34);
1216
+ #endif
1217
+
1218
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1219
+ float matrix_m41(long long matrix);
1220
+ #endif
1221
+
1222
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1223
+ void matrix_set_m41(long long matrix, float m41);
1224
+ #endif
1225
+
1226
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1227
+ float matrix_m42(long long matrix);
1228
+ #endif
1229
+
1230
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1231
+ void matrix_set_m42(long long matrix, float m42);
1232
+ #endif
1233
+
1234
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1235
+ float matrix_m43(long long matrix);
1236
+ #endif
1237
+
1238
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1239
+ void matrix_set_m43(long long matrix, float m43);
1240
+ #endif
1241
+
1242
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1243
+ float matrix_m44(long long matrix);
1244
+ #endif
1245
+
1246
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1247
+ void matrix_set_m44(long long matrix, float m44);
1248
+ #endif
1249
+
1250
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1251
+ void destroy_matrix(long long matrix);
1252
+ #endif
1253
+
1254
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1255
+ void paint_style_set_fill_color_with_string(long long context, const char *color);
1256
+ #endif
1257
+
1258
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1259
+ void paint_style_set_stroke_color_with_string(long long context, const char *color);
1260
+ #endif
1261
+
1262
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1263
+ const char *paint_style_get_color_string(long long color);
1264
+ #endif
1265
+
1266
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1267
+ long long path_create(void);
1268
+ #endif
1269
+
1270
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1271
+ long long path_create_with_path(long long path);
1272
+ #endif
1273
+
1274
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1275
+ long long path_create_with_string(const char *string);
1276
+ #endif
1277
+
1278
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1279
+ void path_add_path(long long path, long long path_to_add);
1280
+ #endif
1281
+
1282
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1283
+ void path_add_path_with_matrix(long long path, long long path_to_add, long long matrix);
1284
+ #endif
1285
+
1286
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1287
+ void path_close_path(long long path);
1288
+ #endif
1289
+
1290
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1291
+ void path_move_to(long long path, float x, float y);
1292
+ #endif
1293
+
1294
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1295
+ void path_line_to(long long path, float x, float y);
1296
+ #endif
1297
+
1298
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1299
+ void path_bezier_curve_to(long long path,
1300
+ float cp1x,
1301
+ float cp1y,
1302
+ float cp2x,
1303
+ float cp2y,
1304
+ float x,
1305
+ float y);
1306
+ #endif
1307
+
1308
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1309
+ void path_quadratic_curve_to(long long path, float cpx, float cpy, float x, float y);
1310
+ #endif
1311
+
1312
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1313
+ void path_arc(long long path,
1314
+ float x,
1315
+ float y,
1316
+ float radius,
1317
+ float start_angle,
1318
+ float end_angle,
1319
+ bool anti_clockwise);
1320
+ #endif
1321
+
1322
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1323
+ void path_arc_to(long long path, float x1, float y1, float x2, float y2, float radius);
1324
+ #endif
1325
+
1326
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1327
+ void path_ellipse(long long path,
1328
+ float x,
1329
+ float y,
1330
+ float radius_x,
1331
+ float radius_y,
1332
+ float rotation,
1333
+ float start_angle,
1334
+ float end_angle,
1335
+ bool anticlockwise);
1336
+ #endif
1337
+
1338
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1339
+ void path_rect(long long path, float x, float y, float width, float height);
1340
+ #endif
1341
+
1342
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1343
+ void destroy_path(long long path);
1344
+ #endif
1345
+
1346
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1347
+ void pattern_set_transform(long long pattern, long long matrix);
1348
+ #endif
1349
+
1350
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1351
+ void svg_draw_from_string(long long context, const int8_t *svg);
1352
+ #endif
1353
+
1354
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1355
+ void svg_draw_from_path(long long context, const int8_t *path);
1356
+ #endif
1357
+
1358
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1359
+ long long text_decoder_create(const char *decoding);
1360
+ #endif
1361
+
1362
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1363
+ const char *text_decoder_get_encoding(long long decoder);
1364
+ #endif
1365
+
1366
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1367
+ const char *text_decoder_decode(long long decoder, const uint8_t *data, uintptr_t len);
1368
+ #endif
1369
+
1370
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1371
+ const struct U8Array *text_decoder_decode_to_bytes(long long decoder,
1372
+ const uint8_t *data,
1373
+ uintptr_t len);
1374
+ #endif
1375
+
1376
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1377
+ const char *text_decoder_decode_u16(long long decoder, const uint16_t *data, uintptr_t len);
1378
+ #endif
1379
+
1380
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1381
+ const char *text_decoder_decode_i16(long long decoder, const int16_t *data, uintptr_t len);
1382
+ #endif
1383
+
1384
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1385
+ const char *text_decoder_decode_i32(long long decoder, const int32_t *data, uintptr_t len);
1386
+ #endif
1387
+
1388
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1389
+ void destroy_text_decoder(long long decoder);
1390
+ #endif
1391
+
1392
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1393
+ struct U8Array *text_decoder_decode_bytes(long long decoder, const uint8_t *data, uintptr_t len);
1394
+ #endif
1395
+
1396
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1397
+ struct U8Array *text_decoder_decode_u16_bytes(long long decoder,
1398
+ const uint16_t *data,
1399
+ uintptr_t len);
1400
+ #endif
1401
+
1402
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1403
+ struct U8Array *text_decoder_decode_i16_bytes(long long decoder,
1404
+ const int16_t *data,
1405
+ uintptr_t len);
1406
+ #endif
1407
+
1408
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1409
+ struct U8Array *text_decoder_decode_i32_bytes(long long decoder,
1410
+ const int32_t *data,
1411
+ uintptr_t len);
1412
+ #endif
1413
+
1414
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1415
+ struct U8Array *text_decoder_decode_u32_bytes(long long decoder,
1416
+ const uint32_t *data,
1417
+ uintptr_t len);
1418
+ #endif
1419
+
1420
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1421
+ long long text_encoder_create(const char *encoding);
1422
+ #endif
1423
+
1424
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1425
+ const char *text_encoder_get_encoding(long long encoder);
1426
+ #endif
1427
+
1428
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1429
+ struct U8Array *text_encoder_encode(long long encoder, const char *text);
1430
+ #endif
1431
+
1432
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1433
+ void destroy_text_encoder(long long encoder);
1434
+ #endif
1435
+
1436
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1437
+ float text_metrics_get_width(long long metrics);
1438
+ #endif
1439
+
1440
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1441
+ float text_metrics_get_actual_bounding_box_left(long long metrics);
1442
+ #endif
1443
+
1444
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1445
+ float text_metrics_get_actual_bounding_box_right(long long metrics);
1446
+ #endif
1447
+
1448
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1449
+ float text_metrics_get_actual_bounding_box_ascent(long long metrics);
1450
+ #endif
1451
+
1452
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1453
+ float text_metrics_get_actual_bounding_box_descent(long long metrics);
1454
+ #endif
1455
+
1456
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1457
+ float text_metrics_get_font_bounding_box_ascent(long long metrics);
1458
+ #endif
1459
+
1460
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1461
+ float text_metrics_get_font_bounding_box_descent(long long metrics);
1462
+ #endif
1463
+
1464
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1465
+ float text_metrics_get_em_height_ascent(long long metrics);
1466
+ #endif
1467
+
1468
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1469
+ float text_metrics_get_em_height_descent(long long metrics);
1470
+ #endif
1471
+
1472
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1473
+ float text_metrics_get_hanging_baseline(long long metrics);
1474
+ #endif
1475
+
1476
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1477
+ float text_metrics_get_alphabetic_baseline(long long metrics);
1478
+ #endif
1479
+
1480
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1481
+ float text_metrics_get_ideographic_baseline(long long metrics);
1482
+ #endif
1483
+
1484
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1485
+ void flip_y_in_place(uint8_t *data, uintptr_t length, uintptr_t bytes_per_row, uintptr_t height);
1486
+ #endif
1487
+
1488
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1489
+ void flip_y_in_place_3d(uint8_t *data,
1490
+ uintptr_t length,
1491
+ uintptr_t bytes_per_row,
1492
+ uintptr_t height,
1493
+ uintptr_t depth);
1494
+ #endif
1495
+
1496
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1497
+ void flip_y_in_place_3d_i8(int8_t *data,
1498
+ uintptr_t length,
1499
+ uintptr_t bytes_per_row,
1500
+ uintptr_t height,
1501
+ uintptr_t depth);
1502
+ #endif
1503
+
1504
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1505
+ void flip_y_in_place_3d_u16(uint16_t *data,
1506
+ uintptr_t length,
1507
+ uintptr_t bytes_per_row,
1508
+ uintptr_t height,
1509
+ uintptr_t depth);
1510
+ #endif
1511
+
1512
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1513
+ void flip_y_in_place_3d_i16(int16_t *data,
1514
+ uintptr_t length,
1515
+ uintptr_t bytes_per_row,
1516
+ uintptr_t height,
1517
+ uintptr_t depth);
1518
+ #endif
1519
+
1520
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1521
+ void flip_y_in_place_3d_u32(uint32_t *data,
1522
+ uintptr_t length,
1523
+ uintptr_t bytes_per_row,
1524
+ uintptr_t height,
1525
+ uintptr_t depth);
1526
+ #endif
1527
+
1528
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1529
+ void flip_y_in_place_3d_i32(int32_t *data,
1530
+ uintptr_t length,
1531
+ uintptr_t bytes_per_row,
1532
+ uintptr_t height,
1533
+ uintptr_t depth);
1534
+ #endif
1535
+
1536
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1537
+ void flip_y_in_place_3d_f32(float *data,
1538
+ uintptr_t length,
1539
+ uintptr_t bytes_per_row,
1540
+ uintptr_t height,
1541
+ uintptr_t depth);
1542
+ #endif
1543
+
1544
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1545
+ void flip_y_in_place_3d_f64(double *data,
1546
+ uintptr_t length,
1547
+ uintptr_t bytes_per_row,
1548
+ uintptr_t height,
1549
+ uintptr_t depth);
1550
+ #endif
1551
+
1552
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1553
+ void flip_y_in_place_i8(int8_t *data, uintptr_t length, uintptr_t bytes_per_row, uintptr_t height);
1554
+ #endif
1555
+
1556
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1557
+ void flip_y_in_place_u16(uint16_t *data,
1558
+ uintptr_t length,
1559
+ uintptr_t bytes_per_row,
1560
+ uintptr_t height);
1561
+ #endif
1562
+
1563
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1564
+ void flip_y_in_place_i16(int16_t *data,
1565
+ uintptr_t length,
1566
+ uintptr_t bytes_per_row,
1567
+ uintptr_t height);
1568
+ #endif
1569
+
1570
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1571
+ void flip_y_in_place_u32(uint32_t *data,
1572
+ uintptr_t length,
1573
+ uintptr_t bytes_per_row,
1574
+ uintptr_t height);
1575
+ #endif
1576
+
1577
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1578
+ void flip_y_in_place_i32(int32_t *data,
1579
+ uintptr_t length,
1580
+ uintptr_t bytes_per_row,
1581
+ uintptr_t height);
1582
+ #endif
1583
+
1584
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1585
+ void flip_y_in_place_f32(float *data, uintptr_t length, uintptr_t bytes_per_row, uintptr_t height);
1586
+ #endif
1587
+
1588
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1589
+ void flip_y_in_place_f64(double *data, uintptr_t length, uintptr_t bytes_per_row, uintptr_t height);
1590
+ #endif
1591
+
1592
+ #endif /* CBINDGEN_BINDINGS_H */