@nativescript/canvas 1.0.0-debug.0 → 1.1.0-alpha.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 (144) hide show
  1. package/Canvas/common.d.ts +35 -13
  2. package/Canvas/common.js +458 -204
  3. package/Canvas/common.js.map +1 -1
  4. package/Canvas/index.android.d.ts +2 -0
  5. package/Canvas/index.android.js +17 -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 +10 -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.d.ts +3 -0
  13. package/Canvas2D/CanvasRenderingContext2D/index.android.js +53 -35
  14. package/Canvas2D/CanvasRenderingContext2D/index.android.js.map +1 -1
  15. package/Canvas2D/CanvasRenderingContext2D/index.d.ts +6 -0
  16. package/Canvas2D/CanvasRenderingContext2D/index.ios.d.ts +4 -1
  17. package/Canvas2D/CanvasRenderingContext2D/index.ios.js +126 -113
  18. package/Canvas2D/CanvasRenderingContext2D/index.ios.js.map +1 -1
  19. package/Canvas2D/DOMMatrix/DOMMatrix.android.js +3 -0
  20. package/Canvas2D/DOMMatrix/DOMMatrix.android.js.map +1 -1
  21. package/Canvas2D/DOMMatrix/DOMMatrix.ios.js +3 -0
  22. package/Canvas2D/DOMMatrix/DOMMatrix.ios.js.map +1 -1
  23. package/Canvas2D/DOMMatrix/common.d.ts +1 -0
  24. package/Canvas2D/DOMMatrix/common.js +4 -0
  25. package/Canvas2D/DOMMatrix/common.js.map +1 -1
  26. package/Canvas2D/ImageData/ImageData.android.js +11 -0
  27. package/Canvas2D/ImageData/ImageData.android.js.map +1 -1
  28. package/Canvas2D/ImageData/ImageData.ios.js +11 -0
  29. package/Canvas2D/ImageData/ImageData.ios.js.map +1 -1
  30. package/Canvas2D/ImageData/common.d.ts +1 -0
  31. package/Canvas2D/ImageData/common.js +4 -0
  32. package/Canvas2D/ImageData/common.js.map +1 -1
  33. package/Canvas2D/Path2D/common.d.ts +1 -0
  34. package/Canvas2D/Path2D/common.js +4 -0
  35. package/Canvas2D/Path2D/common.js.map +1 -1
  36. package/Canvas2D/TextMetrics/common.d.ts +1 -0
  37. package/Canvas2D/TextMetrics/common.js +4 -0
  38. package/Canvas2D/TextMetrics/common.js.map +1 -1
  39. package/ImageAsset/common.d.ts +1 -0
  40. package/ImageAsset/common.js +4 -0
  41. package/ImageAsset/common.js.map +1 -1
  42. package/ImageBitmap/common.d.ts +1 -0
  43. package/ImageBitmap/common.js +4 -0
  44. package/ImageBitmap/common.js.map +1 -1
  45. package/ImageBitmap/index.android.js +32 -0
  46. package/ImageBitmap/index.android.js.map +1 -1
  47. package/ImageBitmap/index.ios.js +41 -9
  48. package/ImageBitmap/index.ios.js.map +1 -1
  49. package/SVG/Image.js +2 -0
  50. package/SVG/Image.js.map +1 -1
  51. package/SVG/SVG.js +9 -0
  52. package/SVG/SVG.js.map +1 -1
  53. package/TextDecoder/TextDecoder.android.d.ts +1 -0
  54. package/TextDecoder/TextDecoder.android.js +29 -20
  55. package/TextDecoder/TextDecoder.android.js.map +1 -1
  56. package/TextDecoder/TextDecoder.ios.js +12 -16
  57. package/TextDecoder/TextDecoder.ios.js.map +1 -1
  58. package/TextDecoder/common.d.ts +1 -0
  59. package/TextDecoder/common.js +4 -0
  60. package/TextDecoder/common.js.map +1 -1
  61. package/TextEncoder/common.d.ts +1 -0
  62. package/TextEncoder/common.js +4 -0
  63. package/TextEncoder/common.js.map +1 -1
  64. package/WebGL/WebGLExtensions/index.android.js +1 -0
  65. package/WebGL/WebGLExtensions/index.android.js.map +1 -1
  66. package/WebGL/WebGLExtensions/index.ios.js +1 -0
  67. package/WebGL/WebGLExtensions/index.ios.js.map +1 -1
  68. package/WebGL/WebGLRenderingContext/index.android.d.ts +1 -0
  69. package/WebGL/WebGLRenderingContext/index.android.js +394 -111
  70. package/WebGL/WebGLRenderingContext/index.android.js.map +1 -1
  71. package/WebGL/WebGLRenderingContext/index.ios.js +35 -24
  72. package/WebGL/WebGLRenderingContext/index.ios.js.map +1 -1
  73. package/WebGL2/WebGL2RenderingContext/index.android.js +2 -2
  74. package/WebGL2/WebGL2RenderingContext/index.android.js.map +1 -1
  75. package/WebGL2/WebGL2RenderingContext/index.ios.js +39 -29
  76. package/WebGL2/WebGL2RenderingContext/index.ios.js.map +1 -1
  77. package/angular/esm2020/index.mjs +17 -0
  78. package/angular/esm2020/nativescript-canvas-angular.mjs +5 -0
  79. package/angular/fesm2015/nativescript-canvas-angular.mjs +24 -0
  80. package/angular/fesm2015/nativescript-canvas-angular.mjs.map +1 -0
  81. package/angular/fesm2020/nativescript-canvas-angular.mjs +24 -0
  82. package/angular/fesm2020/nativescript-canvas-angular.mjs.map +1 -0
  83. package/angular/index.d.ts +4 -0
  84. package/angular/package.json +20 -8
  85. package/index.d.ts +3 -4
  86. package/index.js +54 -8
  87. package/index.js.map +1 -1
  88. package/package.json +2 -3
  89. package/platforms/android/include.gradle +21 -1
  90. package/platforms/ios/CanvasNative.xcframework/Info.plist +10 -5
  91. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
  92. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +120 -3
  93. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +1122 -471
  94. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist +0 -0
  95. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  96. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json +74840 -0
  97. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/{arm64.swiftinterface → arm64-apple-ios.private.swiftinterface} +203 -121
  98. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  99. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +203 -121
  100. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/module.modulemap +2 -2
  101. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/TNSCanvas.nib +0 -0
  102. package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Info.plist +20 -0
  103. package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  104. package/platforms/ios/CanvasNative.xcframework/{ios-x86_64-simulator → ios-arm64_x86_64-simulator}/CanvasNative.framework/CanvasNative +0 -0
  105. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +4116 -0
  106. package/platforms/ios/CanvasNative.xcframework/{ios-x86_64-simulator → ios-arm64_x86_64-simulator}/CanvasNative.framework/Headers/CanvasNative.h +0 -0
  107. package/platforms/ios/CanvasNative.xcframework/{ios-x86_64-simulator → ios-arm64_x86_64-simulator}/CanvasNative.framework/Headers/Utils.h +0 -0
  108. package/platforms/ios/CanvasNative.xcframework/{ios-x86_64-simulator → ios-arm64_x86_64-simulator}/CanvasNative.framework/Headers/canvas_native.h +1122 -471
  109. package/platforms/ios/CanvasNative.xcframework/{ios-x86_64-simulator → ios-arm64_x86_64-simulator}/CanvasNative.framework/Info.plist +0 -0
  110. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  111. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  112. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json +74840 -0
  113. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +3270 -0
  114. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  115. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3270 -0
  116. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +74840 -0
  117. package/platforms/ios/CanvasNative.xcframework/{ios-x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64.swiftinterface → ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface} +203 -121
  118. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  119. package/platforms/ios/CanvasNative.xcframework/{ios-x86_64-simulator → ios-arm64_x86_64-simulator}/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +203 -121
  120. package/platforms/ios/CanvasNative.xcframework/{ios-x86_64-simulator → ios-arm64_x86_64-simulator}/CanvasNative.framework/Modules/module.modulemap +2 -2
  121. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/TNSCanvas.nib +0 -0
  122. package/platforms/ios/CanvasNative.xcframework/{ios-x86_64-simulator → ios-arm64_x86_64-simulator}/CanvasNative.framework/_CodeSignature/CodeResources +87 -69
  123. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Info.plist +20 -0
  124. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  125. package/platforms/ios/Podfile +1 -1
  126. package/typings/objc!CanvasNative.d.ts +2018 -0
  127. package/typings/objc!CanvasNative.js +1 -0
  128. package/typings/objc!CanvasNative.js.map +1 -0
  129. package/utils.d.ts +3 -0
  130. package/utils.js +27 -0
  131. package/utils.js.map +1 -1
  132. package/angular/bundles/nativescript-canvas-angular.umd.js +0 -29
  133. package/angular/bundles/nativescript-canvas-angular.umd.js.map +0 -1
  134. package/angular/esm2015/index.js +0 -12
  135. package/angular/esm2015/nativescript-canvas-angular.js +0 -5
  136. package/angular/fesm2015/nativescript-canvas-angular.js +0 -19
  137. package/angular/fesm2015/nativescript-canvas-angular.js.map +0 -1
  138. package/angular/nativescript-canvas-angular.d.ts +0 -4
  139. package/angular/nativescript-canvas-angular.metadata.json +0 -1
  140. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftdoc +0 -0
  141. package/platforms/ios/CanvasNative.xcframework/ios-x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +0 -1943
  142. package/platforms/ios/CanvasNative.xcframework/ios-x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  143. package/platforms/ios/CanvasNative.xcframework/ios-x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64.swiftdoc +0 -0
  144. package/platforms/ios/CanvasNative.xcframework/ios-x86_64-simulator/CanvasNative.framework/TNSCanvas.nib +0 -0
