@triniwiz/nativescript-masonkit 1.0.0-beta.98 → 1.0.0-beta.99

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 (52) hide show
  1. package/package.json +1 -1
  2. package/platforms/android/masonkit-release.aar +0 -0
  3. package/platforms/ios/Mason.xcframework/Info.plist +8 -8
  4. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +3 -0
  5. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
  6. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  7. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +4155 -12733
  8. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +15 -2
  9. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +15 -2
  10. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  11. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +8315 -8252
  12. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +2046 -0
  13. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
  14. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  15. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  16. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +4155 -12733
  17. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +15 -2
  18. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +15 -2
  19. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +4155 -12733
  20. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +15 -2
  21. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +15 -2
  22. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +78 -12
  23. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  24. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +8310 -8247
  25. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +8293 -0
  26. package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Headers/Mason-Swift.h +3 -0
  27. package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Mason +0 -0
  28. package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-xros.swiftsourceinfo +0 -0
  29. package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.abi.json +4155 -12733
  30. package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.private.swiftinterface +15 -2
  31. package/platforms/ios/Mason.xcframework/xros-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros.swiftinterface +15 -2
  32. package/platforms/ios/Mason.xcframework/xros-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  33. package/platforms/ios/Mason.xcframework/xros-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +7809 -7747
  34. package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Headers/Mason-Swift.h +3 -0
  35. package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Mason +0 -0
  36. package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-xros-simulator.swiftsourceinfo +0 -0
  37. package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.abi.json +4155 -12733
  38. package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.private.swiftinterface +15 -2
  39. package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-xros-simulator.swiftinterface +15 -2
  40. package/platforms/ios/Mason.xcframework/xros-arm64-simulator/Mason.framework/_CodeSignature/CodeResources +12 -12
  41. package/platforms/ios/Mason.xcframework/xros-arm64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  42. package/platforms/ios/Mason.xcframework/xros-arm64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +7809 -7747
  43. package/scroll/index.android.d.ts +2 -0
  44. package/scroll/index.android.js +7 -1
  45. package/scroll/index.android.js.map +1 -1
  46. package/scroll/index.ios.d.ts +2 -0
  47. package/scroll/index.ios.js +6 -2
  48. package/scroll/index.ios.js.map +1 -1
  49. package/typings/android.d.ts +2 -0
  50. package/web.d.ts +17 -22
  51. package/web.js +19 -22
  52. package/web.js.map +1 -1
