@octane-xplat/nativescript-mason-core 0.0.1 → 1.0.0-beta.1
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/LICENSE +201 -0
- package/README.md +198 -2
- package/artifact-inventory.json +774 -0
- package/box-shadow.d.ts +10 -0
- package/box-shadow.js +48 -0
- package/common.d.ts +485 -0
- package/common.js +2659 -0
- package/css-colors.d.ts +17 -0
- package/css-colors.js +54 -0
- package/css-environment.d.ts +49 -0
- package/css-environment.js +309 -0
- package/css-filter.d.ts +17 -0
- package/css-filter.js +140 -0
- package/css-keyframes.d.ts +41 -0
- package/css-keyframes.js +437 -0
- package/css-math.d.ts +34 -0
- package/css-math.js +300 -0
- package/css-shorthands.d.ts +65 -0
- package/css-shorthands.js +673 -0
- package/css-transform.d.ts +6 -0
- package/css-transform.js +100 -0
- package/diagnostics.d.ts +51 -0
- package/diagnostics.js +52 -0
- package/display-density.d.ts +9 -0
- package/display-density.js +20 -0
- package/fonts.d.ts +20 -0
- package/fonts.js +88 -0
- package/foreign-layout.d.ts +6 -0
- package/foreign-layout.js +151 -0
- package/gradient-stops.d.ts +25 -0
- package/gradient-stops.js +112 -0
- package/index.android.d.ts +11 -0
- package/index.android.js +9 -0
- package/index.d.ts +12 -0
- package/index.ios.d.ts +11 -0
- package/index.ios.js +9 -0
- package/ios-host-README.md +124 -0
- package/layout-types.d.ts +192 -0
- package/mask.d.ts +54 -0
- package/mask.js +26 -0
- package/native-environment.android.d.ts +3 -0
- package/native-environment.android.js +69 -0
- package/native-environment.d.ts +3 -0
- package/native-environment.ios.d.ts +3 -0
- package/native-environment.ios.js +65 -0
- package/native-types-README.md +51 -0
- package/package.json +47 -6
- package/panel-helpers.d.ts +3 -0
- package/panel-helpers.js +8 -0
- package/platforms/android/MasonCore.aar +0 -0
- package/platforms/android/include.gradle +6 -0
- package/platforms/android/manifest.json +73 -0
- package/platforms/ios/FontManager.LICENSE +201 -0
- package/platforms/ios/MasonCore.xcframework/Info.plist +43 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Headers/Mason.h +25 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Headers/MasonCore-Swift.h +1739 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Headers/mason_native.h +601 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Info.plist +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/MasonCore +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Modules/MasonCore.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios.abi.json +100095 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios.private.swiftinterface +3174 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios.swiftinterface +3174 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Modules/module.modulemap +9 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/SDWebImage_SDWebImage.bundle/Info.plist +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/SDWebImage_SDWebImage.bundle/PrivacyInfo.xcprivacy +23 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Headers/Mason.h +25 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Headers/MasonCore-Swift.h +1739 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Headers/mason_native.h +601 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Info.plist +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/MasonCore +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Modules/MasonCore.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios-simulator.abi.json +100095 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +3174 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Modules/MasonCore.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3174 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/Modules/module.modulemap +9 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/SDWebImage_SDWebImage.bundle/Info.plist +0 -0
- package/platforms/ios/MasonCore.xcframework/ios-arm64-simulator/MasonCore.framework/SDWebImage_SDWebImage.bundle/PrivacyInfo.xcprivacy +23 -0
- package/platforms/ios/Package.resolved +24 -0
- package/platforms/ios/SDWebImage.LICENSE +20 -0
- package/platforms/ios/build.xcconfig +4 -0
- package/platforms/ios/device-manifest.json +213 -0
- package/platforms/ios/include/FontManager/NSCFontDescriptors.h +36 -0
- package/platforms/ios/include/FontManager/NSCFontFace.h +98 -0
- package/platforms/ios/include/FontManager/NSCFontFaceSet.h +73 -0
- package/platforms/ios/include/FontManager/NSCFontManagerUmbrella.h +7 -0
- package/platforms/ios/include/FontManager/NSCFontParser.h +22 -0
- package/platforms/ios/include/FontManager/NSCFontRegex.h +4 -0
- package/platforms/ios/include/FontManager/NSCFontResolver.h +43 -0
- package/platforms/ios/include/FontManager/NSCFontStyle.h +27 -0
- package/platforms/ios/include/FontManager/NSCFontTypes.h +41 -0
- package/platforms/ios/include/SDWebImage/NSButton+WebCache.h +340 -0
- package/platforms/ios/include/SDWebImage/NSData+ImageContentType.h +63 -0
- package/platforms/ios/include/SDWebImage/NSImage+Compatibility.h +67 -0
- package/platforms/ios/include/SDWebImage/SDAnimatedImage.h +136 -0
- package/platforms/ios/include/SDWebImage/SDAnimatedImagePlayer.h +113 -0
- package/platforms/ios/include/SDWebImage/SDAnimatedImageRep.h +33 -0
- package/platforms/ios/include/SDWebImage/SDAnimatedImageView+WebCache.h +168 -0
- package/platforms/ios/include/SDWebImage/SDAnimatedImageView.h +125 -0
- package/platforms/ios/include/SDWebImage/SDCallbackQueue.h +59 -0
- package/platforms/ios/include/SDWebImage/SDDiskCache.h +146 -0
- package/platforms/ios/include/SDWebImage/SDGraphicsImageRenderer.h +84 -0
- package/platforms/ios/include/SDWebImage/SDImageAPNGCoder.h +19 -0
- package/platforms/ios/include/SDWebImage/SDImageAWebPCoder.h +23 -0
- package/platforms/ios/include/SDWebImage/SDImageCache.h +482 -0
- package/platforms/ios/include/SDWebImage/SDImageCacheConfig.h +153 -0
- package/platforms/ios/include/SDWebImage/SDImageCacheDefine.h +179 -0
- package/platforms/ios/include/SDWebImage/SDImageCachesManager.h +81 -0
- package/platforms/ios/include/SDWebImage/SDImageCoder.h +347 -0
- package/platforms/ios/include/SDWebImage/SDImageCoderHelper.h +251 -0
- package/platforms/ios/include/SDWebImage/SDImageCodersManager.h +58 -0
- package/platforms/ios/include/SDWebImage/SDImageFrame.h +44 -0
- package/platforms/ios/include/SDWebImage/SDImageGIFCoder.h +22 -0
- package/platforms/ios/include/SDWebImage/SDImageGraphics.h +28 -0
- package/platforms/ios/include/SDWebImage/SDImageHEICCoder.h +25 -0
- package/platforms/ios/include/SDWebImage/SDImageIOAnimatedCoder.h +65 -0
- package/platforms/ios/include/SDWebImage/SDImageIOCoder.h +30 -0
- package/platforms/ios/include/SDWebImage/SDImageLoader.h +146 -0
- package/platforms/ios/include/SDWebImage/SDImageLoadersManager.h +40 -0
- package/platforms/ios/include/SDWebImage/SDImageTransformer.h +283 -0
- package/platforms/ios/include/SDWebImage/SDMemoryCache.h +78 -0
- package/platforms/ios/include/SDWebImage/SDWebImage.h +91 -0
- package/platforms/ios/include/SDWebImage/SDWebImageCacheKeyFilter.h +35 -0
- package/platforms/ios/include/SDWebImage/SDWebImageCacheSerializer.h +39 -0
- package/platforms/ios/include/SDWebImage/SDWebImageCompat.h +102 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDefine.h +420 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDownloader.h +320 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDownloaderConfig.h +113 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDownloaderDecryptor.h +52 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDownloaderOperation.h +191 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDownloaderRequestModifier.h +72 -0
- package/platforms/ios/include/SDWebImage/SDWebImageDownloaderResponseModifier.h +72 -0
- package/platforms/ios/include/SDWebImage/SDWebImageError.h +33 -0
- package/platforms/ios/include/SDWebImage/SDWebImageIndicator.h +119 -0
- package/platforms/ios/include/SDWebImage/SDWebImageManager.h +290 -0
- package/platforms/ios/include/SDWebImage/SDWebImageOperation.h +27 -0
- package/platforms/ios/include/SDWebImage/SDWebImageOptionsProcessor.h +78 -0
- package/platforms/ios/include/SDWebImage/SDWebImagePrefetcher.h +168 -0
- package/platforms/ios/include/SDWebImage/SDWebImageTransition.h +131 -0
- package/platforms/ios/include/SDWebImage/UIButton+WebCache.h +402 -0
- package/platforms/ios/include/SDWebImage/UIImage+ExtendedCacheData.h +24 -0
- package/platforms/ios/include/SDWebImage/UIImage+ForceDecode.h +52 -0
- package/platforms/ios/include/SDWebImage/UIImage+GIF.h +26 -0
- package/platforms/ios/include/SDWebImage/UIImage+MemoryCacheCost.h +27 -0
- package/platforms/ios/include/SDWebImage/UIImage+Metadata.h +104 -0
- package/platforms/ios/include/SDWebImage/UIImage+MultiFormat.h +81 -0
- package/platforms/ios/include/SDWebImage/UIImage+Transform.h +164 -0
- package/platforms/ios/include/SDWebImage/UIImageView+HighlightedWebCache.h +142 -0
- package/platforms/ios/include/SDWebImage/UIImageView+WebCache.h +209 -0
- package/platforms/ios/include/SDWebImage/UIView+WebCache.h +131 -0
- package/platforms/ios/include/SDWebImage/UIView+WebCacheOperation.h +52 -0
- package/platforms/ios/include/SDWebImage/UIView+WebCacheState.h +63 -0
- package/platforms/ios/include/module.modulemap +2 -0
- package/platforms/ios/manifest.json +132 -0
- package/platforms/ios/simulator-manifest.json +213 -0
- package/plugin-README.md +234 -0
- package/properties.d.ts +154 -0
- package/properties.js +2456 -0
- package/pseudo.d.ts +9 -0
- package/pseudo.js +57 -0
- package/scroll/index.android.d.ts +15 -0
- package/scroll/index.android.js +72 -0
- package/scroll/index.d.ts +5 -0
- package/scroll/index.ios.d.ts +18 -0
- package/scroll/index.ios.js +106 -0
- package/style.d.ts +768 -0
- package/style.js +7167 -0
- package/symbols.d.ts +25 -0
- package/symbols.js +41 -0
- package/tree/index.android.d.ts +11 -0
- package/tree/index.android.js +42 -0
- package/tree/index.d.ts +15 -0
- package/tree/index.ios.d.ts +26 -0
- package/tree/index.ios.js +53 -0
- package/typings/android-declarations.d.ts +4 -0
- package/typings/android.d.ts +9730 -0
- package/typings/manifest.json +45 -0
- package/typings/native.d.ts +5 -0
- package/typings/objc!FontManager.d.ts +389 -0
- package/typings/objc!MasonCore.d.ts +2472 -0
- package/typings/objc!SDWebImage.d.ts +3378 -0
- package/units.d.ts +29 -0
- package/units.js +44 -0
- package/utils/index.android.d.ts +211 -0
- package/utils/index.android.js +595 -0
- package/utils/index.ios.d.ts +222 -0
- package/utils/index.ios.js +790 -0
- package/view/index.android.d.ts +13 -0
- package/view/index.android.js +74 -0
- package/view/index.d.ts +2 -0
- package/view/index.ios.d.ts +24 -0
- package/view/index.ios.js +157 -0
package/platforms/ios/MasonCore.xcframework/ios-arm64/MasonCore.framework/Headers/MasonCore-Swift.h
ADDED
|
@@ -0,0 +1,1739 @@
|
|
|
1
|
+
#if 0
|
|
2
|
+
#elif defined(__arm64__) && __arm64__
|
|
3
|
+
// Generated by Apple Swift version 6.4 effective-5.10 (swiftlang-6.4.0.34.1 clang-2100.3.34.1)
|
|
4
|
+
#ifndef MASONCORE_SWIFT_H
|
|
5
|
+
#define MASONCORE_SWIFT_H
|
|
6
|
+
#pragma clang diagnostic push
|
|
7
|
+
#pragma clang diagnostic ignored "-Wgcc-compat"
|
|
8
|
+
|
|
9
|
+
#if !defined(__has_include)
|
|
10
|
+
# define __has_include(x) 0
|
|
11
|
+
#endif
|
|
12
|
+
#if !defined(__has_attribute)
|
|
13
|
+
# define __has_attribute(x) 0
|
|
14
|
+
#endif
|
|
15
|
+
#if !defined(__has_feature)
|
|
16
|
+
# define __has_feature(x) 0
|
|
17
|
+
#endif
|
|
18
|
+
#if !defined(__has_warning)
|
|
19
|
+
# define __has_warning(x) 0
|
|
20
|
+
#endif
|
|
21
|
+
|
|
22
|
+
#if __has_include(<swift/objc-prologue.h>)
|
|
23
|
+
# include <swift/objc-prologue.h>
|
|
24
|
+
#endif
|
|
25
|
+
|
|
26
|
+
#pragma clang diagnostic ignored "-Wauto-import"
|
|
27
|
+
#if defined(__OBJC__)
|
|
28
|
+
#include <Foundation/Foundation.h>
|
|
29
|
+
#endif // defined(__OBJC__)
|
|
30
|
+
#if defined(__cplusplus)
|
|
31
|
+
#include <cstdint>
|
|
32
|
+
#include <cstddef>
|
|
33
|
+
#include <cstring>
|
|
34
|
+
#include <stdlib.h>
|
|
35
|
+
#include <new>
|
|
36
|
+
#include <type_traits>
|
|
37
|
+
#else
|
|
38
|
+
#include <stdint.h>
|
|
39
|
+
#include <stddef.h>
|
|
40
|
+
#include <stdbool.h>
|
|
41
|
+
#include <string.h>
|
|
42
|
+
#endif
|
|
43
|
+
#if defined(__cplusplus)
|
|
44
|
+
#pragma clang diagnostic push
|
|
45
|
+
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
|
|
46
|
+
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
|
|
47
|
+
# include <ptrauth.h>
|
|
48
|
+
#else
|
|
49
|
+
#pragma clang diagnostic push
|
|
50
|
+
#pragma clang diagnostic ignored "-Wreserved-macro-identifier"
|
|
51
|
+
# ifndef __ptrauth_swift_value_witness_function_pointer
|
|
52
|
+
# define __ptrauth_swift_value_witness_function_pointer(x)
|
|
53
|
+
# endif
|
|
54
|
+
# ifndef __ptrauth_swift_class_method_pointer
|
|
55
|
+
# define __ptrauth_swift_class_method_pointer(x)
|
|
56
|
+
# endif
|
|
57
|
+
#pragma clang diagnostic pop
|
|
58
|
+
#endif
|
|
59
|
+
#pragma clang diagnostic pop
|
|
60
|
+
#endif
|
|
61
|
+
|
|
62
|
+
#if !defined(SWIFT_TYPEDEFS)
|
|
63
|
+
# define SWIFT_TYPEDEFS 1
|
|
64
|
+
# if __has_include(<uchar.h>)
|
|
65
|
+
# include <uchar.h>
|
|
66
|
+
# elif !defined(__cplusplus)
|
|
67
|
+
typedef unsigned char char8_t;
|
|
68
|
+
typedef uint_least16_t char16_t;
|
|
69
|
+
typedef uint_least32_t char32_t;
|
|
70
|
+
# endif
|
|
71
|
+
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
|
|
72
|
+
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
|
|
73
|
+
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
|
|
74
|
+
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
|
|
75
|
+
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
|
|
76
|
+
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
|
|
77
|
+
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
|
|
78
|
+
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
|
|
79
|
+
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
|
|
80
|
+
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
|
|
81
|
+
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
|
|
82
|
+
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
83
|
+
#endif
|
|
84
|
+
|
|
85
|
+
#if !defined(SWIFT_PASTE)
|
|
86
|
+
# define SWIFT_PASTE_HELPER(x, y) x##y
|
|
87
|
+
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
|
|
88
|
+
#endif
|
|
89
|
+
#if !defined(SWIFT_METATYPE)
|
|
90
|
+
# define SWIFT_METATYPE(X) Class
|
|
91
|
+
#endif
|
|
92
|
+
#if !defined(SWIFT_CLASS_PROPERTY)
|
|
93
|
+
# if __has_feature(objc_class_property)
|
|
94
|
+
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
|
|
95
|
+
# else
|
|
96
|
+
# define SWIFT_CLASS_PROPERTY(...)
|
|
97
|
+
# endif
|
|
98
|
+
#endif
|
|
99
|
+
#if !defined(SWIFT_RUNTIME_NAME)
|
|
100
|
+
# if __has_attribute(objc_runtime_name)
|
|
101
|
+
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
|
|
102
|
+
# else
|
|
103
|
+
# define SWIFT_RUNTIME_NAME(X)
|
|
104
|
+
# endif
|
|
105
|
+
#endif
|
|
106
|
+
#if !defined(SWIFT_COMPILE_NAME)
|
|
107
|
+
# if __has_attribute(swift_name)
|
|
108
|
+
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
|
|
109
|
+
# else
|
|
110
|
+
# define SWIFT_COMPILE_NAME(X)
|
|
111
|
+
# endif
|
|
112
|
+
#endif
|
|
113
|
+
#if !defined(SWIFT_METHOD_FAMILY)
|
|
114
|
+
# if __has_attribute(objc_method_family)
|
|
115
|
+
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
|
|
116
|
+
# else
|
|
117
|
+
# define SWIFT_METHOD_FAMILY(X)
|
|
118
|
+
# endif
|
|
119
|
+
#endif
|
|
120
|
+
#if !defined(SWIFT_NOESCAPE)
|
|
121
|
+
# if __has_attribute(noescape)
|
|
122
|
+
# define SWIFT_NOESCAPE __attribute__((noescape))
|
|
123
|
+
# else
|
|
124
|
+
# define SWIFT_NOESCAPE
|
|
125
|
+
# endif
|
|
126
|
+
#endif
|
|
127
|
+
#if !defined(SWIFT_RELEASES_ARGUMENT)
|
|
128
|
+
# if __has_attribute(ns_consumed)
|
|
129
|
+
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
|
|
130
|
+
# else
|
|
131
|
+
# define SWIFT_RELEASES_ARGUMENT
|
|
132
|
+
# endif
|
|
133
|
+
#endif
|
|
134
|
+
#if !defined(SWIFT_WARN_UNUSED_RESULT)
|
|
135
|
+
# if __has_attribute(warn_unused_result)
|
|
136
|
+
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
|
|
137
|
+
# else
|
|
138
|
+
# define SWIFT_WARN_UNUSED_RESULT
|
|
139
|
+
# endif
|
|
140
|
+
#endif
|
|
141
|
+
#if !defined(SWIFT_NORETURN)
|
|
142
|
+
# if __has_attribute(noreturn)
|
|
143
|
+
# define SWIFT_NORETURN __attribute__((noreturn))
|
|
144
|
+
# else
|
|
145
|
+
# define SWIFT_NORETURN
|
|
146
|
+
# endif
|
|
147
|
+
#endif
|
|
148
|
+
#if !defined(SWIFT_CLASS_EXTRA)
|
|
149
|
+
# define SWIFT_CLASS_EXTRA
|
|
150
|
+
#endif
|
|
151
|
+
#if !defined(SWIFT_PROTOCOL_EXTRA)
|
|
152
|
+
# define SWIFT_PROTOCOL_EXTRA
|
|
153
|
+
#endif
|
|
154
|
+
#if !defined(SWIFT_ENUM_EXTRA)
|
|
155
|
+
# define SWIFT_ENUM_EXTRA
|
|
156
|
+
#endif
|
|
157
|
+
#if !defined(SWIFT_CLASS)
|
|
158
|
+
# if __has_attribute(objc_subclassing_restricted)
|
|
159
|
+
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
|
|
160
|
+
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
|
161
|
+
# else
|
|
162
|
+
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
|
163
|
+
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
|
|
164
|
+
# endif
|
|
165
|
+
#endif
|
|
166
|
+
#if !defined(SWIFT_RESILIENT_CLASS)
|
|
167
|
+
# if __has_attribute(objc_class_stub)
|
|
168
|
+
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
|
|
169
|
+
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
|
170
|
+
# else
|
|
171
|
+
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
|
|
172
|
+
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
|
|
173
|
+
# endif
|
|
174
|
+
#endif
|
|
175
|
+
#if !defined(SWIFT_PROTOCOL)
|
|
176
|
+
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
|
177
|
+
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
|
|
178
|
+
#endif
|
|
179
|
+
#if !defined(SWIFT_EXTENSION)
|
|
180
|
+
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
|
|
181
|
+
#endif
|
|
182
|
+
#if !defined(OBJC_DESIGNATED_INITIALIZER)
|
|
183
|
+
# if __has_attribute(objc_designated_initializer)
|
|
184
|
+
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
|
185
|
+
# else
|
|
186
|
+
# define OBJC_DESIGNATED_INITIALIZER
|
|
187
|
+
# endif
|
|
188
|
+
#endif
|
|
189
|
+
#if !defined(SWIFT_ENUM_ATTR)
|
|
190
|
+
# if __has_attribute(enum_extensibility)
|
|
191
|
+
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
|
|
192
|
+
# else
|
|
193
|
+
# define SWIFT_ENUM_ATTR(_extensibility)
|
|
194
|
+
# endif
|
|
195
|
+
#endif
|
|
196
|
+
#if !defined(SWIFT_ENUM)
|
|
197
|
+
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
198
|
+
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
|
|
199
|
+
# if __has_feature(generalized_swift_name)
|
|
200
|
+
# 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
|
|
201
|
+
# else
|
|
202
|
+
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
|
203
|
+
# endif
|
|
204
|
+
# else
|
|
205
|
+
# define SWIFT_ENUM(_type, _name, _extensibility) _type _name; enum
|
|
206
|
+
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
|
|
207
|
+
# endif
|
|
208
|
+
#endif
|
|
209
|
+
#if !defined(SWIFT_ENUM_TAG)
|
|
210
|
+
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
211
|
+
# define SWIFT_ENUM_TAG enum
|
|
212
|
+
# else
|
|
213
|
+
# define SWIFT_ENUM_TAG
|
|
214
|
+
# endif
|
|
215
|
+
#endif
|
|
216
|
+
#if !defined(SWIFT_ENUM_FWD_DECL)
|
|
217
|
+
# if (defined(__cplusplus) && __cplusplus >= 201103L) || (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L) || __has_feature(objc_fixed_enum)
|
|
218
|
+
# define SWIFT_ENUM_FWD_DECL(_type, _name) enum _name : _type;
|
|
219
|
+
# else
|
|
220
|
+
# define SWIFT_ENUM_FWD_DECL(_type, _name) typedef _type _name;
|
|
221
|
+
# endif
|
|
222
|
+
#endif
|
|
223
|
+
#if !defined(SWIFT_UNAVAILABLE)
|
|
224
|
+
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
|
|
225
|
+
#endif
|
|
226
|
+
#if !defined(SWIFT_UNAVAILABLE_MSG)
|
|
227
|
+
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
|
|
228
|
+
#endif
|
|
229
|
+
#if !defined(SWIFT_AVAILABILITY)
|
|
230
|
+
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
|
|
231
|
+
#endif
|
|
232
|
+
#if !defined(SWIFT_AVAILABILITY_DOMAIN)
|
|
233
|
+
# define SWIFT_AVAILABILITY_DOMAIN(dom, ...) __attribute__((availability(domain: dom, __VA_ARGS__)))
|
|
234
|
+
#endif
|
|
235
|
+
#if !defined(SWIFT_WEAK_IMPORT)
|
|
236
|
+
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
|
|
237
|
+
#endif
|
|
238
|
+
#if !defined(SWIFT_DEPRECATED)
|
|
239
|
+
# define SWIFT_DEPRECATED __attribute__((deprecated))
|
|
240
|
+
#endif
|
|
241
|
+
#if !defined(SWIFT_DEPRECATED_MSG)
|
|
242
|
+
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
|
|
243
|
+
#endif
|
|
244
|
+
#if !defined(SWIFT_DEPRECATED_OBJC)
|
|
245
|
+
# if __has_feature(attribute_diagnose_if_objc)
|
|
246
|
+
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
|
|
247
|
+
# else
|
|
248
|
+
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
|
|
249
|
+
# endif
|
|
250
|
+
#endif
|
|
251
|
+
#if defined(__OBJC__)
|
|
252
|
+
#if !defined(IBSegueAction)
|
|
253
|
+
# define IBSegueAction
|
|
254
|
+
#endif
|
|
255
|
+
#endif
|
|
256
|
+
#if !defined(SWIFT_EXTERN)
|
|
257
|
+
# if defined(__cplusplus)
|
|
258
|
+
# define SWIFT_EXTERN extern "C"
|
|
259
|
+
# else
|
|
260
|
+
# define SWIFT_EXTERN extern
|
|
261
|
+
# endif
|
|
262
|
+
#endif
|
|
263
|
+
#if !defined(SWIFT_CALL)
|
|
264
|
+
# define SWIFT_CALL __attribute__((swiftcall))
|
|
265
|
+
#endif
|
|
266
|
+
#if !defined(SWIFT_INDIRECT_RESULT)
|
|
267
|
+
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
|
|
268
|
+
#endif
|
|
269
|
+
#if !defined(SWIFT_CONTEXT)
|
|
270
|
+
# define SWIFT_CONTEXT __attribute__((swift_context))
|
|
271
|
+
#endif
|
|
272
|
+
#if !defined(SWIFT_ERROR_RESULT)
|
|
273
|
+
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
|
|
274
|
+
#endif
|
|
275
|
+
#if defined(__cplusplus)
|
|
276
|
+
# define SWIFT_NOEXCEPT noexcept
|
|
277
|
+
#else
|
|
278
|
+
# define SWIFT_NOEXCEPT
|
|
279
|
+
#endif
|
|
280
|
+
#if !defined(SWIFT_C_INLINE_THUNK)
|
|
281
|
+
# if __has_attribute(always_inline)
|
|
282
|
+
# if __has_attribute(nodebug)
|
|
283
|
+
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
|
|
284
|
+
# else
|
|
285
|
+
# define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
|
|
286
|
+
# endif
|
|
287
|
+
# else
|
|
288
|
+
# define SWIFT_C_INLINE_THUNK inline
|
|
289
|
+
# endif
|
|
290
|
+
#endif
|
|
291
|
+
#if defined(_WIN32)
|
|
292
|
+
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
|
293
|
+
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
|
|
294
|
+
#endif
|
|
295
|
+
#else
|
|
296
|
+
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
|
|
297
|
+
# define SWIFT_IMPORT_STDLIB_SYMBOL
|
|
298
|
+
#endif
|
|
299
|
+
#endif
|
|
300
|
+
#if !__has_feature(nullability)
|
|
301
|
+
# define _Nonnull
|
|
302
|
+
# define _Nullable
|
|
303
|
+
# define _Null_unspecified
|
|
304
|
+
#elif !defined(__OBJC__)
|
|
305
|
+
# pragma clang diagnostic ignored "-Wnullability-extension"
|
|
306
|
+
#endif
|
|
307
|
+
#if !__has_feature(nullability_nullable_result)
|
|
308
|
+
# define _Nullable_result _Nullable
|
|
309
|
+
#endif
|
|
310
|
+
#if __has_feature(objc_modules)
|
|
311
|
+
#if __has_warning("-Watimport-in-framework-header")
|
|
312
|
+
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
313
|
+
#endif
|
|
314
|
+
#endif
|
|
315
|
+
|
|
316
|
+
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
317
|
+
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
318
|
+
#if __has_warning("-Wpragma-clang-attribute")
|
|
319
|
+
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
|
320
|
+
#endif
|
|
321
|
+
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
322
|
+
#pragma clang diagnostic ignored "-Wnullability"
|
|
323
|
+
#pragma clang diagnostic ignored "-Warc-bridge-casts-disallowed-in-nonarc"
|
|
324
|
+
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
325
|
+
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
|
326
|
+
|
|
327
|
+
#if __has_attribute(external_source_symbol)
|
|
328
|
+
# pragma push_macro("any")
|
|
329
|
+
# undef any
|
|
330
|
+
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="MasonCore",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
|
331
|
+
# pragma pop_macro("any")
|
|
332
|
+
#endif
|
|
333
|
+
|
|
334
|
+
#if defined(__cplusplus)
|
|
335
|
+
extern "C" {
|
|
336
|
+
#endif
|
|
337
|
+
|
|
338
|
+
#if defined(__cplusplus)
|
|
339
|
+
} // extern "C"
|
|
340
|
+
#endif
|
|
341
|
+
#if __has_attribute(external_source_symbol)
|
|
342
|
+
# pragma clang attribute pop
|
|
343
|
+
#endif
|
|
344
|
+
#if defined(__OBJC__)
|
|
345
|
+
#if __has_feature(objc_modules)
|
|
346
|
+
#if __has_warning("-Watimport-in-framework-header")
|
|
347
|
+
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
348
|
+
#endif
|
|
349
|
+
@import CoreFoundation;
|
|
350
|
+
@import CoreGraphics;
|
|
351
|
+
@import Foundation;
|
|
352
|
+
@import ObjectiveC;
|
|
353
|
+
@import QuartzCore;
|
|
354
|
+
@import UIKit;
|
|
355
|
+
#endif
|
|
356
|
+
|
|
357
|
+
#endif // defined(__OBJC__)
|
|
358
|
+
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
|
|
359
|
+
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
|
|
360
|
+
#if __has_warning("-Wpragma-clang-attribute")
|
|
361
|
+
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
|
|
362
|
+
#endif
|
|
363
|
+
#pragma clang diagnostic ignored "-Wunknown-pragmas"
|
|
364
|
+
#pragma clang diagnostic ignored "-Wnullability"
|
|
365
|
+
#pragma clang diagnostic ignored "-Warc-bridge-casts-disallowed-in-nonarc"
|
|
366
|
+
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
|
|
367
|
+
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
|
|
368
|
+
|
|
369
|
+
#if __has_attribute(external_source_symbol)
|
|
370
|
+
# pragma push_macro("any")
|
|
371
|
+
# undef any
|
|
372
|
+
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="MasonCore",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
|
|
373
|
+
# pragma pop_macro("any")
|
|
374
|
+
#endif
|
|
375
|
+
|
|
376
|
+
#if defined(__OBJC__)
|
|
377
|
+
|
|
378
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlign, "Align", open) {
|
|
379
|
+
MasonAlignAuto = 0,
|
|
380
|
+
MasonAlignLeft = 1,
|
|
381
|
+
MasonAlignRight = 2,
|
|
382
|
+
MasonAlignCenter = 3,
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlignContent, "AlignContent", open) {
|
|
386
|
+
MasonAlignContentNormal = -1,
|
|
387
|
+
MasonAlignContentStart = 0,
|
|
388
|
+
MasonAlignContentEnd = 1,
|
|
389
|
+
MasonAlignContentCenter = 2,
|
|
390
|
+
MasonAlignContentStretch = 3,
|
|
391
|
+
MasonAlignContentSpaceBetween = 4,
|
|
392
|
+
MasonAlignContentSpaceAround = 5,
|
|
393
|
+
MasonAlignContentSpaceEvenly = 6,
|
|
394
|
+
MasonAlignContentFlexStart = 7,
|
|
395
|
+
MasonAlignContentFlexEnd = 8,
|
|
396
|
+
};
|
|
397
|
+
|
|
398
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlignItems, "AlignItems", open) {
|
|
399
|
+
MasonAlignItemsNormal = -1,
|
|
400
|
+
MasonAlignItemsStart = 0,
|
|
401
|
+
MasonAlignItemsEnd = 1,
|
|
402
|
+
MasonAlignItemsCenter = 2,
|
|
403
|
+
MasonAlignItemsBaseline = 3,
|
|
404
|
+
MasonAlignItemsStretch = 4,
|
|
405
|
+
MasonAlignItemsFlexStart = 5,
|
|
406
|
+
MasonAlignItemsFlexEnd = 6,
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlignSelf, "AlignSelf", open) {
|
|
410
|
+
MasonAlignSelfNormal = -1,
|
|
411
|
+
MasonAlignSelfStart = 0,
|
|
412
|
+
MasonAlignSelfEnd = 1,
|
|
413
|
+
MasonAlignSelfCenter = 2,
|
|
414
|
+
MasonAlignSelfBaseline = 3,
|
|
415
|
+
MasonAlignSelfStretch = 4,
|
|
416
|
+
MasonAlignSelfFlexStart = 5,
|
|
417
|
+
MasonAlignSelfFlexEnd = 6,
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
@class NSCoder;
|
|
421
|
+
SWIFT_CLASS("_TtC9MasonCore17BackgroundCALayer")
|
|
422
|
+
@interface BackgroundCALayer : CALayer
|
|
423
|
+
- (void)drawInContext:(CGContextRef _Nonnull)ctx;
|
|
424
|
+
- (void)layoutSublayers;
|
|
425
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
426
|
+
- (nonnull instancetype)initWithLayer:(id _Nonnull)layer OBJC_DESIGNATED_INITIALIZER;
|
|
427
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
|
|
428
|
+
@end
|
|
429
|
+
|
|
430
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonBoxSizing, "BoxSizing", open) {
|
|
431
|
+
MasonBoxSizingBorderBox = 0,
|
|
432
|
+
MasonBoxSizingContentBox = 1,
|
|
433
|
+
};
|
|
434
|
+
|
|
435
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonClear, "Clear", open) {
|
|
436
|
+
MasonClearNone = 0,
|
|
437
|
+
MasonClearLeft = 1,
|
|
438
|
+
MasonClearRight = 2,
|
|
439
|
+
MasonClearBoth = 3,
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
/// <code>text-decoration-line</code> as a bit set shared with TS and Kotlin: 1 underline,
|
|
443
|
+
/// 2 overline, 4 line-through. <code>spelling-error</code> (8) and <code>grammar-error</code> (16) stand alone.
|
|
444
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDecorationLine, "DecorationLine", open) {
|
|
445
|
+
MasonDecorationLineNone = 0,
|
|
446
|
+
MasonDecorationLineUnderline = 1,
|
|
447
|
+
MasonDecorationLineOverline = 2,
|
|
448
|
+
MasonDecorationLineUnderlineOverline = 3,
|
|
449
|
+
MasonDecorationLineLineThrough = 4,
|
|
450
|
+
MasonDecorationLineUnderlineLineThrough = 5,
|
|
451
|
+
MasonDecorationLineOverlineLineThrough = 6,
|
|
452
|
+
MasonDecorationLineUnderlineOverlineLineThrough = 7,
|
|
453
|
+
MasonDecorationLineSpellingError = 8,
|
|
454
|
+
MasonDecorationLineGrammarError = 9,
|
|
455
|
+
};
|
|
456
|
+
|
|
457
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDecorationStyle, "DecorationStyle", open) {
|
|
458
|
+
MasonDecorationStyleSolid = 0,
|
|
459
|
+
MasonDecorationStyleDouble = 1,
|
|
460
|
+
MasonDecorationStyleDotted = 2,
|
|
461
|
+
MasonDecorationStyleDashed = 3,
|
|
462
|
+
MasonDecorationStyleWavy = 4,
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDirection, "Direction", open) {
|
|
466
|
+
MasonDirectionInherit = 0,
|
|
467
|
+
MasonDirectionLTR = 1,
|
|
468
|
+
MasonDirectionRTL = 2,
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDisplay, "Display", open) {
|
|
472
|
+
MasonDisplayNone = 0,
|
|
473
|
+
MasonDisplayFlex = 1,
|
|
474
|
+
MasonDisplayGrid = 2,
|
|
475
|
+
MasonDisplayBlock = 3,
|
|
476
|
+
MasonDisplayInline = 4,
|
|
477
|
+
MasonDisplayInlineBlock = 5,
|
|
478
|
+
MasonDisplayInlineFlex = 6,
|
|
479
|
+
MasonDisplayInlineGrid = 7,
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonFlexDirection, "FlexDirection", open) {
|
|
483
|
+
MasonFlexDirectionRow = 0,
|
|
484
|
+
MasonFlexDirectionColumn = 1,
|
|
485
|
+
MasonFlexDirectionRowReverse = 2,
|
|
486
|
+
MasonFlexDirectionColumnReverse = 3,
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonFlexWrap, "FlexWrap", open) {
|
|
490
|
+
MasonFlexWrapNoWrap = 0,
|
|
491
|
+
MasonFlexWrapWrap = 1,
|
|
492
|
+
MasonFlexWrapWrapReverse = 2,
|
|
493
|
+
MasonFlexWrapBalance = 3,
|
|
494
|
+
MasonFlexWrapBalanceReverse = 4,
|
|
495
|
+
};
|
|
496
|
+
|
|
497
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonFontStyle, "FontStyle", open) {
|
|
498
|
+
MasonFontStyleNormal = 0,
|
|
499
|
+
MasonFontStyleItalic = 1,
|
|
500
|
+
MasonFontStyleOblique = 2,
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonGridAutoFlowWrap, "GridAutoFlow", open) {
|
|
504
|
+
MasonGridAutoFlowWrapRow = 0,
|
|
505
|
+
MasonGridAutoFlowWrapColumn = 1,
|
|
506
|
+
MasonGridAutoFlowWrapRowDense = 2,
|
|
507
|
+
MasonGridAutoFlowWrapColumnDense = 3,
|
|
508
|
+
};
|
|
509
|
+
|
|
510
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonGridPlacementCompatType)
|
|
511
|
+
@class NSString;
|
|
512
|
+
SWIFT_CLASS_NAMED("GridPlacementCompat")
|
|
513
|
+
@interface GridPlacementCompat : NSObject
|
|
514
|
+
- (nonnull instancetype)initWithSpan:(int16_t)span OBJC_DESIGNATED_INITIALIZER;
|
|
515
|
+
- (nonnull instancetype)initWithLine:(int16_t)line OBJC_DESIGNATED_INITIALIZER;
|
|
516
|
+
@property (nonatomic, readonly) enum MasonGridPlacementCompatType type;
|
|
517
|
+
@property (nonatomic, readonly) int16_t value;
|
|
518
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
519
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
|
|
520
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GridPlacementCompat * _Nonnull Auto;)
|
|
521
|
+
+ (GridPlacementCompat * _Nonnull)Auto SWIFT_WARN_UNUSED_RESULT;
|
|
522
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
523
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
524
|
+
@end
|
|
525
|
+
|
|
526
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonGridPlacementCompatType, "GridPlacementCompatType", open) {
|
|
527
|
+
MasonGridPlacementCompatTypeAuto = 0,
|
|
528
|
+
MasonGridPlacementCompatTypeLine = 1,
|
|
529
|
+
MasonGridPlacementCompatTypeSpan = 2,
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
SWIFT_CLASS_NAMED("GridTrackRepetition")
|
|
533
|
+
@interface MasonGridTrackRepetition : NSObject
|
|
534
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
535
|
+
@property (nonatomic, readonly) int32_t type;
|
|
536
|
+
@property (nonatomic, readonly) uint16_t value;
|
|
537
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonGridTrackRepetition * _Nonnull AutoFill;)
|
|
538
|
+
+ (MasonGridTrackRepetition * _Nonnull)AutoFill SWIFT_WARN_UNUSED_RESULT;
|
|
539
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonGridTrackRepetition * _Nonnull AutoFit;)
|
|
540
|
+
+ (MasonGridTrackRepetition * _Nonnull)AutoFit SWIFT_WARN_UNUSED_RESULT;
|
|
541
|
+
+ (MasonGridTrackRepetition * _Nonnull)Count:(uint16_t)value SWIFT_WARN_UNUSED_RESULT;
|
|
542
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
543
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
544
|
+
@end
|
|
545
|
+
|
|
546
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonJustifyContent, "JustifyContent", open) {
|
|
547
|
+
MasonJustifyContentNormal = -1,
|
|
548
|
+
MasonJustifyContentStart = 0,
|
|
549
|
+
MasonJustifyContentEnd = 1,
|
|
550
|
+
MasonJustifyContentCenter = 2,
|
|
551
|
+
MasonJustifyContentStretch = 3,
|
|
552
|
+
MasonJustifyContentSpaceBetween = 4,
|
|
553
|
+
MasonJustifyContentSpaceAround = 5,
|
|
554
|
+
MasonJustifyContentSpaceEvenly = 6,
|
|
555
|
+
MasonJustifyContentFlexStart = 7,
|
|
556
|
+
MasonJustifyContentFlexEnd = 8,
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonJustifyItems, "JustifyItems", open) {
|
|
560
|
+
MasonJustifyItemsNormal = -1,
|
|
561
|
+
MasonJustifyItemsStart = 0,
|
|
562
|
+
MasonJustifyItemsEnd = 1,
|
|
563
|
+
MasonJustifyItemsCenter = 2,
|
|
564
|
+
MasonJustifyItemsBaseline = 3,
|
|
565
|
+
MasonJustifyItemsStretch = 4,
|
|
566
|
+
MasonJustifyItemsFlexStart = 5,
|
|
567
|
+
MasonJustifyItemsFlexEnd = 6,
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonJustifySelf, "JustifySelf", open) {
|
|
571
|
+
MasonJustifySelfNormal = -1,
|
|
572
|
+
MasonJustifySelfStart = 0,
|
|
573
|
+
MasonJustifySelfEnd = 1,
|
|
574
|
+
MasonJustifySelfCenter = 2,
|
|
575
|
+
MasonJustifySelfBaseline = 3,
|
|
576
|
+
MasonJustifySelfStretch = 4,
|
|
577
|
+
MasonJustifySelfFlexStart = 5,
|
|
578
|
+
MasonJustifySelfFlexEnd = 6,
|
|
579
|
+
};
|
|
580
|
+
|
|
581
|
+
SWIFT_CLASS_NAMED("LineGridPlacementCompat")
|
|
582
|
+
@interface LineGridPlacementCompat : NSObject
|
|
583
|
+
@property (nonatomic, readonly, strong) GridPlacementCompat * _Nonnull start;
|
|
584
|
+
@property (nonatomic, readonly, strong) GridPlacementCompat * _Nonnull end;
|
|
585
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
586
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
587
|
+
@end
|
|
588
|
+
|
|
589
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonLineHeight, "LineHeight", open) {
|
|
590
|
+
MasonLineHeightNormal = 0,
|
|
591
|
+
MasonLineHeightPre = 1,
|
|
592
|
+
MasonLineHeightPreWrap = 2,
|
|
593
|
+
MasonLineHeightPreLine = 3,
|
|
594
|
+
};
|
|
595
|
+
|
|
596
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonListStylePosition, "ListStylePosition", open) {
|
|
597
|
+
MasonListStylePositionOutside = 0,
|
|
598
|
+
MasonListStylePositionInside = 1,
|
|
599
|
+
};
|
|
600
|
+
|
|
601
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonListStyleType, "ListStyleType", open) {
|
|
602
|
+
MasonListStyleTypeNone = 0,
|
|
603
|
+
MasonListStyleTypeCustom = 1,
|
|
604
|
+
MasonListStyleTypeDisc = 2,
|
|
605
|
+
MasonListStyleTypeCircle = 3,
|
|
606
|
+
MasonListStyleTypeSquare = 4,
|
|
607
|
+
MasonListStyleTypeDecimal = 5,
|
|
608
|
+
};
|
|
609
|
+
|
|
610
|
+
/// Optional glyph outlines for text-clipped backgrounds. Core owns no text renderer.
|
|
611
|
+
SWIFT_PROTOCOL("_TtP9MasonCore28MasonBackgroundGlyphProvider_")
|
|
612
|
+
@protocol MasonBackgroundGlyphProvider
|
|
613
|
+
- (CGPathRef _Nonnull)masonBackgroundGlyphPath SWIFT_WARN_UNUSED_RESULT;
|
|
614
|
+
@end
|
|
615
|
+
|
|
616
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonDimensionCompatType)
|
|
617
|
+
SWIFT_CLASS_NAMED("MasonDimensionCompat")
|
|
618
|
+
@interface MasonDimensionCompat : NSObject
|
|
619
|
+
- (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
|
|
620
|
+
- (nonnull instancetype)initWithPercent:(float)percent OBJC_DESIGNATED_INITIALIZER;
|
|
621
|
+
- (nonnull instancetype)initWithFitContentPoints:(float)fitContentPoints OBJC_DESIGNATED_INITIALIZER;
|
|
622
|
+
- (nonnull instancetype)initWithFitContentPercent:(float)fitContentPercent OBJC_DESIGNATED_INITIALIZER;
|
|
623
|
+
@property (nonatomic, readonly) enum MasonDimensionCompatType type;
|
|
624
|
+
@property (nonatomic, readonly) float value;
|
|
625
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
626
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
|
|
627
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonDimensionCompat * _Nonnull Auto;)
|
|
628
|
+
+ (MasonDimensionCompat * _Nonnull)Auto SWIFT_WARN_UNUSED_RESULT;
|
|
629
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonDimensionCompat * _Nonnull MinContent;)
|
|
630
|
+
+ (MasonDimensionCompat * _Nonnull)MinContent SWIFT_WARN_UNUSED_RESULT;
|
|
631
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonDimensionCompat * _Nonnull MaxContent;)
|
|
632
|
+
+ (MasonDimensionCompat * _Nonnull)MaxContent SWIFT_WARN_UNUSED_RESULT;
|
|
633
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonDimensionCompat * _Nonnull FitContent;)
|
|
634
|
+
+ (MasonDimensionCompat * _Nonnull)FitContent SWIFT_WARN_UNUSED_RESULT;
|
|
635
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonDimensionCompat * _Nonnull Stretch;)
|
|
636
|
+
+ (MasonDimensionCompat * _Nonnull)Stretch SWIFT_WARN_UNUSED_RESULT;
|
|
637
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonDimensionCompat * _Nonnull Content;)
|
|
638
|
+
+ (MasonDimensionCompat * _Nonnull)Content SWIFT_WARN_UNUSED_RESULT;
|
|
639
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonDimensionCompat * _Nonnull Zero;)
|
|
640
|
+
+ (MasonDimensionCompat * _Nonnull)Zero SWIFT_WARN_UNUSED_RESULT;
|
|
641
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
642
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
643
|
+
@end
|
|
644
|
+
|
|
645
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDimensionCompatType, "MasonDimensionCompatType", open) {
|
|
646
|
+
MasonDimensionCompatTypeAuto = 0,
|
|
647
|
+
MasonDimensionCompatTypePoints = 1,
|
|
648
|
+
MasonDimensionCompatTypePercent = 2,
|
|
649
|
+
MasonDimensionCompatTypeMinContent = 3,
|
|
650
|
+
MasonDimensionCompatTypeMaxContent = 4,
|
|
651
|
+
MasonDimensionCompatTypeFitContent = 5,
|
|
652
|
+
MasonDimensionCompatTypeFitContentPoints = 6,
|
|
653
|
+
MasonDimensionCompatTypeFitContentPercent = 7,
|
|
654
|
+
MasonDimensionCompatTypeStretch = 8,
|
|
655
|
+
MasonDimensionCompatTypeContent = 9,
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
SWIFT_CLASS_NAMED("MasonDimensionPointCompat")
|
|
659
|
+
@interface MasonDimensionPointCompat : NSObject
|
|
660
|
+
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull x;
|
|
661
|
+
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull y;
|
|
662
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
663
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
664
|
+
@end
|
|
665
|
+
|
|
666
|
+
SWIFT_CLASS_NAMED("MasonDimensionRectCompat")
|
|
667
|
+
@interface MasonDimensionRectCompat : NSObject
|
|
668
|
+
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull left;
|
|
669
|
+
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull right;
|
|
670
|
+
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull top;
|
|
671
|
+
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull bottom;
|
|
672
|
+
- (nonnull instancetype)init:(MasonDimensionCompat * _Nonnull)left :(MasonDimensionCompat * _Nonnull)top :(MasonDimensionCompat * _Nonnull)right :(MasonDimensionCompat * _Nonnull)bottom OBJC_DESIGNATED_INITIALIZER;
|
|
673
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
674
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
675
|
+
@end
|
|
676
|
+
|
|
677
|
+
SWIFT_CLASS_NAMED("MasonDimensionSizeCompat")
|
|
678
|
+
@interface MasonDimensionSizeCompat : NSObject
|
|
679
|
+
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull width;
|
|
680
|
+
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull height;
|
|
681
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
682
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
683
|
+
@end
|
|
684
|
+
|
|
685
|
+
@class MasonStyle;
|
|
686
|
+
@class MasonNode;
|
|
687
|
+
@class UIView;
|
|
688
|
+
SWIFT_PROTOCOL("_TtP9MasonCore16MasonElementObjc_")
|
|
689
|
+
@protocol MasonElementObjc <NSObject>
|
|
690
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
691
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
692
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
693
|
+
@end
|
|
694
|
+
|
|
695
|
+
@class MasonEventOptions;
|
|
696
|
+
SWIFT_CLASS_NAMED("MasonEvent")
|
|
697
|
+
@interface MasonEvent : NSObject
|
|
698
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull type;
|
|
699
|
+
@property (nonatomic, readonly) BOOL bubbles;
|
|
700
|
+
@property (nonatomic, readonly) BOOL cancelable;
|
|
701
|
+
@property (nonatomic, readonly) BOOL isComposing;
|
|
702
|
+
@property (nonatomic, readonly) double timeStamp;
|
|
703
|
+
@property (nonatomic, readonly) BOOL defaultPrevented;
|
|
704
|
+
@property (nonatomic, readonly) BOOL propagationStopped;
|
|
705
|
+
@property (nonatomic, readonly) BOOL immediatePropagationStopped;
|
|
706
|
+
@property (nonatomic, readonly, strong) id _Nullable target;
|
|
707
|
+
@property (nonatomic, readonly, strong) id _Nullable currentTarget;
|
|
708
|
+
- (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options OBJC_DESIGNATED_INITIALIZER;
|
|
709
|
+
- (void)preventDefault;
|
|
710
|
+
- (void)stopPropagation;
|
|
711
|
+
- (void)stopImmediatePropagation;
|
|
712
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
713
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
714
|
+
@end
|
|
715
|
+
|
|
716
|
+
SWIFT_CLASS_NAMED("MasonEventOptions")
|
|
717
|
+
@interface MasonEventOptions : NSObject
|
|
718
|
+
@property (nonatomic) BOOL isComposing;
|
|
719
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
720
|
+
- (nonnull instancetype)initWithIsComposing:(BOOL)isComposing OBJC_DESIGNATED_INITIALIZER;
|
|
721
|
+
@end
|
|
722
|
+
|
|
723
|
+
@class NSURL;
|
|
724
|
+
SWIFT_CLASS_NAMED("MasonFileInputEvent")
|
|
725
|
+
@interface MasonFileInputEvent : MasonEvent
|
|
726
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable data;
|
|
727
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable inputType;
|
|
728
|
+
@property (nonatomic, readonly, copy) NSArray<NSURL *> * _Nonnull rawData;
|
|
729
|
+
- (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;
|
|
730
|
+
- (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options SWIFT_UNAVAILABLE;
|
|
731
|
+
@end
|
|
732
|
+
|
|
733
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonFloat, "MasonFloat", open) {
|
|
734
|
+
MasonFloatNone = 0,
|
|
735
|
+
MasonFloatLeft = 1,
|
|
736
|
+
MasonFloatRight = 2,
|
|
737
|
+
};
|
|
738
|
+
|
|
739
|
+
/// CSS <code>appearance</code>.
|
|
740
|
+
typedef SWIFT_ENUM_NAMED(int8_t, MasonInputAppearance, "MasonInputAppearance", open) {
|
|
741
|
+
MasonInputAppearanceAuto = 0,
|
|
742
|
+
MasonInputAppearanceNone = 1,
|
|
743
|
+
};
|
|
744
|
+
|
|
745
|
+
SWIFT_CLASS_NAMED("MasonInputEvent")
|
|
746
|
+
@interface MasonInputEvent : MasonEvent
|
|
747
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable data;
|
|
748
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable inputType;
|
|
749
|
+
- (nonnull instancetype)initWithType:(NSString * _Nonnull)type data:(NSString * _Nullable)inputData inputType:(NSString * _Nullable)masonInputType options:(MasonEventOptions * _Nullable)options OBJC_DESIGNATED_INITIALIZER;
|
|
750
|
+
- (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options SWIFT_UNAVAILABLE;
|
|
751
|
+
@end
|
|
752
|
+
|
|
753
|
+
typedef SWIFT_ENUM_NAMED(int8_t, MasonInputType, "MasonInputType", open) {
|
|
754
|
+
MasonInputTypeText = 0,
|
|
755
|
+
MasonInputTypeButton = 1,
|
|
756
|
+
MasonInputTypeCheckbox = 2,
|
|
757
|
+
MasonInputTypeEmail = 3,
|
|
758
|
+
MasonInputTypePassword = 4,
|
|
759
|
+
MasonInputTypeDate = 5,
|
|
760
|
+
MasonInputTypeRadio = 6,
|
|
761
|
+
MasonInputTypeNumber = 7,
|
|
762
|
+
MasonInputTypeRange = 8,
|
|
763
|
+
MasonInputTypeTel = 9,
|
|
764
|
+
MasonInputTypeUrl = 10,
|
|
765
|
+
MasonInputTypeColor = 11,
|
|
766
|
+
MasonInputTypeFile = 12,
|
|
767
|
+
MasonInputTypeSubmit = 13,
|
|
768
|
+
MasonInputTypeSearch = 14,
|
|
769
|
+
MasonInputTypeTime = 15,
|
|
770
|
+
MasonInputTypeDatetimeLocal = 16,
|
|
771
|
+
MasonInputTypeMonth = 17,
|
|
772
|
+
MasonInputTypeWeek = 18,
|
|
773
|
+
MasonInputTypeReset = 19,
|
|
774
|
+
};
|
|
775
|
+
|
|
776
|
+
@class MasonRectHelper;
|
|
777
|
+
@class MasonSizeHelper;
|
|
778
|
+
SWIFT_CLASS_NAMED("MasonLayout")
|
|
779
|
+
@interface MasonLayout : NSObject
|
|
780
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonLayout * _Nonnull empty;)
|
|
781
|
+
+ (MasonLayout * _Nonnull)empty SWIFT_WARN_UNUSED_RESULT;
|
|
782
|
+
@property (nonatomic, readonly) float x;
|
|
783
|
+
@property (nonatomic, readonly) float y;
|
|
784
|
+
@property (nonatomic, readonly) float width;
|
|
785
|
+
@property (nonatomic, readonly) float height;
|
|
786
|
+
@property (nonatomic, readonly) float borderTop;
|
|
787
|
+
@property (nonatomic, readonly) float borderRight;
|
|
788
|
+
@property (nonatomic, readonly) float borderBottom;
|
|
789
|
+
@property (nonatomic, readonly) float borderLeft;
|
|
790
|
+
@property (nonatomic, readonly) float marginTop;
|
|
791
|
+
@property (nonatomic, readonly) float marginRight;
|
|
792
|
+
@property (nonatomic, readonly) float marginBottom;
|
|
793
|
+
@property (nonatomic, readonly) float marginLeft;
|
|
794
|
+
@property (nonatomic, readonly) float paddingTop;
|
|
795
|
+
@property (nonatomic, readonly) float paddingRight;
|
|
796
|
+
@property (nonatomic, readonly) float paddingBottom;
|
|
797
|
+
@property (nonatomic, readonly) float paddingLeft;
|
|
798
|
+
@property (nonatomic, readonly) float contentWidth;
|
|
799
|
+
@property (nonatomic, readonly) float contentHeight;
|
|
800
|
+
@property (nonatomic, readonly) float scrollbarWidth;
|
|
801
|
+
@property (nonatomic, readonly) float scrollbarHeight;
|
|
802
|
+
@property (nonatomic, readonly) BOOL sizeIsEmpty;
|
|
803
|
+
@property (nonatomic, readonly) BOOL paddingIsEmpty;
|
|
804
|
+
@property (nonatomic, readonly) BOOL marginIsEmpty;
|
|
805
|
+
@property (nonatomic, readonly) BOOL borderIsEmpty;
|
|
806
|
+
@property (nonatomic, readonly, strong) MasonRectHelper * _Nonnull border;
|
|
807
|
+
@property (nonatomic, readonly, strong) MasonRectHelper * _Nonnull margin;
|
|
808
|
+
@property (nonatomic, readonly, strong) MasonRectHelper * _Nonnull padding;
|
|
809
|
+
@property (nonatomic, readonly, strong) MasonSizeHelper * _Nonnull contentSize;
|
|
810
|
+
@property (nonatomic, readonly, strong) MasonSizeHelper * _Nonnull scrollbarSize;
|
|
811
|
+
@property (nonatomic, readonly) BOOL hasChildren;
|
|
812
|
+
@property (nonatomic, readonly, copy) NSArray<MasonLayout *> * _Nonnull children;
|
|
813
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
814
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
815
|
+
@end
|
|
816
|
+
|
|
817
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonLengthPercentageAutoCompatType)
|
|
818
|
+
SWIFT_CLASS_NAMED("MasonLengthPercentageAutoCompat")
|
|
819
|
+
@interface MasonLengthPercentageAutoCompat : NSObject
|
|
820
|
+
- (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
|
|
821
|
+
- (nonnull instancetype)initWithPercent:(float)percent OBJC_DESIGNATED_INITIALIZER;
|
|
822
|
+
@property (nonatomic, readonly) enum MasonLengthPercentageAutoCompatType type;
|
|
823
|
+
@property (nonatomic, readonly) float value;
|
|
824
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
825
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
|
|
826
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonLengthPercentageAutoCompat * _Nonnull Auto;)
|
|
827
|
+
+ (MasonLengthPercentageAutoCompat * _Nonnull)Auto SWIFT_WARN_UNUSED_RESULT;
|
|
828
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonLengthPercentageAutoCompat * _Nonnull Zero;)
|
|
829
|
+
+ (MasonLengthPercentageAutoCompat * _Nonnull)Zero SWIFT_WARN_UNUSED_RESULT;
|
|
830
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
831
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
832
|
+
@end
|
|
833
|
+
|
|
834
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonLengthPercentageAutoCompatType, "MasonLengthPercentageAutoCompatType", open) {
|
|
835
|
+
MasonLengthPercentageAutoCompatTypeAuto = 0,
|
|
836
|
+
MasonLengthPercentageAutoCompatTypePoints = 1,
|
|
837
|
+
MasonLengthPercentageAutoCompatTypePercent = 2,
|
|
838
|
+
};
|
|
839
|
+
|
|
840
|
+
SWIFT_CLASS_NAMED("MasonLengthPercentageAutoPointCompat")
|
|
841
|
+
@interface MasonLengthPercentageAutoPointCompat : NSObject
|
|
842
|
+
@property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull x;
|
|
843
|
+
@property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull y;
|
|
844
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
845
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
846
|
+
@end
|
|
847
|
+
|
|
848
|
+
SWIFT_CLASS_NAMED("MasonLengthPercentageAutoRectCompat")
|
|
849
|
+
@interface MasonLengthPercentageAutoRectCompat : NSObject
|
|
850
|
+
@property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull left;
|
|
851
|
+
@property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull right;
|
|
852
|
+
@property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull top;
|
|
853
|
+
@property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull bottom;
|
|
854
|
+
- (nonnull instancetype)init:(MasonLengthPercentageAutoCompat * _Nonnull)left :(MasonLengthPercentageAutoCompat * _Nonnull)top :(MasonLengthPercentageAutoCompat * _Nonnull)right :(MasonLengthPercentageAutoCompat * _Nonnull)bottom OBJC_DESIGNATED_INITIALIZER;
|
|
855
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
856
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
857
|
+
@end
|
|
858
|
+
|
|
859
|
+
SWIFT_CLASS_NAMED("MasonLengthPercentageAutoSizeCompat")
|
|
860
|
+
@interface MasonLengthPercentageAutoSizeCompat : NSObject
|
|
861
|
+
@property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull width;
|
|
862
|
+
@property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull height;
|
|
863
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
864
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
865
|
+
@end
|
|
866
|
+
|
|
867
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonLengthPercentageCompatType)
|
|
868
|
+
SWIFT_CLASS_NAMED("MasonLengthPercentageCompat")
|
|
869
|
+
@interface MasonLengthPercentageCompat : NSObject
|
|
870
|
+
- (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
|
|
871
|
+
- (nonnull instancetype)initWithPercent:(float)percent OBJC_DESIGNATED_INITIALIZER;
|
|
872
|
+
@property (nonatomic, readonly) enum MasonLengthPercentageCompatType type;
|
|
873
|
+
@property (nonatomic, readonly) float value;
|
|
874
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
875
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
|
|
876
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonLengthPercentageCompat * _Nonnull Zero;)
|
|
877
|
+
+ (MasonLengthPercentageCompat * _Nonnull)Zero SWIFT_WARN_UNUSED_RESULT;
|
|
878
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
879
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
880
|
+
@end
|
|
881
|
+
|
|
882
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonLengthPercentageCompatType, "MasonLengthPercentageCompatType", open) {
|
|
883
|
+
MasonLengthPercentageCompatTypePoints = 0,
|
|
884
|
+
MasonLengthPercentageCompatTypePercent = 1,
|
|
885
|
+
};
|
|
886
|
+
|
|
887
|
+
SWIFT_CLASS_NAMED("MasonLengthPercentagePointCompat")
|
|
888
|
+
@interface MasonLengthPercentagePointCompat : NSObject
|
|
889
|
+
@property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull x;
|
|
890
|
+
@property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull y;
|
|
891
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
892
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
893
|
+
@end
|
|
894
|
+
|
|
895
|
+
SWIFT_CLASS_NAMED("MasonLengthPercentageRectCompat")
|
|
896
|
+
@interface MasonLengthPercentageRectCompat : NSObject
|
|
897
|
+
@property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull left;
|
|
898
|
+
@property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull right;
|
|
899
|
+
@property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull top;
|
|
900
|
+
@property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull bottom;
|
|
901
|
+
- (nonnull instancetype)init:(MasonLengthPercentageCompat * _Nonnull)left :(MasonLengthPercentageCompat * _Nonnull)right :(MasonLengthPercentageCompat * _Nonnull)top :(MasonLengthPercentageCompat * _Nonnull)bottom OBJC_DESIGNATED_INITIALIZER;
|
|
902
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
903
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
904
|
+
@end
|
|
905
|
+
|
|
906
|
+
SWIFT_CLASS_NAMED("MasonLengthPercentageSizeCompat")
|
|
907
|
+
@interface MasonLengthPercentageSizeCompat : NSObject
|
|
908
|
+
@property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull width;
|
|
909
|
+
@property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull height;
|
|
910
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
911
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
912
|
+
@end
|
|
913
|
+
|
|
914
|
+
@class MasonMouseEventOptions;
|
|
915
|
+
SWIFT_CLASS_NAMED("MasonMouseEvent")
|
|
916
|
+
@interface MasonMouseEvent : MasonEvent
|
|
917
|
+
@property (nonatomic, readonly) NSInteger button;
|
|
918
|
+
@property (nonatomic, readonly) NSInteger buttons;
|
|
919
|
+
@property (nonatomic, readonly) float clientX;
|
|
920
|
+
@property (nonatomic, readonly) float clientY;
|
|
921
|
+
@property (nonatomic, readonly) BOOL ctrlKey;
|
|
922
|
+
@property (nonatomic, readonly) BOOL shiftKey;
|
|
923
|
+
@property (nonatomic, readonly) BOOL altKey;
|
|
924
|
+
@property (nonatomic, readonly) BOOL metaKey;
|
|
925
|
+
@property (nonatomic, readonly) NSInteger detail;
|
|
926
|
+
@property (nonatomic, readonly) float screenX;
|
|
927
|
+
@property (nonatomic, readonly) float screenY;
|
|
928
|
+
@property (nonatomic, readonly, strong) id _Nullable relatedTarget;
|
|
929
|
+
@property (nonatomic, readonly, strong) id _Nullable region;
|
|
930
|
+
@property (nonatomic, readonly) NSInteger movementX;
|
|
931
|
+
@property (nonatomic, readonly) NSInteger movementY;
|
|
932
|
+
@property (nonatomic, readonly) float pageX;
|
|
933
|
+
@property (nonatomic, readonly) float pageY;
|
|
934
|
+
- (nonnull instancetype)initWithType:(NSString * _Nonnull)type options:(MasonMouseEventOptions * _Nullable)options OBJC_DESIGNATED_INITIALIZER;
|
|
935
|
+
- (nonnull instancetype)initWithType:(NSString * _Nonnull)eventType bubbles:(BOOL)eventBubbles cancelable:(BOOL)eventCancelable options:(MasonEventOptions * _Nullable)options SWIFT_UNAVAILABLE;
|
|
936
|
+
@end
|
|
937
|
+
|
|
938
|
+
SWIFT_CLASS_NAMED("MasonMouseEventOptions")
|
|
939
|
+
@interface MasonMouseEventOptions : MasonEventOptions
|
|
940
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
941
|
+
- (nonnull instancetype)initWithIsComposing:(BOOL)isComposing OBJC_DESIGNATED_INITIALIZER;
|
|
942
|
+
@end
|
|
943
|
+
|
|
944
|
+
@class NSCMason;
|
|
945
|
+
SWIFT_ENUM_FWD_DECL(uint16_t, PseudoState)
|
|
946
|
+
@class NSMutableData;
|
|
947
|
+
SWIFT_ENUM_FWD_DECL(int32_t, MasonNodeType)
|
|
948
|
+
SWIFT_CLASS_NAMED("MasonNode")
|
|
949
|
+
@interface MasonNode : NSObject
|
|
950
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
951
|
+
@property (nonatomic, copy) void (^ _Nullable onNodeAttached)(void);
|
|
952
|
+
@property (nonatomic, copy) void (^ _Nullable onNodeDetached)(void);
|
|
953
|
+
@property (nonatomic, readonly) void * _Nullable nativePtr;
|
|
954
|
+
@property (nonatomic, readonly, strong) MasonLayout * _Nonnull computedLayout;
|
|
955
|
+
/// Set to true by applyToView after Mason has applied layout to this node’s view.
|
|
956
|
+
/// NativeScript can read this to skip redundant layout passes for Mason-managed children.
|
|
957
|
+
@property (nonatomic) BOOL isLayoutValid;
|
|
958
|
+
/// CSS <code>touch-action</code> as pan flags (1 pan-x, 2 pan-y, 4 pinch-zoom; 7 is
|
|
959
|
+
/// <code>auto</code>). A Mason scroll view only pans along an axis every element from
|
|
960
|
+
/// the touched one up to it allows.
|
|
961
|
+
@property (nonatomic) NSInteger touchAction;
|
|
962
|
+
- (void)setPseudoString:(uint16_t)pseudoState :(NSString * _Nonnull)key :(NSString * _Nonnull)value;
|
|
963
|
+
- (NSString * _Nullable)getPseudoString:(uint16_t)pseudoState :(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT;
|
|
964
|
+
- (void)clearPseudoString:(uint16_t)pseudoState :(NSString * _Nonnull)key;
|
|
965
|
+
/// Current active pseudo state bitmask read from the native state buffer.
|
|
966
|
+
@property (nonatomic, readonly) uint16_t pseudoMask;
|
|
967
|
+
- (BOOL)hasPseudo:(enum PseudoState)state SWIFT_WARN_UNUSED_RESULT;
|
|
968
|
+
- (void)setPseudo:(enum PseudoState)state :(BOOL)enabled autoDirty:(BOOL)autoDirty;
|
|
969
|
+
/// Get existing pseudo style buffer (read-only).
|
|
970
|
+
- (NSMutableData * _Nullable)getPseudoBuffer:(uint16_t)flags SWIFT_WARN_UNUSED_RESULT;
|
|
971
|
+
/// Prepare (create if needed) a mutable pseudo style buffer.
|
|
972
|
+
/// Clones from base style on first call for a given state.
|
|
973
|
+
- (NSMutableData * _Nonnull)preparePseudoBuffer:(uint16_t)flags SWIFT_WARN_UNUSED_RESULT;
|
|
974
|
+
- (MasonNode * _Nonnull)getRootNode SWIFT_WARN_UNUSED_RESULT;
|
|
975
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nullable parent;
|
|
976
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nullable parentNode;
|
|
977
|
+
@property (nonatomic, readonly) enum MasonNodeType type;
|
|
978
|
+
- (NSArray<MasonNode *> * _Nonnull)getChildren SWIFT_WARN_UNUSED_RESULT;
|
|
979
|
+
- (NSArray<MasonNode *> * _Nonnull)getLayoutChildren SWIFT_WARN_UNUSED_RESULT;
|
|
980
|
+
@property (nonatomic) BOOL inBatch;
|
|
981
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes OBJC_DESIGNATED_INITIALIZER;
|
|
982
|
+
@property (nonatomic, readonly) BOOL isDirty;
|
|
983
|
+
- (void)markDirty;
|
|
984
|
+
- (UIView * _Nullable)getRoot SWIFT_WARN_UNUSED_RESULT;
|
|
985
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
986
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
987
|
+
@end
|
|
988
|
+
|
|
989
|
+
@interface MasonNode (SWIFT_EXTENSION(MasonCore))
|
|
990
|
+
- (void)appendChild:(MasonNode * _Nonnull)child;
|
|
991
|
+
@end
|
|
992
|
+
|
|
993
|
+
@interface MasonNode (SWIFT_EXTENSION(MasonCore))
|
|
994
|
+
- (void)setChildrenWithValue:(NSArray<MasonNode *> * _Nonnull)value;
|
|
995
|
+
- (void)removeAllChildren;
|
|
996
|
+
@end
|
|
997
|
+
|
|
998
|
+
typedef SWIFT_ENUM_NAMED(int32_t, MasonNodeType, "MasonNodeType", open) {
|
|
999
|
+
MasonNodeTypeElement = 0,
|
|
1000
|
+
MasonNodeTypeText = 1,
|
|
1001
|
+
MasonNodeTypeDocument = 2,
|
|
1002
|
+
};
|
|
1003
|
+
|
|
1004
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonOverflow)
|
|
1005
|
+
SWIFT_CLASS_NAMED("MasonOverflowPointCompat")
|
|
1006
|
+
@interface MasonOverflowPointCompat : NSObject
|
|
1007
|
+
@property (nonatomic) enum MasonOverflow x;
|
|
1008
|
+
@property (nonatomic) enum MasonOverflow y;
|
|
1009
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
1010
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1011
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1012
|
+
@end
|
|
1013
|
+
|
|
1014
|
+
SWIFT_CLASS_NAMED("MasonRectHelper")
|
|
1015
|
+
@interface MasonRectHelper : NSObject
|
|
1016
|
+
@property (nonatomic, readonly) float top;
|
|
1017
|
+
@property (nonatomic, readonly) float right;
|
|
1018
|
+
@property (nonatomic, readonly) float bottom;
|
|
1019
|
+
@property (nonatomic, readonly) float left;
|
|
1020
|
+
- (BOOL)isEmpty SWIFT_WARN_UNUSED_RESULT;
|
|
1021
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1022
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1023
|
+
@end
|
|
1024
|
+
|
|
1025
|
+
SWIFT_CLASS_NAMED("MasonSizeHelper")
|
|
1026
|
+
@interface MasonSizeHelper : NSObject
|
|
1027
|
+
@property (nonatomic, readonly) float width;
|
|
1028
|
+
@property (nonatomic, readonly) float height;
|
|
1029
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1030
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1031
|
+
@end
|
|
1032
|
+
|
|
1033
|
+
@class NSCFontFace;
|
|
1034
|
+
@class MasonVerticalAlignValue;
|
|
1035
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonObjectFit)
|
|
1036
|
+
@class UIColor;
|
|
1037
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextJustify)
|
|
1038
|
+
@class MasonTextOverflowCompat;
|
|
1039
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextTransform)
|
|
1040
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonWhiteSpace)
|
|
1041
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextWrap)
|
|
1042
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonPosition)
|
|
1043
|
+
SWIFT_ENUM_FWD_DECL(NSInteger, MasonTextAlign)
|
|
1044
|
+
SWIFT_CLASS_NAMED("MasonStyle")
|
|
1045
|
+
@interface MasonStyle : NSObject
|
|
1046
|
+
@property (nonatomic, readonly, strong) NSCFontFace * _Null_unspecified font;
|
|
1047
|
+
- (void)prepareMut;
|
|
1048
|
+
@property (nonatomic, readonly, strong) NSMutableData * _Nonnull values;
|
|
1049
|
+
- (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)node OBJC_DESIGNATED_INITIALIZER;
|
|
1050
|
+
@property (nonatomic) enum MasonListStylePosition listStylePosition;
|
|
1051
|
+
@property (nonatomic) enum MasonListStyleType listStyleType;
|
|
1052
|
+
@property (nonatomic) int32_t zIndex;
|
|
1053
|
+
@property (nonatomic, strong) MasonVerticalAlignValue * _Nonnull verticalAlign;
|
|
1054
|
+
@property (nonatomic) enum MasonObjectFit objectFit;
|
|
1055
|
+
@property (nonatomic, getter=float, setter=setFloat:) enum MasonFloat float_;
|
|
1056
|
+
@property (nonatomic) enum MasonClear clear;
|
|
1057
|
+
@property (nonatomic) uint32_t color;
|
|
1058
|
+
- (void)setColorWithUi:(UIColor * _Nonnull)color;
|
|
1059
|
+
- (void)setColorWithCss:(NSString * _Nonnull)color;
|
|
1060
|
+
@property (nonatomic, copy) NSString * _Nonnull filter;
|
|
1061
|
+
@property (nonatomic, copy) NSString * _Nonnull background;
|
|
1062
|
+
@property (nonatomic, copy) NSString * _Nonnull backgroundImage;
|
|
1063
|
+
@property (nonatomic, copy) NSString * _Nonnull backgroundRepeat;
|
|
1064
|
+
@property (nonatomic, copy) NSString * _Nonnull backgroundPosition;
|
|
1065
|
+
@property (nonatomic, copy) NSString * _Nonnull backgroundSize;
|
|
1066
|
+
@property (nonatomic, copy) NSString * _Nonnull backgroundClip;
|
|
1067
|
+
@property (nonatomic, copy) NSString * _Nonnull backgroundPositionX;
|
|
1068
|
+
@property (nonatomic, copy) NSString * _Nonnull backgroundPositionY;
|
|
1069
|
+
@property (nonatomic, copy) NSString * _Nonnull backgroundOrigin;
|
|
1070
|
+
@property (nonatomic, copy) NSString * _Nonnull backgroundAttachment;
|
|
1071
|
+
@property (nonatomic, copy) NSString * _Nonnull backgroundBlendMode;
|
|
1072
|
+
@property (nonatomic) uint32_t backgroundColor;
|
|
1073
|
+
- (NSString * _Nonnull)getBackgroundColor SWIFT_WARN_UNUSED_RESULT;
|
|
1074
|
+
- (void)setBackgroundColorWithString:(NSString * _Nonnull)color;
|
|
1075
|
+
- (void)setBackgroundColorWithUi:(UIColor * _Nonnull)color;
|
|
1076
|
+
- (void)setLineHeight:(float)value :(BOOL)isRelative;
|
|
1077
|
+
@property (nonatomic) float lineHeight;
|
|
1078
|
+
@property (nonatomic) float letterSpacing;
|
|
1079
|
+
/// line-clamp: the most lines a text shows, 0 for none.
|
|
1080
|
+
@property (nonatomic) int32_t lineClamp;
|
|
1081
|
+
@property (nonatomic, copy) NSString * _Nonnull fontVariantNumericString;
|
|
1082
|
+
@property (nonatomic) uint32_t decorationColor;
|
|
1083
|
+
- (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
|
|
1084
|
+
- (void)setDecorationColorWithCss:(NSString * _Nonnull)color;
|
|
1085
|
+
@property (nonatomic) enum MasonDecorationLine decorationLine;
|
|
1086
|
+
@property (nonatomic) enum MasonDecorationStyle decorationStyle;
|
|
1087
|
+
/// Device px; 0 is <code>auto</code> (the font’s underline thickness).
|
|
1088
|
+
@property (nonatomic) float decorationThickness;
|
|
1089
|
+
@property (nonatomic, copy) NSString * _Nonnull textDecorationLine;
|
|
1090
|
+
@property (nonatomic, copy) NSString * _Nonnull textDecorationStyle;
|
|
1091
|
+
@property (nonatomic, copy) NSString * _Nonnull textDecorationColor;
|
|
1092
|
+
/// <code>text-decoration</code> shorthand: line keywords, a style, a color and a
|
|
1093
|
+
/// thickness in any order. Omitted longhands reset, as on the web.
|
|
1094
|
+
- (void)setTextDecoration:(NSString * _Nonnull)css;
|
|
1095
|
+
- (void)setBorderColor:(NSString * _Nonnull)css;
|
|
1096
|
+
- (void)applyListStyleType:(NSString * _Nonnull)css;
|
|
1097
|
+
- (void)applyListStylePosition:(NSString * _Nonnull)css;
|
|
1098
|
+
@property (nonatomic) float fontSize;
|
|
1099
|
+
- (void)setFontStyle:(enum MasonFontStyle)style :(int32_t)slant;
|
|
1100
|
+
@property (nonatomic) enum MasonTextJustify textJustify;
|
|
1101
|
+
@property (nonatomic) enum MasonFontStyle fontStyle;
|
|
1102
|
+
@property (nonatomic, copy) NSString * _Nonnull fontFamily;
|
|
1103
|
+
@property (nonatomic, copy) NSString * _Nonnull fontWeight;
|
|
1104
|
+
@property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
|
|
1105
|
+
@property (nonatomic) enum MasonTextTransform textTransform;
|
|
1106
|
+
@property (nonatomic) enum MasonWhiteSpace whiteSpace;
|
|
1107
|
+
@property (nonatomic) enum MasonTextWrap textWrap;
|
|
1108
|
+
@property (nonatomic) enum MasonDisplay display;
|
|
1109
|
+
@property (nonatomic) enum MasonPosition position;
|
|
1110
|
+
@property (nonatomic) enum MasonDirection direction;
|
|
1111
|
+
@property (nonatomic) enum MasonFlexDirection flexDirection;
|
|
1112
|
+
@property (nonatomic) enum MasonFlexWrap flexWrap;
|
|
1113
|
+
@property (nonatomic, strong) MasonOverflowPointCompat * _Nonnull overflowCompat;
|
|
1114
|
+
@property (nonatomic) enum MasonOverflow overflowX;
|
|
1115
|
+
@property (nonatomic) enum MasonOverflow overflowY;
|
|
1116
|
+
@property (nonatomic) enum MasonAlignItems alignItems;
|
|
1117
|
+
@property (nonatomic) enum MasonAlignSelf alignSelf;
|
|
1118
|
+
@property (nonatomic) enum MasonAlignContent alignContent;
|
|
1119
|
+
@property (nonatomic) enum MasonJustifyItems justifyItems;
|
|
1120
|
+
@property (nonatomic) enum MasonJustifySelf justifySelf;
|
|
1121
|
+
@property (nonatomic) enum MasonJustifyContent justifyContent;
|
|
1122
|
+
@property (nonatomic, strong) MasonLengthPercentageAutoRectCompat * _Nonnull insetCompat;
|
|
1123
|
+
- (void)setInsetLeft:(float)value :(NSInteger)type;
|
|
1124
|
+
- (void)setInsetRight:(float)value :(NSInteger)type;
|
|
1125
|
+
- (void)setInsetTop:(float)value :(NSInteger)type;
|
|
1126
|
+
- (void)setInsetBottom:(float)value :(NSInteger)type;
|
|
1127
|
+
- (void)setInsetWithValueType:(float)value :(NSInteger)type;
|
|
1128
|
+
@property (nonatomic, strong) MasonLengthPercentageAutoRectCompat * _Nonnull marginCompat;
|
|
1129
|
+
- (void)setMarginLeft:(float)value :(NSInteger)type;
|
|
1130
|
+
- (void)setMarginRight:(float)value :(NSInteger)type;
|
|
1131
|
+
- (void)setMarginTop:(float)value :(NSInteger)type;
|
|
1132
|
+
- (void)setMarginBottom:(float)value :(NSInteger)type;
|
|
1133
|
+
- (void)setMarginWithValueType:(float)value :(NSInteger)type;
|
|
1134
|
+
@property (nonatomic, strong) MasonLengthPercentageRectCompat * _Nonnull paddingCompat;
|
|
1135
|
+
- (void)setPaddingLeft:(float)value :(NSInteger)type;
|
|
1136
|
+
- (void)setPaddingRight:(float)value :(NSInteger)type;
|
|
1137
|
+
- (void)setPaddingTop:(float)value :(NSInteger)type;
|
|
1138
|
+
- (void)setPaddingBottom:(float)value :(NSInteger)type;
|
|
1139
|
+
- (void)setPaddingWithValueType:(float)value :(NSInteger)type;
|
|
1140
|
+
@property (nonatomic, copy) NSString * _Nonnull textShadow;
|
|
1141
|
+
@property (nonatomic, copy) NSString * _Nonnull boxShadow;
|
|
1142
|
+
@property (nonatomic, copy) NSString * _Nonnull borderRadius;
|
|
1143
|
+
@property (nonatomic, copy) NSString * _Nonnull cornerShape;
|
|
1144
|
+
@property (nonatomic, copy) NSString * _Nonnull cornerShapeTopLeft;
|
|
1145
|
+
@property (nonatomic, copy) NSString * _Nonnull cornerShapeTopRight;
|
|
1146
|
+
@property (nonatomic, copy) NSString * _Nonnull cornerShapeBottomRight;
|
|
1147
|
+
@property (nonatomic, copy) NSString * _Nonnull cornerShapeBottomLeft;
|
|
1148
|
+
@property (nonatomic, copy) NSString * _Nonnull border;
|
|
1149
|
+
@property (nonatomic, copy) NSString * _Nonnull paddingCss;
|
|
1150
|
+
@property (nonatomic, copy) NSString * _Nonnull marginCss;
|
|
1151
|
+
@property (nonatomic, copy) NSString * _Nonnull insetCss;
|
|
1152
|
+
@property (nonatomic, copy) NSString * _Nonnull borderLeft;
|
|
1153
|
+
@property (nonatomic, copy) NSString * _Nonnull borderTop;
|
|
1154
|
+
@property (nonatomic, copy) NSString * _Nonnull borderRight;
|
|
1155
|
+
@property (nonatomic, copy) NSString * _Nonnull borderBottom;
|
|
1156
|
+
@property (nonatomic, strong) MasonLengthPercentageRectCompat * _Nonnull borderWidthCompat;
|
|
1157
|
+
- (void)setBorderLeftWidth:(float)value :(NSInteger)type;
|
|
1158
|
+
- (void)setBorderRightWidth:(float)value :(NSInteger)type;
|
|
1159
|
+
- (void)setBorderTopWidth:(float)value :(NSInteger)type;
|
|
1160
|
+
- (void)setBorderBottomWidth:(float)value :(NSInteger)type;
|
|
1161
|
+
- (void)setBorderWidth:(float)value :(NSInteger)type;
|
|
1162
|
+
@property (nonatomic) float flexGrow;
|
|
1163
|
+
@property (nonatomic) float flexShrink;
|
|
1164
|
+
- (void)setFlexBasis:(float)value :(NSInteger)type;
|
|
1165
|
+
- (void)setScrollBarWidth:(float)value;
|
|
1166
|
+
@property (nonatomic) enum MasonAlign align;
|
|
1167
|
+
@property (nonatomic) enum MasonTextAlign textAlign;
|
|
1168
|
+
@property (nonatomic) enum MasonBoxSizing boxSizing;
|
|
1169
|
+
@property (nonatomic, strong) MasonDimensionSizeCompat * _Nonnull minSizeCompat;
|
|
1170
|
+
- (void)setMinSizeWidth:(float)value :(NSInteger)type;
|
|
1171
|
+
- (void)setMinSizeHeight:(float)value :(NSInteger)type;
|
|
1172
|
+
- (void)setMinSizeWidthHeight:(float)value :(NSInteger)type;
|
|
1173
|
+
@property (nonatomic, strong) MasonDimensionSizeCompat * _Nonnull sizeCompat;
|
|
1174
|
+
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull sizeCompatWidth;
|
|
1175
|
+
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull sizeCompatHeight;
|
|
1176
|
+
- (void)setSizeWidth:(float)value :(NSInteger)type;
|
|
1177
|
+
- (void)setSizeHeight:(float)value :(NSInteger)type;
|
|
1178
|
+
- (void)setSizeWidthHeight:(float)value :(NSInteger)type;
|
|
1179
|
+
- (void)setSizePoints:(float)width :(float)height;
|
|
1180
|
+
@property (nonatomic, strong) MasonDimensionSizeCompat * _Nonnull maxSizeCompat;
|
|
1181
|
+
- (void)setMaxSizeWidth:(float)value :(NSInteger)type;
|
|
1182
|
+
- (void)setMaxSizeHeight:(float)value :(NSInteger)type;
|
|
1183
|
+
- (void)setMaxSizeWidthHeight:(float)value :(NSInteger)type;
|
|
1184
|
+
@property (nonatomic, strong) MasonLengthPercentageSizeCompat * _Nonnull gapCompat;
|
|
1185
|
+
- (void)setGapRow:(float)value :(NSInteger)type;
|
|
1186
|
+
- (void)setGapColumn:(float)value :(NSInteger)type;
|
|
1187
|
+
- (void)setRowGap:(float)value :(NSInteger)type;
|
|
1188
|
+
- (void)setColumnGap:(float)value :(NSInteger)type;
|
|
1189
|
+
@property (nonatomic, copy) NSString * _Nonnull gridArea;
|
|
1190
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateAreas;
|
|
1191
|
+
@property (nonatomic, copy) NSString * _Nonnull transform;
|
|
1192
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoRows;
|
|
1193
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoColumns;
|
|
1194
|
+
@property (nonatomic) enum MasonGridAutoFlowWrap gridAutoFlow;
|
|
1195
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumn;
|
|
1196
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnStart;
|
|
1197
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnEnd;
|
|
1198
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRow;
|
|
1199
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowStart;
|
|
1200
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowEnd;
|
|
1201
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateRows;
|
|
1202
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateColumns;
|
|
1203
|
+
@property (nonatomic, copy) NSString * _Nonnull borderImage;
|
|
1204
|
+
@property (nonatomic, copy) NSString * _Nonnull backdropFilter;
|
|
1205
|
+
@property (nonatomic, copy) NSString * _Nonnull maskImage;
|
|
1206
|
+
@property (nonatomic, copy) NSString * _Nonnull maskSize;
|
|
1207
|
+
@property (nonatomic, copy) NSString * _Nonnull maskPosition;
|
|
1208
|
+
@property (nonatomic, copy) NSString * _Nonnull maskRepeat;
|
|
1209
|
+
@property (nonatomic, copy) NSString * _Nonnull maskOrigin;
|
|
1210
|
+
@property (nonatomic, copy) NSString * _Nonnull maskClip;
|
|
1211
|
+
@property (nonatomic, copy) NSString * _Nonnull maskMode;
|
|
1212
|
+
@property (nonatomic, copy) NSString * _Nonnull maskComposite;
|
|
1213
|
+
@property (nonatomic, copy) NSString * _Nonnull clipPath;
|
|
1214
|
+
@property (nonatomic, copy) NSString * _Nonnull maskBorderSource;
|
|
1215
|
+
@property (nonatomic, copy) NSString * _Nonnull maskBorderSlice;
|
|
1216
|
+
@property (nonatomic, copy) NSString * _Nonnull maskBorderWidth;
|
|
1217
|
+
@property (nonatomic, copy) NSString * _Nonnull maskBorderOutset;
|
|
1218
|
+
@property (nonatomic, copy) NSString * _Nonnull maskBorderRepeat;
|
|
1219
|
+
@property (nonatomic, copy) NSString * _Nonnull maskBorderMode;
|
|
1220
|
+
@property (nonatomic, copy) NSString * _Nonnull fontFeatureSettings;
|
|
1221
|
+
- (void)updateNativeStyle;
|
|
1222
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
|
|
1223
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1224
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1225
|
+
@end
|
|
1226
|
+
|
|
1227
|
+
@class UIWindow;
|
|
1228
|
+
SWIFT_CLASS_NAMED("MasonUIView")
|
|
1229
|
+
@interface MasonUIView : UIView <MasonElementObjc>
|
|
1230
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layerClass;)
|
|
1231
|
+
+ (Class _Nonnull)layerClass SWIFT_WARN_UNUSED_RESULT;
|
|
1232
|
+
- (void)didAddSubview:(UIView * _Nonnull)subview;
|
|
1233
|
+
- (void)drawRect:(CGRect)rect;
|
|
1234
|
+
/// Leading text for the item’s <code>inside</code> marker, drawn in its own font, or “” when it has none.
|
|
1235
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
1236
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
1237
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
1238
|
+
@property (nonatomic) CGSize contentSize;
|
|
1239
|
+
@property (nonatomic) BOOL isScrollContainer;
|
|
1240
|
+
@property (nonatomic) CGPoint contentOffset;
|
|
1241
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
1242
|
+
- (void)markNodeDirty;
|
|
1243
|
+
- (BOOL)isNodeDirty SWIFT_WARN_UNUSED_RESULT;
|
|
1244
|
+
@property (nonatomic) CGRect frame;
|
|
1245
|
+
- (void)layoutSubviews;
|
|
1246
|
+
- (void)willMoveToWindow:(UIWindow * _Nullable)newWindow;
|
|
1247
|
+
- (void)willMoveToSuperview:(UIView * _Nullable)newSuperview;
|
|
1248
|
+
- (void)didMoveToSuperview;
|
|
1249
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
1250
|
+
+ (MasonUIView * _Nonnull)createGridView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
1251
|
+
+ (MasonUIView * _Nonnull)createFlexView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
1252
|
+
+ (MasonUIView * _Nonnull)createBlockView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
1253
|
+
- (void)addView:(UIView * _Nonnull)view;
|
|
1254
|
+
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
1255
|
+
- (void)removeView:(UIView * _Nonnull)view;
|
|
1256
|
+
- (void)removeViewAt:(NSInteger)index;
|
|
1257
|
+
- (void)addSubviews:(NSArray<UIView *> * _Nonnull)views;
|
|
1258
|
+
- (void)addSubviews:(NSArray<UIView *> * _Nonnull)views at:(NSInteger)index;
|
|
1259
|
+
@property (nonatomic) BOOL inBatch;
|
|
1260
|
+
@property (nonatomic, copy) NSString * _Nonnull background;
|
|
1261
|
+
@property (nonatomic) enum MasonDisplay display;
|
|
1262
|
+
@property (nonatomic) enum MasonPosition _position;
|
|
1263
|
+
@property (nonatomic) enum MasonDirection direction;
|
|
1264
|
+
@property (nonatomic) enum MasonFlexDirection flexDirection;
|
|
1265
|
+
@property (nonatomic) enum MasonFlexWrap flexWrap;
|
|
1266
|
+
@property (nonatomic) enum MasonOverflow overflowX;
|
|
1267
|
+
@property (nonatomic) enum MasonOverflow overflowY;
|
|
1268
|
+
@property (nonatomic) enum MasonAlignItems alignItems;
|
|
1269
|
+
@property (nonatomic) enum MasonAlignSelf alignSelf;
|
|
1270
|
+
@property (nonatomic) enum MasonAlignContent alignContent;
|
|
1271
|
+
@property (nonatomic) enum MasonJustifyItems justifyItems;
|
|
1272
|
+
@property (nonatomic) enum MasonJustifySelf justifySelf;
|
|
1273
|
+
@property (nonatomic) enum MasonJustifyContent justifyContent;
|
|
1274
|
+
@property (nonatomic) float flexGrow;
|
|
1275
|
+
@property (nonatomic) float flexShrink;
|
|
1276
|
+
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull scrollBarWidthCompat;
|
|
1277
|
+
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull flexBasisCompat;
|
|
1278
|
+
@property (nonatomic) float aspectRatio;
|
|
1279
|
+
@property (nonatomic, copy) NSString * _Nonnull gridArea;
|
|
1280
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateAreas;
|
|
1281
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoRows;
|
|
1282
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoColumns;
|
|
1283
|
+
@property (nonatomic) enum MasonGridAutoFlowWrap gridAutoFlow;
|
|
1284
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumn;
|
|
1285
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnStart;
|
|
1286
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnEnd;
|
|
1287
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRow;
|
|
1288
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowStart;
|
|
1289
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowEnd;
|
|
1290
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateRows;
|
|
1291
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateColumns;
|
|
1292
|
+
- (void)setPadding:(float)left :(float)top :(float)right :(float)bottom;
|
|
1293
|
+
- (MasonLengthPercentageRectCompat * _Nonnull)getPadding SWIFT_WARN_UNUSED_RESULT;
|
|
1294
|
+
- (void)setPaddingLeft:(float)left :(NSInteger)type;
|
|
1295
|
+
- (void)setPaddingRight:(float)right :(NSInteger)type;
|
|
1296
|
+
- (void)setPaddingTop:(float)top :(NSInteger)type;
|
|
1297
|
+
- (void)setPaddingBottom:(float)bottom :(NSInteger)type;
|
|
1298
|
+
- (MasonLengthPercentageCompat * _Nonnull)getPaddingLeft SWIFT_WARN_UNUSED_RESULT;
|
|
1299
|
+
- (MasonLengthPercentageCompat * _Nonnull)getPaddingRight SWIFT_WARN_UNUSED_RESULT;
|
|
1300
|
+
- (MasonLengthPercentageCompat * _Nonnull)getPaddingTop SWIFT_WARN_UNUSED_RESULT;
|
|
1301
|
+
- (MasonLengthPercentageCompat * _Nonnull)getPaddingBottom SWIFT_WARN_UNUSED_RESULT;
|
|
1302
|
+
- (void)setBorderWidth:(float)left :(float)top :(float)right :(float)bottom;
|
|
1303
|
+
- (MasonLengthPercentageRectCompat * _Nonnull)getBorderWidth SWIFT_WARN_UNUSED_RESULT;
|
|
1304
|
+
- (void)setBorderLeftWidth:(float)left :(NSInteger)type;
|
|
1305
|
+
- (void)setBorderRightWidth:(float)right :(NSInteger)type;
|
|
1306
|
+
- (void)setBorderTopWidth:(float)top :(NSInteger)type;
|
|
1307
|
+
- (void)setBorderBottomWidth:(float)bottom :(NSInteger)type;
|
|
1308
|
+
- (MasonLengthPercentageCompat * _Nonnull)getBorderLeft SWIFT_WARN_UNUSED_RESULT;
|
|
1309
|
+
- (MasonLengthPercentageCompat * _Nonnull)getBorderRight SWIFT_WARN_UNUSED_RESULT;
|
|
1310
|
+
- (MasonLengthPercentageCompat * _Nonnull)getBorderBottom SWIFT_WARN_UNUSED_RESULT;
|
|
1311
|
+
- (MasonLengthPercentageCompat * _Nonnull)getBorderTop SWIFT_WARN_UNUSED_RESULT;
|
|
1312
|
+
- (void)setMargin:(float)left :(float)top :(float)right :(float)bottom;
|
|
1313
|
+
- (MasonLengthPercentageAutoRectCompat * _Nonnull)getMargin SWIFT_WARN_UNUSED_RESULT;
|
|
1314
|
+
- (void)setMarginLeft:(float)left :(NSInteger)type;
|
|
1315
|
+
- (void)setMarginRight:(float)right :(NSInteger)type;
|
|
1316
|
+
- (void)setMarginTop:(float)top :(NSInteger)type;
|
|
1317
|
+
- (void)setMarginBottom:(float)bottom :(NSInteger)type;
|
|
1318
|
+
- (MasonLengthPercentageAutoCompat * _Nonnull)getMarginLeft SWIFT_WARN_UNUSED_RESULT;
|
|
1319
|
+
- (MasonLengthPercentageAutoCompat * _Nonnull)getMarginRight SWIFT_WARN_UNUSED_RESULT;
|
|
1320
|
+
- (MasonLengthPercentageAutoCompat * _Nonnull)getMarginTop SWIFT_WARN_UNUSED_RESULT;
|
|
1321
|
+
- (MasonLengthPercentageAutoCompat * _Nonnull)getMarginBottom SWIFT_WARN_UNUSED_RESULT;
|
|
1322
|
+
- (void)setInset:(float)left :(float)top :(float)right :(float)bottom;
|
|
1323
|
+
- (MasonLengthPercentageAutoRectCompat * _Nonnull)getInset SWIFT_WARN_UNUSED_RESULT;
|
|
1324
|
+
- (void)setInsetLeft:(float)left :(NSInteger)type;
|
|
1325
|
+
- (void)setInsetRight:(float)right :(NSInteger)type;
|
|
1326
|
+
- (void)setInsetTop:(float)top :(NSInteger)type;
|
|
1327
|
+
- (void)setInsetBottom:(float)bottom :(NSInteger)type;
|
|
1328
|
+
- (MasonLengthPercentageAutoCompat * _Nonnull)getInsetLeft SWIFT_WARN_UNUSED_RESULT;
|
|
1329
|
+
- (MasonLengthPercentageAutoCompat * _Nonnull)getInsetRight SWIFT_WARN_UNUSED_RESULT;
|
|
1330
|
+
- (MasonLengthPercentageAutoCompat * _Nonnull)getInsetTop SWIFT_WARN_UNUSED_RESULT;
|
|
1331
|
+
- (MasonLengthPercentageAutoCompat * _Nonnull)getInsetBottom SWIFT_WARN_UNUSED_RESULT;
|
|
1332
|
+
- (void)setMinSize:(float)width :(float)height;
|
|
1333
|
+
- (MasonDimensionSizeCompat * _Nonnull)getMinSize SWIFT_WARN_UNUSED_RESULT;
|
|
1334
|
+
- (void)setMinSizeWidth:(float)width :(NSInteger)type;
|
|
1335
|
+
- (void)setMinSizeHeight:(float)height :(NSInteger)type;
|
|
1336
|
+
- (MasonDimensionCompat * _Nonnull)getMinSizeWidth SWIFT_WARN_UNUSED_RESULT;
|
|
1337
|
+
- (MasonDimensionCompat * _Nonnull)getMinSizeHeight SWIFT_WARN_UNUSED_RESULT;
|
|
1338
|
+
- (void)setSize:(float)width :(float)height;
|
|
1339
|
+
- (void)setSizeWidth:(float)width :(NSInteger)type;
|
|
1340
|
+
- (void)setSizeHeight:(float)height :(NSInteger)type;
|
|
1341
|
+
- (MasonDimensionSizeCompat * _Nonnull)getSize SWIFT_WARN_UNUSED_RESULT;
|
|
1342
|
+
- (MasonDimensionCompat * _Nonnull)getSizeWidth SWIFT_WARN_UNUSED_RESULT;
|
|
1343
|
+
- (MasonDimensionCompat * _Nonnull)getSizeHeight SWIFT_WARN_UNUSED_RESULT;
|
|
1344
|
+
- (void)setMaxSize:(float)width :(float)height;
|
|
1345
|
+
- (MasonDimensionSizeCompat * _Nonnull)getMaxSize SWIFT_WARN_UNUSED_RESULT;
|
|
1346
|
+
- (void)setMaxSizeWidth:(float)width :(NSInteger)type;
|
|
1347
|
+
- (void)setMaxSizeHeight:(float)height :(NSInteger)type;
|
|
1348
|
+
- (MasonDimensionCompat * _Nonnull)getMaxSizeWidth SWIFT_WARN_UNUSED_RESULT;
|
|
1349
|
+
- (MasonDimensionCompat * _Nonnull)getMaxSizeHeight SWIFT_WARN_UNUSED_RESULT;
|
|
1350
|
+
- (void)setGap:(float)width :(float)height;
|
|
1351
|
+
- (void)setGapWithWidthHeightType:(float)width :(int8_t)width_type :(float)height :(int8_t)height_type;
|
|
1352
|
+
- (MasonLengthPercentageSizeCompat * _Nonnull)getGap SWIFT_WARN_UNUSED_RESULT;
|
|
1353
|
+
- (void)setRowGap:(float)row :(NSInteger)type;
|
|
1354
|
+
- (void)setColumnGap:(float)column :(NSInteger)type;
|
|
1355
|
+
- (MasonLengthPercentageCompat * _Nonnull)getRowGap SWIFT_WARN_UNUSED_RESULT;
|
|
1356
|
+
- (MasonLengthPercentageCompat * _Nonnull)getColumnGap SWIFT_WARN_UNUSED_RESULT;
|
|
1357
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
1358
|
+
@end
|
|
1359
|
+
|
|
1360
|
+
@class UIEvent;
|
|
1361
|
+
@interface MasonUIView (SWIFT_EXTENSION(MasonCore))
|
|
1362
|
+
- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent * _Nullable)event SWIFT_WARN_UNUSED_RESULT;
|
|
1363
|
+
@end
|
|
1364
|
+
|
|
1365
|
+
SWIFT_CLASS_NAMED("MasonVerticalAlignValue")
|
|
1366
|
+
@interface MasonVerticalAlignValue : NSObject
|
|
1367
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1368
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1369
|
+
@end
|
|
1370
|
+
|
|
1371
|
+
SWIFT_CLASS_NAMED("MaxSizing")
|
|
1372
|
+
@interface MaxSizing : NSObject
|
|
1373
|
+
@property (nonatomic, readonly) float value;
|
|
1374
|
+
+ (MaxSizing * _Nonnull)Points:(float)points SWIFT_WARN_UNUSED_RESULT;
|
|
1375
|
+
+ (MaxSizing * _Nonnull)Percent:(float)percent SWIFT_WARN_UNUSED_RESULT;
|
|
1376
|
+
+ (MaxSizing * _Nonnull)FitContent:(float)fit SWIFT_WARN_UNUSED_RESULT;
|
|
1377
|
+
+ (MaxSizing * _Nonnull)FitContentPercent:(float)fit SWIFT_WARN_UNUSED_RESULT;
|
|
1378
|
+
+ (MaxSizing * _Nonnull)Fraction:(float)flex SWIFT_WARN_UNUSED_RESULT;
|
|
1379
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MaxSizing * _Nonnull Auto;)
|
|
1380
|
+
+ (MaxSizing * _Nonnull)Auto SWIFT_WARN_UNUSED_RESULT;
|
|
1381
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MaxSizing * _Nonnull MinContent;)
|
|
1382
|
+
+ (MaxSizing * _Nonnull)MinContent SWIFT_WARN_UNUSED_RESULT;
|
|
1383
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MaxSizing * _Nonnull MaxContent;)
|
|
1384
|
+
+ (MaxSizing * _Nonnull)MaxContent SWIFT_WARN_UNUSED_RESULT;
|
|
1385
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
1386
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
|
|
1387
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1388
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1389
|
+
@end
|
|
1390
|
+
|
|
1391
|
+
SWIFT_CLASS_NAMED("MeasureOutput")
|
|
1392
|
+
@interface MeasureOutput : NSObject
|
|
1393
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1394
|
+
@end
|
|
1395
|
+
|
|
1396
|
+
@class MinSizing;
|
|
1397
|
+
SWIFT_CLASS_NAMED("MinMax")
|
|
1398
|
+
@interface MinMax : NSObject
|
|
1399
|
+
- (nonnull instancetype)init:(MinSizing * _Nonnull)min :(MaxSizing * _Nonnull)max OBJC_DESIGNATED_INITIALIZER;
|
|
1400
|
+
+ (MinMax * _Nonnull)PointsWithPoints:(float)points SWIFT_WARN_UNUSED_RESULT;
|
|
1401
|
+
+ (MinMax * _Nonnull)PercentWithPercent:(float)percent SWIFT_WARN_UNUSED_RESULT;
|
|
1402
|
+
+ (MinMax * _Nonnull)FlexWithFlex:(float)flex SWIFT_WARN_UNUSED_RESULT;
|
|
1403
|
+
+ (MinMax * _Nonnull)FitContentWithFit:(float)fit SWIFT_WARN_UNUSED_RESULT;
|
|
1404
|
+
+ (MinMax * _Nonnull)FitContentPercentWithFit:(float)fit SWIFT_WARN_UNUSED_RESULT;
|
|
1405
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinMax * _Nonnull Auto;)
|
|
1406
|
+
+ (MinMax * _Nonnull)Auto SWIFT_WARN_UNUSED_RESULT;
|
|
1407
|
+
+ (MinMax * _Nullable)fromTypeValue:(NSInteger)minType :(float)minValue :(NSInteger)maxType :(float)maxValue SWIFT_WARN_UNUSED_RESULT;
|
|
1408
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
1409
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
|
|
1410
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1411
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1412
|
+
@end
|
|
1413
|
+
|
|
1414
|
+
SWIFT_CLASS_NAMED("MinSizing")
|
|
1415
|
+
@interface MinSizing : NSObject
|
|
1416
|
+
@property (nonatomic, readonly) float value;
|
|
1417
|
+
+ (MinSizing * _Nonnull)Points:(float)points SWIFT_WARN_UNUSED_RESULT;
|
|
1418
|
+
+ (MinSizing * _Nonnull)Percent:(float)percent SWIFT_WARN_UNUSED_RESULT;
|
|
1419
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing * _Nonnull Auto;)
|
|
1420
|
+
+ (MinSizing * _Nonnull)Auto SWIFT_WARN_UNUSED_RESULT;
|
|
1421
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing * _Nonnull MinContent;)
|
|
1422
|
+
+ (MinSizing * _Nonnull)MinContent SWIFT_WARN_UNUSED_RESULT;
|
|
1423
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing * _Nonnull MaxContent;)
|
|
1424
|
+
+ (MinSizing * _Nonnull)MaxContent SWIFT_WARN_UNUSED_RESULT;
|
|
1425
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
1426
|
+
@property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
|
|
1427
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1428
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1429
|
+
@end
|
|
1430
|
+
|
|
1431
|
+
@class NSUUID;
|
|
1432
|
+
@class MasonScroll;
|
|
1433
|
+
@class NSNumber;
|
|
1434
|
+
SWIFT_CLASS_NAMED("NSCMason")
|
|
1435
|
+
@interface NSCMason : NSObject
|
|
1436
|
+
@property (nonatomic, readonly) void * _Nullable nativePtr;
|
|
1437
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull shared;)
|
|
1438
|
+
+ (NSCMason * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
|
|
1439
|
+
+ (void)setShared:(NSCMason * _Nonnull)value;
|
|
1440
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1441
|
+
- (void)setDeviceScale:(float)value;
|
|
1442
|
+
- (MasonNode * _Nonnull)nodeForView:(UIView * _Nonnull)view :(BOOL)isLeaf SWIFT_WARN_UNUSED_RESULT;
|
|
1443
|
+
- (void)setMeasureForView:(UIView * _Nonnull)view block:(CGSize (^ _Nonnull)(CGFloat, CGFloat, CGFloat, CGFloat))block;
|
|
1444
|
+
/// Drops a foreign view’s cached measurement after its content changed. A
|
|
1445
|
+
/// running compute holds Rust’s lock, so that waits until it returns.
|
|
1446
|
+
- (void)invalidateForeignView:(UIView * _Nonnull)view;
|
|
1447
|
+
- (void)setPercentWidth:(UIView * _Nonnull)view :(float)fraction;
|
|
1448
|
+
- (void)setPercentHeight:(UIView * _Nonnull)view :(float)fraction;
|
|
1449
|
+
- (void)configureStyleForView:(UIView * _Nonnull)view :(SWIFT_NOESCAPE void (^ _Nonnull)(MasonStyle * _Nonnull))block;
|
|
1450
|
+
- (MasonStyle * _Nonnull)styleForView:(UIView * _Nonnull)view SWIFT_WARN_UNUSED_RESULT;
|
|
1451
|
+
- (MasonStyle * _Nullable)styleForViewOrNode:(id _Nullable)viewOrNode SWIFT_WARN_UNUSED_RESULT;
|
|
1452
|
+
- (MasonLayout * _Nonnull)layoutForView:(UIView * _Nonnull)view;
|
|
1453
|
+
- (NSUUID * _Nonnull)addEventListener:(MasonNode * _Nonnull)node :(NSString * _Nonnull)event :(void (^ _Nonnull)(MasonEvent * _Nonnull))listener;
|
|
1454
|
+
- (BOOL)removeEventListener:(MasonNode * _Nonnull)node :(NSString * _Nonnull)event id:(NSUUID * _Nonnull)id;
|
|
1455
|
+
- (BOOL)removeEventListener:(MasonNode * _Nonnull)node :(NSString * _Nonnull)event;
|
|
1456
|
+
/// Calls the listeners of <code>node</code>, then of each ancestor until propagation stops, then runs the
|
|
1457
|
+
/// click’s default action unless it was prevented.
|
|
1458
|
+
- (void)dispatch:(MasonEvent * _Nonnull)event :(MasonNode * _Nonnull)node;
|
|
1459
|
+
- (void)clear;
|
|
1460
|
+
- (MasonUIView * _Nonnull)createView SWIFT_WARN_UNUSED_RESULT;
|
|
1461
|
+
- (MasonScroll * _Nonnull)createScrollView SWIFT_WARN_UNUSED_RESULT;
|
|
1462
|
+
- (MasonNode * _Nonnull)createNode SWIFT_WARN_UNUSED_RESULT;
|
|
1463
|
+
- (void)printTree:(MasonNode * _Nonnull)node;
|
|
1464
|
+
@property (nonatomic) BOOL preflight;
|
|
1465
|
+
/// The context CSS relative units resolve against, mirroring the TS side’s
|
|
1466
|
+
/// <code>units.ts</code> and Android’s <code>Mason.shared</code>. <code>rem</code> needs a root font size (the
|
|
1467
|
+
/// CSS default is 16); the viewport is read from the key window, and is 0 until
|
|
1468
|
+
/// one exists — an unresolvable viewport unit collapses to 0 rather than
|
|
1469
|
+
/// silently becoming a bare number in the wrong unit.
|
|
1470
|
+
/// Leak diagnostics, with the keys Android’s Mason.debugStats uses: live engine nodes and style
|
|
1471
|
+
/// buffers, plus live C node wrappers (<code>cNodes</code>) and Swift MasonNode objects (<code>trackedNodes</code>).
|
|
1472
|
+
- (NSDictionary<NSString *, NSNumber *> * _Nonnull)debugStats SWIFT_WARN_UNUSED_RESULT;
|
|
1473
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class) float rootFontSize;)
|
|
1474
|
+
+ (float)rootFontSize SWIFT_WARN_UNUSED_RESULT;
|
|
1475
|
+
+ (void)setRootFontSize:(float)value;
|
|
1476
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) CGSize viewportSize;)
|
|
1477
|
+
+ (CGSize)viewportSize SWIFT_WARN_UNUSED_RESULT;
|
|
1478
|
+
/// Called on the main thread after the key window changes size, so values that used a
|
|
1479
|
+
/// viewport unit can be resolved again.
|
|
1480
|
+
+ (void)setViewportListener:(void (^ _Nullable)(void))listener;
|
|
1481
|
+
/// The display scale every layout value is converted through.
|
|
1482
|
+
/// Cached: resolving it walks <code>connectedScenes</code> and each scene’s windows,
|
|
1483
|
+
/// and it’s read on the hottest paths there are (once per text measure,
|
|
1484
|
+
/// once per node applying a computed layout). Invalidated by the
|
|
1485
|
+
/// notifications below when the window moves between displays.
|
|
1486
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) float scale;)
|
|
1487
|
+
+ (float)scale SWIFT_WARN_UNUSED_RESULT;
|
|
1488
|
+
/// Drop the cached scale; the next read resolves it again.
|
|
1489
|
+
+ (void)invalidateScale;
|
|
1490
|
+
@end
|
|
1491
|
+
|
|
1492
|
+
@interface NSObject (SWIFT_EXTENSION(MasonCore))
|
|
1493
|
+
/// Whether a <details> is open. Set from code, it doesn’t dispatch “toggle”.
|
|
1494
|
+
- (NSUUID * _Nonnull)mason_addEventListener:(NSString * _Nonnull)event :(void (^ _Nonnull)(MasonEvent * _Nonnull))listener;
|
|
1495
|
+
- (BOOL)mason_removeEventListener:(NSString * _Nonnull)event id:(NSUUID * _Nonnull)id;
|
|
1496
|
+
- (BOOL)mason_removeEventListener:(NSString * _Nonnull)event;
|
|
1497
|
+
@property (nonatomic, readonly) double mason_scrollLeft;
|
|
1498
|
+
@property (nonatomic, readonly) double mason_scrollTop;
|
|
1499
|
+
@property (nonatomic, readonly) double mason_scrollWidth;
|
|
1500
|
+
@property (nonatomic, readonly) double mason_scrollHeight;
|
|
1501
|
+
@property (nonatomic, readonly) double mason_clientWidth;
|
|
1502
|
+
@property (nonatomic, readonly) double mason_clientHeight;
|
|
1503
|
+
- (void)mason_scrollTo:(double)x :(double)y :(BOOL)smooth;
|
|
1504
|
+
/// <code>block</code>/<code>inline</code>: 0 start, 1 center, 2 end, 3 nearest.
|
|
1505
|
+
- (void)mason_scrollIntoView:(NSInteger)block :(NSInteger)inline_ :(BOOL)smooth;
|
|
1506
|
+
- (void)mason_dispatch:(MasonEvent * _Nonnull)event;
|
|
1507
|
+
- (void)mason_syncStyle:(NSString * _Nonnull)low :(NSString * _Nonnull)high;
|
|
1508
|
+
/// The node’s own style buffer (copied off the shared default if needed), in one call.
|
|
1509
|
+
- (NSMutableData * _Nullable)mason_writableStyleValues SWIFT_WARN_UNUSED_RESULT;
|
|
1510
|
+
- (void)mason_syncStyleParts:(int32_t)lowLow :(int32_t)lowHigh :(int32_t)highLow :(int32_t)highHigh;
|
|
1511
|
+
- (void)mason_addView:(UIView * _Nonnull)view;
|
|
1512
|
+
- (void)mason_addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
1513
|
+
- (void)mason_markNodeDirty;
|
|
1514
|
+
- (BOOL)mason_isNodeDirty SWIFT_WARN_UNUSED_RESULT;
|
|
1515
|
+
- (void)mason_configure:(SWIFT_NOESCAPE void (^ _Nonnull)(MasonStyle * _Nonnull))block;
|
|
1516
|
+
- (MasonLayout * _Nonnull)mason_layout;
|
|
1517
|
+
- (void)mason_compute;
|
|
1518
|
+
- (void)mason_computeWithWidth:(float)width height:(float)height;
|
|
1519
|
+
- (void)mason_computeMaxContent;
|
|
1520
|
+
- (void)mason_computeMinContent;
|
|
1521
|
+
- (void)mason_computeWithSize:(float)width :(float)height;
|
|
1522
|
+
- (void)mason_computeWithViewSize;
|
|
1523
|
+
- (void)mason_computeWithViewSizeWithLayout:(BOOL)layout;
|
|
1524
|
+
- (void)mason_computeWithMaxContent;
|
|
1525
|
+
/// Core’s onMeasure in one call, see <code>MasonElement.measure</code>.
|
|
1526
|
+
- (double)mason_measure:(NSInteger)widthSpec :(NSInteger)heightSpec :(BOOL)root :(BOOL)viewport SWIFT_WARN_UNUSED_RESULT;
|
|
1527
|
+
- (void)mason_markRootComputeApplied;
|
|
1528
|
+
/// <code>mason_markRootComputeApplied</code> plus the box the host measured against, so
|
|
1529
|
+
/// a later <code>autoComputeIfRoot</code> reuses it rather than the superview’s bounds.
|
|
1530
|
+
- (void)mason_markRootComputeAppliedWithSize:(float)width :(float)height;
|
|
1531
|
+
- (void)mason_computeWithMinContent;
|
|
1532
|
+
- (void)mason_attachAndApply;
|
|
1533
|
+
- (void)mason_requestLayout;
|
|
1534
|
+
- (void)mason_invalidateLayout;
|
|
1535
|
+
- (void)mason_append:(id <MasonElementObjc> _Nonnull)element;
|
|
1536
|
+
- (void)mason_appendWithNode:(MasonNode * _Nonnull)node;
|
|
1537
|
+
- (void)mason_appendWithElements:(NSArray<id <MasonElementObjc>> * _Nonnull)elements;
|
|
1538
|
+
- (void)mason_appendWithNodes:(NSArray<MasonNode *> * _Nonnull)nodes;
|
|
1539
|
+
- (void)mason_prepend:(id <MasonElementObjc> _Nonnull)element;
|
|
1540
|
+
- (void)mason_prependWithNode:(MasonNode * _Nonnull)node;
|
|
1541
|
+
- (void)mason_prependWithElements:(NSArray<id <MasonElementObjc>> * _Nonnull)elements;
|
|
1542
|
+
- (void)mason_prependWithNodes:(NSArray<MasonNode *> * _Nonnull)nodes;
|
|
1543
|
+
- (void)mason_addChildAtElement:(id <MasonElementObjc> _Nonnull)element :(NSInteger)index;
|
|
1544
|
+
- (void)mason_addChildAtNode:(MasonNode * _Nonnull)node :(NSInteger)index;
|
|
1545
|
+
- (void)mason_replaceChildAtElement:(id <MasonElementObjc> _Nonnull)element :(NSInteger)index;
|
|
1546
|
+
- (void)mason_replaceChildAtNode:(MasonNode * _Nonnull)node :(NSInteger)index;
|
|
1547
|
+
/// Remove the child node (view or text node) at <code>index</code> from the mason tree.
|
|
1548
|
+
/// Counterpart to <code>mason_addChildAt</code>; <code>MasonNode.removeChildAt</code> already
|
|
1549
|
+
/// handles both <code>MasonTextNode</code> and element children.
|
|
1550
|
+
- (void)mason_removeChildAt:(NSInteger)index;
|
|
1551
|
+
/// Remove a specific child node (e.g. the <code>MasonTextNode</code> a framework stamped
|
|
1552
|
+
/// onto its JS text node) without needing its index.
|
|
1553
|
+
- (void)mason_removeChildNode:(MasonNode * _Nonnull)node;
|
|
1554
|
+
@end
|
|
1555
|
+
|
|
1556
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonObjectFit, "ObjectFit", open) {
|
|
1557
|
+
MasonObjectFitContain = 0,
|
|
1558
|
+
MasonObjectFitCover = 1,
|
|
1559
|
+
MasonObjectFitFill = 2,
|
|
1560
|
+
MasonObjectFitNone = 3,
|
|
1561
|
+
MasonObjectFitScaleDown = 4,
|
|
1562
|
+
};
|
|
1563
|
+
|
|
1564
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonOverflow, "Overflow", open) {
|
|
1565
|
+
MasonOverflowVisible = 0,
|
|
1566
|
+
MasonOverflowHidden = 1,
|
|
1567
|
+
MasonOverflowScroll = 2,
|
|
1568
|
+
MasonOverflowClip = 3,
|
|
1569
|
+
MasonOverflowAuto = 4,
|
|
1570
|
+
};
|
|
1571
|
+
|
|
1572
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonPosition, "Position", open) {
|
|
1573
|
+
MasonPositionStatic = 0,
|
|
1574
|
+
MasonPositionRelative = 1,
|
|
1575
|
+
MasonPositionAbsolute = 2,
|
|
1576
|
+
MasonPositionFixed = 3,
|
|
1577
|
+
MasonPositionSticky = 4,
|
|
1578
|
+
};
|
|
1579
|
+
|
|
1580
|
+
typedef SWIFT_ENUM_NAMED(uint16_t, PseudoState, "PseudoState", open) {
|
|
1581
|
+
PseudoStateDefault = 0,
|
|
1582
|
+
PseudoStateHover = 0x01,
|
|
1583
|
+
PseudoStateActive = 0x02,
|
|
1584
|
+
PseudoStateFocus = 0x04,
|
|
1585
|
+
PseudoStateFocusWithin = 0x08,
|
|
1586
|
+
PseudoStateFocusVisible = 0x10,
|
|
1587
|
+
PseudoStateDisabled = 0x40,
|
|
1588
|
+
PseudoStateChecked = 0x80,
|
|
1589
|
+
};
|
|
1590
|
+
|
|
1591
|
+
SWIFT_CLASS_NAMED("Scroll")
|
|
1592
|
+
@interface MasonScroll : UIScrollView <MasonElementObjc, UIScrollViewDelegate>
|
|
1593
|
+
- (void)didMoveToSuperview;
|
|
1594
|
+
- (void)drawRect:(CGRect)rect;
|
|
1595
|
+
- (void)layoutSubviews;
|
|
1596
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
1597
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
1598
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
1599
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
1600
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
1601
|
+
- (void)scrollViewWillBeginDragging:(UIScrollView * _Nonnull)scrollView;
|
|
1602
|
+
- (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
|
|
1603
|
+
- (void)addView:(UIView * _Nonnull)view;
|
|
1604
|
+
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
1605
|
+
- (void)removeView:(UIView * _Nonnull)view;
|
|
1606
|
+
- (void)removeViewAt:(NSInteger)index;
|
|
1607
|
+
- (void)setSize:(float)width :(float)height;
|
|
1608
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
1609
|
+
@end
|
|
1610
|
+
|
|
1611
|
+
@interface MasonScroll (SWIFT_EXTENSION(MasonCore))
|
|
1612
|
+
- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent * _Nullable)event SWIFT_WARN_UNUSED_RESULT;
|
|
1613
|
+
@end
|
|
1614
|
+
|
|
1615
|
+
SWIFT_CLASS_NAMED("SwiftHelpers")
|
|
1616
|
+
@interface MasonSwiftHelpers : NSObject
|
|
1617
|
+
+ (void)markNodeDirty:(id <MasonElementObjc> _Nonnull)element;
|
|
1618
|
+
+ (BOOL)isNodeDirty:(id <MasonElementObjc> _Nonnull)element SWIFT_WARN_UNUSED_RESULT;
|
|
1619
|
+
+ (void)configure:(id <MasonElementObjc> _Nonnull)element :(SWIFT_NOESCAPE void (^ _Nonnull)(MasonStyle * _Nonnull))block;
|
|
1620
|
+
+ (MasonLayout * _Nonnull)layout:(id <MasonElementObjc> _Nonnull)element;
|
|
1621
|
+
+ (void)compute:(id <MasonElementObjc> _Nonnull)element;
|
|
1622
|
+
+ (void)compute:(id <MasonElementObjc> _Nonnull)element :(float)width :(float)height;
|
|
1623
|
+
+ (void)computeMaxContent:(id <MasonElementObjc> _Nonnull)element;
|
|
1624
|
+
+ (void)computeMinContent:(id <MasonElementObjc> _Nonnull)element;
|
|
1625
|
+
+ (void)computeWithSize:(id <MasonElementObjc> _Nonnull)element :(float)width :(float)height;
|
|
1626
|
+
+ (void)computeWithViewSize:(id <MasonElementObjc> _Nonnull)element;
|
|
1627
|
+
+ (void)computeWithViewSize:(id <MasonElementObjc> _Nonnull)element layout:(BOOL)layout;
|
|
1628
|
+
+ (void)computeWithMaxContent:(id <MasonElementObjc> _Nonnull)element;
|
|
1629
|
+
+ (void)computeWithMinContent:(id <MasonElementObjc> _Nonnull)element;
|
|
1630
|
+
+ (void)attachAndApply:(id <MasonElementObjc> _Nonnull)element;
|
|
1631
|
+
+ (void)requestLayout:(id <MasonElementObjc> _Nonnull)element;
|
|
1632
|
+
+ (void)append:(id <MasonElementObjc> _Nonnull)parent :(id <MasonElementObjc> _Nonnull)element;
|
|
1633
|
+
+ (void)append:(id <MasonElementObjc> _Nonnull)parent node:(MasonNode * _Nonnull)node;
|
|
1634
|
+
+ (void)append:(id <MasonElementObjc> _Nonnull)parent elements:(NSArray<id <MasonElementObjc>> * _Nonnull)elements;
|
|
1635
|
+
+ (void)append:(id <MasonElementObjc> _Nonnull)parent nodes:(NSArray<MasonNode *> * _Nonnull)nodes;
|
|
1636
|
+
+ (void)prepend:(id <MasonElementObjc> _Nonnull)parent :(id <MasonElementObjc> _Nonnull)element;
|
|
1637
|
+
+ (void)prepend:(id <MasonElementObjc> _Nonnull)parent node:(MasonNode * _Nonnull)node;
|
|
1638
|
+
+ (void)prepend:(id <MasonElementObjc> _Nonnull)parent elements:(NSArray<id <MasonElementObjc>> * _Nonnull)elements;
|
|
1639
|
+
+ (void)prepend:(id <MasonElementObjc> _Nonnull)parent nodes:(NSArray<MasonNode *> * _Nonnull)nodes;
|
|
1640
|
+
+ (void)addChildAt:(id <MasonElementObjc> _Nonnull)parent element:(id <MasonElementObjc> _Nonnull)element :(NSInteger)index;
|
|
1641
|
+
+ (void)addChildAt:(id <MasonElementObjc> _Nonnull)parent node:(MasonNode * _Nonnull)node :(NSInteger)index;
|
|
1642
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1643
|
+
@end
|
|
1644
|
+
|
|
1645
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextAlign, "TextAlign", open) {
|
|
1646
|
+
MasonTextAlignAuto = 0,
|
|
1647
|
+
MasonTextAlignLeft = 1,
|
|
1648
|
+
MasonTextAlignRight = 2,
|
|
1649
|
+
MasonTextAlignCenter = 3,
|
|
1650
|
+
MasonTextAlignJustify = 4,
|
|
1651
|
+
MasonTextAlignStart = 5,
|
|
1652
|
+
MasonTextAlignEnd = 6,
|
|
1653
|
+
};
|
|
1654
|
+
|
|
1655
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextJustify, "TextJustify", open) {
|
|
1656
|
+
MasonTextJustifyNone = 0,
|
|
1657
|
+
MasonTextJustifyAuto = 1,
|
|
1658
|
+
MasonTextJustifyInterWord = 2,
|
|
1659
|
+
MasonTextJustifyInterCharacter = 3,
|
|
1660
|
+
MasonTextJustifyDistribute = 4,
|
|
1661
|
+
};
|
|
1662
|
+
|
|
1663
|
+
SWIFT_CLASS_NAMED("TextOverflowCompat")
|
|
1664
|
+
@interface MasonTextOverflowCompat : NSObject
|
|
1665
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonTextOverflowCompat * _Nonnull Clip;)
|
|
1666
|
+
+ (MasonTextOverflowCompat * _Nonnull)Clip SWIFT_WARN_UNUSED_RESULT;
|
|
1667
|
+
+ (MasonTextOverflowCompat * _Nonnull)Ellipse:(NSString * _Nullable)value SWIFT_WARN_UNUSED_RESULT;
|
|
1668
|
+
+ (MasonTextOverflowCompat * _Nonnull)Custom:(NSString * _Nonnull)value SWIFT_WARN_UNUSED_RESULT;
|
|
1669
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
|
|
1670
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1671
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1672
|
+
@end
|
|
1673
|
+
|
|
1674
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextTransform, "TextTransform", open) {
|
|
1675
|
+
MasonTextTransformNone = 0,
|
|
1676
|
+
MasonTextTransformCapitalize = 1,
|
|
1677
|
+
MasonTextTransformUppercase = 2,
|
|
1678
|
+
MasonTextTransformLowercase = 3,
|
|
1679
|
+
MasonTextTransformFullWidth = 4,
|
|
1680
|
+
MasonTextTransformFullSizeKana = 5,
|
|
1681
|
+
MasonTextTransformMathAuto = 6,
|
|
1682
|
+
};
|
|
1683
|
+
|
|
1684
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextWrap, "TextWrap", open) {
|
|
1685
|
+
MasonTextWrapWrap = 0,
|
|
1686
|
+
MasonTextWrapNoWrap = 1,
|
|
1687
|
+
MasonTextWrapBalance = 2,
|
|
1688
|
+
MasonTextWrapPretty = 3,
|
|
1689
|
+
};
|
|
1690
|
+
|
|
1691
|
+
SWIFT_CLASS_NAMED("TrackSizingFunction")
|
|
1692
|
+
@interface TrackSizingFunction : NSObject
|
|
1693
|
+
@property (nonatomic, readonly) BOOL isRepeating;
|
|
1694
|
+
@property (nonatomic, readonly, strong) id _Nullable value;
|
|
1695
|
+
+ (TrackSizingFunction * _Nonnull)Single:(MinMax * _Nonnull)value SWIFT_WARN_UNUSED_RESULT;
|
|
1696
|
+
+ (TrackSizingFunction * _Nonnull)AutoRepeat:(MasonGridTrackRepetition * _Nonnull)gridTrackRepetition :(NSArray<MinMax *> * _Nonnull)value SWIFT_WARN_UNUSED_RESULT;
|
|
1697
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
1698
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1699
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1700
|
+
@end
|
|
1701
|
+
|
|
1702
|
+
typedef SWIFT_ENUM(uint8_t, TransformOpType, open) {
|
|
1703
|
+
TransformOpTypeNone = 0,
|
|
1704
|
+
TransformOpTypeTranslate = 1,
|
|
1705
|
+
TransformOpTypeTranslateX = 2,
|
|
1706
|
+
TransformOpTypeTranslateY = 3,
|
|
1707
|
+
TransformOpTypeScale = 4,
|
|
1708
|
+
TransformOpTypeScaleX = 5,
|
|
1709
|
+
TransformOpTypeScaleY = 6,
|
|
1710
|
+
TransformOpTypeRotate = 7,
|
|
1711
|
+
TransformOpTypeSkewX = 8,
|
|
1712
|
+
TransformOpTypeSkewY = 9,
|
|
1713
|
+
};
|
|
1714
|
+
|
|
1715
|
+
@interface UIView (SWIFT_EXTENSION(MasonCore))
|
|
1716
|
+
- (UIView * _Nullable)mason_elementFromPoint:(CGFloat)x y:(CGFloat)y SWIFT_WARN_UNUSED_RESULT;
|
|
1717
|
+
@end
|
|
1718
|
+
|
|
1719
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonWhiteSpace, "WhiteSpace", open) {
|
|
1720
|
+
MasonWhiteSpaceNormal = 0,
|
|
1721
|
+
MasonWhiteSpacePre = 1,
|
|
1722
|
+
MasonWhiteSpacePreWrap = 2,
|
|
1723
|
+
MasonWhiteSpacePreLine = 3,
|
|
1724
|
+
MasonWhiteSpaceNoWrap = 4,
|
|
1725
|
+
MasonWhiteSpaceBreakSpaces = 5,
|
|
1726
|
+
};
|
|
1727
|
+
|
|
1728
|
+
#endif // defined(__OBJC__)
|
|
1729
|
+
#if __has_attribute(external_source_symbol)
|
|
1730
|
+
# pragma clang attribute pop
|
|
1731
|
+
#endif
|
|
1732
|
+
#if defined(__cplusplus)
|
|
1733
|
+
#endif
|
|
1734
|
+
#pragma clang diagnostic pop
|
|
1735
|
+
#endif
|
|
1736
|
+
|
|
1737
|
+
#else
|
|
1738
|
+
#error unsupported Swift architecture
|
|
1739
|
+
#endif
|