@@ -1,9 +1,14 @@
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
+
1
6
  #include <stdarg.h>
2
7
  #include <stdbool.h>
3
8
  #include <stdint.h>
4
9
  #include <stdlib.h>
5
10
 
6
- typedef enum {
11
+ typedef enum CompositeOperationType {
7
12
  SourceOver = 0,
8
13
  SourceIn = 1,
9
14
  SourceOut = 2,
@@ -32,43 +37,43 @@ typedef enum {
32
37
  Luminosity = 25,
33
38
  } CompositeOperationType;
34
39
 
35
- typedef enum {
40
+ typedef enum FillRule {
36
41
  NonZero = 0,
37
42
  EvenOdd = 1,
38
43
  } FillRule;
39
44
 
40
- typedef enum {
45
+ typedef enum ImageSmoothingQuality {
41
46
  Low = 0,
42
47
  Medium = 1,
43
48
  High = 2,
44
49
  } ImageSmoothingQuality;
45
50
 
46
- typedef enum {
51
+ typedef enum LineCap {
47
52
  CapButt = 0,
48
53
  CapRound = 1,
49
54
  CapSquare = 2,
50
55
  } LineCap;
51
56
 
52
- typedef enum {
57
+ typedef enum LineJoin {
53
58
  JoinRound = 0,
54
59
  JoinBevel = 1,
55
60
  JoinMiter = 2,
56
61
  } LineJoin;
57
62
 
58
- typedef enum {
63
+ typedef enum PaintStyleValueType {
59
64
  PaintStyleValueTypeColor = 0,
60
65
  PaintStyleValueTypeGradient = 1,
61
66
  PaintStyleValueTypePattern = 2,
62
67
  } PaintStyleValueType;
63
68
 
64
- typedef enum {
69
+ typedef enum Repetition {
65
70
  Repeat = 0,
66
71
  RepeatX = 1,
67
72
  RepeatY = 2,
68
73
  NoRepeat = 3,
69
74
  } Repetition;
70
75
 
71
- typedef enum {
76
+ typedef enum TextAlign {
72
77
  START = 0,
73
78
  LEFT = 1,
74
79
  CENTER = 2,
@@ -76,7 +81,7 @@ typedef enum {
76
81
  END = 4,
77
82
  } TextAlign;
78
83
 
79
- typedef enum {
84
+ typedef enum TextBaseLine {
80
85
  TOP = 0,
81
86
  HANGING = 1,
82
87
  MIDDLE = 2,
@@ -85,58 +90,437 @@ typedef enum {
85
90
  BOTTOM = 5,
86
91
  } TextBaseLine;
87
92
 
88
- typedef enum {
93
+ typedef enum TextDirection {
89
94
  LTR = 0,
90
95
  RTL = 1,
91
96
  } TextDirection;
92
97
 
93
98
  typedef struct Context Context;
94
99
 
95
- typedef struct {
96
- long long value;
97
- PaintStyleValueType value_type;
98
- } PaintStyleValue;
99
-
100
- typedef struct {
100
+ typedef struct F32Array {
101
101
  float *data;
102
102
  uintptr_t data_len;
103
103
  } F32Array;
104
104
 
105
- typedef struct {
106
- uint8_t *data;
107
- uintptr_t data_len;
108
- } U8Array;
109
-
110
- typedef struct {
105
+ typedef struct F64Array {
111
106
  double *data;
112
107
  uintptr_t data_len;
113
108
  } F64Array;
114
109
 
115
- typedef struct {
110
+ typedef struct I16Array {
116
111
  int16_t *data;
117
112
  uintptr_t data_len;
118
113
  } I16Array;
119
114
 
120
- typedef struct {
115
+ typedef struct I32Array {
121
116
  int32_t *data;
122
117
  uintptr_t data_len;
123
118
  } I32Array;
124
119
 
125
- typedef struct {
120
+ typedef struct I8Array {
126
121
  int8_t *data;
127
122
  uintptr_t data_len;
128
123
  } I8Array;
129
124
 
130
- typedef struct {
125
+ typedef struct U16Array {
131
126
  uint16_t *data;
132
127
  uintptr_t data_len;
133
128
  } U16Array;
134
129
 
135
- typedef struct {
130
+ typedef struct U32Array {
136
131
  uint32_t *data;
137
132
  uintptr_t data_len;
138
133
  } U32Array;
139
134
 
135
+ typedef struct U8Array {
136
+ uint8_t *data;
137
+ uintptr_t data_len;
138
+ } U8Array;
139
+
140
+ #if defined(TARGET_OS_ANDROID)
141
+ typedef struct ASurfaceTexture {
142
+ uint8_t _unused[0];
143
+ } ASurfaceTexture;
144
+ #endif
145
+
146
+ typedef struct PaintStyleValue {
147
+ long long value;
148
+ enum PaintStyleValueType value_type;
149
+ } PaintStyleValue;
150
+
151
+ #if defined(TARGET_OS_ANDROID)
152
+ /**
153
+ * AndroidBitmap functions result code.
154
+ */
155
+ typedef int32_t _bindgen_ty_1;
156
+ #endif
157
+
158
+ #if defined(TARGET_OS_ANDROID)
159
+ /**
160
+ * Bitmap pixel format.
161
+ */
162
+ typedef uint32_t AndroidBitmapFormat;
163
+ #endif
164
+
165
+ #if defined(TARGET_OS_ANDROID)
166
+ /**
167
+ * Operation was successful.
168
+ */
169
+ #define ANDROID_BITMAP_RESULT_SUCCESS 0
170
+ #endif
171
+
172
+ #if defined(TARGET_OS_ANDROID)
173
+ /**
174
+ * Bad parameter.
175
+ */
176
+ #define ANDROID_BITMAP_RESULT_BAD_PARAMETER -1
177
+ #endif
178
+
179
+ #if defined(TARGET_OS_ANDROID)
180
+ /**
181
+ * JNI exception occured.
182
+ */
183
+ #define ANDROID_BITMAP_RESULT_JNI_EXCEPTION -2
184
+ #endif
185
+
186
+ #if defined(TARGET_OS_ANDROID)
187
+ /**
188
+ * Allocation failed.
189
+ */
190
+ #define ANDROID_BITMAP_RESULT_ALLOCATION_FAILED -3
191
+ #endif
192
+
193
+ #if defined(TARGET_OS_ANDROID)
194
+ /**
195
+ * No format.
196
+ */
197
+ #define AndroidBitmapFormat_ANDROID_BITMAP_FORMAT_NONE 0
198
+ #endif
199
+
200
+ #if defined(TARGET_OS_ANDROID)
201
+ /**
202
+ * Red: 8 bits, Green: 8 bits, Blue: 8 bits, Alpha: 8 bits.
203
+ */
204
+ #define AndroidBitmapFormat_ANDROID_BITMAP_FORMAT_RGBA_8888 1
205
+ #endif
206
+
207
+ #if defined(TARGET_OS_ANDROID)
208
+ /**
209
+ * Red: 5 bits, Green: 6 bits, Blue: 5 bits.
210
+ */
211
+ #define AndroidBitmapFormat_ANDROID_BITMAP_FORMAT_RGB_565 4
212
+ #endif
213
+
214
+ #if defined(TARGET_OS_ANDROID)
215
+ /**
216
+ * Deprecated in API level 13. Because of the poor quality of this configuration, it is advised to use ARGB_8888 instead.
217
+ */
218
+ #define AndroidBitmapFormat_ANDROID_BITMAP_FORMAT_RGBA_4444 7
219
+ #endif
220
+
221
+ #if defined(TARGET_OS_ANDROID)
222
+ /**
223
+ * Alpha: 8 bits.
224
+ */
225
+ #define AndroidBitmapFormat_ANDROID_BITMAP_FORMAT_A_8 8
226
+ #endif
227
+
228
+ void destroy_f32_array(struct F32Array *array);
229
+
230
+ void destroy_f64_array(struct F64Array *array);
231
+
232
+ void destroy_i16_array(struct I16Array *array);
233
+
234
+ void destroy_i32_array(struct I32Array *array);
235
+
236
+ void destroy_i8_array(struct I8Array *array);
237
+
238
+ void destroy_paint_style_value(long long value);
239
+
240
+ void destroy_u16_array(struct U16Array *array);
241
+
242
+ void destroy_u32_array(struct U32Array *array);
243
+
244
+ void destroy_u8_array(struct U8Array *array);
245
+
246
+ #if defined(TARGET_OS_ANDROID)
247
+ /**
248
+ * Returns the API level of the device we're actually running on, or -1 on failure.
249
+ * The returned values correspond to the named constants in `<android/api-level.h>`,
250
+ * and is equivalent to the Java `Build.VERSION.SDK_INT` API.
251
+ *
252
+ * See also android_get_application_target_sdk_version().
253
+ */
254
+ extern int android_get_device_api_level(void);
255
+ #endif
256
+
257
+ #if defined(TARGET_OS_ANDROID)
258
+ /**
259
+ * Get a reference to the native ASurfaceTexture from the corresponding java object.
260
+ *
261
+ * The caller must keep a reference to the Java SurfaceTexture during the lifetime of the returned
262
+ * ASurfaceTexture. Failing to do so could result in the ASurfaceTexture to stop functioning
263
+ * properly once the Java object gets finalized.
264
+ * However, this will not result in program termination.
265
+ *
266
+ * \param env JNI environment
267
+ * \param surfacetexture Instance of Java SurfaceTexture object
268
+ * \return native ASurfaceTexture reference or nullptr if the java object is not a SurfaceTexture.
269
+ * The returned reference MUST BE released when it's no longer needed using
270
+ * ASurfaceTexture_release().
271
+ */
272
+ extern struct ASurfaceTexture *ASurfaceTexture_fromSurfaceTexture(JNIEnv *env,
273
+ jobject surfacetexture);
274
+ #endif
275
+
276
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
277
+ void destroy_string(const char *string);
278
+ #endif
279
+
280
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
281
+ void destroy_context(long long context);
282
+ #endif
283
+
284
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
285
+ void destroy_paint_style(long long style);
286
+ #endif
287
+
288
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
289
+ void destroy_text_metrics(long long metrics);
290
+ #endif
291
+
292
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
293
+ long long context_init_context(float width,
294
+ float height,
295
+ float density,
296
+ int buffer_id,
297
+ uintptr_t samples,
298
+ bool alpha,
299
+ unsigned int font_color,
300
+ float ppi,
301
+ enum TextDirection direction);
302
+ #endif
303
+
304
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
305
+ long long context_init_context_with_custom_surface(float width,
306
+ float height,
307
+ float density,
308
+ bool alpha,
309
+ int font_color,
310
+ float ppi,
311
+ enum TextDirection direction);
312
+ #endif
313
+
314
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
315
+ void context_resize_custom_surface(long long context,
316
+ float width,
317
+ float height,
318
+ float density,
319
+ bool alpha,
320
+ float ppi);
321
+ #endif
322
+
323
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
324
+ void context_resize_surface(long long context,
325
+ float width,
326
+ float height,
327
+ float density,
328
+ int buffer_id,
329
+ uintptr_t samples,
330
+ bool alpha,
331
+ float ppi);
332
+ #endif
333
+
334
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
335
+ const char *context_data_url(long long context, const char *format, float quality);
336
+ #endif
337
+
338
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
339
+ struct U8Array *context_snapshot_canvas(long long context);
340
+ #endif
341
+
342
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
343
+ struct U8Array *context_snapshot_canvas_encoded(long long context);
344
+ #endif
345
+
346
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
347
+ void context_flush(long long context);
348
+ #endif
349
+
350
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
351
+ void context_custom_with_buffer_flush(long long context,
352
+ uint8_t *buf,
353
+ uintptr_t buf_size,
354
+ float width,
355
+ float height);
356
+ #endif
357
+
358
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
359
+ void context_set_direction(long long context, enum TextDirection direction);
360
+ #endif
361
+
362
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
363
+ enum TextDirection context_get_direction(const struct Context *context);
364
+ #endif
365
+
366
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
367
+ void context_set_fill_style(long long context, long long style);
368
+ #endif
369
+
370
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
371
+ struct PaintStyleValue *context_get_fill_style(long long context);
372
+ #endif
373
+
374
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
375
+ void context_set_filter(long long context, const char *filter);
376
+ #endif
377
+
378
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
379
+ const char *context_get_filter(long long context);
380
+ #endif
381
+
382
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
383
+ void context_set_font(long long context, const char *filter);
384
+ #endif
385
+
386
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
387
+ const char *context_get_font(long long context);
388
+ #endif
389
+
390
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
391
+ void context_set_global_alpha(long long context, float alpha);
392
+ #endif
393
+
394
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
395
+ float context_get_global_alpha(long long context);
396
+ #endif
397
+
398
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
399
+ void context_set_global_composite_operation(long long context,
400
+ enum CompositeOperationType operation);
401
+ #endif
402
+
403
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
404
+ enum CompositeOperationType context_get_global_composite_operation(long long context);
405
+ #endif
406
+
407
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
408
+ void context_set_image_smoothing_enabled(long long context, bool enabled);
409
+ #endif
410
+
411
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
412
+ bool context_get_image_smoothing_enabled(long long context);
413
+ #endif
414
+
415
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
416
+ void context_set_image_smoothing_quality(long long context, enum ImageSmoothingQuality quality);
417
+ #endif
418
+
419
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
420
+ enum ImageSmoothingQuality context_get_image_smoothing_quality(long long context);
421
+ #endif
422
+
423
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
424
+ void context_set_line_cap(long long context, enum LineCap cap);
425
+ #endif
426
+
427
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
428
+ enum LineCap context_get_line_cap(long long context);
429
+ #endif
430
+
431
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
432
+ void context_set_line_dash_offset(long long context, float offset);
433
+ #endif
434
+
435
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
436
+ float context_get_line_dash_offset(long long context);
437
+ #endif
438
+
439
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
440
+ void context_set_line_join(long long context, enum LineJoin join);
441
+ #endif
442
+
443
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
444
+ enum LineJoin context_get_line_join(long long context);
445
+ #endif
446
+
447
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
448
+ void context_set_line_width(long long context, float width);
449
+ #endif
450
+
451
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
452
+ float context_get_line_width(long long context);
453
+ #endif
454
+
455
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
456
+ void context_set_miter_limit(long long context, float limit);
457
+ #endif
458
+
459
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
460
+ float context_get_miter_limit(long long context);
461
+ #endif
462
+
463
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
464
+ void context_set_shadow_blur(long long context, float blur);
465
+ #endif
466
+
467
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
468
+ float context_get_shadow_blur(long long context);
469
+ #endif
470
+
471
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
472
+ void context_set_shadow_color(long long context, uint8_t r, uint8_t g, uint8_t b, uint8_t a);
473
+ #endif
474
+
475
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
476
+ void context_set_shadow_color_string(long long context, const char *color);
477
+ #endif
478
+
479
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
480
+ const char *context_get_shadow_color(long long context);
481
+ #endif
482
+
483
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
484
+ void context_set_shadow_offset_x(long long context, float x);
485
+ #endif
486
+
487
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
488
+ float context_get_shadow_offset_x(long long context);
489
+ #endif
490
+
491
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
492
+ void context_set_shadow_offset_y(long long context, float y);
493
+ #endif
494
+
495
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
496
+ float context_get_shadow_offset_y(long long context);
497
+ #endif
498
+
499
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
500
+ void context_set_stroke_style(long long context, long long style);
501
+ #endif
502
+
503
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
504
+ struct PaintStyleValue *context_get_stroke_style(long long context);
505
+ #endif
506
+
507
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
508
+ void context_set_text_align(long long context, enum TextAlign align);
509
+ #endif
510
+
511
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
512
+ enum TextAlign context_get_text_align(long long context);
513
+ #endif
514
+
515
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
516
+ void context_set_text_baseline(long long context, enum TextBaseLine baseline);
517
+ #endif
518
+
519
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
520
+ enum TextBaseLine context_get_text_baseline(long long context);
521
+ #endif
522
+
523
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
140
524
  void context_arc(long long context,
141
525
  float x,
142
526
  float y,
@@ -144,11 +528,17 @@ void context_arc(long long context,
144
528
  float start_angle,
145
529
  float end_angle,
146
530
  bool anti_clockwise);
531
+ #endif
147
532
 
533
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
148
534
  void context_arc_to(long long context, float x1, float y1, float x2, float y2, float radius);
535
+ #endif
149
536
 
537
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
150
538
  void context_begin_path(long long context);
539
+ #endif
151
540
 
541
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
152
542
  void context_bezier_curve_to(long long context,
153
543
  float cp1x,
154
544
  float cp1y,
@@ -156,33 +546,55 @@ void context_bezier_curve_to(long long context,
156
546
  float cp2y,
157
547
  float x,
158
548
  float y);
549
+ #endif
159
550
 
551
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
160
552
  void context_clear_rect(long long context, float x, float y, float width, float height);
553
+ #endif
161
554
 
162
- void context_clip(long long context, long long path, FillRule rule);
555
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
556
+ void context_clip(long long context, long long path, enum FillRule rule);
557
+ #endif
163
558
 
164
- void context_clip_rule(long long context, FillRule rule);
559
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
560
+ void context_clip_rule(long long context, enum FillRule rule);
561
+ #endif
165
562
 
563
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
166
564
  void context_close_path(long long context);
565
+ #endif
167
566
 
567
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
168
568
  long long context_create_image_data(int width, int height);
569
+ #endif
169
570
 
571
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
170
572
  long long context_create_linear_gradient(long long context, float x0, float y0, float x1, float y1);
573
+ #endif
171
574
 
575
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
172
576
  long long context_create_pattern(long long context,
173
577
  const uint8_t *image_data,
174
578
  uintptr_t image_len,
175
579
  int width,
176
580
  int height,
177
- Repetition repetition);
581
+ enum Repetition repetition);
582
+ #endif
178
583
 
179
- long long context_create_pattern_asset(long long context, long long asset, Repetition repetition);
584
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
585
+ long long context_create_pattern_asset(long long context,
586
+ long long asset,
587
+ enum Repetition repetition);
588
+ #endif
180
589
 
590
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
181
591
  long long context_create_pattern_encoded(long long context,
182
592
  const uint8_t *image_data,
183
593
  uintptr_t image_len,
184
- Repetition repetition);
594
+ enum Repetition repetition);
595
+ #endif
185
596
 
597
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
186
598
  long long context_create_radial_gradient(long long context,
187
599
  float x0,
188
600
  float y0,
@@ -190,40 +602,13 @@ long long context_create_radial_gradient(long long context,
190
602
  float x1,
191
603
  float y1,
192
604
  float r1);
605
+ #endif
193
606
 
194
- void context_custom_with_buffer_flush(long long context,
195
- uint8_t *buf,
196
- uintptr_t buf_size,
197
- float width,
198
- float height);
199
-
200
- const char *context_data_url(long long context, const char *format, float quality);
201
-
202
- void context_draw_image(long long context,
203
- const uint8_t *image_data,
204
- uintptr_t image_len,
205
- float width,
206
- float height,
207
- float sx,
208
- float sy,
209
- float s_width,
210
- float s_height,
211
- float dx,
212
- float dy,
213
- float d_width,
214
- float d_height);
215
-
216
- void context_draw_image_asset(long long context,
217
- long long asset,
218
- float sx,
219
- float sy,
220
- float s_width,
221
- float s_height,
222
- float dx,
223
- float dy,
224
- float d_width,
225
- float d_height);
607
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
608
+ long long context_create_conic_gradient(long long context, float start_angle, float x, float y);
609
+ #endif
226
610
 
611
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
227
612
  void context_draw_image_dx_dy(long long context,
228
613
  const uint8_t *image_data,
229
614
  uintptr_t image_len,
@@ -231,9 +616,9 @@ void context_draw_image_dx_dy(long long context,
231
616
  float height,
232
617
  float dx,
233
618
  float dy);
619
+ #endif
234
620
 
235
- void context_draw_image_dx_dy_asset(long long context, long long asset, float dx, float dy);
236
-
621
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
237
622
  void context_draw_image_dx_dy_dw_dh(long long context,
238
623
  const uint8_t *image_data,
239
624
  uintptr_t image_len,
@@ -243,32 +628,33 @@ void context_draw_image_dx_dy_dw_dh(long long context,
243
628
  float dy,
244
629
  float d_width,
245
630
  float d_height);
631
+ #endif
246
632
 
247
- void context_draw_image_dx_dy_dw_dh_asset(long long context,
248
- long long asset,
249
- float dx,
250
- float dy,
251
- float d_width,
252
- float d_height);
253
-
254
- void context_draw_image_encoded(long long context,
255
- const uint8_t *image_data,
256
- uintptr_t image_len,
257
- float sx,
258
- float sy,
259
- float s_width,
260
- float s_height,
261
- float dx,
262
- float dy,
263
- float d_width,
264
- float d_height);
633
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
634
+ void context_draw_image(long long context,
635
+ const uint8_t *image_data,
636
+ uintptr_t image_len,
637
+ float width,
638
+ float height,
639
+ float sx,
640
+ float sy,
641
+ float s_width,
642
+ float s_height,
643
+ float dx,
644
+ float dy,
645
+ float d_width,
646
+ float d_height);
647
+ #endif
265
648
 
649
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
266
650
  void context_draw_image_encoded_dx_dy(long long context,
267
651
  const uint8_t *image_data,
268
652
  uintptr_t image_len,
269
653
  float dx,
270
654
  float dy);
655
+ #endif
271
656
 
657
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
272
658
  void context_draw_image_encoded_dx_dy_dw_dh(long long context,
273
659
  const uint8_t *image_data,
274
660
  uintptr_t image_len,
@@ -276,7 +662,49 @@ void context_draw_image_encoded_dx_dy_dw_dh(long long context,
276
662
  float dy,
277
663
  float d_width,
278
664
  float d_height);
665
+ #endif
666
+
667
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
668
+ void context_draw_image_encoded(long long context,
669
+ const uint8_t *image_data,
670
+ uintptr_t image_len,
671
+ float sx,
672
+ float sy,
673
+ float s_width,
674
+ float s_height,
675
+ float dx,
676
+ float dy,
677
+ float d_width,
678
+ float d_height);
679
+ #endif
680
+
681
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
682
+ void context_draw_image_dx_dy_asset(long long context, long long asset, float dx, float dy);
683
+ #endif
684
+
685
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
686
+ void context_draw_image_dx_dy_dw_dh_asset(long long context,
687
+ long long asset,
688
+ float dx,
689
+ float dy,
690
+ float d_width,
691
+ float d_height);
692
+ #endif
279
693
 
694
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
695
+ void context_draw_image_asset(long long context,
696
+ long long asset,
697
+ float sx,
698
+ float sy,
699
+ float s_width,
700
+ float s_height,
701
+ float dx,
702
+ float dy,
703
+ float d_width,
704
+ float d_height);
705
+ #endif
706
+
707
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
280
708
  void context_ellipse(long long context,
281
709
  float x,
282
710
  float y,
@@ -286,304 +714,140 @@ void context_ellipse(long long context,
286
714
  float start_angle,
287
715
  float end_angle,
288
716
  bool anticlockwise);
717
+ #endif
289
718
 
290
- void context_fill(long long context, long long path, FillRule rule);
719
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
720
+ void context_fill(long long context, long long path, enum FillRule rule);
721
+ #endif
291
722
 
723
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
292
724
  void context_fill_rect(long long context, float x, float y, float width, float height);
725
+ #endif
293
726
 
727
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
294
728
  void context_fill_text(long long context, const char *text, float x, float y, float width);
729
+ #endif
295
730
 
296
- void context_flush(long long context);
731
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
732
+ long long context_get_image_data(long long context, float sx, float sy, float sw, float sh);
733
+ #endif
297
734
 
298
- TextDirection context_get_direction(const Context *context);
735
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
736
+ struct F32Array *context_get_line_dash(long long context);
737
+ #endif
299
738
 
300
- PaintStyleValue *context_get_fill_style(long long context);
739
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
740
+ long long context_get_transform(long long context);
741
+ #endif
301
742
 
302
- const char *context_get_filter(long long context);
743
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
744
+ bool context_is_point_in_path(long long context,
745
+ long long path,
746
+ float x,
747
+ float y,
748
+ enum FillRule rule);
749
+ #endif
303
750
 
304
- const char *context_get_font(long long context);
751
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
752
+ bool context_is_point_in_stroke(long long context, long long path, float x, float y);
753
+ #endif
305
754
 
306
- float context_get_global_alpha(long long context);
755
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
756
+ void context_line_to(long long context, float x, float y);
757
+ #endif
307
758
 
308
- CompositeOperationType context_get_global_composite_operation(long long context);
759
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
760
+ long long context_measure_text(long long context, const char *text);
761
+ #endif
309
762
 
310
- long long context_get_image_data(long long context, float sx, float sy, float sw, float sh);
763
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
764
+ void context_move_to(long long context, float x, float y);
765
+ #endif
311
766
 
312
- bool context_get_image_smoothing_enabled(long long context);
767
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
768
+ void context_put_image_data(long long context,
769
+ long long image_data,
770
+ float dx,
771
+ float dy,
772
+ float dirty_x,
773
+ float dirty_y,
774
+ float dirty_width,
775
+ float dirty_height);
776
+ #endif
313
777
 
314
- ImageSmoothingQuality context_get_image_smoothing_quality(long long context);
315
-
316
- LineCap context_get_line_cap(long long context);
317
-
318
- F32Array *context_get_line_dash(long long context);
319
-
320
- float context_get_line_dash_offset(long long context);
321
-
322
- LineJoin context_get_line_join(long long context);
323
-
324
- float context_get_line_width(long long context);
325
-
326
- float context_get_miter_limit(long long context);
327
-
328
- float context_get_shadow_blur(long long context);
329
-
330
- const char *context_get_shadow_color(long long context);
331
-
332
- float context_get_shadow_offset_x(long long context);
333
-
334
- float context_get_shadow_offset_y(long long context);
335
-
336
- PaintStyleValue *context_get_stroke_style(long long context);
337
-
338
- TextAlign context_get_text_align(long long context);
339
-
340
- TextBaseLine context_get_text_baseline(long long context);
341
-
342
- long long context_get_transform(long long context);
343
-
344
- long long context_init_context(float width,
345
- float height,
346
- float density,
347
- int buffer_id,
348
- uintptr_t samples,
349
- bool alpha,
350
- unsigned int font_color,
351
- float ppi,
352
- TextDirection direction);
353
-
354
- long long context_init_context_with_custom_surface(float width,
355
- float height,
356
- float density,
357
- bool alpha,
358
- int font_color,
359
- float ppi,
360
- TextDirection direction);
361
-
362
- bool context_is_point_in_path(long long context, long long path, float x, float y, FillRule rule);
363
-
364
- bool context_is_point_in_stroke(long long context, long long path, float x, float y);
365
-
366
- void context_line_to(long long context, float x, float y);
367
-
368
- long long context_measure_text(long long context, const char *text);
369
-
370
- void context_move_to(long long context, float x, float y);
371
-
372
- void context_put_image_data(long long context,
373
- long long image_data,
374
- float dx,
375
- float dy,
376
- float dirty_x,
377
- float dirty_y,
378
- float dirty_width,
379
- float dirty_height);
380
-
381
- void context_quadratic_curve_to(long long context, float cpx, float cpy, float x, float y);
778
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
779
+ void context_quadratic_curve_to(long long context, float cpx, float cpy, float x, float y);
780
+ #endif
382
781
 
782
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
383
783
  void context_rect(long long context, float x, float y, float width, float height);
784
+ #endif
384
785
 
385
- void context_reset_transform(long long context);
386
-
387
- void context_resize_custom_surface(long long context,
388
- float width,
389
- float height,
390
- float density,
391
- bool alpha,
392
- float ppi);
786
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
787
+ void context_round_rect(long long context,
788
+ float x,
789
+ float y,
790
+ float width,
791
+ float height,
792
+ float top_left,
793
+ float top_right,
794
+ float bottom_right,
795
+ float bottom_left);
796
+ #endif
393
797
 
394
- void context_resize_surface(long long context,
395
- float width,
396
- float height,
397
- float density,
398
- int buffer_id,
399
- uintptr_t samples,
400
- bool alpha,
401
- float ppi);
798
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
799
+ void context_reset_transform(long long context);
800
+ #endif
402
801
 
802
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
403
803
  void context_restore(long long context);
804
+ #endif
404
805
 
806
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
405
807
  void context_rotate(long long context, float angle);
808
+ #endif
406
809
 
810
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
407
811
  void context_save(long long context);
812
+ #endif
408
813
 
814
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
409
815
  void context_scale(long long context, float x, float y);
816
+ #endif
410
817
 
411
- void context_set_direction(long long context, TextDirection direction);
412
-
413
- void context_set_fill_style(long long context, long long style);
414
-
415
- void context_set_filter(long long context, const char *filter);
416
-
417
- void context_set_font(long long context, const char *filter);
418
-
419
- void context_set_global_alpha(long long context, float alpha);
420
-
421
- void context_set_global_composite_operation(long long context, CompositeOperationType operation);
422
-
423
- void context_set_image_smoothing_enabled(long long context, bool enabled);
424
-
425
- void context_set_image_smoothing_quality(long long context, ImageSmoothingQuality quality);
426
-
427
- void context_set_line_cap(long long context, LineCap cap);
428
-
818
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
429
819
  void context_set_line_dash(long long context, const float *data, uintptr_t data_length);
820
+ #endif
430
821
 
431
- void context_set_line_dash_offset(long long context, float offset);
432
-
433
- void context_set_line_join(long long context, LineJoin join);
434
-
435
- void context_set_line_width(long long context, float width);
436
-
437
- void context_set_miter_limit(long long context, float limit);
438
-
439
- void context_set_shadow_blur(long long context, float blur);
440
-
441
- void context_set_shadow_color(long long context, uint8_t r, uint8_t g, uint8_t b, uint8_t a);
442
-
443
- void context_set_shadow_color_string(long long context, const char *color);
444
-
445
- void context_set_shadow_offset_x(long long context, float x);
446
-
447
- void context_set_shadow_offset_y(long long context, float y);
448
-
449
- void context_set_stroke_style(long long context, long long style);
450
-
451
- void context_set_text_align(long long context, TextAlign align);
452
-
453
- void context_set_text_baseline(long long context, TextBaseLine baseline);
454
-
822
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
455
823
  void context_set_transform(long long context, float a, float b, float c, float d, float e, float f);
824
+ #endif
456
825
 
826
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
457
827
  void context_set_transform_matrix(long long context, long long matrix);
828
+ #endif
458
829
 
459
- U8Array *context_snapshot_canvas(long long context);
460
-
830
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
461
831
  void context_stroke(long long context, long long path);
832
+ #endif
462
833
 
834
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
463
835
  void context_stroke_rect(long long context, float x, float y, float width, float height);
836
+ #endif
464
837
 
838
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
465
839
  void context_stroke_text(long long context, const char *text, float x, float y, float width);
840
+ #endif
466
841
 
842
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
467
843
  void context_transform(long long context, float a, float b, float c, float d, float e, float f);
844
+ #endif
468
845
 
846
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
469
847
  void context_translate(long long context, float x, float y);
848
+ #endif
470
849
 
471
- void destroy_context(long long context);
472
-
473
- void destroy_f32_array(F32Array *array);
474
-
475
- void destroy_f64_array(F64Array *array);
476
-
477
- void destroy_i16_array(I16Array *array);
478
-
479
- void destroy_i32_array(I32Array *array);
480
-
481
- void destroy_i8_array(I8Array *array);
482
-
483
- void destroy_image_asset(long long asset);
484
-
485
- void destroy_image_data(long long image_data);
486
-
487
- void destroy_matrix(long long matrix);
488
-
489
- void destroy_paint_style(long long style);
490
-
491
- void destroy_paint_style_value(long long value);
492
-
493
- void destroy_path(long long path);
494
-
495
- void destroy_string(const char *string);
496
-
497
- void destroy_text_decoder(long long decoder);
498
-
499
- void destroy_text_encoder(long long encoder);
500
-
501
- void destroy_text_metrics(long long metrics);
502
-
503
- void destroy_u16_array(U16Array *array);
504
-
505
- void destroy_u32_array(U32Array *array);
506
-
507
- void destroy_u8_array(U8Array *array);
508
-
509
- void flip_y_in_place(uint8_t *data, uintptr_t length, uintptr_t bytes_per_row, uintptr_t height);
510
-
511
- void flip_y_in_place_3d(uint8_t *data,
512
- uintptr_t length,
513
- uintptr_t bytes_per_row,
514
- uintptr_t height,
515
- uintptr_t depth);
516
-
517
- void flip_y_in_place_3d_f32(float *data,
518
- uintptr_t length,
519
- uintptr_t bytes_per_row,
520
- uintptr_t height,
521
- uintptr_t depth);
522
-
523
- void flip_y_in_place_3d_f64(double *data,
524
- uintptr_t length,
525
- uintptr_t bytes_per_row,
526
- uintptr_t height,
527
- uintptr_t depth);
528
-
529
- void flip_y_in_place_3d_i16(int16_t *data,
530
- uintptr_t length,
531
- uintptr_t bytes_per_row,
532
- uintptr_t height,
533
- uintptr_t depth);
534
-
535
- void flip_y_in_place_3d_i32(int32_t *data,
536
- uintptr_t length,
537
- uintptr_t bytes_per_row,
538
- uintptr_t height,
539
- uintptr_t depth);
540
-
541
- void flip_y_in_place_3d_i8(int8_t *data,
542
- uintptr_t length,
543
- uintptr_t bytes_per_row,
544
- uintptr_t height,
545
- uintptr_t depth);
546
-
547
- void flip_y_in_place_3d_u16(uint16_t *data,
548
- uintptr_t length,
549
- uintptr_t bytes_per_row,
550
- uintptr_t height,
551
- uintptr_t depth);
552
-
553
- void flip_y_in_place_3d_u32(uint32_t *data,
554
- uintptr_t length,
555
- uintptr_t bytes_per_row,
556
- uintptr_t height,
557
- uintptr_t depth);
558
-
559
- void flip_y_in_place_f32(float *data, uintptr_t length, uintptr_t bytes_per_row, uintptr_t height);
560
-
561
- void flip_y_in_place_f64(double *data, uintptr_t length, uintptr_t bytes_per_row, uintptr_t height);
562
-
563
- void flip_y_in_place_i16(int16_t *data,
564
- uintptr_t length,
565
- uintptr_t bytes_per_row,
566
- uintptr_t height);
567
-
568
- void flip_y_in_place_i32(int32_t *data,
569
- uintptr_t length,
570
- uintptr_t bytes_per_row,
571
- uintptr_t height);
572
-
573
- void flip_y_in_place_i8(int8_t *data, uintptr_t length, uintptr_t bytes_per_row, uintptr_t height);
574
-
575
- void flip_y_in_place_u16(uint16_t *data,
576
- uintptr_t length,
577
- uintptr_t bytes_per_row,
578
- uintptr_t height);
579
-
580
- void flip_y_in_place_u32(uint32_t *data,
581
- uintptr_t length,
582
- uintptr_t bytes_per_row,
583
- uintptr_t height);
584
-
585
- long long gl_get_vertex_attrib_offset(unsigned int index, unsigned int pname);
586
-
850
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
587
851
  void gl_tex_image_2D_asset(unsigned int target,
588
852
  int level,
589
853
  int internalformat,
@@ -592,7 +856,20 @@ void gl_tex_image_2D_asset(unsigned int target,
592
856
  unsigned int image_type,
593
857
  long long asset,
594
858
  bool flip_y);
859
+ #endif
595
860
 
861
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
862
+ void gl_tex_sub_image_2D_asset(unsigned int target,
863
+ int level,
864
+ int xoffset,
865
+ int yoffset,
866
+ unsigned int format,
867
+ unsigned int image_type,
868
+ long long asset,
869
+ bool flip_y);
870
+ #endif
871
+
872
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
596
873
  void gl_tex_image_3D_asset(unsigned int target,
597
874
  int level,
598
875
  int internalformat,
@@ -604,16 +881,9 @@ void gl_tex_image_3D_asset(unsigned int target,
604
881
  unsigned int image_type,
605
882
  long long asset,
606
883
  bool flip_y);
884
+ #endif
607
885
 
608
- void gl_tex_sub_image_2D_asset(unsigned int target,
609
- int level,
610
- int xoffset,
611
- int yoffset,
612
- unsigned int format,
613
- unsigned int image_type,
614
- long long asset,
615
- bool flip_y);
616
-
886
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
617
887
  void gl_tex_sub_image_3D_asset(unsigned int target,
618
888
  int level,
619
889
  int xoffset,
@@ -626,52 +896,70 @@ void gl_tex_sub_image_3D_asset(unsigned int target,
626
896
  unsigned int image_type,
627
897
  long long asset,
628
898
  bool flip_y);
899
+ #endif
629
900
 
901
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
630
902
  void gl_vertex_attrib_pointer(unsigned int index,
631
903
  int size,
632
904
  unsigned int pointer_type,
633
905
  bool normalized,
634
906
  int stride,
635
907
  long long offset);
908
+ #endif
636
909
 
910
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
911
+ long long gl_get_vertex_attrib_offset(unsigned int index, unsigned int pname);
912
+ #endif
913
+
914
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
637
915
  void gradient_add_color_stop(long long style, float stop, const char *color);
916
+ #endif
638
917
 
918
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
639
919
  long long image_asset_create(void);
920
+ #endif
640
921
 
641
- bool image_asset_flip_x(long long asset);
642
-
643
- bool image_asset_flip_x_in_place(long long asset);
644
-
645
- void image_asset_flip_x_in_place_owned(uint8_t *buf, uintptr_t length);
922
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
923
+ bool image_asset_load_from_path(long long asset, const char *path);
924
+ #endif
646
925
 
647
- bool image_asset_flip_y(long long asset);
926
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
927
+ bool image_asset_load_from_raw(long long asset, const uint8_t *array, uintptr_t size);
928
+ #endif
648
929
 
649
- bool image_asset_flip_y_in_place(long long asset);
930
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
931
+ struct U8Array *image_asset_get_bytes(long long asset);
932
+ #endif
650
933
 
651
- void image_asset_flip_y_in_place_owned(uint8_t *buf, uintptr_t length);
934
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
935
+ unsigned int image_asset_width(long long asset);
936
+ #endif
652
937
 
653
- U8Array *image_asset_get_bytes(long long asset);
938
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
939
+ unsigned int image_asset_height(long long asset);
940
+ #endif
654
941
 
942
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
655
943
  const char *image_asset_get_error(long long asset);
944
+ #endif
656
945
 
657
- U8Array *image_asset_get_rgb_bytes(long long asset);
658
-
659
- U8Array *image_asset_get_rgba_bytes(long long asset);
660
-
946
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
661
947
  bool image_asset_has_error(long long asset);
948
+ #endif
662
949
 
663
- unsigned int image_asset_height(long long asset);
664
-
665
- bool image_asset_load_from_path(long long asset, const char *path);
666
-
667
- bool image_asset_load_from_raw(long long asset, const uint8_t *array, uintptr_t size);
950
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
951
+ bool image_asset_scale(long long asset, unsigned int x, unsigned int y);
952
+ #endif
668
953
 
954
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
669
955
  bool image_asset_save_path(long long asset, const char *path, unsigned int format);
956
+ #endif
670
957
 
671
- bool image_asset_scale(long long asset, unsigned int x, unsigned int y);
672
-
673
- unsigned int image_asset_width(long long asset);
958
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
959
+ void destroy_image_asset(long long asset);
960
+ #endif
674
961
 
962
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
675
963
  long long image_bitmap_create_from_bytes(const uint8_t *image_bytes,
676
964
  uintptr_t image_size,
677
965
  float image_width,
@@ -682,29 +970,9 @@ long long image_bitmap_create_from_bytes(const uint8_t *image_bytes,
682
970
  int32_t resize_quality,
683
971
  float resize_width,
684
972
  float resize_height);
973
+ #endif
685
974
 
686
- long long image_bitmap_create_from_bytes_encoded(const uint8_t *image_bytes,
687
- uintptr_t image_size,
688
- bool flip_y,
689
- int32_t premultiply_alpha,
690
- int32_t color_space_conversion,
691
- int32_t resize_quality,
692
- float resize_width,
693
- float resize_height);
694
-
695
- long long image_bitmap_create_from_bytes_encoded_src_rect(const uint8_t *image_bytes,
696
- uintptr_t image_size,
697
- float sx,
698
- float sy,
699
- float s_width,
700
- float s_height,
701
- bool flip_y,
702
- int32_t premultiply_alpha,
703
- int32_t color_space_conversion,
704
- int32_t resize_quality,
705
- float resize_width,
706
- float resize_height);
707
-
975
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
708
976
  long long image_bitmap_create_from_bytes_src_rect(const uint8_t *image_bytes,
709
977
  uintptr_t image_size,
710
978
  float image_width,
@@ -719,7 +987,9 @@ long long image_bitmap_create_from_bytes_src_rect(const uint8_t *image_bytes,
719
987
  int32_t resize_quality,
720
988
  float resize_width,
721
989
  float resize_height);
990
+ #endif
722
991
 
992
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
723
993
  long long image_bitmap_create_from_image_asset(long long asset,
724
994
  bool flip_y,
725
995
  int premultiply_alpha,
@@ -727,7 +997,9 @@ long long image_bitmap_create_from_image_asset(long long asset,
727
997
  int resize_quality,
728
998
  float resize_width,
729
999
  float resize_height);
1000
+ #endif
730
1001
 
1002
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
731
1003
  long long image_bitmap_create_from_image_asset_src_rect(long long asset,
732
1004
  float sx,
733
1005
  float sy,
@@ -739,7 +1011,35 @@ long long image_bitmap_create_from_image_asset_src_rect(long long asset,
739
1011
  int resize_quality,
740
1012
  float resize_width,
741
1013
  float resize_height);
1014
+ #endif
1015
+
1016
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1017
+ long long image_bitmap_create_from_bytes_encoded(const uint8_t *image_bytes,
1018
+ uintptr_t image_size,
1019
+ bool flip_y,
1020
+ int32_t premultiply_alpha,
1021
+ int32_t color_space_conversion,
1022
+ int32_t resize_quality,
1023
+ float resize_width,
1024
+ float resize_height);
1025
+ #endif
1026
+
1027
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1028
+ long long image_bitmap_create_from_bytes_encoded_src_rect(const uint8_t *image_bytes,
1029
+ uintptr_t image_size,
1030
+ float sx,
1031
+ float sy,
1032
+ float s_width,
1033
+ float s_height,
1034
+ bool flip_y,
1035
+ int32_t premultiply_alpha,
1036
+ int32_t color_space_conversion,
1037
+ int32_t resize_quality,
1038
+ float resize_width,
1039
+ float resize_height);
1040
+ #endif
742
1041
 
1042
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
743
1043
  long long image_bitmap_create_from_image_data(long long image_data,
744
1044
  bool flip_y,
745
1045
  int premultiply_alpha,
@@ -747,7 +1047,9 @@ long long image_bitmap_create_from_image_data(long long image_data,
747
1047
  int resize_quality,
748
1048
  float resize_width,
749
1049
  float resize_height);
1050
+ #endif
750
1051
 
1052
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
751
1053
  long long image_bitmap_create_from_image_data_src_rect(long long image_data,
752
1054
  float sx,
753
1055
  float sy,
@@ -759,129 +1061,265 @@ long long image_bitmap_create_from_image_data_src_rect(long long image_data,
759
1061
  int resize_quality,
760
1062
  float resize_width,
761
1063
  float resize_height);
1064
+ #endif
762
1065
 
1066
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
763
1067
  long long image_data_create(int width, int height);
1068
+ #endif
764
1069
 
765
- uint8_t *image_data_data(long long image_data);
766
-
767
- uintptr_t image_data_data_length(long long image_data);
1070
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1071
+ int image_data_width(long long image_data);
1072
+ #endif
768
1073
 
1074
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
769
1075
  int image_data_height(long long image_data);
1076
+ #endif
770
1077
 
771
- int image_data_width(long long image_data);
772
-
773
- float matrix_a(long long matrix);
1078
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1079
+ uint8_t *image_data_data(long long image_data);
1080
+ #endif
774
1081
 
775
- float matrix_b(long long matrix);
1082
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1083
+ uintptr_t image_data_data_length(long long image_data);
1084
+ #endif
776
1085
 
777
- float matrix_c(long long matrix);
1086
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1087
+ void destroy_image_data(long long image_data);
1088
+ #endif
778
1089
 
1090
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
779
1091
  long long matrix_create(void);
1092
+ #endif
780
1093
 
781
- float matrix_d(long long matrix);
782
-
783
- float matrix_e(long long matrix);
784
-
785
- float matrix_f(long long matrix);
786
-
787
- float matrix_m11(long long matrix);
788
-
789
- float matrix_m12(long long matrix);
790
-
791
- float matrix_m13(long long matrix);
792
-
793
- float matrix_m14(long long matrix);
794
-
795
- float matrix_m21(long long matrix);
796
-
797
- float matrix_m22(long long matrix);
798
-
799
- float matrix_m23(long long matrix);
800
-
801
- float matrix_m24(long long matrix);
802
-
803
- float matrix_m31(long long matrix);
804
-
805
- float matrix_m32(long long matrix);
806
-
807
- float matrix_m33(long long matrix);
808
-
809
- float matrix_m34(long long matrix);
810
-
811
- float matrix_m41(long long matrix);
812
-
813
- float matrix_m42(long long matrix);
814
-
815
- float matrix_m43(long long matrix);
1094
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1095
+ void matrix_update(long long matrix, const float *data, uintptr_t data_len);
1096
+ #endif
816
1097
 
817
- float matrix_m44(long long matrix);
1098
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1099
+ float matrix_a(long long matrix);
1100
+ #endif
818
1101
 
1102
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
819
1103
  void matrix_set_a(long long matrix, float a);
1104
+ #endif
1105
+
1106
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1107
+ float matrix_b(long long matrix);
1108
+ #endif
820
1109
 
1110
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
821
1111
  void matrix_set_b(long long matrix, float b);
1112
+ #endif
1113
+
1114
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1115
+ float matrix_c(long long matrix);
1116
+ #endif
822
1117
 
1118
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
823
1119
  void matrix_set_c(long long matrix, float c);
1120
+ #endif
1121
+
1122
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1123
+ float matrix_d(long long matrix);
1124
+ #endif
824
1125
 
1126
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
825
1127
  void matrix_set_d(long long matrix, float d);
1128
+ #endif
1129
+
1130
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1131
+ float matrix_e(long long matrix);
1132
+ #endif
826
1133
 
1134
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
827
1135
  void matrix_set_e(long long matrix, float e);
1136
+ #endif
1137
+
1138
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1139
+ float matrix_f(long long matrix);
1140
+ #endif
828
1141
 
1142
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
829
1143
  void matrix_set_f(long long matrix, float f);
1144
+ #endif
1145
+
1146
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1147
+ float matrix_m11(long long matrix);
1148
+ #endif
830
1149
 
1150
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
831
1151
  void matrix_set_m11(long long matrix, float m11);
1152
+ #endif
1153
+
1154
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1155
+ float matrix_m12(long long matrix);
1156
+ #endif
832
1157
 
1158
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
833
1159
  void matrix_set_m12(long long matrix, float m12);
1160
+ #endif
1161
+
1162
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1163
+ float matrix_m13(long long matrix);
1164
+ #endif
834
1165
 
1166
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
835
1167
  void matrix_set_m13(long long matrix, float m13);
1168
+ #endif
1169
+
1170
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1171
+ float matrix_m14(long long matrix);
1172
+ #endif
836
1173
 
1174
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
837
1175
  void matrix_set_m14(long long matrix, float m14);
1176
+ #endif
1177
+
1178
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1179
+ float matrix_m21(long long matrix);
1180
+ #endif
838
1181
 
1182
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
839
1183
  void matrix_set_m21(long long matrix, float m21);
1184
+ #endif
1185
+
1186
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1187
+ float matrix_m22(long long matrix);
1188
+ #endif
840
1189
 
1190
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
841
1191
  void matrix_set_m22(long long matrix, float m22);
1192
+ #endif
1193
+
1194
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1195
+ float matrix_m23(long long matrix);
1196
+ #endif
842
1197
 
1198
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
843
1199
  void matrix_set_m23(long long matrix, float m23);
1200
+ #endif
1201
+
1202
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1203
+ float matrix_m24(long long matrix);
1204
+ #endif
844
1205
 
1206
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
845
1207
  void matrix_set_m24(long long matrix, float m24);
1208
+ #endif
1209
+
1210
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1211
+ float matrix_m31(long long matrix);
1212
+ #endif
846
1213
 
1214
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
847
1215
  void matrix_set_m31(long long matrix, float m31);
1216
+ #endif
1217
+
1218
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1219
+ float matrix_m32(long long matrix);
1220
+ #endif
848
1221
 
1222
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
849
1223
  void matrix_set_m32(long long matrix, float m32);
1224
+ #endif
1225
+
1226
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1227
+ float matrix_m33(long long matrix);
1228
+ #endif
850
1229
 
1230
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
851
1231
  void matrix_set_m33(long long matrix, float m33);
1232
+ #endif
1233
+
1234
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1235
+ float matrix_m34(long long matrix);
1236
+ #endif
852
1237
 
1238
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
853
1239
  void matrix_set_m34(long long matrix, float m34);
1240
+ #endif
1241
+
1242
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1243
+ float matrix_m41(long long matrix);
1244
+ #endif
854
1245
 
1246
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
855
1247
  void matrix_set_m41(long long matrix, float m41);
1248
+ #endif
1249
+
1250
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1251
+ float matrix_m42(long long matrix);
1252
+ #endif
856
1253
 
1254
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
857
1255
  void matrix_set_m42(long long matrix, float m42);
1256
+ #endif
1257
+
1258
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1259
+ float matrix_m43(long long matrix);
1260
+ #endif
858
1261
 
1262
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
859
1263
  void matrix_set_m43(long long matrix, float m43);
1264
+ #endif
860
1265
 
861
- void matrix_set_m44(long long matrix, float m44);
1266
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1267
+ float matrix_m44(long long matrix);
1268
+ #endif
862
1269
 
863
- void matrix_update(long long matrix, const float *data, uintptr_t data_len);
1270
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1271
+ void matrix_set_m44(long long matrix, float m44);
1272
+ #endif
864
1273
 
865
- const char *paint_style_get_color_string(long long color);
1274
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1275
+ void destroy_matrix(long long matrix);
1276
+ #endif
866
1277
 
1278
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
867
1279
  void paint_style_set_fill_color_with_string(long long context, const char *color);
1280
+ #endif
868
1281
 
1282
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
869
1283
  void paint_style_set_stroke_color_with_string(long long context, const char *color);
1284
+ #endif
1285
+
1286
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1287
+ const char *paint_style_get_color_string(long long color);
1288
+ #endif
1289
+
1290
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1291
+ long long path_create(void);
1292
+ #endif
1293
+
1294
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1295
+ long long path_create_with_path(long long path);
1296
+ #endif
1297
+
1298
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1299
+ long long path_create_with_string(const char *string);
1300
+ #endif
870
1301
 
1302
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
871
1303
  void path_add_path(long long path, long long path_to_add);
1304
+ #endif
872
1305
 
1306
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
873
1307
  void path_add_path_with_matrix(long long path, long long path_to_add, long long matrix);
1308
+ #endif
874
1309
 
875
- void path_arc(long long path,
876
- float x,
877
- float y,
878
- float radius,
879
- float start_angle,
880
- float end_angle,
881
- bool anti_clockwise);
1310
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1311
+ void path_close_path(long long path);
1312
+ #endif
882
1313
 
883
- void path_arc_to(long long path, float x1, float y1, float x2, float y2, float radius);
1314
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1315
+ void path_move_to(long long path, float x, float y);
1316
+ #endif
1317
+
1318
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1319
+ void path_line_to(long long path, float x, float y);
1320
+ #endif
884
1321
 
1322
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
885
1323
  void path_bezier_curve_to(long long path,
886
1324
  float cp1x,
887
1325
  float cp1y,
@@ -889,15 +1327,27 @@ void path_bezier_curve_to(long long path,
889
1327
  float cp2y,
890
1328
  float x,
891
1329
  float y);
1330
+ #endif
892
1331
 
893
- void path_close_path(long long path);
894
-
895
- long long path_create(void);
1332
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1333
+ void path_quadratic_curve_to(long long path, float cpx, float cpy, float x, float y);
1334
+ #endif
896
1335
 
897
- long long path_create_with_path(long long path);
1336
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1337
+ void path_arc(long long path,
1338
+ float x,
1339
+ float y,
1340
+ float radius,
1341
+ float start_angle,
1342
+ float end_angle,
1343
+ bool anti_clockwise);
1344
+ #endif
898
1345
 
899
- long long path_create_with_string(const char *string);
1346
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1347
+ void path_arc_to(long long path, float x1, float y1, float x2, float y2, float radius);
1348
+ #endif
900
1349
 
1350
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
901
1351
  void path_ellipse(long long path,
902
1352
  float x,
903
1353
  float y,
@@ -907,59 +1357,260 @@ void path_ellipse(long long path,
907
1357
  float start_angle,
908
1358
  float end_angle,
909
1359
  bool anticlockwise);
1360
+ #endif
910
1361
 
911
- void path_line_to(long long path, float x, float y);
912
-
913
- void path_move_to(long long path, float x, float y);
914
-
915
- void path_quadratic_curve_to(long long path, float cpx, float cpy, float x, float y);
916
-
1362
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
917
1363
  void path_rect(long long path, float x, float y, float width, float height);
1364
+ #endif
918
1365
 
919
- void pattern_set_transform(long long pattern, long long matrix);
1366
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1367
+ void destroy_path(long long path);
1368
+ #endif
920
1369
 
921
- void svg_draw_from_path(long long context, const int8_t *path);
1370
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1371
+ void pattern_set_transform(long long pattern, long long matrix);
1372
+ #endif
922
1373
 
1374
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
923
1375
  void svg_draw_from_string(long long context, const int8_t *svg);
1376
+ #endif
1377
+
1378
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1379
+ void svg_draw_from_path(long long context, const int8_t *path);
1380
+ #endif
924
1381
 
1382
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
925
1383
  long long text_decoder_create(const char *decoding);
1384
+ #endif
926
1385
 
927
- const char *text_decoder_decode(long long decoder, const uint8_t *data, uintptr_t len);
1386
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1387
+ const char *text_decoder_get_encoding(long long decoder);
1388
+ #endif
928
1389
 
929
- const char *text_decoder_decode_i16(long long decoder, const int16_t *data, uintptr_t len);
1390
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1391
+ const char *text_decoder_decode(long long decoder, const uint8_t *data, uintptr_t len);
1392
+ #endif
930
1393
 
931
- const char *text_decoder_decode_i32(long long decoder, const int32_t *data, uintptr_t len);
1394
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1395
+ const struct U8Array *text_decoder_decode_to_bytes(long long decoder,
1396
+ const uint8_t *data,
1397
+ uintptr_t len);
1398
+ #endif
932
1399
 
1400
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
933
1401
  const char *text_decoder_decode_u16(long long decoder, const uint16_t *data, uintptr_t len);
1402
+ #endif
934
1403
 
935
- const char *text_decoder_get_encoding(long long decoder);
1404
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1405
+ const char *text_decoder_decode_i16(long long decoder, const int16_t *data, uintptr_t len);
1406
+ #endif
936
1407
 
937
- long long text_encoder_create(const char *encoding);
1408
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1409
+ const char *text_decoder_decode_i32(long long decoder, const int32_t *data, uintptr_t len);
1410
+ #endif
938
1411
 
939
- U8Array *text_encoder_encode(long long encoder, const char *text);
1412
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1413
+ void destroy_text_decoder(long long decoder);
1414
+ #endif
1415
+
1416
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1417
+ struct U8Array *text_decoder_decode_bytes(long long decoder, const uint8_t *data, uintptr_t len);
1418
+ #endif
1419
+
1420
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1421
+ struct U8Array *text_decoder_decode_u16_bytes(long long decoder,
1422
+ const uint16_t *data,
1423
+ uintptr_t len);
1424
+ #endif
1425
+
1426
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1427
+ struct U8Array *text_decoder_decode_i16_bytes(long long decoder,
1428
+ const int16_t *data,
1429
+ uintptr_t len);
1430
+ #endif
1431
+
1432
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1433
+ struct U8Array *text_decoder_decode_i32_bytes(long long decoder,
1434
+ const int32_t *data,
1435
+ uintptr_t len);
1436
+ #endif
1437
+
1438
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1439
+ struct U8Array *text_decoder_decode_u32_bytes(long long decoder,
1440
+ const uint32_t *data,
1441
+ uintptr_t len);
1442
+ #endif
1443
+
1444
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1445
+ long long text_encoder_create(const char *encoding);
1446
+ #endif
940
1447
 
1448
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
941
1449
  const char *text_encoder_get_encoding(long long encoder);
1450
+ #endif
942
1451
 
943
- float text_metrics_get_actual_bounding_box_ascent(long long metrics);
1452
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1453
+ struct U8Array *text_encoder_encode(long long encoder, const char *text);
1454
+ #endif
944
1455
 
945
- float text_metrics_get_actual_bounding_box_descent(long long metrics);
1456
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1457
+ void destroy_text_encoder(long long encoder);
1458
+ #endif
1459
+
1460
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1461
+ float text_metrics_get_width(long long metrics);
1462
+ #endif
946
1463
 
1464
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
947
1465
  float text_metrics_get_actual_bounding_box_left(long long metrics);
1466
+ #endif
948
1467
 
1468
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
949
1469
  float text_metrics_get_actual_bounding_box_right(long long metrics);
1470
+ #endif
950
1471
 
951
- float text_metrics_get_alphabetic_baseline(long long metrics);
952
-
953
- float text_metrics_get_em_height_ascent(long long metrics);
1472
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1473
+ float text_metrics_get_actual_bounding_box_ascent(long long metrics);
1474
+ #endif
954
1475
 
955
- float text_metrics_get_em_height_descent(long long metrics);
1476
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1477
+ float text_metrics_get_actual_bounding_box_descent(long long metrics);
1478
+ #endif
956
1479
 
1480
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
957
1481
  float text_metrics_get_font_bounding_box_ascent(long long metrics);
1482
+ #endif
958
1483
 
1484
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
959
1485
  float text_metrics_get_font_bounding_box_descent(long long metrics);
1486
+ #endif
1487
+
1488
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1489
+ float text_metrics_get_em_height_ascent(long long metrics);
1490
+ #endif
1491
+
1492
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1493
+ float text_metrics_get_em_height_descent(long long metrics);
1494
+ #endif
960
1495
 
1496
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
961
1497
  float text_metrics_get_hanging_baseline(long long metrics);
1498
+ #endif
1499
+
1500
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1501
+ float text_metrics_get_alphabetic_baseline(long long metrics);
1502
+ #endif
962
1503
 
1504
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
963
1505
  float text_metrics_get_ideographic_baseline(long long metrics);
1506
+ #endif
964
1507
 
965
- float text_metrics_get_width(long long metrics);
1508
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1509
+ void flip_y_in_place(uint8_t *data, uintptr_t length, uintptr_t bytes_per_row, uintptr_t height);
1510
+ #endif
1511
+
1512
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1513
+ void flip_y_in_place_3d(uint8_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_i8(int8_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_u16(uint16_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_i16(int16_t *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_u32(uint32_t *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_3d_i32(int32_t *data,
1554
+ uintptr_t length,
1555
+ uintptr_t bytes_per_row,
1556
+ uintptr_t height,
1557
+ uintptr_t depth);
1558
+ #endif
1559
+
1560
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1561
+ void flip_y_in_place_3d_f32(float *data,
1562
+ uintptr_t length,
1563
+ uintptr_t bytes_per_row,
1564
+ uintptr_t height,
1565
+ uintptr_t depth);
1566
+ #endif
1567
+
1568
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1569
+ void flip_y_in_place_3d_f64(double *data,
1570
+ uintptr_t length,
1571
+ uintptr_t bytes_per_row,
1572
+ uintptr_t height,
1573
+ uintptr_t depth);
1574
+ #endif
1575
+
1576
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1577
+ void flip_y_in_place_i8(int8_t *data, uintptr_t length, uintptr_t bytes_per_row, uintptr_t height);
1578
+ #endif
1579
+
1580
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1581
+ void flip_y_in_place_u16(uint16_t *data,
1582
+ uintptr_t length,
1583
+ uintptr_t bytes_per_row,
1584
+ uintptr_t height);
1585
+ #endif
1586
+
1587
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1588
+ void flip_y_in_place_i16(int16_t *data,
1589
+ uintptr_t length,
1590
+ uintptr_t bytes_per_row,
1591
+ uintptr_t height);
1592
+ #endif
1593
+
1594
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1595
+ void flip_y_in_place_u32(uint32_t *data,
1596
+ uintptr_t length,
1597
+ uintptr_t bytes_per_row,
1598
+ uintptr_t height);
1599
+ #endif
1600
+
1601
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1602
+ void flip_y_in_place_i32(int32_t *data,
1603
+ uintptr_t length,
1604
+ uintptr_t bytes_per_row,
1605
+ uintptr_t height);
1606
+ #endif
1607
+
1608
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1609
+ void flip_y_in_place_f32(float *data, uintptr_t length, uintptr_t bytes_per_row, uintptr_t height);
1610
+ #endif
1611
+
1612
+ #if (defined(TARGET_OS_IOS) || defined(TARGET_OS_MACOS))
1613
+ void flip_y_in_place_f64(double *data, uintptr_t length, uintptr_t bytes_per_row, uintptr_t height);
1614
+ #endif
1615
+
1616
+ #endif /* CBINDGEN_BINDINGS_H */