@triniwiz/nativescript-masonkit 1.0.0-beta.7 → 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/DOCS.md +930 -0
- package/br/index.android.d.ts +10 -0
- package/br/index.android.js +31 -0
- package/br/index.android.js.map +1 -0
- package/br/index.ios.d.ts +11 -0
- package/br/index.ios.js +30 -0
- package/br/index.ios.js.map +1 -0
- package/button/index.android.d.ts +4 -2
- package/button/index.android.js +9 -5
- package/button/index.android.js.map +1 -1
- package/button/index.ios.d.ts +4 -5
- package/button/index.ios.js +17 -71
- package/button/index.ios.js.map +1 -1
- package/common.d.ts +207 -73
- package/common.js +1236 -1392
- package/common.js.map +1 -1
- package/img/index.android.d.ts +5 -4
- package/img/index.android.js +18 -6
- package/img/index.android.js.map +1 -1
- package/img/index.ios.d.ts +3 -2
- package/img/index.ios.js +27 -21
- package/img/index.ios.js.map +1 -1
- package/index.android.d.ts +7 -1
- package/index.android.js +7 -1
- package/index.android.js.map +1 -1
- package/index.d.ts +129 -2
- package/index.ios.d.ts +7 -1
- package/index.ios.js +7 -1
- package/index.ios.js.map +1 -1
- package/input/common.d.ts +20 -0
- package/input/common.js +65 -0
- package/input/common.js.map +1 -0
- package/input/index.android.d.ts +20 -0
- package/input/index.android.js +118 -0
- package/input/index.android.js.map +1 -0
- package/input/index.ios.d.ts +23 -0
- package/input/index.ios.js +171 -0
- package/input/index.ios.js.map +1 -0
- package/li/index.android.d.ts +12 -0
- package/li/index.android.js +57 -0
- package/li/index.android.js.map +1 -0
- package/li/index.ios.d.ts +14 -0
- package/li/index.ios.js +128 -0
- package/li/index.ios.js.map +1 -0
- package/list/common.d.ts +33 -0
- package/list/common.js +157 -0
- package/list/common.js.map +1 -0
- package/list/index.android.d.ts +28 -0
- package/list/index.android.js +155 -0
- package/list/index.android.js.map +1 -0
- package/list/index.ios.d.ts +42 -0
- package/list/index.ios.js +321 -0
- package/list/index.ios.js.map +1 -0
- package/package.json +8 -2
- 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 +572 -176
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +181 -50
- 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 +74785 -40729
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +1429 -346
- 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 +1429 -346
- 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 -4294
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +1144 -352
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +181 -50
- 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 +72517 -38461
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1674 -591
- 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 +1674 -591
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +72517 -38461
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1674 -591
- 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 +1674 -591
- 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 +31 -31
- 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 -4291
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +7982 -4167
- package/properties.d.ts +83 -0
- package/properties.js +1345 -0
- package/properties.js.map +1 -0
- package/pseudo.d.ts +9 -0
- package/pseudo.js +58 -0
- package/pseudo.js.map +1 -0
- package/scroll/index.android.d.ts +3 -2
- package/scroll/index.android.js +20 -5
- package/scroll/index.android.js.map +1 -1
- package/scroll/index.ios.d.ts +7 -4
- package/scroll/index.ios.js +88 -26
- package/scroll/index.ios.js.map +1 -1
- package/style.d.ts +231 -12
- package/style.js +1982 -811
- package/style.js.map +1 -1
- package/symbols.d.ts +12 -0
- package/symbols.js +13 -0
- package/symbols.js.map +1 -0
- package/text/index.android.d.ts +11 -5
- package/text/index.android.js +86 -104
- package/text/index.android.js.map +1 -1
- package/text/index.ios.d.ts +14 -11
- package/text/index.ios.js +111 -181
- package/text/index.ios.js.map +1 -1
- package/text-node/index.android.d.ts +13 -0
- package/text-node/index.android.js +35 -0
- package/text-node/index.android.js.map +1 -0
- package/text-node/index.ios.d.ts +13 -0
- package/text-node/index.ios.js +35 -0
- package/text-node/index.ios.js.map +1 -0
- package/textarea/common.d.ts +8 -0
- package/textarea/common.js +28 -0
- package/textarea/common.js.map +1 -0
- package/textarea/index.android.d.ts +15 -0
- package/textarea/index.android.js +71 -0
- package/textarea/index.android.js.map +1 -0
- package/textarea/index.ios.d.ts +18 -0
- package/textarea/index.ios.js +134 -0
- package/textarea/index.ios.js.map +1 -0
- package/tree/index.android.d.ts +15 -2
- package/tree/index.android.js +83 -8
- package/tree/index.android.js.map +1 -1
- package/tree/index.ios.d.ts +24 -1
- package/tree/index.ios.js +72 -8
- package/tree/index.ios.js.map +1 -1
- package/utils/index.android.d.ts +13 -1
- package/utils/index.android.js +1 -1
- package/utils/index.android.js.map +1 -1
- package/utils/index.ios.d.ts +13 -1
- package/utils/index.ios.js +1 -1
- package/utils/index.ios.js.map +1 -1
- package/view/index.android.d.ts +3 -2
- package/view/index.android.js +22 -5
- package/view/index.android.js.map +1 -1
- package/view/index.ios.d.ts +4 -2
- package/view/index.ios.js +86 -16
- package/view/index.ios.js.map +1 -1
- package/web.d.ts +6 -0
- package/web.js +22 -0
- package/web.js.map +1 -1
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/NSObject+MasonElement_Defaults.h +0 -100
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/NSObject+MasonElement_Defaults.h +0 -100
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#if 0
|
|
2
2
|
#elif defined(__arm64__) && __arm64__
|
|
3
|
-
// Generated by Apple Swift version 6.1
|
|
3
|
+
// Generated by Apple Swift version 6.3.1 effective-5.10 (swiftlang-6.3.1.1.2 clang-2100.0.123.102)
|
|
4
4
|
#ifndef MASON_SWIFT_H
|
|
5
5
|
#define MASON_SWIFT_H
|
|
6
6
|
#pragma clang diagnostic push
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
#pragma clang diagnostic ignored "-Wauto-import"
|
|
27
27
|
#if defined(__OBJC__)
|
|
28
28
|
#include <Foundation/Foundation.h>
|
|
29
|
-
#endif
|
|
29
|
+
#endif // defined(__OBJC__)
|
|
30
30
|
#if defined(__cplusplus)
|
|
31
31
|
#include <cstdint>
|
|
32
32
|
#include <cstddef>
|
|
@@ -195,13 +195,32 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
195
195
|
# endif
|
|
196
196
|
#endif
|
|
197
197
|
#if !defined(SWIFT_ENUM)
|
|
198
|
-
#
|
|
199
|
-
#
|
|
200
|
-
#
|
|
198
|
+
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
199
|
+
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
|
200
|
+
# if __has_feature(generalized_swift_name)
|
|
201
|
+
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
|
202
|
+
# else
|
|
203
|
+
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
|
204
|
+
# endif
|
|
201
205
|
# else
|
|
206
|
+
# define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
|
|
202
207
|
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
|
203
208
|
# endif
|
|
204
209
|
#endif
|
|
210
|
+
#if !defined(SWIFT_ENUM_TAG)
|
|
211
|
+
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
212
|
+
# define SWIFT_ENUM_TAG enum
|
|
213
|
+
# else
|
|
214
|
+
# define SWIFT_ENUM_TAG
|
|
215
|
+
# endif
|
|
216
|
+
#endif
|
|
217
|
+
#if !defined(SWIFT_ENUM_FWD_DECL)
|
|
218
|
+
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
219
|
+
# define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
|
|
220
|
+
# else
|
|
221
|
+
# define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
|
|
222
|
+
# endif
|
|
223
|
+
#endif
|
|
205
224
|
#if !defined(SWIFT_UNAVAILABLE)
|
|
206
225
|
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
|
|
207
226
|
#endif
|
|
@@ -211,6 +230,9 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
211
230
|
#if !defined(SWIFT_AVAILABILITY)
|
|
212
231
|
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
|
|
213
232
|
#endif
|
|
233
|
+
#if !defined(SWIFT_AVAILABILITY_DOMAIN)
|
|
234
|
+
# define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
|
|
235
|
+
#endif
|
|
214
236
|
#if !defined(SWIFT_WEAK_IMPORT)
|
|
215
237
|
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
|
216
238
|
#endif
|
|
@@ -276,6 +298,49 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
276
298
|
# define SWIFT_IMPORT_STDLIB_SYMBOL
|
|
277
299
|
#endif
|
|
278
300
|
#endif
|
|
301
|
+
#if !__has_feature(nullability)
|
|
302
|
+
# define _Nonnull
|
|
303
|
+
# define _Nullable
|
|
304
|
+
# define _Null_unspecified
|
|
305
|
+
#elif !defined(__OBJC__)
|
|
306
|
+
# pragma clang diagnostic ignored "-Wnullability-extension"
|
|
307
|
+
#endif
|
|
308
|
+
#if !__has_feature(nullability_nullable_result)
|
|
309
|
+
# define _Nullable_result _Nullable
|
|
310
|
+
#endif
|
|
311
|
+
#if __has_feature(objc_modules)
|
|
312
|
+
#if __has_warning("-Watimport-in-framework-header")
|
|
313
|
+
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
314
|
+
#endif
|
|
315
|
+
#endif
|
|
316
|
+
|
|
317
|
+
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
318
|
+
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
319
|
+
#if __has_warning("-Wpragma-clang-attribute")
|
|
320
|
+
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
|
321
|
+
#endif
|
|
322
|
+
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
323
|
+
#pragma clang diagnostic ignored "-Wnullability"
|
|
324
|
+
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
325
|
+
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
|
326
|
+
|
|
327
|
+
#if __has_attribute(external_source_symbol)
|
|
328
|
+
# pragma push_macro("any")
|
|
329
|
+
# undef any
|
|
330
|
+
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="Mason",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
|
331
|
+
# pragma pop_macro("any")
|
|
332
|
+
#endif
|
|
333
|
+
|
|
334
|
+
#if defined(__cplusplus)
|
|
335
|
+
extern "C" {
|
|
336
|
+
#endif
|
|
337
|
+
|
|
338
|
+
#if defined(__cplusplus)
|
|
339
|
+
} // extern "C"
|
|
340
|
+
#endif
|
|
341
|
+
#if __has_attribute(external_source_symbol)
|
|
342
|
+
# pragma clang attribute pop
|
|
343
|
+
#endif
|
|
279
344
|
#if defined(__OBJC__)
|
|
280
345
|
#if __has_feature(objc_modules)
|
|
281
346
|
#if __has_warning("-Watimport-in-framework-header")
|
|
@@ -289,7 +354,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
289
354
|
@import UIKit;
|
|
290
355
|
#endif
|
|
291
356
|
|
|
292
|
-
#endif
|
|
357
|
+
#endif // defined(__OBJC__)
|
|
293
358
|
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
294
359
|
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
295
360
|
#if __has_warning("-Wpragma-clang-attribute")
|
|
@@ -372,7 +437,7 @@ SWIFT_PROTOCOL_NAMED("TextContainer")
|
|
|
372
437
|
@protocol MasonTextContainer <NSObject>
|
|
373
438
|
@property (nonatomic, readonly, strong) MasonTextEngine * _Nonnull engine;
|
|
374
439
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
375
|
-
- (void)
|
|
440
|
+
- (void)onStyleChange:(uint64_t)low :(uint64_t)high;
|
|
376
441
|
@end
|
|
377
442
|
|
|
378
443
|
@class MasonStyle;
|
|
@@ -399,20 +464,26 @@ SWIFT_CLASS_NAMED("Button")
|
|
|
399
464
|
- (void)requestLayout;
|
|
400
465
|
- (void)addView:(UIView * _Nonnull)view;
|
|
401
466
|
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
467
|
+
- (void)removeView:(UIView * _Nonnull)view;
|
|
468
|
+
- (void)removeViewAt:(NSInteger)index;
|
|
469
|
+
- (void)removeAllViews;
|
|
470
|
+
- (void)layoutSubviews;
|
|
402
471
|
- (void)drawRect:(CGRect)rect;
|
|
403
472
|
@property (nonatomic, readonly, strong) NSMutableData * _Nonnull textValues;
|
|
404
|
-
- (void)
|
|
473
|
+
- (void)onStyleChange:(uint64_t)low :(uint64_t)high;
|
|
405
474
|
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
|
|
406
475
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
407
476
|
@end
|
|
408
477
|
|
|
409
478
|
@class UITouch;
|
|
410
479
|
@class UIEvent;
|
|
480
|
+
@class UIWindow;
|
|
411
481
|
@interface MasonButton (SWIFT_EXTENSION(Mason))
|
|
412
482
|
- (void)touchesBegan:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
|
|
413
|
-
- (void)touchesMoved:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
|
|
414
483
|
- (void)touchesEnded:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
|
|
415
484
|
- (void)touchesCancelled:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
|
|
485
|
+
- (void)touchesMoved:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
|
|
486
|
+
- (void)willMoveToWindow:(UIWindow * _Nullable)newWindow;
|
|
416
487
|
@end
|
|
417
488
|
|
|
418
489
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonClear, "Clear", open) {
|
|
@@ -480,7 +551,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonGridAutoFlowWrap, "GridAutoFlow", open)
|
|
|
480
551
|
MasonGridAutoFlowWrapColumnDense = 3,
|
|
481
552
|
};
|
|
482
553
|
|
|
483
|
-
|
|
554
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonGridPlacementCompatType)
|
|
484
555
|
SWIFT_CLASS_NAMED("GridPlacementCompat")
|
|
485
556
|
@interface GridPlacementCompat : NSObject
|
|
486
557
|
- (nonnull instancetype)initWithSpan:(int16_t)span OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -515,7 +586,16 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonGridTra
|
|
|
515
586
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
516
587
|
@end
|
|
517
588
|
|
|
518
|
-
|
|
589
|
+
SWIFT_CLASS_NAMED("HTMLParser")
|
|
590
|
+
@interface MasonHTMLParser : NSObject
|
|
591
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason OBJC_DESIGNATED_INITIALIZER;
|
|
592
|
+
/// Parses an HTML string and returns a list of root-level MasonElement/MasonNode children.
|
|
593
|
+
- (NSArray<MasonNode *> * _Nonnull)parse:(NSString * _Nonnull)html SWIFT_WARN_UNUSED_RESULT;
|
|
594
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
595
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
596
|
+
@end
|
|
597
|
+
|
|
598
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonLoadingState)
|
|
519
599
|
@class UIImage;
|
|
520
600
|
SWIFT_CLASS_NAMED("Img")
|
|
521
601
|
@interface MasonImg : UIView <MasonElementObjc>
|
|
@@ -531,6 +611,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layer
|
|
|
531
611
|
- (void)requestLayout;
|
|
532
612
|
@property (nonatomic, copy) NSString * _Nullable src;
|
|
533
613
|
- (void)updateImage:(UIImage * _Nullable)image;
|
|
614
|
+
- (void)layoutSubviews;
|
|
534
615
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
535
616
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
536
617
|
@end
|
|
@@ -585,75 +666,50 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonLineHeight, "LineHeight", open) {
|
|
|
585
666
|
MasonLineHeightPreLine = 3,
|
|
586
667
|
};
|
|
587
668
|
|
|
669
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonListStylePosition, "ListStylePosition", open) {
|
|
670
|
+
MasonListStylePositionOutside = 0,
|
|
671
|
+
MasonListStylePositionInside = 1,
|
|
672
|
+
};
|
|
673
|
+
|
|
674
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonListStyleType, "ListStyleType", open) {
|
|
675
|
+
MasonListStyleTypeNone = 0,
|
|
676
|
+
MasonListStyleTypeCustom = 1,
|
|
677
|
+
MasonListStyleTypeDisc = 2,
|
|
678
|
+
MasonListStyleTypeCircle = 3,
|
|
679
|
+
MasonListStyleTypeSquare = 4,
|
|
680
|
+
MasonListStyleTypeDecimal = 5,
|
|
681
|
+
};
|
|
682
|
+
|
|
588
683
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonLoadingState, "LoadingState", open) {
|
|
589
684
|
MasonLoadingStateLoading = 0,
|
|
590
685
|
MasonLoadingStateLoaded = 1,
|
|
591
686
|
MasonLoadingStateError = 2,
|
|
592
687
|
};
|
|
593
688
|
|
|
594
|
-
|
|
595
|
-
@
|
|
596
|
-
@property (nonatomic, copy) NSString * _Nonnull data;
|
|
597
|
-
@property (nonatomic, readonly) NSInteger length;
|
|
598
|
-
- (nonnull instancetype)appendData:(NSString * _Nonnull)s;
|
|
599
|
-
- (nonnull instancetype)insertData:(NSString * _Nonnull)s at:(NSInteger)offset;
|
|
600
|
-
- (nonnull instancetype)deleteDataWithOffset:(NSInteger)offset count:(NSInteger)count;
|
|
601
|
-
- (nonnull instancetype)replaceDataWithOffset:(NSInteger)offset count:(NSInteger)count with:(NSString * _Nonnull)s;
|
|
602
|
-
- (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
|
|
603
|
-
- (nonnull instancetype)deleteDataWithRange:(NSRange)range;
|
|
604
|
-
- (nonnull instancetype)replaceDataWithRange:(NSRange)range with:(NSString * _Nonnull)s;
|
|
605
|
-
@end
|
|
606
|
-
|
|
607
|
-
@class MasonLayout;
|
|
608
|
-
@class MasonDocument;
|
|
609
|
-
enum MasonNodeType : int32_t;
|
|
610
|
-
SWIFT_CLASS_NAMED("MasonNode")
|
|
611
|
-
@interface MasonNode : NSObject
|
|
689
|
+
SWIFT_CLASS_NAMED("MasonBr")
|
|
690
|
+
@interface MasonBr : NSObject <MasonElementObjc>
|
|
612
691
|
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
613
|
-
@property (nonatomic,
|
|
614
|
-
@property (nonatomic,
|
|
615
|
-
@property (nonatomic, readonly)
|
|
616
|
-
@property (nonatomic, readonly, strong) MasonLayout * _Nonnull computedLayout;
|
|
617
|
-
@property (nonatomic, readonly, strong) MasonDocument * _Nullable document;
|
|
618
|
-
- (MasonNode * _Nonnull)getRootNode SWIFT_WARN_UNUSED_RESULT;
|
|
619
|
-
@property (nonatomic, readonly, strong) MasonNode * _Nullable parent;
|
|
620
|
-
@property (nonatomic, readonly, strong) MasonNode * _Nullable parentNode;
|
|
621
|
-
@property (nonatomic, readonly) enum MasonNodeType type;
|
|
622
|
-
- (NSArray<MasonNode *> * _Nonnull)getChildren SWIFT_WARN_UNUSED_RESULT;
|
|
623
|
-
- (NSArray<MasonNode *> * _Nonnull)getLayoutChildren SWIFT_WARN_UNUSED_RESULT;
|
|
624
|
-
@property (nonatomic) BOOL inBatch;
|
|
625
|
-
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes OBJC_DESIGNATED_INITIALIZER;
|
|
626
|
-
@property (nonatomic, readonly) BOOL isDirty;
|
|
627
|
-
- (void)markDirty;
|
|
628
|
-
- (UIView * _Nullable)getRoot SWIFT_WARN_UNUSED_RESULT;
|
|
629
|
-
/// Helper to get default text attributes for new text nodes
|
|
630
|
-
- (NSDictionary<NSAttributedStringKey, id> * _Nonnull)getDefaultAttributes SWIFT_WARN_UNUSED_RESULT;
|
|
692
|
+
@property (nonatomic, strong) MasonNode * _Nonnull node;
|
|
693
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
694
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
631
695
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
632
696
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
633
697
|
@end
|
|
634
698
|
|
|
635
|
-
|
|
636
|
-
@
|
|
699
|
+
SWIFT_PROTOCOL("_TtP5Mason18MasonCharacterData_")
|
|
700
|
+
@protocol MasonCharacterData
|
|
637
701
|
@property (nonatomic, copy) NSString * _Nonnull data;
|
|
638
|
-
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc data:(NSString * _Nonnull)text attributes:(NSDictionary<NSAttributedStringKey, id> * _Nullable)attrs OBJC_DESIGNATED_INITIALIZER;
|
|
639
|
-
- (void)appendChild:(MasonNode * _Nonnull)child;
|
|
640
702
|
@property (nonatomic, readonly) NSInteger length;
|
|
641
|
-
- (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
|
|
642
703
|
- (nonnull instancetype)appendData:(NSString * _Nonnull)s;
|
|
643
704
|
- (nonnull instancetype)insertData:(NSString * _Nonnull)s at:(NSInteger)offset;
|
|
644
705
|
- (nonnull instancetype)deleteDataWithOffset:(NSInteger)offset count:(NSInteger)count;
|
|
645
706
|
- (nonnull instancetype)replaceDataWithOffset:(NSInteger)offset count:(NSInteger)count with:(NSString * _Nonnull)s;
|
|
707
|
+
- (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
|
|
646
708
|
- (nonnull instancetype)deleteDataWithRange:(NSRange)range;
|
|
647
709
|
- (nonnull instancetype)replaceDataWithRange:(NSRange)range with:(NSString * _Nonnull)s;
|
|
648
|
-
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes SWIFT_UNAVAILABLE;
|
|
649
710
|
@end
|
|
650
711
|
|
|
651
|
-
|
|
652
|
-
@interface MasonBr : MasonTextNode
|
|
653
|
-
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc data:(NSString * _Nonnull)text attributes:(NSDictionary<NSAttributedStringKey, id> * _Nullable)attrs OBJC_DESIGNATED_INITIALIZER;
|
|
654
|
-
@end
|
|
655
|
-
|
|
656
|
-
enum MasonDimensionCompatType : NSInteger;
|
|
712
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonDimensionCompatType)
|
|
657
713
|
SWIFT_CLASS_NAMED("MasonDimensionCompat")
|
|
658
714
|
@interface MasonDimensionCompat : NSObject
|
|
659
715
|
- (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -712,6 +768,44 @@ SWIFT_CLASS_NAMED("MasonDocument")
|
|
|
712
768
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
713
769
|
@end
|
|
714
770
|
|
|
771
|
+
@class MasonEventOptions;
|
|
772
|
+
SWIFT_CLASS_NAMED("MasonEvent")
|
|
773
|
+
@interface MasonEvent : NSObject
|
|
774
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull type;
|
|
775
|
+
@property (nonatomic, readonly) BOOL bubbles;
|
|
776
|
+
@property (nonatomic, readonly) BOOL cancelable;
|
|
777
|
+
@property (nonatomic, readonly) BOOL isComposing;
|
|
778
|
+
@property (nonatomic, readonly) double timeStamp;
|
|
779
|
+
@property (nonatomic, readonly) BOOL defaultPrevented;
|
|
780
|
+
@property (nonatomic, readonly) BOOL propagationStopped;
|
|
781
|
+
@property (nonatomic, readonly) BOOL immediatePropagationStopped;
|
|
782
|
+
@property (nonatomic, readonly) id _Nullable target;
|
|
783
|
+
@property (nonatomic, readonly) id _Nullable currentTarget;
|
|
784
|
+
- (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options OBJC_DESIGNATED_INITIALIZER;
|
|
785
|
+
- (void)preventDefault;
|
|
786
|
+
- (void)stopPropagation;
|
|
787
|
+
- (void)stopImmediatePropagation;
|
|
788
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
789
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
790
|
+
@end
|
|
791
|
+
|
|
792
|
+
SWIFT_CLASS_NAMED("MasonEventOptions")
|
|
793
|
+
@interface MasonEventOptions : NSObject
|
|
794
|
+
@property (nonatomic) BOOL isComposing;
|
|
795
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
796
|
+
- (nonnull instancetype)initWithIsComposing:(BOOL)isComposing OBJC_DESIGNATED_INITIALIZER;
|
|
797
|
+
@end
|
|
798
|
+
|
|
799
|
+
@class NSURL;
|
|
800
|
+
SWIFT_CLASS_NAMED("MasonFileInputEvent")
|
|
801
|
+
@interface MasonFileInputEvent : MasonEvent
|
|
802
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable data;
|
|
803
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable inputType;
|
|
804
|
+
@property (nonatomic, readonly, copy) NSArray<NSURL *> * _Nonnull rawData;
|
|
805
|
+
- (nonnull instancetype)initWithType:(NSString * _Nonnull)type data:(NSString * _Nullable)inputData inputType:(NSString * _Nullable)masonInputType options:(MasonEventOptions * _Nullable)options rawData:(NSArray<NSURL *> * _Nonnull)inputRawData OBJC_DESIGNATED_INITIALIZER;
|
|
806
|
+
- (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options SWIFT_UNAVAILABLE;
|
|
807
|
+
@end
|
|
808
|
+
|
|
715
809
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonFloat, "MasonFloat", open) {
|
|
716
810
|
MasonFloatNone = 0,
|
|
717
811
|
MasonFloatLeft = 1,
|
|
@@ -721,28 +815,101 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonFloat, "MasonFloat", open) {
|
|
|
721
815
|
SWIFT_CLASS("_TtC5Mason15MasonImageLayer")
|
|
722
816
|
@interface MasonImageLayer : CALayer
|
|
723
817
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
724
|
-
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
725
818
|
- (nonnull instancetype)initWithLayer:(id _Nonnull)layer OBJC_DESIGNATED_INITIALIZER;
|
|
819
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
726
820
|
- (void)drawInContext:(CGContextRef _Nonnull)context;
|
|
821
|
+
- (void)layoutSublayers;
|
|
727
822
|
@end
|
|
728
823
|
|
|
824
|
+
SWIFT_ENUM_FWD_DECL(int8_t, MasonInputType)
|
|
825
|
+
@class NSDate;
|
|
826
|
+
SWIFT_CLASS_NAMED("MasonInput")
|
|
827
|
+
@interface MasonInput : UIView
|
|
828
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
829
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
830
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
831
|
+
@property (nonatomic) BOOL multiple;
|
|
832
|
+
@property (nonatomic, copy) NSString * _Nonnull accept;
|
|
833
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
834
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
835
|
+
@property (nonatomic) enum MasonInputType type;
|
|
836
|
+
@property (nonatomic) int32_t size;
|
|
837
|
+
@property (nonatomic, copy) NSString * _Nonnull value;
|
|
838
|
+
@property (nonatomic) double valueAsNumber;
|
|
839
|
+
@property (nonatomic, copy) NSDate * _Nullable valueAsDate;
|
|
840
|
+
@property (nonatomic, copy) NSString * _Nonnull placeholder;
|
|
841
|
+
- (void)drawRect:(CGRect)rect;
|
|
842
|
+
- (void)layoutSubviews;
|
|
843
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
844
|
+
@end
|
|
845
|
+
|
|
846
|
+
SWIFT_CLASS_NAMED("MasonInputEvent")
|
|
847
|
+
@interface MasonInputEvent : MasonEvent
|
|
848
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable data;
|
|
849
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable inputType;
|
|
850
|
+
- (nonnull instancetype)initWithType:(NSString * _Nonnull)type data:(NSString * _Nullable)inputData inputType:(NSString * _Nullable)masonInputType options:(MasonEventOptions * _Nullable)options OBJC_DESIGNATED_INITIALIZER;
|
|
851
|
+
- (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options SWIFT_UNAVAILABLE;
|
|
852
|
+
@end
|
|
853
|
+
|
|
854
|
+
typedef SWIFT_ENUM_NAMED(int8_t, MasonInputType, "MasonInputType", open) {
|
|
855
|
+
MasonInputTypeText = 0,
|
|
856
|
+
MasonInputTypeButton = 1,
|
|
857
|
+
MasonInputTypeCheckbox = 2,
|
|
858
|
+
MasonInputTypeEmail = 3,
|
|
859
|
+
MasonInputTypePassword = 4,
|
|
860
|
+
MasonInputTypeDate = 5,
|
|
861
|
+
MasonInputTypeRadio = 6,
|
|
862
|
+
MasonInputTypeNumber = 7,
|
|
863
|
+
MasonInputTypeRange = 8,
|
|
864
|
+
MasonInputTypeTel = 9,
|
|
865
|
+
MasonInputTypeUrl = 10,
|
|
866
|
+
MasonInputTypeColor = 11,
|
|
867
|
+
MasonInputTypeFile = 12,
|
|
868
|
+
MasonInputTypeSubmit = 13,
|
|
869
|
+
};
|
|
870
|
+
|
|
871
|
+
@class MasonRectHelper;
|
|
872
|
+
@class MasonSizeHelper;
|
|
729
873
|
SWIFT_CLASS_NAMED("MasonLayout")
|
|
730
874
|
@interface MasonLayout : NSObject
|
|
731
|
-
@property (nonatomic, readonly)
|
|
875
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonLayout * _Nonnull empty;)
|
|
876
|
+
+ (MasonLayout * _Nonnull)empty SWIFT_WARN_UNUSED_RESULT;
|
|
732
877
|
@property (nonatomic, readonly) float x;
|
|
733
878
|
@property (nonatomic, readonly) float y;
|
|
734
879
|
@property (nonatomic, readonly) float width;
|
|
735
880
|
@property (nonatomic, readonly) float height;
|
|
736
|
-
@property (nonatomic, readonly
|
|
737
|
-
|
|
738
|
-
|
|
881
|
+
@property (nonatomic, readonly) float borderTop;
|
|
882
|
+
@property (nonatomic, readonly) float borderRight;
|
|
883
|
+
@property (nonatomic, readonly) float borderBottom;
|
|
884
|
+
@property (nonatomic, readonly) float borderLeft;
|
|
885
|
+
@property (nonatomic, readonly) float marginTop;
|
|
886
|
+
@property (nonatomic, readonly) float marginRight;
|
|
887
|
+
@property (nonatomic, readonly) float marginBottom;
|
|
888
|
+
@property (nonatomic, readonly) float marginLeft;
|
|
889
|
+
@property (nonatomic, readonly) float paddingTop;
|
|
890
|
+
@property (nonatomic, readonly) float paddingRight;
|
|
891
|
+
@property (nonatomic, readonly) float paddingBottom;
|
|
892
|
+
@property (nonatomic, readonly) float paddingLeft;
|
|
893
|
+
@property (nonatomic, readonly) float contentWidth;
|
|
894
|
+
@property (nonatomic, readonly) float contentHeight;
|
|
895
|
+
@property (nonatomic, readonly) float scrollbarWidth;
|
|
896
|
+
@property (nonatomic, readonly) float scrollbarHeight;
|
|
897
|
+
@property (nonatomic, readonly) BOOL sizeIsEmpty;
|
|
898
|
+
@property (nonatomic, readonly) BOOL paddingIsEmpty;
|
|
899
|
+
@property (nonatomic, readonly) BOOL marginIsEmpty;
|
|
900
|
+
@property (nonatomic, readonly) BOOL borderIsEmpty;
|
|
901
|
+
@property (nonatomic, readonly, strong) MasonRectHelper * _Nonnull border;
|
|
902
|
+
@property (nonatomic, readonly, strong) MasonRectHelper * _Nonnull margin;
|
|
903
|
+
@property (nonatomic, readonly, strong) MasonRectHelper * _Nonnull padding;
|
|
904
|
+
@property (nonatomic, readonly, strong) MasonSizeHelper * _Nonnull contentSize;
|
|
905
|
+
@property (nonatomic, readonly, strong) MasonSizeHelper * _Nonnull scrollbarSize;
|
|
739
906
|
@property (nonatomic, readonly) BOOL hasChildren;
|
|
740
|
-
@property (nonatomic, readonly, copy)
|
|
907
|
+
@property (nonatomic, readonly, copy) NSArray<MasonLayout *> * _Nonnull children;
|
|
741
908
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
742
909
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
743
910
|
@end
|
|
744
911
|
|
|
745
|
-
|
|
912
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonLengthPercentageAutoCompatType)
|
|
746
913
|
SWIFT_CLASS_NAMED("MasonLengthPercentageAutoCompat")
|
|
747
914
|
@interface MasonLengthPercentageAutoCompat : NSObject
|
|
748
915
|
- (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -792,7 +959,7 @@ SWIFT_CLASS_NAMED("MasonLengthPercentageAutoSizeCompat")
|
|
|
792
959
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
793
960
|
@end
|
|
794
961
|
|
|
795
|
-
|
|
962
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonLengthPercentageCompatType)
|
|
796
963
|
SWIFT_CLASS_NAMED("MasonLengthPercentageCompat")
|
|
797
964
|
@interface MasonLengthPercentageCompat : NSObject
|
|
798
965
|
- (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -839,9 +1006,160 @@ SWIFT_CLASS_NAMED("MasonLengthPercentageSizeCompat")
|
|
|
839
1006
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
840
1007
|
@end
|
|
841
1008
|
|
|
1009
|
+
SWIFT_CLASS_NAMED("MasonLi")
|
|
1010
|
+
@interface MasonLi : UIView <MasonElementObjc>
|
|
1011
|
+
- (void)requestLayout;
|
|
1012
|
+
- (void)drawRect:(CGRect)rect;
|
|
1013
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
1014
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
1015
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
1016
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
1017
|
+
@property (nonatomic) BOOL isOrdered;
|
|
1018
|
+
- (void)layoutSubviews;
|
|
1019
|
+
/// Reset view state for recycling
|
|
1020
|
+
- (void)resetForRecycle;
|
|
1021
|
+
/// Set marker value and position for this list item
|
|
1022
|
+
- (void)bindWithPosition:(NSInteger)position isOrdered:(BOOL)isOrdered;
|
|
1023
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
1024
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
1025
|
+
@end
|
|
1026
|
+
|
|
1027
|
+
@protocol MasonListDelegate;
|
|
1028
|
+
@class UICollectionView;
|
|
1029
|
+
@class NSIndexPath;
|
|
1030
|
+
@class UICollectionViewCell;
|
|
1031
|
+
SWIFT_CLASS_NAMED("MasonList")
|
|
1032
|
+
@interface MasonList : UIView <MasonElementObjc, UICollectionViewDataSource, UICollectionViewDataSourcePrefetching, UICollectionViewDelegateFlowLayout>
|
|
1033
|
+
@property (nonatomic, strong) id <MasonListDelegate> _Nullable delegate;
|
|
1034
|
+
- (void)drawRect:(CGRect)rect;
|
|
1035
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
1036
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
1037
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
1038
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
1039
|
+
/// Static items keyed by their position in the overall list.
|
|
1040
|
+
/// Positions not in this dictionary are virtual (recycled via delegate).
|
|
1041
|
+
@property (nonatomic, readonly, copy) NSDictionary<NSNumber *, MasonLi *> * _Nonnull staticItems;
|
|
1042
|
+
/// Backward-compat: flat array of static views (unpositioned).
|
|
1043
|
+
/// Setting this clears staticItems and assigns positions 0..<array.count.
|
|
1044
|
+
@property (nonatomic, copy) NSArray<MasonLi *> * _Nonnull staticViews;
|
|
1045
|
+
@property (nonatomic, strong) NSMutableData * _Nonnull values;
|
|
1046
|
+
/// Virtual item count (set by user). Total count = staticItems.count + this value.
|
|
1047
|
+
@property (nonatomic) NSInteger count;
|
|
1048
|
+
- (void)layoutSubviews;
|
|
1049
|
+
- (void)registerWithCellClass:(Class _Nullable)cellClass forCellWithReuseIdentifier:(NSString * _Nonnull)identifier;
|
|
1050
|
+
/// Appends a static item at the end of the list (position = current count).
|
|
1051
|
+
- (void)addView:(MasonLi * _Nonnull)item;
|
|
1052
|
+
/// Inserts a static item at the given position, shifting existing entries at >= index.
|
|
1053
|
+
- (void)addView:(MasonLi * _Nonnull)item at:(NSInteger)index;
|
|
1054
|
+
- (void)reload;
|
|
1055
|
+
@property (nonatomic) BOOL isOrdered;
|
|
1056
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
1057
|
+
- (void)invalidateSizeCache;
|
|
1058
|
+
- (void)invalidateSizeCacheAt:(NSInteger)index;
|
|
1059
|
+
- (void)collectionView:(UICollectionView * _Nonnull)collectionView prefetchItemsAtIndexPaths:(NSArray<NSIndexPath *> * _Nonnull)indexPaths;
|
|
1060
|
+
- (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
|
|
1061
|
+
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView * _Nonnull)collectionView SWIFT_WARN_UNUSED_RESULT;
|
|
1062
|
+
- (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
|
|
1063
|
+
- (void)collectionView:(UICollectionView * _Nonnull)collectionView willDisplayCell:(UICollectionViewCell * _Nonnull)cell forItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
|
|
1064
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
1065
|
+
@end
|
|
1066
|
+
|
|
1067
|
+
SWIFT_PROTOCOL_NAMED("MasonListDelegate")
|
|
1068
|
+
@protocol MasonListDelegate
|
|
1069
|
+
- (UICollectionViewCell * _Nonnull)list:(UICollectionView * _Nonnull)list cellForItemAt:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
|
|
1070
|
+
- (void)list:(UICollectionView * _Nonnull)list willDisplay:(UICollectionViewCell * _Nonnull)cell forItemAt:(NSIndexPath * _Nonnull)indexPath;
|
|
1071
|
+
@end
|
|
1072
|
+
|
|
1073
|
+
@class UICollectionViewLayoutAttributes;
|
|
1074
|
+
SWIFT_CLASS_NAMED("MasonListCell")
|
|
1075
|
+
@interface MasonListCell : UICollectionViewCell
|
|
1076
|
+
@property (nonatomic, copy) void (^ _Nullable willMove)(MasonListCell * _Nonnull);
|
|
1077
|
+
+ (MasonListCell * _Nonnull)initWithEmptyBackground SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
|
|
1078
|
+
- (void)setViewWithCompat:(id <MasonElementObjc> _Nullable)view;
|
|
1079
|
+
- (void)willMoveToSuperview:(UIView * _Nullable)newSuperview;
|
|
1080
|
+
- (void)prepareForReuse;
|
|
1081
|
+
- (UICollectionViewLayoutAttributes * _Nonnull)preferredLayoutAttributesFittingAttributes:(UICollectionViewLayoutAttributes * _Nonnull)layoutAttributes SWIFT_WARN_UNUSED_RESULT;
|
|
1082
|
+
- (void)layoutSubviews;
|
|
1083
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
|
|
1084
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
|
|
1085
|
+
@end
|
|
1086
|
+
|
|
1087
|
+
@class MasonMouseEventOptions;
|
|
1088
|
+
SWIFT_CLASS_NAMED("MasonMouseEvent")
|
|
1089
|
+
@interface MasonMouseEvent : MasonEvent
|
|
1090
|
+
@property (nonatomic, readonly) NSInteger button;
|
|
1091
|
+
@property (nonatomic, readonly) NSInteger buttons;
|
|
1092
|
+
@property (nonatomic, readonly) float clientX;
|
|
1093
|
+
@property (nonatomic, readonly) float clientY;
|
|
1094
|
+
@property (nonatomic, readonly) BOOL ctrlKey;
|
|
1095
|
+
@property (nonatomic, readonly) BOOL shiftKey;
|
|
1096
|
+
@property (nonatomic, readonly) BOOL altKey;
|
|
1097
|
+
@property (nonatomic, readonly) BOOL metaKey;
|
|
1098
|
+
@property (nonatomic, readonly) NSInteger detail;
|
|
1099
|
+
@property (nonatomic, readonly) float screenX;
|
|
1100
|
+
@property (nonatomic, readonly) float screenY;
|
|
1101
|
+
@property (nonatomic, readonly) id _Nullable relatedTarget;
|
|
1102
|
+
@property (nonatomic, readonly) id _Nullable region;
|
|
1103
|
+
@property (nonatomic, readonly) NSInteger movementX;
|
|
1104
|
+
@property (nonatomic, readonly) NSInteger movementY;
|
|
1105
|
+
@property (nonatomic, readonly) float pageX;
|
|
1106
|
+
@property (nonatomic, readonly) float pageY;
|
|
1107
|
+
- (nonnull instancetype)initWithType:(NSString * _Nonnull)type options:(MasonMouseEventOptions * _Nullable)options OBJC_DESIGNATED_INITIALIZER;
|
|
1108
|
+
- (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options SWIFT_UNAVAILABLE;
|
|
1109
|
+
@end
|
|
1110
|
+
|
|
1111
|
+
SWIFT_CLASS_NAMED("MasonMouseEventOptions")
|
|
1112
|
+
@interface MasonMouseEventOptions : MasonEventOptions
|
|
1113
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1114
|
+
- (nonnull instancetype)initWithIsComposing:(BOOL)isComposing OBJC_DESIGNATED_INITIALIZER;
|
|
1115
|
+
@end
|
|
1116
|
+
|
|
1117
|
+
SWIFT_ENUM_FWD_DECL(uint16_t, PseudoState)
|
|
1118
|
+
SWIFT_ENUM_FWD_DECL(int32_t, MasonNodeType)
|
|
1119
|
+
SWIFT_CLASS_NAMED("MasonNode")
|
|
1120
|
+
@interface MasonNode : NSObject
|
|
1121
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
1122
|
+
@property (nonatomic, copy) void (^ _Nullable onNodeAttached)(void);
|
|
1123
|
+
@property (nonatomic, copy) void (^ _Nullable onNodeDetached)(void);
|
|
1124
|
+
@property (nonatomic, readonly) void * _Nullable nativePtr;
|
|
1125
|
+
@property (nonatomic, readonly, strong) MasonLayout * _Nonnull computedLayout;
|
|
1126
|
+
/// Set to true by applyToView after Mason has applied layout to this node’s view.
|
|
1127
|
+
/// NativeScript can read this to skip redundant layout passes for Mason-managed children.
|
|
1128
|
+
@property (nonatomic) BOOL isLayoutValid;
|
|
1129
|
+
@property (nonatomic, readonly, strong) MasonDocument * _Nullable document;
|
|
1130
|
+
- (void)setPseudoString:(uint16_t)pseudoState :(NSString * _Nonnull)key :(NSString * _Nonnull)value;
|
|
1131
|
+
- (NSString * _Nullable)getPseudoString:(uint16_t)pseudoState :(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT;
|
|
1132
|
+
- (void)clearPseudoString:(uint16_t)pseudoState :(NSString * _Nonnull)key;
|
|
1133
|
+
/// Current active pseudo state bitmask read from the native state buffer.
|
|
1134
|
+
@property (nonatomic, readonly) uint16_t pseudoMask;
|
|
1135
|
+
- (BOOL)hasPseudo:(enum PseudoState)state SWIFT_WARN_UNUSED_RESULT;
|
|
1136
|
+
- (void)setPseudo:(enum PseudoState)state :(BOOL)enabled autoDirty:(BOOL)autoDirty;
|
|
1137
|
+
/// Get existing pseudo style buffer (read-only).
|
|
1138
|
+
- (NSMutableData * _Nullable)getPseudoBuffer:(uint16_t)flags SWIFT_WARN_UNUSED_RESULT;
|
|
1139
|
+
/// Prepare (create if needed) a mutable pseudo style buffer.
|
|
1140
|
+
/// Clones from base style on first call for a given state.
|
|
1141
|
+
- (NSMutableData * _Nonnull)preparePseudoBuffer:(uint16_t)flags SWIFT_WARN_UNUSED_RESULT;
|
|
1142
|
+
- (MasonNode * _Nonnull)getRootNode SWIFT_WARN_UNUSED_RESULT;
|
|
1143
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nullable parent;
|
|
1144
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nullable parentNode;
|
|
1145
|
+
@property (nonatomic, readonly) enum MasonNodeType type;
|
|
1146
|
+
- (NSArray<MasonNode *> * _Nonnull)getChildren SWIFT_WARN_UNUSED_RESULT;
|
|
1147
|
+
- (NSArray<MasonNode *> * _Nonnull)getLayoutChildren SWIFT_WARN_UNUSED_RESULT;
|
|
1148
|
+
@property (nonatomic) BOOL inBatch;
|
|
1149
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes OBJC_DESIGNATED_INITIALIZER;
|
|
1150
|
+
@property (nonatomic, readonly) BOOL isDirty;
|
|
1151
|
+
- (void)markDirty;
|
|
1152
|
+
- (UIView * _Nullable)getRoot SWIFT_WARN_UNUSED_RESULT;
|
|
1153
|
+
/// Helper to get default text attributes for new text nodes
|
|
1154
|
+
- (NSDictionary<NSAttributedStringKey, id> * _Nonnull)getDefaultAttributes SWIFT_WARN_UNUSED_RESULT;
|
|
1155
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1156
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1157
|
+
@end
|
|
1158
|
+
|
|
842
1159
|
@interface MasonNode (SWIFT_EXTENSION(Mason))
|
|
843
1160
|
- (void)setChildrenWithValue:(NSArray<MasonNode *> * _Nonnull)value;
|
|
844
1161
|
- (void)appendChild:(MasonNode * _Nonnull)child;
|
|
1162
|
+
- (void)removeAllChildren;
|
|
845
1163
|
@end
|
|
846
1164
|
|
|
847
1165
|
typedef SWIFT_ENUM_NAMED(int32_t, MasonNodeType, "MasonNodeType", open) {
|
|
@@ -850,7 +1168,7 @@ typedef SWIFT_ENUM_NAMED(int32_t, MasonNodeType, "MasonNodeType", open) {
|
|
|
850
1168
|
MasonNodeTypeDocument = 2,
|
|
851
1169
|
};
|
|
852
1170
|
|
|
853
|
-
|
|
1171
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonOverflow)
|
|
854
1172
|
SWIFT_CLASS_NAMED("MasonOverflowPointCompat")
|
|
855
1173
|
@interface MasonOverflowPointCompat : NSObject
|
|
856
1174
|
@property (nonatomic) enum MasonOverflow x;
|
|
@@ -860,23 +1178,45 @@ SWIFT_CLASS_NAMED("MasonOverflowPointCompat")
|
|
|
860
1178
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
861
1179
|
@end
|
|
862
1180
|
|
|
1181
|
+
SWIFT_CLASS_NAMED("MasonRectHelper")
|
|
1182
|
+
@interface MasonRectHelper : NSObject
|
|
1183
|
+
@property (nonatomic, readonly) float top;
|
|
1184
|
+
@property (nonatomic, readonly) float right;
|
|
1185
|
+
@property (nonatomic, readonly) float bottom;
|
|
1186
|
+
@property (nonatomic, readonly) float left;
|
|
1187
|
+
- (BOOL)isEmpty SWIFT_WARN_UNUSED_RESULT;
|
|
1188
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1189
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1190
|
+
@end
|
|
1191
|
+
|
|
1192
|
+
SWIFT_CLASS_NAMED("MasonSizeHelper")
|
|
1193
|
+
@interface MasonSizeHelper : NSObject
|
|
1194
|
+
@property (nonatomic, readonly) float width;
|
|
1195
|
+
@property (nonatomic, readonly) float height;
|
|
1196
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1197
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1198
|
+
@end
|
|
1199
|
+
|
|
863
1200
|
@class NSCFontFace;
|
|
864
1201
|
@class MasonVerticalAlignValue;
|
|
865
|
-
|
|
1202
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonObjectFit)
|
|
866
1203
|
@class UIColor;
|
|
867
|
-
|
|
1204
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextJustify)
|
|
868
1205
|
@class MasonTextOverflowCompat;
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
1206
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextTransform)
|
|
1207
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonWhiteSpace)
|
|
1208
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextWrap)
|
|
1209
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonPosition)
|
|
1210
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextAlign)
|
|
874
1211
|
SWIFT_CLASS_NAMED("MasonStyle")
|
|
875
1212
|
@interface MasonStyle : NSObject
|
|
876
1213
|
@property (nonatomic, readonly, strong) NSCFontFace * _Null_unspecified font;
|
|
877
|
-
|
|
878
|
-
@property (nonatomic, strong) NSMutableData * _Nonnull
|
|
1214
|
+
- (void)prepareMut;
|
|
1215
|
+
@property (nonatomic, readonly, strong) NSMutableData * _Nonnull values;
|
|
879
1216
|
- (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)node OBJC_DESIGNATED_INITIALIZER;
|
|
1217
|
+
@property (nonatomic) enum MasonListStylePosition listStylePosition;
|
|
1218
|
+
@property (nonatomic) enum MasonListStyleType listStyleType;
|
|
1219
|
+
@property (nonatomic) int32_t zIndex;
|
|
880
1220
|
@property (nonatomic, strong) MasonVerticalAlignValue * _Nonnull verticalAlign;
|
|
881
1221
|
@property (nonatomic) enum MasonObjectFit objectFit;
|
|
882
1222
|
@property (nonatomic, getter=float, setter=setFloat:) enum MasonFloat float_;
|
|
@@ -898,8 +1238,10 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
898
1238
|
- (void)setLineHeight:(float)value :(BOOL)isRelative;
|
|
899
1239
|
@property (nonatomic) float lineHeight;
|
|
900
1240
|
@property (nonatomic) float letterSpacing;
|
|
1241
|
+
@property (nonatomic, copy) NSString * _Nonnull fontVariantNumericString;
|
|
901
1242
|
@property (nonatomic) uint32_t decorationColor;
|
|
902
1243
|
- (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
|
|
1244
|
+
- (void)setDecorationColorWithCss:(NSString * _Nonnull)color;
|
|
903
1245
|
@property (nonatomic) enum MasonDecorationLine decorationLine;
|
|
904
1246
|
@property (nonatomic) int32_t fontSize;
|
|
905
1247
|
- (void)setFontStyle:(enum MasonFontStyle)style :(int32_t)slant;
|
|
@@ -944,8 +1286,21 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
944
1286
|
- (void)setPaddingBottom:(float)value :(NSInteger)type;
|
|
945
1287
|
- (void)setPaddingWithValueType:(float)value :(NSInteger)type;
|
|
946
1288
|
@property (nonatomic, copy) NSString * _Nonnull textShadow;
|
|
1289
|
+
@property (nonatomic, copy) NSString * _Nonnull boxShadow;
|
|
947
1290
|
@property (nonatomic, copy) NSString * _Nonnull borderRadius;
|
|
1291
|
+
@property (nonatomic, copy) NSString * _Nonnull cornerShape;
|
|
1292
|
+
@property (nonatomic, copy) NSString * _Nonnull cornerShapeTopLeft;
|
|
1293
|
+
@property (nonatomic, copy) NSString * _Nonnull cornerShapeTopRight;
|
|
1294
|
+
@property (nonatomic, copy) NSString * _Nonnull cornerShapeBottomRight;
|
|
1295
|
+
@property (nonatomic, copy) NSString * _Nonnull cornerShapeBottomLeft;
|
|
948
1296
|
@property (nonatomic, copy) NSString * _Nonnull border;
|
|
1297
|
+
@property (nonatomic, copy) NSString * _Nonnull paddingCss;
|
|
1298
|
+
@property (nonatomic, copy) NSString * _Nonnull marginCss;
|
|
1299
|
+
@property (nonatomic, copy) NSString * _Nonnull insetCss;
|
|
1300
|
+
@property (nonatomic, copy) NSString * _Nonnull borderLeft;
|
|
1301
|
+
@property (nonatomic, copy) NSString * _Nonnull borderTop;
|
|
1302
|
+
@property (nonatomic, copy) NSString * _Nonnull borderRight;
|
|
1303
|
+
@property (nonatomic, copy) NSString * _Nonnull borderBottom;
|
|
949
1304
|
@property (nonatomic, strong) MasonLengthPercentageRectCompat * _Nonnull borderWidthCompat;
|
|
950
1305
|
- (void)setBorderLeftWidth:(float)value :(NSInteger)type;
|
|
951
1306
|
- (void)setBorderRightWidth:(float)value :(NSInteger)type;
|
|
@@ -969,6 +1324,7 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
969
1324
|
- (void)setSizeWidth:(float)value :(NSInteger)type;
|
|
970
1325
|
- (void)setSizeHeight:(float)value :(NSInteger)type;
|
|
971
1326
|
- (void)setSizeWidthHeight:(float)value :(NSInteger)type;
|
|
1327
|
+
- (void)setSizePoints:(float)width :(float)height;
|
|
972
1328
|
@property (nonatomic, strong) MasonDimensionSizeCompat * _Nonnull maxSizeCompat;
|
|
973
1329
|
- (void)setMaxSizeWidth:(float)value :(NSInteger)type;
|
|
974
1330
|
- (void)setMaxSizeHeight:(float)value :(NSInteger)type;
|
|
@@ -980,6 +1336,7 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
980
1336
|
- (void)setColumnGap:(float)value :(NSInteger)type;
|
|
981
1337
|
@property (nonatomic, copy) NSString * _Nonnull gridArea;
|
|
982
1338
|
@property (nonatomic, copy) NSString * _Nonnull gridTemplateAreas;
|
|
1339
|
+
@property (nonatomic, copy) NSString * _Nonnull transform;
|
|
983
1340
|
@property (nonatomic, copy) NSString * _Nonnull gridAutoRows;
|
|
984
1341
|
@property (nonatomic, copy) NSString * _Nonnull gridAutoColumns;
|
|
985
1342
|
@property (nonatomic) enum MasonGridAutoFlowWrap gridAutoFlow;
|
|
@@ -991,13 +1348,16 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
991
1348
|
@property (nonatomic, copy) NSString * _Nonnull gridRowEnd;
|
|
992
1349
|
@property (nonatomic, copy) NSString * _Nonnull gridTemplateRows;
|
|
993
1350
|
@property (nonatomic, copy) NSString * _Nonnull gridTemplateColumns;
|
|
1351
|
+
@property (nonatomic, copy) NSString * _Nonnull borderImage;
|
|
1352
|
+
@property (nonatomic, copy) NSString * _Nonnull backdropFilter;
|
|
1353
|
+
@property (nonatomic, copy) NSString * _Nonnull fontFeatureSettings;
|
|
994
1354
|
- (void)updateNativeStyle;
|
|
995
1355
|
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
|
|
996
1356
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
997
1357
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
998
1358
|
@end
|
|
999
1359
|
|
|
1000
|
-
|
|
1360
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextType)
|
|
1001
1361
|
SWIFT_CLASS_NAMED("MasonText")
|
|
1002
1362
|
@interface MasonText : UIView <MasonElementObjc, MasonTextContainer>
|
|
1003
1363
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
@@ -1006,15 +1366,19 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
1006
1366
|
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layerClass;)
|
|
1007
1367
|
+ (Class _Nonnull)layerClass SWIFT_WARN_UNUSED_RESULT;
|
|
1008
1368
|
@property (nonatomic, readonly, strong) NSMutableData * _Nonnull textValues;
|
|
1009
|
-
- (void)
|
|
1369
|
+
- (void)onStyleChange:(uint64_t)low :(uint64_t)high;
|
|
1010
1370
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
1011
1371
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
1012
1372
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason type:(enum MasonTextType)textType OBJC_DESIGNATED_INITIALIZER;
|
|
1013
1373
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason OBJC_DESIGNATED_INITIALIZER;
|
|
1014
1374
|
- (void)setNeedsDisplay;
|
|
1015
1375
|
- (void)requestLayout;
|
|
1376
|
+
- (void)layoutSubviews;
|
|
1016
1377
|
- (void)addView:(UIView * _Nonnull)view;
|
|
1017
1378
|
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
1379
|
+
- (void)removeView:(UIView * _Nonnull)view;
|
|
1380
|
+
- (void)removeViewAt:(NSInteger)index;
|
|
1381
|
+
- (void)removeAllViews;
|
|
1018
1382
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
1019
1383
|
@property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
|
|
1020
1384
|
@property (nonatomic) uint32_t color;
|
|
@@ -1046,6 +1410,49 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layer
|
|
|
1046
1410
|
- (MasonNode * _Nullable)removeChild:(MasonNode * _Nonnull)child;
|
|
1047
1411
|
@end
|
|
1048
1412
|
|
|
1413
|
+
@class NSTextContainer;
|
|
1414
|
+
@class NSAttributedString;
|
|
1415
|
+
@class UIFont;
|
|
1416
|
+
@class UITextPosition;
|
|
1417
|
+
SWIFT_CLASS_NAMED("MasonTextInput")
|
|
1418
|
+
@interface MasonTextInput : UITextView <UITextViewDelegate>
|
|
1419
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame textContainer:(NSTextContainer * _Nullable)textContainer SWIFT_UNAVAILABLE;
|
|
1420
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
1421
|
+
@property (nonatomic, copy) NSString * _Nullable placeholder;
|
|
1422
|
+
@property (nonatomic, copy) NSString * _Null_unspecified text;
|
|
1423
|
+
@property (nonatomic, strong) NSAttributedString * _Null_unspecified attributedText;
|
|
1424
|
+
@property (nonatomic, strong) UIFont * _Nullable font;
|
|
1425
|
+
@property (nonatomic) NSTextAlignment textAlignment;
|
|
1426
|
+
- (void)layoutSubviews;
|
|
1427
|
+
- (void)textViewDidChange:(UITextView * _Nonnull)textView;
|
|
1428
|
+
- (void)textViewDidBeginEditing:(UITextView * _Nonnull)textView;
|
|
1429
|
+
- (void)textViewDidEndEditing:(UITextView * _Nonnull)textView;
|
|
1430
|
+
- (void)paste:(id _Nullable)sender;
|
|
1431
|
+
- (void)cut:(id _Nullable)sender;
|
|
1432
|
+
- (BOOL)textView:(UITextView * _Nonnull)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString * _Nonnull)text SWIFT_WARN_UNUSED_RESULT;
|
|
1433
|
+
- (CGRect)caretRectForPosition:(UITextPosition * _Nonnull)position SWIFT_WARN_UNUSED_RESULT;
|
|
1434
|
+
@end
|
|
1435
|
+
|
|
1436
|
+
SWIFT_CLASS_NAMED("MasonTextArea")
|
|
1437
|
+
@interface MasonTextArea : MasonTextInput <MasonElementObjc>
|
|
1438
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
1439
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
1440
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
1441
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
1442
|
+
@property (nonatomic) NSInteger rows;
|
|
1443
|
+
@property (nonatomic) NSInteger cols;
|
|
1444
|
+
@property (nonatomic, copy) NSString * _Nonnull name;
|
|
1445
|
+
@property (nonatomic) NSInteger maxLength;
|
|
1446
|
+
@property (nonatomic, copy) NSString * _Nonnull value;
|
|
1447
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc OBJC_DESIGNATED_INITIALIZER;
|
|
1448
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
|
|
1449
|
+
- (void)drawRect:(CGRect)rect;
|
|
1450
|
+
- (void)layoutSubviews;
|
|
1451
|
+
- (void)textViewDidChange:(UITextView * _Nonnull)textView;
|
|
1452
|
+
- (void)onStyleChange:(uint64_t)low :(uint64_t)high;
|
|
1453
|
+
- (BOOL)textView:(UITextView * _Nonnull)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString * _Nonnull)text SWIFT_WARN_UNUSED_RESULT;
|
|
1454
|
+
@end
|
|
1455
|
+
|
|
1049
1456
|
SWIFT_CLASS("_TtC5Mason14MasonTextLayer")
|
|
1050
1457
|
@interface MasonTextLayer : CALayer
|
|
1051
1458
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -1054,7 +1461,22 @@ SWIFT_CLASS("_TtC5Mason14MasonTextLayer")
|
|
|
1054
1461
|
- (void)drawInContext:(CGContextRef _Nonnull)context;
|
|
1055
1462
|
@end
|
|
1056
1463
|
|
|
1057
|
-
|
|
1464
|
+
SWIFT_CLASS_NAMED("MasonTextNode")
|
|
1465
|
+
@interface MasonTextNode : MasonNode <MasonCharacterData>
|
|
1466
|
+
@property (nonatomic, copy) NSString * _Nonnull data;
|
|
1467
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc data:(NSString * _Nonnull)text attributes:(NSDictionary<NSAttributedStringKey, id> * _Nullable)attrs OBJC_DESIGNATED_INITIALIZER;
|
|
1468
|
+
- (void)appendChild:(MasonNode * _Nonnull)child;
|
|
1469
|
+
@property (nonatomic, readonly) NSInteger length;
|
|
1470
|
+
- (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
|
|
1471
|
+
- (nonnull instancetype)appendData:(NSString * _Nonnull)s;
|
|
1472
|
+
- (nonnull instancetype)insertData:(NSString * _Nonnull)s at:(NSInteger)offset;
|
|
1473
|
+
- (nonnull instancetype)deleteDataWithOffset:(NSInteger)offset count:(NSInteger)count;
|
|
1474
|
+
- (nonnull instancetype)replaceDataWithOffset:(NSInteger)offset count:(NSInteger)count with:(NSString * _Nonnull)s;
|
|
1475
|
+
- (nonnull instancetype)deleteDataWithRange:(NSRange)range;
|
|
1476
|
+
- (nonnull instancetype)replaceDataWithRange:(NSRange)range with:(NSString * _Nonnull)s;
|
|
1477
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes SWIFT_UNAVAILABLE;
|
|
1478
|
+
@end
|
|
1479
|
+
|
|
1058
1480
|
@interface MasonTextNode (SWIFT_EXTENSION(Mason))
|
|
1059
1481
|
/// Get attributed string representation of this text node
|
|
1060
1482
|
- (NSAttributedString * _Nonnull)attributed SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -1075,6 +1497,10 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextType, "MasonTextType", open) {
|
|
|
1075
1497
|
MasonTextTypeBlockquote = 11,
|
|
1076
1498
|
MasonTextTypeB = 12,
|
|
1077
1499
|
MasonTextTypePre = 13,
|
|
1500
|
+
MasonTextTypeStrong = 14,
|
|
1501
|
+
MasonTextTypeEm = 15,
|
|
1502
|
+
MasonTextTypeI = 16,
|
|
1503
|
+
MasonTextTypeA = 17,
|
|
1078
1504
|
};
|
|
1079
1505
|
|
|
1080
1506
|
SWIFT_CLASS_NAMED("MasonUIView")
|
|
@@ -1083,15 +1509,22 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
1083
1509
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
1084
1510
|
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
1085
1511
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
1512
|
+
@property (nonatomic) CGSize contentSize;
|
|
1513
|
+
@property (nonatomic) CGPoint contentOffset;
|
|
1086
1514
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
1087
1515
|
- (void)markNodeDirty;
|
|
1088
1516
|
- (BOOL)isNodeDirty SWIFT_WARN_UNUSED_RESULT;
|
|
1517
|
+
- (void)layoutSubviews;
|
|
1518
|
+
- (void)willMoveToWindow:(UIWindow * _Nullable)newWindow;
|
|
1519
|
+
- (void)willMoveToSuperview:(UIView * _Nullable)newSuperview;
|
|
1089
1520
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
1090
1521
|
+ (MasonUIView * _Nonnull)createGridView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
1091
1522
|
+ (MasonUIView * _Nonnull)createFlexView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
1092
1523
|
+ (MasonUIView * _Nonnull)createBlockView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
1093
1524
|
- (void)addView:(UIView * _Nonnull)view;
|
|
1094
1525
|
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
1526
|
+
- (void)removeView:(UIView * _Nonnull)view;
|
|
1527
|
+
- (void)removeViewAt:(NSInteger)index;
|
|
1095
1528
|
- (void)addSubviews:(NSArray<UIView *> * _Nonnull)views;
|
|
1096
1529
|
- (void)addSubviews:(NSArray<UIView *> * _Nonnull)views at:(NSInteger)index;
|
|
1097
1530
|
@property (nonatomic) BOOL inBatch;
|
|
@@ -1127,7 +1560,7 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
1127
1560
|
@property (nonatomic, copy) NSString * _Nonnull gridRowEnd;
|
|
1128
1561
|
@property (nonatomic, copy) NSString * _Nonnull gridTemplateRows;
|
|
1129
1562
|
@property (nonatomic, copy) NSString * _Nonnull gridTemplateColumns;
|
|
1130
|
-
- (void)setPadding:(float)left :(float)
|
|
1563
|
+
- (void)setPadding:(float)left :(float)top :(float)right :(float)bottom;
|
|
1131
1564
|
- (MasonLengthPercentageRectCompat * _Nonnull)getPadding SWIFT_WARN_UNUSED_RESULT;
|
|
1132
1565
|
- (void)setPaddingLeft:(float)left :(NSInteger)type;
|
|
1133
1566
|
- (void)setPaddingRight:(float)right :(NSInteger)type;
|
|
@@ -1186,7 +1619,7 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
1186
1619
|
- (MasonDimensionCompat * _Nonnull)getMaxSizeWidth SWIFT_WARN_UNUSED_RESULT;
|
|
1187
1620
|
- (MasonDimensionCompat * _Nonnull)getMaxSizeHeight SWIFT_WARN_UNUSED_RESULT;
|
|
1188
1621
|
- (void)setGap:(float)width :(float)height;
|
|
1189
|
-
- (void)setGapWithWidthHeightType:(float)width :(
|
|
1622
|
+
- (void)setGapWithWidthHeightType:(float)width :(int8_t)width_type :(float)height :(int8_t)height_type;
|
|
1190
1623
|
- (MasonLengthPercentageSizeCompat * _Nonnull)getGap SWIFT_WARN_UNUSED_RESULT;
|
|
1191
1624
|
- (void)setRowGap:(float)row :(NSInteger)type;
|
|
1192
1625
|
- (void)setColumnGap:(float)column :(NSInteger)type;
|
|
@@ -1261,98 +1694,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing *
|
|
|
1261
1694
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1262
1695
|
@end
|
|
1263
1696
|
|
|
1264
|
-
|
|
1265
|
-
@interface NSCFontDescriptors : NSObject
|
|
1266
|
-
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
|
|
1267
|
-
- (void)update:(NSString * _Nonnull)value;
|
|
1268
|
-
- (void)setFontWeight:(NSString * _Nonnull)value;
|
|
1269
|
-
- (void)setFontStyle:(NSString * _Nonnull)value;
|
|
1270
|
-
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1271
|
-
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1272
|
-
@end
|
|
1273
|
-
|
|
1274
|
-
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontDisplay, "NSCFontDisplay", open) {
|
|
1275
|
-
NSCFontDisplayAuto = 0,
|
|
1276
|
-
NSCFontDisplayBlock = 1,
|
|
1277
|
-
NSCFontDisplayFallback = 2,
|
|
1278
|
-
NSCFontDisplayOptional = 3,
|
|
1279
|
-
NSCFontDisplaySwap = 4,
|
|
1280
|
-
};
|
|
1281
|
-
|
|
1282
|
-
@class NSData;
|
|
1283
|
-
enum NSCFontFaceStatus : NSInteger;
|
|
1284
|
-
enum NSCFontWeight : NSInteger;
|
|
1285
|
-
SWIFT_CLASS_NAMED("NSCFontFace")
|
|
1286
|
-
@interface NSCFontFace : NSObject
|
|
1287
|
-
@property (nonatomic, readonly) CGFontRef _Nullable font;
|
|
1288
|
-
@property (nonatomic, readonly, strong) NSData * _Nullable fontData;
|
|
1289
|
-
- (void)updateDescriptorWithValue:(NSString * _Nonnull)value;
|
|
1290
|
-
+ (NSCFontFace * _Nullable)loadFromStyleWithStyle:(NSString * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
1291
|
-
+ (void)importFromRemoteWithUrl:(NSString * _Nonnull)url load:(BOOL)load callback:(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nullable, NSString * _Nullable))callback;
|
|
1292
|
-
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
|
|
1293
|
-
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family owner:(MasonStyle * _Nonnull)style OBJC_DESIGNATED_INITIALIZER;
|
|
1294
|
-
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family source:(NSString * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
|
|
1295
|
-
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family data:(NSData * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
|
|
1296
|
-
- (nonnull instancetype)init:(NSString * _Nonnull)family :(NSString * _Nullable)source :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
|
|
1297
|
-
- (nonnull instancetype)init:(NSString * _Nonnull)family data:(NSData * _Nullable)data :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
|
|
1298
|
-
@property (nonatomic) enum NSCFontFaceStatus status;
|
|
1299
|
-
@property (nonatomic) enum NSCFontDisplay display;
|
|
1300
|
-
- (void)setFontDisplayWithValue:(NSString * _Nonnull)value;
|
|
1301
|
-
@property (nonatomic, copy) NSString * _Nonnull style;
|
|
1302
|
-
- (void)setFontStyleWithValue:(NSString * _Nonnull)value angle:(NSString * _Nullable)angle;
|
|
1303
|
-
@property (nonatomic) enum NSCFontWeight weight;
|
|
1304
|
-
- (void)setFontWeightWithValue:(NSString * _Nonnull)value;
|
|
1305
|
-
@property (nonatomic, readonly, copy) NSString * _Nonnull family;
|
|
1306
|
-
@property (nonatomic, readonly, copy) NSString * _Nonnull ascentOverride;
|
|
1307
|
-
@property (nonatomic, readonly, copy) NSString * _Nonnull descentOverride;
|
|
1308
|
-
- (void)load:(void (^ _Nonnull)(NSString * _Nullable))callback;
|
|
1309
|
-
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1310
|
-
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1311
|
-
@end
|
|
1312
|
-
|
|
1313
|
-
enum NSCFontFaceSetStatus : NSInteger;
|
|
1314
|
-
@class NSEnumerator;
|
|
1315
|
-
SWIFT_CLASS_NAMED("NSCFontFaceSet")
|
|
1316
|
-
@interface NSCFontFaceSet : NSObject
|
|
1317
|
-
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSCFontFaceSet * _Nonnull instance;)
|
|
1318
|
-
+ (NSCFontFaceSet * _Nonnull)instance SWIFT_WARN_UNUSED_RESULT;
|
|
1319
|
-
@property (nonatomic) enum NSCFontFaceSetStatus status;
|
|
1320
|
-
@property (nonatomic, copy) void (^ _Nullable onStatus)(enum NSCFontFaceSetStatus);
|
|
1321
|
-
- (NSEnumerator * _Nonnull)iter SWIFT_WARN_UNUSED_RESULT;
|
|
1322
|
-
- (NSArray * _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
|
|
1323
|
-
- (void)add:(NSCFontFace * _Nonnull)font;
|
|
1324
|
-
- (void)clear;
|
|
1325
|
-
- (void)delete:(NSCFontFace * _Nonnull)font;
|
|
1326
|
-
- (BOOL)check:(NSString * _Nonnull)font :(NSString * _Nullable)text SWIFT_WARN_UNUSED_RESULT;
|
|
1327
|
-
- (void)load:(NSString * _Nonnull)font :(NSString * _Nullable)text :(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nonnull, NSString * _Nullable))callback;
|
|
1328
|
-
@property (nonatomic, readonly) NSInteger size;
|
|
1329
|
-
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1330
|
-
@end
|
|
1331
|
-
|
|
1332
|
-
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceSetStatus, "NSCFontFaceSetStatus", open) {
|
|
1333
|
-
NSCFontFaceSetStatusLoading = 0,
|
|
1334
|
-
NSCFontFaceSetStatusLoaded = 1,
|
|
1335
|
-
};
|
|
1336
|
-
|
|
1337
|
-
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceStatus, "NSCFontFaceStatus", open) {
|
|
1338
|
-
NSCFontFaceStatusUnloaded = 0,
|
|
1339
|
-
NSCFontFaceStatusLoading = 1,
|
|
1340
|
-
NSCFontFaceStatusLoaded = 2,
|
|
1341
|
-
NSCFontFaceStatusError = 3,
|
|
1342
|
-
};
|
|
1343
|
-
|
|
1344
|
-
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontWeight, "NSCFontWeight", open) {
|
|
1345
|
-
NSCFontWeightThin = 0,
|
|
1346
|
-
NSCFontWeightExtraLight = 1,
|
|
1347
|
-
NSCFontWeightLight = 2,
|
|
1348
|
-
NSCFontWeightNormal = 3,
|
|
1349
|
-
NSCFontWeightMedium = 4,
|
|
1350
|
-
NSCFontWeightSemiBold = 5,
|
|
1351
|
-
NSCFontWeightBold = 6,
|
|
1352
|
-
NSCFontWeightExtraBold = 7,
|
|
1353
|
-
NSCFontWeightBlack = 8,
|
|
1354
|
-
};
|
|
1355
|
-
|
|
1697
|
+
@class NSUUID;
|
|
1356
1698
|
@class MasonScroll;
|
|
1357
1699
|
SWIFT_CLASS_NAMED("NSCMason")
|
|
1358
1700
|
@interface NSCMason : NSObject
|
|
@@ -1367,6 +1709,11 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
1367
1709
|
- (MasonStyle * _Nonnull)styleForView:(UIView * _Nonnull)view SWIFT_WARN_UNUSED_RESULT;
|
|
1368
1710
|
- (MasonStyle * _Nullable)styleForViewOrNode:(id _Nullable)viewOrNode SWIFT_WARN_UNUSED_RESULT;
|
|
1369
1711
|
- (MasonLayout * _Nonnull)layoutForView:(UIView * _Nonnull)view;
|
|
1712
|
+
- (NSUUID * _Nonnull)addEventListener:(MasonNode * _Nonnull)node :(NSString * _Nonnull)event :(void (^ _Nonnull)(MasonEvent * _Nonnull))listener;
|
|
1713
|
+
- (BOOL)removeEventListener:(MasonNode * _Nonnull)node :(NSString * _Nonnull)event id:(NSUUID * _Nonnull)id;
|
|
1714
|
+
- (BOOL)removeEventListener:(MasonNode * _Nonnull)node :(NSString * _Nonnull)event;
|
|
1715
|
+
- (void)dispatch:(MasonEvent * _Nonnull)event :(MasonNode * _Nonnull)node;
|
|
1716
|
+
@property (nonatomic, strong) MasonHTMLParser * _Nonnull htmlParser;
|
|
1370
1717
|
- (void)clear;
|
|
1371
1718
|
- (MasonDocument * _Nonnull)createDocument SWIFT_WARN_UNUSED_RESULT;
|
|
1372
1719
|
- (MasonUIView * _Nonnull)createView SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -1378,13 +1725,28 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
1378
1725
|
- (MasonButton * _Nonnull)createButton SWIFT_WARN_UNUSED_RESULT;
|
|
1379
1726
|
- (MasonNode * _Nonnull)createNode SWIFT_WARN_UNUSED_RESULT;
|
|
1380
1727
|
- (MasonBr * _Nonnull)createBr SWIFT_WARN_UNUSED_RESULT;
|
|
1728
|
+
- (MasonInput * _Nonnull)createInput:(enum MasonInputType)type SWIFT_WARN_UNUSED_RESULT;
|
|
1381
1729
|
- (void)printTree:(MasonNode * _Nonnull)node;
|
|
1382
1730
|
- (MasonNode * _Nonnull)createTextNode SWIFT_WARN_UNUSED_RESULT;
|
|
1383
1731
|
- (MasonNode * _Nonnull)createImageNode SWIFT_WARN_UNUSED_RESULT;
|
|
1732
|
+
- (MasonNode * _Nonnull)createButtonNode SWIFT_WARN_UNUSED_RESULT;
|
|
1733
|
+
- (MasonNode * _Nonnull)createLineBreakNode SWIFT_WARN_UNUSED_RESULT;
|
|
1734
|
+
- (MasonList * _Nonnull)createListViewWithIsOrdered:(BOOL)isOrdered SWIFT_WARN_UNUSED_RESULT;
|
|
1735
|
+
- (MasonNode * _Nonnull)createListItemNode SWIFT_WARN_UNUSED_RESULT;
|
|
1736
|
+
- (MasonLi * _Nonnull)createListItem SWIFT_WARN_UNUSED_RESULT;
|
|
1737
|
+
- (MasonTextArea * _Nonnull)createTextArea SWIFT_WARN_UNUSED_RESULT;
|
|
1738
|
+
@property (nonatomic) BOOL preflight;
|
|
1739
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) float scale;)
|
|
1740
|
+
+ (float)scale SWIFT_WARN_UNUSED_RESULT;
|
|
1384
1741
|
@end
|
|
1385
1742
|
|
|
1386
1743
|
@interface NSObject (SWIFT_EXTENSION(Mason))
|
|
1387
|
-
|
|
1744
|
+
@property (nonatomic, copy) NSString * _Nonnull mason_innerHTML;
|
|
1745
|
+
- (NSUUID * _Nonnull)mason_addEventListener:(NSString * _Nonnull)event :(void (^ _Nonnull)(MasonEvent * _Nonnull))listener;
|
|
1746
|
+
- (BOOL)mason_removeEventListener:(NSString * _Nonnull)event id:(NSUUID * _Nonnull)id;
|
|
1747
|
+
- (BOOL)mason_removeEventListener:(NSString * _Nonnull)event;
|
|
1748
|
+
- (void)mason_dispatch:(MasonEvent * _Nonnull)event;
|
|
1749
|
+
- (void)mason_syncStyle:(NSString * _Nonnull)low :(NSString * _Nonnull)high;
|
|
1388
1750
|
- (void)mason_addView:(UIView * _Nonnull)view;
|
|
1389
1751
|
- (void)mason_addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
1390
1752
|
- (void)mason_markNodeDirty;
|
|
@@ -1421,6 +1783,13 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
1421
1783
|
- (void)mason_replaceChildAtText:(NSString * _Nonnull)text :(NSInteger)index;
|
|
1422
1784
|
- (void)mason_replaceChildAtElement:(id <MasonElementObjc> _Nonnull)element :(NSInteger)index;
|
|
1423
1785
|
- (void)mason_replaceChildAtNode:(MasonNode * _Nonnull)node :(NSInteger)index;
|
|
1786
|
+
/// Remove the child node (view or text node) at <code>index</code> from the mason tree.
|
|
1787
|
+
/// Counterpart to <code>mason_addChildAt</code>; <code>MasonNode.removeChildAt</code> already
|
|
1788
|
+
/// handles both <code>MasonTextNode</code> and element children.
|
|
1789
|
+
- (void)mason_removeChildAt:(NSInteger)index;
|
|
1790
|
+
/// Remove a specific child node (e.g. the <code>MasonTextNode</code> a framework stamped
|
|
1791
|
+
/// onto its JS text node) without needing its index.
|
|
1792
|
+
- (void)mason_removeChildNode:(MasonNode * _Nonnull)node;
|
|
1424
1793
|
@end
|
|
1425
1794
|
|
|
1426
1795
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonObjectFit, "ObjectFit", open) {
|
|
@@ -1444,9 +1813,21 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonPosition, "Position", open) {
|
|
|
1444
1813
|
MasonPositionAbsolute = 1,
|
|
1445
1814
|
};
|
|
1446
1815
|
|
|
1816
|
+
typedef SWIFT_ENUM_NAMED(uint16_t, PseudoState, "PseudoState", open) {
|
|
1817
|
+
PseudoStateDefault = 0,
|
|
1818
|
+
PseudoStateHover = 0x01,
|
|
1819
|
+
PseudoStateActive = 0x02,
|
|
1820
|
+
PseudoStateFocus = 0x04,
|
|
1821
|
+
PseudoStateFocusWithin = 0x08,
|
|
1822
|
+
PseudoStateFocusVisible = 0x10,
|
|
1823
|
+
PseudoStateDisabled = 0x40,
|
|
1824
|
+
PseudoStateChecked = 0x80,
|
|
1825
|
+
};
|
|
1826
|
+
|
|
1447
1827
|
SWIFT_CLASS_NAMED("Scroll")
|
|
1448
1828
|
@interface MasonScroll : UIScrollView <MasonElementObjc, UIScrollViewDelegate>
|
|
1449
1829
|
- (void)drawRect:(CGRect)rect;
|
|
1830
|
+
- (void)layoutSubviews;
|
|
1450
1831
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
1451
1832
|
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
1452
1833
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
@@ -1456,6 +1837,8 @@ SWIFT_CLASS_NAMED("Scroll")
|
|
|
1456
1837
|
- (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
|
|
1457
1838
|
- (void)addView:(UIView * _Nonnull)view;
|
|
1458
1839
|
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
1840
|
+
- (void)removeView:(UIView * _Nonnull)view;
|
|
1841
|
+
- (void)removeViewAt:(NSInteger)index;
|
|
1459
1842
|
- (void)setSize:(float)width :(float)height;
|
|
1460
1843
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
1461
1844
|
@end
|
|
@@ -1558,6 +1941,19 @@ SWIFT_CLASS_NAMED("TrackSizingFunction")
|
|
|
1558
1941
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1559
1942
|
@end
|
|
1560
1943
|
|
|
1944
|
+
typedef SWIFT_ENUM(uint8_t, TransformOpType, open) {
|
|
1945
|
+
TransformOpTypeNone = 0,
|
|
1946
|
+
TransformOpTypeTranslate = 1,
|
|
1947
|
+
TransformOpTypeTranslateX = 2,
|
|
1948
|
+
TransformOpTypeTranslateY = 3,
|
|
1949
|
+
TransformOpTypeScale = 4,
|
|
1950
|
+
TransformOpTypeScaleX = 5,
|
|
1951
|
+
TransformOpTypeScaleY = 6,
|
|
1952
|
+
TransformOpTypeRotate = 7,
|
|
1953
|
+
TransformOpTypeSkewX = 8,
|
|
1954
|
+
TransformOpTypeSkewY = 9,
|
|
1955
|
+
};
|
|
1956
|
+
|
|
1561
1957
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonWhiteSpace, "WhiteSpace", open) {
|
|
1562
1958
|
MasonWhiteSpaceNormal = 0,
|
|
1563
1959
|
MasonWhiteSpacePre = 1,
|
|
@@ -1567,7 +1963,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonWhiteSpace, "WhiteSpace", open) {
|
|
|
1567
1963
|
MasonWhiteSpaceBreakSpaces = 5,
|
|
1568
1964
|
};
|
|
1569
1965
|
|
|
1570
|
-
#endif
|
|
1966
|
+
#endif // defined(__OBJC__)
|
|
1571
1967
|
#if __has_attribute(external_source_symbol)
|
|
1572
1968
|
# pragma clang attribute pop
|
|
1573
1969
|
#endif
|
|
@@ -1577,7 +1973,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonWhiteSpace, "WhiteSpace", open) {
|
|
|
1577
1973
|
#endif
|
|
1578
1974
|
|
|
1579
1975
|
#elif defined(__x86_64__) && __x86_64__
|
|
1580
|
-
// Generated by Apple Swift version 6.1
|
|
1976
|
+
// Generated by Apple Swift version 6.3.1 effective-5.10 (swiftlang-6.3.1.1.2 clang-2100.0.123.102)
|
|
1581
1977
|
#ifndef MASON_SWIFT_H
|
|
1582
1978
|
#define MASON_SWIFT_H
|
|
1583
1979
|
#pragma clang diagnostic push
|
|
@@ -1603,7 +1999,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonWhiteSpace, "WhiteSpace", open) {
|
|
|
1603
1999
|
#pragma clang diagnostic ignored "-Wauto-import"
|
|
1604
2000
|
#if defined(__OBJC__)
|
|
1605
2001
|
#include <Foundation/Foundation.h>
|
|
1606
|
-
#endif
|
|
2002
|
+
#endif // defined(__OBJC__)
|
|
1607
2003
|
#if defined(__cplusplus)
|
|
1608
2004
|
#include <cstdint>
|
|
1609
2005
|
#include <cstddef>
|
|
@@ -1772,13 +2168,32 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
1772
2168
|
# endif
|
|
1773
2169
|
#endif
|
|
1774
2170
|
#if !defined(SWIFT_ENUM)
|
|
1775
|
-
#
|
|
1776
|
-
#
|
|
1777
|
-
#
|
|
2171
|
+
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
2172
|
+
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
|
2173
|
+
# if __has_feature(generalized_swift_name)
|
|
2174
|
+
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
|
2175
|
+
# else
|
|
2176
|
+
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
|
2177
|
+
# endif
|
|
1778
2178
|
# else
|
|
2179
|
+
# define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
|
|
1779
2180
|
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
|
1780
2181
|
# endif
|
|
1781
2182
|
#endif
|
|
2183
|
+
#if !defined(SWIFT_ENUM_TAG)
|
|
2184
|
+
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
2185
|
+
# define SWIFT_ENUM_TAG enum
|
|
2186
|
+
# else
|
|
2187
|
+
# define SWIFT_ENUM_TAG
|
|
2188
|
+
# endif
|
|
2189
|
+
#endif
|
|
2190
|
+
#if !defined(SWIFT_ENUM_FWD_DECL)
|
|
2191
|
+
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
2192
|
+
# define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
|
|
2193
|
+
# else
|
|
2194
|
+
# define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
|
|
2195
|
+
# endif
|
|
2196
|
+
#endif
|
|
1782
2197
|
#if !defined(SWIFT_UNAVAILABLE)
|
|
1783
2198
|
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
|
|
1784
2199
|
#endif
|
|
@@ -1788,6 +2203,9 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
1788
2203
|
#if !defined(SWIFT_AVAILABILITY)
|
|
1789
2204
|
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
|
|
1790
2205
|
#endif
|
|
2206
|
+
#if !defined(SWIFT_AVAILABILITY_DOMAIN)
|
|
2207
|
+
# define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
|
|
2208
|
+
#endif
|
|
1791
2209
|
#if !defined(SWIFT_WEAK_IMPORT)
|
|
1792
2210
|
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
|
1793
2211
|
#endif
|
|
@@ -1853,6 +2271,49 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
1853
2271
|
# define SWIFT_IMPORT_STDLIB_SYMBOL
|
|
1854
2272
|
#endif
|
|
1855
2273
|
#endif
|
|
2274
|
+
#if !__has_feature(nullability)
|
|
2275
|
+
# define _Nonnull
|
|
2276
|
+
# define _Nullable
|
|
2277
|
+
# define _Null_unspecified
|
|
2278
|
+
#elif !defined(__OBJC__)
|
|
2279
|
+
# pragma clang diagnostic ignored "-Wnullability-extension"
|
|
2280
|
+
#endif
|
|
2281
|
+
#if !__has_feature(nullability_nullable_result)
|
|
2282
|
+
# define _Nullable_result _Nullable
|
|
2283
|
+
#endif
|
|
2284
|
+
#if __has_feature(objc_modules)
|
|
2285
|
+
#if __has_warning("-Watimport-in-framework-header")
|
|
2286
|
+
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
2287
|
+
#endif
|
|
2288
|
+
#endif
|
|
2289
|
+
|
|
2290
|
+
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
2291
|
+
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
2292
|
+
#if __has_warning("-Wpragma-clang-attribute")
|
|
2293
|
+
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
|
2294
|
+
#endif
|
|
2295
|
+
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
2296
|
+
#pragma clang diagnostic ignored "-Wnullability"
|
|
2297
|
+
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
2298
|
+
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
|
2299
|
+
|
|
2300
|
+
#if __has_attribute(external_source_symbol)
|
|
2301
|
+
# pragma push_macro("any")
|
|
2302
|
+
# undef any
|
|
2303
|
+
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="Mason",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
|
2304
|
+
# pragma pop_macro("any")
|
|
2305
|
+
#endif
|
|
2306
|
+
|
|
2307
|
+
#if defined(__cplusplus)
|
|
2308
|
+
extern "C" {
|
|
2309
|
+
#endif
|
|
2310
|
+
|
|
2311
|
+
#if defined(__cplusplus)
|
|
2312
|
+
} // extern "C"
|
|
2313
|
+
#endif
|
|
2314
|
+
#if __has_attribute(external_source_symbol)
|
|
2315
|
+
# pragma clang attribute pop
|
|
2316
|
+
#endif
|
|
1856
2317
|
#if defined(__OBJC__)
|
|
1857
2318
|
#if __has_feature(objc_modules)
|
|
1858
2319
|
#if __has_warning("-Watimport-in-framework-header")
|
|
@@ -1866,7 +2327,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
1866
2327
|
@import UIKit;
|
|
1867
2328
|
#endif
|
|
1868
2329
|
|
|
1869
|
-
#endif
|
|
2330
|
+
#endif // defined(__OBJC__)
|
|
1870
2331
|
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
1871
2332
|
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
1872
2333
|
#if __has_warning("-Wpragma-clang-attribute")
|
|
@@ -1949,7 +2410,7 @@ SWIFT_PROTOCOL_NAMED("TextContainer")
|
|
|
1949
2410
|
@protocol MasonTextContainer <NSObject>
|
|
1950
2411
|
@property (nonatomic, readonly, strong) MasonTextEngine * _Nonnull engine;
|
|
1951
2412
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
1952
|
-
- (void)
|
|
2413
|
+
- (void)onStyleChange:(uint64_t)low :(uint64_t)high;
|
|
1953
2414
|
@end
|
|
1954
2415
|
|
|
1955
2416
|
@class MasonStyle;
|
|
@@ -1976,20 +2437,26 @@ SWIFT_CLASS_NAMED("Button")
|
|
|
1976
2437
|
- (void)requestLayout;
|
|
1977
2438
|
- (void)addView:(UIView * _Nonnull)view;
|
|
1978
2439
|
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
2440
|
+
- (void)removeView:(UIView * _Nonnull)view;
|
|
2441
|
+
- (void)removeViewAt:(NSInteger)index;
|
|
2442
|
+
- (void)removeAllViews;
|
|
2443
|
+
- (void)layoutSubviews;
|
|
1979
2444
|
- (void)drawRect:(CGRect)rect;
|
|
1980
2445
|
@property (nonatomic, readonly, strong) NSMutableData * _Nonnull textValues;
|
|
1981
|
-
- (void)
|
|
2446
|
+
- (void)onStyleChange:(uint64_t)low :(uint64_t)high;
|
|
1982
2447
|
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
|
|
1983
2448
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
1984
2449
|
@end
|
|
1985
2450
|
|
|
1986
2451
|
@class UITouch;
|
|
1987
2452
|
@class UIEvent;
|
|
2453
|
+
@class UIWindow;
|
|
1988
2454
|
@interface MasonButton (SWIFT_EXTENSION(Mason))
|
|
1989
2455
|
- (void)touchesBegan:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
|
|
1990
|
-
- (void)touchesMoved:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
|
|
1991
2456
|
- (void)touchesEnded:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
|
|
1992
2457
|
- (void)touchesCancelled:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
|
|
2458
|
+
- (void)touchesMoved:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
|
|
2459
|
+
- (void)willMoveToWindow:(UIWindow * _Nullable)newWindow;
|
|
1993
2460
|
@end
|
|
1994
2461
|
|
|
1995
2462
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonClear, "Clear", open) {
|
|
@@ -2057,7 +2524,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonGridAutoFlowWrap, "GridAutoFlow", open)
|
|
|
2057
2524
|
MasonGridAutoFlowWrapColumnDense = 3,
|
|
2058
2525
|
};
|
|
2059
2526
|
|
|
2060
|
-
|
|
2527
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonGridPlacementCompatType)
|
|
2061
2528
|
SWIFT_CLASS_NAMED("GridPlacementCompat")
|
|
2062
2529
|
@interface GridPlacementCompat : NSObject
|
|
2063
2530
|
- (nonnull instancetype)initWithSpan:(int16_t)span OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -2092,7 +2559,16 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonGridTra
|
|
|
2092
2559
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2093
2560
|
@end
|
|
2094
2561
|
|
|
2095
|
-
|
|
2562
|
+
SWIFT_CLASS_NAMED("HTMLParser")
|
|
2563
|
+
@interface MasonHTMLParser : NSObject
|
|
2564
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason OBJC_DESIGNATED_INITIALIZER;
|
|
2565
|
+
/// Parses an HTML string and returns a list of root-level MasonElement/MasonNode children.
|
|
2566
|
+
- (NSArray<MasonNode *> * _Nonnull)parse:(NSString * _Nonnull)html SWIFT_WARN_UNUSED_RESULT;
|
|
2567
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2568
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2569
|
+
@end
|
|
2570
|
+
|
|
2571
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonLoadingState)
|
|
2096
2572
|
@class UIImage;
|
|
2097
2573
|
SWIFT_CLASS_NAMED("Img")
|
|
2098
2574
|
@interface MasonImg : UIView <MasonElementObjc>
|
|
@@ -2108,6 +2584,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layer
|
|
|
2108
2584
|
- (void)requestLayout;
|
|
2109
2585
|
@property (nonatomic, copy) NSString * _Nullable src;
|
|
2110
2586
|
- (void)updateImage:(UIImage * _Nullable)image;
|
|
2587
|
+
- (void)layoutSubviews;
|
|
2111
2588
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
2112
2589
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
2113
2590
|
@end
|
|
@@ -2162,75 +2639,50 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonLineHeight, "LineHeight", open) {
|
|
|
2162
2639
|
MasonLineHeightPreLine = 3,
|
|
2163
2640
|
};
|
|
2164
2641
|
|
|
2642
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonListStylePosition, "ListStylePosition", open) {
|
|
2643
|
+
MasonListStylePositionOutside = 0,
|
|
2644
|
+
MasonListStylePositionInside = 1,
|
|
2645
|
+
};
|
|
2646
|
+
|
|
2647
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonListStyleType, "ListStyleType", open) {
|
|
2648
|
+
MasonListStyleTypeNone = 0,
|
|
2649
|
+
MasonListStyleTypeCustom = 1,
|
|
2650
|
+
MasonListStyleTypeDisc = 2,
|
|
2651
|
+
MasonListStyleTypeCircle = 3,
|
|
2652
|
+
MasonListStyleTypeSquare = 4,
|
|
2653
|
+
MasonListStyleTypeDecimal = 5,
|
|
2654
|
+
};
|
|
2655
|
+
|
|
2165
2656
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonLoadingState, "LoadingState", open) {
|
|
2166
2657
|
MasonLoadingStateLoading = 0,
|
|
2167
2658
|
MasonLoadingStateLoaded = 1,
|
|
2168
2659
|
MasonLoadingStateError = 2,
|
|
2169
2660
|
};
|
|
2170
2661
|
|
|
2171
|
-
|
|
2172
|
-
@
|
|
2173
|
-
@property (nonatomic, copy) NSString * _Nonnull data;
|
|
2174
|
-
@property (nonatomic, readonly) NSInteger length;
|
|
2175
|
-
- (nonnull instancetype)appendData:(NSString * _Nonnull)s;
|
|
2176
|
-
- (nonnull instancetype)insertData:(NSString * _Nonnull)s at:(NSInteger)offset;
|
|
2177
|
-
- (nonnull instancetype)deleteDataWithOffset:(NSInteger)offset count:(NSInteger)count;
|
|
2178
|
-
- (nonnull instancetype)replaceDataWithOffset:(NSInteger)offset count:(NSInteger)count with:(NSString * _Nonnull)s;
|
|
2179
|
-
- (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
|
|
2180
|
-
- (nonnull instancetype)deleteDataWithRange:(NSRange)range;
|
|
2181
|
-
- (nonnull instancetype)replaceDataWithRange:(NSRange)range with:(NSString * _Nonnull)s;
|
|
2182
|
-
@end
|
|
2183
|
-
|
|
2184
|
-
@class MasonLayout;
|
|
2185
|
-
@class MasonDocument;
|
|
2186
|
-
enum MasonNodeType : int32_t;
|
|
2187
|
-
SWIFT_CLASS_NAMED("MasonNode")
|
|
2188
|
-
@interface MasonNode : NSObject
|
|
2662
|
+
SWIFT_CLASS_NAMED("MasonBr")
|
|
2663
|
+
@interface MasonBr : NSObject <MasonElementObjc>
|
|
2189
2664
|
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
2190
|
-
@property (nonatomic,
|
|
2191
|
-
@property (nonatomic,
|
|
2192
|
-
@property (nonatomic, readonly)
|
|
2193
|
-
@property (nonatomic, readonly, strong) MasonLayout * _Nonnull computedLayout;
|
|
2194
|
-
@property (nonatomic, readonly, strong) MasonDocument * _Nullable document;
|
|
2195
|
-
- (MasonNode * _Nonnull)getRootNode SWIFT_WARN_UNUSED_RESULT;
|
|
2196
|
-
@property (nonatomic, readonly, strong) MasonNode * _Nullable parent;
|
|
2197
|
-
@property (nonatomic, readonly, strong) MasonNode * _Nullable parentNode;
|
|
2198
|
-
@property (nonatomic, readonly) enum MasonNodeType type;
|
|
2199
|
-
- (NSArray<MasonNode *> * _Nonnull)getChildren SWIFT_WARN_UNUSED_RESULT;
|
|
2200
|
-
- (NSArray<MasonNode *> * _Nonnull)getLayoutChildren SWIFT_WARN_UNUSED_RESULT;
|
|
2201
|
-
@property (nonatomic) BOOL inBatch;
|
|
2202
|
-
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes OBJC_DESIGNATED_INITIALIZER;
|
|
2203
|
-
@property (nonatomic, readonly) BOOL isDirty;
|
|
2204
|
-
- (void)markDirty;
|
|
2205
|
-
- (UIView * _Nullable)getRoot SWIFT_WARN_UNUSED_RESULT;
|
|
2206
|
-
/// Helper to get default text attributes for new text nodes
|
|
2207
|
-
- (NSDictionary<NSAttributedStringKey, id> * _Nonnull)getDefaultAttributes SWIFT_WARN_UNUSED_RESULT;
|
|
2665
|
+
@property (nonatomic, strong) MasonNode * _Nonnull node;
|
|
2666
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
2667
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
2208
2668
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2209
2669
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2210
2670
|
@end
|
|
2211
2671
|
|
|
2212
|
-
|
|
2213
|
-
@
|
|
2672
|
+
SWIFT_PROTOCOL("_TtP5Mason18MasonCharacterData_")
|
|
2673
|
+
@protocol MasonCharacterData
|
|
2214
2674
|
@property (nonatomic, copy) NSString * _Nonnull data;
|
|
2215
|
-
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc data:(NSString * _Nonnull)text attributes:(NSDictionary<NSAttributedStringKey, id> * _Nullable)attrs OBJC_DESIGNATED_INITIALIZER;
|
|
2216
|
-
- (void)appendChild:(MasonNode * _Nonnull)child;
|
|
2217
2675
|
@property (nonatomic, readonly) NSInteger length;
|
|
2218
|
-
- (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
|
|
2219
2676
|
- (nonnull instancetype)appendData:(NSString * _Nonnull)s;
|
|
2220
2677
|
- (nonnull instancetype)insertData:(NSString * _Nonnull)s at:(NSInteger)offset;
|
|
2221
2678
|
- (nonnull instancetype)deleteDataWithOffset:(NSInteger)offset count:(NSInteger)count;
|
|
2222
2679
|
- (nonnull instancetype)replaceDataWithOffset:(NSInteger)offset count:(NSInteger)count with:(NSString * _Nonnull)s;
|
|
2680
|
+
- (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
|
|
2223
2681
|
- (nonnull instancetype)deleteDataWithRange:(NSRange)range;
|
|
2224
2682
|
- (nonnull instancetype)replaceDataWithRange:(NSRange)range with:(NSString * _Nonnull)s;
|
|
2225
|
-
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes SWIFT_UNAVAILABLE;
|
|
2226
2683
|
@end
|
|
2227
2684
|
|
|
2228
|
-
|
|
2229
|
-
@interface MasonBr : MasonTextNode
|
|
2230
|
-
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc data:(NSString * _Nonnull)text attributes:(NSDictionary<NSAttributedStringKey, id> * _Nullable)attrs OBJC_DESIGNATED_INITIALIZER;
|
|
2231
|
-
@end
|
|
2232
|
-
|
|
2233
|
-
enum MasonDimensionCompatType : NSInteger;
|
|
2685
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonDimensionCompatType)
|
|
2234
2686
|
SWIFT_CLASS_NAMED("MasonDimensionCompat")
|
|
2235
2687
|
@interface MasonDimensionCompat : NSObject
|
|
2236
2688
|
- (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -2289,6 +2741,44 @@ SWIFT_CLASS_NAMED("MasonDocument")
|
|
|
2289
2741
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2290
2742
|
@end
|
|
2291
2743
|
|
|
2744
|
+
@class MasonEventOptions;
|
|
2745
|
+
SWIFT_CLASS_NAMED("MasonEvent")
|
|
2746
|
+
@interface MasonEvent : NSObject
|
|
2747
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull type;
|
|
2748
|
+
@property (nonatomic, readonly) BOOL bubbles;
|
|
2749
|
+
@property (nonatomic, readonly) BOOL cancelable;
|
|
2750
|
+
@property (nonatomic, readonly) BOOL isComposing;
|
|
2751
|
+
@property (nonatomic, readonly) double timeStamp;
|
|
2752
|
+
@property (nonatomic, readonly) BOOL defaultPrevented;
|
|
2753
|
+
@property (nonatomic, readonly) BOOL propagationStopped;
|
|
2754
|
+
@property (nonatomic, readonly) BOOL immediatePropagationStopped;
|
|
2755
|
+
@property (nonatomic, readonly) id _Nullable target;
|
|
2756
|
+
@property (nonatomic, readonly) id _Nullable currentTarget;
|
|
2757
|
+
- (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options OBJC_DESIGNATED_INITIALIZER;
|
|
2758
|
+
- (void)preventDefault;
|
|
2759
|
+
- (void)stopPropagation;
|
|
2760
|
+
- (void)stopImmediatePropagation;
|
|
2761
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2762
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2763
|
+
@end
|
|
2764
|
+
|
|
2765
|
+
SWIFT_CLASS_NAMED("MasonEventOptions")
|
|
2766
|
+
@interface MasonEventOptions : NSObject
|
|
2767
|
+
@property (nonatomic) BOOL isComposing;
|
|
2768
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
2769
|
+
- (nonnull instancetype)initWithIsComposing:(BOOL)isComposing OBJC_DESIGNATED_INITIALIZER;
|
|
2770
|
+
@end
|
|
2771
|
+
|
|
2772
|
+
@class NSURL;
|
|
2773
|
+
SWIFT_CLASS_NAMED("MasonFileInputEvent")
|
|
2774
|
+
@interface MasonFileInputEvent : MasonEvent
|
|
2775
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable data;
|
|
2776
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable inputType;
|
|
2777
|
+
@property (nonatomic, readonly, copy) NSArray<NSURL *> * _Nonnull rawData;
|
|
2778
|
+
- (nonnull instancetype)initWithType:(NSString * _Nonnull)type data:(NSString * _Nullable)inputData inputType:(NSString * _Nullable)masonInputType options:(MasonEventOptions * _Nullable)options rawData:(NSArray<NSURL *> * _Nonnull)inputRawData OBJC_DESIGNATED_INITIALIZER;
|
|
2779
|
+
- (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options SWIFT_UNAVAILABLE;
|
|
2780
|
+
@end
|
|
2781
|
+
|
|
2292
2782
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonFloat, "MasonFloat", open) {
|
|
2293
2783
|
MasonFloatNone = 0,
|
|
2294
2784
|
MasonFloatLeft = 1,
|
|
@@ -2298,28 +2788,101 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonFloat, "MasonFloat", open) {
|
|
|
2298
2788
|
SWIFT_CLASS("_TtC5Mason15MasonImageLayer")
|
|
2299
2789
|
@interface MasonImageLayer : CALayer
|
|
2300
2790
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
2301
|
-
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
2302
2791
|
- (nonnull instancetype)initWithLayer:(id _Nonnull)layer OBJC_DESIGNATED_INITIALIZER;
|
|
2792
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
2303
2793
|
- (void)drawInContext:(CGContextRef _Nonnull)context;
|
|
2794
|
+
- (void)layoutSublayers;
|
|
2304
2795
|
@end
|
|
2305
2796
|
|
|
2797
|
+
SWIFT_ENUM_FWD_DECL(int8_t, MasonInputType)
|
|
2798
|
+
@class NSDate;
|
|
2799
|
+
SWIFT_CLASS_NAMED("MasonInput")
|
|
2800
|
+
@interface MasonInput : UIView
|
|
2801
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
2802
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
2803
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
2804
|
+
@property (nonatomic) BOOL multiple;
|
|
2805
|
+
@property (nonatomic, copy) NSString * _Nonnull accept;
|
|
2806
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
2807
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
2808
|
+
@property (nonatomic) enum MasonInputType type;
|
|
2809
|
+
@property (nonatomic) int32_t size;
|
|
2810
|
+
@property (nonatomic, copy) NSString * _Nonnull value;
|
|
2811
|
+
@property (nonatomic) double valueAsNumber;
|
|
2812
|
+
@property (nonatomic, copy) NSDate * _Nullable valueAsDate;
|
|
2813
|
+
@property (nonatomic, copy) NSString * _Nonnull placeholder;
|
|
2814
|
+
- (void)drawRect:(CGRect)rect;
|
|
2815
|
+
- (void)layoutSubviews;
|
|
2816
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
2817
|
+
@end
|
|
2818
|
+
|
|
2819
|
+
SWIFT_CLASS_NAMED("MasonInputEvent")
|
|
2820
|
+
@interface MasonInputEvent : MasonEvent
|
|
2821
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable data;
|
|
2822
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable inputType;
|
|
2823
|
+
- (nonnull instancetype)initWithType:(NSString * _Nonnull)type data:(NSString * _Nullable)inputData inputType:(NSString * _Nullable)masonInputType options:(MasonEventOptions * _Nullable)options OBJC_DESIGNATED_INITIALIZER;
|
|
2824
|
+
- (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options SWIFT_UNAVAILABLE;
|
|
2825
|
+
@end
|
|
2826
|
+
|
|
2827
|
+
typedef SWIFT_ENUM_NAMED(int8_t, MasonInputType, "MasonInputType", open) {
|
|
2828
|
+
MasonInputTypeText = 0,
|
|
2829
|
+
MasonInputTypeButton = 1,
|
|
2830
|
+
MasonInputTypeCheckbox = 2,
|
|
2831
|
+
MasonInputTypeEmail = 3,
|
|
2832
|
+
MasonInputTypePassword = 4,
|
|
2833
|
+
MasonInputTypeDate = 5,
|
|
2834
|
+
MasonInputTypeRadio = 6,
|
|
2835
|
+
MasonInputTypeNumber = 7,
|
|
2836
|
+
MasonInputTypeRange = 8,
|
|
2837
|
+
MasonInputTypeTel = 9,
|
|
2838
|
+
MasonInputTypeUrl = 10,
|
|
2839
|
+
MasonInputTypeColor = 11,
|
|
2840
|
+
MasonInputTypeFile = 12,
|
|
2841
|
+
MasonInputTypeSubmit = 13,
|
|
2842
|
+
};
|
|
2843
|
+
|
|
2844
|
+
@class MasonRectHelper;
|
|
2845
|
+
@class MasonSizeHelper;
|
|
2306
2846
|
SWIFT_CLASS_NAMED("MasonLayout")
|
|
2307
2847
|
@interface MasonLayout : NSObject
|
|
2308
|
-
@property (nonatomic, readonly)
|
|
2848
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonLayout * _Nonnull empty;)
|
|
2849
|
+
+ (MasonLayout * _Nonnull)empty SWIFT_WARN_UNUSED_RESULT;
|
|
2309
2850
|
@property (nonatomic, readonly) float x;
|
|
2310
2851
|
@property (nonatomic, readonly) float y;
|
|
2311
2852
|
@property (nonatomic, readonly) float width;
|
|
2312
2853
|
@property (nonatomic, readonly) float height;
|
|
2313
|
-
@property (nonatomic, readonly
|
|
2314
|
-
|
|
2315
|
-
|
|
2854
|
+
@property (nonatomic, readonly) float borderTop;
|
|
2855
|
+
@property (nonatomic, readonly) float borderRight;
|
|
2856
|
+
@property (nonatomic, readonly) float borderBottom;
|
|
2857
|
+
@property (nonatomic, readonly) float borderLeft;
|
|
2858
|
+
@property (nonatomic, readonly) float marginTop;
|
|
2859
|
+
@property (nonatomic, readonly) float marginRight;
|
|
2860
|
+
@property (nonatomic, readonly) float marginBottom;
|
|
2861
|
+
@property (nonatomic, readonly) float marginLeft;
|
|
2862
|
+
@property (nonatomic, readonly) float paddingTop;
|
|
2863
|
+
@property (nonatomic, readonly) float paddingRight;
|
|
2864
|
+
@property (nonatomic, readonly) float paddingBottom;
|
|
2865
|
+
@property (nonatomic, readonly) float paddingLeft;
|
|
2866
|
+
@property (nonatomic, readonly) float contentWidth;
|
|
2867
|
+
@property (nonatomic, readonly) float contentHeight;
|
|
2868
|
+
@property (nonatomic, readonly) float scrollbarWidth;
|
|
2869
|
+
@property (nonatomic, readonly) float scrollbarHeight;
|
|
2870
|
+
@property (nonatomic, readonly) BOOL sizeIsEmpty;
|
|
2871
|
+
@property (nonatomic, readonly) BOOL paddingIsEmpty;
|
|
2872
|
+
@property (nonatomic, readonly) BOOL marginIsEmpty;
|
|
2873
|
+
@property (nonatomic, readonly) BOOL borderIsEmpty;
|
|
2874
|
+
@property (nonatomic, readonly, strong) MasonRectHelper * _Nonnull border;
|
|
2875
|
+
@property (nonatomic, readonly, strong) MasonRectHelper * _Nonnull margin;
|
|
2876
|
+
@property (nonatomic, readonly, strong) MasonRectHelper * _Nonnull padding;
|
|
2877
|
+
@property (nonatomic, readonly, strong) MasonSizeHelper * _Nonnull contentSize;
|
|
2878
|
+
@property (nonatomic, readonly, strong) MasonSizeHelper * _Nonnull scrollbarSize;
|
|
2316
2879
|
@property (nonatomic, readonly) BOOL hasChildren;
|
|
2317
|
-
@property (nonatomic, readonly, copy)
|
|
2880
|
+
@property (nonatomic, readonly, copy) NSArray<MasonLayout *> * _Nonnull children;
|
|
2318
2881
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2319
2882
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2320
2883
|
@end
|
|
2321
2884
|
|
|
2322
|
-
|
|
2885
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonLengthPercentageAutoCompatType)
|
|
2323
2886
|
SWIFT_CLASS_NAMED("MasonLengthPercentageAutoCompat")
|
|
2324
2887
|
@interface MasonLengthPercentageAutoCompat : NSObject
|
|
2325
2888
|
- (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -2369,7 +2932,7 @@ SWIFT_CLASS_NAMED("MasonLengthPercentageAutoSizeCompat")
|
|
|
2369
2932
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2370
2933
|
@end
|
|
2371
2934
|
|
|
2372
|
-
|
|
2935
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonLengthPercentageCompatType)
|
|
2373
2936
|
SWIFT_CLASS_NAMED("MasonLengthPercentageCompat")
|
|
2374
2937
|
@interface MasonLengthPercentageCompat : NSObject
|
|
2375
2938
|
- (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -2416,9 +2979,160 @@ SWIFT_CLASS_NAMED("MasonLengthPercentageSizeCompat")
|
|
|
2416
2979
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2417
2980
|
@end
|
|
2418
2981
|
|
|
2982
|
+
SWIFT_CLASS_NAMED("MasonLi")
|
|
2983
|
+
@interface MasonLi : UIView <MasonElementObjc>
|
|
2984
|
+
- (void)requestLayout;
|
|
2985
|
+
- (void)drawRect:(CGRect)rect;
|
|
2986
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
2987
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
2988
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
2989
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
2990
|
+
@property (nonatomic) BOOL isOrdered;
|
|
2991
|
+
- (void)layoutSubviews;
|
|
2992
|
+
/// Reset view state for recycling
|
|
2993
|
+
- (void)resetForRecycle;
|
|
2994
|
+
/// Set marker value and position for this list item
|
|
2995
|
+
- (void)bindWithPosition:(NSInteger)position isOrdered:(BOOL)isOrdered;
|
|
2996
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
2997
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
2998
|
+
@end
|
|
2999
|
+
|
|
3000
|
+
@protocol MasonListDelegate;
|
|
3001
|
+
@class UICollectionView;
|
|
3002
|
+
@class NSIndexPath;
|
|
3003
|
+
@class UICollectionViewCell;
|
|
3004
|
+
SWIFT_CLASS_NAMED("MasonList")
|
|
3005
|
+
@interface MasonList : UIView <MasonElementObjc, UICollectionViewDataSource, UICollectionViewDataSourcePrefetching, UICollectionViewDelegateFlowLayout>
|
|
3006
|
+
@property (nonatomic, strong) id <MasonListDelegate> _Nullable delegate;
|
|
3007
|
+
- (void)drawRect:(CGRect)rect;
|
|
3008
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
3009
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
3010
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
3011
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
3012
|
+
/// Static items keyed by their position in the overall list.
|
|
3013
|
+
/// Positions not in this dictionary are virtual (recycled via delegate).
|
|
3014
|
+
@property (nonatomic, readonly, copy) NSDictionary<NSNumber *, MasonLi *> * _Nonnull staticItems;
|
|
3015
|
+
/// Backward-compat: flat array of static views (unpositioned).
|
|
3016
|
+
/// Setting this clears staticItems and assigns positions 0..<array.count.
|
|
3017
|
+
@property (nonatomic, copy) NSArray<MasonLi *> * _Nonnull staticViews;
|
|
3018
|
+
@property (nonatomic, strong) NSMutableData * _Nonnull values;
|
|
3019
|
+
/// Virtual item count (set by user). Total count = staticItems.count + this value.
|
|
3020
|
+
@property (nonatomic) NSInteger count;
|
|
3021
|
+
- (void)layoutSubviews;
|
|
3022
|
+
- (void)registerWithCellClass:(Class _Nullable)cellClass forCellWithReuseIdentifier:(NSString * _Nonnull)identifier;
|
|
3023
|
+
/// Appends a static item at the end of the list (position = current count).
|
|
3024
|
+
- (void)addView:(MasonLi * _Nonnull)item;
|
|
3025
|
+
/// Inserts a static item at the given position, shifting existing entries at >= index.
|
|
3026
|
+
- (void)addView:(MasonLi * _Nonnull)item at:(NSInteger)index;
|
|
3027
|
+
- (void)reload;
|
|
3028
|
+
@property (nonatomic) BOOL isOrdered;
|
|
3029
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
3030
|
+
- (void)invalidateSizeCache;
|
|
3031
|
+
- (void)invalidateSizeCacheAt:(NSInteger)index;
|
|
3032
|
+
- (void)collectionView:(UICollectionView * _Nonnull)collectionView prefetchItemsAtIndexPaths:(NSArray<NSIndexPath *> * _Nonnull)indexPaths;
|
|
3033
|
+
- (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
|
|
3034
|
+
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView * _Nonnull)collectionView SWIFT_WARN_UNUSED_RESULT;
|
|
3035
|
+
- (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
|
|
3036
|
+
- (void)collectionView:(UICollectionView * _Nonnull)collectionView willDisplayCell:(UICollectionViewCell * _Nonnull)cell forItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
|
|
3037
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
3038
|
+
@end
|
|
3039
|
+
|
|
3040
|
+
SWIFT_PROTOCOL_NAMED("MasonListDelegate")
|
|
3041
|
+
@protocol MasonListDelegate
|
|
3042
|
+
- (UICollectionViewCell * _Nonnull)list:(UICollectionView * _Nonnull)list cellForItemAt:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
|
|
3043
|
+
- (void)list:(UICollectionView * _Nonnull)list willDisplay:(UICollectionViewCell * _Nonnull)cell forItemAt:(NSIndexPath * _Nonnull)indexPath;
|
|
3044
|
+
@end
|
|
3045
|
+
|
|
3046
|
+
@class UICollectionViewLayoutAttributes;
|
|
3047
|
+
SWIFT_CLASS_NAMED("MasonListCell")
|
|
3048
|
+
@interface MasonListCell : UICollectionViewCell
|
|
3049
|
+
@property (nonatomic, copy) void (^ _Nullable willMove)(MasonListCell * _Nonnull);
|
|
3050
|
+
+ (MasonListCell * _Nonnull)initWithEmptyBackground SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
|
|
3051
|
+
- (void)setViewWithCompat:(id <MasonElementObjc> _Nullable)view;
|
|
3052
|
+
- (void)willMoveToSuperview:(UIView * _Nullable)newSuperview;
|
|
3053
|
+
- (void)prepareForReuse;
|
|
3054
|
+
- (UICollectionViewLayoutAttributes * _Nonnull)preferredLayoutAttributesFittingAttributes:(UICollectionViewLayoutAttributes * _Nonnull)layoutAttributes SWIFT_WARN_UNUSED_RESULT;
|
|
3055
|
+
- (void)layoutSubviews;
|
|
3056
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
|
|
3057
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
|
|
3058
|
+
@end
|
|
3059
|
+
|
|
3060
|
+
@class MasonMouseEventOptions;
|
|
3061
|
+
SWIFT_CLASS_NAMED("MasonMouseEvent")
|
|
3062
|
+
@interface MasonMouseEvent : MasonEvent
|
|
3063
|
+
@property (nonatomic, readonly) NSInteger button;
|
|
3064
|
+
@property (nonatomic, readonly) NSInteger buttons;
|
|
3065
|
+
@property (nonatomic, readonly) float clientX;
|
|
3066
|
+
@property (nonatomic, readonly) float clientY;
|
|
3067
|
+
@property (nonatomic, readonly) BOOL ctrlKey;
|
|
3068
|
+
@property (nonatomic, readonly) BOOL shiftKey;
|
|
3069
|
+
@property (nonatomic, readonly) BOOL altKey;
|
|
3070
|
+
@property (nonatomic, readonly) BOOL metaKey;
|
|
3071
|
+
@property (nonatomic, readonly) NSInteger detail;
|
|
3072
|
+
@property (nonatomic, readonly) float screenX;
|
|
3073
|
+
@property (nonatomic, readonly) float screenY;
|
|
3074
|
+
@property (nonatomic, readonly) id _Nullable relatedTarget;
|
|
3075
|
+
@property (nonatomic, readonly) id _Nullable region;
|
|
3076
|
+
@property (nonatomic, readonly) NSInteger movementX;
|
|
3077
|
+
@property (nonatomic, readonly) NSInteger movementY;
|
|
3078
|
+
@property (nonatomic, readonly) float pageX;
|
|
3079
|
+
@property (nonatomic, readonly) float pageY;
|
|
3080
|
+
- (nonnull instancetype)initWithType:(NSString * _Nonnull)type options:(MasonMouseEventOptions * _Nullable)options OBJC_DESIGNATED_INITIALIZER;
|
|
3081
|
+
- (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options SWIFT_UNAVAILABLE;
|
|
3082
|
+
@end
|
|
3083
|
+
|
|
3084
|
+
SWIFT_CLASS_NAMED("MasonMouseEventOptions")
|
|
3085
|
+
@interface MasonMouseEventOptions : MasonEventOptions
|
|
3086
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
3087
|
+
- (nonnull instancetype)initWithIsComposing:(BOOL)isComposing OBJC_DESIGNATED_INITIALIZER;
|
|
3088
|
+
@end
|
|
3089
|
+
|
|
3090
|
+
SWIFT_ENUM_FWD_DECL(uint16_t, PseudoState)
|
|
3091
|
+
SWIFT_ENUM_FWD_DECL(int32_t, MasonNodeType)
|
|
3092
|
+
SWIFT_CLASS_NAMED("MasonNode")
|
|
3093
|
+
@interface MasonNode : NSObject
|
|
3094
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
3095
|
+
@property (nonatomic, copy) void (^ _Nullable onNodeAttached)(void);
|
|
3096
|
+
@property (nonatomic, copy) void (^ _Nullable onNodeDetached)(void);
|
|
3097
|
+
@property (nonatomic, readonly) void * _Nullable nativePtr;
|
|
3098
|
+
@property (nonatomic, readonly, strong) MasonLayout * _Nonnull computedLayout;
|
|
3099
|
+
/// Set to true by applyToView after Mason has applied layout to this node’s view.
|
|
3100
|
+
/// NativeScript can read this to skip redundant layout passes for Mason-managed children.
|
|
3101
|
+
@property (nonatomic) BOOL isLayoutValid;
|
|
3102
|
+
@property (nonatomic, readonly, strong) MasonDocument * _Nullable document;
|
|
3103
|
+
- (void)setPseudoString:(uint16_t)pseudoState :(NSString * _Nonnull)key :(NSString * _Nonnull)value;
|
|
3104
|
+
- (NSString * _Nullable)getPseudoString:(uint16_t)pseudoState :(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT;
|
|
3105
|
+
- (void)clearPseudoString:(uint16_t)pseudoState :(NSString * _Nonnull)key;
|
|
3106
|
+
/// Current active pseudo state bitmask read from the native state buffer.
|
|
3107
|
+
@property (nonatomic, readonly) uint16_t pseudoMask;
|
|
3108
|
+
- (BOOL)hasPseudo:(enum PseudoState)state SWIFT_WARN_UNUSED_RESULT;
|
|
3109
|
+
- (void)setPseudo:(enum PseudoState)state :(BOOL)enabled autoDirty:(BOOL)autoDirty;
|
|
3110
|
+
/// Get existing pseudo style buffer (read-only).
|
|
3111
|
+
- (NSMutableData * _Nullable)getPseudoBuffer:(uint16_t)flags SWIFT_WARN_UNUSED_RESULT;
|
|
3112
|
+
/// Prepare (create if needed) a mutable pseudo style buffer.
|
|
3113
|
+
/// Clones from base style on first call for a given state.
|
|
3114
|
+
- (NSMutableData * _Nonnull)preparePseudoBuffer:(uint16_t)flags SWIFT_WARN_UNUSED_RESULT;
|
|
3115
|
+
- (MasonNode * _Nonnull)getRootNode SWIFT_WARN_UNUSED_RESULT;
|
|
3116
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nullable parent;
|
|
3117
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nullable parentNode;
|
|
3118
|
+
@property (nonatomic, readonly) enum MasonNodeType type;
|
|
3119
|
+
- (NSArray<MasonNode *> * _Nonnull)getChildren SWIFT_WARN_UNUSED_RESULT;
|
|
3120
|
+
- (NSArray<MasonNode *> * _Nonnull)getLayoutChildren SWIFT_WARN_UNUSED_RESULT;
|
|
3121
|
+
@property (nonatomic) BOOL inBatch;
|
|
3122
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes OBJC_DESIGNATED_INITIALIZER;
|
|
3123
|
+
@property (nonatomic, readonly) BOOL isDirty;
|
|
3124
|
+
- (void)markDirty;
|
|
3125
|
+
- (UIView * _Nullable)getRoot SWIFT_WARN_UNUSED_RESULT;
|
|
3126
|
+
/// Helper to get default text attributes for new text nodes
|
|
3127
|
+
- (NSDictionary<NSAttributedStringKey, id> * _Nonnull)getDefaultAttributes SWIFT_WARN_UNUSED_RESULT;
|
|
3128
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
3129
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
3130
|
+
@end
|
|
3131
|
+
|
|
2419
3132
|
@interface MasonNode (SWIFT_EXTENSION(Mason))
|
|
2420
3133
|
- (void)setChildrenWithValue:(NSArray<MasonNode *> * _Nonnull)value;
|
|
2421
3134
|
- (void)appendChild:(MasonNode * _Nonnull)child;
|
|
3135
|
+
- (void)removeAllChildren;
|
|
2422
3136
|
@end
|
|
2423
3137
|
|
|
2424
3138
|
typedef SWIFT_ENUM_NAMED(int32_t, MasonNodeType, "MasonNodeType", open) {
|
|
@@ -2427,7 +3141,7 @@ typedef SWIFT_ENUM_NAMED(int32_t, MasonNodeType, "MasonNodeType", open) {
|
|
|
2427
3141
|
MasonNodeTypeDocument = 2,
|
|
2428
3142
|
};
|
|
2429
3143
|
|
|
2430
|
-
|
|
3144
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonOverflow)
|
|
2431
3145
|
SWIFT_CLASS_NAMED("MasonOverflowPointCompat")
|
|
2432
3146
|
@interface MasonOverflowPointCompat : NSObject
|
|
2433
3147
|
@property (nonatomic) enum MasonOverflow x;
|
|
@@ -2437,23 +3151,45 @@ SWIFT_CLASS_NAMED("MasonOverflowPointCompat")
|
|
|
2437
3151
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2438
3152
|
@end
|
|
2439
3153
|
|
|
3154
|
+
SWIFT_CLASS_NAMED("MasonRectHelper")
|
|
3155
|
+
@interface MasonRectHelper : NSObject
|
|
3156
|
+
@property (nonatomic, readonly) float top;
|
|
3157
|
+
@property (nonatomic, readonly) float right;
|
|
3158
|
+
@property (nonatomic, readonly) float bottom;
|
|
3159
|
+
@property (nonatomic, readonly) float left;
|
|
3160
|
+
- (BOOL)isEmpty SWIFT_WARN_UNUSED_RESULT;
|
|
3161
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
3162
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
3163
|
+
@end
|
|
3164
|
+
|
|
3165
|
+
SWIFT_CLASS_NAMED("MasonSizeHelper")
|
|
3166
|
+
@interface MasonSizeHelper : NSObject
|
|
3167
|
+
@property (nonatomic, readonly) float width;
|
|
3168
|
+
@property (nonatomic, readonly) float height;
|
|
3169
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
3170
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
3171
|
+
@end
|
|
3172
|
+
|
|
2440
3173
|
@class NSCFontFace;
|
|
2441
3174
|
@class MasonVerticalAlignValue;
|
|
2442
|
-
|
|
3175
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonObjectFit)
|
|
2443
3176
|
@class UIColor;
|
|
2444
|
-
|
|
3177
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextJustify)
|
|
2445
3178
|
@class MasonTextOverflowCompat;
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
3179
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextTransform)
|
|
3180
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonWhiteSpace)
|
|
3181
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextWrap)
|
|
3182
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonPosition)
|
|
3183
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextAlign)
|
|
2451
3184
|
SWIFT_CLASS_NAMED("MasonStyle")
|
|
2452
3185
|
@interface MasonStyle : NSObject
|
|
2453
3186
|
@property (nonatomic, readonly, strong) NSCFontFace * _Null_unspecified font;
|
|
2454
|
-
|
|
2455
|
-
@property (nonatomic, strong) NSMutableData * _Nonnull
|
|
3187
|
+
- (void)prepareMut;
|
|
3188
|
+
@property (nonatomic, readonly, strong) NSMutableData * _Nonnull values;
|
|
2456
3189
|
- (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)node OBJC_DESIGNATED_INITIALIZER;
|
|
3190
|
+
@property (nonatomic) enum MasonListStylePosition listStylePosition;
|
|
3191
|
+
@property (nonatomic) enum MasonListStyleType listStyleType;
|
|
3192
|
+
@property (nonatomic) int32_t zIndex;
|
|
2457
3193
|
@property (nonatomic, strong) MasonVerticalAlignValue * _Nonnull verticalAlign;
|
|
2458
3194
|
@property (nonatomic) enum MasonObjectFit objectFit;
|
|
2459
3195
|
@property (nonatomic, getter=float, setter=setFloat:) enum MasonFloat float_;
|
|
@@ -2475,8 +3211,10 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
2475
3211
|
- (void)setLineHeight:(float)value :(BOOL)isRelative;
|
|
2476
3212
|
@property (nonatomic) float lineHeight;
|
|
2477
3213
|
@property (nonatomic) float letterSpacing;
|
|
3214
|
+
@property (nonatomic, copy) NSString * _Nonnull fontVariantNumericString;
|
|
2478
3215
|
@property (nonatomic) uint32_t decorationColor;
|
|
2479
3216
|
- (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
|
|
3217
|
+
- (void)setDecorationColorWithCss:(NSString * _Nonnull)color;
|
|
2480
3218
|
@property (nonatomic) enum MasonDecorationLine decorationLine;
|
|
2481
3219
|
@property (nonatomic) int32_t fontSize;
|
|
2482
3220
|
- (void)setFontStyle:(enum MasonFontStyle)style :(int32_t)slant;
|
|
@@ -2521,8 +3259,21 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
2521
3259
|
- (void)setPaddingBottom:(float)value :(NSInteger)type;
|
|
2522
3260
|
- (void)setPaddingWithValueType:(float)value :(NSInteger)type;
|
|
2523
3261
|
@property (nonatomic, copy) NSString * _Nonnull textShadow;
|
|
3262
|
+
@property (nonatomic, copy) NSString * _Nonnull boxShadow;
|
|
2524
3263
|
@property (nonatomic, copy) NSString * _Nonnull borderRadius;
|
|
3264
|
+
@property (nonatomic, copy) NSString * _Nonnull cornerShape;
|
|
3265
|
+
@property (nonatomic, copy) NSString * _Nonnull cornerShapeTopLeft;
|
|
3266
|
+
@property (nonatomic, copy) NSString * _Nonnull cornerShapeTopRight;
|
|
3267
|
+
@property (nonatomic, copy) NSString * _Nonnull cornerShapeBottomRight;
|
|
3268
|
+
@property (nonatomic, copy) NSString * _Nonnull cornerShapeBottomLeft;
|
|
2525
3269
|
@property (nonatomic, copy) NSString * _Nonnull border;
|
|
3270
|
+
@property (nonatomic, copy) NSString * _Nonnull paddingCss;
|
|
3271
|
+
@property (nonatomic, copy) NSString * _Nonnull marginCss;
|
|
3272
|
+
@property (nonatomic, copy) NSString * _Nonnull insetCss;
|
|
3273
|
+
@property (nonatomic, copy) NSString * _Nonnull borderLeft;
|
|
3274
|
+
@property (nonatomic, copy) NSString * _Nonnull borderTop;
|
|
3275
|
+
@property (nonatomic, copy) NSString * _Nonnull borderRight;
|
|
3276
|
+
@property (nonatomic, copy) NSString * _Nonnull borderBottom;
|
|
2526
3277
|
@property (nonatomic, strong) MasonLengthPercentageRectCompat * _Nonnull borderWidthCompat;
|
|
2527
3278
|
- (void)setBorderLeftWidth:(float)value :(NSInteger)type;
|
|
2528
3279
|
- (void)setBorderRightWidth:(float)value :(NSInteger)type;
|
|
@@ -2546,6 +3297,7 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
2546
3297
|
- (void)setSizeWidth:(float)value :(NSInteger)type;
|
|
2547
3298
|
- (void)setSizeHeight:(float)value :(NSInteger)type;
|
|
2548
3299
|
- (void)setSizeWidthHeight:(float)value :(NSInteger)type;
|
|
3300
|
+
- (void)setSizePoints:(float)width :(float)height;
|
|
2549
3301
|
@property (nonatomic, strong) MasonDimensionSizeCompat * _Nonnull maxSizeCompat;
|
|
2550
3302
|
- (void)setMaxSizeWidth:(float)value :(NSInteger)type;
|
|
2551
3303
|
- (void)setMaxSizeHeight:(float)value :(NSInteger)type;
|
|
@@ -2557,6 +3309,7 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
2557
3309
|
- (void)setColumnGap:(float)value :(NSInteger)type;
|
|
2558
3310
|
@property (nonatomic, copy) NSString * _Nonnull gridArea;
|
|
2559
3311
|
@property (nonatomic, copy) NSString * _Nonnull gridTemplateAreas;
|
|
3312
|
+
@property (nonatomic, copy) NSString * _Nonnull transform;
|
|
2560
3313
|
@property (nonatomic, copy) NSString * _Nonnull gridAutoRows;
|
|
2561
3314
|
@property (nonatomic, copy) NSString * _Nonnull gridAutoColumns;
|
|
2562
3315
|
@property (nonatomic) enum MasonGridAutoFlowWrap gridAutoFlow;
|
|
@@ -2568,13 +3321,16 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
2568
3321
|
@property (nonatomic, copy) NSString * _Nonnull gridRowEnd;
|
|
2569
3322
|
@property (nonatomic, copy) NSString * _Nonnull gridTemplateRows;
|
|
2570
3323
|
@property (nonatomic, copy) NSString * _Nonnull gridTemplateColumns;
|
|
3324
|
+
@property (nonatomic, copy) NSString * _Nonnull borderImage;
|
|
3325
|
+
@property (nonatomic, copy) NSString * _Nonnull backdropFilter;
|
|
3326
|
+
@property (nonatomic, copy) NSString * _Nonnull fontFeatureSettings;
|
|
2571
3327
|
- (void)updateNativeStyle;
|
|
2572
3328
|
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
|
|
2573
3329
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2574
3330
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2575
3331
|
@end
|
|
2576
3332
|
|
|
2577
|
-
|
|
3333
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextType)
|
|
2578
3334
|
SWIFT_CLASS_NAMED("MasonText")
|
|
2579
3335
|
@interface MasonText : UIView <MasonElementObjc, MasonTextContainer>
|
|
2580
3336
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
@@ -2583,15 +3339,19 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
2583
3339
|
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layerClass;)
|
|
2584
3340
|
+ (Class _Nonnull)layerClass SWIFT_WARN_UNUSED_RESULT;
|
|
2585
3341
|
@property (nonatomic, readonly, strong) NSMutableData * _Nonnull textValues;
|
|
2586
|
-
- (void)
|
|
3342
|
+
- (void)onStyleChange:(uint64_t)low :(uint64_t)high;
|
|
2587
3343
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
2588
3344
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
2589
3345
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason type:(enum MasonTextType)textType OBJC_DESIGNATED_INITIALIZER;
|
|
2590
3346
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason OBJC_DESIGNATED_INITIALIZER;
|
|
2591
3347
|
- (void)setNeedsDisplay;
|
|
2592
3348
|
- (void)requestLayout;
|
|
3349
|
+
- (void)layoutSubviews;
|
|
2593
3350
|
- (void)addView:(UIView * _Nonnull)view;
|
|
2594
3351
|
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
3352
|
+
- (void)removeView:(UIView * _Nonnull)view;
|
|
3353
|
+
- (void)removeViewAt:(NSInteger)index;
|
|
3354
|
+
- (void)removeAllViews;
|
|
2595
3355
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
2596
3356
|
@property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
|
|
2597
3357
|
@property (nonatomic) uint32_t color;
|
|
@@ -2623,6 +3383,49 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layer
|
|
|
2623
3383
|
- (MasonNode * _Nullable)removeChild:(MasonNode * _Nonnull)child;
|
|
2624
3384
|
@end
|
|
2625
3385
|
|
|
3386
|
+
@class NSTextContainer;
|
|
3387
|
+
@class NSAttributedString;
|
|
3388
|
+
@class UIFont;
|
|
3389
|
+
@class UITextPosition;
|
|
3390
|
+
SWIFT_CLASS_NAMED("MasonTextInput")
|
|
3391
|
+
@interface MasonTextInput : UITextView <UITextViewDelegate>
|
|
3392
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame textContainer:(NSTextContainer * _Nullable)textContainer SWIFT_UNAVAILABLE;
|
|
3393
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
3394
|
+
@property (nonatomic, copy) NSString * _Nullable placeholder;
|
|
3395
|
+
@property (nonatomic, copy) NSString * _Null_unspecified text;
|
|
3396
|
+
@property (nonatomic, strong) NSAttributedString * _Null_unspecified attributedText;
|
|
3397
|
+
@property (nonatomic, strong) UIFont * _Nullable font;
|
|
3398
|
+
@property (nonatomic) NSTextAlignment textAlignment;
|
|
3399
|
+
- (void)layoutSubviews;
|
|
3400
|
+
- (void)textViewDidChange:(UITextView * _Nonnull)textView;
|
|
3401
|
+
- (void)textViewDidBeginEditing:(UITextView * _Nonnull)textView;
|
|
3402
|
+
- (void)textViewDidEndEditing:(UITextView * _Nonnull)textView;
|
|
3403
|
+
- (void)paste:(id _Nullable)sender;
|
|
3404
|
+
- (void)cut:(id _Nullable)sender;
|
|
3405
|
+
- (BOOL)textView:(UITextView * _Nonnull)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString * _Nonnull)text SWIFT_WARN_UNUSED_RESULT;
|
|
3406
|
+
- (CGRect)caretRectForPosition:(UITextPosition * _Nonnull)position SWIFT_WARN_UNUSED_RESULT;
|
|
3407
|
+
@end
|
|
3408
|
+
|
|
3409
|
+
SWIFT_CLASS_NAMED("MasonTextArea")
|
|
3410
|
+
@interface MasonTextArea : MasonTextInput <MasonElementObjc>
|
|
3411
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
3412
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
3413
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
3414
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
3415
|
+
@property (nonatomic) NSInteger rows;
|
|
3416
|
+
@property (nonatomic) NSInteger cols;
|
|
3417
|
+
@property (nonatomic, copy) NSString * _Nonnull name;
|
|
3418
|
+
@property (nonatomic) NSInteger maxLength;
|
|
3419
|
+
@property (nonatomic, copy) NSString * _Nonnull value;
|
|
3420
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc OBJC_DESIGNATED_INITIALIZER;
|
|
3421
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
|
|
3422
|
+
- (void)drawRect:(CGRect)rect;
|
|
3423
|
+
- (void)layoutSubviews;
|
|
3424
|
+
- (void)textViewDidChange:(UITextView * _Nonnull)textView;
|
|
3425
|
+
- (void)onStyleChange:(uint64_t)low :(uint64_t)high;
|
|
3426
|
+
- (BOOL)textView:(UITextView * _Nonnull)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString * _Nonnull)text SWIFT_WARN_UNUSED_RESULT;
|
|
3427
|
+
@end
|
|
3428
|
+
|
|
2626
3429
|
SWIFT_CLASS("_TtC5Mason14MasonTextLayer")
|
|
2627
3430
|
@interface MasonTextLayer : CALayer
|
|
2628
3431
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -2631,7 +3434,22 @@ SWIFT_CLASS("_TtC5Mason14MasonTextLayer")
|
|
|
2631
3434
|
- (void)drawInContext:(CGContextRef _Nonnull)context;
|
|
2632
3435
|
@end
|
|
2633
3436
|
|
|
2634
|
-
|
|
3437
|
+
SWIFT_CLASS_NAMED("MasonTextNode")
|
|
3438
|
+
@interface MasonTextNode : MasonNode <MasonCharacterData>
|
|
3439
|
+
@property (nonatomic, copy) NSString * _Nonnull data;
|
|
3440
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc data:(NSString * _Nonnull)text attributes:(NSDictionary<NSAttributedStringKey, id> * _Nullable)attrs OBJC_DESIGNATED_INITIALIZER;
|
|
3441
|
+
- (void)appendChild:(MasonNode * _Nonnull)child;
|
|
3442
|
+
@property (nonatomic, readonly) NSInteger length;
|
|
3443
|
+
- (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
|
|
3444
|
+
- (nonnull instancetype)appendData:(NSString * _Nonnull)s;
|
|
3445
|
+
- (nonnull instancetype)insertData:(NSString * _Nonnull)s at:(NSInteger)offset;
|
|
3446
|
+
- (nonnull instancetype)deleteDataWithOffset:(NSInteger)offset count:(NSInteger)count;
|
|
3447
|
+
- (nonnull instancetype)replaceDataWithOffset:(NSInteger)offset count:(NSInteger)count with:(NSString * _Nonnull)s;
|
|
3448
|
+
- (nonnull instancetype)deleteDataWithRange:(NSRange)range;
|
|
3449
|
+
- (nonnull instancetype)replaceDataWithRange:(NSRange)range with:(NSString * _Nonnull)s;
|
|
3450
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes SWIFT_UNAVAILABLE;
|
|
3451
|
+
@end
|
|
3452
|
+
|
|
2635
3453
|
@interface MasonTextNode (SWIFT_EXTENSION(Mason))
|
|
2636
3454
|
/// Get attributed string representation of this text node
|
|
2637
3455
|
- (NSAttributedString * _Nonnull)attributed SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -2652,6 +3470,10 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextType, "MasonTextType", open) {
|
|
|
2652
3470
|
MasonTextTypeBlockquote = 11,
|
|
2653
3471
|
MasonTextTypeB = 12,
|
|
2654
3472
|
MasonTextTypePre = 13,
|
|
3473
|
+
MasonTextTypeStrong = 14,
|
|
3474
|
+
MasonTextTypeEm = 15,
|
|
3475
|
+
MasonTextTypeI = 16,
|
|
3476
|
+
MasonTextTypeA = 17,
|
|
2655
3477
|
};
|
|
2656
3478
|
|
|
2657
3479
|
SWIFT_CLASS_NAMED("MasonUIView")
|
|
@@ -2660,15 +3482,22 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
2660
3482
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
2661
3483
|
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
2662
3484
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
3485
|
+
@property (nonatomic) CGSize contentSize;
|
|
3486
|
+
@property (nonatomic) CGPoint contentOffset;
|
|
2663
3487
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
2664
3488
|
- (void)markNodeDirty;
|
|
2665
3489
|
- (BOOL)isNodeDirty SWIFT_WARN_UNUSED_RESULT;
|
|
3490
|
+
- (void)layoutSubviews;
|
|
3491
|
+
- (void)willMoveToWindow:(UIWindow * _Nullable)newWindow;
|
|
3492
|
+
- (void)willMoveToSuperview:(UIView * _Nullable)newSuperview;
|
|
2666
3493
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
2667
3494
|
+ (MasonUIView * _Nonnull)createGridView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
2668
3495
|
+ (MasonUIView * _Nonnull)createFlexView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
2669
3496
|
+ (MasonUIView * _Nonnull)createBlockView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
2670
3497
|
- (void)addView:(UIView * _Nonnull)view;
|
|
2671
3498
|
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
3499
|
+
- (void)removeView:(UIView * _Nonnull)view;
|
|
3500
|
+
- (void)removeViewAt:(NSInteger)index;
|
|
2672
3501
|
- (void)addSubviews:(NSArray<UIView *> * _Nonnull)views;
|
|
2673
3502
|
- (void)addSubviews:(NSArray<UIView *> * _Nonnull)views at:(NSInteger)index;
|
|
2674
3503
|
@property (nonatomic) BOOL inBatch;
|
|
@@ -2704,7 +3533,7 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
2704
3533
|
@property (nonatomic, copy) NSString * _Nonnull gridRowEnd;
|
|
2705
3534
|
@property (nonatomic, copy) NSString * _Nonnull gridTemplateRows;
|
|
2706
3535
|
@property (nonatomic, copy) NSString * _Nonnull gridTemplateColumns;
|
|
2707
|
-
- (void)setPadding:(float)left :(float)
|
|
3536
|
+
- (void)setPadding:(float)left :(float)top :(float)right :(float)bottom;
|
|
2708
3537
|
- (MasonLengthPercentageRectCompat * _Nonnull)getPadding SWIFT_WARN_UNUSED_RESULT;
|
|
2709
3538
|
- (void)setPaddingLeft:(float)left :(NSInteger)type;
|
|
2710
3539
|
- (void)setPaddingRight:(float)right :(NSInteger)type;
|
|
@@ -2763,7 +3592,7 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
2763
3592
|
- (MasonDimensionCompat * _Nonnull)getMaxSizeWidth SWIFT_WARN_UNUSED_RESULT;
|
|
2764
3593
|
- (MasonDimensionCompat * _Nonnull)getMaxSizeHeight SWIFT_WARN_UNUSED_RESULT;
|
|
2765
3594
|
- (void)setGap:(float)width :(float)height;
|
|
2766
|
-
- (void)setGapWithWidthHeightType:(float)width :(
|
|
3595
|
+
- (void)setGapWithWidthHeightType:(float)width :(int8_t)width_type :(float)height :(int8_t)height_type;
|
|
2767
3596
|
- (MasonLengthPercentageSizeCompat * _Nonnull)getGap SWIFT_WARN_UNUSED_RESULT;
|
|
2768
3597
|
- (void)setRowGap:(float)row :(NSInteger)type;
|
|
2769
3598
|
- (void)setColumnGap:(float)column :(NSInteger)type;
|
|
@@ -2838,98 +3667,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing *
|
|
|
2838
3667
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2839
3668
|
@end
|
|
2840
3669
|
|
|
2841
|
-
|
|
2842
|
-
@interface NSCFontDescriptors : NSObject
|
|
2843
|
-
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
|
|
2844
|
-
- (void)update:(NSString * _Nonnull)value;
|
|
2845
|
-
- (void)setFontWeight:(NSString * _Nonnull)value;
|
|
2846
|
-
- (void)setFontStyle:(NSString * _Nonnull)value;
|
|
2847
|
-
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2848
|
-
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2849
|
-
@end
|
|
2850
|
-
|
|
2851
|
-
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontDisplay, "NSCFontDisplay", open) {
|
|
2852
|
-
NSCFontDisplayAuto = 0,
|
|
2853
|
-
NSCFontDisplayBlock = 1,
|
|
2854
|
-
NSCFontDisplayFallback = 2,
|
|
2855
|
-
NSCFontDisplayOptional = 3,
|
|
2856
|
-
NSCFontDisplaySwap = 4,
|
|
2857
|
-
};
|
|
2858
|
-
|
|
2859
|
-
@class NSData;
|
|
2860
|
-
enum NSCFontFaceStatus : NSInteger;
|
|
2861
|
-
enum NSCFontWeight : NSInteger;
|
|
2862
|
-
SWIFT_CLASS_NAMED("NSCFontFace")
|
|
2863
|
-
@interface NSCFontFace : NSObject
|
|
2864
|
-
@property (nonatomic, readonly) CGFontRef _Nullable font;
|
|
2865
|
-
@property (nonatomic, readonly, strong) NSData * _Nullable fontData;
|
|
2866
|
-
- (void)updateDescriptorWithValue:(NSString * _Nonnull)value;
|
|
2867
|
-
+ (NSCFontFace * _Nullable)loadFromStyleWithStyle:(NSString * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
2868
|
-
+ (void)importFromRemoteWithUrl:(NSString * _Nonnull)url load:(BOOL)load callback:(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nullable, NSString * _Nullable))callback;
|
|
2869
|
-
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
|
|
2870
|
-
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family owner:(MasonStyle * _Nonnull)style OBJC_DESIGNATED_INITIALIZER;
|
|
2871
|
-
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family source:(NSString * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
|
|
2872
|
-
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family data:(NSData * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
|
|
2873
|
-
- (nonnull instancetype)init:(NSString * _Nonnull)family :(NSString * _Nullable)source :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
|
|
2874
|
-
- (nonnull instancetype)init:(NSString * _Nonnull)family data:(NSData * _Nullable)data :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
|
|
2875
|
-
@property (nonatomic) enum NSCFontFaceStatus status;
|
|
2876
|
-
@property (nonatomic) enum NSCFontDisplay display;
|
|
2877
|
-
- (void)setFontDisplayWithValue:(NSString * _Nonnull)value;
|
|
2878
|
-
@property (nonatomic, copy) NSString * _Nonnull style;
|
|
2879
|
-
- (void)setFontStyleWithValue:(NSString * _Nonnull)value angle:(NSString * _Nullable)angle;
|
|
2880
|
-
@property (nonatomic) enum NSCFontWeight weight;
|
|
2881
|
-
- (void)setFontWeightWithValue:(NSString * _Nonnull)value;
|
|
2882
|
-
@property (nonatomic, readonly, copy) NSString * _Nonnull family;
|
|
2883
|
-
@property (nonatomic, readonly, copy) NSString * _Nonnull ascentOverride;
|
|
2884
|
-
@property (nonatomic, readonly, copy) NSString * _Nonnull descentOverride;
|
|
2885
|
-
- (void)load:(void (^ _Nonnull)(NSString * _Nullable))callback;
|
|
2886
|
-
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2887
|
-
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2888
|
-
@end
|
|
2889
|
-
|
|
2890
|
-
enum NSCFontFaceSetStatus : NSInteger;
|
|
2891
|
-
@class NSEnumerator;
|
|
2892
|
-
SWIFT_CLASS_NAMED("NSCFontFaceSet")
|
|
2893
|
-
@interface NSCFontFaceSet : NSObject
|
|
2894
|
-
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSCFontFaceSet * _Nonnull instance;)
|
|
2895
|
-
+ (NSCFontFaceSet * _Nonnull)instance SWIFT_WARN_UNUSED_RESULT;
|
|
2896
|
-
@property (nonatomic) enum NSCFontFaceSetStatus status;
|
|
2897
|
-
@property (nonatomic, copy) void (^ _Nullable onStatus)(enum NSCFontFaceSetStatus);
|
|
2898
|
-
- (NSEnumerator * _Nonnull)iter SWIFT_WARN_UNUSED_RESULT;
|
|
2899
|
-
- (NSArray * _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
|
|
2900
|
-
- (void)add:(NSCFontFace * _Nonnull)font;
|
|
2901
|
-
- (void)clear;
|
|
2902
|
-
- (void)delete:(NSCFontFace * _Nonnull)font;
|
|
2903
|
-
- (BOOL)check:(NSString * _Nonnull)font :(NSString * _Nullable)text SWIFT_WARN_UNUSED_RESULT;
|
|
2904
|
-
- (void)load:(NSString * _Nonnull)font :(NSString * _Nullable)text :(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nonnull, NSString * _Nullable))callback;
|
|
2905
|
-
@property (nonatomic, readonly) NSInteger size;
|
|
2906
|
-
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
2907
|
-
@end
|
|
2908
|
-
|
|
2909
|
-
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceSetStatus, "NSCFontFaceSetStatus", open) {
|
|
2910
|
-
NSCFontFaceSetStatusLoading = 0,
|
|
2911
|
-
NSCFontFaceSetStatusLoaded = 1,
|
|
2912
|
-
};
|
|
2913
|
-
|
|
2914
|
-
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceStatus, "NSCFontFaceStatus", open) {
|
|
2915
|
-
NSCFontFaceStatusUnloaded = 0,
|
|
2916
|
-
NSCFontFaceStatusLoading = 1,
|
|
2917
|
-
NSCFontFaceStatusLoaded = 2,
|
|
2918
|
-
NSCFontFaceStatusError = 3,
|
|
2919
|
-
};
|
|
2920
|
-
|
|
2921
|
-
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontWeight, "NSCFontWeight", open) {
|
|
2922
|
-
NSCFontWeightThin = 0,
|
|
2923
|
-
NSCFontWeightExtraLight = 1,
|
|
2924
|
-
NSCFontWeightLight = 2,
|
|
2925
|
-
NSCFontWeightNormal = 3,
|
|
2926
|
-
NSCFontWeightMedium = 4,
|
|
2927
|
-
NSCFontWeightSemiBold = 5,
|
|
2928
|
-
NSCFontWeightBold = 6,
|
|
2929
|
-
NSCFontWeightExtraBold = 7,
|
|
2930
|
-
NSCFontWeightBlack = 8,
|
|
2931
|
-
};
|
|
2932
|
-
|
|
3670
|
+
@class NSUUID;
|
|
2933
3671
|
@class MasonScroll;
|
|
2934
3672
|
SWIFT_CLASS_NAMED("NSCMason")
|
|
2935
3673
|
@interface NSCMason : NSObject
|
|
@@ -2944,6 +3682,11 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
2944
3682
|
- (MasonStyle * _Nonnull)styleForView:(UIView * _Nonnull)view SWIFT_WARN_UNUSED_RESULT;
|
|
2945
3683
|
- (MasonStyle * _Nullable)styleForViewOrNode:(id _Nullable)viewOrNode SWIFT_WARN_UNUSED_RESULT;
|
|
2946
3684
|
- (MasonLayout * _Nonnull)layoutForView:(UIView * _Nonnull)view;
|
|
3685
|
+
- (NSUUID * _Nonnull)addEventListener:(MasonNode * _Nonnull)node :(NSString * _Nonnull)event :(void (^ _Nonnull)(MasonEvent * _Nonnull))listener;
|
|
3686
|
+
- (BOOL)removeEventListener:(MasonNode * _Nonnull)node :(NSString * _Nonnull)event id:(NSUUID * _Nonnull)id;
|
|
3687
|
+
- (BOOL)removeEventListener:(MasonNode * _Nonnull)node :(NSString * _Nonnull)event;
|
|
3688
|
+
- (void)dispatch:(MasonEvent * _Nonnull)event :(MasonNode * _Nonnull)node;
|
|
3689
|
+
@property (nonatomic, strong) MasonHTMLParser * _Nonnull htmlParser;
|
|
2947
3690
|
- (void)clear;
|
|
2948
3691
|
- (MasonDocument * _Nonnull)createDocument SWIFT_WARN_UNUSED_RESULT;
|
|
2949
3692
|
- (MasonUIView * _Nonnull)createView SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -2955,13 +3698,28 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
2955
3698
|
- (MasonButton * _Nonnull)createButton SWIFT_WARN_UNUSED_RESULT;
|
|
2956
3699
|
- (MasonNode * _Nonnull)createNode SWIFT_WARN_UNUSED_RESULT;
|
|
2957
3700
|
- (MasonBr * _Nonnull)createBr SWIFT_WARN_UNUSED_RESULT;
|
|
3701
|
+
- (MasonInput * _Nonnull)createInput:(enum MasonInputType)type SWIFT_WARN_UNUSED_RESULT;
|
|
2958
3702
|
- (void)printTree:(MasonNode * _Nonnull)node;
|
|
2959
3703
|
- (MasonNode * _Nonnull)createTextNode SWIFT_WARN_UNUSED_RESULT;
|
|
2960
3704
|
- (MasonNode * _Nonnull)createImageNode SWIFT_WARN_UNUSED_RESULT;
|
|
3705
|
+
- (MasonNode * _Nonnull)createButtonNode SWIFT_WARN_UNUSED_RESULT;
|
|
3706
|
+
- (MasonNode * _Nonnull)createLineBreakNode SWIFT_WARN_UNUSED_RESULT;
|
|
3707
|
+
- (MasonList * _Nonnull)createListViewWithIsOrdered:(BOOL)isOrdered SWIFT_WARN_UNUSED_RESULT;
|
|
3708
|
+
- (MasonNode * _Nonnull)createListItemNode SWIFT_WARN_UNUSED_RESULT;
|
|
3709
|
+
- (MasonLi * _Nonnull)createListItem SWIFT_WARN_UNUSED_RESULT;
|
|
3710
|
+
- (MasonTextArea * _Nonnull)createTextArea SWIFT_WARN_UNUSED_RESULT;
|
|
3711
|
+
@property (nonatomic) BOOL preflight;
|
|
3712
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) float scale;)
|
|
3713
|
+
+ (float)scale SWIFT_WARN_UNUSED_RESULT;
|
|
2961
3714
|
@end
|
|
2962
3715
|
|
|
2963
3716
|
@interface NSObject (SWIFT_EXTENSION(Mason))
|
|
2964
|
-
|
|
3717
|
+
@property (nonatomic, copy) NSString * _Nonnull mason_innerHTML;
|
|
3718
|
+
- (NSUUID * _Nonnull)mason_addEventListener:(NSString * _Nonnull)event :(void (^ _Nonnull)(MasonEvent * _Nonnull))listener;
|
|
3719
|
+
- (BOOL)mason_removeEventListener:(NSString * _Nonnull)event id:(NSUUID * _Nonnull)id;
|
|
3720
|
+
- (BOOL)mason_removeEventListener:(NSString * _Nonnull)event;
|
|
3721
|
+
- (void)mason_dispatch:(MasonEvent * _Nonnull)event;
|
|
3722
|
+
- (void)mason_syncStyle:(NSString * _Nonnull)low :(NSString * _Nonnull)high;
|
|
2965
3723
|
- (void)mason_addView:(UIView * _Nonnull)view;
|
|
2966
3724
|
- (void)mason_addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
2967
3725
|
- (void)mason_markNodeDirty;
|
|
@@ -2998,6 +3756,13 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
2998
3756
|
- (void)mason_replaceChildAtText:(NSString * _Nonnull)text :(NSInteger)index;
|
|
2999
3757
|
- (void)mason_replaceChildAtElement:(id <MasonElementObjc> _Nonnull)element :(NSInteger)index;
|
|
3000
3758
|
- (void)mason_replaceChildAtNode:(MasonNode * _Nonnull)node :(NSInteger)index;
|
|
3759
|
+
/// Remove the child node (view or text node) at <code>index</code> from the mason tree.
|
|
3760
|
+
/// Counterpart to <code>mason_addChildAt</code>; <code>MasonNode.removeChildAt</code> already
|
|
3761
|
+
/// handles both <code>MasonTextNode</code> and element children.
|
|
3762
|
+
- (void)mason_removeChildAt:(NSInteger)index;
|
|
3763
|
+
/// Remove a specific child node (e.g. the <code>MasonTextNode</code> a framework stamped
|
|
3764
|
+
/// onto its JS text node) without needing its index.
|
|
3765
|
+
- (void)mason_removeChildNode:(MasonNode * _Nonnull)node;
|
|
3001
3766
|
@end
|
|
3002
3767
|
|
|
3003
3768
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonObjectFit, "ObjectFit", open) {
|
|
@@ -3021,9 +3786,21 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonPosition, "Position", open) {
|
|
|
3021
3786
|
MasonPositionAbsolute = 1,
|
|
3022
3787
|
};
|
|
3023
3788
|
|
|
3789
|
+
typedef SWIFT_ENUM_NAMED(uint16_t, PseudoState, "PseudoState", open) {
|
|
3790
|
+
PseudoStateDefault = 0,
|
|
3791
|
+
PseudoStateHover = 0x01,
|
|
3792
|
+
PseudoStateActive = 0x02,
|
|
3793
|
+
PseudoStateFocus = 0x04,
|
|
3794
|
+
PseudoStateFocusWithin = 0x08,
|
|
3795
|
+
PseudoStateFocusVisible = 0x10,
|
|
3796
|
+
PseudoStateDisabled = 0x40,
|
|
3797
|
+
PseudoStateChecked = 0x80,
|
|
3798
|
+
};
|
|
3799
|
+
|
|
3024
3800
|
SWIFT_CLASS_NAMED("Scroll")
|
|
3025
3801
|
@interface MasonScroll : UIScrollView <MasonElementObjc, UIScrollViewDelegate>
|
|
3026
3802
|
- (void)drawRect:(CGRect)rect;
|
|
3803
|
+
- (void)layoutSubviews;
|
|
3027
3804
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
3028
3805
|
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
3029
3806
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
@@ -3033,6 +3810,8 @@ SWIFT_CLASS_NAMED("Scroll")
|
|
|
3033
3810
|
- (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
|
|
3034
3811
|
- (void)addView:(UIView * _Nonnull)view;
|
|
3035
3812
|
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
3813
|
+
- (void)removeView:(UIView * _Nonnull)view;
|
|
3814
|
+
- (void)removeViewAt:(NSInteger)index;
|
|
3036
3815
|
- (void)setSize:(float)width :(float)height;
|
|
3037
3816
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
3038
3817
|
@end
|
|
@@ -3135,6 +3914,19 @@ SWIFT_CLASS_NAMED("TrackSizingFunction")
|
|
|
3135
3914
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
3136
3915
|
@end
|
|
3137
3916
|
|
|
3917
|
+
typedef SWIFT_ENUM(uint8_t, TransformOpType, open) {
|
|
3918
|
+
TransformOpTypeNone = 0,
|
|
3919
|
+
TransformOpTypeTranslate = 1,
|
|
3920
|
+
TransformOpTypeTranslateX = 2,
|
|
3921
|
+
TransformOpTypeTranslateY = 3,
|
|
3922
|
+
TransformOpTypeScale = 4,
|
|
3923
|
+
TransformOpTypeScaleX = 5,
|
|
3924
|
+
TransformOpTypeScaleY = 6,
|
|
3925
|
+
TransformOpTypeRotate = 7,
|
|
3926
|
+
TransformOpTypeSkewX = 8,
|
|
3927
|
+
TransformOpTypeSkewY = 9,
|
|
3928
|
+
};
|
|
3929
|
+
|
|
3138
3930
|
typedef SWIFT_ENUM_NAMED(NSInteger, MasonWhiteSpace, "WhiteSpace", open) {
|
|
3139
3931
|
MasonWhiteSpaceNormal = 0,
|
|
3140
3932
|
MasonWhiteSpacePre = 1,
|
|
@@ -3144,7 +3936,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonWhiteSpace, "WhiteSpace", open) {
|
|
|
3144
3936
|
MasonWhiteSpaceBreakSpaces = 5,
|
|
3145
3937
|
};
|
|
3146
3938
|
|
|
3147
|
-
#endif
|
|
3939
|
+
#endif // defined(__OBJC__)
|
|
3148
3940
|
#if __has_attribute(external_source_symbol)
|
|
3149
3941
|
# pragma clang attribute pop
|
|
3150
3942
|
#endif
|