@triniwiz/nativescript-masonkit 1.0.0-beta.6 → 1.0.0-beta.61

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 (118) hide show
  1. package/DOCS.md +884 -0
  2. package/br/index.android.d.ts +10 -0
  3. package/br/index.android.js +31 -0
  4. package/br/index.android.js.map +1 -0
  5. package/br/index.ios.d.ts +11 -0
  6. package/br/index.ios.js +30 -0
  7. package/br/index.ios.js.map +1 -0
  8. package/button/index.android.d.ts +4 -2
  9. package/button/index.android.js +9 -4
  10. package/button/index.android.js.map +1 -1
  11. package/button/index.ios.d.ts +4 -5
  12. package/button/index.ios.js +9 -66
  13. package/button/index.ios.js.map +1 -1
  14. package/common.d.ts +135 -70
  15. package/common.js +775 -1337
  16. package/common.js.map +1 -1
  17. package/img/index.android.d.ts +5 -4
  18. package/img/index.android.js +18 -6
  19. package/img/index.android.js.map +1 -1
  20. package/img/index.ios.d.ts +3 -2
  21. package/img/index.ios.js +23 -19
  22. package/img/index.ios.js.map +1 -1
  23. package/index.android.d.ts +4 -1
  24. package/index.android.js +4 -1
  25. package/index.android.js.map +1 -1
  26. package/index.d.ts +21 -1
  27. package/index.ios.d.ts +4 -1
  28. package/index.ios.js +4 -1
  29. package/index.ios.js.map +1 -1
  30. package/input/common.d.ts +20 -0
  31. package/input/common.js +64 -0
  32. package/input/common.js.map +1 -0
  33. package/input/index.android.d.ts +20 -0
  34. package/input/index.android.js +118 -0
  35. package/input/index.android.js.map +1 -0
  36. package/input/index.ios.d.ts +23 -0
  37. package/input/index.ios.js +163 -0
  38. package/input/index.ios.js.map +1 -0
  39. package/package.json +3 -2
  40. package/platforms/android/masonkit-release.aar +0 -0
  41. package/platforms/ios/Mason.xcframework/Info.plist +5 -5
  42. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +281 -51
  43. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +70 -42
  44. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Info.plist +0 -0
  45. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
  46. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  47. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +39728 -27944
  48. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +876 -247
  49. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  50. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +876 -247
  51. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  52. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +7413 -4294
  53. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +562 -102
  54. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +70 -42
  55. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Info.plist +0 -0
  56. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
  57. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  58. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  59. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +34845 -23061
  60. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +975 -346
  61. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  62. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +975 -346
  63. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +34845 -23061
  64. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +975 -346
  65. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  66. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +975 -346
  67. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +29 -29
  68. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  69. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +7408 -4287
  70. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +7103 -4165
  71. package/properties.d.ts +49 -0
  72. package/properties.js +1147 -0
  73. package/properties.js.map +1 -0
  74. package/scroll/index.android.d.ts +3 -2
  75. package/scroll/index.android.js +16 -4
  76. package/scroll/index.android.js.map +1 -1
  77. package/scroll/index.ios.d.ts +3 -2
  78. package/scroll/index.ios.js +18 -5
  79. package/scroll/index.ios.js.map +1 -1
  80. package/style.d.ts +9 -5
  81. package/style.js +622 -367
  82. package/style.js.map +1 -1
  83. package/symbols.d.ts +10 -0
  84. package/symbols.js +11 -0
  85. package/symbols.js.map +1 -0
  86. package/text/index.android.d.ts +11 -5
  87. package/text/index.android.js +72 -103
  88. package/text/index.android.js.map +1 -1
  89. package/text/index.ios.d.ts +12 -10
  90. package/text/index.ios.js +69 -168
  91. package/text/index.ios.js.map +1 -1
  92. package/text-node/index.android.d.ts +13 -0
  93. package/text-node/index.android.js +35 -0
  94. package/text-node/index.android.js.map +1 -0
  95. package/text-node/index.ios.d.ts +13 -0
  96. package/text-node/index.ios.js +35 -0
  97. package/text-node/index.ios.js.map +1 -0
  98. package/tree/index.android.d.ts +10 -2
  99. package/tree/index.android.js +62 -1
  100. package/tree/index.android.js.map +1 -1
  101. package/tree/index.ios.d.ts +4 -1
  102. package/tree/index.ios.js +36 -1
  103. package/tree/index.ios.js.map +1 -1
  104. package/utils/index.android.d.ts +2 -1
  105. package/utils/index.android.js +1 -1
  106. package/utils/index.android.js.map +1 -1
  107. package/utils/index.ios.d.ts +2 -1
  108. package/utils/index.ios.js +1 -1
  109. package/utils/index.ios.js.map +1 -1
  110. package/view/index.android.d.ts +3 -2
  111. package/view/index.android.js +18 -4
  112. package/view/index.android.js.map +1 -1
  113. package/view/index.ios.d.ts +3 -2
  114. package/view/index.ios.js +18 -5
  115. package/view/index.ios.js.map +1 -1
  116. package/web.d.ts +6 -0
  117. package/web.js +22 -0
  118. package/web.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,72 +585,47 @@ 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,
