@nativescript/canvas 1.1.0 → 2.0.0-alpha.1

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