@triniwiz/nativescript-masonkit 1.0.0-alpha.2 → 1.0.0-alpha.22
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/index.d.ts +167 -17
- package/package.json +4 -4
- package/platforms/android/include.gradle +22 -1
- package/platforms/android/masonkit-release.aar +0 -0
- package/platforms/ios/Mason.xcframework/Info.plist +9 -5
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +495 -313
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason.h +11 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +215 -818
- 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 +30167 -19469
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +660 -310
- 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 +660 -310
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/module.modulemap +1 -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 +2421 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +1053 -689
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason.h +11 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +215 -818
- 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 +30167 -19469
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +660 -310
- 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 +660 -310
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +30167 -19469
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +660 -310
- 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 +660 -310
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/module.modulemap +1 -1
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +33 -97
- 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 +2421 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +2357 -0
- package/common.d.ts +0 -75
- package/common.js +0 -1556
- package/common.js.map +0 -1
- package/helpers.d.ts +0 -233
- package/helpers.js +0 -3382
- package/helpers.js.map +0 -1
- package/index.android.d.ts +0 -26
- package/index.android.js +0 -95
- package/index.android.js.map +0 -1
- package/index.ios.d.ts +0 -27
- package/index.ios.js +0 -136
- package/index.ios.js.map +0 -1
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/PrivateHeaders/mason_native.h +0 -676
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/PrivateHeaders/mason_native.h +0 -676
- package/platforms/ios/Podfile +0 -1
- package/platforms/ios/build.xcconfig +0 -2
- package/platforms/ios/src/JSIModule.h +0 -217
- package/platforms/ios/src/JSIModule.mm +0 -2788
- package/platforms/ios/src/include/mason_native.h +0 -945
- package/platforms/ios/src/module.modulemap +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#if 0
|
|
2
2
|
#elif defined(__arm64__) && __arm64__
|
|
3
|
-
// Generated by Apple Swift version 5.
|
|
3
|
+
// Generated by Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
|
|
4
4
|
#ifndef MASON_SWIFT_H
|
|
5
5
|
#define MASON_SWIFT_H
|
|
6
6
|
#pragma clang diagnostic push
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
# include <swift/objc-prologue.h>
|
|
24
24
|
#endif
|
|
25
25
|
|
|
26
|
-
#pragma clang diagnostic ignored "-Wduplicate-method-match"
|
|
27
26
|
#pragma clang diagnostic ignored "-Wauto-import"
|
|
28
27
|
#if defined(__OBJC__)
|
|
29
28
|
#include <Foundation/Foundation.h>
|
|
@@ -32,10 +31,33 @@
|
|
|
32
31
|
#include <cstdint>
|
|
33
32
|
#include <cstddef>
|
|
34
33
|
#include <cstdbool>
|
|
34
|
+
#include <cstring>
|
|
35
|
+
#include <stdlib.h>
|
|
36
|
+
#include <new>
|
|
37
|
+
#include <type_traits>
|
|
35
38
|
#else
|
|
36
39
|
#include <stdint.h>
|
|
37
40
|
#include <stddef.h>
|
|
38
41
|
#include <stdbool.h>
|
|
42
|
+
#include <string.h>
|
|
43
|
+
#endif
|
|
44
|
+
#if defined(__cplusplus)
|
|
45
|
+
#pragma clang diagnostic push
|
|
46
|
+
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
|
|
47
|
+
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
|
|
48
|
+
# include <ptrauth.h>
|
|
49
|
+
#else
|
|
50
|
+
#pragma clang diagnostic push
|
|
51
|
+
#pragma clang diagnostic ignored "-Wreserved-macro-identifier"
|
|
52
|
+
# ifndef __ptrauth_swift_value_witness_function_pointer
|
|
53
|
+
# define __ptrauth_swift_value_witness_function_pointer(x)
|
|
54
|
+
# endif
|
|
55
|
+
# ifndef __ptrauth_swift_class_method_pointer
|
|
56
|
+
# define __ptrauth_swift_class_method_pointer(x)
|
|
57
|
+
# endif
|
|
58
|
+
#pragma clang diagnostic pop
|
|
59
|
+
#endif
|
|
60
|
+
#pragma clang diagnostic pop
|
|
39
61
|
#endif
|
|
40
62
|
|
|
41
63
|
#if !defined(SWIFT_TYPEDEFS)
|
|
@@ -71,53 +93,66 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
71
93
|
# if __has_feature(objc_class_property)
|
|
72
94
|
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
|
|
73
95
|
# else
|
|
74
|
-
# define SWIFT_CLASS_PROPERTY(...)
|
|
96
|
+
# define SWIFT_CLASS_PROPERTY(...)
|
|
75
97
|
# endif
|
|
76
98
|
#endif
|
|
77
|
-
|
|
78
|
-
#if __has_attribute(objc_runtime_name)
|
|
79
|
-
#
|
|
80
|
-
#else
|
|
81
|
-
#
|
|
99
|
+
#if !defined(SWIFT_RUNTIME_NAME)
|
|
100
|
+
# if __has_attribute(objc_runtime_name)
|
|
101
|
+
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
|
|
102
|
+
# else
|
|
103
|
+
# define SWIFT_RUNTIME_NAME(X)
|
|
104
|
+
# endif
|
|
82
105
|
#endif
|
|
83
|
-
#if
|
|
84
|
-
#
|
|
85
|
-
#
|
|
86
|
-
#
|
|
106
|
+
#if !defined(SWIFT_COMPILE_NAME)
|
|
107
|
+
# if __has_attribute(swift_name)
|
|
108
|
+
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
|
109
|
+
# else
|
|
110
|
+
# define SWIFT_COMPILE_NAME(X)
|
|
111
|
+
# endif
|
|
87
112
|
#endif
|
|
88
|
-
#if
|
|
89
|
-
#
|
|
90
|
-
#
|
|
91
|
-
#
|
|
113
|
+
#if !defined(SWIFT_METHOD_FAMILY)
|
|
114
|
+
# if __has_attribute(objc_method_family)
|
|
115
|
+
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
|
|
116
|
+
# else
|
|
117
|
+
# define SWIFT_METHOD_FAMILY(X)
|
|
118
|
+
# endif
|
|
92
119
|
#endif
|
|
93
|
-
#if
|
|
94
|
-
#
|
|
95
|
-
#
|
|
96
|
-
#
|
|
120
|
+
#if !defined(SWIFT_NOESCAPE)
|
|
121
|
+
# if __has_attribute(noescape)
|
|
122
|
+
# define SWIFT_NOESCAPE __attribute__((noescape))
|
|
123
|
+
# else
|
|
124
|
+
# define SWIFT_NOESCAPE
|
|
125
|
+
# endif
|
|
97
126
|
#endif
|
|
98
|
-
#if
|
|
99
|
-
#
|
|
100
|
-
#
|
|
101
|
-
#
|
|
127
|
+
#if !defined(SWIFT_RELEASES_ARGUMENT)
|
|
128
|
+
# if __has_attribute(ns_consumed)
|
|
129
|
+
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
|
|
130
|
+
# else
|
|
131
|
+
# define SWIFT_RELEASES_ARGUMENT
|
|
132
|
+
# endif
|
|
102
133
|
#endif
|
|
103
|
-
#if
|
|
104
|
-
#
|
|
105
|
-
#
|
|
106
|
-
#
|
|
134
|
+
#if !defined(SWIFT_WARN_UNUSED_RESULT)
|
|
135
|
+
# if __has_attribute(warn_unused_result)
|
|
136
|
+
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
|
137
|
+
# else
|
|
138
|
+
# define SWIFT_WARN_UNUSED_RESULT
|
|
139
|
+
# endif
|
|
107
140
|
#endif
|
|
108
|
-
#if
|
|
109
|
-
#
|
|
110
|
-
#
|
|
111
|
-
#
|
|
141
|
+
#if !defined(SWIFT_NORETURN)
|
|
142
|
+
# if __has_attribute(noreturn)
|
|
143
|
+
# define SWIFT_NORETURN __attribute__((noreturn))
|
|
144
|
+
# else
|
|
145
|
+
# define SWIFT_NORETURN
|
|
146
|
+
# endif
|
|
112
147
|
#endif
|
|
113
148
|
#if !defined(SWIFT_CLASS_EXTRA)
|
|
114
|
-
# define SWIFT_CLASS_EXTRA
|
|
149
|
+
# define SWIFT_CLASS_EXTRA
|
|
115
150
|
#endif
|
|
116
151
|
#if !defined(SWIFT_PROTOCOL_EXTRA)
|
|
117
|
-
# define SWIFT_PROTOCOL_EXTRA
|
|
152
|
+
# define SWIFT_PROTOCOL_EXTRA
|
|
118
153
|
#endif
|
|
119
154
|
#if !defined(SWIFT_ENUM_EXTRA)
|
|
120
|
-
# define SWIFT_ENUM_EXTRA
|
|
155
|
+
# define SWIFT_ENUM_EXTRA
|
|
121
156
|
#endif
|
|
122
157
|
#if !defined(SWIFT_CLASS)
|
|
123
158
|
# if __has_attribute(objc_subclassing_restricted)
|
|
@@ -137,28 +172,25 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
137
172
|
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
|
138
173
|
# endif
|
|
139
174
|
#endif
|
|
140
|
-
|
|
141
175
|
#if !defined(SWIFT_PROTOCOL)
|
|
142
176
|
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
|
143
177
|
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
|
144
178
|
#endif
|
|
145
|
-
|
|
146
179
|
#if !defined(SWIFT_EXTENSION)
|
|
147
180
|
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
|
|
148
181
|
#endif
|
|
149
|
-
|
|
150
182
|
#if !defined(OBJC_DESIGNATED_INITIALIZER)
|
|
151
183
|
# if __has_attribute(objc_designated_initializer)
|
|
152
184
|
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
|
153
185
|
# else
|
|
154
|
-
# define OBJC_DESIGNATED_INITIALIZER
|
|
186
|
+
# define OBJC_DESIGNATED_INITIALIZER
|
|
155
187
|
# endif
|
|
156
188
|
#endif
|
|
157
189
|
#if !defined(SWIFT_ENUM_ATTR)
|
|
158
|
-
# if
|
|
190
|
+
# if __has_attribute(enum_extensibility)
|
|
159
191
|
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
|
160
192
|
# else
|
|
161
|
-
# define SWIFT_ENUM_ATTR(_extensibility)
|
|
193
|
+
# define SWIFT_ENUM_ATTR(_extensibility)
|
|
162
194
|
# endif
|
|
163
195
|
#endif
|
|
164
196
|
#if !defined(SWIFT_ENUM)
|
|
@@ -187,14 +219,16 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
187
219
|
#if !defined(SWIFT_DEPRECATED_MSG)
|
|
188
220
|
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
|
|
189
221
|
#endif
|
|
190
|
-
#if
|
|
191
|
-
#
|
|
192
|
-
#
|
|
193
|
-
#
|
|
222
|
+
#if !defined(SWIFT_DEPRECATED_OBJC)
|
|
223
|
+
# if __has_feature(attribute_diagnose_if_objc)
|
|
224
|
+
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
|
|
225
|
+
# else
|
|
226
|
+
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
|
227
|
+
# endif
|
|
194
228
|
#endif
|
|
195
229
|
#if defined(__OBJC__)
|
|
196
230
|
#if !defined(IBSegueAction)
|
|
197
|
-
# define IBSegueAction
|
|
231
|
+
# define IBSegueAction
|
|
198
232
|
#endif
|
|
199
233
|
#endif
|
|
200
234
|
#if !defined(SWIFT_EXTERN)
|
|
@@ -207,36 +241,52 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
207
241
|
#if !defined(SWIFT_CALL)
|
|
208
242
|
# define SWIFT_CALL __attribute__((swiftcall))
|
|
209
243
|
#endif
|
|
244
|
+
#if !defined(SWIFT_INDIRECT_RESULT)
|
|
245
|
+
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
|
|
246
|
+
#endif
|
|
247
|
+
#if !defined(SWIFT_CONTEXT)
|
|
248
|
+
# define SWIFT_CONTEXT __attribute__((swift_context))
|
|
249
|
+
#endif
|
|
250
|
+
#if !defined(SWIFT_ERROR_RESULT)
|
|
251
|
+
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
|
|
252
|
+
#endif
|
|
210
253
|
#if defined(__cplusplus)
|
|
211
|
-
#if !defined(SWIFT_NOEXCEPT)
|
|
212
254
|
# define SWIFT_NOEXCEPT noexcept
|
|
213
|
-
#endif
|
|
214
255
|
#else
|
|
215
|
-
#if !defined(SWIFT_NOEXCEPT)
|
|
216
256
|
# define SWIFT_NOEXCEPT
|
|
217
257
|
#endif
|
|
258
|
+
#if !defined(SWIFT_C_INLINE_THUNK)
|
|
259
|
+
# if __has_attribute(always_inline)
|
|
260
|
+
# if __has_attribute(nodebug)
|
|
261
|
+
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
|
|
262
|
+
# else
|
|
263
|
+
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
|
|
264
|
+
# endif
|
|
265
|
+
# else
|
|
266
|
+
# define SWIFT_C_INLINE_THUNK inline
|
|
267
|
+
# endif
|
|
218
268
|
#endif
|
|
219
|
-
#if defined(
|
|
220
|
-
#if !defined(
|
|
221
|
-
#define
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
269
|
+
#if defined(_WIN32)
|
|
270
|
+
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
|
271
|
+
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
|
|
272
|
+
#endif
|
|
273
|
+
#else
|
|
274
|
+
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
|
275
|
+
# define SWIFT_IMPORT_STDLIB_SYMBOL
|
|
226
276
|
#endif
|
|
227
277
|
#endif
|
|
228
278
|
#if defined(__OBJC__)
|
|
229
|
-
#if __has_feature(
|
|
279
|
+
#if __has_feature(objc_modules)
|
|
230
280
|
#if __has_warning("-Watimport-in-framework-header")
|
|
231
281
|
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
232
282
|
#endif
|
|
283
|
+
@import CoreFoundation;
|
|
284
|
+
@import CoreGraphics;
|
|
233
285
|
@import Foundation;
|
|
234
286
|
@import ObjectiveC;
|
|
235
287
|
@import UIKit;
|
|
236
288
|
#endif
|
|
237
289
|
|
|
238
|
-
#import <Mason/Mason.h>
|
|
239
|
-
|
|
240
290
|
#endif
|
|
241
291
|
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
242
292
|
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
@@ -246,6 +296,7 @@ using UInt = size_t;
|
|
|
246
296
|
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
247
297
|
#pragma clang diagnostic ignored "-Wnullability"
|
|
248
298
|
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
299
|
+
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
|
249
300
|
|
|
250
301
|
#if __has_attribute(external_source_symbol)
|
|
251
302
|
# pragma push_macro("any")
|
|
@@ -290,6 +341,13 @@ typedef SWIFT_ENUM_NAMED(NSInteger, AlignSelf, "AlignSelf", open) {
|
|
|
290
341
|
AlignSelfFlexEnd = 6,
|
|
291
342
|
};
|
|
292
343
|
|
|
344
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, DecorationLine, "DecorationLine", open) {
|
|
345
|
+
DecorationLineNone = 0,
|
|
346
|
+
DecorationLineUnderline = 1,
|
|
347
|
+
DecorationLineOverline = 2,
|
|
348
|
+
DecorationLineLineThrough = 3,
|
|
349
|
+
};
|
|
350
|
+
|
|
293
351
|
typedef SWIFT_ENUM_NAMED(NSInteger, Direction, "Direction", open) {
|
|
294
352
|
DirectionInherit = 0,
|
|
295
353
|
DirectionLTR = 1,
|
|
@@ -300,6 +358,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, Display, "Display", open) {
|
|
|
300
358
|
DisplayNone = 0,
|
|
301
359
|
DisplayFlex = 1,
|
|
302
360
|
DisplayGrid = 2,
|
|
361
|
+
DisplayBlock = 3,
|
|
303
362
|
};
|
|
304
363
|
|
|
305
364
|
typedef SWIFT_ENUM_NAMED(NSInteger, FlexDirection, "FlexDirection", open) {
|
|
@@ -315,6 +374,12 @@ typedef SWIFT_ENUM_NAMED(NSInteger, FlexWrap, "FlexWrap", open) {
|
|
|
315
374
|
FlexWrapWrapReverse = 2,
|
|
316
375
|
};
|
|
317
376
|
|
|
377
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, FontStyle, "FontStyle", open) {
|
|
378
|
+
FontStyleNormal = 0,
|
|
379
|
+
FontStyleItalic = 1,
|
|
380
|
+
FontStyleOblique = 2,
|
|
381
|
+
};
|
|
382
|
+
|
|
318
383
|
typedef SWIFT_ENUM_NAMED(NSInteger, FlexGridAutoFlowWrap, "GridAutoFlow", open) {
|
|
319
384
|
FlexGridAutoFlowWrapRow = 0,
|
|
320
385
|
FlexGridAutoFlowWrapColumn = 1,
|
|
@@ -403,6 +468,18 @@ SWIFT_CLASS_NAMED("LineGridPlacementCompat")
|
|
|
403
468
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
404
469
|
@end
|
|
405
470
|
|
|
471
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonLineHeight, "LineHeight", open) {
|
|
472
|
+
MasonLineHeightNormal = 0,
|
|
473
|
+
MasonLineHeightPre = 1,
|
|
474
|
+
MasonLineHeightPreWrap = 2,
|
|
475
|
+
MasonLineHeightPreLine = 3,
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonBoxSizing, "MasonBoxSizing", open) {
|
|
479
|
+
MasonBoxSizingBorderBox = 0,
|
|
480
|
+
MasonBoxSizingContentBox = 1,
|
|
481
|
+
};
|
|
482
|
+
|
|
406
483
|
enum MasonDimensionCompatType : NSInteger;
|
|
407
484
|
|
|
408
485
|
SWIFT_CLASS_NAMED("MasonDimensionCompat")
|
|
@@ -448,6 +525,30 @@ SWIFT_CLASS_NAMED("MasonDimensionSizeCompat")
|
|
|
448
525
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
449
526
|
@end
|
|
450
527
|
|
|
528
|
+
@class MasonStyle;
|
|
529
|
+
@class MasonNode;
|
|
530
|
+
@class UIView;
|
|
531
|
+
@class NSCMason;
|
|
532
|
+
@class NSCoder;
|
|
533
|
+
@class UIImage;
|
|
534
|
+
|
|
535
|
+
SWIFT_CLASS_NAMED("MasonImg")
|
|
536
|
+
@interface MasonImg : UIImageView
|
|
537
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
538
|
+
- (void)markNodeDirty;
|
|
539
|
+
- (BOOL)isNodeDirty SWIFT_WARN_UNUSED_RESULT;
|
|
540
|
+
- (void)configure:(SWIFT_NOESCAPE void (^ _Nonnull)(MasonNode * _Nonnull))block;
|
|
541
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
542
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
543
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
544
|
+
@property (nonatomic, copy) NSString * _Nullable src;
|
|
545
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
546
|
+
- (void)syncStyle:(NSString * _Nonnull)state;
|
|
547
|
+
- (nonnull instancetype)initWithImage:(UIImage * _Nullable)image SWIFT_UNAVAILABLE;
|
|
548
|
+
- (nonnull instancetype)initWithImage:(UIImage * _Nullable)image highlightedImage:(UIImage * _Nullable)highlightedImage SWIFT_UNAVAILABLE;
|
|
549
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
550
|
+
@end
|
|
551
|
+
|
|
451
552
|
|
|
452
553
|
SWIFT_CLASS_NAMED("MasonLayout")
|
|
453
554
|
@interface MasonLayout : NSObject
|
|
@@ -549,188 +650,57 @@ SWIFT_CLASS_NAMED("MasonLengthPercentageSizeCompat")
|
|
|
549
650
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
550
651
|
@end
|
|
551
652
|
|
|
552
|
-
@class MasonStyle;
|
|
553
653
|
|
|
554
654
|
SWIFT_CLASS_NAMED("MasonNode")
|
|
555
655
|
@interface MasonNode : NSObject
|
|
556
|
-
@property (nonatomic, readonly) void *
|
|
656
|
+
@property (nonatomic, readonly) void * _Nullable nativePtr;
|
|
657
|
+
@property (nonatomic, readonly, strong) MasonLayout * _Nullable layoutCache;
|
|
658
|
+
@property (nonatomic) id _Nullable data;
|
|
557
659
|
@property (nonatomic, strong) MasonStyle * _Nonnull style;
|
|
558
|
-
@property (nonatomic) BOOL includeInLayout;
|
|
559
|
-
@property (nonatomic) BOOL isEnabled;
|
|
560
|
-
@property (nonatomic, strong) id _Nullable data;
|
|
561
660
|
@property (nonatomic, readonly, strong) MasonNode * _Nullable owner;
|
|
562
661
|
@property (nonatomic, readonly, copy) NSArray<MasonNode *> * _Nonnull children;
|
|
563
|
-
- (nonnull instancetype)
|
|
564
|
-
- (nonnull instancetype)initWithStyle:(MasonStyle * _Nonnull)style OBJC_DESIGNATED_INITIALIZER;
|
|
565
|
-
- (nonnull instancetype)initWithStyle:(MasonStyle * _Nonnull)style children:(NSArray<MasonNode *> * _Nonnull)children OBJC_DESIGNATED_INITIALIZER;
|
|
566
|
-
- (void)updateNodeStyle;
|
|
662
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes OBJC_DESIGNATED_INITIALIZER;
|
|
567
663
|
- (MasonLayout * _Nonnull)layout;
|
|
568
664
|
@property (nonatomic, readonly) BOOL isDirty;
|
|
569
665
|
- (void)markDirty;
|
|
570
666
|
- (MasonNode * _Nullable)getRoot SWIFT_WARN_UNUSED_RESULT;
|
|
571
|
-
- (void)rootCompute;
|
|
572
|
-
- (void)rootCompute:(float)width :(float)height;
|
|
573
|
-
- (void)rootComputeMaxContent;
|
|
574
|
-
- (void)rootComputeMinContent;
|
|
575
|
-
- (void)rootComputeWithViewSize;
|
|
576
|
-
- (void)rootComputeWithMaxContent;
|
|
577
667
|
- (void)compute;
|
|
578
668
|
- (void)compute:(float)width :(float)height;
|
|
579
669
|
- (void)computeMaxContent;
|
|
580
670
|
- (void)computeMinContent;
|
|
581
671
|
- (void)computeWithSize:(float)width :(float)height;
|
|
582
672
|
- (void)computeWithViewSize;
|
|
673
|
+
- (void)computeWithViewSizeWithLayout:(BOOL)layout;
|
|
583
674
|
- (void)computeWithMaxContent;
|
|
584
675
|
- (void)computeWithMinContent;
|
|
585
676
|
- (void)attachAndApply;
|
|
586
|
-
- (void)
|
|
677
|
+
- (void)setChildrenWithValue:(NSArray<MasonNode *> * _Nonnull)value;
|
|
587
678
|
- (void)addChildren:(NSArray<MasonNode *> * _Nonnull)children;
|
|
588
|
-
@property (nonatomic, readonly) BOOL isLeaf;
|
|
589
679
|
- (void)configure:(SWIFT_NOESCAPE void (^ _Nonnull)(MasonNode * _Nonnull))block;
|
|
680
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
681
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
590
682
|
@end
|
|
591
683
|
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
@interface MasonReexports : NSObject
|
|
595
|
-
+ (void)node_set_style:(void * _Nonnull)mason :(void * _Nonnull)node :(void * _Nonnull)style;
|
|
596
|
-
+ (void)node_compute:(void * _Nonnull)mason :(void * _Nonnull)node;
|
|
597
|
-
+ (void)node_compute_wh:(void * _Nonnull)mason :(void * _Nonnull)node width:(float)width height:(float)height;
|
|
598
|
-
+ (void)node_compute_max_content:(void * _Nonnull)mason :(void * _Nonnull)node;
|
|
599
|
-
+ (void)node_compute_min_content:(void * _Nonnull)mason :(void * _Nonnull)node;
|
|
600
|
-
+ (BOOL)node_dirty:(void * _Nonnull)mason :(void * _Nonnull)node SWIFT_WARN_UNUSED_RESULT;
|
|
601
|
-
+ (void)node_mark_dirty:(void * _Nonnull)mason :(void * _Nonnull)node;
|
|
602
|
-
+ (int32_t)style_get_display:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
603
|
-
+ (void)style_set_display:(void * _Nonnull)style :(int32_t)display;
|
|
604
|
-
+ (int32_t)style_get_position:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
605
|
-
+ (void)style_set_position:(void * _Nonnull)style :(int32_t)position;
|
|
606
|
-
+ (int32_t)style_get_direction:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
607
|
-
+ (void)style_set_direction:(void * _Nonnull)style :(int32_t)direction;
|
|
608
|
-
+ (int32_t)style_get_flex_direction:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
609
|
-
+ (void)style_set_flex_direction:(void * _Nonnull)style :(int32_t)flex_direction;
|
|
610
|
-
+ (int32_t)style_get_flex_wrap:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
611
|
-
+ (void)style_set_flex_wrap:(void * _Nonnull)style :(int32_t)flex_wrap;
|
|
612
|
-
+ (int32_t)style_get_overflow:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
613
|
-
+ (void)style_set_overflow:(void * _Nonnull)style :(int32_t)overflow;
|
|
614
|
-
+ (int32_t)style_get_align_items:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
615
|
-
+ (void)style_set_align_items:(void * _Nonnull)style :(int32_t)align_items;
|
|
616
|
-
+ (int32_t)style_get_align_self:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
617
|
-
+ (void)style_set_align_self:(void * _Nonnull)style :(int32_t)align_self;
|
|
618
|
-
+ (int32_t)style_get_align_content:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
619
|
-
+ (void)style_set_align_content:(void * _Nonnull)style :(int32_t)align_content;
|
|
620
|
-
+ (int32_t)style_get_justify_items:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
621
|
-
+ (void)style_set_justify_items:(void * _Nonnull)style :(int32_t)align_items;
|
|
622
|
-
+ (int32_t)style_get_justify_self:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
623
|
-
+ (void)style_set_justify_self:(void * _Nonnull)style :(int32_t)align_self;
|
|
624
|
-
+ (int32_t)style_get_justify_content:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
625
|
-
+ (void)style_set_justify_content:(void * _Nonnull)style :(int32_t)justify_content;
|
|
626
|
-
+ (void)style_set_inset:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageAutoType)value_type;
|
|
627
|
-
+ (CMasonLengthPercentageAuto)style_get_inset_left:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
628
|
-
+ (void)style_set_inset_left:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageAutoType)value_type;
|
|
629
|
-
+ (CMasonLengthPercentageAuto)style_get_inset_right:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
630
|
-
+ (void)style_set_inset_right:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageAutoType)value_type;
|
|
631
|
-
+ (CMasonLengthPercentageAuto)style_get_inset_top:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
632
|
-
+ (void)style_set_inset_top:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageAutoType)value_type;
|
|
633
|
-
+ (CMasonLengthPercentageAuto)style_get_inset_bottom:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
634
|
-
+ (void)style_set_inset_bottom:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageAutoType)value_type;
|
|
635
|
-
+ (void)style_set_margin:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageAutoType)value_type;
|
|
636
|
-
+ (CMasonLengthPercentageAuto)style_get_margin_left:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
637
|
-
+ (void)style_set_margin_left:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageAutoType)value_type;
|
|
638
|
-
+ (CMasonLengthPercentageAuto)style_get_margin_right:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
639
|
-
+ (void)style_set_margin_right:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageAutoType)value_type;
|
|
640
|
-
+ (CMasonLengthPercentageAuto)style_get_margin_top:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
641
|
-
+ (void)style_set_margin_top:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageAutoType)value_type;
|
|
642
|
-
+ (CMasonLengthPercentageAuto)style_get_margin_bottom:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
643
|
-
+ (void)style_set_margin_bottom:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageAutoType)value_type;
|
|
644
|
-
+ (void)style_set_padding:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageType)value_type;
|
|
645
|
-
+ (CMasonLengthPercentage)style_get_padding_left:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
646
|
-
+ (void)style_set_padding_left:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageType)value_type;
|
|
647
|
-
+ (CMasonLengthPercentage)style_get_padding_right:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
648
|
-
+ (void)style_set_padding_right:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageType)value_type;
|
|
649
|
-
+ (CMasonLengthPercentage)style_get_padding_top:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
650
|
-
+ (void)style_set_padding_top:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageType)value_type;
|
|
651
|
-
+ (CMasonLengthPercentage)style_get_padding_bottom:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
652
|
-
+ (void)style_set_padding_bottom:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageType)value_type;
|
|
653
|
-
+ (void)style_set_border:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageType)value_type;
|
|
654
|
-
+ (CMasonLengthPercentage)style_get_border_left:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
655
|
-
+ (void)style_set_border_left:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageType)value_type;
|
|
656
|
-
+ (CMasonLengthPercentage)style_get_border_right:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
657
|
-
+ (void)style_set_border_right:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageType)value_type;
|
|
658
|
-
+ (CMasonLengthPercentage)style_get_border_top:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
659
|
-
+ (void)style_set_border_top:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageType)value_type;
|
|
660
|
-
+ (CMasonLengthPercentage)style_get_border_bottom:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
661
|
-
+ (void)style_set_border_bottom:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageType)value_type;
|
|
662
|
-
+ (float)style_get_flex_grow:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
663
|
-
+ (void)style_set_flex_grow:(void * _Nonnull)style :(float)value;
|
|
664
|
-
+ (void)style_set_border_bottom:(void * _Nonnull)style :(float)value;
|
|
665
|
-
+ (float)style_get_flex_shrink:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
666
|
-
+ (void)style_set_flex_shrink:(void * _Nonnull)style :(float)value;
|
|
667
|
-
+ (void)style_set_flex_basis:(void * _Nonnull)style :(float)value :(CMasonDimensionType)value_type;
|
|
668
|
-
+ (CMasonDimension)style_get_flex_basis:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
669
|
-
+ (CMasonDimension)style_get_width:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
670
|
-
+ (void)style_set_width:(void * _Nonnull)style :(float)value :(CMasonDimensionType)value_type;
|
|
671
|
-
+ (CMasonDimension)style_get_height:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
672
|
-
+ (void)style_set_height:(void * _Nonnull)style :(float)value :(CMasonDimensionType)value_type;
|
|
673
|
-
+ (CMasonDimension)style_get_min_width:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
674
|
-
+ (void)style_set_min_width:(void * _Nonnull)style :(float)value :(CMasonDimensionType)value_type;
|
|
675
|
-
+ (CMasonDimension)style_get_min_height:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
676
|
-
+ (void)style_set_min_height:(void * _Nonnull)style :(float)value :(CMasonDimensionType)value_type;
|
|
677
|
-
+ (CMasonDimension)style_get_max_width:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
678
|
-
+ (void)style_set_max_width:(void * _Nonnull)style :(float)value :(CMasonDimensionType)value_type;
|
|
679
|
-
+ (CMasonDimension)style_get_max_height:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
680
|
-
+ (void)style_set_max_height:(void * _Nonnull)style :(float)value :(CMasonDimensionType)value_type;
|
|
681
|
-
+ (CMasonLengthPercentageSize)style_get_gap:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
682
|
-
+ (void)style_set_gap:(void * _Nonnull)style :(float)width_value :(CMasonLengthPercentageType)width_type :(float)height_value :(CMasonLengthPercentageType)height_type;
|
|
683
|
-
+ (CMasonLengthPercentage)style_get_row_gap:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
684
|
-
+ (void)style_set_row_gap:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageType)value_type;
|
|
685
|
-
+ (CMasonLengthPercentage)style_get_column_gap:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
686
|
-
+ (void)style_set_column_gap:(void * _Nonnull)style :(float)value :(CMasonLengthPercentageType)value_type;
|
|
687
|
-
+ (float)style_get_aspect_ratio:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
688
|
-
+ (void)style_set_aspect_ratio:(void * _Nonnull)style :(float)value;
|
|
689
|
-
+ (CMasonNonRepeatedTrackSizingFunctionArray * _Nonnull)style_get_grid_auto_rows:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
690
|
-
+ (void)style_set_grid_auto_rows:(void * _Nonnull)style :(CMasonNonRepeatedTrackSizingFunctionArray * _Nonnull)value;
|
|
691
|
-
+ (CMasonNonRepeatedTrackSizingFunctionArray * _Nonnull)style_get_grid_auto_columns:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
692
|
-
+ (void)style_set_grid_auto_columns:(void * _Nonnull)style :(CMasonNonRepeatedTrackSizingFunctionArray * _Nonnull)value;
|
|
693
|
-
+ (int32_t)style_get_grid_auto_flow:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
694
|
-
+ (void)style_set_grid_auto_flow:(void * _Nonnull)style :(int32_t)value;
|
|
695
|
-
+ (void)style_set_grid_area:(void * _Nonnull)style :(CMasonGridPlacement)row_start :(CMasonGridPlacement)row_end :(CMasonGridPlacement)column_start :(CMasonGridPlacement)column_end;
|
|
696
|
-
+ (void)style_set_grid_column:(void * _Nonnull)style :(CMasonGridPlacement)start :(CMasonGridPlacement)end;
|
|
697
|
-
+ (CMasonGridPlacement)style_get_grid_column_start:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
698
|
-
+ (void)style_set_grid_column_start:(void * _Nonnull)style :(CMasonGridPlacement)value;
|
|
699
|
-
+ (CMasonGridPlacement)style_get_grid_column_end:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
700
|
-
+ (void)style_set_grid_column_end:(void * _Nonnull)style :(CMasonGridPlacement)value;
|
|
701
|
-
+ (void)style_set_grid_row:(void * _Nonnull)style :(CMasonGridPlacement)start :(CMasonGridPlacement)end;
|
|
702
|
-
+ (CMasonGridPlacement)style_get_grid_row_start:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
703
|
-
+ (void)style_set_grid_row_start:(void * _Nonnull)style :(CMasonGridPlacement)value;
|
|
704
|
-
+ (CMasonGridPlacement)style_get_grid_row_end:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
705
|
-
+ (void)style_set_grid_row_end:(void * _Nonnull)style :(CMasonGridPlacement)value;
|
|
706
|
-
+ (CMasonTrackSizingFunctionArray * _Nonnull)style_get_grid_template_rows:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
707
|
-
+ (void)style_set_grid_template_rows:(void * _Nonnull)style :(CMasonTrackSizingFunctionArray * _Nonnull)value;
|
|
708
|
-
+ (CMasonTrackSizingFunctionArray * _Nonnull)style_get_grid_template_columns:(void * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
709
|
-
+ (void)style_set_grid_template_columns:(void * _Nonnull)style :(CMasonTrackSizingFunctionArray * _Nonnull)value;
|
|
710
|
-
+ (void)destroyWithNonRepeatedTrackSizingFunctionArray:(CMasonNonRepeatedTrackSizingFunctionArray * _Nonnull)nonRepeatedTrackSizingFunctionArray;
|
|
711
|
-
+ (void)destroyWithTrackSizingFunctionArray:(CMasonTrackSizingFunctionArray * _Nonnull)trackSizingFunctionArray;
|
|
712
|
-
+ (NSString * _Nonnull)util_parse_non_repeated_track_sizing_function:(CMasonNonRepeatedTrackSizingFunctionArray * _Nonnull)value SWIFT_WARN_UNUSED_RESULT;
|
|
713
|
-
+ (NSString * _Nonnull)util_parse_auto_repeating_track_sizing_function:(CMasonTrackSizingFunctionArray * _Nonnull)value SWIFT_WARN_UNUSED_RESULT;
|
|
714
|
-
+ (CMasonMinMax)util_create_non_repeated_track_sizing_function_with_type_value:(int32_t)track_type :(float)track_value SWIFT_WARN_UNUSED_RESULT;
|
|
715
|
-
+ (void)style_update_with_values:(void * _Nonnull)style :(int32_t)display :(int32_t)position :(int32_t)direction :(int32_t)flexDirection :(int32_t)flexWrap :(int32_t)overflow :(int32_t)alignItems :(int32_t)alignSelf :(int32_t)alignContent :(int32_t)justifyItems :(int32_t)justifySelf :(int32_t)justifyContent :(int32_t)insetLeftType :(float)insetLeftValue :(int32_t)insetRightType :(float)insetRightValue :(int32_t)insetTopType :(float)insetTopValue :(int32_t)insetBottomType :(float)insetBottomValue :(int32_t)marginLeftType :(float)marginLeftValue :(int32_t)marginRightType :(float)marginRightValue :(int32_t)marginTopType :(float)marginTopValue :(int32_t)marginBottomType :(float)marginBottomValue :(int32_t)paddingLeftType :(float)paddingLeftValue :(int32_t)paddingRightType :(float)paddingRightValue :(int32_t)paddingTopType :(float)paddingTopValue :(int32_t)paddingBottomType :(float)paddingBottomValue :(int32_t)borderLeftType :(float)borderLeftValue :(int32_t)borderRightType :(float)borderRightValue :(int32_t)borderTopType :(float)borderTopValue :(int32_t)borderBottomType :(float)borderBottomValue :(float)flexGrow :(float)flexShrink :(int32_t)flexBasisType :(float)flexBasisValue :(int32_t)widthType :(float)widthValue :(int32_t)heightType :(float)heightValue :(int32_t)minWidthType :(float)minWidthValue :(int32_t)minHeightType :(float)minHeightValue :(int32_t)maxWidthType :(float)maxWidthValue :(int32_t)maxHeightType :(float)maxHeightValue :(int32_t)gapRowType :(float)gapRowValue :(int32_t)gapColumnType :(float)gapColumnValue :(float)aspectRatio :(CMasonNonRepeatedTrackSizingFunctionArray * _Nonnull)gridAutoRows :(CMasonNonRepeatedTrackSizingFunctionArray * _Nonnull)gridAutoColumns :(int32_t)gridAutoFlow :(int32_t)gridColumnStartType :(int16_t)gridColumnStartValue :(int32_t)gridColumnEndType :(int16_t)gridColumnEndValue :(int32_t)gridRowStartType :(int16_t)gridRowStartValue :(int32_t)gridRowEndType :(int16_t)gridRowEndValue :(CMasonTrackSizingFunctionArray * _Nonnull)gridTemplateRows gridTemplateColumns:(CMasonTrackSizingFunctionArray * _Nonnull)gridTemplateColumns;
|
|
716
|
-
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
717
|
-
@end
|
|
718
|
-
|
|
684
|
+
@class NSMutableData;
|
|
685
|
+
@class NSData;
|
|
719
686
|
enum Position : NSInteger;
|
|
720
687
|
enum Overflow : NSInteger;
|
|
688
|
+
enum MasonTextAlign : NSInteger;
|
|
721
689
|
@class MinMax;
|
|
722
690
|
@class TrackSizingFunction;
|
|
723
691
|
|
|
724
692
|
SWIFT_CLASS_NAMED("MasonStyle")
|
|
725
693
|
@interface MasonStyle : NSObject
|
|
726
|
-
@property (nonatomic,
|
|
727
|
-
|
|
694
|
+
@property (nonatomic, strong) NSMutableData * _Nonnull valuesCompat;
|
|
695
|
+
@property (nonatomic, copy) NSData * _Nonnull values;
|
|
696
|
+
- (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)node OBJC_DESIGNATED_INITIALIZER;
|
|
728
697
|
@property (nonatomic) enum Display display;
|
|
729
698
|
@property (nonatomic) enum Position position;
|
|
730
699
|
@property (nonatomic) enum Direction direction;
|
|
731
700
|
@property (nonatomic) enum FlexDirection flexDirection;
|
|
732
701
|
@property (nonatomic) enum FlexWrap flexWrap;
|
|
733
|
-
@property (nonatomic) enum Overflow
|
|
702
|
+
@property (nonatomic) enum Overflow overflowX;
|
|
703
|
+
@property (nonatomic) enum Overflow overflowY;
|
|
734
704
|
@property (nonatomic) enum AlignItems alignItems;
|
|
735
705
|
@property (nonatomic) enum AlignSelf alignSelf;
|
|
736
706
|
@property (nonatomic) enum AlignContent alignContent;
|
|
@@ -764,6 +734,9 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
764
734
|
@property (nonatomic) float flexGrow;
|
|
765
735
|
@property (nonatomic) float flexShrink;
|
|
766
736
|
- (void)setFlexBasis:(float)value :(NSInteger)type;
|
|
737
|
+
- (void)setScrollBarWidth:(float)value;
|
|
738
|
+
@property (nonatomic) enum MasonTextAlign textAlign;
|
|
739
|
+
@property (nonatomic) enum MasonBoxSizing boxSizing;
|
|
767
740
|
@property (nonatomic, strong) MasonDimensionSizeCompat * _Nonnull minSizeCompat;
|
|
768
741
|
- (void)setMinSizeWidth:(float)value :(NSInteger)type;
|
|
769
742
|
- (void)setMinSizeHeight:(float)value :(NSInteger)type;
|
|
@@ -794,132 +767,115 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
794
767
|
@property (nonatomic, strong) GridPlacementCompat * _Nonnull gridRowEndCompat;
|
|
795
768
|
@property (nonatomic, copy) NSArray<TrackSizingFunction *> * _Nonnull gridTemplateRows;
|
|
796
769
|
@property (nonatomic, copy) NSArray<TrackSizingFunction *> * _Nonnull gridTemplateColumns;
|
|
770
|
+
- (void)updateNativeStyle;
|
|
797
771
|
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
|
|
798
|
-
@end
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
SWIFT_CLASS_NAMED("MaxSizing")
|
|
802
|
-
@interface MaxSizing : NSObject
|
|
803
|
-
@property (nonatomic, readonly) float value;
|
|
804
|
-
+ (MaxSizing * _Nonnull)Points:(float)points SWIFT_WARN_UNUSED_RESULT;
|
|
805
|
-
+ (MaxSizing * _Nonnull)Percent:(float)percent SWIFT_WARN_UNUSED_RESULT;
|
|
806
|
-
+ (MaxSizing * _Nonnull)FitContent:(float)fit SWIFT_WARN_UNUSED_RESULT;
|
|
807
|
-
+ (MaxSizing * _Nonnull)FitContentPercent:(float)fit SWIFT_WARN_UNUSED_RESULT;
|
|
808
|
-
+ (MaxSizing * _Nonnull)Flex:(float)flex SWIFT_WARN_UNUSED_RESULT;
|
|
809
|
-
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MaxSizing * _Nonnull Auto;)
|
|
810
|
-
+ (MaxSizing * _Nonnull)Auto SWIFT_WARN_UNUSED_RESULT;
|
|
811
|
-
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MaxSizing * _Nonnull MinContent;)
|
|
812
|
-
+ (MaxSizing * _Nonnull)MinContent SWIFT_WARN_UNUSED_RESULT;
|
|
813
|
-
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MaxSizing * _Nonnull MaxContent;)
|
|
814
|
-
+ (MaxSizing * _Nonnull)MaxContent SWIFT_WARN_UNUSED_RESULT;
|
|
815
|
-
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
816
|
-
@property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
|
|
817
|
-
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
818
|
-
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
819
|
-
@end
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
SWIFT_CLASS_NAMED("MeasureOutput")
|
|
823
|
-
@interface MeasureOutput : NSObject
|
|
824
|
-
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
825
|
-
@end
|
|
826
|
-
|
|
827
|
-
@class MinSizing;
|
|
828
|
-
|
|
829
|
-
SWIFT_CLASS_NAMED("MinMax")
|
|
830
|
-
@interface MinMax : NSObject
|
|
831
|
-
- (nonnull instancetype)init:(MinSizing * _Nonnull)min :(MaxSizing * _Nonnull)max OBJC_DESIGNATED_INITIALIZER;
|
|
832
|
-
+ (MinMax * _Nonnull)PointsWithPoints:(float)points SWIFT_WARN_UNUSED_RESULT;
|
|
833
|
-
+ (MinMax * _Nonnull)PercentWithPercent:(float)percent SWIFT_WARN_UNUSED_RESULT;
|
|
834
|
-
+ (MinMax * _Nonnull)FlexWithFlex:(float)flex SWIFT_WARN_UNUSED_RESULT;
|
|
835
|
-
+ (MinMax * _Nonnull)FitContentWithFit:(float)fit SWIFT_WARN_UNUSED_RESULT;
|
|
836
|
-
+ (MinMax * _Nonnull)FitContentPercentWithFit:(float)fit SWIFT_WARN_UNUSED_RESULT;
|
|
837
|
-
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinMax * _Nonnull Auto;)
|
|
838
|
-
+ (MinMax * _Nonnull)Auto SWIFT_WARN_UNUSED_RESULT;
|
|
839
|
-
+ (MinMax * _Nullable)fromTypeValue:(NSInteger)minType :(float)minValue :(NSInteger)maxType :(float)maxValue SWIFT_WARN_UNUSED_RESULT;
|
|
840
|
-
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
841
|
-
@property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
|
|
842
772
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
843
773
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
844
774
|
@end
|
|
845
775
|
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
@
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
@property (nonatomic, readonly, copy)
|
|
859
|
-
@property (nonatomic, readonly
|
|
860
|
-
|
|
861
|
-
|
|
776
|
+
enum MasonTextType : NSInteger;
|
|
777
|
+
@class NSCFontFace;
|
|
778
|
+
@class NSMutableAttributedString;
|
|
779
|
+
enum TextTransform : NSInteger;
|
|
780
|
+
@class UIColor;
|
|
781
|
+
enum WhiteSpace : NSInteger;
|
|
782
|
+
enum TextWrap : NSInteger;
|
|
783
|
+
|
|
784
|
+
SWIFT_CLASS_NAMED("MasonText")
|
|
785
|
+
@interface MasonText : UIView
|
|
786
|
+
@property (nonatomic, readonly, strong) MasonText * _Nullable owner;
|
|
787
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
788
|
+
@property (nonatomic, readonly, copy) NSData * _Nonnull textValues;
|
|
789
|
+
@property (nonatomic, readonly) enum MasonTextType type;
|
|
790
|
+
@property (nonatomic, readonly, strong) NSCFontFace * _Nonnull font;
|
|
791
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason type:(enum MasonTextType)textType OBJC_DESIGNATED_INITIALIZER;
|
|
792
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason OBJC_DESIGNATED_INITIALIZER;
|
|
793
|
+
- (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)masonNode OBJC_DESIGNATED_INITIALIZER;
|
|
794
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
795
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
796
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
797
|
+
- (void)markNodeDirty;
|
|
798
|
+
- (BOOL)isNodeDirty SWIFT_WARN_UNUSED_RESULT;
|
|
799
|
+
- (void)configure:(SWIFT_NOESCAPE void (^ _Nonnull)(MasonNode * _Nonnull))block;
|
|
800
|
+
- (void)updateText:(NSString * _Nullable)value;
|
|
801
|
+
@property (nonatomic, strong) NSMutableAttributedString * _Nonnull txtToRender;
|
|
802
|
+
- (void)invalidateStyle:(int64_t)state;
|
|
803
|
+
@property (nonatomic) enum TextTransform textTransform;
|
|
804
|
+
@property (nonatomic) CGFloat fontSize;
|
|
805
|
+
@property (nonatomic) enum FontStyle fontStyle;
|
|
806
|
+
- (void)setFontStyle:(enum FontStyle)style slant:(int32_t)slant;
|
|
807
|
+
@property (nonatomic, copy) NSString * _Nonnull fontWeight;
|
|
808
|
+
@property (nonatomic) uint32_t color;
|
|
809
|
+
@property (nonatomic) uint32_t backgroundColorValue;
|
|
810
|
+
- (void)setColorWithUi:(UIColor * _Nonnull)color;
|
|
811
|
+
- (void)setBackgroundColorWithUi:(UIColor * _Nonnull)color;
|
|
812
|
+
- (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
|
|
813
|
+
@property (nonatomic) uint32_t decorationColor;
|
|
814
|
+
@property (nonatomic) enum DecorationLine decorationLine;
|
|
815
|
+
@property (nonatomic) enum WhiteSpace whiteSpace;
|
|
816
|
+
@property (nonatomic) enum TextWrap textWrap;
|
|
817
|
+
- (void)drawRect:(CGRect)rect;
|
|
818
|
+
- (void)addView:(UIView * _Nonnull)view :(NSInteger)index;
|
|
819
|
+
- (void)removeView:(UIView * _Nonnull)view;
|
|
820
|
+
@property (nonatomic, copy) NSString * _Nullable text;
|
|
821
|
+
- (void)syncStyle:(NSString * _Nonnull)state :(NSString * _Nonnull)textState;
|
|
822
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
862
823
|
@end
|
|
863
824
|
|
|
864
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
825
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextAlign, "MasonTextAlign", open) {
|
|
826
|
+
MasonTextAlignAuto = 0,
|
|
827
|
+
MasonTextAlignLeft = 1,
|
|
828
|
+
MasonTextAlignRight = 2,
|
|
829
|
+
MasonTextAlignCenter = 3,
|
|
830
|
+
MasonTextAlignJustify = 4,
|
|
831
|
+
MasonTextAlignStart = 5,
|
|
832
|
+
MasonTextAlignEnd = 6,
|
|
868
833
|
};
|
|
869
834
|
|
|
870
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
871
|
-
|
|
872
|
-
|
|
835
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextType, "MasonTextType", open) {
|
|
836
|
+
MasonTextTypeNone = 0,
|
|
837
|
+
MasonTextTypeP = 1,
|
|
838
|
+
MasonTextTypeSpan = 2,
|
|
839
|
+
MasonTextTypeCode = 3,
|
|
840
|
+
MasonTextTypeH1 = 4,
|
|
841
|
+
MasonTextTypeH2 = 5,
|
|
842
|
+
MasonTextTypeH3 = 6,
|
|
843
|
+
MasonTextTypeH4 = 7,
|
|
844
|
+
MasonTextTypeH5 = 8,
|
|
845
|
+
MasonTextTypeH6 = 9,
|
|
846
|
+
MasonTextTypeLi = 10,
|
|
847
|
+
MasonTextTypeBlockquote = 11,
|
|
848
|
+
MasonTextTypeB = 12,
|
|
873
849
|
};
|
|
874
850
|
|
|
875
851
|
|
|
876
|
-
SWIFT_CLASS_NAMED("
|
|
877
|
-
@interface
|
|
878
|
-
@property (nonatomic, readonly)
|
|
879
|
-
- (
|
|
880
|
-
- (
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
+ (
|
|
885
|
-
+ (
|
|
886
|
-
|
|
887
|
-
+ (BOOL)alwaysEnable SWIFT_WARN_UNUSED_RESULT;
|
|
888
|
-
+ (void)setAlwaysEnable:(BOOL)value;
|
|
889
|
-
@end
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
SWIFT_CLASS_NAMED("TrackSizingFunction")
|
|
893
|
-
@interface TrackSizingFunction : NSObject
|
|
894
|
-
@property (nonatomic, readonly) BOOL isRepeating;
|
|
895
|
-
@property (nonatomic, readonly) id _Nullable value;
|
|
896
|
-
+ (TrackSizingFunction * _Nonnull)Single:(MinMax * _Nonnull)value SWIFT_WARN_UNUSED_RESULT;
|
|
897
|
-
+ (TrackSizingFunction * _Nonnull)AutoRepeat:(GridTrackRepetition * _Nonnull)gridTrackRepetition :(NSArray<MinMax *> * _Nonnull)value SWIFT_WARN_UNUSED_RESULT;
|
|
898
|
-
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
899
|
-
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
900
|
-
@end
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
@interface UIView (SWIFT_EXTENSION(Mason))
|
|
904
|
-
+ (UIView * _Nonnull)createGridView SWIFT_WARN_UNUSED_RESULT;
|
|
905
|
-
+ (UIView * _Nonnull)createFlexView SWIFT_WARN_UNUSED_RESULT;
|
|
906
|
-
@property (nonatomic, readonly, strong) MasonNode * _Nonnull mason;
|
|
907
|
-
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSInteger masonPtr;)
|
|
908
|
-
+ (NSInteger)masonPtr SWIFT_WARN_UNUSED_RESULT;
|
|
909
|
-
@property (nonatomic, readonly) NSInteger masonNodePtr;
|
|
910
|
-
@property (nonatomic, readonly) NSInteger masonStylePtr;
|
|
911
|
-
@property (nonatomic, readonly) BOOL isMasonEnabled;
|
|
852
|
+
SWIFT_CLASS_NAMED("MasonUIView")
|
|
853
|
+
@interface MasonUIView : UIView
|
|
854
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
855
|
+
- (void)markNodeDirty;
|
|
856
|
+
- (BOOL)isNodeDirty SWIFT_WARN_UNUSED_RESULT;
|
|
857
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
858
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
859
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
860
|
+
+ (MasonUIView * _Nonnull)createGridView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
861
|
+
+ (MasonUIView * _Nonnull)createFlexView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
862
|
+
+ (MasonUIView * _Nonnull)createBlockView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
912
863
|
@property (nonatomic, strong) MasonStyle * _Nonnull style;
|
|
864
|
+
- (void)requestLayout;
|
|
865
|
+
- (void)addView:(UIView * _Nonnull)view;
|
|
866
|
+
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
867
|
+
- (void)syncStyle:(NSString * _Nonnull)state;
|
|
913
868
|
- (void)addSubviews:(NSArray<UIView *> * _Nonnull)views;
|
|
914
869
|
- (void)addSubviews:(NSArray<UIView *> * _Nonnull)views at:(NSInteger)index;
|
|
915
870
|
- (void)configure:(SWIFT_NOESCAPE void (^ _Nonnull)(MasonNode * _Nonnull))block;
|
|
916
871
|
@property (nonatomic) BOOL inBatch;
|
|
917
872
|
@property (nonatomic) enum Display display;
|
|
918
|
-
@property (nonatomic) enum Position
|
|
873
|
+
@property (nonatomic) enum Position _position;
|
|
919
874
|
@property (nonatomic) enum Direction direction;
|
|
920
875
|
@property (nonatomic) enum FlexDirection flexDirection;
|
|
921
876
|
@property (nonatomic) enum FlexWrap flexWrap;
|
|
922
|
-
@property (nonatomic) enum Overflow
|
|
877
|
+
@property (nonatomic) enum Overflow overflowX;
|
|
878
|
+
@property (nonatomic) enum Overflow overflowY;
|
|
923
879
|
@property (nonatomic) enum AlignItems alignItems;
|
|
924
880
|
@property (nonatomic) enum AlignSelf alignSelf;
|
|
925
881
|
@property (nonatomic) enum AlignContent alignContent;
|
|
@@ -928,6 +884,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSInteger masonPtr;)
|
|
|
928
884
|
@property (nonatomic) enum JustifyContent justifyContent;
|
|
929
885
|
@property (nonatomic) float flexGrow;
|
|
930
886
|
@property (nonatomic) float flexShrink;
|
|
887
|
+
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull scrollBarWidthCompat;
|
|
931
888
|
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull flexBasisCompat;
|
|
932
889
|
@property (nonatomic) float aspectRatio;
|
|
933
890
|
@property (nonatomic, copy) NSArray<MinMax *> * _Nonnull gridAutoRows;
|
|
@@ -1006,14 +963,239 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) NSInteger masonPtr;)
|
|
|
1006
963
|
- (void)setColumnGap:(float)column :(NSInteger)type;
|
|
1007
964
|
- (MasonLengthPercentageCompat * _Nonnull)getRowGap SWIFT_WARN_UNUSED_RESULT;
|
|
1008
965
|
- (MasonLengthPercentageCompat * _Nonnull)getColumnGap SWIFT_WARN_UNUSED_RESULT;
|
|
966
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
1009
967
|
@end
|
|
1010
968
|
|
|
1011
|
-
|
|
1012
|
-
|
|
969
|
+
|
|
970
|
+
SWIFT_CLASS_NAMED("MaxSizing")
|
|
971
|
+
@interface MaxSizing : NSObject
|
|
972
|
+
@property (nonatomic, readonly) float value;
|
|
973
|
+
+ (MaxSizing * _Nonnull)Points:(float)points SWIFT_WARN_UNUSED_RESULT;
|
|
974
|
+
+ (MaxSizing * _Nonnull)Percent:(float)percent SWIFT_WARN_UNUSED_RESULT;
|
|
975
|
+
+ (MaxSizing * _Nonnull)FitContent:(float)fit SWIFT_WARN_UNUSED_RESULT;
|
|
976
|
+
+ (MaxSizing * _Nonnull)FitContentPercent:(float)fit SWIFT_WARN_UNUSED_RESULT;
|
|
977
|
+
+ (MaxSizing * _Nonnull)Fraction:(float)flex SWIFT_WARN_UNUSED_RESULT;
|
|
978
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MaxSizing * _Nonnull Auto;)
|
|
979
|
+
+ (MaxSizing * _Nonnull)Auto SWIFT_WARN_UNUSED_RESULT;
|
|
980
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MaxSizing * _Nonnull MinContent;)
|
|
981
|
+
+ (MaxSizing * _Nonnull)MinContent SWIFT_WARN_UNUSED_RESULT;
|
|
982
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MaxSizing * _Nonnull MaxContent;)
|
|
983
|
+
+ (MaxSizing * _Nonnull)MaxContent SWIFT_WARN_UNUSED_RESULT;
|
|
984
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
985
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
|
|
986
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
987
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
988
|
+
@end
|
|
989
|
+
|
|
990
|
+
|
|
991
|
+
SWIFT_CLASS_NAMED("MeasureOutput")
|
|
992
|
+
@interface MeasureOutput : NSObject
|
|
993
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
994
|
+
@end
|
|
995
|
+
|
|
996
|
+
@class MinSizing;
|
|
997
|
+
|
|
998
|
+
SWIFT_CLASS_NAMED("MinMax")
|
|
999
|
+
@interface MinMax : NSObject
|
|
1000
|
+
- (nonnull instancetype)init:(MinSizing * _Nonnull)min :(MaxSizing * _Nonnull)max OBJC_DESIGNATED_INITIALIZER;
|
|
1001
|
+
+ (MinMax * _Nonnull)PointsWithPoints:(float)points SWIFT_WARN_UNUSED_RESULT;
|
|
1002
|
+
+ (MinMax * _Nonnull)PercentWithPercent:(float)percent SWIFT_WARN_UNUSED_RESULT;
|
|
1003
|
+
+ (MinMax * _Nonnull)FlexWithFlex:(float)flex SWIFT_WARN_UNUSED_RESULT;
|
|
1004
|
+
+ (MinMax * _Nonnull)FitContentWithFit:(float)fit SWIFT_WARN_UNUSED_RESULT;
|
|
1005
|
+
+ (MinMax * _Nonnull)FitContentPercentWithFit:(float)fit SWIFT_WARN_UNUSED_RESULT;
|
|
1006
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinMax * _Nonnull Auto;)
|
|
1007
|
+
+ (MinMax * _Nonnull)Auto SWIFT_WARN_UNUSED_RESULT;
|
|
1008
|
+
+ (MinMax * _Nullable)fromTypeValue:(NSInteger)minType :(float)minValue :(NSInteger)maxType :(float)maxValue SWIFT_WARN_UNUSED_RESULT;
|
|
1009
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
1010
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
|
|
1011
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1012
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1013
|
+
@end
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
SWIFT_CLASS_NAMED("MinSizing")
|
|
1017
|
+
@interface MinSizing : NSObject
|
|
1018
|
+
@property (nonatomic, readonly) float value;
|
|
1019
|
+
+ (MinSizing * _Nonnull)Points:(float)points SWIFT_WARN_UNUSED_RESULT;
|
|
1020
|
+
+ (MinSizing * _Nonnull)Percent:(float)percent SWIFT_WARN_UNUSED_RESULT;
|
|
1021
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing * _Nonnull Auto;)
|
|
1022
|
+
+ (MinSizing * _Nonnull)Auto SWIFT_WARN_UNUSED_RESULT;
|
|
1023
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing * _Nonnull MinContent;)
|
|
1024
|
+
+ (MinSizing * _Nonnull)MinContent SWIFT_WARN_UNUSED_RESULT;
|
|
1025
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing * _Nonnull MaxContent;)
|
|
1026
|
+
+ (MinSizing * _Nonnull)MaxContent SWIFT_WARN_UNUSED_RESULT;
|
|
1027
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
1028
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
|
|
1029
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1030
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1031
|
+
@end
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
SWIFT_CLASS_NAMED("NSCFontDescriptors")
|
|
1035
|
+
@interface NSCFontDescriptors : NSObject
|
|
1036
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
|
|
1037
|
+
- (void)update:(NSString * _Nonnull)value;
|
|
1038
|
+
- (void)setFontWeight:(NSString * _Nonnull)value;
|
|
1039
|
+
- (void)setFontStyle:(NSString * _Nonnull)value;
|
|
1040
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1041
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1042
|
+
@end
|
|
1043
|
+
|
|
1044
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontDisplay, "NSCFontDisplay", open) {
|
|
1045
|
+
NSCFontDisplayAuto = 0,
|
|
1046
|
+
NSCFontDisplayBlock = 1,
|
|
1047
|
+
NSCFontDisplayFallback = 2,
|
|
1048
|
+
NSCFontDisplayOptional = 3,
|
|
1049
|
+
NSCFontDisplaySwap = 4,
|
|
1050
|
+
};
|
|
1051
|
+
|
|
1052
|
+
enum NSCFontFaceStatus : NSInteger;
|
|
1053
|
+
enum NSCFontWeight : NSInteger;
|
|
1054
|
+
|
|
1055
|
+
SWIFT_CLASS_NAMED("NSCFontFace")
|
|
1056
|
+
@interface NSCFontFace : NSObject
|
|
1057
|
+
@property (nonatomic, readonly) CGFontRef _Nullable font;
|
|
1058
|
+
@property (nonatomic, readonly, strong) NSData * _Nullable fontData;
|
|
1059
|
+
- (void)updateDescriptorWithValue:(NSString * _Nonnull)value;
|
|
1060
|
+
+ (NSCFontFace * _Nullable)loadFromStyleWithStyle:(NSString * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
1061
|
+
+ (void)importFromRemoteWithUrl:(NSString * _Nonnull)url load:(BOOL)load callback:(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nullable, NSString * _Nullable))callback;
|
|
1062
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
|
|
1063
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family source:(NSString * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
|
|
1064
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family data:(NSData * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
|
|
1065
|
+
- (nonnull instancetype)init:(NSString * _Nonnull)family :(NSString * _Nullable)source :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
|
|
1066
|
+
- (nonnull instancetype)init:(NSString * _Nonnull)family data:(NSData * _Nullable)data :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
|
|
1067
|
+
@property (nonatomic) enum NSCFontFaceStatus status;
|
|
1068
|
+
@property (nonatomic) enum NSCFontDisplay display;
|
|
1069
|
+
- (void)setFontDisplayWithValue:(NSString * _Nonnull)value;
|
|
1070
|
+
@property (nonatomic, copy) NSString * _Nonnull style;
|
|
1071
|
+
- (void)setFontStyleWithValue:(NSString * _Nonnull)value angle:(NSString * _Nullable)angle;
|
|
1072
|
+
@property (nonatomic) enum NSCFontWeight weight;
|
|
1073
|
+
- (void)setFontWeightWithValue:(NSString * _Nonnull)value;
|
|
1074
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull family;
|
|
1075
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull ascentOverride;
|
|
1076
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull descentOverride;
|
|
1077
|
+
- (void)load:(void (^ _Nonnull)(NSString * _Nullable))callback;
|
|
1078
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1079
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1080
|
+
@end
|
|
1081
|
+
|
|
1082
|
+
enum NSCFontFaceSetStatus : NSInteger;
|
|
1083
|
+
@class NSEnumerator;
|
|
1084
|
+
|
|
1085
|
+
SWIFT_CLASS_NAMED("NSCFontFaceSet")
|
|
1086
|
+
@interface NSCFontFaceSet : NSObject
|
|
1087
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSCFontFaceSet * _Nonnull instance;)
|
|
1088
|
+
+ (NSCFontFaceSet * _Nonnull)instance SWIFT_WARN_UNUSED_RESULT;
|
|
1089
|
+
@property (nonatomic) enum NSCFontFaceSetStatus status;
|
|
1090
|
+
@property (nonatomic, copy) void (^ _Nullable onStatus)(enum NSCFontFaceSetStatus);
|
|
1091
|
+
- (NSEnumerator * _Nonnull)iter SWIFT_WARN_UNUSED_RESULT;
|
|
1092
|
+
- (NSArray * _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
|
|
1093
|
+
- (void)add:(NSCFontFace * _Nonnull)font;
|
|
1094
|
+
- (void)clear;
|
|
1095
|
+
- (void)delete:(NSCFontFace * _Nonnull)font;
|
|
1096
|
+
- (BOOL)check:(NSString * _Nonnull)font :(NSString * _Nullable)text SWIFT_WARN_UNUSED_RESULT;
|
|
1097
|
+
- (void)load:(NSString * _Nonnull)font :(NSString * _Nullable)text :(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nonnull, NSString * _Nullable))callback;
|
|
1098
|
+
@property (nonatomic, readonly) NSInteger size;
|
|
1099
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1100
|
+
@end
|
|
1101
|
+
|
|
1102
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceSetStatus, "NSCFontFaceSetStatus", open) {
|
|
1103
|
+
NSCFontFaceSetStatusLoading = 0,
|
|
1104
|
+
NSCFontFaceSetStatusLoaded = 1,
|
|
1105
|
+
};
|
|
1106
|
+
|
|
1107
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceStatus, "NSCFontFaceStatus", open) {
|
|
1108
|
+
NSCFontFaceStatusUnloaded = 0,
|
|
1109
|
+
NSCFontFaceStatusLoading = 1,
|
|
1110
|
+
NSCFontFaceStatusLoaded = 2,
|
|
1111
|
+
NSCFontFaceStatusError = 3,
|
|
1112
|
+
};
|
|
1113
|
+
|
|
1114
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontWeight, "NSCFontWeight", open) {
|
|
1115
|
+
NSCFontWeightThin = 0,
|
|
1116
|
+
NSCFontWeightExtraLight = 1,
|
|
1117
|
+
NSCFontWeightLight = 2,
|
|
1118
|
+
NSCFontWeightNormal = 3,
|
|
1119
|
+
NSCFontWeightMedium = 4,
|
|
1120
|
+
NSCFontWeightSemiBold = 5,
|
|
1121
|
+
NSCFontWeightBold = 6,
|
|
1122
|
+
NSCFontWeightExtraBold = 7,
|
|
1123
|
+
NSCFontWeightBlack = 8,
|
|
1124
|
+
};
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
SWIFT_CLASS_NAMED("NSCMason")
|
|
1128
|
+
@interface NSCMason : NSObject
|
|
1129
|
+
@property (nonatomic, readonly) void * _Nullable nativePtr;
|
|
1130
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull shared;)
|
|
1131
|
+
+ (NSCMason * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
|
|
1132
|
+
+ (void)setShared:(NSCMason * _Nonnull)value;
|
|
1133
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1134
|
+
- (MasonNode * _Nonnull)nodeForView:(UIView * _Nonnull)view :(BOOL)isLeaf SWIFT_WARN_UNUSED_RESULT;
|
|
1135
|
+
- (void)clear;
|
|
1136
|
+
- (MasonUIView * _Nonnull)createView SWIFT_WARN_UNUSED_RESULT;
|
|
1137
|
+
- (MasonText * _Nonnull)createTextView SWIFT_WARN_UNUSED_RESULT;
|
|
1138
|
+
- (MasonText * _Nonnull)createTextViewWithType:(enum MasonTextType)type SWIFT_WARN_UNUSED_RESULT;
|
|
1139
|
+
- (MasonImg * _Nonnull)createImageView SWIFT_WARN_UNUSED_RESULT;
|
|
1140
|
+
- (MasonNode * _Nonnull)createNode SWIFT_WARN_UNUSED_RESULT;
|
|
1141
|
+
- (void)printTree:(MasonNode * _Nonnull)node;
|
|
1142
|
+
- (MasonNode * _Nonnull)createTextNode SWIFT_WARN_UNUSED_RESULT;
|
|
1143
|
+
@end
|
|
1144
|
+
|
|
1145
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, Overflow, "Overflow", open) {
|
|
1146
|
+
OverflowUnset = 0,
|
|
1147
|
+
OverflowVisible = 1,
|
|
1148
|
+
OverflowHidden = 2,
|
|
1149
|
+
OverflowScroll = 3,
|
|
1150
|
+
};
|
|
1151
|
+
|
|
1152
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, Position, "Position", open) {
|
|
1153
|
+
PositionRelative = 0,
|
|
1154
|
+
PositionAbsolute = 1,
|
|
1155
|
+
};
|
|
1156
|
+
|
|
1157
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, TextTransform, "TextTransform", open) {
|
|
1158
|
+
TextTransformNone = 0,
|
|
1159
|
+
TextTransformCapitalize = 1,
|
|
1160
|
+
TextTransformUppercase = 2,
|
|
1161
|
+
TextTransformLowercase = 3,
|
|
1162
|
+
TextTransformFullWidth = 4,
|
|
1163
|
+
TextTransformFullSizeKana = 5,
|
|
1164
|
+
TextTransformMathAuto = 6,
|
|
1165
|
+
};
|
|
1166
|
+
|
|
1167
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, TextWrap, "TextWrap", open) {
|
|
1168
|
+
TextWrapWrap = 0,
|
|
1169
|
+
TextWrapNoWrap = 1,
|
|
1170
|
+
TextWrapBalance = 2,
|
|
1171
|
+
};
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
SWIFT_CLASS_NAMED("TrackSizingFunction")
|
|
1175
|
+
@interface TrackSizingFunction : NSObject
|
|
1176
|
+
@property (nonatomic, readonly) BOOL isRepeating;
|
|
1177
|
+
@property (nonatomic, readonly) id _Nullable value;
|
|
1178
|
+
+ (TrackSizingFunction * _Nonnull)Single:(MinMax * _Nonnull)value SWIFT_WARN_UNUSED_RESULT;
|
|
1179
|
+
+ (TrackSizingFunction * _Nonnull)AutoRepeat:(GridTrackRepetition * _Nonnull)gridTrackRepetition :(NSArray<MinMax *> * _Nonnull)value SWIFT_WARN_UNUSED_RESULT;
|
|
1180
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1181
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1182
|
+
@end
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, WhiteSpace, "WhiteSpace", open) {
|
|
1186
|
+
WhiteSpaceNormal = 0,
|
|
1187
|
+
WhiteSpacePre = 1,
|
|
1188
|
+
WhiteSpacePreWrap = 2,
|
|
1189
|
+
WhiteSpacePreLine = 3,
|
|
1190
|
+
WhiteSpaceNowrap = 4,
|
|
1191
|
+
};
|
|
1192
|
+
|
|
1013
1193
|
#endif
|
|
1014
1194
|
#if __has_attribute(external_source_symbol)
|
|
1015
1195
|
# pragma clang attribute pop
|
|
1016
1196
|
#endif
|
|
1197
|
+
#if defined(__cplusplus)
|
|
1198
|
+
#endif
|
|
1017
1199
|
#pragma clang diagnostic pop
|
|
1018
1200
|
#endif
|
|
1019
1201
|
|