@triniwiz/nativescript-masonkit 1.0.0-alpha.15 → 1.0.0-alpha.16
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 +84 -6
- 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 +97 -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 +4574 -791
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +129 -12
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +129 -12
- 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 +2260 -1979
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +194 -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 +4574 -791
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +129 -12
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +129 -12
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +4574 -791
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +129 -12
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +129 -12
- 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 +2260 -1979
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +2198 -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;
|
|
@@ -1366,6 +1458,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
1366
1458
|
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
1367
1459
|
#endif
|
|
1368
1460
|
@import CoreFoundation;
|
|
1461
|
+
@import CoreGraphics;
|
|
1369
1462
|
@import Foundation;
|
|
1370
1463
|
@import ObjectiveC;
|
|
1371
1464
|
@import UIKit;
|
|
@@ -1836,9 +1929,9 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
1836
1929
|
@end
|
|
1837
1930
|
|
|
1838
1931
|
enum MasonTextType : NSInteger;
|
|
1932
|
+
@class NSCFontFace;
|
|
1839
1933
|
@class NSCoder;
|
|
1840
1934
|
@class NSMutableAttributedString;
|
|
1841
|
-
@class UIFont;
|
|
1842
1935
|
enum TextTransform : NSInteger;
|
|
1843
1936
|
@class UIColor;
|
|
1844
1937
|
enum WhiteSpace : NSInteger;
|
|
@@ -1850,6 +1943,7 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
1850
1943
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
1851
1944
|
@property (nonatomic, readonly, copy) NSData * _Nonnull textValues;
|
|
1852
1945
|
@property (nonatomic, readonly) enum MasonTextType type;
|
|
1946
|
+
@property (nonatomic, readonly, strong) NSCFontFace * _Nonnull font;
|
|
1853
1947
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason type:(enum MasonTextType)textType OBJC_DESIGNATED_INITIALIZER;
|
|
1854
1948
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason OBJC_DESIGNATED_INITIALIZER;
|
|
1855
1949
|
- (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)masonNode OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -1861,7 +1955,6 @@ SWIFT_CLASS_NAMED("MasonText")
|
|
|
1861
1955
|
- (void)configure:(SWIFT_NOESCAPE void (^ _Nonnull)(MasonNode * _Nonnull))block;
|
|
1862
1956
|
- (void)updateText:(NSString * _Nullable)value;
|
|
1863
1957
|
@property (nonatomic, strong) NSMutableAttributedString * _Nonnull txtToRender;
|
|
1864
|
-
@property (nonatomic, readonly, strong) UIFont * _Nonnull font;
|
|
1865
1958
|
- (void)invalidateStyle:(int64_t)state;
|
|
1866
1959
|
@property (nonatomic) enum TextTransform textTransform;
|
|
1867
1960
|
@property (nonatomic) CGFloat fontSize;
|
|
@@ -1923,10 +2016,8 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
1923
2016
|
+ (MasonUIView * _Nonnull)createGridView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
1924
2017
|
+ (MasonUIView * _Nonnull)createFlexView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
1925
2018
|
+ (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
2019
|
@property (nonatomic, strong) MasonStyle * _Nonnull style;
|
|
2020
|
+
- (void)requestLayout;
|
|
1930
2021
|
- (void)addView:(UIView * _Nonnull)view;
|
|
1931
2022
|
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
1932
2023
|
- (void)syncStyle:(NSString * _Nonnull)state;
|
|
@@ -2096,6 +2187,99 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing *
|
|
|
2096
2187
|
@end
|
|
2097
2188
|
|
|
2098
2189
|
|
|
2190
|
+
SWIFT_CLASS_NAMED("NSCFontDescriptors")
|
|
2191
|
+
@interface NSCFontDescriptors : NSObject
|
|
2192
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
|
|
2193
|
+
- (void)update:(NSString * _Nonnull)value;
|
|
2194
|
+
- (void)setFontWeight:(NSString * _Nonnull)value;
|
|
2195
|
+
- (void)setFontStyle:(NSString * _Nonnull)value;
|
|
2196
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2197
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2198
|
+
@end
|
|
2199
|
+
|
|
2200
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontDisplay, "NSCFontDisplay", open) {
|
|
2201
|
+
NSCFontDisplayAuto = 0,
|
|
2202
|
+
NSCFontDisplayBlock = 1,
|
|
2203
|
+
NSCFontDisplayFallback = 2,
|
|
2204
|
+
NSCFontDisplayOptional = 3,
|
|
2205
|
+
NSCFontDisplaySwap = 4,
|
|
2206
|
+
};
|
|
2207
|
+
|
|
2208
|
+
enum NSCFontFaceStatus : NSInteger;
|
|
2209
|
+
enum NSCFontWeight : NSInteger;
|
|
2210
|
+
|
|
2211
|
+
SWIFT_CLASS_NAMED("NSCFontFace")
|
|
2212
|
+
@interface NSCFontFace : NSObject
|
|
2213
|
+
@property (nonatomic, readonly) CGFontRef _Nullable font;
|
|
2214
|
+
@property (nonatomic, readonly, strong) NSData * _Nullable fontData;
|
|
2215
|
+
- (void)updateDescriptorWithValue:(NSString * _Nonnull)value;
|
|
2216
|
+
+ (NSCFontFace * _Nullable)loadFromStyleWithStyle:(NSString * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
2217
|
+
+ (void)importFromRemoteWithUrl:(NSString * _Nonnull)url load:(BOOL)load callback:(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nullable, NSString * _Nullable))callback;
|
|
2218
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
|
|
2219
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family source:(NSString * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
|
|
2220
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family data:(NSData * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
|
|
2221
|
+
- (nonnull instancetype)init:(NSString * _Nonnull)family :(NSString * _Nullable)source :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
|
|
2222
|
+
- (nonnull instancetype)init:(NSString * _Nonnull)family data:(NSData * _Nullable)data :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
|
|
2223
|
+
@property (nonatomic) enum NSCFontFaceStatus status;
|
|
2224
|
+
@property (nonatomic) enum NSCFontDisplay display;
|
|
2225
|
+
- (void)setFontDisplayWithValue:(NSString * _Nonnull)value;
|
|
2226
|
+
@property (nonatomic, copy) NSString * _Nonnull style;
|
|
2227
|
+
- (void)setFontStyleWithValue:(NSString * _Nonnull)value angle:(NSString * _Nullable)angle;
|
|
2228
|
+
@property (nonatomic) enum NSCFontWeight weight;
|
|
2229
|
+
- (void)setFontWeightWithValue:(NSString * _Nonnull)value;
|
|
2230
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull family;
|
|
2231
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull ascentOverride;
|
|
2232
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull descentOverride;
|
|
2233
|
+
- (void)load:(void (^ _Nonnull)(NSString * _Nullable))callback;
|
|
2234
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2235
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2236
|
+
@end
|
|
2237
|
+
|
|
2238
|
+
enum NSCFontFaceSetStatus : NSInteger;
|
|
2239
|
+
@class NSEnumerator;
|
|
2240
|
+
|
|
2241
|
+
SWIFT_CLASS_NAMED("NSCFontFaceSet")
|
|
2242
|
+
@interface NSCFontFaceSet : NSObject
|
|
2243
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSCFontFaceSet * _Nonnull instance;)
|
|
2244
|
+
+ (NSCFontFaceSet * _Nonnull)instance SWIFT_WARN_UNUSED_RESULT;
|
|
2245
|
+
@property (nonatomic) enum NSCFontFaceSetStatus status;
|
|
2246
|
+
@property (nonatomic, copy) void (^ _Nullable onStatus)(enum NSCFontFaceSetStatus);
|
|
2247
|
+
- (NSEnumerator * _Nonnull)iter SWIFT_WARN_UNUSED_RESULT;
|
|
2248
|
+
- (NSArray * _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
|
|
2249
|
+
- (void)add:(NSCFontFace * _Nonnull)font;
|
|
2250
|
+
- (void)clear;
|
|
2251
|
+
- (void)delete:(NSCFontFace * _Nonnull)font;
|
|
2252
|
+
- (BOOL)check:(NSString * _Nonnull)font :(NSString * _Nullable)text SWIFT_WARN_UNUSED_RESULT;
|
|
2253
|
+
- (void)load:(NSString * _Nonnull)font :(NSString * _Nullable)text :(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nonnull, NSString * _Nullable))callback;
|
|
2254
|
+
@property (nonatomic, readonly) NSInteger size;
|
|
2255
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
2256
|
+
@end
|
|
2257
|
+
|
|
2258
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceSetStatus, "NSCFontFaceSetStatus", open) {
|
|
2259
|
+
NSCFontFaceSetStatusLoading = 0,
|
|
2260
|
+
NSCFontFaceSetStatusLoaded = 1,
|
|
2261
|
+
};
|
|
2262
|
+
|
|
2263
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceStatus, "NSCFontFaceStatus", open) {
|
|
2264
|
+
NSCFontFaceStatusUnloaded = 0,
|
|
2265
|
+
NSCFontFaceStatusLoading = 1,
|
|
2266
|
+
NSCFontFaceStatusLoaded = 2,
|
|
2267
|
+
NSCFontFaceStatusError = 3,
|
|
2268
|
+
};
|
|
2269
|
+
|
|
2270
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontWeight, "NSCFontWeight", open) {
|
|
2271
|
+
NSCFontWeightThin = 0,
|
|
2272
|
+
NSCFontWeightExtraLight = 1,
|
|
2273
|
+
NSCFontWeightLight = 2,
|
|
2274
|
+
NSCFontWeightNormal = 3,
|
|
2275
|
+
NSCFontWeightMedium = 4,
|
|
2276
|
+
NSCFontWeightSemiBold = 5,
|
|
2277
|
+
NSCFontWeightBold = 6,
|
|
2278
|
+
NSCFontWeightExtraBold = 7,
|
|
2279
|
+
NSCFontWeightBlack = 8,
|
|
2280
|
+
};
|
|
2281
|
+
|
|
2282
|
+
|
|
2099
2283
|
SWIFT_CLASS_NAMED("NSCMason")
|
|
2100
2284
|
@interface NSCMason : NSObject
|
|
2101
2285
|
@property (nonatomic, readonly) void * _Nullable nativePtr;
|
|
Binary file
|
|
Binary file
|