@triniwiz/nativescript-masonkit 1.0.0-alpha.15 → 1.0.0-alpha.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common.d.ts +19 -14
- package/common.js +111 -17
- package/common.js.map +1 -1
- package/helpers.js +0 -1
- package/helpers.js.map +1 -1
- package/index.android.d.ts +17 -1
- package/index.android.js +49 -4
- package/index.android.js.map +1 -1
- package/index.d.ts +2 -0
- package/index.ios.d.ts +17 -1
- package/index.ios.js +48 -4
- package/index.ios.js.map +1 -1
- package/package.json +1 -1
- package/platforms/android/masonkit-release.aar +0 -0
- package/platforms/ios/Mason.xcframework/Info.plist +5 -5
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +98 -5
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +6463 -2294
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +141 -11
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +141 -11
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +2362 -1979
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +196 -10
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +6463 -2294
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +141 -11
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +141 -11
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +6463 -2294
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +141 -11
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +141 -11
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +22 -22
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +2362 -1979
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +2299 -1929
- package/web.d.ts +55 -0
- package/web.js +189 -0
- package/web.js.map +1 -0
|
@@ -281,6 +281,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
281
281
|
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
282
282
|
#endif
|
|
283
283
|
@import CoreFoundation;
|
|
284
|
+
@import CoreGraphics;
|
|
284
285
|
@import Foundation;
|
|
285
286
|
@import ObjectiveC;
|
|
286
287
|
@import UIKit;
|
|
@@ -751,9 +752,9 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
751
752
|
@end
|
|
752
753
|
|
|
753
754
|
enum MasonTextType : NSInteger;
|
|
755
|
+
@class NSCFontFace;
|
|
754
756
|
@class NSCoder;
|
|
755
757
|
@class NSMutableAttributedString;
|
|
756
|
-
@class UIFont;
|
|
757
758
|
enum TextTransform : NSInteger;
|
|
758
759
|
@class UIColor;
|
|
759
760
|
enum WhiteSpace : NSInteger;
|
|
@@ -765,6 +766,7 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
765
766
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
766
767
|
@property (nonatomic, readonly, copy) NSData * _Nonnull textValues;
|
|
767
768
|
@property (nonatomic, readonly) enum MasonTextType type;
|
|
769
|
+
@property (nonatomic, readonly, strong) NSCFontFace * _Nonnull font;
|
|
768
770
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason type:(enum MasonTextType)textType OBJC_DESIGNATED_INITIALIZER;
|
|
769
771
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason OBJC_DESIGNATED_INITIALIZER;
|
|
770
772
|
- (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)masonNode OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -776,7 +778,6 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
776
778
|
- (void)configure:(SWIFT_NOESCAPE void (^ _Nonnull)(MasonNode * _Nonnull))block;
|
|
777
779
|
- (void)updateText:(NSString * _Nullable)value;
|
|
778
780
|
@property (nonatomic, strong) NSMutableAttributedString * _Nonnull txtToRender;
|
|
779
|
-
@property (nonatomic, readonly, strong) UIFont * _Nonnull font;
|
|
780
781
|
- (void)invalidateStyle:(int64_t)state;
|
|
781
782
|
@property (nonatomic) enum TextTransform textTransform;
|
|
782
783
|
@property (nonatomic) CGFloat fontSize;
|
|
@@ -838,10 +839,8 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
838
839
|
+ (MasonUIView * _Nonnull)createGridView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
839
840
|
+ (MasonUIView * _Nonnull)createFlexView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
840
841
|
+ (MasonUIView * _Nonnull)createBlockView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
841
|
-
@property (nonatomic, readonly) int64_t masonPtr;
|
|
842
|
-
@property (nonatomic, readonly) int64_t masonNodePtr;
|
|
843
|
-
@property (nonatomic, readonly, copy) NSString * _Nonnull masonPtrs;
|
|
844
842
|
@property (nonatomic, strong) MasonStyle * _Nonnull style;
|
|
843
|
+
- (void)requestLayout;
|
|
845
844
|
- (void)addView:(UIView * _Nonnull)view;
|
|
846
845
|
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
847
846
|
- (void)syncStyle:(NSString * _Nonnull)state;
|
|
@@ -1011,6 +1010,99 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing *
|
|
|
1011
1010
|
@end
|
|
1012
1011
|
|
|
1013
1012
|
|
|
1013
|
+
SWIFT_CLASS_NAMED("NSCFontDescriptors")
|
|
1014
|
+
@interface NSCFontDescriptors : NSObject
|
|
1015
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
|
|
1016
|
+
- (void)update:(NSString * _Nonnull)value;
|
|
1017
|
+
- (void)setFontWeight:(NSString * _Nonnull)value;
|
|
1018
|
+
- (void)setFontStyle:(NSString * _Nonnull)value;
|
|
1019
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1020
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1021
|
+
@end
|
|
1022
|
+
|
|
1023
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontDisplay, "NSCFontDisplay", open) {
|
|
1024
|
+
NSCFontDisplayAuto = 0,
|
|
1025
|
+
NSCFontDisplayBlock = 1,
|
|
1026
|
+
NSCFontDisplayFallback = 2,
|
|
1027
|
+
NSCFontDisplayOptional = 3,
|
|
1028
|
+
NSCFontDisplaySwap = 4,
|
|
1029
|
+
};
|
|
1030
|
+
|
|
1031
|
+
enum NSCFontFaceStatus : NSInteger;
|
|
1032
|
+
enum NSCFontWeight : NSInteger;
|
|
1033
|
+
|
|
1034
|
+
SWIFT_CLASS_NAMED("NSCFontFace")
|
|
1035
|
+
@interface NSCFontFace : NSObject
|
|
1036
|
+
@property (nonatomic, readonly) CGFontRef _Nullable font;
|
|
1037
|
+
@property (nonatomic, readonly, strong) NSData * _Nullable fontData;
|
|
1038
|
+
- (void)updateDescriptorWithValue:(NSString * _Nonnull)value;
|
|
1039
|
+
+ (NSCFontFace * _Nullable)loadFromStyleWithStyle:(NSString * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
1040
|
+
+ (void)importFromRemoteWithUrl:(NSString * _Nonnull)url load:(BOOL)load callback:(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nullable, NSString * _Nullable))callback;
|
|
1041
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
|
|
1042
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family source:(NSString * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
|
|
1043
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family data:(NSData * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
|
|
1044
|
+
- (nonnull instancetype)init:(NSString * _Nonnull)family :(NSString * _Nullable)source :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
|
|
1045
|
+
- (nonnull instancetype)init:(NSString * _Nonnull)family data:(NSData * _Nullable)data :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
|
|
1046
|
+
@property (nonatomic) enum NSCFontFaceStatus status;
|
|
1047
|
+
@property (nonatomic) enum NSCFontDisplay display;
|
|
1048
|
+
- (void)setFontDisplayWithValue:(NSString * _Nonnull)value;
|
|
1049
|
+
@property (nonatomic, copy) NSString * _Nonnull style;
|
|
1050
|
+
- (void)setFontStyleWithValue:(NSString * _Nonnull)value angle:(NSString * _Nullable)angle;
|
|
1051
|
+
@property (nonatomic) enum NSCFontWeight weight;
|
|
1052
|
+
- (void)setFontWeightWithValue:(NSString * _Nonnull)value;
|
|
1053
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull family;
|
|
1054
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull ascentOverride;
|
|
1055
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull descentOverride;
|
|
1056
|
+
- (void)load:(void (^ _Nonnull)(NSString * _Nullable))callback;
|
|
1057
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1058
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1059
|
+
@end
|
|
1060
|
+
|
|
1061
|
+
enum NSCFontFaceSetStatus : NSInteger;
|
|
1062
|
+
@class NSEnumerator;
|
|
1063
|
+
|
|
1064
|
+
SWIFT_CLASS_NAMED("NSCFontFaceSet")
|
|
1065
|
+
@interface NSCFontFaceSet : NSObject
|
|
1066
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSCFontFaceSet * _Nonnull instance;)
|
|
1067
|
+
+ (NSCFontFaceSet * _Nonnull)instance SWIFT_WARN_UNUSED_RESULT;
|
|
1068
|
+
@property (nonatomic) enum NSCFontFaceSetStatus status;
|
|
1069
|
+
@property (nonatomic, copy) void (^ _Nullable onStatus)(enum NSCFontFaceSetStatus);
|
|
1070
|
+
- (NSEnumerator * _Nonnull)iter SWIFT_WARN_UNUSED_RESULT;
|
|
1071
|
+
- (NSArray * _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
|
|
1072
|
+
- (void)add:(NSCFontFace * _Nonnull)font;
|
|
1073
|
+
- (void)clear;
|
|
1074
|
+
- (void)delete:(NSCFontFace * _Nonnull)font;
|
|
1075
|
+
- (BOOL)check:(NSString * _Nonnull)font :(NSString * _Nullable)text SWIFT_WARN_UNUSED_RESULT;
|
|
1076
|
+
- (void)load:(NSString * _Nonnull)font :(NSString * _Nullable)text :(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nonnull, NSString * _Nullable))callback;
|
|
1077
|
+
@property (nonatomic, readonly) NSInteger size;
|
|
1078
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1079
|
+
@end
|
|
1080
|
+
|
|
1081
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceSetStatus, "NSCFontFaceSetStatus", open) {
|
|
1082
|
+
NSCFontFaceSetStatusLoading = 0,
|
|
1083
|
+
NSCFontFaceSetStatusLoaded = 1,
|
|
1084
|
+
};
|
|
1085
|
+
|
|
1086
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceStatus, "NSCFontFaceStatus", open) {
|
|
1087
|
+
NSCFontFaceStatusUnloaded = 0,
|
|
1088
|
+
NSCFontFaceStatusLoading = 1,
|
|
1089
|
+
NSCFontFaceStatusLoaded = 2,
|
|
1090
|
+
NSCFontFaceStatusError = 3,
|
|
1091
|
+
};
|
|
1092
|
+
|
|
1093
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontWeight, "NSCFontWeight", open) {
|
|
1094
|
+
NSCFontWeightThin = 0,
|
|
1095
|
+
NSCFontWeightExtraLight = 1,
|
|
1096
|
+
NSCFontWeightLight = 2,
|
|
1097
|
+
NSCFontWeightNormal = 3,
|
|
1098
|
+
NSCFontWeightMedium = 4,
|
|
1099
|
+
NSCFontWeightSemiBold = 5,
|
|
1100
|
+
NSCFontWeightBold = 6,
|
|
1101
|
+
NSCFontWeightExtraBold = 7,
|
|
1102
|
+
NSCFontWeightBlack = 8,
|
|
1103
|
+
};
|
|
1104
|
+
|
|
1105
|
+
|
|
1014
1106
|
SWIFT_CLASS_NAMED("NSCMason")
|
|
1015
1107
|
@interface NSCMason : NSObject
|
|
1016
1108
|
@property (nonatomic, readonly) void * _Nullable nativePtr;
|
|
@@ -1073,6 +1165,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, WhiteSpace, "WhiteSpace", open) {
|
|
|
1073
1165
|
WhiteSpacePre = 1,
|
|
1074
1166
|
WhiteSpacePreWrap = 2,
|
|
1075
1167
|
WhiteSpacePreLine = 3,
|
|
1168
|
+
WhiteSpaceNowrap = 4,
|
|
1076
1169
|
};
|
|
1077
1170
|
|
|
1078
1171
|
#endif
|
|
@@ -1366,6 +1459,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
1366
1459
|
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
1367
1460
|
#endif
|
|
1368
1461
|
@import CoreFoundation;
|
|
1462
|
+
@import CoreGraphics;
|
|
1369
1463
|
@import Foundation;
|
|
1370
1464
|
@import ObjectiveC;
|
|
1371
1465
|
@import UIKit;
|
|
@@ -1836,9 +1930,9 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
1836
1930
|
@end
|
|
1837
1931
|
|
|
1838
1932
|
enum MasonTextType : NSInteger;
|
|
1933
|
+
@class NSCFontFace;
|
|
1839
1934
|
@class NSCoder;
|
|
1840
1935
|
@class NSMutableAttributedString;
|
|
1841
|
-
@class UIFont;
|
|
1842
1936
|
enum TextTransform : NSInteger;
|
|
1843
1937
|
@class UIColor;
|
|
1844
1938
|
enum WhiteSpace : NSInteger;
|
|
@@ -1850,6 +1944,7 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
1850
1944
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
1851
1945
|
@property (nonatomic, readonly, copy) NSData * _Nonnull textValues;
|
|
1852
1946
|
@property (nonatomic, readonly) enum MasonTextType type;
|
|
1947
|
+
@property (nonatomic, readonly, strong) NSCFontFace * _Nonnull font;
|
|
1853
1948
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason type:(enum MasonTextType)textType OBJC_DESIGNATED_INITIALIZER;
|
|
1854
1949
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason OBJC_DESIGNATED_INITIALIZER;
|
|
1855
1950
|
- (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)masonNode OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -1861,7 +1956,6 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
1861
1956
|
- (void)configure:(SWIFT_NOESCAPE void (^ _Nonnull)(MasonNode * _Nonnull))block;
|
|
1862
1957
|
- (void)updateText:(NSString * _Nullable)value;
|
|
1863
1958
|
@property (nonatomic, strong) NSMutableAttributedString * _Nonnull txtToRender;
|
|
1864
|
-
@property (nonatomic, readonly, strong) UIFont * _Nonnull font;
|
|
1865
1959
|
- (void)invalidateStyle:(int64_t)state;
|
|
1866
1960
|
@property (nonatomic) enum TextTransform textTransform;
|
|
1867
1961
|
@property (nonatomic) CGFloat fontSize;
|
|
@@ -1923,10 +2017,8 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
1923
2017
|
+ (MasonUIView * _Nonnull)createGridView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
1924
2018
|
+ (MasonUIView * _Nonnull)createFlexView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
1925
2019
|
+ (MasonUIView * _Nonnull)createBlockView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
1926
|
-
@property (nonatomic, readonly) int64_t masonPtr;
|
|
1927
|
-
@property (nonatomic, readonly) int64_t masonNodePtr;
|
|
1928
|
-
@property (nonatomic, readonly, copy) NSString * _Nonnull masonPtrs;
|
|
1929
2020
|
@property (nonatomic, strong) MasonStyle * _Nonnull style;
|
|
2021
|
+
- (void)requestLayout;
|
|
1930
2022
|
- (void)addView:(UIView * _Nonnull)view;
|
|
1931
2023
|
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
1932
2024
|
- (void)syncStyle:(NSString * _Nonnull)state;
|
|
@@ -2096,6 +2188,99 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing *
|
|
|
2096
2188
|
@end
|
|
2097
2189
|
|
|
2098
2190
|
|
|
2191
|
+
SWIFT_CLASS_NAMED("NSCFontDescriptors")
|
|
2192
|
+
@interface NSCFontDescriptors : NSObject
|
|
2193
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
|
|
2194
|
+
- (void)update:(NSString * _Nonnull)value;
|
|
2195
|
+
- (void)setFontWeight:(NSString * _Nonnull)value;
|
|
2196
|
+
- (void)setFontStyle:(NSString * _Nonnull)value;
|
|
2197
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2198
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2199
|
+
@end
|
|
2200
|
+
|
|
2201
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontDisplay, "NSCFontDisplay", open) {
|
|
2202
|
+
NSCFontDisplayAuto = 0,
|
|
2203
|
+
NSCFontDisplayBlock = 1,
|
|
2204
|
+
NSCFontDisplayFallback = 2,
|
|
2205
|
+
NSCFontDisplayOptional = 3,
|
|
2206
|
+
NSCFontDisplaySwap = 4,
|
|
2207
|
+
};
|
|
2208
|
+
|
|
2209
|
+
enum NSCFontFaceStatus : NSInteger;
|
|
2210
|
+
enum NSCFontWeight : NSInteger;
|
|
2211
|
+
|
|
2212
|
+
SWIFT_CLASS_NAMED("NSCFontFace")
|
|
2213
|
+
@interface NSCFontFace : NSObject
|
|
2214
|
+
@property (nonatomic, readonly) CGFontRef _Nullable font;
|
|
2215
|
+
@property (nonatomic, readonly, strong) NSData * _Nullable fontData;
|
|
2216
|
+
- (void)updateDescriptorWithValue:(NSString * _Nonnull)value;
|
|
2217
|
+
+ (NSCFontFace * _Nullable)loadFromStyleWithStyle:(NSString * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
2218
|
+
+ (void)importFromRemoteWithUrl:(NSString * _Nonnull)url load:(BOOL)load callback:(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nullable, NSString * _Nullable))callback;
|
|
2219
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
|
|
2220
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family source:(NSString * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
|
|
2221
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family data:(NSData * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
|
|
2222
|
+
- (nonnull instancetype)init:(NSString * _Nonnull)family :(NSString * _Nullable)source :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
|
|
2223
|
+
- (nonnull instancetype)init:(NSString * _Nonnull)family data:(NSData * _Nullable)data :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
|
|
2224
|
+
@property (nonatomic) enum NSCFontFaceStatus status;
|
|
2225
|
+
@property (nonatomic) enum NSCFontDisplay display;
|
|
2226
|
+
- (void)setFontDisplayWithValue:(NSString * _Nonnull)value;
|
|
2227
|
+
@property (nonatomic, copy) NSString * _Nonnull style;
|
|
2228
|
+
- (void)setFontStyleWithValue:(NSString * _Nonnull)value angle:(NSString * _Nullable)angle;
|
|
2229
|
+
@property (nonatomic) enum NSCFontWeight weight;
|
|
2230
|
+
- (void)setFontWeightWithValue:(NSString * _Nonnull)value;
|
|
2231
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull family;
|
|
2232
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull ascentOverride;
|
|
2233
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull descentOverride;
|
|
2234
|
+
- (void)load:(void (^ _Nonnull)(NSString * _Nullable))callback;
|
|
2235
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2236
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2237
|
+
@end
|
|
2238
|
+
|
|
2239
|
+
enum NSCFontFaceSetStatus : NSInteger;
|
|
2240
|
+
@class NSEnumerator;
|
|
2241
|
+
|
|
2242
|
+
SWIFT_CLASS_NAMED("NSCFontFaceSet")
|
|
2243
|
+
@interface NSCFontFaceSet : NSObject
|
|
2244
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSCFontFaceSet * _Nonnull instance;)
|
|
2245
|
+
+ (NSCFontFaceSet * _Nonnull)instance SWIFT_WARN_UNUSED_RESULT;
|
|
2246
|
+
@property (nonatomic) enum NSCFontFaceSetStatus status;
|
|
2247
|
+
@property (nonatomic, copy) void (^ _Nullable onStatus)(enum NSCFontFaceSetStatus);
|
|
2248
|
+
- (NSEnumerator * _Nonnull)iter SWIFT_WARN_UNUSED_RESULT;
|
|
2249
|
+
- (NSArray * _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
|
|
2250
|
+
- (void)add:(NSCFontFace * _Nonnull)font;
|
|
2251
|
+
- (void)clear;
|
|
2252
|
+
- (void)delete:(NSCFontFace * _Nonnull)font;
|
|
2253
|
+
- (BOOL)check:(NSString * _Nonnull)font :(NSString * _Nullable)text SWIFT_WARN_UNUSED_RESULT;
|
|
2254
|
+
- (void)load:(NSString * _Nonnull)font :(NSString * _Nullable)text :(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nonnull, NSString * _Nullable))callback;
|
|
2255
|
+
@property (nonatomic, readonly) NSInteger size;
|
|
2256
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
2257
|
+
@end
|
|
2258
|
+
|
|
2259
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceSetStatus, "NSCFontFaceSetStatus", open) {
|
|
2260
|
+
NSCFontFaceSetStatusLoading = 0,
|
|
2261
|
+
NSCFontFaceSetStatusLoaded = 1,
|
|
2262
|
+
};
|
|
2263
|
+
|
|
2264
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceStatus, "NSCFontFaceStatus", open) {
|
|
2265
|
+
NSCFontFaceStatusUnloaded = 0,
|
|
2266
|
+
NSCFontFaceStatusLoading = 1,
|
|
2267
|
+
NSCFontFaceStatusLoaded = 2,
|
|
2268
|
+
NSCFontFaceStatusError = 3,
|
|
2269
|
+
};
|
|
2270
|
+
|
|
2271
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontWeight, "NSCFontWeight", open) {
|
|
2272
|
+
NSCFontWeightThin = 0,
|
|
2273
|
+
NSCFontWeightExtraLight = 1,
|
|
2274
|
+
NSCFontWeightLight = 2,
|
|
2275
|
+
NSCFontWeightNormal = 3,
|
|
2276
|
+
NSCFontWeightMedium = 4,
|
|
2277
|
+
NSCFontWeightSemiBold = 5,
|
|
2278
|
+
NSCFontWeightBold = 6,
|
|
2279
|
+
NSCFontWeightExtraBold = 7,
|
|
2280
|
+
NSCFontWeightBlack = 8,
|
|
2281
|
+
};
|
|
2282
|
+
|
|
2283
|
+
|
|
2099
2284
|
SWIFT_CLASS_NAMED("NSCMason")
|
|
2100
2285
|
@interface NSCMason : NSObject
|
|
2101
2286
|
@property (nonatomic, readonly) void * _Nullable nativePtr;
|
|
@@ -2158,6 +2343,7 @@ typedef SWIFT_ENUM_NAMED(NSInteger, WhiteSpace, "WhiteSpace", open) {
|
|
|
2158
2343
|
WhiteSpacePre = 1,
|
|
2159
2344
|
WhiteSpacePreWrap = 2,
|
|
2160
2345
|
WhiteSpacePreLine = 3,
|
|
2346
|
+
WhiteSpaceNowrap = 4,
|
|
2161
2347
|
};
|
|
2162
2348
|
|
|
2163
2349
|
#endif
|
|
Binary file
|
|
Binary file
|