@triniwiz/nativescript-masonkit 1.0.0-beta.59 → 1.0.0-beta.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/common.d.ts +3 -2
  2. package/common.js +17 -2
  3. package/common.js.map +1 -1
  4. package/index.android.d.ts +1 -0
  5. package/index.android.js +1 -0
  6. package/index.android.js.map +1 -1
  7. package/index.d.ts +17 -1
  8. package/index.ios.d.ts +1 -0
  9. package/index.ios.js +1 -0
  10. package/index.ios.js.map +1 -1
  11. package/package.json +1 -1
  12. package/platforms/android/masonkit-release.aar +0 -0
  13. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +80 -6
  14. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +58 -42
  15. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Info.plist +0 -0
  16. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
  17. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  18. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +20599 -16771
  19. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +544 -235
  20. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  21. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +544 -235
  22. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  23. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +7413 -4917
  24. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +160 -12
  25. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +58 -42
  26. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Info.plist +0 -0
  27. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
  28. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  29. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  30. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +20295 -16467
  31. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +544 -235
  32. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  33. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +544 -235
  34. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +20295 -16467
  35. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +544 -235
  36. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  37. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +544 -235
  38. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +29 -29
  39. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  40. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +7408 -4912
  41. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +7103 -4752
  42. package/style.d.ts +1 -0
  43. package/style.js +586 -362
  44. package/style.js.map +1 -1
  45. package/text-node/index.android.d.ts +13 -0
  46. package/text-node/index.android.js +35 -0
  47. package/text-node/index.android.js.map +1 -0
  48. package/text-node/index.ios.d.ts +13 -0
  49. package/text-node/index.ios.js +35 -0
  50. package/text-node/index.ios.js.map +1 -0
  51. package/tree/index.android.d.ts +1 -0
  52. package/tree/index.android.js +3 -0
  53. package/tree/index.android.js.map +1 -1
  54. package/tree/index.ios.d.ts +1 -0
  55. package/tree/index.ios.js +3 -0
  56. package/tree/index.ios.js.map +1 -1
@@ -1,6 +1,6 @@
1
1
  #if 0
2
2
  #elif defined(__arm64__) && __arm64__
3
- // Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
3
+ // Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
4
4
  #ifndef MASON_SWIFT_H
5
5
  #define MASON_SWIFT_H
6
6
  #pragma clang diagnostic push
@@ -585,6 +585,20 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonLineHeight, "LineHeight", open) {
585
585
  MasonLineHeightPreLine = 3,
586
586
  };
587
587
 
