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