@@ -1541,6 +1541,2051 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextType, "MasonTextType", open) {
1541
1541
 
1542
1542
  SWIFT_CLASS_NAMED("MasonUIView")
1543
1543
  @interface MasonUIView : UIView <MasonElementObjc>
1544
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layerClass;)
1545
+ + (Class _Nonnull)layerClass SWIFT_WARN_UNUSED_RESULT;
1546
+ - (void)drawRect:(CGRect)rect;
1547
+ @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
1548
+ @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
1549
+ @property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
1550
+ @property (nonatomic) CGSize contentSize;
1551
+ @property (nonatomic) BOOL isScrollContainer;
1552
+ @property (nonatomic) CGPoint contentOffset;
1553
+ @property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
1554
+ - (void)markNodeDirty;
1555
+ - (BOOL)isNodeDirty SWIFT_WARN_UNUSED_RESULT;
1556
+ @property (nonatomic) CGRect frame;
1557
+ - (void)layoutSubviews;
1558
+ - (void)willMoveToWindow:(UIWindow * _Nullable)newWindow;
1559
+ - (void)willMoveToSuperview:(UIView * _Nullable)newSuperview;
1560
+ - (void)didMoveToSuperview;
1561
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
1562
+ + (MasonUIView * _Nonnull)createGridView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
1563
+ + (MasonUIView * _Nonnull)createFlexView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
1564
+ + (MasonUIView * _Nonnull)createBlockView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
1565
+ - (void)addView:(UIView * _Nonnull)view;
1566
+ - (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
1567
+ - (void)removeView:(UIView * _Nonnull)view;
1568
+ - (void)removeViewAt:(NSInteger)index;
1569
+ - (void)addSubviews:(NSArray<UIView *> * _Nonnull)views;
1570
+ - (void)addSubviews:(NSArray<UIView *> * _Nonnull)views at:(NSInteger)index;
1571
+ @property (nonatomic) BOOL inBatch;
1572
+ @property (nonatomic, copy) NSString * _Nonnull background;
1573
+ @property (nonatomic) enum MasonDisplay display;
1574
+ @property (nonatomic) enum MasonPosition _position;
1575
+ @property (nonatomic) enum MasonDirection direction;
1576
+ @property (nonatomic) enum MasonFlexDirection flexDirection;
1577
+ @property (nonatomic) enum MasonFlexWrap flexWrap;
1578
+ @property (nonatomic) enum MasonOverflow overflowX;
1579
+ @property (nonatomic) enum MasonOverflow overflowY;
1580
+ @property (nonatomic) enum MasonAlignItems alignItems;
1581
+ @property (nonatomic) enum MasonAlignSelf alignSelf;
1582
+ @property (nonatomic) enum MasonAlignContent alignContent;
1583
+ @property (nonatomic) enum MasonJustifyItems justifyItems;
1584
+ @property (nonatomic) enum MasonJustifySelf justifySelf;
1585
+ @property (nonatomic) enum MasonJustifyContent justifyContent;
1586
+ @property (nonatomic) float flexGrow;
1587
+ @property (nonatomic) float flexShrink;
1588
+ @property (nonatomic, strong) MasonDimensionCompat * _Nonnull scrollBarWidthCompat;
1589
+ @property (nonatomic, strong) MasonDimensionCompat * _Nonnull flexBasisCompat;
1590
+ @property (nonatomic) float aspectRatio;
1591
+ @property (nonatomic, copy) NSString * _Nonnull gridArea;
1592
+ @property (nonatomic, copy) NSString * _Nonnull gridTemplateAreas;
1593
+ @property (nonatomic, copy) NSString * _Nonnull gridAutoRows;
1594
+ @property (nonatomic, copy) NSString * _Nonnull gridAutoColumns;
1595
+ @property (nonatomic) enum MasonGridAutoFlowWrap gridAutoFlow;
1596
+ @property (nonatomic, copy) NSString * _Nonnull gridColumn;
1597
+ @property (nonatomic, copy) NSString * _Nonnull gridColumnStart;
1598
+ @property (nonatomic, copy) NSString * _Nonnull gridColumnEnd;
1599
+ @property (nonatomic, copy) NSString * _Nonnull gridRow;
1600
+ @property (nonatomic, copy) NSString * _Nonnull gridRowStart;
1601
+ @property (nonatomic, copy) NSString * _Nonnull gridRowEnd;
1602
+ @property (nonatomic, copy) NSString * _Nonnull gridTemplateRows;
1603
+ @property (nonatomic, copy) NSString * _Nonnull gridTemplateColumns;
1604
+ - (void)setPadding:(float)left :(float)top :(float)right :(float)bottom;
1605
+ - (MasonLengthPercentageRectCompat * _Nonnull)getPadding SWIFT_WARN_UNUSED_RESULT;
1606
+ - (void)setPaddingLeft:(float)left :(NSInteger)type;
1607
+ - (void)setPaddingRight:(float)right :(NSInteger)type;
1608
+ - (void)setPaddingTop:(float)top :(NSInteger)type;
1609
+ - (void)setPaddingBottom:(float)bottom :(NSInteger)type;
1610
+ - (MasonLengthPercentageCompat * _Nonnull)getPaddingLeft SWIFT_WARN_UNUSED_RESULT;
1611
+ - (MasonLengthPercentageCompat * _Nonnull)getPaddingRight SWIFT_WARN_UNUSED_RESULT;
1612
+ - (MasonLengthPercentageCompat * _Nonnull)getPaddingTop SWIFT_WARN_UNUSED_RESULT;
1613
+ - (MasonLengthPercentageCompat * _Nonnull)getPaddingBottom SWIFT_WARN_UNUSED_RESULT;
1614
+ - (void)setBorderWidth:(float)left :(float)top :(float)right :(float)bottom;
1615
+ - (MasonLengthPercentageRectCompat * _Nonnull)getBorderWidth SWIFT_WARN_UNUSED_RESULT;
1616
+ - (void)setBorderLeftWidth:(float)left :(NSInteger)type;
1617
+ - (void)setBorderRightWidth:(float)right :(NSInteger)type;
1618
+ - (void)setBorderTopWidth:(float)top :(NSInteger)type;
1619
+ - (void)setBorderBottomWidth:(float)bottom :(NSInteger)type;
1620
+ - (MasonLengthPercentageCompat * _Nonnull)getBorderLeft SWIFT_WARN_UNUSED_RESULT;
1621
+ - (MasonLengthPercentageCompat * _Nonnull)getBorderRight SWIFT_WARN_UNUSED_RESULT;
1622
+ - (MasonLengthPercentageCompat * _Nonnull)getBorderBottom SWIFT_WARN_UNUSED_RESULT;
1623
+ - (MasonLengthPercentageCompat * _Nonnull)getBorderTop SWIFT_WARN_UNUSED_RESULT;
1624
+ - (void)setMargin:(float)left :(float)top :(float)right :(float)bottom;
1625
+ - (MasonLengthPercentageAutoRectCompat * _Nonnull)getMargin SWIFT_WARN_UNUSED_RESULT;
1626
+ - (void)setMarginLeft:(float)left :(NSInteger)type;
1627
+ - (void)setMarginRight:(float)right :(NSInteger)type;
1628
+ - (void)setMarginTop:(float)top :(NSInteger)type;
1629
+ - (void)setMarginBottom:(float)bottom :(NSInteger)type;
1630
+ - (MasonLengthPercentageAutoCompat * _Nonnull)getMarginLeft SWIFT_WARN_UNUSED_RESULT;
1631
+ - (MasonLengthPercentageAutoCompat * _Nonnull)getMarginRight SWIFT_WARN_UNUSED_RESULT;
1632
+ - (MasonLengthPercentageAutoCompat * _Nonnull)getMarginTop SWIFT_WARN_UNUSED_RESULT;
1633
+ - (MasonLengthPercentageAutoCompat * _Nonnull)getMarginBottom SWIFT_WARN_UNUSED_RESULT;
1634
+ - (void)setInset:(float)left :(float)top :(float)right :(float)bottom;
1635
+ - (MasonLengthPercentageAutoRectCompat * _Nonnull)getInset SWIFT_WARN_UNUSED_RESULT;
1636
+ - (void)setInsetLeft:(float)left :(NSInteger)type;
1637
+ - (void)setInsetRight:(float)right :(NSInteger)type;
1638
+ - (void)setInsetTop:(float)top :(NSInteger)type;
1639
+ - (void)setInsetBottom:(float)bottom :(NSInteger)type;
1640
+ - (MasonLengthPercentageAutoCompat * _Nonnull)getInsetLeft SWIFT_WARN_UNUSED_RESULT;
1641
+ - (MasonLengthPercentageAutoCompat * _Nonnull)getInsetRight SWIFT_WARN_UNUSED_RESULT;
1642
+ - (MasonLengthPercentageAutoCompat * _Nonnull)getInsetTop SWIFT_WARN_UNUSED_RESULT;
1643
+ - (MasonLengthPercentageAutoCompat * _Nonnull)getInsetBottom SWIFT_WARN_UNUSED_RESULT;
1644
+ - (void)setMinSize:(float)width :(float)height;
1645
+ - (MasonDimensionSizeCompat * _Nonnull)getMinSize SWIFT_WARN_UNUSED_RESULT;
1646
+ - (void)setMinSizeWidth:(float)width :(NSInteger)type;
1647
+ - (void)setMinSizeHeight:(float)height :(NSInteger)type;
1648
+ - (MasonDimensionCompat * _Nonnull)getMinSizeWidth SWIFT_WARN_UNUSED_RESULT;
1649
+ - (MasonDimensionCompat * _Nonnull)getMinSizeHeight SWIFT_WARN_UNUSED_RESULT;
1650
+ - (void)setSize:(float)width :(float)height;
1651
+ - (void)setSizeWidth:(float)width :(NSInteger)type;
1652
+ - (void)setSizeHeight:(float)height :(NSInteger)type;
1653
+ - (MasonDimensionSizeCompat * _Nonnull)getSize SWIFT_WARN_UNUSED_RESULT;
1654
+ - (MasonDimensionCompat * _Nonnull)getSizeWidth SWIFT_WARN_UNUSED_RESULT;
1655
+ - (MasonDimensionCompat * _Nonnull)getSizeHeight SWIFT_WARN_UNUSED_RESULT;
1656
+ - (void)setMaxSize:(float)width :(float)height;
1657
+ - (MasonDimensionSizeCompat * _Nonnull)getMaxSize SWIFT_WARN_UNUSED_RESULT;
1658
+ - (void)setMaxSizeWidth:(float)width :(NSInteger)type;
1659
+ - (void)setMaxSizeHeight:(float)height :(NSInteger)type;
1660
+ - (MasonDimensionCompat * _Nonnull)getMaxSizeWidth SWIFT_WARN_UNUSED_RESULT;
1661
+ - (MasonDimensionCompat * _Nonnull)getMaxSizeHeight SWIFT_WARN_UNUSED_RESULT;
1662
+ - (void)setGap:(float)width :(float)height;
1663
+ - (void)setGapWithWidthHeightType:(float)width :(int8_t)width_type :(float)height :(int8_t)height_type;
1664
+ - (MasonLengthPercentageSizeCompat * _Nonnull)getGap SWIFT_WARN_UNUSED_RESULT;
1665
+ - (void)setRowGap:(float)row :(NSInteger)type;
1666
+ - (void)setColumnGap:(float)column :(NSInteger)type;
1667
+ - (MasonLengthPercentageCompat * _Nonnull)getRowGap SWIFT_WARN_UNUSED_RESULT;
1668
+ - (MasonLengthPercentageCompat * _Nonnull)getColumnGap SWIFT_WARN_UNUSED_RESULT;
1669
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
1670
+ @end
1671
+
1672
+ SWIFT_CLASS_NAMED("MasonVerticalAlignValue")
1673
+ @interface MasonVerticalAlignValue : NSObject
1674
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1675
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1676
+ @end
1677
+
1678
+ SWIFT_CLASS_NAMED("MaxSizing")
1679
+ @interface MaxSizing : NSObject
1680
+ @property (nonatomic, readonly) float value;
1681
+ + (MaxSizing * _Nonnull)Points:(float)points SWIFT_WARN_UNUSED_RESULT;
1682
+ + (MaxSizing * _Nonnull)Percent:(float)percent SWIFT_WARN_UNUSED_RESULT;
1683
+ + (MaxSizing * _Nonnull)FitContent:(float)fit SWIFT_WARN_UNUSED_RESULT;
1684
+ + (MaxSizing * _Nonnull)FitContentPercent:(float)fit SWIFT_WARN_UNUSED_RESULT;
1685
+ + (MaxSizing * _Nonnull)Fraction:(float)flex SWIFT_WARN_UNUSED_RESULT;
1686
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MaxSizing * _Nonnull Auto;)
1687
+ + (MaxSizing * _Nonnull)Auto SWIFT_WARN_UNUSED_RESULT;
1688
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MaxSizing * _Nonnull MinContent;)
1689
+ + (MaxSizing * _Nonnull)MinContent SWIFT_WARN_UNUSED_RESULT;
1690
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MaxSizing * _Nonnull MaxContent;)
1691
+ + (MaxSizing * _Nonnull)MaxContent SWIFT_WARN_UNUSED_RESULT;
1692
+ @property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
1693
+ @property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
1694
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1695
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1696
+ @end
1697
+
1698
+ SWIFT_CLASS_NAMED("MeasureOutput")
1699
+ @interface MeasureOutput : NSObject
1700
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1701
+ @end
1702
+
1703
+ @class MinSizing;
1704
+ SWIFT_CLASS_NAMED("MinMax")
1705
+ @interface MinMax : NSObject
1706
+ - (nonnull instancetype)init:(MinSizing * _Nonnull)min :(MaxSizing * _Nonnull)max OBJC_DESIGNATED_INITIALIZER;
1707
+ + (MinMax * _Nonnull)PointsWithPoints:(float)points SWIFT_WARN_UNUSED_RESULT;
1708
+ + (MinMax * _Nonnull)PercentWithPercent:(float)percent SWIFT_WARN_UNUSED_RESULT;
1709
+ + (MinMax * _Nonnull)FlexWithFlex:(float)flex SWIFT_WARN_UNUSED_RESULT;
1710
+ + (MinMax * _Nonnull)FitContentWithFit:(float)fit SWIFT_WARN_UNUSED_RESULT;
1711
+ + (MinMax * _Nonnull)FitContentPercentWithFit:(float)fit SWIFT_WARN_UNUSED_RESULT;
1712
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinMax * _Nonnull Auto;)
1713
+ + (MinMax * _Nonnull)Auto SWIFT_WARN_UNUSED_RESULT;
1714
+ + (MinMax * _Nullable)fromTypeValue:(NSInteger)minType :(float)minValue :(NSInteger)maxType :(float)maxValue SWIFT_WARN_UNUSED_RESULT;
1715
+ @property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
1716
+ @property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
1717
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1718
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1719
+ @end
1720
+
1721
+ SWIFT_CLASS_NAMED("MinSizing")
1722
+ @interface MinSizing : NSObject
1723
+ @property (nonatomic, readonly) float value;
1724
+ + (MinSizing * _Nonnull)Points:(float)points SWIFT_WARN_UNUSED_RESULT;
1725
+ + (MinSizing * _Nonnull)Percent:(float)percent SWIFT_WARN_UNUSED_RESULT;
1726
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing * _Nonnull Auto;)
1727
+ + (MinSizing * _Nonnull)Auto SWIFT_WARN_UNUSED_RESULT;
1728
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing * _Nonnull MinContent;)
1729
+ + (MinSizing * _Nonnull)MinContent SWIFT_WARN_UNUSED_RESULT;
1730
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing * _Nonnull MaxContent;)
1731
+ + (MinSizing * _Nonnull)MaxContent SWIFT_WARN_UNUSED_RESULT;
1732
+ @property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
1733
+ @property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
1734
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1735
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1736
+ @end
1737
+
1738
+ @class NSUUID;
1739
+ @class MasonScroll;
1740
+ SWIFT_CLASS_NAMED("NSCMason")
1741
+ @interface NSCMason : NSObject
1742
+ @property (nonatomic, readonly) void * _Nullable nativePtr;
1743
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull shared;)
1744
+ + (NSCMason * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
1745
+ + (void)setShared:(NSCMason * _Nonnull)value;
1746
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1747
+ - (void)setDeviceScale:(float)value;
1748
+ - (MasonNode * _Nonnull)nodeForView:(UIView * _Nonnull)view :(BOOL)isLeaf SWIFT_WARN_UNUSED_RESULT;
1749
+ - (void)configureStyleForView:(UIView * _Nonnull)view :(SWIFT_NOESCAPE void (^ _Nonnull)(MasonStyle * _Nonnull))block;
1750
+ - (MasonStyle * _Nonnull)styleForView:(UIView * _Nonnull)view SWIFT_WARN_UNUSED_RESULT;
1751
+ - (MasonStyle * _Nullable)styleForViewOrNode:(id _Nullable)viewOrNode SWIFT_WARN_UNUSED_RESULT;
1752
+ - (MasonLayout * _Nonnull)layoutForView:(UIView * _Nonnull)view;
1753
+ - (NSUUID * _Nonnull)addEventListener:(MasonNode * _Nonnull)node :(NSString * _Nonnull)event :(void (^ _Nonnull)(MasonEvent * _Nonnull))listener;
1754
+ - (BOOL)removeEventListener:(MasonNode * _Nonnull)node :(NSString * _Nonnull)event id:(NSUUID * _Nonnull)id;
1755
+ - (BOOL)removeEventListener:(MasonNode * _Nonnull)node :(NSString * _Nonnull)event;
1756
+ - (void)dispatch:(MasonEvent * _Nonnull)event :(MasonNode * _Nonnull)node;
1757
+ @property (nonatomic, strong) MasonHTMLParser * _Nonnull htmlParser;
1758
+ - (void)clear;
1759
+ - (MasonDocument * _Nonnull)createDocument SWIFT_WARN_UNUSED_RESULT;
1760
+ - (MasonUIView * _Nonnull)createView SWIFT_WARN_UNUSED_RESULT;
1761
+ - (MasonText * _Nonnull)createTextView SWIFT_WARN_UNUSED_RESULT;
1762
+ - (MasonTextNode * _Nonnull)createTextNode:(NSString * _Nonnull)data SWIFT_WARN_UNUSED_RESULT;
1763
+ - (MasonText * _Nonnull)createTextViewWithType:(enum MasonTextType)type SWIFT_WARN_UNUSED_RESULT;
1764
+ - (MasonImg * _Nonnull)createImageView SWIFT_WARN_UNUSED_RESULT;
1765
+ - (MasonScroll * _Nonnull)createScrollView SWIFT_WARN_UNUSED_RESULT;
1766
+ - (MasonButton * _Nonnull)createButton SWIFT_WARN_UNUSED_RESULT;
1767
+ - (MasonNode * _Nonnull)createNode SWIFT_WARN_UNUSED_RESULT;
1768
+ - (MasonBr * _Nonnull)createBr SWIFT_WARN_UNUSED_RESULT;
1769
+ - (MasonInput * _Nonnull)createInput:(enum MasonInputType)type SWIFT_WARN_UNUSED_RESULT;
1770
+ - (void)printTree:(MasonNode * _Nonnull)node;
1771
+ - (MasonNode * _Nonnull)createTextNode SWIFT_WARN_UNUSED_RESULT;
1772
+ - (MasonNode * _Nonnull)createImageNode SWIFT_WARN_UNUSED_RESULT;
1773
+ - (MasonNode * _Nonnull)createButtonNode SWIFT_WARN_UNUSED_RESULT;
1774
+ - (MasonNode * _Nonnull)createLineBreakNode SWIFT_WARN_UNUSED_RESULT;
1775
+ - (MasonList * _Nonnull)createListViewWithIsOrdered:(BOOL)isOrdered SWIFT_WARN_UNUSED_RESULT;
1776
+ - (MasonNode * _Nonnull)createListItemNode SWIFT_WARN_UNUSED_RESULT;
1777
+ - (MasonLi * _Nonnull)createListItem SWIFT_WARN_UNUSED_RESULT;
1778
+ - (MasonTextArea * _Nonnull)createTextArea SWIFT_WARN_UNUSED_RESULT;
1779
+ @property (nonatomic) BOOL preflight;
1780
+ /// The context CSS relative units resolve against, mirroring the TS side’s
1781
+ /// <code>units.ts</code> and Android’s <code>Mason.shared</code>. <code>rem</code> needs a root font size (the
1782
+ /// CSS default is 16); the viewport is read from the key window, and is 0 until
1783
+ /// one exists — an unresolvable viewport unit collapses to 0 rather than
1784
+ /// silently becoming a bare number in the wrong unit.
1785
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class) float rootFontSize;)
1786
+ + (float)rootFontSize SWIFT_WARN_UNUSED_RESULT;
1787
+ + (void)setRootFontSize:(float)value;
1788
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) CGSize viewportSize;)
1789
+ + (CGSize)viewportSize SWIFT_WARN_UNUSED_RESULT;
1790
+ /// The display scale every layout value is converted through.
1791
+ /// Cached: resolving it walks <code>connectedScenes</code> and each scene’s windows,
1792
+ /// and it’s read on the hottest paths there are (once per text measure,
1793
+ /// once per node applying a computed layout). Invalidated by the
1794
+ /// notifications below when the window moves between displays.
1795
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) float scale;)
1796
+ + (float)scale SWIFT_WARN_UNUSED_RESULT;
1797
+ /// Drop the cached scale; the next read resolves it again.
1798
+ + (void)invalidateScale;
1799
+ @end
1800
+
1801
+ @interface NSObject (SWIFT_EXTENSION(Mason))
1802
+ @property (nonatomic, copy) NSString * _Nonnull mason_innerHTML;
1803
+ - (NSUUID * _Nonnull)mason_addEventListener:(NSString * _Nonnull)event :(void (^ _Nonnull)(MasonEvent * _Nonnull))listener;
1804
+ - (BOOL)mason_removeEventListener:(NSString * _Nonnull)event id:(NSUUID * _Nonnull)id;
1805
+ - (BOOL)mason_removeEventListener:(NSString * _Nonnull)event;
1806
+ - (void)mason_dispatch:(MasonEvent * _Nonnull)event;
1807
+ - (void)mason_syncStyle:(NSString * _Nonnull)low :(NSString * _Nonnull)high;
1808
+ - (void)mason_addView:(UIView * _Nonnull)view;
1809
+ - (void)mason_addView:(UIView * _Nonnull)view at:(NSInteger)at;
1810
+ - (void)mason_markNodeDirty;
1811
+ - (BOOL)mason_isNodeDirty SWIFT_WARN_UNUSED_RESULT;
1812
+ - (void)mason_configure:(SWIFT_NOESCAPE void (^ _Nonnull)(MasonStyle * _Nonnull))block;
1813
+ - (MasonLayout * _Nonnull)mason_layout;
1814
+ - (void)mason_compute;
1815
+ - (void)mason_computeWithWidth:(float)width height:(float)height;
1816
+ - (void)mason_computeMaxContent;
1817
+ - (void)mason_computeMinContent;
1818
+ - (void)mason_computeWithSize:(float)width :(float)height;
1819
+ - (void)mason_computeWithViewSize;
1820
+ - (void)mason_computeWithViewSizeWithLayout:(BOOL)layout;
1821
+ - (void)mason_computeWithMaxContent;
1822
+ - (void)mason_markRootComputeApplied;
1823
+ /// <code>mason_markRootComputeApplied</code> plus the box the host measured against, so
1824
+ /// a later <code>autoComputeIfRoot</code> reuses it rather than the superview’s bounds.
1825
+ - (void)mason_markRootComputeAppliedWithSize:(float)width :(float)height;
1826
+ - (void)mason_computeWithMinContent;
1827
+ - (void)mason_attachAndApply;
1828
+ - (void)mason_requestLayout;
1829
+ - (void)mason_invalidateLayout;
1830
+ - (void)mason_append:(id <MasonElementObjc> _Nonnull)element;
1831
+ - (void)mason_appendWithText:(NSString * _Nonnull)text;
1832
+ - (void)mason_appendWithNode:(MasonNode * _Nonnull)node;
1833
+ - (void)mason_appendWithTexts:(NSArray<NSString *> * _Nonnull)texts;
1834
+ - (void)mason_appendWithElements:(NSArray<id <MasonElementObjc>> * _Nonnull)elements;
1835
+ - (void)mason_appendWithNodes:(NSArray<MasonNode *> * _Nonnull)nodes;
1836
+ - (void)mason_prepend:(id <MasonElementObjc> _Nonnull)element;
1837
+ - (void)mason_prependWithText:(NSString * _Nonnull)text;
1838
+ - (void)mason_prependWithNode:(MasonNode * _Nonnull)node;
1839
+ - (void)mason_prependWithTexts:(NSArray<NSString *> * _Nonnull)texts;
1840
+ - (void)mason_prependWithElements:(NSArray<id <MasonElementObjc>> * _Nonnull)elements;
1841
+ - (void)mason_prependWithNodes:(NSArray<MasonNode *> * _Nonnull)nodes;
1842
+ - (void)mason_addChildAtText:(NSString * _Nonnull)text :(NSInteger)index;
1843
+ - (void)mason_addChildAtElement:(id <MasonElementObjc> _Nonnull)element :(NSInteger)index;
1844
+ - (void)mason_addChildAtNode:(MasonNode * _Nonnull)node :(NSInteger)index;
1845
+ - (void)mason_replaceChildAtText:(NSString * _Nonnull)text :(NSInteger)index;
1846
+ - (void)mason_replaceChildAtElement:(id <MasonElementObjc> _Nonnull)element :(NSInteger)index;
1847
+ - (void)mason_replaceChildAtNode:(MasonNode * _Nonnull)node :(NSInteger)index;
1848
+ /// Remove the child node (view or text node) at <code>index</code> from the mason tree.
1849
+ /// Counterpart to <code>mason_addChildAt</code>; <code>MasonNode.removeChildAt</code> already
1850
+ /// handles both <code>MasonTextNode</code> and element children.
1851
+ - (void)mason_removeChildAt:(NSInteger)index;
1852
+ /// Remove a specific child node (e.g. the <code>MasonTextNode</code> a framework stamped
1853
+ /// onto its JS text node) without needing its index.
1854
+ - (void)mason_removeChildNode:(MasonNode * _Nonnull)node;
1855
+ @end
1856
+
1857
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonObjectFit, "ObjectFit", open) {
1858
+ MasonObjectFitContain = 0,
1859
+ MasonObjectFitCover = 1,
1860
+ MasonObjectFitFill = 2,
1861
+ MasonObjectFitNone = 3,
1862
+ MasonObjectFitScaleDown = 4,
1863
+ };
1864
+
1865
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonOverflow, "Overflow", open) {
1866
+ MasonOverflowVisible = 0,
1867
+ MasonOverflowHidden = 1,
1868
+ MasonOverflowScroll = 2,
1869
+ MasonOverflowClip = 3,
1870
+ MasonOverflowAuto = 4,
1871
+ };
1872
+
1873
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonPosition, "Position", open) {
1874
+ MasonPositionStatic = 0,
1875
+ MasonPositionRelative = 1,
1876
+ MasonPositionAbsolute = 2,
1877
+ MasonPositionFixed = 3,
1878
+ MasonPositionSticky = 4,
1879
+ };
1880
+
1881
+ typedef SWIFT_ENUM_NAMED(uint16_t, PseudoState, "PseudoState", open) {
1882
+ PseudoStateDefault = 0,
1883
+ PseudoStateHover = 0x01,
1884
+ PseudoStateActive = 0x02,
1885
+ PseudoStateFocus = 0x04,
1886
+ PseudoStateFocusWithin = 0x08,
1887
+ PseudoStateFocusVisible = 0x10,
1888
+ PseudoStateDisabled = 0x40,
1889
+ PseudoStateChecked = 0x80,
1890
+ };
1891
+
1892
+ SWIFT_CLASS_NAMED("Scroll")
1893
+ @interface MasonScroll : UIScrollView <MasonElementObjc, UIScrollViewDelegate>
1894
+ - (void)didMoveToSuperview;
1895
+ - (void)drawRect:(CGRect)rect;
1896
+ - (void)layoutSubviews;
1897
+ @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
1898
+ @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
1899
+ @property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
1900
+ @property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
1901
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
1902
+ - (void)scrollViewWillBeginDragging:(UIScrollView * _Nonnull)scrollView;
1903
+ - (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
1904
+ - (void)addView:(UIView * _Nonnull)view;
1905
+ - (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
1906
+ - (void)removeView:(UIView * _Nonnull)view;
1907
+ - (void)removeViewAt:(NSInteger)index;
1908
+ - (void)setSize:(float)width :(float)height;
1909
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
1910
+ @end
1911
+
1912
+ SWIFT_CLASS_NAMED("SwiftHelpers")
1913
+ @interface MasonSwiftHelpers : NSObject
1914
+ + (void)markNodeDirty:(id <MasonElementObjc> _Nonnull)element;
1915
+ + (BOOL)isNodeDirty:(id <MasonElementObjc> _Nonnull)element SWIFT_WARN_UNUSED_RESULT;
1916
+ + (void)configure:(id <MasonElementObjc> _Nonnull)element :(SWIFT_NOESCAPE void (^ _Nonnull)(MasonStyle * _Nonnull))block;
1917
+ + (MasonLayout * _Nonnull)layout:(id <MasonElementObjc> _Nonnull)element;
1918
+ + (void)compute:(id <MasonElementObjc> _Nonnull)element;
1919
+ + (void)compute:(id <MasonElementObjc> _Nonnull)element :(float)width :(float)height;
1920
+ + (void)computeMaxContent:(id <MasonElementObjc> _Nonnull)element;
1921
+ + (void)computeMinContent:(id <MasonElementObjc> _Nonnull)element;
1922
+ + (void)computeWithSize:(id <MasonElementObjc> _Nonnull)element :(float)width :(float)height;
1923
+ + (void)computeWithViewSize:(id <MasonElementObjc> _Nonnull)element;
1924
+ + (void)computeWithViewSize:(id <MasonElementObjc> _Nonnull)element layout:(BOOL)layout;
1925
+ + (void)computeWithMaxContent:(id <MasonElementObjc> _Nonnull)element;
1926
+ + (void)computeWithMinContent:(id <MasonElementObjc> _Nonnull)element;
1927
+ + (void)attachAndApply:(id <MasonElementObjc> _Nonnull)element;
1928
+ + (void)requestLayout:(id <MasonElementObjc> _Nonnull)element;
1929
+ + (void)append:(id <MasonElementObjc> _Nonnull)parent :(id <MasonElementObjc> _Nonnull)element;
1930
+ + (void)append:(id <MasonElementObjc> _Nonnull)parent text:(NSString * _Nonnull)text;
1931
+ + (void)append:(id <MasonElementObjc> _Nonnull)parent node:(MasonNode * _Nonnull)node;
1932
+ + (void)append:(id <MasonElementObjc> _Nonnull)parent texts:(NSArray<NSString *> * _Nonnull)texts;
1933
+ + (void)append:(id <MasonElementObjc> _Nonnull)parent elements:(NSArray<id <MasonElementObjc>> * _Nonnull)elements;
1934
+ + (void)append:(id <MasonElementObjc> _Nonnull)parent nodes:(NSArray<MasonNode *> * _Nonnull)nodes;
1935
+ + (void)prepend:(id <MasonElementObjc> _Nonnull)parent :(id <MasonElementObjc> _Nonnull)element;
1936
+ + (void)prepend:(id <MasonElementObjc> _Nonnull)parent string:(NSString * _Nonnull)string;
1937
+ + (void)prepend:(id <MasonElementObjc> _Nonnull)parent node:(MasonNode * _Nonnull)node;
1938
+ + (void)prepend:(id <MasonElementObjc> _Nonnull)parent strings:(NSArray<NSString *> * _Nonnull)strings;
1939
+ + (void)prepend:(id <MasonElementObjc> _Nonnull)parent elements:(NSArray<id <MasonElementObjc>> * _Nonnull)elements;
1940
+ + (void)prepend:(id <MasonElementObjc> _Nonnull)parent nodes:(NSArray<MasonNode *> * _Nonnull)nodes;
1941
+ + (void)addChildAt:(id <MasonElementObjc> _Nonnull)parent text:(NSString * _Nonnull)text :(NSInteger)index;
1942
+ + (void)addChildAt:(id <MasonElementObjc> _Nonnull)parent element:(id <MasonElementObjc> _Nonnull)element :(NSInteger)index;
1943
+ + (void)addChildAt:(id <MasonElementObjc> _Nonnull)parent node:(MasonNode * _Nonnull)node :(NSInteger)index;
1944
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1945
+ @end
1946
+
1947
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextAlign, "TextAlign", open) {
1948
+ MasonTextAlignAuto = 0,
1949
+ MasonTextAlignLeft = 1,
1950
+ MasonTextAlignRight = 2,
1951
+ MasonTextAlignCenter = 3,
1952
+ MasonTextAlignJustify = 4,
1953
+ MasonTextAlignStart = 5,
1954
+ MasonTextAlignEnd = 6,
1955
+ };
1956
+
1957
+ SWIFT_CLASS_NAMED("TextEngine")
1958
+ @interface MasonTextEngine : NSObject
1959
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1960
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1961
+ @end
1962
+
1963
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextJustify, "TextJustify", open) {
1964
+ MasonTextJustifyNone = 0,
1965
+ MasonTextJustifyAuto = 1,
1966
+ MasonTextJustifyInterWord = 2,
1967
+ MasonTextJustifyInterCharacter = 3,
1968
+ MasonTextJustifyDistribute = 4,
1969
+ };
1970
+
1971
+ SWIFT_CLASS_NAMED("TextOverflowCompat")
1972
+ @interface MasonTextOverflowCompat : NSObject
1973
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonTextOverflowCompat * _Nonnull Clip;)
1974
+ + (MasonTextOverflowCompat * _Nonnull)Clip SWIFT_WARN_UNUSED_RESULT;
1975
+ + (MasonTextOverflowCompat * _Nonnull)Ellipse:(NSString * _Nullable)value SWIFT_WARN_UNUSED_RESULT;
1976
+ + (MasonTextOverflowCompat * _Nonnull)Custom:(NSString * _Nonnull)value SWIFT_WARN_UNUSED_RESULT;
1977
+ @property (nonatomic, readonly, copy) NSString * _Nonnull description;
1978
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1979
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1980
+ @end
1981
+
1982
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextTransform, "TextTransform", open) {
1983
+ MasonTextTransformNone = 0,
1984
+ MasonTextTransformCapitalize = 1,
1985
+ MasonTextTransformUppercase = 2,
1986
+ MasonTextTransformLowercase = 3,
1987
+ MasonTextTransformFullWidth = 4,
1988
+ MasonTextTransformFullSizeKana = 5,
1989
+ MasonTextTransformMathAuto = 6,
1990
+ };
1991
+
1992
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextWrap, "TextWrap", open) {
1993
+ MasonTextWrapWrap = 0,
1994
+ MasonTextWrapNoWrap = 1,
1995
+ MasonTextWrapBalance = 2,
1996
+ MasonTextWrapPretty = 3,
1997
+ };
1998
+
1999
+ SWIFT_CLASS_NAMED("TrackSizingFunction")
2000
+ @interface TrackSizingFunction : NSObject
2001
+ @property (nonatomic, readonly) BOOL isRepeating;
2002
+ @property (nonatomic, readonly) id _Nullable value;
2003
+ + (TrackSizingFunction * _Nonnull)Single:(MinMax * _Nonnull)value SWIFT_WARN_UNUSED_RESULT;
2004
+ + (TrackSizingFunction * _Nonnull)AutoRepeat:(MasonGridTrackRepetition * _Nonnull)gridTrackRepetition :(NSArray<MinMax *> * _Nonnull)value SWIFT_WARN_UNUSED_RESULT;
2005
+ @property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
2006
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2007
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2008
+ @end
2009
+
2010
+ typedef SWIFT_ENUM(uint8_t, TransformOpType, open) {
2011
+ TransformOpTypeNone = 0,
2012
+ TransformOpTypeTranslate = 1,
2013
+ TransformOpTypeTranslateX = 2,
2014
+ TransformOpTypeTranslateY = 3,
2015
+ TransformOpTypeScale = 4,
2016
+ TransformOpTypeScaleX = 5,
2017
+ TransformOpTypeScaleY = 6,
2018
+ TransformOpTypeRotate = 7,
2019
+ TransformOpTypeSkewX = 8,
2020
+ TransformOpTypeSkewY = 9,
2021
+ };
2022
+
2023
+ @interface UIView (SWIFT_EXTENSION(Mason))
2024
+ - (UIView * _Nullable)mason_elementFromPoint:(CGFloat)x y:(CGFloat)y SWIFT_WARN_UNUSED_RESULT;
2025
+ @end
2026
+
2027
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonWhiteSpace, "WhiteSpace", open) {
2028
+ MasonWhiteSpaceNormal = 0,
2029
+ MasonWhiteSpacePre = 1,
2030
+ MasonWhiteSpacePreWrap = 2,
2031
+ MasonWhiteSpacePreLine = 3,
2032
+ MasonWhiteSpaceNoWrap = 4,
2033
+ MasonWhiteSpaceBreakSpaces = 5,
2034
+ };
2035
+
2036
+ #endif // defined(__OBJC__)
2037
+ #if __has_attribute(external_source_symbol)
2038
+ # pragma clang attribute pop
2039
+ #endif
2040
+ #if defined(__cplusplus)
2041
+ #endif
2042
+ #pragma clang diagnostic pop
2043
+ #endif
2044
+
2045
+ #elif defined(__x86_64__) && __x86_64__
2046
+ // Generated by Apple Swift version 6.3.1 effective-5.10 (swiftlang-6.3.1.1.2 clang-2100.0.123.102)
2047
+ #ifndef MASON_SWIFT_H
2048
+ #define MASON_SWIFT_H
2049
+ #pragma clang diagnostic push
2050
+ #pragma clang diagnostic ignored "-Wgcc-compat"
2051
+
2052
+ #if !defined(__has_include)
2053
+ # define __has_include(x) 0
2054
+ #endif
2055
+ #if !defined(__has_attribute)
2056
+ # define __has_attribute(x) 0
2057
+ #endif
2058
+ #if !defined(__has_feature)
2059
+ # define __has_feature(x) 0
2060
+ #endif
2061
+ #if !defined(__has_warning)
2062
+ # define __has_warning(x) 0
2063
+ #endif
2064
+
2065
+ #if __has_include(<swift/objc-prologue.h>)
2066
+ # include <swift/objc-prologue.h>
2067
+ #endif
2068
+
2069
+ #pragma clang diagnostic ignored "-Wauto-import"
2070
+ #if defined(__OBJC__)
2071
+ #include <Foundation/Foundation.h>
2072
+ #endif // defined(__OBJC__)
2073
+ #if defined(__cplusplus)
2074
+ #include <cstdint>
2075
+ #include <cstddef>
2076
+ #include <cstdbool>
2077
+ #include <cstring>
2078
+ #include <stdlib.h>
2079
+ #include <new>
2080
+ #include <type_traits>
2081
+ #else
2082
+ #include <stdint.h>
2083
+ #include <stddef.h>
2084
+ #include <stdbool.h>
2085
+ #include <string.h>
2086
+ #endif
2087
+ #if defined(__cplusplus)
2088
+ #pragma clang diagnostic push
2089
+ #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
2090
+ #if defined(__arm64e__) && __has_include(<ptrauth.h>)
2091
+ # include <ptrauth.h>
2092
+ #else
2093
+ #pragma clang diagnostic push
2094
+ #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
2095
+ # ifndef __ptrauth_swift_value_witness_function_pointer
2096
+ # define __ptrauth_swift_value_witness_function_pointer(x)
2097
+ # endif
2098
+ # ifndef __ptrauth_swift_class_method_pointer
2099
+ # define __ptrauth_swift_class_method_pointer(x)
2100
+ # endif
2101
+ #pragma clang diagnostic pop
2102
+ #endif
2103
+ #pragma clang diagnostic pop
2104
+ #endif
2105
+
2106
+ #if !defined(SWIFT_TYPEDEFS)
2107
+ # define SWIFT_TYPEDEFS 1
2108
+ # if __has_include(<uchar.h>)
2109
+ # include <uchar.h>
2110
+ # elif !defined(__cplusplus)
2111
+ typedef unsigned char char8_t;
2112
+ typedef uint_least16_t char16_t;
2113
+ typedef uint_least32_t char32_t;
2114
+ # endif
2115
+ typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
2116
+ typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
2117
+ typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
2118
+ typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
2119
+ typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
2120
+ typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
2121
+ typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
2122
+ typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
2123
+ typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
2124
+ typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
2125
+ typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
2126
+ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
2127
+ #endif
2128
+
2129
+ #if !defined(SWIFT_PASTE)
2130
+ # define SWIFT_PASTE_HELPER(x, y) x##y
2131
+ # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
2132
+ #endif
2133
+ #if !defined(SWIFT_METATYPE)
2134
+ # define SWIFT_METATYPE(X) Class
2135
+ #endif
2136
+ #if !defined(SWIFT_CLASS_PROPERTY)
2137
+ # if __has_feature(objc_class_property)
2138
+ # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
2139
+ # else
2140
+ # define SWIFT_CLASS_PROPERTY(...)
2141
+ # endif
2142
+ #endif
2143
+ #if !defined(SWIFT_RUNTIME_NAME)
2144
+ # if __has_attribute(objc_runtime_name)
2145
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
2146
+ # else
2147
+ # define SWIFT_RUNTIME_NAME(X)
2148
+ # endif
2149
+ #endif
2150
+ #if !defined(SWIFT_COMPILE_NAME)
2151
+ # if __has_attribute(swift_name)
2152
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
2153
+ # else
2154
+ # define SWIFT_COMPILE_NAME(X)
2155
+ # endif
2156
+ #endif
2157
+ #if !defined(SWIFT_METHOD_FAMILY)
2158
+ # if __has_attribute(objc_method_family)
2159
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
2160
+ # else
2161
+ # define SWIFT_METHOD_FAMILY(X)
2162
+ # endif
2163
+ #endif
2164
+ #if !defined(SWIFT_NOESCAPE)
2165
+ # if __has_attribute(noescape)
2166
+ # define SWIFT_NOESCAPE __attribute__((noescape))
2167
+ # else
2168
+ # define SWIFT_NOESCAPE
2169
+ # endif
2170
+ #endif
2171
+ #if !defined(SWIFT_RELEASES_ARGUMENT)
2172
+ # if __has_attribute(ns_consumed)
2173
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
2174
+ # else
2175
+ # define SWIFT_RELEASES_ARGUMENT
2176
+ # endif
2177
+ #endif
2178
+ #if !defined(SWIFT_WARN_UNUSED_RESULT)
2179
+ # if __has_attribute(warn_unused_result)
2180
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
2181
+ # else
2182
+ # define SWIFT_WARN_UNUSED_RESULT
2183
+ # endif
2184
+ #endif
2185
+ #if !defined(SWIFT_NORETURN)
2186
+ # if __has_attribute(noreturn)
2187
+ # define SWIFT_NORETURN __attribute__((noreturn))
2188
+ # else
2189
+ # define SWIFT_NORETURN
2190
+ # endif
2191
+ #endif
2192
+ #if !defined(SWIFT_CLASS_EXTRA)
2193
+ # define SWIFT_CLASS_EXTRA
2194
+ #endif
2195
+ #if !defined(SWIFT_PROTOCOL_EXTRA)
2196
+ # define SWIFT_PROTOCOL_EXTRA
2197
+ #endif
2198
+ #if !defined(SWIFT_ENUM_EXTRA)
2199
+ # define SWIFT_ENUM_EXTRA
2200
+ #endif
2201
+ #if !defined(SWIFT_CLASS)
2202
+ # if __has_attribute(objc_subclassing_restricted)
2203
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
2204
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
2205
+ # else
2206
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
2207
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
2208
+ # endif
2209
+ #endif
2210
+ #if !defined(SWIFT_RESILIENT_CLASS)
2211
+ # if __has_attribute(objc_class_stub)
2212
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
2213
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
2214
+ # else
2215
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
2216
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
2217
+ # endif
2218
+ #endif
2219
+ #if !defined(SWIFT_PROTOCOL)
2220
+ # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
2221
+ # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
2222
+ #endif
2223
+ #if !defined(SWIFT_EXTENSION)
2224
+ # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
2225
+ #endif
2226
+ #if !defined(OBJC_DESIGNATED_INITIALIZER)
2227
+ # if __has_attribute(objc_designated_initializer)
2228
+ # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
2229
+ # else
2230
+ # define OBJC_DESIGNATED_INITIALIZER
2231
+ # endif
2232
+ #endif
2233
+ #if !defined(SWIFT_ENUM_ATTR)
2234
+ # if __has_attribute(enum_extensibility)
2235
+ # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
2236
+ # else
2237
+ # define SWIFT_ENUM_ATTR(_extensibility)
2238
+ # endif
2239
+ #endif
2240
+ #if !defined(SWIFT_ENUM)
2241
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
2242
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
2243
+ # if __has_feature(generalized_swift_name)
2244
+ # 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
2245
+ # else
2246
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
2247
+ # endif
2248
+ # else
2249
+ # define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
2250
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
2251
+ # endif
2252
+ #endif
2253
+ #if !defined(SWIFT_ENUM_TAG)
2254
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
2255
+ # define SWIFT_ENUM_TAG enum
2256
+ # else
2257
+ # define SWIFT_ENUM_TAG
2258
+ # endif
2259
+ #endif
2260
+ #if !defined(SWIFT_ENUM_FWD_DECL)
2261
+ # if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
2262
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
2263
+ # else
2264
+ # define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
2265
+ # endif
2266
+ #endif
2267
+ #if !defined(SWIFT_UNAVAILABLE)
2268
+ # define SWIFT_UNAVAILABLE __attribute__((unavailable))
2269
+ #endif
2270
+ #if !defined(SWIFT_UNAVAILABLE_MSG)
2271
+ # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
2272
+ #endif
2273
+ #if !defined(SWIFT_AVAILABILITY)
2274
+ # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
2275
+ #endif
2276
+ #if !defined(SWIFT_AVAILABILITY_DOMAIN)
2277
+ # define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
2278
+ #endif
2279
+ #if !defined(SWIFT_WEAK_IMPORT)
2280
+ # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
2281
+ #endif
2282
+ #if !defined(SWIFT_DEPRECATED)
2283
+ # define SWIFT_DEPRECATED __attribute__((deprecated))
2284
+ #endif
2285
+ #if !defined(SWIFT_DEPRECATED_MSG)
2286
+ # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
2287
+ #endif
2288
+ #if !defined(SWIFT_DEPRECATED_OBJC)
2289
+ # if __has_feature(attribute_diagnose_if_objc)
2290
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
2291
+ # else
2292
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
2293
+ # endif
2294
+ #endif
2295
+ #if defined(__OBJC__)
2296
+ #if !defined(IBSegueAction)
2297
+ # define IBSegueAction
2298
+ #endif
2299
+ #endif
2300
+ #if !defined(SWIFT_EXTERN)
2301
+ # if defined(__cplusplus)
2302
+ # define SWIFT_EXTERN extern "C"
2303
+ # else
2304
+ # define SWIFT_EXTERN extern
2305
+ # endif
2306
+ #endif
2307
+ #if !defined(SWIFT_CALL)
2308
+ # define SWIFT_CALL __attribute__((swiftcall))
2309
+ #endif
2310
+ #if !defined(SWIFT_INDIRECT_RESULT)
2311
+ # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
2312
+ #endif
2313
+ #if !defined(SWIFT_CONTEXT)
2314
+ # define SWIFT_CONTEXT __attribute__((swift_context))
2315
+ #endif
2316
+ #if !defined(SWIFT_ERROR_RESULT)
2317
+ # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
2318
+ #endif
2319
+ #if defined(__cplusplus)
2320
+ # define SWIFT_NOEXCEPT noexcept
2321
+ #else
2322
+ # define SWIFT_NOEXCEPT
2323
+ #endif
2324
+ #if !defined(SWIFT_C_INLINE_THUNK)
2325
+ # if __has_attribute(always_inline)
2326
+ # if __has_attribute(nodebug)
2327
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
2328
+ # else
2329
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
2330
+ # endif
2331
+ # else
2332
+ # define SWIFT_C_INLINE_THUNK inline
2333
+ # endif
2334
+ #endif
2335
+ #if defined(_WIN32)
2336
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
2337
+ # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
2338
+ #endif
2339
+ #else
2340
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
2341
+ # define SWIFT_IMPORT_STDLIB_SYMBOL
2342
+ #endif
2343
+ #endif
2344
+ #if !__has_feature(nullability)
2345
+ # define _Nonnull
2346
+ # define _Nullable
2347
+ # define _Null_unspecified
2348
+ #elif !defined(__OBJC__)
2349
+ # pragma clang diagnostic ignored "-Wnullability-extension"
2350
+ #endif
2351
+ #if !__has_feature(nullability_nullable_result)
2352
+ # define _Nullable_result _Nullable
2353
+ #endif
2354
+ #if __has_feature(objc_modules)
2355
+ #if __has_warning("-Watimport-in-framework-header")
2356
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
2357
+ #endif
2358
+ #endif
2359
+
2360
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
2361
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
2362
+ #if __has_warning("-Wpragma-clang-attribute")
2363
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
2364
+ #endif
2365
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
2366
+ #pragma clang diagnostic ignored "-Wnullability"
2367
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
2368
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
2369
+
2370
+ #if __has_attribute(external_source_symbol)
2371
+ # pragma push_macro("any")
2372
+ # undef any
2373
+ # 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))
2374
+ # pragma pop_macro("any")
2375
+ #endif
2376
+
2377
+ #if defined(__cplusplus)
2378
+ extern "C" {
2379
+ #endif
2380
+
2381
+ #if defined(__cplusplus)
2382
+ } // extern "C"
2383
+ #endif
2384
+ #if __has_attribute(external_source_symbol)
2385
+ # pragma clang attribute pop
2386
+ #endif
2387
+ #if defined(__OBJC__)
2388
+ #if __has_feature(objc_modules)
2389
+ #if __has_warning("-Watimport-in-framework-header")
2390
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
2391
+ #endif
2392
+ @import CoreFoundation;
2393
+ @import CoreGraphics;
2394
+ @import Foundation;
2395
+ @import ObjectiveC;
2396
+ @import QuartzCore;
2397
+ @import UIKit;
2398
+ #endif
2399
+
2400
+ #endif // defined(__OBJC__)
2401
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
2402
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
2403
+ #if __has_warning("-Wpragma-clang-attribute")
2404
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
2405
+ #endif
2406
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
2407
+ #pragma clang diagnostic ignored "-Wnullability"
2408
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
2409
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
2410
+
2411
+ #if __has_attribute(external_source_symbol)
2412
+ # pragma push_macro("any")
2413
+ # undef any
2414
+ # 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))
2415
+ # pragma pop_macro("any")
2416
+ #endif
2417
+
2418
+ #if defined(__OBJC__)
2419
+
2420
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlign, "Align", open) {
2421
+ MasonAlignAuto = 0,
2422
+ MasonAlignLeft = 1,
2423
+ MasonAlignRight = 2,
2424
+ MasonAlignCenter = 3,
2425
+ };
2426
+
2427
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlignContent, "AlignContent", open) {
2428
+ MasonAlignContentNormal = -1,
2429
+ MasonAlignContentStart = 0,
2430
+ MasonAlignContentEnd = 1,
2431
+ MasonAlignContentCenter = 2,
2432
+ MasonAlignContentStretch = 3,
2433
+ MasonAlignContentSpaceBetween = 4,
2434
+ MasonAlignContentSpaceAround = 5,
2435
+ MasonAlignContentSpaceEvenly = 6,
2436
+ MasonAlignContentFlexStart = 7,
2437
+ MasonAlignContentFlexEnd = 8,
2438
+ };
2439
+
2440
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlignItems, "AlignItems", open) {
2441
+ MasonAlignItemsNormal = -1,
2442
+ MasonAlignItemsStart = 0,
2443
+ MasonAlignItemsEnd = 1,
2444
+ MasonAlignItemsCenter = 2,
2445
+ MasonAlignItemsBaseline = 3,
2446
+ MasonAlignItemsStretch = 4,
2447
+ MasonAlignItemsFlexStart = 5,
2448
+ MasonAlignItemsFlexEnd = 6,
2449
+ };
2450
+
2451
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlignSelf, "AlignSelf", open) {
2452
+ MasonAlignSelfNormal = -1,
2453
+ MasonAlignSelfStart = 0,
2454
+ MasonAlignSelfEnd = 1,
2455
+ MasonAlignSelfCenter = 2,
2456
+ MasonAlignSelfBaseline = 3,
2457
+ MasonAlignSelfStretch = 4,
2458
+ MasonAlignSelfFlexStart = 5,
2459
+ MasonAlignSelfFlexEnd = 6,
2460
+ };
2461
+
2462
+ @class NSCoder;
2463
+ SWIFT_CLASS("_TtC5Mason17BackgroundCALayer")
2464
+ @interface BackgroundCALayer : CALayer
2465
+ - (void)drawInContext:(CGContextRef _Nonnull)ctx;
2466
+ - (void)layoutSublayers;
2467
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
2468
+ - (nonnull instancetype)initWithLayer:(id _Nonnull)layer OBJC_DESIGNATED_INITIALIZER;
2469
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
2470
+ @end
2471
+
2472
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonBoxSizing, "BoxSizing", open) {
2473
+ MasonBoxSizingBorderBox = 0,
2474
+ MasonBoxSizingContentBox = 1,
2475
+ };
2476
+
2477
+ @class MasonTextEngine;
2478
+ @class MasonNode;
2479
+ SWIFT_PROTOCOL_NAMED("TextContainer")
2480
+ @protocol MasonTextContainer <NSObject>
2481
+ @property (nonatomic, readonly, strong) MasonTextEngine * _Nonnull engine;
2482
+ @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
2483
+ - (void)onStyleChange:(uint64_t)low :(uint64_t)high;
2484
+ @end
2485
+
2486
+ @class MasonStyle;
2487
+ @class UIView;
2488
+ SWIFT_PROTOCOL("_TtP5Mason16MasonElementObjc_")
2489
+ @protocol MasonElementObjc <NSObject>
2490
+ @property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
2491
+ @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
2492
+ @property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
2493
+ @end
2494
+
2495
+ @class NSCMason;
2496
+ @class NSString;
2497
+ @class NSMutableData;
2498
+ SWIFT_CLASS_NAMED("Button")
2499
+ @interface MasonButton : UIControl <MasonElementObjc, MasonTextContainer>
2500
+ @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
2501
+ @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
2502
+ @property (nonatomic, strong) MasonTextEngine * _Nonnull engine;
2503
+ @property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
2504
+ @property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
2505
+ /// Text content - sets or gets the concatenated text from all text nodes
2506
+ @property (nonatomic, copy) NSString * _Nonnull textContent;
2507
+ - (void)requestLayout;
2508
+ - (void)addView:(UIView * _Nonnull)view;
2509
+ - (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
2510
+ - (void)removeView:(UIView * _Nonnull)view;
2511
+ - (void)removeViewAt:(NSInteger)index;
2512
+ - (void)removeAllViews;
2513
+ - (void)layoutSubviews;
2514
+ - (void)drawRect:(CGRect)rect;
2515
+ @property (nonatomic, readonly, strong) NSMutableData * _Nonnull textValues;
2516
+ - (void)onStyleChange:(uint64_t)low :(uint64_t)high;
2517
+ - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
2518
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
2519
+ @end
2520
+
2521
+ @class UITouch;
2522
+ @class UIEvent;
2523
+ @class UIWindow;
2524
+ @interface MasonButton (SWIFT_EXTENSION(Mason))
2525
+ - (void)touchesBegan:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
2526
+ - (void)touchesEnded:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
2527
+ - (void)touchesCancelled:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
2528
+ - (void)touchesMoved:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
2529
+ - (void)willMoveToWindow:(UIWindow * _Nullable)newWindow;
2530
+ @end
2531
+
2532
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonClear, "Clear", open) {
2533
+ MasonClearNone = 0,
2534
+ MasonClearLeft = 1,
2535
+ MasonClearRight = 2,
2536
+ MasonClearBoth = 3,
2537
+ };
2538
+
2539
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonDecorationLine, "DecorationLine", open) {
2540
+ MasonDecorationLineNone = 0,
2541
+ MasonDecorationLineUnderline = 1,
2542
+ MasonDecorationLineOverline = 2,
2543
+ MasonDecorationLineLineThrough = 3,
2544
+ };
2545
+
2546
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonDecorationStyle, "DecorationStyle", open) {
2547
+ MasonDecorationStyleSolid = 0,
2548
+ MasonDecorationStyleDouble = 1,
2549
+ MasonDecorationStyleDotted = 2,
2550
+ MasonDecorationStyleDashed = 3,
2551
+ MasonDecorationStyleWavy = 4,
2552
+ };
2553
+
2554
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonDirection, "Direction", open) {
2555
+ MasonDirectionInherit = 0,
2556
+ MasonDirectionLTR = 1,
2557
+ MasonDirectionRTL = 2,
2558
+ };
2559
+
2560
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonDisplay, "Display", open) {
2561
+ MasonDisplayNone = 0,
2562
+ MasonDisplayFlex = 1,
2563
+ MasonDisplayGrid = 2,
2564
+ MasonDisplayBlock = 3,
2565
+ MasonDisplayInline = 4,
2566
+ MasonDisplayInlineBlock = 5,
2567
+ MasonDisplayInlineFlex = 6,
2568
+ MasonDisplayInlineGrid = 7,
2569
+ };
2570
+
2571
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonFlexDirection, "FlexDirection", open) {
2572
+ MasonFlexDirectionRow = 0,
2573
+ MasonFlexDirectionColumn = 1,
2574
+ MasonFlexDirectionRowReverse = 2,
2575
+ MasonFlexDirectionColumnReverse = 3,
2576
+ };
2577
+
2578
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonFlexWrap, "FlexWrap", open) {
2579
+ MasonFlexWrapNoWrap = 0,
2580
+ MasonFlexWrapWrap = 1,
2581
+ MasonFlexWrapWrapReverse = 2,
2582
+ MasonFlexWrapBalance = 3,
2583
+ MasonFlexWrapBalanceReverse = 4,
2584
+ };
2585
+
2586
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonFontStyle, "FontStyle", open) {
2587
+ MasonFontStyleNormal = 0,
2588
+ MasonFontStyleItalic = 1,
2589
+ MasonFontStyleOblique = 2,
2590
+ };
2591
+
2592
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonGridAutoFlowWrap, "GridAutoFlow", open) {
2593
+ MasonGridAutoFlowWrapRow = 0,
2594
+ MasonGridAutoFlowWrapColumn = 1,
2595
+ MasonGridAutoFlowWrapRowDense = 2,
2596
+ MasonGridAutoFlowWrapColumnDense = 3,
2597
+ };
2598
+
2599
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonGridPlacementCompatType)
2600
+ SWIFT_CLASS_NAMED("GridPlacementCompat")
2601
+ @interface GridPlacementCompat : NSObject
2602
+ - (nonnull instancetype)initWithSpan:(int16_t)span OBJC_DESIGNATED_INITIALIZER;
2603
+ - (nonnull instancetype)initWithLine:(int16_t)line OBJC_DESIGNATED_INITIALIZER;
2604
+ @property (nonatomic, readonly) enum MasonGridPlacementCompatType type;
2605
+ @property (nonatomic, readonly) int16_t value;
2606
+ @property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
2607
+ @property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
2608
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GridPlacementCompat * _Nonnull Auto;)
2609
+ + (GridPlacementCompat * _Nonnull)Auto SWIFT_WARN_UNUSED_RESULT;
2610
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2611
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2612
+ @end
2613
+
2614
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonGridPlacementCompatType, "GridPlacementCompatType", open) {
2615
+ MasonGridPlacementCompatTypeAuto = 0,
2616
+ MasonGridPlacementCompatTypeLine = 1,
2617
+ MasonGridPlacementCompatTypeSpan = 2,
2618
+ };
2619
+
2620
+ SWIFT_CLASS_NAMED("GridTrackRepetition")
2621
+ @interface MasonGridTrackRepetition : NSObject
2622
+ @property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
2623
+ @property (nonatomic, readonly) int32_t type;
2624
+ @property (nonatomic, readonly) uint16_t value;
2625
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonGridTrackRepetition * _Nonnull AutoFill;)
2626
+ + (MasonGridTrackRepetition * _Nonnull)AutoFill SWIFT_WARN_UNUSED_RESULT;
2627
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonGridTrackRepetition * _Nonnull AutoFit;)
2628
+ + (MasonGridTrackRepetition * _Nonnull)AutoFit SWIFT_WARN_UNUSED_RESULT;
2629
+ + (MasonGridTrackRepetition * _Nonnull)Count:(uint16_t)value SWIFT_WARN_UNUSED_RESULT;
2630
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2631
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2632
+ @end
2633
+
2634
+ SWIFT_CLASS_NAMED("HTMLParser")
2635
+ @interface MasonHTMLParser : NSObject
2636
+ - (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason OBJC_DESIGNATED_INITIALIZER;
2637
+ /// Parses an HTML string and returns a list of root-level MasonElement/MasonNode children.
2638
+ - (NSArray<MasonNode *> * _Nonnull)parse:(NSString * _Nonnull)html SWIFT_WARN_UNUSED_RESULT;
2639
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2640
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2641
+ @end
2642
+
2643
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonLoadingState)
2644
+ @class UIImage;
2645
+ SWIFT_CLASS_NAMED("Img")
2646
+ @interface MasonImg : UIView <MasonElementObjc>
2647
+ @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
2648
+ @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
2649
+ @property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
2650
+ @property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
2651
+ @property (nonatomic, copy) void (^ _Nullable didLayout)(void);
2652
+ @property (nonatomic, copy) void (^ _Nullable onStateChange)(enum MasonLoadingState, NSError * _Nullable);
2653
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layerClass;)
2654
+ + (Class _Nonnull)layerClass SWIFT_WARN_UNUSED_RESULT;
2655
+ @property (nonatomic, strong) UIImage * _Nullable image;
2656
+ - (void)requestLayout;
2657
+ @property (nonatomic, copy) NSString * _Nullable src;
2658
+ - (void)updateImage:(UIImage * _Nullable)image;
2659
+ - (void)layoutSubviews;
2660
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
2661
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
2662
+ @end
2663
+
2664
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonJustifyContent, "JustifyContent", open) {
2665
+ MasonJustifyContentNormal = -1,
2666
+ MasonJustifyContentStart = 0,
2667
+ MasonJustifyContentEnd = 1,
2668
+ MasonJustifyContentCenter = 2,
2669
+ MasonJustifyContentStretch = 3,
2670
+ MasonJustifyContentSpaceBetween = 4,
2671
+ MasonJustifyContentSpaceAround = 5,
2672
+ MasonJustifyContentSpaceEvenly = 6,
2673
+ MasonJustifyContentFlexStart = 7,
2674
+ MasonJustifyContentFlexEnd = 8,
2675
+ };
2676
+
2677
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonJustifyItems, "JustifyItems", open) {
2678
+ MasonJustifyItemsNormal = -1,
2679
+ MasonJustifyItemsStart = 0,
2680
+ MasonJustifyItemsEnd = 1,
2681
+ MasonJustifyItemsCenter = 2,
2682
+ MasonJustifyItemsBaseline = 3,
2683
+ MasonJustifyItemsStretch = 4,
2684
+ MasonJustifyItemsFlexStart = 5,
2685
+ MasonJustifyItemsFlexEnd = 6,
2686
+ };
2687
+
2688
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonJustifySelf, "JustifySelf", open) {
2689
+ MasonJustifySelfNormal = -1,
2690
+ MasonJustifySelfStart = 0,
2691
+ MasonJustifySelfEnd = 1,
2692
+ MasonJustifySelfCenter = 2,
2693
+ MasonJustifySelfBaseline = 3,
2694
+ MasonJustifySelfStretch = 4,
2695
+ MasonJustifySelfFlexStart = 5,
2696
+ MasonJustifySelfFlexEnd = 6,
2697
+ };
2698
+
2699
+ SWIFT_CLASS_NAMED("LineGridPlacementCompat")
2700
+ @interface LineGridPlacementCompat : NSObject
2701
+ @property (nonatomic, readonly, strong) GridPlacementCompat * _Nonnull start;
2702
+ @property (nonatomic, readonly, strong) GridPlacementCompat * _Nonnull end;
2703
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2704
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2705
+ @end
2706
+
2707
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonLineHeight, "LineHeight", open) {
2708
+ MasonLineHeightNormal = 0,
2709
+ MasonLineHeightPre = 1,
2710
+ MasonLineHeightPreWrap = 2,
2711
+ MasonLineHeightPreLine = 3,
2712
+ };
2713
+
2714
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonListStylePosition, "ListStylePosition", open) {
2715
+ MasonListStylePositionOutside = 0,
2716
+ MasonListStylePositionInside = 1,
2717
+ };
2718
+
2719
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonListStyleType, "ListStyleType", open) {
2720
+ MasonListStyleTypeNone = 0,
2721
+ MasonListStyleTypeCustom = 1,
2722
+ MasonListStyleTypeDisc = 2,
2723
+ MasonListStyleTypeCircle = 3,
2724
+ MasonListStyleTypeSquare = 4,
2725
+ MasonListStyleTypeDecimal = 5,
2726
+ };
2727
+
2728
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonLoadingState, "LoadingState", open) {
2729
+ MasonLoadingStateLoading = 0,
2730
+ MasonLoadingStateLoaded = 1,
2731
+ MasonLoadingStateError = 2,
2732
+ };
2733
+
2734
+ SWIFT_CLASS_NAMED("MasonBr")
2735
+ @interface MasonBr : NSObject <MasonElementObjc>
2736
+ @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
2737
+ @property (nonatomic, strong) MasonNode * _Nonnull node;
2738
+ @property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
2739
+ @property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
2740
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2741
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2742
+ @end
2743
+
2744
+ SWIFT_PROTOCOL("_TtP5Mason18MasonCharacterData_")
2745
+ @protocol MasonCharacterData
2746
+ @property (nonatomic, copy) NSString * _Nonnull data;
2747
+ @property (nonatomic, readonly) NSInteger length;
2748
+ - (nonnull instancetype)appendData:(NSString * _Nonnull)s;
2749
+ - (nonnull instancetype)insertData:(NSString * _Nonnull)s at:(NSInteger)offset;
2750
+ - (nonnull instancetype)deleteDataWithOffset:(NSInteger)offset count:(NSInteger)count;
2751
+ - (nonnull instancetype)replaceDataWithOffset:(NSInteger)offset count:(NSInteger)count with:(NSString * _Nonnull)s;
2752
+ - (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
2753
+ - (nonnull instancetype)deleteDataWithRange:(NSRange)range;
2754
+ - (nonnull instancetype)replaceDataWithRange:(NSRange)range with:(NSString * _Nonnull)s;
2755
+ @end
2756
+
2757
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonDimensionCompatType)
2758
+ SWIFT_CLASS_NAMED("MasonDimensionCompat")
2759
+ @interface MasonDimensionCompat : NSObject
2760
+ - (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
2761
+ - (nonnull instancetype)initWithPercent:(float)percent OBJC_DESIGNATED_INITIALIZER;
2762
+ - (nonnull instancetype)initWithFitContentPoints:(float)fitContentPoints OBJC_DESIGNATED_INITIALIZER;
2763
+ - (nonnull instancetype)initWithFitContentPercent:(float)fitContentPercent OBJC_DESIGNATED_INITIALIZER;
2764
+ @property (nonatomic, readonly) enum MasonDimensionCompatType type;
2765
+ @property (nonatomic, readonly) float value;
2766
+ @property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
2767
+ @property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
2768
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonDimensionCompat * _Nonnull Auto;)
2769
+ + (MasonDimensionCompat * _Nonnull)Auto SWIFT_WARN_UNUSED_RESULT;
2770
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonDimensionCompat * _Nonnull MinContent;)
2771
+ + (MasonDimensionCompat * _Nonnull)MinContent SWIFT_WARN_UNUSED_RESULT;
2772
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonDimensionCompat * _Nonnull MaxContent;)
2773
+ + (MasonDimensionCompat * _Nonnull)MaxContent SWIFT_WARN_UNUSED_RESULT;
2774
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonDimensionCompat * _Nonnull FitContent;)
2775
+ + (MasonDimensionCompat * _Nonnull)FitContent SWIFT_WARN_UNUSED_RESULT;
2776
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonDimensionCompat * _Nonnull Stretch;)
2777
+ + (MasonDimensionCompat * _Nonnull)Stretch SWIFT_WARN_UNUSED_RESULT;
2778
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonDimensionCompat * _Nonnull Content;)
2779
+ + (MasonDimensionCompat * _Nonnull)Content SWIFT_WARN_UNUSED_RESULT;
2780
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonDimensionCompat * _Nonnull Zero;)
2781
+ + (MasonDimensionCompat * _Nonnull)Zero SWIFT_WARN_UNUSED_RESULT;
2782
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2783
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2784
+ @end
2785
+
2786
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonDimensionCompatType, "MasonDimensionCompatType", open) {
2787
+ MasonDimensionCompatTypeAuto = 0,
2788
+ MasonDimensionCompatTypePoints = 1,
2789
+ MasonDimensionCompatTypePercent = 2,
2790
+ MasonDimensionCompatTypeMinContent = 3,
2791
+ MasonDimensionCompatTypeMaxContent = 4,
2792
+ MasonDimensionCompatTypeFitContent = 5,
2793
+ MasonDimensionCompatTypeFitContentPoints = 6,
2794
+ MasonDimensionCompatTypeFitContentPercent = 7,
2795
+ MasonDimensionCompatTypeStretch = 8,
2796
+ MasonDimensionCompatTypeContent = 9,
2797
+ };
2798
+
2799
+ SWIFT_CLASS_NAMED("MasonDimensionPointCompat")
2800
+ @interface MasonDimensionPointCompat : NSObject
2801
+ @property (nonatomic, strong) MasonDimensionCompat * _Nonnull x;
2802
+ @property (nonatomic, strong) MasonDimensionCompat * _Nonnull y;
2803
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2804
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2805
+ @end
2806
+
2807
+ SWIFT_CLASS_NAMED("MasonDimensionRectCompat")
2808
+ @interface MasonDimensionRectCompat : NSObject
2809
+ @property (nonatomic, strong) MasonDimensionCompat * _Nonnull left;
2810
+ @property (nonatomic, strong) MasonDimensionCompat * _Nonnull right;
2811
+ @property (nonatomic, strong) MasonDimensionCompat * _Nonnull top;
2812
+ @property (nonatomic, strong) MasonDimensionCompat * _Nonnull bottom;
2813
+ - (nonnull instancetype)init:(MasonDimensionCompat * _Nonnull)left :(MasonDimensionCompat * _Nonnull)top :(MasonDimensionCompat * _Nonnull)right :(MasonDimensionCompat * _Nonnull)bottom OBJC_DESIGNATED_INITIALIZER;
2814
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2815
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2816
+ @end
2817
+
2818
+ SWIFT_CLASS_NAMED("MasonDimensionSizeCompat")
2819
+ @interface MasonDimensionSizeCompat : NSObject
2820
+ @property (nonatomic, strong) MasonDimensionCompat * _Nonnull width;
2821
+ @property (nonatomic, strong) MasonDimensionCompat * _Nonnull height;
2822
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2823
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2824
+ @end
2825
+
2826
+ SWIFT_CLASS_NAMED("MasonDocument")
2827
+ @interface MasonDocument : NSObject
2828
+ @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
2829
+ @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
2830
+ - (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)instance OBJC_DESIGNATED_INITIALIZER;
2831
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2832
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2833
+ @end
2834
+
2835
+ @class MasonEventOptions;
2836
+ SWIFT_CLASS_NAMED("MasonEvent")
2837
+ @interface MasonEvent : NSObject
2838
+ @property (nonatomic, readonly, copy) NSString * _Nonnull type;
2839
+ @property (nonatomic, readonly) BOOL bubbles;
2840
+ @property (nonatomic, readonly) BOOL cancelable;
2841
+ @property (nonatomic, readonly) BOOL isComposing;
2842
+ @property (nonatomic, readonly) double timeStamp;
2843
+ @property (nonatomic, readonly) BOOL defaultPrevented;
2844
+ @property (nonatomic, readonly) BOOL propagationStopped;
2845
+ @property (nonatomic, readonly) BOOL immediatePropagationStopped;
2846
+ @property (nonatomic, readonly) id _Nullable target;
2847
+ @property (nonatomic, readonly) id _Nullable currentTarget;
2848
+ - (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options OBJC_DESIGNATED_INITIALIZER;
2849
+ - (void)preventDefault;
2850
+ - (void)stopPropagation;
2851
+ - (void)stopImmediatePropagation;
2852
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2853
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2854
+ @end
2855
+
2856
+ SWIFT_CLASS_NAMED("MasonEventOptions")
2857
+ @interface MasonEventOptions : NSObject
2858
+ @property (nonatomic) BOOL isComposing;
2859
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
2860
+ - (nonnull instancetype)initWithIsComposing:(BOOL)isComposing OBJC_DESIGNATED_INITIALIZER;
2861
+ @end
2862
+
2863
+ @class NSURL;
2864
+ SWIFT_CLASS_NAMED("MasonFileInputEvent")
2865
+ @interface MasonFileInputEvent : MasonEvent
2866
+ @property (nonatomic, readonly, copy) NSString * _Nullable data;
2867
+ @property (nonatomic, readonly, copy) NSString * _Nullable inputType;
2868
+ @property (nonatomic, readonly, copy) NSArray<NSURL *> * _Nonnull rawData;
2869
+ - (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;
2870
+ - (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options SWIFT_UNAVAILABLE;
2871
+ @end
2872
+
2873
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonFloat, "MasonFloat", open) {
2874
+ MasonFloatNone = 0,
2875
+ MasonFloatLeft = 1,
2876
+ MasonFloatRight = 2,
2877
+ };
2878
+
2879
+ SWIFT_CLASS("_TtC5Mason15MasonImageLayer")
2880
+ @interface MasonImageLayer : CALayer
2881
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
2882
+ - (nonnull instancetype)initWithLayer:(id _Nonnull)layer OBJC_DESIGNATED_INITIALIZER;
2883
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
2884
+ - (void)drawInContext:(CGContextRef _Nonnull)context;
2885
+ - (void)layoutSublayers;
2886
+ @end
2887
+
2888
+ SWIFT_ENUM_FWD_DECL(int8_t, MasonInputType)
2889
+ @class NSDate;
2890
+ SWIFT_CLASS_NAMED("MasonInput")
2891
+ @interface MasonInput : UIView
2892
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
2893
+ @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
2894
+ @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
2895
+ @property (nonatomic) BOOL multiple;
2896
+ @property (nonatomic, copy) NSString * _Nonnull accept;
2897
+ @property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
2898
+ @property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
2899
+ @property (nonatomic) enum MasonInputType type;
2900
+ @property (nonatomic) int32_t size;
2901
+ @property (nonatomic, copy) NSString * _Nonnull value;
2902
+ @property (nonatomic) double valueAsNumber;
2903
+ @property (nonatomic, copy) NSDate * _Nullable valueAsDate;
2904
+ @property (nonatomic, copy) NSString * _Nonnull placeholder;
2905
+ - (void)drawRect:(CGRect)rect;
2906
+ - (void)layoutSubviews;
2907
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
2908
+ @end
2909
+
2910
+ SWIFT_CLASS_NAMED("MasonInputEvent")
2911
+ @interface MasonInputEvent : MasonEvent
2912
+ @property (nonatomic, readonly, copy) NSString * _Nullable data;
2913
+ @property (nonatomic, readonly, copy) NSString * _Nullable inputType;
2914
+ - (nonnull instancetype)initWithType:(NSString * _Nonnull)type data:(NSString * _Nullable)inputData inputType:(NSString * _Nullable)masonInputType options:(MasonEventOptions * _Nullable)options OBJC_DESIGNATED_INITIALIZER;
2915
+ - (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options SWIFT_UNAVAILABLE;
2916
+ @end
2917
+
2918
+ typedef SWIFT_ENUM_NAMED(int8_t, MasonInputType, "MasonInputType", open) {
2919
+ MasonInputTypeText = 0,
2920
+ MasonInputTypeButton = 1,
2921
+ MasonInputTypeCheckbox = 2,
2922
+ MasonInputTypeEmail = 3,
2923
+ MasonInputTypePassword = 4,
2924
+ MasonInputTypeDate = 5,
2925
+ MasonInputTypeRadio = 6,
2926
+ MasonInputTypeNumber = 7,
2927
+ MasonInputTypeRange = 8,
2928
+ MasonInputTypeTel = 9,
2929
+ MasonInputTypeUrl = 10,
2930
+ MasonInputTypeColor = 11,
2931
+ MasonInputTypeFile = 12,
2932
+ MasonInputTypeSubmit = 13,
2933
+ MasonInputTypeSearch = 14,
2934
+ MasonInputTypeTime = 15,
2935
+ MasonInputTypeDatetimeLocal = 16,
2936
+ MasonInputTypeMonth = 17,
2937
+ MasonInputTypeWeek = 18,
2938
+ MasonInputTypeReset = 19,
2939
+ };
2940
+
2941
+ @class MasonRectHelper;
2942
+ @class MasonSizeHelper;
2943
+ SWIFT_CLASS_NAMED("MasonLayout")
2944
+ @interface MasonLayout : NSObject
2945
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonLayout * _Nonnull empty;)
2946
+ + (MasonLayout * _Nonnull)empty SWIFT_WARN_UNUSED_RESULT;
2947
+ @property (nonatomic, readonly) float x;
2948
+ @property (nonatomic, readonly) float y;
2949
+ @property (nonatomic, readonly) float width;
2950
+ @property (nonatomic, readonly) float height;
2951
+ @property (nonatomic, readonly) float borderTop;
2952
+ @property (nonatomic, readonly) float borderRight;
2953
+ @property (nonatomic, readonly) float borderBottom;
2954
+ @property (nonatomic, readonly) float borderLeft;
2955
+ @property (nonatomic, readonly) float marginTop;
2956
+ @property (nonatomic, readonly) float marginRight;
2957
+ @property (nonatomic, readonly) float marginBottom;
2958
+ @property (nonatomic, readonly) float marginLeft;
2959
+ @property (nonatomic, readonly) float paddingTop;
2960
+ @property (nonatomic, readonly) float paddingRight;
2961
+ @property (nonatomic, readonly) float paddingBottom;
2962
+ @property (nonatomic, readonly) float paddingLeft;
2963
+ @property (nonatomic, readonly) float contentWidth;
2964
+ @property (nonatomic, readonly) float contentHeight;
2965
+ @property (nonatomic, readonly) float scrollbarWidth;
2966
+ @property (nonatomic, readonly) float scrollbarHeight;
2967
+ @property (nonatomic, readonly) BOOL sizeIsEmpty;
2968
+ @property (nonatomic, readonly) BOOL paddingIsEmpty;
2969
+ @property (nonatomic, readonly) BOOL marginIsEmpty;
2970
+ @property (nonatomic, readonly) BOOL borderIsEmpty;
2971
+ @property (nonatomic, readonly, strong) MasonRectHelper * _Nonnull border;
2972
+ @property (nonatomic, readonly, strong) MasonRectHelper * _Nonnull margin;
2973
+ @property (nonatomic, readonly, strong) MasonRectHelper * _Nonnull padding;
2974
+ @property (nonatomic, readonly, strong) MasonSizeHelper * _Nonnull contentSize;
2975
+ @property (nonatomic, readonly, strong) MasonSizeHelper * _Nonnull scrollbarSize;
2976
+ @property (nonatomic, readonly) BOOL hasChildren;
2977
+ @property (nonatomic, readonly, copy) NSArray<MasonLayout *> * _Nonnull children;
2978
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2979
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2980
+ @end
2981
+
2982
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonLengthPercentageAutoCompatType)
2983
+ SWIFT_CLASS_NAMED("MasonLengthPercentageAutoCompat")
2984
+ @interface MasonLengthPercentageAutoCompat : NSObject
2985
+ - (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
2986
+ - (nonnull instancetype)initWithPercent:(float)percent OBJC_DESIGNATED_INITIALIZER;
2987
+ @property (nonatomic, readonly) enum MasonLengthPercentageAutoCompatType type;
2988
+ @property (nonatomic, readonly) float value;
2989
+ @property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
2990
+ @property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
2991
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonLengthPercentageAutoCompat * _Nonnull Auto;)
2992
+ + (MasonLengthPercentageAutoCompat * _Nonnull)Auto SWIFT_WARN_UNUSED_RESULT;
2993
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonLengthPercentageAutoCompat * _Nonnull Zero;)
2994
+ + (MasonLengthPercentageAutoCompat * _Nonnull)Zero SWIFT_WARN_UNUSED_RESULT;
2995
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2996
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2997
+ @end
2998
+
2999
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonLengthPercentageAutoCompatType, "MasonLengthPercentageAutoCompatType", open) {
3000
+ MasonLengthPercentageAutoCompatTypeAuto = 0,
3001
+ MasonLengthPercentageAutoCompatTypePoints = 1,
3002
+ MasonLengthPercentageAutoCompatTypePercent = 2,
3003
+ };
3004
+
3005
+ SWIFT_CLASS_NAMED("MasonLengthPercentageAutoPointCompat")
3006
+ @interface MasonLengthPercentageAutoPointCompat : NSObject
3007
+ @property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull x;
3008
+ @property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull y;
3009
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
3010
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3011
+ @end
3012
+
3013
+ SWIFT_CLASS_NAMED("MasonLengthPercentageAutoRectCompat")
3014
+ @interface MasonLengthPercentageAutoRectCompat : NSObject
3015
+ @property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull left;
3016
+ @property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull right;
3017
+ @property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull top;
3018
+ @property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull bottom;
3019
+ - (nonnull instancetype)init:(MasonLengthPercentageAutoCompat * _Nonnull)left :(MasonLengthPercentageAutoCompat * _Nonnull)top :(MasonLengthPercentageAutoCompat * _Nonnull)right :(MasonLengthPercentageAutoCompat * _Nonnull)bottom OBJC_DESIGNATED_INITIALIZER;
3020
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
3021
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3022
+ @end
3023
+
3024
+ SWIFT_CLASS_NAMED("MasonLengthPercentageAutoSizeCompat")
3025
+ @interface MasonLengthPercentageAutoSizeCompat : NSObject
3026
+ @property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull width;
3027
+ @property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull height;
3028
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
3029
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3030
+ @end
3031
+
3032
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonLengthPercentageCompatType)
3033
+ SWIFT_CLASS_NAMED("MasonLengthPercentageCompat")
3034
+ @interface MasonLengthPercentageCompat : NSObject
3035
+ - (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
3036
+ - (nonnull instancetype)initWithPercent:(float)percent OBJC_DESIGNATED_INITIALIZER;
3037
+ @property (nonatomic, readonly) enum MasonLengthPercentageCompatType type;
3038
+ @property (nonatomic, readonly) float value;
3039
+ @property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
3040
+ @property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
3041
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonLengthPercentageCompat * _Nonnull Zero;)
3042
+ + (MasonLengthPercentageCompat * _Nonnull)Zero SWIFT_WARN_UNUSED_RESULT;
3043
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
3044
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3045
+ @end
3046
+
3047
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonLengthPercentageCompatType, "MasonLengthPercentageCompatType", open) {
3048
+ MasonLengthPercentageCompatTypePoints = 0,
3049
+ MasonLengthPercentageCompatTypePercent = 1,
3050
+ };
3051
+
3052
+ SWIFT_CLASS_NAMED("MasonLengthPercentagePointCompat")
3053
+ @interface MasonLengthPercentagePointCompat : NSObject
3054
+ @property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull x;
3055
+ @property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull y;
3056
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
3057
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3058
+ @end
3059
+
3060
+ SWIFT_CLASS_NAMED("MasonLengthPercentageRectCompat")
3061
+ @interface MasonLengthPercentageRectCompat : NSObject
3062
+ @property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull left;
3063
+ @property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull right;
3064
+ @property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull top;
3065
+ @property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull bottom;
3066
+ - (nonnull instancetype)init:(MasonLengthPercentageCompat * _Nonnull)left :(MasonLengthPercentageCompat * _Nonnull)right :(MasonLengthPercentageCompat * _Nonnull)top :(MasonLengthPercentageCompat * _Nonnull)bottom OBJC_DESIGNATED_INITIALIZER;
3067
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
3068
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3069
+ @end
3070
+
3071
+ SWIFT_CLASS_NAMED("MasonLengthPercentageSizeCompat")
3072
+ @interface MasonLengthPercentageSizeCompat : NSObject
3073
+ @property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull width;
3074
+ @property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull height;
3075
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
3076
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3077
+ @end
3078
+
3079
+ SWIFT_CLASS_NAMED("MasonLi")
3080
+ @interface MasonLi : UIView <MasonElementObjc>
3081
+ - (void)requestLayout;
3082
+ - (void)drawRect:(CGRect)rect;
3083
+ @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
3084
+ @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
3085
+ @property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
3086
+ @property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
3087
+ @property (nonatomic) BOOL isOrdered;
3088
+ - (void)layoutSubviews;
3089
+ /// Reset view state for recycling
3090
+ - (void)resetForRecycle;
3091
+ /// Set marker value and position for this list item
3092
+ - (void)bindWithPosition:(NSInteger)position isOrdered:(BOOL)isOrdered;
3093
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
3094
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
3095
+ @end
3096
+
3097
+ @protocol MasonListDelegate;
3098
+ @class UICollectionView;
3099
+ @class NSIndexPath;
3100
+ @class UICollectionViewCell;
3101
+ SWIFT_CLASS_NAMED("MasonList")
3102
+ @interface MasonList : UIView <MasonElementObjc, UICollectionViewDataSource, UICollectionViewDataSourcePrefetching, UICollectionViewDelegateFlowLayout>
3103
+ @property (nonatomic, strong) id <MasonListDelegate> _Nullable delegate;
3104
+ - (void)drawRect:(CGRect)rect;
3105
+ @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
3106
+ @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
3107
+ @property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
3108
+ @property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
3109
+ /// Static items keyed by their position in the overall list.
3110
+ /// Positions not in this dictionary are virtual (recycled via delegate).
3111
+ @property (nonatomic, readonly, copy) NSDictionary<NSNumber *, MasonLi *> * _Nonnull staticItems;
3112
+ /// Backward-compat: flat array of static views (unpositioned).
3113
+ /// Setting this clears staticItems and assigns positions 0..<array.count.
3114
+ @property (nonatomic, copy) NSArray<MasonLi *> * _Nonnull staticViews;
3115
+ @property (nonatomic, strong) NSMutableData * _Nonnull values;
3116
+ /// Virtual item count (set by user). Total count = staticItems.count + this value.
3117
+ @property (nonatomic) NSInteger count;
3118
+ - (void)layoutSubviews;
3119
+ - (void)registerWithCellClass:(Class _Nullable)cellClass forCellWithReuseIdentifier:(NSString * _Nonnull)identifier;
3120
+ /// Appends a static item at the end of the list (position = current count).
3121
+ - (void)addView:(MasonLi * _Nonnull)item;
3122
+ /// Inserts a static item at the given position, shifting existing entries at >= index.
3123
+ - (void)addView:(MasonLi * _Nonnull)item at:(NSInteger)index;
3124
+ - (void)reload;
3125
+ @property (nonatomic) BOOL isOrdered;
3126
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
3127
+ - (void)invalidateSizeCache;
3128
+ - (void)invalidateSizeCacheAt:(NSInteger)index;
3129
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView prefetchItemsAtIndexPaths:(NSArray<NSIndexPath *> * _Nonnull)indexPaths;
3130
+ - (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
3131
+ - (NSInteger)numberOfSectionsInCollectionView:(UICollectionView * _Nonnull)collectionView SWIFT_WARN_UNUSED_RESULT;
3132
+ - (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
3133
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView willDisplayCell:(UICollectionViewCell * _Nonnull)cell forItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
3134
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
3135
+ @end
3136
+
3137
+ SWIFT_PROTOCOL_NAMED("MasonListDelegate")
3138
+ @protocol MasonListDelegate
3139
+ - (UICollectionViewCell * _Nonnull)list:(UICollectionView * _Nonnull)list cellForItemAt:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
3140
+ - (void)list:(UICollectionView * _Nonnull)list willDisplay:(UICollectionViewCell * _Nonnull)cell forItemAt:(NSIndexPath * _Nonnull)indexPath;
3141
+ @end
3142
+
3143
+ @class UICollectionViewLayoutAttributes;
3144
+ SWIFT_CLASS_NAMED("MasonListCell")
3145
+ @interface MasonListCell : UICollectionViewCell
3146
+ @property (nonatomic, copy) void (^ _Nullable willMove)(MasonListCell * _Nonnull);
3147
+ + (MasonListCell * _Nonnull)initWithEmptyBackground SWIFT_METHOD_FAMILY(none) SWIFT_WARN_UNUSED_RESULT;
3148
+ - (void)setViewWithCompat:(id <MasonElementObjc> _Nullable)view;
3149
+ - (void)willMoveToSuperview:(UIView * _Nullable)newSuperview;
3150
+ - (void)prepareForReuse;
3151
+ - (UICollectionViewLayoutAttributes * _Nonnull)preferredLayoutAttributesFittingAttributes:(UICollectionViewLayoutAttributes * _Nonnull)layoutAttributes SWIFT_WARN_UNUSED_RESULT;
3152
+ - (void)layoutSubviews;
3153
+ - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
3154
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
3155
+ @end
3156
+
3157
+ @class MasonMouseEventOptions;
3158
+ SWIFT_CLASS_NAMED("MasonMouseEvent")
3159
+ @interface MasonMouseEvent : MasonEvent
3160
+ @property (nonatomic, readonly) NSInteger button;
3161
+ @property (nonatomic, readonly) NSInteger buttons;
3162
+ @property (nonatomic, readonly) float clientX;
3163
+ @property (nonatomic, readonly) float clientY;
3164
+ @property (nonatomic, readonly) BOOL ctrlKey;
3165
+ @property (nonatomic, readonly) BOOL shiftKey;
3166
+ @property (nonatomic, readonly) BOOL altKey;
3167
+ @property (nonatomic, readonly) BOOL metaKey;
3168
+ @property (nonatomic, readonly) NSInteger detail;
3169
+ @property (nonatomic, readonly) float screenX;
3170
+ @property (nonatomic, readonly) float screenY;
3171
+ @property (nonatomic, readonly) id _Nullable relatedTarget;
3172
+ @property (nonatomic, readonly) id _Nullable region;
3173
+ @property (nonatomic, readonly) NSInteger movementX;
3174
+ @property (nonatomic, readonly) NSInteger movementY;
3175
+ @property (nonatomic, readonly) float pageX;
3176
+ @property (nonatomic, readonly) float pageY;
3177
+ - (nonnull instancetype)initWithType:(NSString * _Nonnull)type options:(MasonMouseEventOptions * _Nullable)options OBJC_DESIGNATED_INITIALIZER;
3178
+ - (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options SWIFT_UNAVAILABLE;
3179
+ @end
3180
+
3181
+ SWIFT_CLASS_NAMED("MasonMouseEventOptions")
3182
+ @interface MasonMouseEventOptions : MasonEventOptions
3183
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3184
+ - (nonnull instancetype)initWithIsComposing:(BOOL)isComposing OBJC_DESIGNATED_INITIALIZER;
3185
+ @end
3186
+
3187
+ SWIFT_ENUM_FWD_DECL(uint16_t, PseudoState)
3188
+ SWIFT_ENUM_FWD_DECL(int32_t, MasonNodeType)
3189
+ SWIFT_CLASS_NAMED("MasonNode")
3190
+ @interface MasonNode : NSObject
3191
+ @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
3192
+ /// Attributes carried over from parsed HTML (<code>class</code>, <code>id</code>, <code>href</code>, <code>alt</code>,
3193
+ /// <code>title</code>). Recorded, not acted on by the cascade — see applyAttributes in
3194
+ /// HTMLParser for why.
3195
+ @property (nonatomic, copy) NSDictionary<NSString *, NSString *> * _Nonnull htmlAttributes;
3196
+ @property (nonatomic, copy) void (^ _Nullable onNodeAttached)(void);
3197
+ @property (nonatomic, copy) void (^ _Nullable onNodeDetached)(void);
3198
+ @property (nonatomic, readonly) void * _Nullable nativePtr;
3199
+ @property (nonatomic, readonly, strong) MasonLayout * _Nonnull computedLayout;
3200
+ /// Set to true by applyToView after Mason has applied layout to this node’s view.
3201
+ /// NativeScript can read this to skip redundant layout passes for Mason-managed children.
3202
+ @property (nonatomic) BOOL isLayoutValid;
3203
+ @property (nonatomic, readonly, strong) MasonDocument * _Nullable document;
3204
+ - (void)setPseudoString:(uint16_t)pseudoState :(NSString * _Nonnull)key :(NSString * _Nonnull)value;
3205
+ - (NSString * _Nullable)getPseudoString:(uint16_t)pseudoState :(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT;
3206
+ - (void)clearPseudoString:(uint16_t)pseudoState :(NSString * _Nonnull)key;
3207
+ /// Current active pseudo state bitmask read from the native state buffer.
3208
+ @property (nonatomic, readonly) uint16_t pseudoMask;
3209
+ - (BOOL)hasPseudo:(enum PseudoState)state SWIFT_WARN_UNUSED_RESULT;
3210
+ - (void)setPseudo:(enum PseudoState)state :(BOOL)enabled autoDirty:(BOOL)autoDirty;
3211
+ /// Get existing pseudo style buffer (read-only).
3212
+ - (NSMutableData * _Nullable)getPseudoBuffer:(uint16_t)flags SWIFT_WARN_UNUSED_RESULT;
3213
+ /// Prepare (create if needed) a mutable pseudo style buffer.
3214
+ /// Clones from base style on first call for a given state.
3215
+ - (NSMutableData * _Nonnull)preparePseudoBuffer:(uint16_t)flags SWIFT_WARN_UNUSED_RESULT;
3216
+ - (MasonNode * _Nonnull)getRootNode SWIFT_WARN_UNUSED_RESULT;
3217
+ @property (nonatomic, readonly, strong) MasonNode * _Nullable parent;
3218
+ @property (nonatomic, readonly, strong) MasonNode * _Nullable parentNode;
3219
+ @property (nonatomic, readonly) enum MasonNodeType type;
3220
+ - (NSArray<MasonNode *> * _Nonnull)getChildren SWIFT_WARN_UNUSED_RESULT;
3221
+ - (NSArray<MasonNode *> * _Nonnull)getLayoutChildren SWIFT_WARN_UNUSED_RESULT;
3222
+ @property (nonatomic) BOOL inBatch;
3223
+ - (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes OBJC_DESIGNATED_INITIALIZER;
3224
+ @property (nonatomic, readonly) BOOL isDirty;
3225
+ - (void)markDirty;
3226
+ - (UIView * _Nullable)getRoot SWIFT_WARN_UNUSED_RESULT;
3227
+ /// Helper to get default text attributes for new text nodes
3228
+ - (NSDictionary<NSAttributedStringKey, id> * _Nonnull)getDefaultAttributes SWIFT_WARN_UNUSED_RESULT;
3229
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
3230
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3231
+ @end
3232
+
3233
+ @interface MasonNode (SWIFT_EXTENSION(Mason))
3234
+ - (void)setChildrenWithValue:(NSArray<MasonNode *> * _Nonnull)value;
3235
+ - (void)appendChild:(MasonNode * _Nonnull)child;
3236
+ - (void)removeAllChildren;
3237
+ @end
3238
+
3239
+ typedef SWIFT_ENUM_NAMED(int32_t, MasonNodeType, "MasonNodeType", open) {
3240
+ MasonNodeTypeElement = 0,
3241
+ MasonNodeTypeText = 1,
3242
+ MasonNodeTypeDocument = 2,
3243
+ };
3244
+
3245
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonOverflow)
3246
+ SWIFT_CLASS_NAMED("MasonOverflowPointCompat")
3247
+ @interface MasonOverflowPointCompat : NSObject
3248
+ @property (nonatomic) enum MasonOverflow x;
3249
+ @property (nonatomic) enum MasonOverflow y;
3250
+ @property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
3251
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
3252
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3253
+ @end
3254
+
3255
+ SWIFT_CLASS_NAMED("MasonRectHelper")
3256
+ @interface MasonRectHelper : NSObject
3257
+ @property (nonatomic, readonly) float top;
3258
+ @property (nonatomic, readonly) float right;
3259
+ @property (nonatomic, readonly) float bottom;
3260
+ @property (nonatomic, readonly) float left;
3261
+ - (BOOL)isEmpty SWIFT_WARN_UNUSED_RESULT;
3262
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
3263
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3264
+ @end
3265
+
3266
+ SWIFT_CLASS_NAMED("MasonSizeHelper")
3267
+ @interface MasonSizeHelper : NSObject
3268
+ @property (nonatomic, readonly) float width;
3269
+ @property (nonatomic, readonly) float height;
3270
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
3271
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3272
+ @end
3273
+
3274
+ @class NSCFontFace;
3275
+ @class MasonVerticalAlignValue;
3276
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonObjectFit)
3277
+ @class UIColor;
3278
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextJustify)
3279
+ @class MasonTextOverflowCompat;
3280
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextTransform)
3281
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonWhiteSpace)
3282
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextWrap)
3283
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonPosition)
3284
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextAlign)
3285
+ SWIFT_CLASS_NAMED("MasonStyle")
3286
+ @interface MasonStyle : NSObject
3287
+ @property (nonatomic, readonly, strong) NSCFontFace * _Null_unspecified font;
3288
+ - (void)prepareMut;
3289
+ @property (nonatomic, readonly, strong) NSMutableData * _Nonnull values;
3290
+ - (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)node OBJC_DESIGNATED_INITIALIZER;
3291
+ @property (nonatomic) enum MasonListStylePosition listStylePosition;
3292
+ @property (nonatomic) enum MasonListStyleType listStyleType;
3293
+ @property (nonatomic) int32_t zIndex;
3294
+ @property (nonatomic, strong) MasonVerticalAlignValue * _Nonnull verticalAlign;
3295
+ @property (nonatomic) enum MasonObjectFit objectFit;
3296
+ @property (nonatomic, getter=float, setter=setFloat:) enum MasonFloat float_;
3297
+ @property (nonatomic) enum MasonClear clear;
3298
+ @property (nonatomic) uint32_t color;
3299
+ - (void)setColorWithUi:(UIColor * _Nonnull)color;
3300
+ - (void)setColorWithCss:(NSString * _Nonnull)color;
3301
+ @property (nonatomic, copy) NSString * _Nonnull filter;
3302
+ @property (nonatomic, copy) NSString * _Nonnull background;
3303
+ @property (nonatomic, copy) NSString * _Nonnull backgroundImage;
3304
+ @property (nonatomic, copy) NSString * _Nonnull backgroundRepeat;
3305
+ @property (nonatomic, copy) NSString * _Nonnull backgroundPosition;
3306
+ @property (nonatomic, copy) NSString * _Nonnull backgroundSize;
3307
+ @property (nonatomic, copy) NSString * _Nonnull backgroundClip;
3308
+ @property (nonatomic) uint32_t backgroundColor;
3309
+ - (NSString * _Nonnull)getBackgroundColor SWIFT_WARN_UNUSED_RESULT;
3310
+ - (void)setBackgroundColorWithString:(NSString * _Nonnull)color;
3311
+ - (void)setBackgroundColorWithUi:(UIColor * _Nonnull)color;
3312
+ - (void)setLineHeight:(float)value :(BOOL)isRelative;
3313
+ @property (nonatomic) float lineHeight;
3314
+ @property (nonatomic) float letterSpacing;
3315
+ @property (nonatomic, copy) NSString * _Nonnull fontVariantNumericString;
3316
+ @property (nonatomic) uint32_t decorationColor;
3317
+ - (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
3318
+ - (void)setDecorationColorWithCss:(NSString * _Nonnull)color;
3319
+ @property (nonatomic) enum MasonDecorationLine decorationLine;
3320
+ - (void)setTextDecoration:(NSString * _Nonnull)css;
3321
+ - (void)setBorderColor:(NSString * _Nonnull)css;
3322
+ - (void)applyListStyleType:(NSString * _Nonnull)css;
3323
+ - (void)applyListStylePosition:(NSString * _Nonnull)css;
3324
+ @property (nonatomic) int32_t fontSize;
3325
+ - (void)setFontStyle:(enum MasonFontStyle)style :(int32_t)slant;
3326
+ @property (nonatomic) enum MasonTextJustify textJustify;
3327
+ @property (nonatomic) enum MasonFontStyle fontStyle;
3328
+ @property (nonatomic, copy) NSString * _Nonnull fontFamily;
3329
+ @property (nonatomic, copy) NSString * _Nonnull fontWeight;
3330
+ @property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
3331
+ @property (nonatomic) enum MasonTextTransform textTransform;
3332
+ @property (nonatomic) enum MasonWhiteSpace whiteSpace;
3333
+ @property (nonatomic) enum MasonTextWrap textWrap;
3334
+ @property (nonatomic) enum MasonDisplay display;
3335
+ @property (nonatomic) enum MasonPosition position;
3336
+ @property (nonatomic) enum MasonDirection direction;
3337
+ @property (nonatomic) enum MasonFlexDirection flexDirection;
3338
+ @property (nonatomic) enum MasonFlexWrap flexWrap;
3339
+ @property (nonatomic, strong) MasonOverflowPointCompat * _Nonnull overflowCompat;
3340
+ @property (nonatomic) enum MasonOverflow overflowX;
3341
+ @property (nonatomic) enum MasonOverflow overflowY;
3342
+ @property (nonatomic) enum MasonAlignItems alignItems;
3343
+ @property (nonatomic) enum MasonAlignSelf alignSelf;
3344
+ @property (nonatomic) enum MasonAlignContent alignContent;
3345
+ @property (nonatomic) enum MasonJustifyItems justifyItems;
3346
+ @property (nonatomic) enum MasonJustifySelf justifySelf;
3347
+ @property (nonatomic) enum MasonJustifyContent justifyContent;
3348
+ @property (nonatomic, strong) MasonLengthPercentageAutoRectCompat * _Nonnull insetCompat;
3349
+ - (void)setInsetLeft:(float)value :(NSInteger)type;
3350
+ - (void)setInsetRight:(float)value :(NSInteger)type;
3351
+ - (void)setInsetTop:(float)value :(NSInteger)type;
3352
+ - (void)setInsetBottom:(float)value :(NSInteger)type;
3353
+ - (void)setInsetWithValueType:(float)value :(NSInteger)type;
3354
+ @property (nonatomic, strong) MasonLengthPercentageAutoRectCompat * _Nonnull marginCompat;
3355
+ - (void)setMarginLeft:(float)value :(NSInteger)type;
3356
+ - (void)setMarginRight:(float)value :(NSInteger)type;
3357
+ - (void)setMarginTop:(float)value :(NSInteger)type;
3358
+ - (void)setMarginBottom:(float)value :(NSInteger)type;
3359
+ - (void)setMarginWithValueType:(float)value :(NSInteger)type;
3360
+ @property (nonatomic, strong) MasonLengthPercentageRectCompat * _Nonnull paddingCompat;
3361
+ - (void)setPaddingLeft:(float)value :(NSInteger)type;
3362
+ - (void)setPaddingRight:(float)value :(NSInteger)type;
3363
+ - (void)setPaddingTop:(float)value :(NSInteger)type;
3364
+ - (void)setPaddingBottom:(float)value :(NSInteger)type;
3365
+ - (void)setPaddingWithValueType:(float)value :(NSInteger)type;
3366
+ @property (nonatomic, copy) NSString * _Nonnull textShadow;
3367
+ @property (nonatomic, copy) NSString * _Nonnull boxShadow;
3368
+ @property (nonatomic, copy) NSString * _Nonnull borderRadius;
3369
+ @property (nonatomic, copy) NSString * _Nonnull cornerShape;
3370
+ @property (nonatomic, copy) NSString * _Nonnull cornerShapeTopLeft;
3371
+ @property (nonatomic, copy) NSString * _Nonnull cornerShapeTopRight;
3372
+ @property (nonatomic, copy) NSString * _Nonnull cornerShapeBottomRight;
3373
+ @property (nonatomic, copy) NSString * _Nonnull cornerShapeBottomLeft;
3374
+ @property (nonatomic, copy) NSString * _Nonnull border;
3375
+ @property (nonatomic, copy) NSString * _Nonnull paddingCss;
3376
+ @property (nonatomic, copy) NSString * _Nonnull marginCss;
3377
+ @property (nonatomic, copy) NSString * _Nonnull insetCss;
3378
+ @property (nonatomic, copy) NSString * _Nonnull borderLeft;
3379
+ @property (nonatomic, copy) NSString * _Nonnull borderTop;
3380
+ @property (nonatomic, copy) NSString * _Nonnull borderRight;
3381
+ @property (nonatomic, copy) NSString * _Nonnull borderBottom;
3382
+ @property (nonatomic, strong) MasonLengthPercentageRectCompat * _Nonnull borderWidthCompat;
3383
+ - (void)setBorderLeftWidth:(float)value :(NSInteger)type;
3384
+ - (void)setBorderRightWidth:(float)value :(NSInteger)type;
3385
+ - (void)setBorderTopWidth:(float)value :(NSInteger)type;
3386
+ - (void)setBorderBottomWidth:(float)value :(NSInteger)type;
3387
+ - (void)setBorderWidth:(float)value :(NSInteger)type;
3388
+ @property (nonatomic) float flexGrow;
3389
+ @property (nonatomic) float flexShrink;
3390
+ - (void)setFlexBasis:(float)value :(NSInteger)type;
3391
+ - (void)setScrollBarWidth:(float)value;
3392
+ @property (nonatomic) enum MasonAlign align;
3393
+ @property (nonatomic) enum MasonTextAlign textAlign;
3394
+ @property (nonatomic) enum MasonBoxSizing boxSizing;
3395
+ @property (nonatomic, strong) MasonDimensionSizeCompat * _Nonnull minSizeCompat;
3396
+ - (void)setMinSizeWidth:(float)value :(NSInteger)type;
3397
+ - (void)setMinSizeHeight:(float)value :(NSInteger)type;
3398
+ - (void)setMinSizeWidthHeight:(float)value :(NSInteger)type;
3399
+ @property (nonatomic, strong) MasonDimensionSizeCompat * _Nonnull sizeCompat;
3400
+ @property (nonatomic, strong) MasonDimensionCompat * _Nonnull sizeCompatWidth;
3401
+ @property (nonatomic, strong) MasonDimensionCompat * _Nonnull sizeCompatHeight;
3402
+ - (void)setSizeWidth:(float)value :(NSInteger)type;
3403
+ - (void)setSizeHeight:(float)value :(NSInteger)type;
3404
+ - (void)setSizeWidthHeight:(float)value :(NSInteger)type;
3405
+ - (void)setSizePoints:(float)width :(float)height;
3406
+ @property (nonatomic, strong) MasonDimensionSizeCompat * _Nonnull maxSizeCompat;
3407
+ - (void)setMaxSizeWidth:(float)value :(NSInteger)type;
3408
+ - (void)setMaxSizeHeight:(float)value :(NSInteger)type;
3409
+ - (void)setMaxSizeWidthHeight:(float)value :(NSInteger)type;
3410
+ @property (nonatomic, strong) MasonLengthPercentageSizeCompat * _Nonnull gapCompat;
3411
+ - (void)setGapRow:(float)value :(NSInteger)type;
3412
+ - (void)setGapColumn:(float)value :(NSInteger)type;
3413
+ - (void)setRowGap:(float)value :(NSInteger)type;
3414
+ - (void)setColumnGap:(float)value :(NSInteger)type;
3415
+ @property (nonatomic, copy) NSString * _Nonnull gridArea;
3416
+ @property (nonatomic, copy) NSString * _Nonnull gridTemplateAreas;
3417
+ @property (nonatomic, copy) NSString * _Nonnull transform;
3418
+ @property (nonatomic, copy) NSString * _Nonnull gridAutoRows;
3419
+ @property (nonatomic, copy) NSString * _Nonnull gridAutoColumns;
3420
+ @property (nonatomic) enum MasonGridAutoFlowWrap gridAutoFlow;
3421
+ @property (nonatomic, copy) NSString * _Nonnull gridColumn;
3422
+ @property (nonatomic, copy) NSString * _Nonnull gridColumnStart;
3423
+ @property (nonatomic, copy) NSString * _Nonnull gridColumnEnd;
3424
+ @property (nonatomic, copy) NSString * _Nonnull gridRow;
3425
+ @property (nonatomic, copy) NSString * _Nonnull gridRowStart;
3426
+ @property (nonatomic, copy) NSString * _Nonnull gridRowEnd;
3427
+ @property (nonatomic, copy) NSString * _Nonnull gridTemplateRows;
3428
+ @property (nonatomic, copy) NSString * _Nonnull gridTemplateColumns;
3429
+ @property (nonatomic, copy) NSString * _Nonnull borderImage;
3430
+ @property (nonatomic, copy) NSString * _Nonnull backdropFilter;
3431
+ @property (nonatomic, copy) NSString * _Nonnull fontFeatureSettings;
3432
+ - (void)updateNativeStyle;
3433
+ @property (nonatomic, readonly, copy) NSString * _Nonnull description;
3434
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
3435
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3436
+ @end
3437
+
3438
+ SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextType)
3439
+ SWIFT_CLASS_NAMED("MasonText")
3440
+ @interface MasonText : UIView <MasonElementObjc, MasonTextContainer>
3441
+ @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
3442
+ @property (nonatomic, readonly) enum MasonTextType type;
3443
+ @property (nonatomic, strong) MasonTextEngine * _Nonnull engine;
3444
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layerClass;)
3445
+ + (Class _Nonnull)layerClass SWIFT_WARN_UNUSED_RESULT;
3446
+ @property (nonatomic, readonly, strong) NSMutableData * _Nonnull textValues;
3447
+ - (void)onStyleChange:(uint64_t)low :(uint64_t)high;
3448
+ @property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
3449
+ @property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
3450
+ - (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason type:(enum MasonTextType)textType OBJC_DESIGNATED_INITIALIZER;
3451
+ - (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason OBJC_DESIGNATED_INITIALIZER;
3452
+ - (void)setNeedsDisplay;
3453
+ - (void)didMoveToWindow;
3454
+ - (void)requestLayout;
3455
+ - (void)layoutSubviews;
3456
+ - (void)addView:(UIView * _Nonnull)view;
3457
+ - (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
3458
+ - (void)removeView:(UIView * _Nonnull)view;
3459
+ - (void)removeViewAt:(NSInteger)index;
3460
+ - (void)removeAllViews;
3461
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
3462
+ @property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
3463
+ @property (nonatomic) uint32_t color;
3464
+ - (void)setColorWithUi:(UIColor * _Nonnull)color;
3465
+ @property (nonatomic) uint32_t backgroundColorValue;
3466
+ - (void)setBackgroundColorWithUi:(UIColor * _Nonnull)color;
3467
+ @property (nonatomic) uint32_t decorationColor;
3468
+ - (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
3469
+ @property (nonatomic) enum MasonDecorationLine decorationLine;
3470
+ @property (nonatomic) int32_t fontSize;
3471
+ @property (nonatomic) enum MasonFontStyle fontStyle;
3472
+ - (void)setFontStyle:(enum MasonFontStyle)style slant:(int32_t)slant;
3473
+ @property (nonatomic, copy) NSString * _Nonnull fontWeight;
3474
+ @property (nonatomic) enum MasonTextTransform textTransform;
3475
+ @property (nonatomic) enum MasonWhiteSpace whiteSpace;
3476
+ @property (nonatomic) enum MasonTextWrap textWrap;
3477
+ @property (nonatomic) float lineHeight;
3478
+ /// Text content - sets or gets the concatenated text from all text nodes
3479
+ @property (nonatomic, copy) NSString * _Nonnull textContent;
3480
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
3481
+ @end
3482
+
3483
+ @interface MasonText (SWIFT_EXTENSION(Mason))
3484
+ - (void)addChild:(MasonNode * _Nonnull)child;
3485
+ @end
3486
+
3487
+ @interface MasonText (SWIFT_EXTENSION(Mason))
3488
+ /// Remove child from text container
3489
+ - (MasonNode * _Nullable)removeChild:(MasonNode * _Nonnull)child;
3490
+ @end
3491
+
3492
+ @class NSTextContainer;
3493
+ @class NSAttributedString;
3494
+ @class UIFont;
3495
+ @class UITextPosition;
3496
+ SWIFT_CLASS_NAMED("MasonTextInput")
3497
+ @interface MasonTextInput : UITextView <UITextViewDelegate>
3498
+ - (nonnull instancetype)initWithFrame:(CGRect)frame textContainer:(NSTextContainer * _Nullable)textContainer SWIFT_UNAVAILABLE;
3499
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
3500
+ @property (nonatomic, copy) NSString * _Nullable placeholder;
3501
+ @property (nonatomic, copy) NSString * _Null_unspecified text;
3502
+ @property (nonatomic, strong) NSAttributedString * _Null_unspecified attributedText;
3503
+ @property (nonatomic, strong) UIFont * _Nullable font;
3504
+ @property (nonatomic) NSTextAlignment textAlignment;
3505
+ - (void)layoutSubviews;
3506
+ - (void)textViewDidChange:(UITextView * _Nonnull)textView;
3507
+ - (void)textViewDidBeginEditing:(UITextView * _Nonnull)textView;
3508
+ - (void)textViewDidEndEditing:(UITextView * _Nonnull)textView;
3509
+ - (void)paste:(id _Nullable)sender;
3510
+ - (void)cut:(id _Nullable)sender;
3511
+ - (BOOL)textView:(UITextView * _Nonnull)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString * _Nonnull)text SWIFT_WARN_UNUSED_RESULT;
3512
+ - (CGRect)caretRectForPosition:(UITextPosition * _Nonnull)position SWIFT_WARN_UNUSED_RESULT;
3513
+ @end
3514
+
3515
+ SWIFT_CLASS_NAMED("MasonTextArea")
3516
+ @interface MasonTextArea : MasonTextInput <MasonElementObjc>
3517
+ @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
3518
+ @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
3519
+ @property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
3520
+ @property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
3521
+ @property (nonatomic) NSInteger rows;
3522
+ @property (nonatomic) NSInteger cols;
3523
+ @property (nonatomic, copy) NSString * _Nonnull name;
3524
+ @property (nonatomic) NSInteger maxLength;
3525
+ @property (nonatomic, copy) NSString * _Nonnull value;
3526
+ - (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc OBJC_DESIGNATED_INITIALIZER;
3527
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
3528
+ - (void)drawRect:(CGRect)rect;
3529
+ - (void)layoutSubviews;
3530
+ - (void)textViewDidChange:(UITextView * _Nonnull)textView;
3531
+ - (void)onStyleChange:(uint64_t)low :(uint64_t)high;
3532
+ - (BOOL)textView:(UITextView * _Nonnull)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString * _Nonnull)text SWIFT_WARN_UNUSED_RESULT;
3533
+ @end
3534
+
3535
+ SWIFT_CLASS("_TtC5Mason14MasonTextLayer")
3536
+ @interface MasonTextLayer : CALayer
3537
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3538
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
3539
+ - (nonnull instancetype)initWithLayer:(id _Nonnull)layer OBJC_DESIGNATED_INITIALIZER;
3540
+ - (void)drawInContext:(CGContextRef _Nonnull)context;
3541
+ @end
3542
+
3543
+ SWIFT_CLASS_NAMED("MasonTextNode")
3544
+ @interface MasonTextNode : MasonNode <MasonCharacterData>
3545
+ @property (nonatomic, copy) NSString * _Nonnull data;
3546
+ - (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc data:(NSString * _Nonnull)text attributes:(NSDictionary<NSAttributedStringKey, id> * _Nullable)attrs OBJC_DESIGNATED_INITIALIZER;
3547
+ - (void)appendChild:(MasonNode * _Nonnull)child;
3548
+ @property (nonatomic, readonly) NSInteger length;
3549
+ - (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
3550
+ - (nonnull instancetype)appendData:(NSString * _Nonnull)s;
3551
+ - (nonnull instancetype)insertData:(NSString * _Nonnull)s at:(NSInteger)offset;
3552
+ - (nonnull instancetype)deleteDataWithOffset:(NSInteger)offset count:(NSInteger)count;
3553
+ - (nonnull instancetype)replaceDataWithOffset:(NSInteger)offset count:(NSInteger)count with:(NSString * _Nonnull)s;
3554
+ - (nonnull instancetype)deleteDataWithRange:(NSRange)range;
3555
+ - (nonnull instancetype)replaceDataWithRange:(NSRange)range with:(NSString * _Nonnull)s;
3556
+ - (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes SWIFT_UNAVAILABLE;
3557
+ @end
3558
+
3559
+ @interface MasonTextNode (SWIFT_EXTENSION(Mason))
3560
+ /// Get attributed string representation of this text node
3561
+ - (NSAttributedString * _Nonnull)attributed SWIFT_WARN_UNUSED_RESULT;
3562
+ @end
3563
+
3564
+ typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextType, "MasonTextType", open) {
3565
+ MasonTextTypeNone = 0,
3566
+ MasonTextTypeP = 1,
3567
+ MasonTextTypeSpan = 2,
3568
+ MasonTextTypeCode = 3,
3569
+ MasonTextTypeH1 = 4,
3570
+ MasonTextTypeH2 = 5,
3571
+ MasonTextTypeH3 = 6,
3572
+ MasonTextTypeH4 = 7,
3573
+ MasonTextTypeH5 = 8,
3574
+ MasonTextTypeH6 = 9,
3575
+ MasonTextTypeLi = 10,
3576
+ MasonTextTypeBlockquote = 11,
3577
+ MasonTextTypeB = 12,
3578
+ MasonTextTypePre = 13,
3579
+ MasonTextTypeStrong = 14,
3580
+ MasonTextTypeEm = 15,
3581
+ MasonTextTypeI = 16,
3582
+ MasonTextTypeA = 17,
3583
+ };
3584
+
3585
+ SWIFT_CLASS_NAMED("MasonUIView")
3586
+ @interface MasonUIView : UIView <MasonElementObjc>
3587
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layerClass;)
3588
+ + (Class _Nonnull)layerClass SWIFT_WARN_UNUSED_RESULT;
1544
3589
  - (void)drawRect:(CGRect)rect;
1545
3590
  @property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
1546
3591
  @property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
@@ -1551,6 +3596,7 @@ SWIFT_CLASS_NAMED("MasonUIView")
1551
3596
  @property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
1552
3597
  - (void)markNodeDirty;
1553
3598
  - (BOOL)isNodeDirty SWIFT_WARN_UNUSED_RESULT;
3599
+ @property (nonatomic) CGRect frame;
1554
3600
  - (void)layoutSubviews;
1555
3601
  - (void)willMoveToWindow:(UIWindow * _Nullable)newWindow;
1556
3602
  - (void)willMoveToSuperview:(UIView * _Nullable)newSuperview;