588
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonListStylePosition, "ListStylePosition", open) {
589
+ MasonListStylePositionOutside = 0,
590
+ MasonListStylePositionInside = 1,
591
+ };
592
+
593
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonListStyleType, "ListStyleType", open) {
594
+ MasonListStyleTypeNone = 0,
595
+ MasonListStyleTypeCustom = 1,
596
+ MasonListStyleTypeDisc = 2,
597
+ MasonListStyleTypeCircle = 3,
598
+ MasonListStyleTypeSquare = 4,
599
+ MasonListStyleTypeDecimal = 5,
600
+ };
601
+
588
602
  typedef SWIFT_ENUM_NAMED(NSInteger, MasonLoadingState, "LoadingState", open) {
589
603
  MasonLoadingStateLoading = 0,
590
604
  MasonLoadingStateLoaded = 1,
@@ -720,12 +734,13 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonFloat, "MasonFloat", open) {
720
734
  SWIFT_CLASS("_TtC5Mason15MasonImageLayer")
721
735
  @interface MasonImageLayer : CALayer
722
736
  - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
723
- - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
724
737
  - (nonnull instancetype)initWithLayer:(id _Nonnull)layer OBJC_DESIGNATED_INITIALIZER;
738
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
725
739
  - (void)drawInContext:(CGContextRef _Nonnull)context;
740
+ - (void)layoutSublayers;
726
741
  @end
727
742
 
728
- enum MasonInputType : NSInteger;
743
+ enum MasonInputType : int8_t;
729
744
  @class NSDate;
730
745
  SWIFT_CLASS_NAMED("MasonInput")
731
746
  @interface MasonInput : UIView
@@ -755,7 +770,7 @@ SWIFT_CLASS_NAMED("MasonInputEvent")
755
770
  - (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options SWIFT_UNAVAILABLE;
756
771
  @end
757
772
 
758
- typedef SWIFT_ENUM_NAMED(NSInteger, MasonInputType, "MasonInputType", open) {
773
+ typedef SWIFT_ENUM_NAMED(int8_t, MasonInputType, "MasonInputType", open) {
759
774
  MasonInputTypeText = 0,
760
775
  MasonInputTypeButton = 1,
761
776
  MasonInputTypeCheckbox = 2,
@@ -798,6 +813,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonLayout
798
813
  @property (nonatomic, readonly) float paddingRight;
799
814
  @property (nonatomic, readonly) float paddingBottom;
800
815
  @property (nonatomic, readonly) float paddingLeft;
816
+ @property (nonatomic, readonly) BOOL sizeIsEmpty;
801
817
  @property (nonatomic, readonly) BOOL contentSizeIsEmpty;
802
818
  @property (nonatomic, readonly) float contentSizeWidth;
803
819
  @property (nonatomic, readonly) float contentSizeHeight;
@@ -906,6 +922,56 @@ SWIFT_CLASS_NAMED("MasonLengthPercentageSizeCompat")
906
922
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
907
923
  @end
908
924
 
925
+ SWIFT_CLASS_NAMED("MasonLi")
926
+ @interface MasonLi : UIView <MasonElementObjc>
927
+ - (void)requestLayout;
928
+ - (void)drawRect:(CGRect)rect;
929
+ @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
930
+ @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
931
+ @property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
932
+ @property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
933
+ @property (nonatomic) BOOL isOrdered;
934
+ - (void)layoutSubviews;
935
+ /// Reset view state for recycling
936
+ - (void)resetForRecycle;
937
+ /// Set marker value and position for this list item
938
+ - (void)bindWithPosition:(NSInteger)position isOrdered:(BOOL)isOrdered;
939
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
940
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
941
+ @end
942
+
943
+ @protocol MasonListDelegate;
944
+ @class UICollectionView;
945
+ @class NSIndexPath;
946
+ @class UICollectionViewCell;
947
+ SWIFT_CLASS_NAMED("MasonList")
948
+ @interface MasonList : UIView <MasonElementObjc, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>
949
+ @property (nonatomic, strong) id <MasonListDelegate> _Nullable delegate;
950
+ - (void)drawRect:(CGRect)rect;
951
+ @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
952
+ @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
953
+ @property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
954
+ @property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
955
+ @property (nonatomic, strong) NSMutableData * _Nonnull values;
956
+ @property (nonatomic) NSInteger count;
957
+ - (void)layoutSubviews;
958
+ - (void)registerWithCellClass:(Class _Nullable)cellClass forCellWithReuseIdentifier:(NSString * _Nonnull)identifier;
959
+ - (void)reload;
960
+ @property (nonatomic) BOOL isOrdered;
961
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
962
+ - (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
963
+ - (NSInteger)numberOfSectionsInCollectionView:(UICollectionView * _Nonnull)collectionView SWIFT_WARN_UNUSED_RESULT;
964
+ - (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
965
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView willDisplayCell:(UICollectionViewCell * _Nonnull)cell forItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
966
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
967
+ @end
968
+
969
+ SWIFT_PROTOCOL_NAMED("MasonListDelegate")
970
+ @protocol MasonListDelegate
971
+ - (UICollectionViewCell * _Nonnull)list:(UICollectionView * _Nonnull)list cellForItemAt:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
972
+ - (void)list:(UICollectionView * _Nonnull)list willDisplay:(UICollectionViewCell * _Nonnull)cell forItemAt:(NSIndexPath * _Nonnull)indexPath;
973
+ @end
974
+
909
975
  @class MasonMouseEventOptions;
910
976
  SWIFT_CLASS_NAMED("MasonMouseEvent")
911
977
  @interface MasonMouseEvent : MasonEvent
@@ -997,9 +1063,12 @@ enum MasonTextAlign : NSInteger;
997
1063
  SWIFT_CLASS_NAMED("MasonStyle")
998
1064
  @interface MasonStyle : NSObject
999
1065
  @property (nonatomic, readonly, strong) NSCFontFace * _Null_unspecified font;
1000
- @property (nonatomic, strong) NSMutableData * _Nonnull values;
1066
+ - (void)prepareMut;
1067
+ @property (nonatomic, readonly, strong) NSMutableData * _Nonnull values;
1001
1068
  @property (nonatomic, strong) NSMutableData * _Nonnull textValues;
1002
1069
  - (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)node OBJC_DESIGNATED_INITIALIZER;
1070
+ @property (nonatomic) enum MasonListStylePosition listStylePosition;
1071
+ @property (nonatomic) enum MasonListStyleType listStyleType;
1003
1072
  @property (nonatomic) int32_t zIndex;
1004
1073
  @property (nonatomic, strong) MasonVerticalAlignValue * _Nonnull verticalAlign;
1005
1074
  @property (nonatomic) enum MasonObjectFit objectFit;
@@ -1330,7 +1399,7 @@ SWIFT_CLASS_NAMED("MasonUIView")
1330
1399
  - (MasonDimensionCompat * _Nonnull)getMaxSizeWidth SWIFT_WARN_UNUSED_RESULT;
1331
1400
  - (MasonDimensionCompat * _Nonnull)getMaxSizeHeight SWIFT_WARN_UNUSED_RESULT;
1332
1401
  - (void)setGap:(float)width :(float)height;
1333
- - (void)setGapWithWidthHeightType:(float)width :(NSInteger)width_type :(float)height :(NSInteger)height_type;
1402
+ - (void)setGapWithWidthHeightType:(float)width :(int8_t)width_type :(float)height :(int8_t)height_type;
1334
1403
  - (MasonLengthPercentageSizeCompat * _Nonnull)getGap SWIFT_WARN_UNUSED_RESULT;
1335
1404
  - (void)setRowGap:(float)row :(NSInteger)type;
1336
1405
  - (void)setColumnGap:(float)column :(NSInteger)type;
@@ -1464,6 +1533,8 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSCFontFaceS
1464
1533
  @property (nonatomic, copy) void (^ _Nullable onStatus)(enum NSCFontFaceSetStatus);
1465
1534
  - (NSEnumerator * _Nonnull)iter SWIFT_WARN_UNUSED_RESULT;
1466
1535
  - (NSArray * _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
1536
+ - (NSCFontFace * _Nonnull)get:(NSString * _Nonnull)fontFamily SWIFT_WARN_UNUSED_RESULT;
1537
+ - (NSCFontFace * _Nullable)getOrNil:(NSString * _Nonnull)fontFamily SWIFT_WARN_UNUSED_RESULT;
1467
1538
  - (void)add:(NSCFontFace * _Nonnull)font;
1468
1539
  - (void)clear;
1469
1540
  - (void)delete:(NSCFontFace * _Nonnull)font;
@@ -1532,6 +1603,9 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
1532
1603
  - (MasonNode * _Nonnull)createTextNode SWIFT_WARN_UNUSED_RESULT;
1533
1604
  - (MasonNode * _Nonnull)createImageNode SWIFT_WARN_UNUSED_RESULT;
1534
1605
  - (MasonNode * _Nonnull)createLineBreakNode SWIFT_WARN_UNUSED_RESULT;
1606
+ - (MasonList * _Nonnull)createListViewWithIsOrdered:(BOOL)isOrdered SWIFT_WARN_UNUSED_RESULT;
1607
+ - (MasonNode * _Nonnull)createListItemNode SWIFT_WARN_UNUSED_RESULT;
1608
+ - (MasonLi * _Nonnull)createListItem SWIFT_WARN_UNUSED_RESULT;
1535
1609
  @end
1536
1610
 
1537
1611
  @interface NSObject (SWIFT_EXTENSION(Mason))
@@ -1732,7 +1806,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonWhiteSpace, "WhiteSpace", open) {
1732
1806
  #endif
1733
1807
 
1734
1808
  #elif defined(__x86_64__) && __x86_64__
1735
- // Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
1809
+ // Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
1736
1810
  #ifndef MASON_SWIFT_H
1737
1811
  #define MASON_SWIFT_H
1738
1812
  #pragma clang diagnostic push
@@ -2317,6 +2391,20 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonLineHeight, "LineHeight", open) {
2317
2391
  MasonLineHeightPreLine = 3,
2318
2392
  };
2319
2393
 
2394
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonListStylePosition, "ListStylePosition", open) {
2395
+ MasonListStylePositionOutside = 0,
2396
+ MasonListStylePositionInside = 1,
2397
+ };
2398
+
2399
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonListStyleType, "ListStyleType", open) {
2400
+ MasonListStyleTypeNone = 0,
2401
+ MasonListStyleTypeCustom = 1,
2402
+ MasonListStyleTypeDisc = 2,
2403
+ MasonListStyleTypeCircle = 3,
2404
+ MasonListStyleTypeSquare = 4,
2405
+ MasonListStyleTypeDecimal = 5,
2406
+ };
2407
+
2320
2408
  typedef SWIFT_ENUM_NAMED(NSInteger, MasonLoadingState, "LoadingState", open) {
2321
2409
  MasonLoadingStateLoading = 0,
2322
2410
  MasonLoadingStateLoaded = 1,
@@ -2452,12 +2540,13 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonFloat, "MasonFloat", open) {
2452
2540
  SWIFT_CLASS("_TtC5Mason15MasonImageLayer")
2453
2541
  @interface MasonImageLayer : CALayer
2454
2542
  - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
2455
- - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
2456
2543
  - (nonnull instancetype)initWithLayer:(id _Nonnull)layer OBJC_DESIGNATED_INITIALIZER;
2544
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
2457
2545
  - (void)drawInContext:(CGContextRef _Nonnull)context;
2546
+ - (void)layoutSublayers;
2458
2547
  @end
2459
2548
 
2460
- enum MasonInputType : NSInteger;
2549
+ enum MasonInputType : int8_t;
2461
2550
  @class NSDate;
2462
2551
  SWIFT_CLASS_NAMED("MasonInput")
2463
2552
  @interface MasonInput : UIView
@@ -2487,7 +2576,7 @@ SWIFT_CLASS_NAMED("MasonInputEvent")
2487
2576
  - (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options SWIFT_UNAVAILABLE;
2488
2577
  @end
2489
2578
 
2490
- typedef SWIFT_ENUM_NAMED(NSInteger, MasonInputType, "MasonInputType", open) {
2579
+ typedef SWIFT_ENUM_NAMED(int8_t, MasonInputType, "MasonInputType", open) {
2491
2580
  MasonInputTypeText = 0,
2492
2581
  MasonInputTypeButton = 1,
2493
2582
  MasonInputTypeCheckbox = 2,
@@ -2530,6 +2619,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonLayout
2530
2619
  @property (nonatomic, readonly) float paddingRight;
2531
2620
  @property (nonatomic, readonly) float paddingBottom;
2532
2621
  @property (nonatomic, readonly) float paddingLeft;
2622
+ @property (nonatomic, readonly) BOOL sizeIsEmpty;
2533
2623
  @property (nonatomic, readonly) BOOL contentSizeIsEmpty;
2534
2624
  @property (nonatomic, readonly) float contentSizeWidth;
2535
2625
  @property (nonatomic, readonly) float contentSizeHeight;
@@ -2638,6 +2728,56 @@ SWIFT_CLASS_NAMED("MasonLengthPercentageSizeCompat")
2638
2728
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2639
2729
  @end
2640
2730
 
2731
+ SWIFT_CLASS_NAMED("MasonLi")
2732
+ @interface MasonLi : UIView <MasonElementObjc>
2733
+ - (void)requestLayout;
2734
+ - (void)drawRect:(CGRect)rect;
2735
+ @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
2736
+ @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
2737
+ @property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
2738
+ @property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
2739
+ @property (nonatomic) BOOL isOrdered;
2740
+ - (void)layoutSubviews;
2741
+ /// Reset view state for recycling
2742
+ - (void)resetForRecycle;
2743
+ /// Set marker value and position for this list item
2744
+ - (void)bindWithPosition:(NSInteger)position isOrdered:(BOOL)isOrdered;
2745
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
2746
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
2747
+ @end
2748
+
2749
+ @protocol MasonListDelegate;
2750
+ @class UICollectionView;
2751
+ @class NSIndexPath;
2752
+ @class UICollectionViewCell;
2753
+ SWIFT_CLASS_NAMED("MasonList")
2754
+ @interface MasonList : UIView <MasonElementObjc, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>
2755
+ @property (nonatomic, strong) id <MasonListDelegate> _Nullable delegate;
2756
+ - (void)drawRect:(CGRect)rect;
2757
+ @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
2758
+ @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
2759
+ @property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
2760
+ @property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
2761
+ @property (nonatomic, strong) NSMutableData * _Nonnull values;
2762
+ @property (nonatomic) NSInteger count;
2763
+ - (void)layoutSubviews;
2764
+ - (void)registerWithCellClass:(Class _Nullable)cellClass forCellWithReuseIdentifier:(NSString * _Nonnull)identifier;
2765
+ - (void)reload;
2766
+ @property (nonatomic) BOOL isOrdered;
2767
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
2768
+ - (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
2769
+ - (NSInteger)numberOfSectionsInCollectionView:(UICollectionView * _Nonnull)collectionView SWIFT_WARN_UNUSED_RESULT;
2770
+ - (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
2771
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView willDisplayCell:(UICollectionViewCell * _Nonnull)cell forItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
2772
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
2773
+ @end
2774
+
2775
+ SWIFT_PROTOCOL_NAMED("MasonListDelegate")
2776
+ @protocol MasonListDelegate
2777
+ - (UICollectionViewCell * _Nonnull)list:(UICollectionView * _Nonnull)list cellForItemAt:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
2778
+ - (void)list:(UICollectionView * _Nonnull)list willDisplay:(UICollectionViewCell * _Nonnull)cell forItemAt:(NSIndexPath * _Nonnull)indexPath;
2779
+ @end
2780
+
2641
2781
  @class MasonMouseEventOptions;
2642
2782
  SWIFT_CLASS_NAMED("MasonMouseEvent")
2643
2783
  @interface MasonMouseEvent : MasonEvent
@@ -2729,9 +2869,12 @@ enum MasonTextAlign : NSInteger;
2729
2869
  SWIFT_CLASS_NAMED("MasonStyle")
2730
2870
  @interface MasonStyle : NSObject
2731
2871
  @property (nonatomic, readonly, strong) NSCFontFace * _Null_unspecified font;
2732
- @property (nonatomic, strong) NSMutableData * _Nonnull values;
2872
+ - (void)prepareMut;
2873
+ @property (nonatomic, readonly, strong) NSMutableData * _Nonnull values;
2733
2874
  @property (nonatomic, strong) NSMutableData * _Nonnull textValues;
2734
2875
  - (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)node OBJC_DESIGNATED_INITIALIZER;
2876
+ @property (nonatomic) enum MasonListStylePosition listStylePosition;
2877
+ @property (nonatomic) enum MasonListStyleType listStyleType;
2735
2878
  @property (nonatomic) int32_t zIndex;
2736
2879
  @property (nonatomic, strong) MasonVerticalAlignValue * _Nonnull verticalAlign;
2737
2880
  @property (nonatomic) enum MasonObjectFit objectFit;
@@ -3062,7 +3205,7 @@ SWIFT_CLASS_NAMED("MasonUIView")
3062
3205
  - (MasonDimensionCompat * _Nonnull)getMaxSizeWidth SWIFT_WARN_UNUSED_RESULT;
3063
3206
  - (MasonDimensionCompat * _Nonnull)getMaxSizeHeight SWIFT_WARN_UNUSED_RESULT;
3064
3207
  - (void)setGap:(float)width :(float)height;
3065
- - (void)setGapWithWidthHeightType:(float)width :(NSInteger)width_type :(float)height :(NSInteger)height_type;
3208
+ - (void)setGapWithWidthHeightType:(float)width :(int8_t)width_type :(float)height :(int8_t)height_type;
3066
3209
  - (MasonLengthPercentageSizeCompat * _Nonnull)getGap SWIFT_WARN_UNUSED_RESULT;
3067
3210
  - (void)setRowGap:(float)row :(NSInteger)type;
3068
3211
  - (void)setColumnGap:(float)column :(NSInteger)type;
@@ -3196,6 +3339,8 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSCFontFaceS
3196
3339
  @property (nonatomic, copy) void (^ _Nullable onStatus)(enum NSCFontFaceSetStatus);
3197
3340
  - (NSEnumerator * _Nonnull)iter SWIFT_WARN_UNUSED_RESULT;
3198
3341
  - (NSArray * _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
3342
+ - (NSCFontFace * _Nonnull)get:(NSString * _Nonnull)fontFamily SWIFT_WARN_UNUSED_RESULT;
3343
+ - (NSCFontFace * _Nullable)getOrNil:(NSString * _Nonnull)fontFamily SWIFT_WARN_UNUSED_RESULT;
3199
3344
  - (void)add:(NSCFontFace * _Nonnull)font;
3200
3345
  - (void)clear;
3201
3346
  - (void)delete:(NSCFontFace * _Nonnull)font;
@@ -3264,6 +3409,9 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
3264
3409
  - (MasonNode * _Nonnull)createTextNode SWIFT_WARN_UNUSED_RESULT;
3265
3410
  - (MasonNode * _Nonnull)createImageNode SWIFT_WARN_UNUSED_RESULT;
3266
3411
  - (MasonNode * _Nonnull)createLineBreakNode SWIFT_WARN_UNUSED_RESULT;
3412
+ - (MasonList * _Nonnull)createListViewWithIsOrdered:(BOOL)isOrdered SWIFT_WARN_UNUSED_RESULT;
3413
+ - (MasonNode * _Nonnull)createListItemNode SWIFT_WARN_UNUSED_RESULT;
3414
+ - (MasonLi * _Nonnull)createListItem SWIFT_WARN_UNUSED_RESULT;
3267
3415
  @end
3268
3416
 
3269
3417
  @interface NSObject (SWIFT_EXTENSION(Mason))
@@ -83,6 +83,8 @@ void mason_print_tree(struct CMason *mason, struct CMasonNode *node);
83
83
 
84
84
  void mason_set_device_scale(struct CMason *mason, float scale);
85
85
 
86
+ void *mason_get_buffer(struct CMason *mason, int handle);
87
+
86
88
  void mason_node_set_segments(struct CMason *mason,
87
89
  struct CMasonNode *node,
88
90
  struct CMasonSegment *segments,
@@ -142,6 +144,18 @@ struct CMasonNode *mason_node_new_line_break_node_with_context(struct CMason *ma
142
144
  float));
143
145
  #endif
144
146
 
147
+ struct CMasonNode *mason_node_new_list_item_node(struct CMason *mason);
148
+
149
+ #if !defined(TARGET_OS_ANDROID)
150
+ struct CMasonNode *mason_node_new_list_item_node_with_context(struct CMason *mason,
151
+ void *measure_data,
152
+ long long (*measure)(const void*,
153
+ float,
154
+ float,
155
+ float,
156
+ float));
157
+ #endif
158
+
145
159
  void *mason_node_layout(struct CMason *mason,
146
160
  struct CMasonNode *node,
147
161
  void *(*layout)(const float*));
@@ -258,74 +272,74 @@ void mason_style_update_non_buffer_data(struct CMason *mason,
258
272
 
259
273
  void mason_style_set_with_values(struct CMason *mason,
260
274
  struct CMasonNode *node,
261
- int display,
262
- int position,
263
- int direction,
264
- int flex_direction,
265
- int flex_wrap,
266
- int overflow,
267
- int align_items,
268
- int align_self,
269
- int align_content,
270
- int justify_items,
271
- int justify_self,
272
- int justify_content,
273
- int inset_left_type,
275
+ signed char display,
276
+ signed char position,
277
+ signed char direction,
278
+ signed char flex_direction,
279
+ signed char flex_wrap,
280
+ signed char overflow,
281
+ signed char align_items,
282
+ signed char align_self,
283
+ signed char align_content,
284
+ signed char justify_items,
285
+ signed char justify_self,
286
+ signed char justify_content,
287
+ signed char inset_left_type,
274
288
  float inset_left_value,
275
- int inset_right_type,
289
+ signed char inset_right_type,
276
290
  float inset_right_value,
277
- int inset_top_type,
291
+ signed char inset_top_type,
278
292
  float inset_top_value,
279
- int inset_bottom_type,
293
+ signed char inset_bottom_type,
280
294
  float inset_bottom_value,
281
- int margin_left_type,
295
+ signed char margin_left_type,
282
296
  float margin_left_value,
283
- int margin_right_type,
297
+ signed char margin_right_type,
284
298
  float margin_right_value,
285
- int margin_top_type,
299
+ signed char margin_top_type,
286
300
  float margin_top_value,
287
- int margin_bottom_type,
301
+ signed char margin_bottom_type,
288
302
  float margin_bottom_value,
289
- int padding_left_type,
303
+ signed char padding_left_type,
290
304
  float padding_left_value,
291
- int padding_right_type,
305
+ signed char padding_right_type,
292
306
  float padding_right_value,
293
- int padding_top_type,
307
+ signed char padding_top_type,
294
308
  float padding_top_value,
295
- int padding_bottom_type,
309
+ signed char padding_bottom_type,
296
310
  float padding_bottom_value,
297
- int border_left_type,
311
+ signed char border_left_type,
298
312
  float border_left_value,
299
- int border_right_type,
313
+ signed char border_right_type,
300
314
  float border_right_value,
301
- int border_top_type,
315
+ signed char border_top_type,
302
316
  float border_top_value,
303
- int border_bottom_type,
317
+ signed char border_bottom_type,
304
318
  float border_bottom_value,
305
319
  float flex_grow,
306
320
  float flex_shrink,
307
- int flex_basis_type,
321
+ signed char flex_basis_type,
308
322
  float flex_basis_value,
309
- int width_type,
323
+ signed char width_type,
310
324
  float width_value,
311
- int height_type,
325
+ signed char height_type,
312
326
  float height_value,
313
- int min_width_type,
327
+ signed char min_width_type,
314
328
  float min_width_value,
315
- int min_height_type,
329
+ signed char min_height_type,
316
330
  float min_height_value,
317
- int max_width_type,
331
+ signed char max_width_type,
318
332
  float max_width_value,
319
- int max_height_type,
333
+ signed char max_height_type,
320
334
  float max_height_value,
321
- int gap_row_type,
335
+ signed char gap_row_type,
322
336
  float gap_row_value,
323
- int gap_column_type,
337
+ signed char gap_column_type,
324
338
  float gap_column_value,
325
339
  float aspect_ratio,
326
340
  const char *grid_auto_rows,
327
341
  const char *grid_auto_columns,
328
- int grid_auto_flow,
342
+ signed char grid_auto_flow,
329
343
  const char *grid_column,
330
344
  const char *grid_column_start,
331
345
  const char *grid_column_end,
@@ -334,14 +348,16 @@ void mason_style_set_with_values(struct CMason *mason,
334
348
  const char *grid_row_end,
335
349
  const char *grid_template_rows,
336
350
  const char *grid_template_columns,
337
- int32_t overflow_x,
338
- int32_t overflow_y,
351
+ signed char overflow_x,
352
+ signed char overflow_y,
339
353
  float scrollbar_width,
340
- int32_t text_align,
341
- int32_t box_sizing,
354
+ signed char text_align,
355
+ signed char box_sizing,
342
356
  const char *grid_area,
343
357
  const char *grid_template_areas);
344
358
 
359
+ void mason_style_prepare_style_for_mut(struct CMason *mason, struct CMasonNode *node);
360
+
345
361
  void mason_style_release_style_buffer(struct CMasonBuffer *buffer);
346
362
 
347
363
  struct CMasonBuffer *mason_style_get_style_buffer(struct CMason *mason, struct CMasonNode *node);