591
605
  MasonLoadingStateError = 2,
592
606
  };
593
607
 
594
- SWIFT_PROTOCOL("_TtP5Mason18MasonCharacterData_")
595
- @protocol MasonCharacterData
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
608
+ SWIFT_CLASS_NAMED("MasonBr")
609
+ @interface MasonBr : NSObject <MasonElementObjc>
612
610
  @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
613
- @property (nonatomic, copy) void (^ _Nullable onNodeAttached)(void);
614
- @property (nonatomic, copy) void (^ _Nullable onNodeDetached)(void);
615
- @property (nonatomic, readonly) void * _Nullable nativePtr;
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;
611
+ @property (nonatomic, strong) MasonNode * _Nonnull node;
612
+ @property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
613
+ @property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
631
614
  - (nonnull instancetype)init SWIFT_UNAVAILABLE;
632
615
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
633
616
  @end
634
617
 
635
- SWIFT_CLASS_NAMED("MasonTextNode")
636
- @interface MasonTextNode : MasonNode <MasonCharacterData>
618
+ SWIFT_PROTOCOL("_TtP5Mason18MasonCharacterData_")
619
+ @protocol MasonCharacterData
637
620
  @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
621
  @property (nonatomic, readonly) NSInteger length;
641
- - (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
642
622
  - (nonnull instancetype)appendData:(NSString * _Nonnull)s;
643
623
  - (nonnull instancetype)insertData:(NSString * _Nonnull)s at:(NSInteger)offset;
644
624
  - (nonnull instancetype)deleteDataWithOffset:(NSInteger)offset count:(NSInteger)count;
645
625
  - (nonnull instancetype)replaceDataWithOffset:(NSInteger)offset count:(NSInteger)count with:(NSString * _Nonnull)s;
626
+ - (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
646
627
  - (nonnull instancetype)deleteDataWithRange:(NSRange)range;
647
628
  - (nonnull instancetype)replaceDataWithRange:(NSRange)range with:(NSString * _Nonnull)s;
648
- - (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes SWIFT_UNAVAILABLE;
649
- @end
650
-
651
- SWIFT_CLASS_NAMED("MasonBr")
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
629
  @end
655
630
 
656
631
  enum MasonDimensionCompatType : NSInteger;
@@ -712,6 +687,44 @@ SWIFT_CLASS_NAMED("MasonDocument")
712
687
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
713
688
  @end
714
689
 
690
+ @class MasonEventOptions;
691
+ SWIFT_CLASS_NAMED("MasonEvent")
692
+ @interface MasonEvent : NSObject
693
+ @property (nonatomic, readonly, copy) NSString * _Nonnull type;
694
+ @property (nonatomic, readonly) BOOL bubbles;
695
+ @property (nonatomic, readonly) BOOL cancelable;
696
+ @property (nonatomic, readonly) BOOL isComposing;
697
+ @property (nonatomic, readonly) double timeStamp;
698
+ @property (nonatomic, readonly) BOOL defaultPrevented;
699
+ @property (nonatomic, readonly) BOOL propagationStopped;
700
+ @property (nonatomic, readonly) BOOL immediatePropagationStopped;
701
+ @property (nonatomic, readonly) id _Nullable target;
702
+ @property (nonatomic, readonly) id _Nullable currentTarget;
703
+ - (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options OBJC_DESIGNATED_INITIALIZER;
704
+ - (void)preventDefault;
705
+ - (void)stopPropagation;
706
+ - (void)stopImmediatePropagation;
707
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
708
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
709
+ @end
710
+
711
+ SWIFT_CLASS_NAMED("MasonEventOptions")
712
+ @interface MasonEventOptions : NSObject
713
+ @property (nonatomic) BOOL isComposing;
714
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
715
+ - (nonnull instancetype)initWithIsComposing:(BOOL)isComposing OBJC_DESIGNATED_INITIALIZER;
716
+ @end
717
+
718
+ @class NSURL;
719
+ SWIFT_CLASS_NAMED("MasonFileInputEvent")
720
+ @interface MasonFileInputEvent : MasonEvent
721
+ @property (nonatomic, readonly, copy) NSString * _Nullable data;
722
+ @property (nonatomic, readonly, copy) NSString * _Nullable inputType;
723
+ @property (nonatomic, readonly, copy) NSArray<NSURL *> * _Nonnull rawData;
724
+ - (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;
725
+ - (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options SWIFT_UNAVAILABLE;
726
+ @end
727
+
715
728
  typedef SWIFT_ENUM_NAMED(NSInteger, MasonFloat, "MasonFloat", open) {
716
729
  MasonFloatNone = 0,
717
730
  MasonFloatLeft = 1,
@@ -721,11 +734,59 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonFloat, "MasonFloat", open) {
721
734
  SWIFT_CLASS("_TtC5Mason15MasonImageLayer")
722
735
  @interface MasonImageLayer : CALayer
723
736
  - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
724
- - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
725
737
  - (nonnull instancetype)initWithLayer:(id _Nonnull)layer OBJC_DESIGNATED_INITIALIZER;
738
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
726
739
  - (void)drawInContext:(CGContextRef _Nonnull)context;
740
+ - (void)layoutSublayers;
741
+ @end
742
+
743
+ enum MasonInputType : int8_t;
744
+ @class NSDate;
745
+ SWIFT_CLASS_NAMED("MasonInput")
746
+ @interface MasonInput : UIView
747
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
748
+ @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
749
+ @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
750
+ @property (nonatomic) BOOL multiple;
751
+ @property (nonatomic, copy) NSString * _Nonnull accept;
752
+ @property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
753
+ @property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
754
+ @property (nonatomic) enum MasonInputType type;
755
+ @property (nonatomic) int32_t size;
756
+ @property (nonatomic, copy) NSString * _Nonnull value;
757
+ @property (nonatomic) double valueAsNumber;
758
+ @property (nonatomic, copy) NSDate * _Nullable valueAsDate;
759
+ @property (nonatomic, copy) NSString * _Nonnull placeholder;
760
+ - (void)drawRect:(CGRect)rect;
761
+ - (void)layoutSubviews;
762
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
727
763
  @end
728
764
 
765
+ SWIFT_CLASS_NAMED("MasonInputEvent")
766
+ @interface MasonInputEvent : MasonEvent
767
+ @property (nonatomic, readonly, copy) NSString * _Nullable data;
768
+ @property (nonatomic, readonly, copy) NSString * _Nullable inputType;
769
+ - (nonnull instancetype)initWithType:(NSString * _Nonnull)type data:(NSString * _Nullable)inputData inputType:(NSString * _Nullable)masonInputType options:(MasonEventOptions * _Nullable)options OBJC_DESIGNATED_INITIALIZER;
770
+ - (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options SWIFT_UNAVAILABLE;
771
+ @end
772
+
773
+ typedef SWIFT_ENUM_NAMED(int8_t, MasonInputType, "MasonInputType", open) {
774
+ MasonInputTypeText = 0,
775
+ MasonInputTypeButton = 1,
776
+ MasonInputTypeCheckbox = 2,
777
+ MasonInputTypeEmail = 3,
778
+ MasonInputTypePassword = 4,
779
+ MasonInputTypeDate = 5,
780
+ MasonInputTypeRadio = 6,
781
+ MasonInputTypeNumber = 7,
782
+ MasonInputTypeRange = 8,
783
+ MasonInputTypeTel = 9,
784
+ MasonInputTypeUrl = 10,
785
+ MasonInputTypeColor = 11,
786
+ MasonInputTypeFile = 12,
787
+ MasonInputTypeSubmit = 13,
788
+ };
789
+
729
790
  SWIFT_CLASS_NAMED("MasonLayout")
730
791
  @interface MasonLayout : NSObject
731
792
  @property (nonatomic, readonly) NSInteger order;
@@ -737,6 +798,28 @@ SWIFT_CLASS_NAMED("MasonLayout")
737
798
  SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonLayout * _Nonnull zero;)
738
799
  + (MasonLayout * _Nonnull)zero SWIFT_WARN_UNUSED_RESULT;
739
800
  @property (nonatomic, readonly) BOOL hasChildren;
801
+ @property (nonatomic, readonly) BOOL borderIsEmpty;
802
+ @property (nonatomic, readonly) float borderTop;
803
+ @property (nonatomic, readonly) float borderRight;
804
+ @property (nonatomic, readonly) float borderBottom;
805
+ @property (nonatomic, readonly) float borderLeft;
806
+ @property (nonatomic, readonly) BOOL marginIsEmpty;
807
+ @property (nonatomic, readonly) float marginTop;
808
+ @property (nonatomic, readonly) float marginRight;
809
+ @property (nonatomic, readonly) float marginBottom;
810
+ @property (nonatomic, readonly) float marginLeft;
811
+ @property (nonatomic, readonly) BOOL paddingIsEmpty;
812
+ @property (nonatomic, readonly) float paddingTop;
813
+ @property (nonatomic, readonly) float paddingRight;
814
+ @property (nonatomic, readonly) float paddingBottom;
815
+ @property (nonatomic, readonly) float paddingLeft;
816
+ @property (nonatomic, readonly) BOOL sizeIsEmpty;
817
+ @property (nonatomic, readonly) BOOL contentSizeIsEmpty;
818
+ @property (nonatomic, readonly) float contentSizeWidth;
819
+ @property (nonatomic, readonly) float contentSizeHeight;
820
+ @property (nonatomic, readonly) BOOL scrollbarSizeIsEmpty;
821
+ @property (nonatomic, readonly) float scrollbarSizeWidth;
822
+ @property (nonatomic, readonly) float scrollbarSizeHeight;
740
823
  @property (nonatomic, readonly, copy) NSString * _Nonnull description;
741
824
  - (nonnull instancetype)init SWIFT_UNAVAILABLE;
742
825
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@@ -839,6 +922,112 @@ SWIFT_CLASS_NAMED("MasonLengthPercentageSizeCompat")
839
922
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
840
923
  @end
841
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
+
975
+ @class MasonMouseEventOptions;
976
+ SWIFT_CLASS_NAMED("MasonMouseEvent")
977
+ @interface MasonMouseEvent : MasonEvent
978
+ @property (nonatomic, readonly) NSInteger button;
979
+ @property (nonatomic, readonly) NSInteger buttons;
980
+ @property (nonatomic, readonly) float clientX;
981
+ @property (nonatomic, readonly) float clientY;
982
+ @property (nonatomic, readonly) BOOL ctrlKey;
983
+ @property (nonatomic, readonly) BOOL shiftKey;
984
+ @property (nonatomic, readonly) BOOL altKey;
985
+ @property (nonatomic, readonly) BOOL metaKey;
986
+ @property (nonatomic, readonly) NSInteger detail;
987
+ @property (nonatomic, readonly) float screenX;
988
+ @property (nonatomic, readonly) float screenY;
989
+ @property (nonatomic, readonly) id _Nullable relatedTarget;
990
+ @property (nonatomic, readonly) id _Nullable region;
991
+ @property (nonatomic, readonly) NSInteger movementX;
992
+ @property (nonatomic, readonly) NSInteger movementY;
993
+ @property (nonatomic, readonly) float pageX;
994
+ @property (nonatomic, readonly) float pageY;
995
+ - (nonnull instancetype)initWithType:(NSString * _Nonnull)type options:(MasonMouseEventOptions * _Nullable)options OBJC_DESIGNATED_INITIALIZER;
996
+ - (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options SWIFT_UNAVAILABLE;
997
+ @end
998
+
999
+ SWIFT_CLASS_NAMED("MasonMouseEventOptions")
1000
+ @interface MasonMouseEventOptions : MasonEventOptions
1001
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1002
+ - (nonnull instancetype)initWithIsComposing:(BOOL)isComposing OBJC_DESIGNATED_INITIALIZER;
1003
+ @end
1004
+
1005
+ enum MasonNodeType : int32_t;
1006
+ SWIFT_CLASS_NAMED("MasonNode")
1007
+ @interface MasonNode : NSObject
1008
+ @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
1009
+ @property (nonatomic, copy) void (^ _Nullable onNodeAttached)(void);
1010
+ @property (nonatomic, copy) void (^ _Nullable onNodeDetached)(void);
1011
+ @property (nonatomic, readonly) void * _Nullable nativePtr;
1012
+ @property (nonatomic, readonly, strong) MasonLayout * _Nonnull computedLayout;
1013
+ @property (nonatomic, readonly, strong) MasonDocument * _Nullable document;
1014
+ - (MasonNode * _Nonnull)getRootNode SWIFT_WARN_UNUSED_RESULT;
1015
+ @property (nonatomic, readonly, strong) MasonNode * _Nullable parent;
1016
+ @property (nonatomic, readonly, strong) MasonNode * _Nullable parentNode;
1017
+ @property (nonatomic, readonly) enum MasonNodeType type;
1018
+ - (NSArray<MasonNode *> * _Nonnull)getChildren SWIFT_WARN_UNUSED_RESULT;
1019
+ - (NSArray<MasonNode *> * _Nonnull)getLayoutChildren SWIFT_WARN_UNUSED_RESULT;
1020
+ @property (nonatomic) BOOL inBatch;
1021
+ - (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes OBJC_DESIGNATED_INITIALIZER;
1022
+ @property (nonatomic, readonly) BOOL isDirty;
1023
+ - (void)markDirty;
1024
+ - (UIView * _Nullable)getRoot SWIFT_WARN_UNUSED_RESULT;
1025
+ /// Helper to get default text attributes for new text nodes
1026
+ - (NSDictionary<NSAttributedStringKey, id> * _Nonnull)getDefaultAttributes SWIFT_WARN_UNUSED_RESULT;
1027
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1028
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1029
+ @end
1030
+
842
1031
  @interface MasonNode (SWIFT_EXTENSION(Mason))
843
1032
  - (void)setChildrenWithValue:(NSArray<MasonNode *> * _Nonnull)value;
844
1033
  - (void)appendChild:(MasonNode * _Nonnull)child;
@@ -874,9 +1063,13 @@ enum MasonTextAlign : NSInteger;
874
1063
  SWIFT_CLASS_NAMED("MasonStyle")
875
1064
  @interface MasonStyle : NSObject
876
1065
  @property (nonatomic, readonly, strong) NSCFontFace * _Null_unspecified font;
877
- @property (nonatomic, strong) NSMutableData * _Nonnull values;
1066
+ - (void)prepareMut;
1067
+ @property (nonatomic, readonly, strong) NSMutableData * _Nonnull values;
878
1068
  @property (nonatomic, strong) NSMutableData * _Nonnull textValues;
879
1069
  - (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)node OBJC_DESIGNATED_INITIALIZER;
1070
+ @property (nonatomic) enum MasonListStylePosition listStylePosition;
1071
+ @property (nonatomic) enum MasonListStyleType listStyleType;
1072
+ @property (nonatomic) int32_t zIndex;
880
1073
  @property (nonatomic, strong) MasonVerticalAlignValue * _Nonnull verticalAlign;
881
1074
  @property (nonatomic) enum MasonObjectFit objectFit;
882
1075
  @property (nonatomic, getter=float, setter=setFloat:) enum MasonFloat float_;
@@ -1054,6 +1247,22 @@ SWIFT_CLASS("_TtC5Mason14MasonTextLayer")
1054
1247
  - (void)drawInContext:(CGContextRef _Nonnull)context;
1055
1248
  @end
1056
1249
 
1250
+ SWIFT_CLASS_NAMED("MasonTextNode")
1251
+ @interface MasonTextNode : MasonNode <MasonCharacterData>
1252
+ @property (nonatomic, copy) NSString * _Nonnull data;
1253
+ - (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc data:(NSString * _Nonnull)text attributes:(NSDictionary<NSAttributedStringKey, id> * _Nullable)attrs OBJC_DESIGNATED_INITIALIZER;
1254
+ - (void)appendChild:(MasonNode * _Nonnull)child;
1255
+ @property (nonatomic, readonly) NSInteger length;
1256
+ - (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
1257
+ - (nonnull instancetype)appendData:(NSString * _Nonnull)s;
1258
+ - (nonnull instancetype)insertData:(NSString * _Nonnull)s at:(NSInteger)offset;
1259
+ - (nonnull instancetype)deleteDataWithOffset:(NSInteger)offset count:(NSInteger)count;
1260
+ - (nonnull instancetype)replaceDataWithOffset:(NSInteger)offset count:(NSInteger)count with:(NSString * _Nonnull)s;
1261
+ - (nonnull instancetype)deleteDataWithRange:(NSRange)range;
1262
+ - (nonnull instancetype)replaceDataWithRange:(NSRange)range with:(NSString * _Nonnull)s;
1263
+ - (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes SWIFT_UNAVAILABLE;
1264
+ @end
1265
+
1057
1266
  @class NSAttributedString;
1058
1267
  @interface MasonTextNode (SWIFT_EXTENSION(Mason))
1059
1268
  /// Get attributed string representation of this text node
@@ -1075,6 +1284,10 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextType, "MasonTextType", open) {
1075
1284
  MasonTextTypeBlockquote = 11,
1076
1285
  MasonTextTypeB = 12,
1077
1286
  MasonTextTypePre = 13,
1287
+ MasonTextTypeStrong = 14,
1288
+ MasonTextTypeEm = 15,
1289
+ MasonTextTypeI = 16,
1290
+ MasonTextTypeA = 17,
1078
1291
  };
1079
1292
 
1080
1293
  SWIFT_CLASS_NAMED("MasonUIView")
@@ -1186,7 +1399,7 @@ SWIFT_CLASS_NAMED("MasonUIView")
1186
1399
  - (MasonDimensionCompat * _Nonnull)getMaxSizeWidth SWIFT_WARN_UNUSED_RESULT;
1187
1400
  - (MasonDimensionCompat * _Nonnull)getMaxSizeHeight SWIFT_WARN_UNUSED_RESULT;
1188
1401
  - (void)setGap:(float)width :(float)height;
1189
- - (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;
1190
1403
  - (MasonLengthPercentageSizeCompat * _Nonnull)getGap SWIFT_WARN_UNUSED_RESULT;
1191
1404
  - (void)setRowGap:(float)row :(NSInteger)type;
1192
1405
  - (void)setColumnGap:(float)column :(NSInteger)type;
@@ -1320,6 +1533,8 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSCFontFaceS
1320
1533
  @property (nonatomic, copy) void (^ _Nullable onStatus)(enum NSCFontFaceSetStatus);
1321
1534
  - (NSEnumerator * _Nonnull)iter SWIFT_WARN_UNUSED_RESULT;
1322
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;
1323
1538
  - (void)add:(NSCFontFace * _Nonnull)font;
1324
1539
  - (void)clear;
1325
1540
  - (void)delete:(NSCFontFace * _Nonnull)font;
@@ -1353,6 +1568,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontWeight, "NSCFontWeight", open) {
1353
1568
  NSCFontWeightBlack = 8,
1354
1569
  };
1355
1570
 
1571
+ @class NSUUID;
1356
1572
  @class MasonScroll;
1357
1573
  SWIFT_CLASS_NAMED("NSCMason")
1358
1574
  @interface NSCMason : NSObject
@@ -1365,7 +1581,12 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
1365
1581
  - (MasonNode * _Nonnull)nodeForView:(UIView * _Nonnull)view :(BOOL)isLeaf SWIFT_WARN_UNUSED_RESULT;
1366
1582
  - (void)configureStyleForView:(UIView * _Nonnull)view :(SWIFT_NOESCAPE void (^ _Nonnull)(MasonStyle * _Nonnull))block;
1367
1583
  - (MasonStyle * _Nonnull)styleForView:(UIView * _Nonnull)view SWIFT_WARN_UNUSED_RESULT;
1584
+ - (MasonStyle * _Nullable)styleForViewOrNode:(id _Nullable)viewOrNode SWIFT_WARN_UNUSED_RESULT;
1368
1585
  - (MasonLayout * _Nonnull)layoutForView:(UIView * _Nonnull)view;
1586
+ - (NSUUID * _Nonnull)addEventListener:(MasonNode * _Nonnull)node :(NSString * _Nonnull)event :(void (^ _Nonnull)(MasonEvent * _Nonnull))listener;
1587
+ - (BOOL)removeEventListener:(MasonNode * _Nonnull)node :(NSString * _Nonnull)event id:(NSUUID * _Nonnull)id;
1588
+ - (BOOL)removeEventListener:(MasonNode * _Nonnull)node :(NSString * _Nonnull)event;
1589
+ - (void)dispatch:(MasonEvent * _Nonnull)event :(MasonNode * _Nonnull)node;
1369
1590
  - (void)clear;
1370
1591
  - (MasonDocument * _Nonnull)createDocument SWIFT_WARN_UNUSED_RESULT;
1371
1592
  - (MasonUIView * _Nonnull)createView SWIFT_WARN_UNUSED_RESULT;
@@ -1377,12 +1598,21 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
1377
1598
  - (MasonButton * _Nonnull)createButton SWIFT_WARN_UNUSED_RESULT;
1378
1599
  - (MasonNode * _Nonnull)createNode SWIFT_WARN_UNUSED_RESULT;
1379
1600
  - (MasonBr * _Nonnull)createBr SWIFT_WARN_UNUSED_RESULT;
1601
+ - (MasonInput * _Nonnull)createInput:(enum MasonInputType)type SWIFT_WARN_UNUSED_RESULT;
1380
1602
  - (void)printTree:(MasonNode * _Nonnull)node;
1381
1603
  - (MasonNode * _Nonnull)createTextNode SWIFT_WARN_UNUSED_RESULT;
1382
1604
  - (MasonNode * _Nonnull)createImageNode SWIFT_WARN_UNUSED_RESULT;
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;
1383
1609
  @end
1384
1610
 
1385
1611
  @interface NSObject (SWIFT_EXTENSION(Mason))
1612
+ - (NSUUID * _Nonnull)mason_addEventListener:(NSString * _Nonnull)event :(void (^ _Nonnull)(MasonEvent * _Nonnull))listener;
1613
+ - (BOOL)mason_removeEventListener:(NSString * _Nonnull)event id:(NSUUID * _Nonnull)id;
1614
+ - (BOOL)mason_removeEventListener:(NSString * _Nonnull)event;
1615
+ - (void)mason_dispatch:(MasonEvent * _Nonnull)event;
1386
1616
  - (void)mason_syncStyle:(NSString * _Nonnull)state :(NSString * _Nonnull)textState;
1387
1617
  - (void)mason_addView:(UIView * _Nonnull)view;
1388
1618
  - (void)mason_addView:(UIView * _Nonnull)view at:(NSInteger)at;
@@ -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,
@@ -130,6 +132,30 @@ struct CMasonNode *mason_node_new_text_node_with_children(struct CMason *mason,
130
132
  struct CMasonNode **children,
131
133
  uintptr_t children_size);
132
134
 
135
+ struct CMasonNode *mason_node_new_line_break_node(struct CMason *mason);
136
+
137
+ #if !defined(TARGET_OS_ANDROID)
138
+ struct CMasonNode *mason_node_new_line_break_node_with_context(struct CMason *mason,
139
+ void *measure_data,
140
+ long long (*measure)(const void*,
141
+ float,
142
+ float,
143
+ float,
144
+ float));
145
+ #endif
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
+
133
159
  void *mason_node_layout(struct CMason *mason,
134
160
  struct CMasonNode *node,
135
161
  void *(*layout)(const float*));
@@ -246,74 +272,74 @@ void mason_style_update_non_buffer_data(struct CMason *mason,
246
272
 
247
273
  void mason_style_set_with_values(struct CMason *mason,
248
274
  struct CMasonNode *node,
249
- int display,
250
- int position,
251
- int direction,
252
- int flex_direction,
253
- int flex_wrap,
254
- int overflow,
255
- int align_items,
256
- int align_self,
257
- int align_content,
258
- int justify_items,
259
- int justify_self,
260
- int justify_content,
261
- 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,
262
288
  float inset_left_value,
263
- int inset_right_type,
289
+ signed char inset_right_type,
264
290
  float inset_right_value,
265
- int inset_top_type,
291
+ signed char inset_top_type,
266
292
  float inset_top_value,
267
- int inset_bottom_type,
293
+ signed char inset_bottom_type,
268
294
  float inset_bottom_value,
269
- int margin_left_type,
295
+ signed char margin_left_type,
270
296
  float margin_left_value,
271
- int margin_right_type,
297
+ signed char margin_right_type,
272
298
  float margin_right_value,
273
- int margin_top_type,
299
+ signed char margin_top_type,
274
300
  float margin_top_value,
275
- int margin_bottom_type,
301
+ signed char margin_bottom_type,
276
302
  float margin_bottom_value,
277
- int padding_left_type,
303
+ signed char padding_left_type,
278
304
  float padding_left_value,
279
- int padding_right_type,
305
+ signed char padding_right_type,
280
306
  float padding_right_value,
281
- int padding_top_type,
307
+ signed char padding_top_type,
282
308
  float padding_top_value,
283
- int padding_bottom_type,
309
+ signed char padding_bottom_type,
284
310
  float padding_bottom_value,
285
- int border_left_type,
311
+ signed char border_left_type,
286
312
  float border_left_value,
287
- int border_right_type,
313
+ signed char border_right_type,
288
314
  float border_right_value,
289
- int border_top_type,
315
+ signed char border_top_type,
290
316
  float border_top_value,
291
- int border_bottom_type,
317
+ signed char border_bottom_type,
292
318
  float border_bottom_value,
293
319
  float flex_grow,
294
320
  float flex_shrink,
295
- int flex_basis_type,
321
+ signed char flex_basis_type,
296
322
  float flex_basis_value,
297
- int width_type,
323
+ signed char width_type,
298
324
  float width_value,
299
- int height_type,
325
+ signed char height_type,
300
326
  float height_value,
301
- int min_width_type,
327
+ signed char min_width_type,
302
328
  float min_width_value,
303
- int min_height_type,
329
+ signed char min_height_type,
304
330
  float min_height_value,
305
- int max_width_type,
331
+ signed char max_width_type,
306
332
  float max_width_value,
307
- int max_height_type,
333
+ signed char max_height_type,
308
334
  float max_height_value,
309
- int gap_row_type,
335
+ signed char gap_row_type,
310
336
  float gap_row_value,
311
- int gap_column_type,
337
+ signed char gap_column_type,
312
338
  float gap_column_value,
313
339
  float aspect_ratio,
314
340
  const char *grid_auto_rows,
315
341
  const char *grid_auto_columns,
316
- int grid_auto_flow,
342
+ signed char grid_auto_flow,
317
343
  const char *grid_column,
318
344
  const char *grid_column_start,
319
345
  const char *grid_column_end,
@@ -322,14 +348,16 @@ void mason_style_set_with_values(struct CMason *mason,
322
348
  const char *grid_row_end,
323
349
  const char *grid_template_rows,
324
350
  const char *grid_template_columns,
325
- int32_t overflow_x,
326
- int32_t overflow_y,
351
+ signed char overflow_x,
352
+ signed char overflow_y,
327
353
  float scrollbar_width,
328
- int32_t text_align,
329
- int32_t box_sizing,
354
+ signed char text_align,
355
+ signed char box_sizing,
330
356
  const char *grid_area,
331
357
  const char *grid_template_areas);
332
358
 
359
+ void mason_style_prepare_style_for_mut(struct CMason *mason, struct CMasonNode *node);
360
+
333
361
  void mason_style_release_style_buffer(struct CMasonBuffer *buffer);
334
362
 
335
363
  struct CMasonBuffer *mason_style_get_style_buffer(struct CMason *mason, struct CMasonNode *node);