@triniwiz/nativescript-masonkit 1.0.0-beta.70 → 1.0.0-beta.71
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/common.d.ts +34 -12
- package/common.js +193 -7
- package/common.js.map +1 -1
- package/index.d.ts +9 -0
- package/package.json +1 -1
- package/platforms/android/include.gradle +1 -0
- package/platforms/android/masonkit-release.aar +0 -0
- package/platforms/ios/Mason.xcframework/Info.plist +5 -5
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +101 -119
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Info.plist +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +38643 -42603
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +212 -551
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +212 -551
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/module.modulemap +0 -1
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +8340 -8694
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +202 -238
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Info.plist +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +38643 -42603
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +212 -551
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +212 -551
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +38643 -42603
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +212 -551
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +212 -551
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/module.modulemap +0 -1
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +29 -29
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +8335 -8689
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +7982 -8321
- package/properties.js +11 -0
- package/properties.js.map +1 -1
- package/scroll/index.android.js +4 -1
- package/scroll/index.android.js.map +1 -1
- package/scroll/index.ios.js +10 -1
- package/scroll/index.ios.js.map +1 -1
- package/style.d.ts +6 -6
- package/style.js +7 -4
- package/style.js.map +1 -1
- package/symbols.d.ts +1 -0
- package/symbols.js +1 -0
- package/symbols.js.map +1 -1
- package/text/index.android.js +12 -1
- package/text/index.android.js.map +1 -1
- package/text/index.ios.js +5 -1
- package/text/index.ios.js.map +1 -1
- package/tree/index.android.js +5 -7
- package/tree/index.android.js.map +1 -1
- package/tree/index.ios.js +4 -6
- package/tree/index.ios.js.map +1 -1
- package/view/index.android.js +4 -1
- package/view/index.android.js.map +1 -1
- package/view/index.ios.js +16 -1
- package/view/index.ios.js.map +1 -1
- package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Headers/Mason-Swift.h +0 -1995
- package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Headers/Mason.h +0 -25
- package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Headers/mason_native.h +0 -499
- package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Info.plist +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -102460
- package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -3807
- package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -3807
- package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Modules/module.modulemap +0 -11
- package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/_CodeSignature/CodeResources +0 -212
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Mason.h
|
|
3
|
-
// Mason
|
|
4
|
-
//
|
|
5
|
-
// Created by Osei Fortune on 28/11/2022.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
#import <Foundation/Foundation.h>
|
|
9
|
-
#ifdef __cplusplus
|
|
10
|
-
extern "C" {
|
|
11
|
-
#endif
|
|
12
|
-
//#import "mason_ios.h"
|
|
13
|
-
#import "mason_native.h"
|
|
14
|
-
#ifdef __cplusplus
|
|
15
|
-
}
|
|
16
|
-
#endif
|
|
17
|
-
//! Project version number for Mason.
|
|
18
|
-
FOUNDATION_EXPORT double MasonVersionNumber;
|
|
19
|
-
|
|
20
|
-
//! Project version string for Mason.
|
|
21
|
-
FOUNDATION_EXPORT const unsigned char MasonVersionString[];
|
|
22
|
-
|
|
23
|
-
// In this header, you should import all the public headers of your framework using statements like #import <Mason/PublicHeader.h>
|
|
24
|
-
|
|
25
|
-
|
package/platforms/ios/Mason.xcframework/ios-arm64-simulator/Mason.framework/Headers/mason_native.h
DELETED
|
@@ -1,499 +0,0 @@
|
|
|
1
|
-
#ifndef MASON_C_H
|
|
2
|
-
#define MASON_C_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 struct CMason CMason;
|
|
12
|
-
|
|
13
|
-
typedef struct CMasonNode CMasonNode;
|
|
14
|
-
|
|
15
|
-
typedef struct CMasonInlineTextSegment {
|
|
16
|
-
float width;
|
|
17
|
-
float ascent;
|
|
18
|
-
float descent;
|
|
19
|
-
uint8_t flags;
|
|
20
|
-
} CMasonInlineTextSegment;
|
|
21
|
-
|
|
22
|
-
typedef struct CMasonInlineChildSegment {
|
|
23
|
-
const struct CMasonNode *node;
|
|
24
|
-
float descent;
|
|
25
|
-
} CMasonInlineChildSegment;
|
|
26
|
-
|
|
27
|
-
typedef enum CMasonSegment_Tag {
|
|
28
|
-
Text,
|
|
29
|
-
InlineChild,
|
|
30
|
-
LineBreak,
|
|
31
|
-
} CMasonSegment_Tag;
|
|
32
|
-
|
|
33
|
-
typedef struct CMasonSegment {
|
|
34
|
-
CMasonSegment_Tag tag;
|
|
35
|
-
union {
|
|
36
|
-
struct {
|
|
37
|
-
struct CMasonInlineTextSegment text;
|
|
38
|
-
};
|
|
39
|
-
struct {
|
|
40
|
-
struct CMasonInlineChildSegment inline_child;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
} CMasonSegment;
|
|
44
|
-
|
|
45
|
-
typedef struct NodeArray {
|
|
46
|
-
void **array;
|
|
47
|
-
uintptr_t length;
|
|
48
|
-
} NodeArray;
|
|
49
|
-
|
|
50
|
-
typedef struct CMasonBuffer {
|
|
51
|
-
uint8_t *data;
|
|
52
|
-
uintptr_t size;
|
|
53
|
-
} CMasonBuffer;
|
|
54
|
-
|
|
55
|
-
typedef enum AvailableSpace_Tag {
|
|
56
|
-
Definite,
|
|
57
|
-
MinContent,
|
|
58
|
-
MaxContent,
|
|
59
|
-
} AvailableSpace_Tag;
|
|
60
|
-
|
|
61
|
-
typedef struct AvailableSpace {
|
|
62
|
-
AvailableSpace_Tag tag;
|
|
63
|
-
union {
|
|
64
|
-
struct {
|
|
65
|
-
float definite;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
} AvailableSpace;
|
|
69
|
-
|
|
70
|
-
typedef struct CMasonMinMax {
|
|
71
|
-
int32_t min_type;
|
|
72
|
-
float min_value;
|
|
73
|
-
int32_t max_type;
|
|
74
|
-
float max_value;
|
|
75
|
-
} CMasonMinMax;
|
|
76
|
-
|
|
77
|
-
struct CMason *mason_init(void);
|
|
78
|
-
|
|
79
|
-
void mason_clear(struct CMason *mason);
|
|
80
|
-
|
|
81
|
-
void mason_release(struct CMason *mason);
|
|
82
|
-
|
|
83
|
-
void mason_print_tree(struct CMason *mason, struct CMasonNode *node);
|
|
84
|
-
|
|
85
|
-
void mason_set_device_scale(struct CMason *mason, float scale);
|
|
86
|
-
|
|
87
|
-
void mason_set_preflight(struct CMason *mason, bool enabled);
|
|
88
|
-
|
|
89
|
-
bool mason_get_preflight(void);
|
|
90
|
-
|
|
91
|
-
void *mason_get_buffer(struct CMason *mason, int handle);
|
|
92
|
-
|
|
93
|
-
void mason_node_set_segments(struct CMason *mason,
|
|
94
|
-
struct CMasonNode *node,
|
|
95
|
-
struct CMasonSegment *segments,
|
|
96
|
-
uintptr_t segments_len);
|
|
97
|
-
|
|
98
|
-
void mason_node_clear_segments(struct CMason *mason, struct CMasonNode *node);
|
|
99
|
-
|
|
100
|
-
bool mason_node_is_equal(struct CMasonNode *node_a, struct CMasonNode *node_b);
|
|
101
|
-
|
|
102
|
-
void mason_node_array_destroy(struct NodeArray *array);
|
|
103
|
-
|
|
104
|
-
void mason_node_destroy(struct CMasonNode *node);
|
|
105
|
-
|
|
106
|
-
struct CMasonNode *mason_node_new_image_node(struct CMason *mason);
|
|
107
|
-
|
|
108
|
-
struct CMasonNode *mason_node_new_button_node(struct CMason *mason);
|
|
109
|
-
|
|
110
|
-
#if !defined(TARGET_OS_ANDROID)
|
|
111
|
-
struct CMasonNode *mason_node_new_button_node_with_context(struct CMason *mason,
|
|
112
|
-
void *measure_data,
|
|
113
|
-
long long (*measure)(const void*,
|
|
114
|
-
float,
|
|
115
|
-
float,
|
|
116
|
-
float,
|
|
117
|
-
float));
|
|
118
|
-
#endif
|
|
119
|
-
|
|
120
|
-
struct CMasonNode *mason_node_new_node(struct CMason *mason, bool anonymous);
|
|
121
|
-
|
|
122
|
-
#if !defined(TARGET_OS_ANDROID)
|
|
123
|
-
struct CMasonNode *mason_node_new_node_with_context(struct CMason *mason,
|
|
124
|
-
void *measure_data,
|
|
125
|
-
long long (*measure)(const void*,
|
|
126
|
-
float,
|
|
127
|
-
float,
|
|
128
|
-
float,
|
|
129
|
-
float));
|
|
130
|
-
#endif
|
|
131
|
-
|
|
132
|
-
struct CMasonNode *mason_node_new_node_with_children(struct CMason *mason,
|
|
133
|
-
struct CMasonNode **children,
|
|
134
|
-
uintptr_t children_size);
|
|
135
|
-
|
|
136
|
-
struct CMasonNode *mason_node_new_text_node(struct CMason *mason, bool anonymous);
|
|
137
|
-
|
|
138
|
-
#if !defined(TARGET_OS_ANDROID)
|
|
139
|
-
struct CMasonNode *mason_node_new_text_node_with_context(struct CMason *mason,
|
|
140
|
-
void *measure_data,
|
|
141
|
-
long long (*measure)(const void*,
|
|
142
|
-
float,
|
|
143
|
-
float,
|
|
144
|
-
float,
|
|
145
|
-
float));
|
|
146
|
-
#endif
|
|
147
|
-
|
|
148
|
-
struct CMasonNode *mason_node_new_text_node_with_children(struct CMason *mason,
|
|
149
|
-
struct CMasonNode **children,
|
|
150
|
-
uintptr_t children_size);
|
|
151
|
-
|
|
152
|
-
struct CMasonNode *mason_node_new_line_break_node(struct CMason *mason);
|
|
153
|
-
|
|
154
|
-
#if !defined(TARGET_OS_ANDROID)
|
|
155
|
-
struct CMasonNode *mason_node_new_line_break_node_with_context(struct CMason *mason,
|
|
156
|
-
void *measure_data,
|
|
157
|
-
long long (*measure)(const void*,
|
|
158
|
-
float,
|
|
159
|
-
float,
|
|
160
|
-
float,
|
|
161
|
-
float));
|
|
162
|
-
#endif
|
|
163
|
-
|
|
164
|
-
struct CMasonNode *mason_node_new_list_item_node(struct CMason *mason);
|
|
165
|
-
|
|
166
|
-
#if !defined(TARGET_OS_ANDROID)
|
|
167
|
-
struct CMasonNode *mason_node_new_list_item_node_with_context(struct CMason *mason,
|
|
168
|
-
void *measure_data,
|
|
169
|
-
long long (*measure)(const void*,
|
|
170
|
-
float,
|
|
171
|
-
float,
|
|
172
|
-
float,
|
|
173
|
-
float));
|
|
174
|
-
#endif
|
|
175
|
-
|
|
176
|
-
void *mason_node_layout(struct CMason *mason, struct CMasonNode *node, void *(*layout)(const float*,
|
|
177
|
-
uintptr_t));
|
|
178
|
-
|
|
179
|
-
void *mason_node_get_float_rects(struct CMason *mason,
|
|
180
|
-
struct CMasonNode *node,
|
|
181
|
-
void *(*callback)(const float*));
|
|
182
|
-
|
|
183
|
-
struct CMasonBuffer *mason_node_get_float_rects_buffer(struct CMason *mason,
|
|
184
|
-
struct CMasonNode *node);
|
|
185
|
-
|
|
186
|
-
void mason_node_release_float_rects_buffer(struct CMasonBuffer *buffer);
|
|
187
|
-
|
|
188
|
-
void mason_node_compute_wh(struct CMason *mason,
|
|
189
|
-
struct CMasonNode *node,
|
|
190
|
-
float width,
|
|
191
|
-
float height);
|
|
192
|
-
|
|
193
|
-
void mason_node_compute_size(struct CMason *mason,
|
|
194
|
-
struct CMasonNode *node,
|
|
195
|
-
struct AvailableSpace width,
|
|
196
|
-
struct AvailableSpace height);
|
|
197
|
-
|
|
198
|
-
void mason_node_compute_max_content(struct CMason *mason, struct CMasonNode *node);
|
|
199
|
-
|
|
200
|
-
void mason_node_compute_min_content(struct CMason *mason, struct CMasonNode *node);
|
|
201
|
-
|
|
202
|
-
void mason_node_compute(struct CMason *mason, struct CMasonNode *node);
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* Combined compute-with-size + layout in a single FFI crossing.
|
|
206
|
-
*/
|
|
207
|
-
void *mason_node_compute_wh_and_layout(struct CMason *mason,
|
|
208
|
-
struct CMasonNode *node,
|
|
209
|
-
float width,
|
|
210
|
-
float height,
|
|
211
|
-
void *(*layout)(const float*, uintptr_t));
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Combined compute (auto size) + layout in a single FFI crossing.
|
|
215
|
-
*/
|
|
216
|
-
void *mason_node_compute_and_layout(struct CMason *mason,
|
|
217
|
-
struct CMasonNode *node,
|
|
218
|
-
void *(*layout)(const float*, uintptr_t));
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Combined compute-max-content + layout in a single FFI crossing.
|
|
222
|
-
*/
|
|
223
|
-
void *mason_node_compute_max_content_and_layout(struct CMason *mason,
|
|
224
|
-
struct CMasonNode *node,
|
|
225
|
-
void *(*layout)(const float*, uintptr_t));
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* Combined compute-min-content + layout in a single FFI crossing.
|
|
229
|
-
*/
|
|
230
|
-
void *mason_node_compute_min_content_and_layout(struct CMason *mason,
|
|
231
|
-
struct CMasonNode *node,
|
|
232
|
-
void *(*layout)(const float*, uintptr_t));
|
|
233
|
-
|
|
234
|
-
struct CMasonNode *mason_node_get_child_at(struct CMason *mason,
|
|
235
|
-
struct CMasonNode *node,
|
|
236
|
-
uintptr_t index);
|
|
237
|
-
|
|
238
|
-
void mason_node_set_children(struct CMason *mason,
|
|
239
|
-
struct CMasonNode *node,
|
|
240
|
-
struct CMasonNode *const *children,
|
|
241
|
-
uintptr_t children_size);
|
|
242
|
-
|
|
243
|
-
void mason_node_add_children(struct CMason *mason,
|
|
244
|
-
struct CMasonNode *node,
|
|
245
|
-
struct CMasonNode *const *children,
|
|
246
|
-
uintptr_t children_size);
|
|
247
|
-
|
|
248
|
-
void mason_node_prepend_children(struct CMason *mason,
|
|
249
|
-
struct CMasonNode *node,
|
|
250
|
-
struct CMasonNode *const *children,
|
|
251
|
-
uintptr_t children_size);
|
|
252
|
-
|
|
253
|
-
void mason_node_prepend(struct CMason *mason, struct CMasonNode *node, struct CMasonNode *child);
|
|
254
|
-
|
|
255
|
-
void mason_node_add_child(struct CMason *mason, struct CMasonNode *node, struct CMasonNode *child);
|
|
256
|
-
|
|
257
|
-
struct CMasonNode *mason_node_replace_child_at(struct CMason *mason,
|
|
258
|
-
struct CMasonNode *node,
|
|
259
|
-
struct CMasonNode *child,
|
|
260
|
-
uintptr_t index);
|
|
261
|
-
|
|
262
|
-
void mason_node_add_child_at(struct CMason *mason,
|
|
263
|
-
struct CMasonNode *node,
|
|
264
|
-
struct CMasonNode *child,
|
|
265
|
-
uintptr_t index);
|
|
266
|
-
|
|
267
|
-
void mason_node_insert_child_before(struct CMason *mason,
|
|
268
|
-
struct CMasonNode *node,
|
|
269
|
-
struct CMasonNode *child,
|
|
270
|
-
struct CMasonNode *reference);
|
|
271
|
-
|
|
272
|
-
void mason_node_insert_child_after(struct CMason *mason,
|
|
273
|
-
struct CMasonNode *node,
|
|
274
|
-
struct CMasonNode *child,
|
|
275
|
-
struct CMasonNode *reference);
|
|
276
|
-
|
|
277
|
-
bool mason_node_dirty(struct CMason *mason, struct CMasonNode *node);
|
|
278
|
-
|
|
279
|
-
void mason_node_mark_dirty(struct CMason *mason, struct CMasonNode *node);
|
|
280
|
-
|
|
281
|
-
void mason_node_set_pseudo_states(struct CMason *mason, struct CMasonNode *node, uint16_t flags);
|
|
282
|
-
|
|
283
|
-
uint16_t mason_node_get_pseudo_states(struct CMason *mason, struct CMasonNode *node);
|
|
284
|
-
|
|
285
|
-
bool mason_node_has_pseudo_state(struct CMason *mason, struct CMasonNode *node, uint16_t flag);
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* Return the node's state buffer as raw pointer + length.
|
|
289
|
-
* The state buffer holds pseudo flags and other per-node state.
|
|
290
|
-
*/
|
|
291
|
-
const uint8_t *mason_node_get_state_buffer(struct CMason *mason,
|
|
292
|
-
struct CMasonNode *node,
|
|
293
|
-
uintptr_t *out_len);
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* Return a mutable pointer to the node's state buffer.
|
|
297
|
-
*/
|
|
298
|
-
uint8_t *mason_node_get_state_buffer_mut(struct CMason *mason,
|
|
299
|
-
struct CMasonNode *node,
|
|
300
|
-
uintptr_t *out_len);
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* Return an existing pseudo style buffer (read-only raw pointer + length).
|
|
304
|
-
* Returns null if no pseudo buffer exists for the given flags.
|
|
305
|
-
*/
|
|
306
|
-
const uint8_t *mason_node_get_pseudo_style_buffer(struct CMason *mason,
|
|
307
|
-
struct CMasonNode *node,
|
|
308
|
-
uint16_t flags,
|
|
309
|
-
uintptr_t *out_len);
|
|
310
|
-
|
|
311
|
-
void *mason_node_get_pseudo_style_buffer_apple(struct CMason *mason,
|
|
312
|
-
struct CMasonNode *node,
|
|
313
|
-
uint16_t flags);
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
* Prepare (create if needed) and return a mutable pseudo style buffer.
|
|
317
|
-
* Clones from the base style if this is the first call for the given pseudo state.
|
|
318
|
-
* Returns a raw mutable pointer + length for direct buffer writes.
|
|
319
|
-
*/
|
|
320
|
-
uint8_t *mason_node_prepare_pseudo_style_buffer(struct CMason *mason,
|
|
321
|
-
struct CMasonNode *node,
|
|
322
|
-
uint16_t flags,
|
|
323
|
-
uintptr_t *out_len);
|
|
324
|
-
|
|
325
|
-
void *mason_node_prepare_pseudo_style_buffer_apple(struct CMason *mason,
|
|
326
|
-
struct CMasonNode *node,
|
|
327
|
-
uint16_t flags);
|
|
328
|
-
|
|
329
|
-
bool mason_node_is_children_same(struct CMason *mason,
|
|
330
|
-
struct CMasonNode *node,
|
|
331
|
-
struct CMasonNode *const *children,
|
|
332
|
-
uintptr_t children_size);
|
|
333
|
-
|
|
334
|
-
void mason_node_remove_children(struct CMason *mason, struct CMasonNode *node);
|
|
335
|
-
|
|
336
|
-
struct CMasonNode *mason_node_remove_child_at(struct CMason *mason,
|
|
337
|
-
struct CMasonNode *node,
|
|
338
|
-
uintptr_t index);
|
|
339
|
-
|
|
340
|
-
struct CMasonNode *mason_node_remove_child(struct CMason *mason,
|
|
341
|
-
struct CMasonNode *node,
|
|
342
|
-
struct CMasonNode *child);
|
|
343
|
-
|
|
344
|
-
struct NodeArray *mason_node_get_children(struct CMason *mason, struct CMasonNode *node);
|
|
345
|
-
|
|
346
|
-
#if !defined(TARGET_OS_ANDROID)
|
|
347
|
-
void mason_node_set_context(struct CMason *mason,
|
|
348
|
-
struct CMasonNode *node,
|
|
349
|
-
void *measure_data,
|
|
350
|
-
long long (*measure)(const void*, float, float, float, float));
|
|
351
|
-
#endif
|
|
352
|
-
|
|
353
|
-
#if !defined(TARGET_OS_ANDROID)
|
|
354
|
-
void mason_node_remove_context(struct CMason *mason, struct CMasonNode *node);
|
|
355
|
-
#endif
|
|
356
|
-
|
|
357
|
-
#if !defined(TARGET_OS_ANDROID)
|
|
358
|
-
void mason_node_set_apple_node(struct CMason *mason, struct CMasonNode *node, void *apple_node);
|
|
359
|
-
#endif
|
|
360
|
-
|
|
361
|
-
void mason_style_update_non_buffer_data(struct CMason *mason,
|
|
362
|
-
struct CMasonNode *node,
|
|
363
|
-
const char *grid_auto_rows,
|
|
364
|
-
const char *grid_auto_columns,
|
|
365
|
-
const char *grid_column,
|
|
366
|
-
const char *grid_column_start,
|
|
367
|
-
const char *grid_column_end,
|
|
368
|
-
const char *grid_row,
|
|
369
|
-
const char *grid_row_start,
|
|
370
|
-
const char *grid_row_end,
|
|
371
|
-
const char *grid_template_rows,
|
|
372
|
-
const char *grid_template_columns,
|
|
373
|
-
const char *grid_area,
|
|
374
|
-
const char *grid_template_areas);
|
|
375
|
-
|
|
376
|
-
void mason_style_set_with_values(struct CMason *mason,
|
|
377
|
-
struct CMasonNode *node,
|
|
378
|
-
signed char display,
|
|
379
|
-
signed char position,
|
|
380
|
-
signed char direction,
|
|
381
|
-
signed char flex_direction,
|
|
382
|
-
signed char flex_wrap,
|
|
383
|
-
signed char overflow,
|
|
384
|
-
signed char align_items,
|
|
385
|
-
signed char align_self,
|
|
386
|
-
signed char align_content,
|
|
387
|
-
signed char justify_items,
|
|
388
|
-
signed char justify_self,
|
|
389
|
-
signed char justify_content,
|
|
390
|
-
signed char inset_left_type,
|
|
391
|
-
float inset_left_value,
|
|
392
|
-
signed char inset_right_type,
|
|
393
|
-
float inset_right_value,
|
|
394
|
-
signed char inset_top_type,
|
|
395
|
-
float inset_top_value,
|
|
396
|
-
signed char inset_bottom_type,
|
|
397
|
-
float inset_bottom_value,
|
|
398
|
-
signed char margin_left_type,
|
|
399
|
-
float margin_left_value,
|
|
400
|
-
signed char margin_right_type,
|
|
401
|
-
float margin_right_value,
|
|
402
|
-
signed char margin_top_type,
|
|
403
|
-
float margin_top_value,
|
|
404
|
-
signed char margin_bottom_type,
|
|
405
|
-
float margin_bottom_value,
|
|
406
|
-
signed char padding_left_type,
|
|
407
|
-
float padding_left_value,
|
|
408
|
-
signed char padding_right_type,
|
|
409
|
-
float padding_right_value,
|
|
410
|
-
signed char padding_top_type,
|
|
411
|
-
float padding_top_value,
|
|
412
|
-
signed char padding_bottom_type,
|
|
413
|
-
float padding_bottom_value,
|
|
414
|
-
signed char border_left_type,
|
|
415
|
-
float border_left_value,
|
|
416
|
-
signed char border_right_type,
|
|
417
|
-
float border_right_value,
|
|
418
|
-
signed char border_top_type,
|
|
419
|
-
float border_top_value,
|
|
420
|
-
signed char border_bottom_type,
|
|
421
|
-
float border_bottom_value,
|
|
422
|
-
float flex_grow,
|
|
423
|
-
float flex_shrink,
|
|
424
|
-
signed char flex_basis_type,
|
|
425
|
-
float flex_basis_value,
|
|
426
|
-
signed char width_type,
|
|
427
|
-
float width_value,
|
|
428
|
-
signed char height_type,
|
|
429
|
-
float height_value,
|
|
430
|
-
signed char min_width_type,
|
|
431
|
-
float min_width_value,
|
|
432
|
-
signed char min_height_type,
|
|
433
|
-
float min_height_value,
|
|
434
|
-
signed char max_width_type,
|
|
435
|
-
float max_width_value,
|
|
436
|
-
signed char max_height_type,
|
|
437
|
-
float max_height_value,
|
|
438
|
-
signed char gap_row_type,
|
|
439
|
-
float gap_row_value,
|
|
440
|
-
signed char gap_column_type,
|
|
441
|
-
float gap_column_value,
|
|
442
|
-
float aspect_ratio,
|
|
443
|
-
const char *grid_auto_rows,
|
|
444
|
-
const char *grid_auto_columns,
|
|
445
|
-
signed char grid_auto_flow,
|
|
446
|
-
const char *grid_column,
|
|
447
|
-
const char *grid_column_start,
|
|
448
|
-
const char *grid_column_end,
|
|
449
|
-
const char *grid_row,
|
|
450
|
-
const char *grid_row_start,
|
|
451
|
-
const char *grid_row_end,
|
|
452
|
-
const char *grid_template_rows,
|
|
453
|
-
const char *grid_template_columns,
|
|
454
|
-
signed char overflow_x,
|
|
455
|
-
signed char overflow_y,
|
|
456
|
-
float scrollbar_width,
|
|
457
|
-
signed char text_align,
|
|
458
|
-
signed char box_sizing,
|
|
459
|
-
const char *grid_area,
|
|
460
|
-
const char *grid_template_areas);
|
|
461
|
-
|
|
462
|
-
void mason_style_prepare_style_for_mut(struct CMason *mason, struct CMasonNode *node);
|
|
463
|
-
|
|
464
|
-
void mason_style_release_style_buffer(struct CMasonBuffer *buffer);
|
|
465
|
-
|
|
466
|
-
struct CMasonBuffer *mason_style_get_style_buffer(struct CMason *mason, struct CMasonNode *node);
|
|
467
|
-
|
|
468
|
-
void *mason_style_get_style_buffer_apple(struct CMason *mason, struct CMasonNode *node);
|
|
469
|
-
|
|
470
|
-
char *mason_style_get_grid_area_css(struct CMason *mason, struct CMasonNode *node);
|
|
471
|
-
|
|
472
|
-
char *mason_style_get_grid_template_areas_css(struct CMason *mason, struct CMasonNode *node);
|
|
473
|
-
|
|
474
|
-
char *mason_style_get_grid_auto_rows_css(struct CMason *mason, struct CMasonNode *node);
|
|
475
|
-
|
|
476
|
-
char *mason_style_get_grid_auto_columns_css(struct CMason *mason, struct CMasonNode *node);
|
|
477
|
-
|
|
478
|
-
char *mason_style_get_grid_column_css(struct CMason *mason, struct CMasonNode *node);
|
|
479
|
-
|
|
480
|
-
char *mason_style_get_grid_column_start_css(struct CMason *mason, struct CMasonNode *node);
|
|
481
|
-
|
|
482
|
-
char *mason_style_get_grid_column_end_css(struct CMason *mason, struct CMasonNode *node);
|
|
483
|
-
|
|
484
|
-
char *mason_style_get_grid_row_css(struct CMason *mason, struct CMasonNode *node);
|
|
485
|
-
|
|
486
|
-
char *mason_style_get_grid_row_start_css(struct CMason *mason, struct CMasonNode *node);
|
|
487
|
-
|
|
488
|
-
char *mason_style_get_grid_row_end_css(struct CMason *mason, struct CMasonNode *node);
|
|
489
|
-
|
|
490
|
-
char *mason_style_get_grid_template_rows_css(struct CMason *mason, struct CMasonNode *node);
|
|
491
|
-
|
|
492
|
-
char *mason_style_get_grid_template_columns_css(struct CMason *mason, struct CMasonNode *node);
|
|
493
|
-
|
|
494
|
-
struct CMasonMinMax mason_util_create_track_sizing_function_with_type_value(int32_t track_type,
|
|
495
|
-
float track_value);
|
|
496
|
-
|
|
497
|
-
void mason_util_destroy_string(char *string);
|
|
498
|
-
|
|
499
|
-
#endif /* MASON_C_H */
|
|
Binary file
|
|
Binary file
|