@triniwiz/nativescript-masonkit 1.0.0-alpha.8 → 1.0.0-beta.0
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/button/index.android.d.ts +13 -0
- package/button/index.android.js +56 -0
- package/button/index.android.js.map +1 -0
- package/button/index.ios.d.ts +21 -0
- package/button/index.ios.js +216 -0
- package/button/index.ios.js.map +1 -0
- package/common.d.ts +78 -33
- package/common.js +1121 -251
- package/common.js.map +1 -1
- package/img/index.android.d.ts +10 -0
- package/img/index.android.js +40 -0
- package/img/index.android.js.map +1 -0
- package/img/index.ios.d.ts +13 -0
- package/img/index.ios.js +102 -0
- package/img/index.ios.js.map +1 -0
- package/index.android.d.ts +6 -34
- package/index.android.js +6 -139
- package/index.android.js.map +1 -1
- package/index.d.ts +88 -60
- package/index.ios.d.ts +6 -48
- package/index.ios.js +6 -355
- package/index.ios.js.map +1 -1
- package/package.json +5 -2
- package/platforms/android/include.gradle +5 -1
- package/platforms/android/masonkit-release.aar +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +794 -284
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason.h +0 -5
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/NSObject+MasonElement_Defaults.h +100 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +118 -93
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Info.plist +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +58079 -23135
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +1234 -255
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +1234 -255
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +4252 -1932
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +1588 -568
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason.h +0 -5
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/NSObject+MasonElement_Defaults.h +100 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +118 -93
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Info.plist +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +58076 -23132
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1211 -232
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1211 -232
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +58076 -23132
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1211 -232
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1211 -232
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +31 -31
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +4246 -1932
- package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +4124 -1883
- package/scroll/index.android.d.ts +12 -0
- package/scroll/index.android.js +50 -0
- package/scroll/index.android.js.map +1 -0
- package/scroll/index.ios.d.ts +14 -0
- package/scroll/index.ios.js +120 -0
- package/scroll/index.ios.js.map +1 -0
- package/style.d.ts +110 -53
- package/style.js +1176 -110
- package/style.js.map +1 -1
- package/text/index.android.d.ts +30 -0
- package/text/index.android.js +124 -0
- package/text/index.android.js.map +1 -0
- package/text/index.ios.d.ts +38 -0
- package/text/index.ios.js +251 -0
- package/text/index.ios.js.map +1 -0
- package/tree/index.android.d.ts +28 -0
- package/tree/index.android.js +77 -0
- package/tree/index.android.js.map +1 -0
- package/tree/index.ios.d.ts +29 -0
- package/tree/index.ios.js +76 -0
- package/tree/index.ios.js.map +1 -0
- package/utils/index.android.d.ts +187 -0
- package/utils/index.android.js +514 -0
- package/utils/index.android.js.map +1 -0
- package/utils/index.ios.d.ts +198 -0
- package/utils/index.ios.js +710 -0
- package/utils/index.ios.js.map +1 -0
- package/view/index.android.d.ts +12 -0
- package/view/index.android.js +50 -0
- package/view/index.android.js.map +1 -0
- package/view/index.ios.d.ts +16 -0
- package/view/index.ios.js +124 -0
- package/view/index.ios.js.map +1 -0
- package/web.d.ts +55 -0
- package/web.js +189 -0
- package/web.js.map +1 -0
- package/helpers.d.ts +0 -255
- package/helpers.js +0 -1318
- package/helpers.js.map +0 -1
- package/node.d.ts +0 -2
- package/node.js +0 -3
- package/node.js.map +0 -1
- package/platforms/ios/Podfile +0 -1
- package/platforms/ios/build.xcconfig +0 -5
- package/platforms/ios/prebuild.sh +0 -101
- package/platforms/new_native_src/cpp/Caches.cpp +0 -36
- package/platforms/new_native_src/cpp/Caches.h +0 -42
- package/platforms/new_native_src/cpp/Common.h +0 -34
- package/platforms/new_native_src/cpp/ConcurrentMap.h +0 -57
- package/platforms/new_native_src/cpp/Helpers.cpp +0 -101
- package/platforms/new_native_src/cpp/Helpers.h +0 -364
- package/platforms/new_native_src/cpp/MasonImpl.cpp +0 -68
- package/platforms/new_native_src/cpp/MasonImpl.h +0 -40
- package/platforms/new_native_src/cpp/MasonNodeImpl.cpp +0 -89
- package/platforms/new_native_src/cpp/MasonNodeImpl.h +0 -47
- package/platforms/new_native_src/cpp/MasonStyleImpl.cpp +0 -2181
- package/platforms/new_native_src/cpp/MasonStyleImpl.h +0 -420
- package/platforms/new_native_src/cpp/include/mason_native.h +0 -972
- package/platforms/new_native_src/cpp/include/robin_hood.h +0 -2544
- package/src-native/pods/Headers/include/APIDesign.md +0 -72
- package/src-native/pods/Headers/include/DEPS +0 -10
- package/src-native/pods/Headers/include/DIR_METADATA +0 -11
- package/src-native/pods/Headers/include/OWNERS +0 -23
- package/src-native/pods/Headers/include/cppgc/DEPS +0 -8
- package/src-native/pods/Headers/include/cppgc/OWNERS +0 -2
- package/src-native/pods/Headers/include/cppgc/README.md +0 -133
- package/src-native/pods/Headers/include/cppgc/allocation.h +0 -310
- package/src-native/pods/Headers/include/cppgc/common.h +0 -29
- package/src-native/pods/Headers/include/cppgc/cross-thread-persistent.h +0 -465
- package/src-native/pods/Headers/include/cppgc/custom-space.h +0 -97
- package/src-native/pods/Headers/include/cppgc/default-platform.h +0 -67
- package/src-native/pods/Headers/include/cppgc/ephemeron-pair.h +0 -30
- package/src-native/pods/Headers/include/cppgc/explicit-management.h +0 -100
- package/src-native/pods/Headers/include/cppgc/garbage-collected.h +0 -106
- package/src-native/pods/Headers/include/cppgc/heap-consistency.h +0 -266
- package/src-native/pods/Headers/include/cppgc/heap-state.h +0 -82
- package/src-native/pods/Headers/include/cppgc/heap-statistics.h +0 -120
- package/src-native/pods/Headers/include/cppgc/heap.h +0 -206
- package/src-native/pods/Headers/include/cppgc/internal/api-constants.h +0 -55
- package/src-native/pods/Headers/include/cppgc/internal/atomic-entry-flag.h +0 -48
- package/src-native/pods/Headers/include/cppgc/internal/caged-heap-local-data.h +0 -79
- package/src-native/pods/Headers/include/cppgc/internal/compiler-specific.h +0 -38
- package/src-native/pods/Headers/include/cppgc/internal/finalizer-trait.h +0 -93
- package/src-native/pods/Headers/include/cppgc/internal/gc-info.h +0 -156
- package/src-native/pods/Headers/include/cppgc/internal/logging.h +0 -50
- package/src-native/pods/Headers/include/cppgc/internal/name-trait.h +0 -122
- package/src-native/pods/Headers/include/cppgc/internal/persistent-node.h +0 -216
- package/src-native/pods/Headers/include/cppgc/internal/pointer-policies.h +0 -186
- package/src-native/pods/Headers/include/cppgc/internal/write-barrier.h +0 -435
- package/src-native/pods/Headers/include/cppgc/liveness-broker.h +0 -77
- package/src-native/pods/Headers/include/cppgc/macros.h +0 -26
- package/src-native/pods/Headers/include/cppgc/member.h +0 -291
- package/src-native/pods/Headers/include/cppgc/name-provider.h +0 -65
- package/src-native/pods/Headers/include/cppgc/object-size-trait.h +0 -58
- package/src-native/pods/Headers/include/cppgc/persistent.h +0 -370
- package/src-native/pods/Headers/include/cppgc/platform.h +0 -156
- package/src-native/pods/Headers/include/cppgc/prefinalizer.h +0 -75
- package/src-native/pods/Headers/include/cppgc/process-heap-statistics.h +0 -36
- package/src-native/pods/Headers/include/cppgc/sentinel-pointer.h +0 -32
- package/src-native/pods/Headers/include/cppgc/source-location.h +0 -92
- package/src-native/pods/Headers/include/cppgc/testing.h +0 -106
- package/src-native/pods/Headers/include/cppgc/trace-trait.h +0 -116
- package/src-native/pods/Headers/include/cppgc/type-traits.h +0 -240
- package/src-native/pods/Headers/include/cppgc/visitor.h +0 -379
- package/src-native/pods/Headers/include/js_protocol-1.2.json +0 -936
- package/src-native/pods/Headers/include/js_protocol-1.3.json +0 -1112
- package/src-native/pods/Headers/include/js_protocol.pdl +0 -1709
- package/src-native/pods/Headers/include/libffi/arm64/ffi.h +0 -524
- package/src-native/pods/Headers/include/libffi/arm64/ffitarget.h +0 -92
- package/src-native/pods/Headers/include/libffi/x86_64/ffi.h +0 -524
- package/src-native/pods/Headers/include/libffi/x86_64/ffitarget.h +0 -147
- package/src-native/pods/Headers/include/libffi.h +0 -12
- package/src-native/pods/Headers/include/libplatform/DEPS +0 -9
- package/src-native/pods/Headers/include/libplatform/libplatform-export.h +0 -29
- package/src-native/pods/Headers/include/libplatform/libplatform.h +0 -106
- package/src-native/pods/Headers/include/libplatform/v8-tracing.h +0 -333
- package/src-native/pods/Headers/include/v8-array-buffer.h +0 -433
- package/src-native/pods/Headers/include/v8-callbacks.h +0 -397
- package/src-native/pods/Headers/include/v8-container.h +0 -129
- package/src-native/pods/Headers/include/v8-context.h +0 -407
- package/src-native/pods/Headers/include/v8-cppgc.h +0 -215
- package/src-native/pods/Headers/include/v8-data.h +0 -80
- package/src-native/pods/Headers/include/v8-date.h +0 -43
- package/src-native/pods/Headers/include/v8-debug.h +0 -168
- package/src-native/pods/Headers/include/v8-embedder-heap.h +0 -218
- package/src-native/pods/Headers/include/v8-embedder-state-scope.h +0 -51
- package/src-native/pods/Headers/include/v8-exception.h +0 -217
- package/src-native/pods/Headers/include/v8-extension.h +0 -62
- package/src-native/pods/Headers/include/v8-external.h +0 -37
- package/src-native/pods/Headers/include/v8-fast-api-calls.h +0 -939
- package/src-native/pods/Headers/include/v8-forward.h +0 -81
- package/src-native/pods/Headers/include/v8-function-callback.h +0 -475
- package/src-native/pods/Headers/include/v8-function.h +0 -125
- package/src-native/pods/Headers/include/v8-initialization.h +0 -315
- package/src-native/pods/Headers/include/v8-inspector-protocol.h +0 -13
- package/src-native/pods/Headers/include/v8-inspector.h +0 -376
- package/src-native/pods/Headers/include/v8-internal.h +0 -661
- package/src-native/pods/Headers/include/v8-isolate.h +0 -1709
- package/src-native/pods/Headers/include/v8-json.h +0 -47
- package/src-native/pods/Headers/include/v8-local-handle.h +0 -455
- package/src-native/pods/Headers/include/v8-locker.h +0 -149
- package/src-native/pods/Headers/include/v8-maybe.h +0 -137
- package/src-native/pods/Headers/include/v8-memory-span.h +0 -43
- package/src-native/pods/Headers/include/v8-message.h +0 -216
- package/src-native/pods/Headers/include/v8-metrics.h +0 -255
- package/src-native/pods/Headers/include/v8-microtask-queue.h +0 -152
- package/src-native/pods/Headers/include/v8-microtask.h +0 -28
- package/src-native/pods/Headers/include/v8-object.h +0 -775
- package/src-native/pods/Headers/include/v8-persistent-handle.h +0 -590
- package/src-native/pods/Headers/include/v8-platform.h +0 -1092
- package/src-native/pods/Headers/include/v8-primitive-object.h +0 -118
- package/src-native/pods/Headers/include/v8-primitive.h +0 -866
- package/src-native/pods/Headers/include/v8-profiler.h +0 -1198
- package/src-native/pods/Headers/include/v8-promise.h +0 -174
- package/src-native/pods/Headers/include/v8-proxy.h +0 -50
- package/src-native/pods/Headers/include/v8-regexp.h +0 -105
- package/src-native/pods/Headers/include/v8-script.h +0 -748
- package/src-native/pods/Headers/include/v8-snapshot.h +0 -196
- package/src-native/pods/Headers/include/v8-statistics.h +0 -217
- package/src-native/pods/Headers/include/v8-template.h +0 -1079
- package/src-native/pods/Headers/include/v8-traced-handle.h +0 -420
- package/src-native/pods/Headers/include/v8-typed-array.h +0 -282
- package/src-native/pods/Headers/include/v8-unwinder-state.h +0 -31
- package/src-native/pods/Headers/include/v8-unwinder.h +0 -132
- package/src-native/pods/Headers/include/v8-util.h +0 -658
- package/src-native/pods/Headers/include/v8-value-serializer-version.h +0 -24
- package/src-native/pods/Headers/include/v8-value-serializer.h +0 -279
- package/src-native/pods/Headers/include/v8-value.h +0 -526
- package/src-native/pods/Headers/include/v8-version-string.h +0 -38
- package/src-native/pods/Headers/include/v8-version.h +0 -20
- package/src-native/pods/Headers/include/v8-wasm-trap-handler-posix.h +0 -31
- package/src-native/pods/Headers/include/v8-wasm-trap-handler-win.h +0 -28
- package/src-native/pods/Headers/include/v8-wasm.h +0 -257
- package/src-native/pods/Headers/include/v8-weak-callback-info.h +0 -86
- package/src-native/pods/Headers/include/v8.h +0 -88
- package/src-native/pods/Headers/include/v8config.h +0 -605
- package/src-native/pods/Headers/inspector/InspectorServer.h +0 -20
- package/src-native/pods/Headers/inspector/JsV8InspectorClient.h +0 -66
- package/src-native/pods/Headers/inspector/base/trace_event/common/trace_event_common.h +0 -1123
- package/src-native/pods/Headers/inspector/base64.h +0 -9
- package/src-native/pods/Headers/inspector/src/base/address-region.h +0 -95
- package/src-native/pods/Headers/inspector/src/base/atomic-utils.h +0 -219
- package/src-native/pods/Headers/inspector/src/base/atomicops.h +0 -332
- package/src-native/pods/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +0 -89
- package/src-native/pods/Headers/inspector/src/base/base-export.h +0 -31
- package/src-native/pods/Headers/inspector/src/base/bits.h +0 -343
- package/src-native/pods/Headers/inspector/src/base/build_config.h +0 -234
- package/src-native/pods/Headers/inspector/src/base/compiler-specific.h +0 -136
- package/src-native/pods/Headers/inspector/src/base/export-template.h +0 -163
- package/src-native/pods/Headers/inspector/src/base/flags.h +0 -130
- package/src-native/pods/Headers/inspector/src/base/immediate-crash.h +0 -162
- package/src-native/pods/Headers/inspector/src/base/lazy-instance.h +0 -258
- package/src-native/pods/Headers/inspector/src/base/logging.h +0 -417
- package/src-native/pods/Headers/inspector/src/base/macros.h +0 -423
- package/src-native/pods/Headers/inspector/src/base/memory.h +0 -89
- package/src-native/pods/Headers/inspector/src/base/once.h +0 -108
- package/src-native/pods/Headers/inspector/src/base/optional.h +0 -882
- package/src-native/pods/Headers/inspector/src/base/platform/mutex.h +0 -370
- package/src-native/pods/Headers/inspector/src/base/platform/platform.h +0 -476
- package/src-native/pods/Headers/inspector/src/base/platform/semaphore.h +0 -108
- package/src-native/pods/Headers/inspector/src/base/platform/v8-time.h +0 -513
- package/src-native/pods/Headers/inspector/src/base/platform/wrappers.h +0 -73
- package/src-native/pods/Headers/inspector/src/base/safe_conversions.h +0 -389
- package/src-native/pods/Headers/inspector/src/base/safe_conversions_impl.h +0 -822
- package/src-native/pods/Headers/inspector/src/base/template-utils.h +0 -113
- package/src-native/pods/Headers/inspector/src/base/v8-fallthrough.h +0 -21
- package/src-native/pods/Headers/inspector/src/common/checks.h +0 -38
- package/src-native/pods/Headers/inspector/src/common/globals.h +0 -1842
- package/src-native/pods/Headers/inspector/src/debug/debug-interface.h +0 -667
- package/src-native/pods/Headers/inspector/src/debug/interface-types.h +0 -175
- package/src-native/pods/Headers/inspector/src/init/v8.h +0 -52
- package/src-native/pods/Headers/inspector/src/inspector/custom-preview.h +0 -24
- package/src-native/pods/Headers/inspector/src/inspector/injected-script.h +0 -251
- package/src-native/pods/Headers/inspector/src/inspector/inspected-context.h +0 -79
- package/src-native/pods/Headers/inspector/src/inspector/protocol/CSS.h +0 -2148
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Console.h +0 -211
- package/src-native/pods/Headers/inspector/src/inspector/protocol/DOM.h +0 -1008
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Debugger.h +0 -892
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Forward.h +0 -75
- package/src-native/pods/Headers/inspector/src/inspector/protocol/HeapProfiler.h +0 -346
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Log.h +0 -342
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Network.h +0 -2528
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Overlay.h +0 -281
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Page.h +0 -1189
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Profiler.h +0 -1001
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Protocol.h +0 -617
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Runtime.h +0 -1696
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Schema.h +0 -146
- package/src-native/pods/Headers/inspector/src/inspector/protocol/Security.h +0 -793
- package/src-native/pods/Headers/inspector/src/inspector/remote-object-id.h +0 -54
- package/src-native/pods/Headers/inspector/src/inspector/search-util.h +0 -26
- package/src-native/pods/Headers/inspector/src/inspector/string-16.h +0 -180
- package/src-native/pods/Headers/inspector/src/inspector/string-util.h +0 -128
- package/src-native/pods/Headers/inspector/src/inspector/v8-console-agent-impl.h +0 -48
- package/src-native/pods/Headers/inspector/src/inspector/v8-console-message.h +0 -147
- package/src-native/pods/Headers/inspector/src/inspector/v8-console.h +0 -173
- package/src-native/pods/Headers/inspector/src/inspector/v8-css-agent-impl.h +0 -62
- package/src-native/pods/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +0 -248
- package/src-native/pods/Headers/inspector/src/inspector/v8-debugger-id.h +0 -44
- package/src-native/pods/Headers/inspector/src/inspector/v8-debugger-script.h +0 -123
- package/src-native/pods/Headers/inspector/src/inspector/v8-debugger.h +0 -257
- package/src-native/pods/Headers/inspector/src/inspector/v8-dom-agent-impl.h +0 -91
- package/src-native/pods/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +0 -80
- package/src-native/pods/Headers/inspector/src/inspector/v8-inspector-impl.h +0 -191
- package/src-native/pods/Headers/inspector/src/inspector/v8-inspector-session-impl.h +0 -156
- package/src-native/pods/Headers/inspector/src/inspector/v8-log-agent-impl.h +0 -34
- package/src-native/pods/Headers/inspector/src/inspector/v8-network-agent-impl.h +0 -71
- package/src-native/pods/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +0 -24
- package/src-native/pods/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +0 -70
- package/src-native/pods/Headers/inspector/src/inspector/v8-page-agent-impl.h +0 -88
- package/src-native/pods/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +0 -104
- package/src-native/pods/Headers/inspector/src/inspector/v8-regex.h +0 -38
- package/src-native/pods/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +0 -157
- package/src-native/pods/Headers/inspector/src/inspector/v8-schema-agent-impl.h +0 -38
- package/src-native/pods/Headers/inspector/src/inspector/v8-stack-trace-impl.h +0 -164
- package/src-native/pods/Headers/inspector/src/inspector/v8-string-conversions.h +0 -17
- package/src-native/pods/Headers/inspector/src/inspector/v8-value-utils.h +0 -23
- package/src-native/pods/Headers/inspector/src/inspector/value-mirror.h +0 -87
- package/src-native/pods/Headers/inspector/src/libplatform/default-platform.h +0 -92
- package/src-native/pods/Headers/inspector/src/logging/tracing-flags.h +0 -50
- package/src-native/pods/Headers/inspector/src/numbers/conversions.h +0 -183
- package/src-native/pods/Headers/inspector/src/tracing/trace-event.h +0 -664
- package/src-native/pods/Headers/inspector/src/utils/allocation.h +0 -367
- package/src-native/pods/Headers/inspector/src/utils/vector.h +0 -324
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +0 -305
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +0 -314
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +0 -62
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +0 -6
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +0 -58
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +0 -47
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +0 -80
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +0 -52
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +0 -26
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +0 -104
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +0 -39
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +0 -406
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +0 -32
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +0 -158
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +0 -99
- package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +0 -139
- package/src-native/pods/Headers/inspector/utils.h +0 -32
- package/src-native/pods/Headers/inspector/v8-inspector-platform.h +0 -44
- package/src-native/pods/Headers/jsi/decorator.h +0 -762
- package/src-native/pods/Headers/jsi/instrumentation.h +0 -117
- package/src-native/pods/Headers/jsi/jsi-inl.h +0 -322
- package/src-native/pods/Headers/jsi/jsi.h +0 -1387
- package/src-native/pods/Headers/jsi/jsilib.h +0 -59
- package/src-native/pods/Headers/jsi/threadsafe.h +0 -79
- package/src-native/pods/Headers/runtime/ArgConverter.h +0 -61
- package/src-native/pods/Headers/runtime/ArrayAdapter.h +0 -13
- package/src-native/pods/Headers/runtime/Caches.h +0 -98
- package/src-native/pods/Headers/runtime/ClassBuilder.h +0 -61
- package/src-native/pods/Headers/runtime/Common.h +0 -9
- package/src-native/pods/Headers/runtime/ConcurrentMap.h +0 -55
- package/src-native/pods/Headers/runtime/ConcurrentQueue.h +0 -28
- package/src-native/pods/Headers/runtime/Console.h +0 -27
- package/src-native/pods/Headers/runtime/Constants.h +0 -15
- package/src-native/pods/Headers/runtime/DataWrapper.h +0 -671
- package/src-native/pods/Headers/runtime/DictionaryAdapter.h +0 -13
- package/src-native/pods/Headers/runtime/ExtVector.h +0 -21
- package/src-native/pods/Headers/runtime/FFICall.h +0 -105
- package/src-native/pods/Headers/runtime/FastEnumerationAdapter.h +0 -13
- package/src-native/pods/Headers/runtime/FunctionReference.h +0 -18
- package/src-native/pods/Headers/runtime/Helpers.h +0 -84
- package/src-native/pods/Headers/runtime/InlineFunctions.h +0 -16
- package/src-native/pods/Headers/runtime/Interop.h +0 -202
- package/src-native/pods/Headers/runtime/KnownUnknownClassPair.h +0 -35
- package/src-native/pods/Headers/runtime/Metadata.h +0 -981
- package/src-native/pods/Headers/runtime/MetadataBuilder.h +0 -72
- package/src-native/pods/Headers/runtime/MetadataInlines.h +0 -157
- package/src-native/pods/Headers/runtime/ModuleInternal.h +0 -59
- package/src-native/pods/Headers/runtime/NSDataAdapter.h +0 -13
- package/src-native/pods/Headers/runtime/NativeScriptException.h +0 -27
- package/src-native/pods/Headers/runtime/ObjectManager.h +0 -31
- package/src-native/pods/Headers/runtime/OneByteStringResource.h +0 -21
- package/src-native/pods/Headers/runtime/Pointer.h +0 -26
- package/src-native/pods/Headers/runtime/PromiseProxy.h +0 -15
- package/src-native/pods/Headers/runtime/Reference.h +0 -38
- package/src-native/pods/Headers/runtime/Runtime.h +0 -67
- package/src-native/pods/Headers/runtime/RuntimeConfig.h +0 -17
- package/src-native/pods/Headers/runtime/SetTimeout.h +0 -34
- package/src-native/pods/Headers/runtime/SimpleAllocator.h +0 -23
- package/src-native/pods/Headers/runtime/StringHasher.h +0 -315
- package/src-native/pods/Headers/runtime/SymbolIterator.h +0 -18
- package/src-native/pods/Headers/runtime/SymbolLoader.h +0 -27
- package/src-native/pods/Headers/runtime/TNSDerivedClass.h +0 -8
- package/src-native/pods/Headers/runtime/TSHelpers.h +0 -15
- package/src-native/pods/Headers/runtime/Tasks.h +0 -19
- package/src-native/pods/Headers/runtime/UnmanagedType.h +0 -21
- package/src-native/pods/Headers/runtime/WeakRef.h +0 -15
- package/src-native/pods/Headers/runtime/Worker.h +0 -26
- package/src-native/pods/Headers/runtime/robin_hood.h +0 -2184
- package/src-native/pods/Headers/v8runtime/HostProxy.h +0 -71
- package/src-native/pods/Headers/v8runtime/JSIV8ValueConverter.h +0 -70
- package/src-native/pods/Headers/v8runtime/V8PointerValue.h +0 -44
- package/src-native/pods/Headers/v8runtime/V8Runtime.h +0 -215
- package/src-native/pods/Headers/v8runtime/V8RuntimeConfig.h +0 -26
- package/src-native/pods/Headers/v8runtime/V8RuntimeFactory.h +0 -21
- package/src-native/pods/NativeScript.podspec +0 -68
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#if 0
|
|
2
2
|
#elif defined(__arm64__) && __arm64__
|
|
3
|
-
// Generated by Apple Swift version 6.
|
|
3
|
+
// Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
|
4
4
|
#ifndef MASON_SWIFT_H
|
|
5
5
|
#define MASON_SWIFT_H
|
|
6
6
|
#pragma clang diagnostic push
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
# if __has_include(<uchar.h>)
|
|
66
66
|
# include <uchar.h>
|
|
67
67
|
# elif !defined(__cplusplus)
|
|
68
|
+
typedef unsigned char char8_t;
|
|
68
69
|
typedef uint_least16_t char16_t;
|
|
69
70
|
typedef uint_least32_t char32_t;
|
|
70
71
|
# endif
|
|
@@ -281,8 +282,10 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
281
282
|
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
282
283
|
#endif
|
|
283
284
|
@import CoreFoundation;
|
|
285
|
+
@import CoreGraphics;
|
|
284
286
|
@import Foundation;
|
|
285
287
|
@import ObjectiveC;
|
|
288
|
+
@import QuartzCore;
|
|
286
289
|
@import UIKit;
|
|
287
290
|
#endif
|
|
288
291
|
|
|
@@ -305,95 +308,182 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
305
308
|
#endif
|
|
306
309
|
|
|
307
310
|
#if defined(__OBJC__)
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
311
|
+
|
|
312
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlign, "Align", open) {
|
|
313
|
+
MasonAlignAuto = 0,
|
|
314
|
+
MasonAlignLeft = 1,
|
|
315
|
+
MasonAlignRight = 2,
|
|
316
|
+
MasonAlignCenter = 3,
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlignContent, "AlignContent", open) {
|
|
320
|
+
MasonAlignContentNormal = -1,
|
|
321
|
+
MasonAlignContentStart = 0,
|
|
322
|
+
MasonAlignContentEnd = 1,
|
|
323
|
+
MasonAlignContentCenter = 2,
|
|
324
|
+
MasonAlignContentStretch = 3,
|
|
325
|
+
MasonAlignContentSpaceBetween = 4,
|
|
326
|
+
MasonAlignContentSpaceAround = 5,
|
|
327
|
+
MasonAlignContentSpaceEvenly = 6,
|
|
328
|
+
MasonAlignContentFlexStart = 7,
|
|
329
|
+
MasonAlignContentFlexEnd = 8,
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlignItems, "AlignItems", open) {
|
|
333
|
+
MasonAlignItemsNormal = -1,
|
|
334
|
+
MasonAlignItemsStart = 0,
|
|
335
|
+
MasonAlignItemsEnd = 1,
|
|
336
|
+
MasonAlignItemsCenter = 2,
|
|
337
|
+
MasonAlignItemsBaseline = 3,
|
|
338
|
+
MasonAlignItemsStretch = 4,
|
|
339
|
+
MasonAlignItemsFlexStart = 5,
|
|
340
|
+
MasonAlignItemsFlexEnd = 6,
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlignSelf, "AlignSelf", open) {
|
|
344
|
+
MasonAlignSelfNormal = -1,
|
|
345
|
+
MasonAlignSelfStart = 0,
|
|
346
|
+
MasonAlignSelfEnd = 1,
|
|
347
|
+
MasonAlignSelfCenter = 2,
|
|
348
|
+
MasonAlignSelfBaseline = 3,
|
|
349
|
+
MasonAlignSelfStretch = 4,
|
|
350
|
+
MasonAlignSelfFlexStart = 5,
|
|
351
|
+
MasonAlignSelfFlexEnd = 6,
|
|
319
352
|
};
|
|
320
353
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
354
|
+
@class NSCoder;
|
|
355
|
+
SWIFT_CLASS("_TtC5Mason17BackgroundCALayer")
|
|
356
|
+
@interface BackgroundCALayer : CALayer
|
|
357
|
+
- (void)drawInContext:(CGContextRef _Nonnull)ctx;
|
|
358
|
+
- (void)layoutSublayers;
|
|
359
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
360
|
+
- (nonnull instancetype)initWithLayer:(id _Nonnull)layer OBJC_DESIGNATED_INITIALIZER;
|
|
361
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
|
|
362
|
+
@end
|
|
363
|
+
|
|
364
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonBoxSizing, "BoxSizing", open) {
|
|
365
|
+
MasonBoxSizingBorderBox = 0,
|
|
366
|
+
MasonBoxSizingContentBox = 1,
|
|
330
367
|
};
|
|
331
368
|
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
369
|
+
@class MasonTextEngine;
|
|
370
|
+
@class MasonNode;
|
|
371
|
+
SWIFT_PROTOCOL_NAMED("TextContainer")
|
|
372
|
+
@protocol MasonTextContainer <NSObject>
|
|
373
|
+
@property (nonatomic, readonly, strong) MasonTextEngine * _Nonnull engine;
|
|
374
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
375
|
+
@end
|
|
376
|
+
|
|
377
|
+
@class MasonStyle;
|
|
378
|
+
@class UIView;
|
|
379
|
+
SWIFT_PROTOCOL("_TtP5Mason16MasonElementObjc_")
|
|
380
|
+
@protocol MasonElementObjc <NSObject>
|
|
381
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
382
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
383
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
384
|
+
@end
|
|
385
|
+
|
|
386
|
+
@class NSCMason;
|
|
387
|
+
@class NSString;
|
|
388
|
+
@class NSMutableData;
|
|
389
|
+
SWIFT_CLASS_NAMED("Button")
|
|
390
|
+
@interface MasonButton : UIControl <MasonElementObjc, MasonTextContainer>
|
|
391
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
392
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
393
|
+
@property (nonatomic, strong) MasonTextEngine * _Nonnull engine;
|
|
394
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
395
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
396
|
+
/// Text content - sets or gets the concatenated text from all text nodes
|
|
397
|
+
@property (nonatomic, copy) NSString * _Nonnull textContent;
|
|
398
|
+
- (void)requestLayout;
|
|
399
|
+
- (void)addView:(UIView * _Nonnull)view;
|
|
400
|
+
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
401
|
+
- (void)drawRect:(CGRect)rect;
|
|
402
|
+
@property (nonatomic, readonly, strong) NSMutableData * _Nonnull textValues;
|
|
403
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
|
|
404
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
405
|
+
@end
|
|
406
|
+
|
|
407
|
+
@class UITouch;
|
|
408
|
+
@class UIEvent;
|
|
409
|
+
@interface MasonButton (SWIFT_EXTENSION(Mason))
|
|
410
|
+
- (void)touchesBegan:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
|
|
411
|
+
- (void)touchesMoved:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
|
|
412
|
+
- (void)touchesEnded:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
|
|
413
|
+
- (void)touchesCancelled:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
|
|
414
|
+
@end
|
|
415
|
+
|
|
416
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonClear, "Clear", open) {
|
|
417
|
+
MasonClearNone = 0,
|
|
418
|
+
MasonClearLeft = 1,
|
|
419
|
+
MasonClearRight = 2,
|
|
420
|
+
MasonClearBoth = 3,
|
|
341
421
|
};
|
|
342
422
|
|
|
343
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
423
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDecorationLine, "DecorationLine", open) {
|
|
424
|
+
MasonDecorationLineNone = 0,
|
|
425
|
+
MasonDecorationLineUnderline = 1,
|
|
426
|
+
MasonDecorationLineOverline = 2,
|
|
427
|
+
MasonDecorationLineLineThrough = 3,
|
|
348
428
|
};
|
|
349
429
|
|
|
350
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
430
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDecorationStyle, "DecorationStyle", open) {
|
|
431
|
+
MasonDecorationStyleSolid = 0,
|
|
432
|
+
MasonDecorationStyleDouble = 1,
|
|
433
|
+
MasonDecorationStyleDotted = 2,
|
|
434
|
+
MasonDecorationStyleDashed = 3,
|
|
435
|
+
MasonDecorationStyleWavy = 4,
|
|
354
436
|
};
|
|
355
437
|
|
|
356
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
DisplayBlock = 3,
|
|
438
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDirection, "Direction", open) {
|
|
439
|
+
MasonDirectionInherit = 0,
|
|
440
|
+
MasonDirectionLTR = 1,
|
|
441
|
+
MasonDirectionRTL = 2,
|
|
361
442
|
};
|
|
362
443
|
|
|
363
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
444
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDisplay, "Display", open) {
|
|
445
|
+
MasonDisplayNone = 0,
|
|
446
|
+
MasonDisplayFlex = 1,
|
|
447
|
+
MasonDisplayGrid = 2,
|
|
448
|
+
MasonDisplayBlock = 3,
|
|
449
|
+
MasonDisplayInline = 4,
|
|
450
|
+
MasonDisplayInlineBlock = 5,
|
|
451
|
+
MasonDisplayInlineFlex = 6,
|
|
452
|
+
MasonDisplayInlineGrid = 7,
|
|
368
453
|
};
|
|
369
454
|
|
|
370
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
455
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonFlexDirection, "FlexDirection", open) {
|
|
456
|
+
MasonFlexDirectionRow = 0,
|
|
457
|
+
MasonFlexDirectionColumn = 1,
|
|
458
|
+
MasonFlexDirectionRowReverse = 2,
|
|
459
|
+
MasonFlexDirectionColumnReverse = 3,
|
|
374
460
|
};
|
|
375
461
|
|
|
376
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
462
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonFlexWrap, "FlexWrap", open) {
|
|
463
|
+
MasonFlexWrapNoWrap = 0,
|
|
464
|
+
MasonFlexWrapWrap = 1,
|
|
465
|
+
MasonFlexWrapWrapReverse = 2,
|
|
380
466
|
};
|
|
381
467
|
|
|
382
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
FlexGridAutoFlowWrapColumnDense = 3,
|
|
468
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonFontStyle, "FontStyle", open) {
|
|
469
|
+
MasonFontStyleNormal = 0,
|
|
470
|
+
MasonFontStyleItalic = 1,
|
|
471
|
+
MasonFontStyleOblique = 2,
|
|
387
472
|
};
|
|
388
473
|
|
|
389
|
-
|
|
390
|
-
|
|
474
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonGridAutoFlowWrap, "GridAutoFlow", open) {
|
|
475
|
+
MasonGridAutoFlowWrapRow = 0,
|
|
476
|
+
MasonGridAutoFlowWrapColumn = 1,
|
|
477
|
+
MasonGridAutoFlowWrapRowDense = 2,
|
|
478
|
+
MasonGridAutoFlowWrapColumnDense = 3,
|
|
479
|
+
};
|
|
391
480
|
|
|
481
|
+
enum MasonGridPlacementCompatType : NSInteger;
|
|
392
482
|
SWIFT_CLASS_NAMED("GridPlacementCompat")
|
|
393
483
|
@interface GridPlacementCompat : NSObject
|
|
394
484
|
- (nonnull instancetype)initWithSpan:(int16_t)span OBJC_DESIGNATED_INITIALIZER;
|
|
395
485
|
- (nonnull instancetype)initWithLine:(int16_t)line OBJC_DESIGNATED_INITIALIZER;
|
|
396
|
-
@property (nonatomic, readonly) enum
|
|
486
|
+
@property (nonatomic, readonly) enum MasonGridPlacementCompatType type;
|
|
397
487
|
@property (nonatomic, readonly) int16_t value;
|
|
398
488
|
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
399
489
|
@property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
|
|
@@ -403,61 +493,80 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GridPlacemen
|
|
|
403
493
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
404
494
|
@end
|
|
405
495
|
|
|
406
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
496
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonGridPlacementCompatType, "GridPlacementCompatType", open) {
|
|
497
|
+
MasonGridPlacementCompatTypeAuto = 0,
|
|
498
|
+
MasonGridPlacementCompatTypeLine = 1,
|
|
499
|
+
MasonGridPlacementCompatTypeSpan = 2,
|
|
410
500
|
};
|
|
411
501
|
|
|
412
|
-
|
|
413
502
|
SWIFT_CLASS_NAMED("GridTrackRepetition")
|
|
414
|
-
@interface
|
|
503
|
+
@interface MasonGridTrackRepetition : NSObject
|
|
504
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
415
505
|
@property (nonatomic, readonly) int32_t type;
|
|
416
506
|
@property (nonatomic, readonly) uint16_t value;
|
|
417
|
-
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong)
|
|
418
|
-
+ (
|
|
419
|
-
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong)
|
|
420
|
-
+ (
|
|
421
|
-
+ (
|
|
507
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonGridTrackRepetition * _Nonnull AutoFill;)
|
|
508
|
+
+ (MasonGridTrackRepetition * _Nonnull)AutoFill SWIFT_WARN_UNUSED_RESULT;
|
|
509
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonGridTrackRepetition * _Nonnull AutoFit;)
|
|
510
|
+
+ (MasonGridTrackRepetition * _Nonnull)AutoFit SWIFT_WARN_UNUSED_RESULT;
|
|
511
|
+
+ (MasonGridTrackRepetition * _Nonnull)Count:(uint16_t)value SWIFT_WARN_UNUSED_RESULT;
|
|
422
512
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
423
513
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
424
514
|
@end
|
|
425
515
|
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
516
|
+
enum MasonLoadingState : NSInteger;
|
|
517
|
+
@class UIImage;
|
|
518
|
+
SWIFT_CLASS_NAMED("Img")
|
|
519
|
+
@interface MasonImg : UIView <MasonElementObjc>
|
|
520
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
521
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
522
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
523
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
524
|
+
@property (nonatomic, copy) void (^ _Nullable didLayout)(void);
|
|
525
|
+
@property (nonatomic, copy) void (^ _Nullable onStateChange)(enum MasonLoadingState, NSError * _Nullable);
|
|
526
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layerClass;)
|
|
527
|
+
+ (Class _Nonnull)layerClass SWIFT_WARN_UNUSED_RESULT;
|
|
528
|
+
@property (nonatomic, strong) UIImage * _Nullable image;
|
|
529
|
+
- (void)requestLayout;
|
|
530
|
+
@property (nonatomic, copy) NSString * _Nullable src;
|
|
531
|
+
- (void)updateImage:(UIImage * _Nullable)image;
|
|
532
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
533
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
534
|
+
@end
|
|
438
535
|
|
|
439
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
536
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonJustifyContent, "JustifyContent", open) {
|
|
537
|
+
MasonJustifyContentNormal = -1,
|
|
538
|
+
MasonJustifyContentStart = 0,
|
|
539
|
+
MasonJustifyContentEnd = 1,
|
|
540
|
+
MasonJustifyContentCenter = 2,
|
|
541
|
+
MasonJustifyContentStretch = 3,
|
|
542
|
+
MasonJustifyContentSpaceBetween = 4,
|
|
543
|
+
MasonJustifyContentSpaceAround = 5,
|
|
544
|
+
MasonJustifyContentSpaceEvenly = 6,
|
|
545
|
+
MasonJustifyContentFlexStart = 7,
|
|
546
|
+
MasonJustifyContentFlexEnd = 8,
|
|
448
547
|
};
|
|
449
548
|
|
|
450
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
549
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonJustifyItems, "JustifyItems", open) {
|
|
550
|
+
MasonJustifyItemsNormal = -1,
|
|
551
|
+
MasonJustifyItemsStart = 0,
|
|
552
|
+
MasonJustifyItemsEnd = 1,
|
|
553
|
+
MasonJustifyItemsCenter = 2,
|
|
554
|
+
MasonJustifyItemsBaseline = 3,
|
|
555
|
+
MasonJustifyItemsStretch = 4,
|
|
556
|
+
MasonJustifyItemsFlexStart = 5,
|
|
557
|
+
MasonJustifyItemsFlexEnd = 6,
|
|
459
558
|
};
|
|
460
559
|
|
|
560
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonJustifySelf, "JustifySelf", open) {
|
|
561
|
+
MasonJustifySelfNormal = -1,
|
|
562
|
+
MasonJustifySelfStart = 0,
|
|
563
|
+
MasonJustifySelfEnd = 1,
|
|
564
|
+
MasonJustifySelfCenter = 2,
|
|
565
|
+
MasonJustifySelfBaseline = 3,
|
|
566
|
+
MasonJustifySelfStretch = 4,
|
|
567
|
+
MasonJustifySelfFlexStart = 5,
|
|
568
|
+
MasonJustifySelfFlexEnd = 6,
|
|
569
|
+
};
|
|
461
570
|
|
|
462
571
|
SWIFT_CLASS_NAMED("LineGridPlacementCompat")
|
|
463
572
|
@interface LineGridPlacementCompat : NSObject
|
|
@@ -467,13 +576,33 @@ SWIFT_CLASS_NAMED("LineGridPlacementCompat")
|
|
|
467
576
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
468
577
|
@end
|
|
469
578
|
|
|
470
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
471
|
-
|
|
472
|
-
|
|
579
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonLineHeight, "LineHeight", open) {
|
|
580
|
+
MasonLineHeightNormal = 0,
|
|
581
|
+
MasonLineHeightPre = 1,
|
|
582
|
+
MasonLineHeightPreWrap = 2,
|
|
583
|
+
MasonLineHeightPreLine = 3,
|
|
473
584
|
};
|
|
474
585
|
|
|
475
|
-
|
|
586
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonLoadingState, "LoadingState", open) {
|
|
587
|
+
MasonLoadingStateLoading = 0,
|
|
588
|
+
MasonLoadingStateLoaded = 1,
|
|
589
|
+
MasonLoadingStateError = 2,
|
|
590
|
+
};
|
|
476
591
|
|
|
592
|
+
SWIFT_PROTOCOL("_TtP5Mason18MasonCharacterData_")
|
|
593
|
+
@protocol MasonCharacterData
|
|
594
|
+
@property (nonatomic, copy) NSString * _Nonnull data;
|
|
595
|
+
@property (nonatomic, readonly) NSInteger length;
|
|
596
|
+
- (nonnull instancetype)appendData:(NSString * _Nonnull)s;
|
|
597
|
+
- (nonnull instancetype)insertData:(NSString * _Nonnull)s at:(NSInteger)offset;
|
|
598
|
+
- (nonnull instancetype)deleteDataWithOffset:(NSInteger)offset count:(NSInteger)count;
|
|
599
|
+
- (nonnull instancetype)replaceDataWithOffset:(NSInteger)offset count:(NSInteger)count with:(NSString * _Nonnull)s;
|
|
600
|
+
- (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
|
|
601
|
+
- (nonnull instancetype)deleteDataWithRange:(NSRange)range;
|
|
602
|
+
- (nonnull instancetype)replaceDataWithRange:(NSRange)range with:(NSString * _Nonnull)s;
|
|
603
|
+
@end
|
|
604
|
+
|
|
605
|
+
enum MasonDimensionCompatType : NSInteger;
|
|
477
606
|
SWIFT_CLASS_NAMED("MasonDimensionCompat")
|
|
478
607
|
@interface MasonDimensionCompat : NSObject
|
|
479
608
|
- (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -496,6 +625,13 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonDimensionCompatType, "MasonDimensionCom
|
|
|
496
625
|
MasonDimensionCompatTypePercent = 2,
|
|
497
626
|
};
|
|
498
627
|
|
|
628
|
+
SWIFT_CLASS_NAMED("MasonDimensionPointCompat")
|
|
629
|
+
@interface MasonDimensionPointCompat : NSObject
|
|
630
|
+
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull x;
|
|
631
|
+
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull y;
|
|
632
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
633
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
634
|
+
@end
|
|
499
635
|
|
|
500
636
|
SWIFT_CLASS_NAMED("MasonDimensionRectCompat")
|
|
501
637
|
@interface MasonDimensionRectCompat : NSObject
|
|
@@ -503,12 +639,11 @@ SWIFT_CLASS_NAMED("MasonDimensionRectCompat")
|
|
|
503
639
|
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull right;
|
|
504
640
|
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull top;
|
|
505
641
|
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull bottom;
|
|
506
|
-
- (nonnull instancetype)init:(MasonDimensionCompat * _Nonnull)left :(MasonDimensionCompat * _Nonnull)
|
|
642
|
+
- (nonnull instancetype)init:(MasonDimensionCompat * _Nonnull)left :(MasonDimensionCompat * _Nonnull)top :(MasonDimensionCompat * _Nonnull)right :(MasonDimensionCompat * _Nonnull)bottom OBJC_DESIGNATED_INITIALIZER;
|
|
507
643
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
508
644
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
509
645
|
@end
|
|
510
646
|
|
|
511
|
-
|
|
512
647
|
SWIFT_CLASS_NAMED("MasonDimensionSizeCompat")
|
|
513
648
|
@interface MasonDimensionSizeCompat : NSObject
|
|
514
649
|
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull width;
|
|
@@ -517,6 +652,28 @@ SWIFT_CLASS_NAMED("MasonDimensionSizeCompat")
|
|
|
517
652
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
518
653
|
@end
|
|
519
654
|
|
|
655
|
+
SWIFT_CLASS_NAMED("MasonDocument")
|
|
656
|
+
@interface MasonDocument : NSObject
|
|
657
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
658
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
659
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)instance OBJC_DESIGNATED_INITIALIZER;
|
|
660
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
661
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
662
|
+
@end
|
|
663
|
+
|
|
664
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonFloat, "MasonFloat", open) {
|
|
665
|
+
MasonFloatNone = 0,
|
|
666
|
+
MasonFloatLeft = 1,
|
|
667
|
+
MasonFloatRight = 2,
|
|
668
|
+
};
|
|
669
|
+
|
|
670
|
+
SWIFT_CLASS("_TtC5Mason15MasonImageLayer")
|
|
671
|
+
@interface MasonImageLayer : CALayer
|
|
672
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
673
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
674
|
+
- (nonnull instancetype)initWithLayer:(id _Nonnull)layer OBJC_DESIGNATED_INITIALIZER;
|
|
675
|
+
- (void)drawInContext:(CGContextRef _Nonnull)context;
|
|
676
|
+
@end
|
|
520
677
|
|
|
521
678
|
SWIFT_CLASS_NAMED("MasonLayout")
|
|
522
679
|
@interface MasonLayout : NSObject
|
|
@@ -526,13 +683,15 @@ SWIFT_CLASS_NAMED("MasonLayout")
|
|
|
526
683
|
@property (nonatomic, readonly) float width;
|
|
527
684
|
@property (nonatomic, readonly) float height;
|
|
528
685
|
@property (nonatomic, readonly, copy) NSArray<MasonLayout *> * _Nonnull children;
|
|
686
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonLayout * _Nonnull zero;)
|
|
687
|
+
+ (MasonLayout * _Nonnull)zero SWIFT_WARN_UNUSED_RESULT;
|
|
688
|
+
@property (nonatomic, readonly) BOOL hasChildren;
|
|
529
689
|
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
|
|
530
690
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
531
691
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
532
692
|
@end
|
|
533
693
|
|
|
534
694
|
enum MasonLengthPercentageAutoCompatType : NSInteger;
|
|
535
|
-
|
|
536
695
|
SWIFT_CLASS_NAMED("MasonLengthPercentageAutoCompat")
|
|
537
696
|
@interface MasonLengthPercentageAutoCompat : NSObject
|
|
538
697
|
- (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -555,6 +714,13 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonLengthPercentageAutoCompatType, "MasonL
|
|
|
555
714
|
MasonLengthPercentageAutoCompatTypePercent = 2,
|
|
556
715
|
};
|
|
557
716
|
|
|
717
|
+
SWIFT_CLASS_NAMED("MasonLengthPercentageAutoPointCompat")
|
|
718
|
+
@interface MasonLengthPercentageAutoPointCompat : NSObject
|
|
719
|
+
@property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull x;
|
|
720
|
+
@property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull y;
|
|
721
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
722
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
723
|
+
@end
|
|
558
724
|
|
|
559
725
|
SWIFT_CLASS_NAMED("MasonLengthPercentageAutoRectCompat")
|
|
560
726
|
@interface MasonLengthPercentageAutoRectCompat : NSObject
|
|
@@ -562,12 +728,11 @@ SWIFT_CLASS_NAMED("MasonLengthPercentageAutoRectCompat")
|
|
|
562
728
|
@property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull right;
|
|
563
729
|
@property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull top;
|
|
564
730
|
@property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull bottom;
|
|
565
|
-
- (nonnull instancetype)init:(MasonLengthPercentageAutoCompat * _Nonnull)left :(MasonLengthPercentageAutoCompat * _Nonnull)
|
|
731
|
+
- (nonnull instancetype)init:(MasonLengthPercentageAutoCompat * _Nonnull)left :(MasonLengthPercentageAutoCompat * _Nonnull)top :(MasonLengthPercentageAutoCompat * _Nonnull)right :(MasonLengthPercentageAutoCompat * _Nonnull)bottom OBJC_DESIGNATED_INITIALIZER;
|
|
566
732
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
567
733
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
568
734
|
@end
|
|
569
735
|
|
|
570
|
-
|
|
571
736
|
SWIFT_CLASS_NAMED("MasonLengthPercentageAutoSizeCompat")
|
|
572
737
|
@interface MasonLengthPercentageAutoSizeCompat : NSObject
|
|
573
738
|
@property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull width;
|
|
@@ -577,7 +742,6 @@ SWIFT_CLASS_NAMED("MasonLengthPercentageAutoSizeCompat")
|
|
|
577
742
|
@end
|
|
578
743
|
|
|
579
744
|
enum MasonLengthPercentageCompatType : NSInteger;
|
|
580
|
-
|
|
581
745
|
SWIFT_CLASS_NAMED("MasonLengthPercentageCompat")
|
|
582
746
|
@interface MasonLengthPercentageCompat : NSObject
|
|
583
747
|
- (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -597,6 +761,13 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonLengthPercentageCompatType, "MasonLengt
|
|
|
597
761
|
MasonLengthPercentageCompatTypePercent = 1,
|
|
598
762
|
};
|
|
599
763
|
|
|
764
|
+
SWIFT_CLASS_NAMED("MasonLengthPercentagePointCompat")
|
|
765
|
+
@interface MasonLengthPercentagePointCompat : NSObject
|
|
766
|
+
@property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull x;
|
|
767
|
+
@property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull y;
|
|
768
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
769
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
770
|
+
@end
|
|
600
771
|
|
|
601
772
|
SWIFT_CLASS_NAMED("MasonLengthPercentageRectCompat")
|
|
602
773
|
@interface MasonLengthPercentageRectCompat : NSObject
|
|
@@ -609,7 +780,6 @@ SWIFT_CLASS_NAMED("MasonLengthPercentageRectCompat")
|
|
|
609
780
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
610
781
|
@end
|
|
611
782
|
|
|
612
|
-
|
|
613
783
|
SWIFT_CLASS_NAMED("MasonLengthPercentageSizeCompat")
|
|
614
784
|
@interface MasonLengthPercentageSizeCompat : NSObject
|
|
615
785
|
@property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull width;
|
|
@@ -618,65 +788,115 @@ SWIFT_CLASS_NAMED("MasonLengthPercentageSizeCompat")
|
|
|
618
788
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
619
789
|
@end
|
|
620
790
|
|
|
621
|
-
|
|
622
|
-
@class NSCMason;
|
|
623
|
-
|
|
791
|
+
enum MasonNodeType : int32_t;
|
|
624
792
|
SWIFT_CLASS_NAMED("MasonNode")
|
|
625
793
|
@interface MasonNode : NSObject
|
|
794
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
795
|
+
@property (nonatomic, copy) void (^ _Nullable onNodeAttached)(void);
|
|
796
|
+
@property (nonatomic, copy) void (^ _Nullable onNodeDetached)(void);
|
|
626
797
|
@property (nonatomic, readonly) void * _Nullable nativePtr;
|
|
627
|
-
@property (nonatomic, readonly, strong) MasonLayout *
|
|
628
|
-
@property (nonatomic)
|
|
629
|
-
|
|
630
|
-
@property (nonatomic, readonly, strong) MasonNode * _Nullable
|
|
631
|
-
@property (nonatomic, readonly,
|
|
798
|
+
@property (nonatomic, readonly, strong) MasonLayout * _Nonnull computedLayout;
|
|
799
|
+
@property (nonatomic, readonly, strong) MasonDocument * _Nullable document;
|
|
800
|
+
- (MasonNode * _Nonnull)getRootNode SWIFT_WARN_UNUSED_RESULT;
|
|
801
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nullable parent;
|
|
802
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nullable parentNode;
|
|
803
|
+
@property (nonatomic, readonly) enum MasonNodeType type;
|
|
804
|
+
- (NSArray<MasonNode *> * _Nonnull)getChildren SWIFT_WARN_UNUSED_RESULT;
|
|
805
|
+
- (NSArray<MasonNode *> * _Nonnull)getLayoutChildren SWIFT_WARN_UNUSED_RESULT;
|
|
806
|
+
@property (nonatomic) BOOL inBatch;
|
|
632
807
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes OBJC_DESIGNATED_INITIALIZER;
|
|
633
|
-
- (MasonLayout * _Nonnull)layout;
|
|
634
808
|
@property (nonatomic, readonly) BOOL isDirty;
|
|
635
809
|
- (void)markDirty;
|
|
636
|
-
- (
|
|
637
|
-
|
|
638
|
-
- (
|
|
639
|
-
- (
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
- (void)computeWithMaxContent;
|
|
645
|
-
- (void)computeWithMinContent;
|
|
646
|
-
- (void)attachAndApply;
|
|
810
|
+
- (UIView * _Nullable)getRoot SWIFT_WARN_UNUSED_RESULT;
|
|
811
|
+
/// Helper to get default text attributes for new text nodes
|
|
812
|
+
- (NSDictionary<NSAttributedStringKey, id> * _Nonnull)getDefaultAttributes SWIFT_WARN_UNUSED_RESULT;
|
|
813
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
814
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
815
|
+
@end
|
|
816
|
+
|
|
817
|
+
@interface MasonNode (SWIFT_EXTENSION(Mason))
|
|
647
818
|
- (void)setChildrenWithValue:(NSArray<MasonNode *> * _Nonnull)value;
|
|
648
|
-
- (void)
|
|
649
|
-
|
|
819
|
+
- (void)appendChild:(MasonNode * _Nonnull)child;
|
|
820
|
+
@end
|
|
821
|
+
|
|
822
|
+
typedef SWIFT_ENUM_NAMED(int32_t, MasonNodeType, "MasonNodeType", open) {
|
|
823
|
+
MasonNodeTypeElement = 0,
|
|
824
|
+
MasonNodeTypeText = 1,
|
|
825
|
+
MasonNodeTypeDocument = 2,
|
|
826
|
+
};
|
|
827
|
+
|
|
828
|
+
enum MasonOverflow : NSInteger;
|
|
829
|
+
SWIFT_CLASS_NAMED("MasonOverflowPointCompat")
|
|
830
|
+
@interface MasonOverflowPointCompat : NSObject
|
|
831
|
+
@property (nonatomic) enum MasonOverflow x;
|
|
832
|
+
@property (nonatomic) enum MasonOverflow y;
|
|
833
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
650
834
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
651
835
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
652
836
|
@end
|
|
653
837
|
|
|
654
|
-
@class
|
|
655
|
-
@class
|
|
656
|
-
enum
|
|
657
|
-
|
|
838
|
+
@class NSCFontFace;
|
|
839
|
+
@class MasonVerticalAlignValue;
|
|
840
|
+
enum MasonObjectFit : NSInteger;
|
|
841
|
+
@class UIColor;
|
|
842
|
+
enum MasonTextJustify : NSInteger;
|
|
843
|
+
@class MasonTextOverflowCompat;
|
|
844
|
+
enum MasonTextTransform : NSInteger;
|
|
845
|
+
enum MasonWhiteSpace : NSInteger;
|
|
846
|
+
enum MasonTextWrap : NSInteger;
|
|
847
|
+
enum MasonPosition : NSInteger;
|
|
658
848
|
enum MasonTextAlign : NSInteger;
|
|
659
|
-
@class MinMax;
|
|
660
|
-
@class TrackSizingFunction;
|
|
661
|
-
|
|
662
849
|
SWIFT_CLASS_NAMED("MasonStyle")
|
|
663
850
|
@interface MasonStyle : NSObject
|
|
664
|
-
@property (nonatomic, strong)
|
|
665
|
-
@property (nonatomic,
|
|
851
|
+
@property (nonatomic, readonly, strong) NSCFontFace * _Null_unspecified font;
|
|
852
|
+
@property (nonatomic, strong) NSMutableData * _Nonnull values;
|
|
853
|
+
@property (nonatomic, strong) NSMutableData * _Nonnull textValues;
|
|
666
854
|
- (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)node OBJC_DESIGNATED_INITIALIZER;
|
|
667
|
-
@property (nonatomic)
|
|
668
|
-
@property (nonatomic) enum
|
|
669
|
-
@property (nonatomic) enum
|
|
670
|
-
@property (nonatomic) enum
|
|
671
|
-
@property (nonatomic)
|
|
672
|
-
|
|
673
|
-
@property (nonatomic)
|
|
674
|
-
@property (nonatomic)
|
|
675
|
-
@property (nonatomic)
|
|
676
|
-
@property (nonatomic)
|
|
677
|
-
@property (nonatomic)
|
|
678
|
-
@property (nonatomic)
|
|
679
|
-
@property (nonatomic)
|
|
855
|
+
@property (nonatomic, strong) MasonVerticalAlignValue * _Nonnull verticalAlign;
|
|
856
|
+
@property (nonatomic) enum MasonObjectFit objectFit;
|
|
857
|
+
@property (nonatomic, getter=float, setter=setFloat:) enum MasonFloat float_;
|
|
858
|
+
@property (nonatomic) enum MasonClear clear;
|
|
859
|
+
@property (nonatomic) uint32_t color;
|
|
860
|
+
- (void)setColorWithUi:(UIColor * _Nonnull)color;
|
|
861
|
+
@property (nonatomic, copy) NSString * _Nonnull filter;
|
|
862
|
+
@property (nonatomic, copy) NSString * _Nonnull background;
|
|
863
|
+
@property (nonatomic, copy) NSString * _Nonnull backgroundImage;
|
|
864
|
+
@property (nonatomic, copy) NSString * _Nonnull backgroundRepeat;
|
|
865
|
+
@property (nonatomic, copy) NSString * _Nonnull backgroundPosition;
|
|
866
|
+
@property (nonatomic, copy) NSString * _Nonnull backgroundSize;
|
|
867
|
+
@property (nonatomic, copy) NSString * _Nonnull backgroundClip;
|
|
868
|
+
@property (nonatomic) uint32_t backgroundColor;
|
|
869
|
+
- (void)setBackgroundColorWithUi:(UIColor * _Nonnull)color;
|
|
870
|
+
- (void)setLineHeight:(float)value :(BOOL)isRelative;
|
|
871
|
+
@property (nonatomic) float lineHeight;
|
|
872
|
+
@property (nonatomic) float letterSpacing;
|
|
873
|
+
@property (nonatomic) uint32_t decorationColor;
|
|
874
|
+
- (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
|
|
875
|
+
@property (nonatomic) enum MasonDecorationLine decorationLine;
|
|
876
|
+
@property (nonatomic) int32_t fontSize;
|
|
877
|
+
- (void)setFontStyle:(enum MasonFontStyle)style :(int32_t)slant;
|
|
878
|
+
@property (nonatomic) enum MasonTextJustify textJustify;
|
|
879
|
+
@property (nonatomic) enum MasonFontStyle fontStyle;
|
|
880
|
+
@property (nonatomic, copy) NSString * _Nonnull fontFamily;
|
|
881
|
+
@property (nonatomic, copy) NSString * _Nonnull fontWeight;
|
|
882
|
+
@property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
|
|
883
|
+
@property (nonatomic) enum MasonTextTransform textTransform;
|
|
884
|
+
@property (nonatomic) enum MasonWhiteSpace whiteSpace;
|
|
885
|
+
@property (nonatomic) enum MasonTextWrap textWrap;
|
|
886
|
+
@property (nonatomic) enum MasonDisplay display;
|
|
887
|
+
@property (nonatomic) enum MasonPosition position;
|
|
888
|
+
@property (nonatomic) enum MasonDirection direction;
|
|
889
|
+
@property (nonatomic) enum MasonFlexDirection flexDirection;
|
|
890
|
+
@property (nonatomic) enum MasonFlexWrap flexWrap;
|
|
891
|
+
@property (nonatomic, strong) MasonOverflowPointCompat * _Nonnull overflowCompat;
|
|
892
|
+
@property (nonatomic) enum MasonOverflow overflowX;
|
|
893
|
+
@property (nonatomic) enum MasonOverflow overflowY;
|
|
894
|
+
@property (nonatomic) enum MasonAlignItems alignItems;
|
|
895
|
+
@property (nonatomic) enum MasonAlignSelf alignSelf;
|
|
896
|
+
@property (nonatomic) enum MasonAlignContent alignContent;
|
|
897
|
+
@property (nonatomic) enum MasonJustifyItems justifyItems;
|
|
898
|
+
@property (nonatomic) enum MasonJustifySelf justifySelf;
|
|
899
|
+
@property (nonatomic) enum MasonJustifyContent justifyContent;
|
|
680
900
|
@property (nonatomic, strong) MasonLengthPercentageAutoRectCompat * _Nonnull insetCompat;
|
|
681
901
|
- (void)setInsetLeft:(float)value :(NSInteger)type;
|
|
682
902
|
- (void)setInsetRight:(float)value :(NSInteger)type;
|
|
@@ -695,16 +915,19 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
695
915
|
- (void)setPaddingTop:(float)value :(NSInteger)type;
|
|
696
916
|
- (void)setPaddingBottom:(float)value :(NSInteger)type;
|
|
697
917
|
- (void)setPaddingWithValueType:(float)value :(NSInteger)type;
|
|
698
|
-
@property (nonatomic,
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
- (void)
|
|
702
|
-
- (void)
|
|
703
|
-
- (void)
|
|
918
|
+
@property (nonatomic, copy) NSString * _Nonnull borderRadius;
|
|
919
|
+
@property (nonatomic, copy) NSString * _Nonnull border;
|
|
920
|
+
@property (nonatomic, strong) MasonLengthPercentageRectCompat * _Nonnull borderWidthCompat;
|
|
921
|
+
- (void)setBorderLeftWidth:(float)value :(NSInteger)type;
|
|
922
|
+
- (void)setBorderRightWidth:(float)value :(NSInteger)type;
|
|
923
|
+
- (void)setBorderTopWidth:(float)value :(NSInteger)type;
|
|
924
|
+
- (void)setBorderBottomWidth:(float)value :(NSInteger)type;
|
|
925
|
+
- (void)setBorderWidth:(float)value :(NSInteger)type;
|
|
704
926
|
@property (nonatomic) float flexGrow;
|
|
705
927
|
@property (nonatomic) float flexShrink;
|
|
706
928
|
- (void)setFlexBasis:(float)value :(NSInteger)type;
|
|
707
929
|
- (void)setScrollBarWidth:(float)value;
|
|
930
|
+
@property (nonatomic) enum MasonAlign align;
|
|
708
931
|
@property (nonatomic) enum MasonTextAlign textAlign;
|
|
709
932
|
@property (nonatomic) enum MasonBoxSizing boxSizing;
|
|
710
933
|
@property (nonatomic, strong) MasonDimensionSizeCompat * _Nonnull minSizeCompat;
|
|
@@ -726,130 +949,169 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
726
949
|
- (void)setGapColumn:(float)value :(NSInteger)type;
|
|
727
950
|
- (void)setRowGap:(float)value :(NSInteger)type;
|
|
728
951
|
- (void)setColumnGap:(float)value :(NSInteger)type;
|
|
729
|
-
@property (nonatomic, copy)
|
|
730
|
-
@property (nonatomic, copy)
|
|
731
|
-
@property (nonatomic)
|
|
732
|
-
@property (nonatomic,
|
|
733
|
-
@property (nonatomic
|
|
734
|
-
@property (nonatomic,
|
|
735
|
-
@property (nonatomic,
|
|
736
|
-
@property (nonatomic,
|
|
737
|
-
@property (nonatomic,
|
|
738
|
-
@property (nonatomic, copy)
|
|
739
|
-
@property (nonatomic, copy)
|
|
952
|
+
@property (nonatomic, copy) NSString * _Nonnull gridArea;
|
|
953
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateAreas;
|
|
954
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoRows;
|
|
955
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoColumns;
|
|
956
|
+
@property (nonatomic) enum MasonGridAutoFlowWrap gridAutoFlow;
|
|
957
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumn;
|
|
958
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnStart;
|
|
959
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnEnd;
|
|
960
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRow;
|
|
961
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowStart;
|
|
962
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowEnd;
|
|
963
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateRows;
|
|
964
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateColumns;
|
|
740
965
|
- (void)updateNativeStyle;
|
|
741
966
|
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
|
|
742
967
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
743
968
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
744
969
|
@end
|
|
745
970
|
|
|
746
|
-
|
|
747
|
-
@class NSMutableAttributedString;
|
|
748
|
-
@class UIFont;
|
|
749
|
-
enum TextTransform : NSInteger;
|
|
750
|
-
@class UIColor;
|
|
751
|
-
enum TextWrap : NSInteger;
|
|
752
|
-
|
|
971
|
+
enum MasonTextType : NSInteger;
|
|
753
972
|
SWIFT_CLASS_NAMED("MasonText")
|
|
754
|
-
@interface MasonText : UIView
|
|
755
|
-
@property (nonatomic, readonly, strong) MasonText * _Nullable owner;
|
|
973
|
+
@interface MasonText : UIView <MasonElementObjc, MasonTextContainer>
|
|
756
974
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
757
|
-
@property (nonatomic, readonly
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
975
|
+
@property (nonatomic, readonly) enum MasonTextType type;
|
|
976
|
+
@property (nonatomic, strong) MasonTextEngine * _Nonnull engine;
|
|
977
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layerClass;)
|
|
978
|
+
+ (Class _Nonnull)layerClass SWIFT_WARN_UNUSED_RESULT;
|
|
979
|
+
@property (nonatomic, readonly, strong) NSMutableData * _Nonnull textValues;
|
|
761
980
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
762
981
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
763
|
-
- (
|
|
764
|
-
- (
|
|
765
|
-
- (void)
|
|
766
|
-
- (void)
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
- (
|
|
770
|
-
@property (nonatomic)
|
|
771
|
-
@property (nonatomic) CGFloat fontSize;
|
|
772
|
-
@property (nonatomic) enum FontStyle fontStyle;
|
|
773
|
-
- (void)setFontStyle:(enum FontStyle)style slant:(int32_t)slant;
|
|
774
|
-
@property (nonatomic, copy) NSString * _Nonnull fontWeight;
|
|
982
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason type:(enum MasonTextType)textType OBJC_DESIGNATED_INITIALIZER;
|
|
983
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason OBJC_DESIGNATED_INITIALIZER;
|
|
984
|
+
- (void)setNeedsDisplay;
|
|
985
|
+
- (void)requestLayout;
|
|
986
|
+
- (void)addView:(UIView * _Nonnull)view;
|
|
987
|
+
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
988
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
989
|
+
@property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
|
|
775
990
|
@property (nonatomic) uint32_t color;
|
|
776
|
-
@property (nonatomic) uint32_t backgroundColorValue;
|
|
777
991
|
- (void)setColorWithUi:(UIColor * _Nonnull)color;
|
|
992
|
+
@property (nonatomic) uint32_t backgroundColorValue;
|
|
778
993
|
- (void)setBackgroundColorWithUi:(UIColor * _Nonnull)color;
|
|
779
|
-
- (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
|
|
780
994
|
@property (nonatomic) uint32_t decorationColor;
|
|
781
|
-
|
|
782
|
-
@property (nonatomic) enum
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
- (void)
|
|
786
|
-
@property (nonatomic, copy) NSString *
|
|
787
|
-
|
|
995
|
+
- (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
|
|
996
|
+
@property (nonatomic) enum MasonDecorationLine decorationLine;
|
|
997
|
+
@property (nonatomic) int32_t fontSize;
|
|
998
|
+
@property (nonatomic) enum MasonFontStyle fontStyle;
|
|
999
|
+
- (void)setFontStyle:(enum MasonFontStyle)style slant:(int32_t)slant;
|
|
1000
|
+
@property (nonatomic, copy) NSString * _Nonnull fontWeight;
|
|
1001
|
+
@property (nonatomic) enum MasonTextTransform textTransform;
|
|
1002
|
+
@property (nonatomic) enum MasonWhiteSpace whiteSpace;
|
|
1003
|
+
@property (nonatomic) enum MasonTextWrap textWrap;
|
|
1004
|
+
@property (nonatomic) float lineHeight;
|
|
1005
|
+
/// Text content - sets or gets the concatenated text from all text nodes
|
|
1006
|
+
@property (nonatomic, copy) NSString * _Nonnull textContent;
|
|
788
1007
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
789
1008
|
@end
|
|
790
1009
|
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
1010
|
+
@interface MasonText (SWIFT_EXTENSION(Mason))
|
|
1011
|
+
- (void)addChild:(MasonNode * _Nonnull)child;
|
|
1012
|
+
@end
|
|
1013
|
+
|
|
1014
|
+
@interface MasonText (SWIFT_EXTENSION(Mason))
|
|
1015
|
+
/// Remove child from text container
|
|
1016
|
+
- (MasonNode * _Nullable)removeChild:(MasonNode * _Nonnull)child;
|
|
1017
|
+
@end
|
|
1018
|
+
|
|
1019
|
+
SWIFT_CLASS("_TtC5Mason14MasonTextLayer")
|
|
1020
|
+
@interface MasonTextLayer : CALayer
|
|
1021
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1022
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
1023
|
+
- (nonnull instancetype)initWithLayer:(id _Nonnull)layer OBJC_DESIGNATED_INITIALIZER;
|
|
1024
|
+
- (void)drawInContext:(CGContextRef _Nonnull)context;
|
|
1025
|
+
@end
|
|
1026
|
+
|
|
1027
|
+
SWIFT_CLASS_NAMED("MasonTextNode")
|
|
1028
|
+
@interface MasonTextNode : MasonNode <MasonCharacterData>
|
|
1029
|
+
@property (nonatomic, copy) NSString * _Nonnull data;
|
|
1030
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc data:(NSString * _Nonnull)text attributes:(NSDictionary<NSAttributedStringKey, id> * _Nullable)attrs OBJC_DESIGNATED_INITIALIZER;
|
|
1031
|
+
- (void)appendChild:(MasonNode * _Nonnull)child;
|
|
1032
|
+
@property (nonatomic, readonly) NSInteger length;
|
|
1033
|
+
- (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
|
|
1034
|
+
- (nonnull instancetype)appendData:(NSString * _Nonnull)s;
|
|
1035
|
+
- (nonnull instancetype)insertData:(NSString * _Nonnull)s at:(NSInteger)offset;
|
|
1036
|
+
- (nonnull instancetype)deleteDataWithOffset:(NSInteger)offset count:(NSInteger)count;
|
|
1037
|
+
- (nonnull instancetype)replaceDataWithOffset:(NSInteger)offset count:(NSInteger)count with:(NSString * _Nonnull)s;
|
|
1038
|
+
- (nonnull instancetype)deleteDataWithRange:(NSRange)range;
|
|
1039
|
+
- (nonnull instancetype)replaceDataWithRange:(NSRange)range with:(NSString * _Nonnull)s;
|
|
1040
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes SWIFT_UNAVAILABLE;
|
|
1041
|
+
@end
|
|
800
1042
|
|
|
1043
|
+
@class NSAttributedString;
|
|
1044
|
+
@interface MasonTextNode (SWIFT_EXTENSION(Mason))
|
|
1045
|
+
/// Get attributed string representation of this text node
|
|
1046
|
+
- (NSAttributedString * _Nonnull)attributed SWIFT_WARN_UNUSED_RESULT;
|
|
1047
|
+
@end
|
|
1048
|
+
|
|
1049
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextType, "MasonTextType", open) {
|
|
1050
|
+
MasonTextTypeNone = 0,
|
|
1051
|
+
MasonTextTypeP = 1,
|
|
1052
|
+
MasonTextTypeSpan = 2,
|
|
1053
|
+
MasonTextTypeCode = 3,
|
|
1054
|
+
MasonTextTypeH1 = 4,
|
|
1055
|
+
MasonTextTypeH2 = 5,
|
|
1056
|
+
MasonTextTypeH3 = 6,
|
|
1057
|
+
MasonTextTypeH4 = 7,
|
|
1058
|
+
MasonTextTypeH5 = 8,
|
|
1059
|
+
MasonTextTypeH6 = 9,
|
|
1060
|
+
MasonTextTypeLi = 10,
|
|
1061
|
+
MasonTextTypeBlockquote = 11,
|
|
1062
|
+
MasonTextTypeB = 12,
|
|
1063
|
+
MasonTextTypePre = 13,
|
|
1064
|
+
};
|
|
801
1065
|
|
|
802
1066
|
SWIFT_CLASS_NAMED("MasonUIView")
|
|
803
|
-
@interface MasonUIView : UIView
|
|
1067
|
+
@interface MasonUIView : UIView <MasonElementObjc>
|
|
1068
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
1069
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
804
1070
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
1071
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
805
1072
|
- (void)markNodeDirty;
|
|
806
1073
|
- (BOOL)isNodeDirty SWIFT_WARN_UNUSED_RESULT;
|
|
807
|
-
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
808
|
-
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
809
1074
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
810
1075
|
+ (MasonUIView * _Nonnull)createGridView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
811
1076
|
+ (MasonUIView * _Nonnull)createFlexView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
812
1077
|
+ (MasonUIView * _Nonnull)createBlockView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
813
|
-
@property (nonatomic, readonly) int64_t masonPtr;
|
|
814
|
-
@property (nonatomic, readonly) int64_t masonNodePtr;
|
|
815
|
-
@property (nonatomic, readonly, copy) NSString * _Nonnull masonPtrs;
|
|
816
|
-
@property (nonatomic, strong) MasonStyle * _Nonnull style;
|
|
817
1078
|
- (void)addView:(UIView * _Nonnull)view;
|
|
818
1079
|
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
819
|
-
- (void)syncStyle:(NSString * _Nonnull)state;
|
|
820
1080
|
- (void)addSubviews:(NSArray<UIView *> * _Nonnull)views;
|
|
821
1081
|
- (void)addSubviews:(NSArray<UIView *> * _Nonnull)views at:(NSInteger)index;
|
|
822
|
-
- (void)configure:(SWIFT_NOESCAPE void (^ _Nonnull)(MasonNode * _Nonnull))block;
|
|
823
1082
|
@property (nonatomic) BOOL inBatch;
|
|
824
|
-
@property (nonatomic)
|
|
825
|
-
@property (nonatomic) enum
|
|
826
|
-
@property (nonatomic) enum
|
|
827
|
-
@property (nonatomic) enum
|
|
828
|
-
@property (nonatomic) enum
|
|
829
|
-
@property (nonatomic) enum
|
|
830
|
-
@property (nonatomic) enum
|
|
831
|
-
@property (nonatomic) enum
|
|
832
|
-
@property (nonatomic) enum
|
|
833
|
-
@property (nonatomic) enum
|
|
834
|
-
@property (nonatomic) enum
|
|
835
|
-
@property (nonatomic) enum
|
|
836
|
-
@property (nonatomic) enum
|
|
1083
|
+
@property (nonatomic, copy) NSString * _Nonnull background;
|
|
1084
|
+
@property (nonatomic) enum MasonDisplay display;
|
|
1085
|
+
@property (nonatomic) enum MasonPosition _position;
|
|
1086
|
+
@property (nonatomic) enum MasonDirection direction;
|
|
1087
|
+
@property (nonatomic) enum MasonFlexDirection flexDirection;
|
|
1088
|
+
@property (nonatomic) enum MasonFlexWrap flexWrap;
|
|
1089
|
+
@property (nonatomic) enum MasonOverflow overflowX;
|
|
1090
|
+
@property (nonatomic) enum MasonOverflow overflowY;
|
|
1091
|
+
@property (nonatomic) enum MasonAlignItems alignItems;
|
|
1092
|
+
@property (nonatomic) enum MasonAlignSelf alignSelf;
|
|
1093
|
+
@property (nonatomic) enum MasonAlignContent alignContent;
|
|
1094
|
+
@property (nonatomic) enum MasonJustifyItems justifyItems;
|
|
1095
|
+
@property (nonatomic) enum MasonJustifySelf justifySelf;
|
|
1096
|
+
@property (nonatomic) enum MasonJustifyContent justifyContent;
|
|
837
1097
|
@property (nonatomic) float flexGrow;
|
|
838
1098
|
@property (nonatomic) float flexShrink;
|
|
839
1099
|
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull scrollBarWidthCompat;
|
|
840
1100
|
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull flexBasisCompat;
|
|
841
1101
|
@property (nonatomic) float aspectRatio;
|
|
842
|
-
@property (nonatomic, copy)
|
|
843
|
-
@property (nonatomic, copy)
|
|
844
|
-
@property (nonatomic)
|
|
845
|
-
@property (nonatomic,
|
|
846
|
-
@property (nonatomic
|
|
847
|
-
@property (nonatomic,
|
|
848
|
-
@property (nonatomic,
|
|
849
|
-
@property (nonatomic,
|
|
850
|
-
@property (nonatomic,
|
|
851
|
-
@property (nonatomic, copy)
|
|
852
|
-
@property (nonatomic, copy)
|
|
1102
|
+
@property (nonatomic, copy) NSString * _Nonnull gridArea;
|
|
1103
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateAreas;
|
|
1104
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoRows;
|
|
1105
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoColumns;
|
|
1106
|
+
@property (nonatomic) enum MasonGridAutoFlowWrap gridAutoFlow;
|
|
1107
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumn;
|
|
1108
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnStart;
|
|
1109
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnEnd;
|
|
1110
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRow;
|
|
1111
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowStart;
|
|
1112
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowEnd;
|
|
1113
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateRows;
|
|
1114
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateColumns;
|
|
853
1115
|
- (void)setPadding:(float)left :(float)right :(float)top :(float)bottom;
|
|
854
1116
|
- (MasonLengthPercentageRectCompat * _Nonnull)getPadding SWIFT_WARN_UNUSED_RESULT;
|
|
855
1117
|
- (void)setPaddingLeft:(float)left :(NSInteger)type;
|
|
@@ -860,12 +1122,12 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
860
1122
|
- (MasonLengthPercentageCompat * _Nonnull)getPaddingRight SWIFT_WARN_UNUSED_RESULT;
|
|
861
1123
|
- (MasonLengthPercentageCompat * _Nonnull)getPaddingTop SWIFT_WARN_UNUSED_RESULT;
|
|
862
1124
|
- (MasonLengthPercentageCompat * _Nonnull)getPaddingBottom SWIFT_WARN_UNUSED_RESULT;
|
|
863
|
-
- (void)
|
|
864
|
-
- (MasonLengthPercentageRectCompat * _Nonnull)
|
|
865
|
-
- (void)
|
|
866
|
-
- (void)
|
|
867
|
-
- (void)
|
|
868
|
-
- (void)
|
|
1125
|
+
- (void)setBorderWidth:(float)left :(float)top :(float)right :(float)bottom;
|
|
1126
|
+
- (MasonLengthPercentageRectCompat * _Nonnull)getBorderWidth SWIFT_WARN_UNUSED_RESULT;
|
|
1127
|
+
- (void)setBorderLeftWidth:(float)left :(NSInteger)type;
|
|
1128
|
+
- (void)setBorderRightWidth:(float)right :(NSInteger)type;
|
|
1129
|
+
- (void)setBorderTopWidth:(float)top :(NSInteger)type;
|
|
1130
|
+
- (void)setBorderBottomWidth:(float)bottom :(NSInteger)type;
|
|
869
1131
|
- (MasonLengthPercentageCompat * _Nonnull)getBorderLeft SWIFT_WARN_UNUSED_RESULT;
|
|
870
1132
|
- (MasonLengthPercentageCompat * _Nonnull)getBorderRight SWIFT_WARN_UNUSED_RESULT;
|
|
871
1133
|
- (MasonLengthPercentageCompat * _Nonnull)getBorderBottom SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -918,6 +1180,11 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
918
1180
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
919
1181
|
@end
|
|
920
1182
|
|
|
1183
|
+
SWIFT_CLASS_NAMED("MasonVerticalAlignValue")
|
|
1184
|
+
@interface MasonVerticalAlignValue : NSObject
|
|
1185
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1186
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1187
|
+
@end
|
|
921
1188
|
|
|
922
1189
|
SWIFT_CLASS_NAMED("MaxSizing")
|
|
923
1190
|
@interface MaxSizing : NSObject
|
|
@@ -939,14 +1206,12 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MaxSizing *
|
|
|
939
1206
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
940
1207
|
@end
|
|
941
1208
|
|
|
942
|
-
|
|
943
1209
|
SWIFT_CLASS_NAMED("MeasureOutput")
|
|
944
1210
|
@interface MeasureOutput : NSObject
|
|
945
1211
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
946
1212
|
@end
|
|
947
1213
|
|
|
948
1214
|
@class MinSizing;
|
|
949
|
-
|
|
950
1215
|
SWIFT_CLASS_NAMED("MinMax")
|
|
951
1216
|
@interface MinMax : NSObject
|
|
952
1217
|
- (nonnull instancetype)init:(MinSizing * _Nonnull)min :(MaxSizing * _Nonnull)max OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -964,7 +1229,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinMax * _No
|
|
|
964
1229
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
965
1230
|
@end
|
|
966
1231
|
|
|
967
|
-
|
|
968
1232
|
SWIFT_CLASS_NAMED("MinSizing")
|
|
969
1233
|
@interface MinSizing : NSObject
|
|
970
1234
|
@property (nonatomic, readonly) float value;
|
|
@@ -982,7 +1246,99 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing *
|
|
|
982
1246
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
983
1247
|
@end
|
|
984
1248
|
|
|
1249
|
+
SWIFT_CLASS_NAMED("NSCFontDescriptors")
|
|
1250
|
+
@interface NSCFontDescriptors : NSObject
|
|
1251
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
|
|
1252
|
+
- (void)update:(NSString * _Nonnull)value;
|
|
1253
|
+
- (void)setFontWeight:(NSString * _Nonnull)value;
|
|
1254
|
+
- (void)setFontStyle:(NSString * _Nonnull)value;
|
|
1255
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1256
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1257
|
+
@end
|
|
985
1258
|
|
|
1259
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontDisplay, "NSCFontDisplay", open) {
|
|
1260
|
+
NSCFontDisplayAuto = 0,
|
|
1261
|
+
NSCFontDisplayBlock = 1,
|
|
1262
|
+
NSCFontDisplayFallback = 2,
|
|
1263
|
+
NSCFontDisplayOptional = 3,
|
|
1264
|
+
NSCFontDisplaySwap = 4,
|
|
1265
|
+
};
|
|
1266
|
+
|
|
1267
|
+
@class NSData;
|
|
1268
|
+
enum NSCFontFaceStatus : NSInteger;
|
|
1269
|
+
enum NSCFontWeight : NSInteger;
|
|
1270
|
+
SWIFT_CLASS_NAMED("NSCFontFace")
|
|
1271
|
+
@interface NSCFontFace : NSObject
|
|
1272
|
+
@property (nonatomic, readonly) CGFontRef _Nullable font;
|
|
1273
|
+
@property (nonatomic, readonly, strong) NSData * _Nullable fontData;
|
|
1274
|
+
- (void)updateDescriptorWithValue:(NSString * _Nonnull)value;
|
|
1275
|
+
+ (NSCFontFace * _Nullable)loadFromStyleWithStyle:(NSString * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
1276
|
+
+ (void)importFromRemoteWithUrl:(NSString * _Nonnull)url load:(BOOL)load callback:(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nullable, NSString * _Nullable))callback;
|
|
1277
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
|
|
1278
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family owner:(MasonStyle * _Nonnull)style OBJC_DESIGNATED_INITIALIZER;
|
|
1279
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family source:(NSString * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
|
|
1280
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family data:(NSData * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
|
|
1281
|
+
- (nonnull instancetype)init:(NSString * _Nonnull)family :(NSString * _Nullable)source :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
|
|
1282
|
+
- (nonnull instancetype)init:(NSString * _Nonnull)family data:(NSData * _Nullable)data :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
|
|
1283
|
+
@property (nonatomic) enum NSCFontFaceStatus status;
|
|
1284
|
+
@property (nonatomic) enum NSCFontDisplay display;
|
|
1285
|
+
- (void)setFontDisplayWithValue:(NSString * _Nonnull)value;
|
|
1286
|
+
@property (nonatomic, copy) NSString * _Nonnull style;
|
|
1287
|
+
- (void)setFontStyleWithValue:(NSString * _Nonnull)value angle:(NSString * _Nullable)angle;
|
|
1288
|
+
@property (nonatomic) enum NSCFontWeight weight;
|
|
1289
|
+
- (void)setFontWeightWithValue:(NSString * _Nonnull)value;
|
|
1290
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull family;
|
|
1291
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull ascentOverride;
|
|
1292
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull descentOverride;
|
|
1293
|
+
- (void)load:(void (^ _Nonnull)(NSString * _Nullable))callback;
|
|
1294
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1295
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1296
|
+
@end
|
|
1297
|
+
|
|
1298
|
+
enum NSCFontFaceSetStatus : NSInteger;
|
|
1299
|
+
@class NSEnumerator;
|
|
1300
|
+
SWIFT_CLASS_NAMED("NSCFontFaceSet")
|
|
1301
|
+
@interface NSCFontFaceSet : NSObject
|
|
1302
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSCFontFaceSet * _Nonnull instance;)
|
|
1303
|
+
+ (NSCFontFaceSet * _Nonnull)instance SWIFT_WARN_UNUSED_RESULT;
|
|
1304
|
+
@property (nonatomic) enum NSCFontFaceSetStatus status;
|
|
1305
|
+
@property (nonatomic, copy) void (^ _Nullable onStatus)(enum NSCFontFaceSetStatus);
|
|
1306
|
+
- (NSEnumerator * _Nonnull)iter SWIFT_WARN_UNUSED_RESULT;
|
|
1307
|
+
- (NSArray * _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
|
|
1308
|
+
- (void)add:(NSCFontFace * _Nonnull)font;
|
|
1309
|
+
- (void)clear;
|
|
1310
|
+
- (void)delete:(NSCFontFace * _Nonnull)font;
|
|
1311
|
+
- (BOOL)check:(NSString * _Nonnull)font :(NSString * _Nullable)text SWIFT_WARN_UNUSED_RESULT;
|
|
1312
|
+
- (void)load:(NSString * _Nonnull)font :(NSString * _Nullable)text :(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nonnull, NSString * _Nullable))callback;
|
|
1313
|
+
@property (nonatomic, readonly) NSInteger size;
|
|
1314
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1315
|
+
@end
|
|
1316
|
+
|
|
1317
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceSetStatus, "NSCFontFaceSetStatus", open) {
|
|
1318
|
+
NSCFontFaceSetStatusLoading = 0,
|
|
1319
|
+
NSCFontFaceSetStatusLoaded = 1,
|
|
1320
|
+
};
|
|
1321
|
+
|
|
1322
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceStatus, "NSCFontFaceStatus", open) {
|
|
1323
|
+
NSCFontFaceStatusUnloaded = 0,
|
|
1324
|
+
NSCFontFaceStatusLoading = 1,
|
|
1325
|
+
NSCFontFaceStatusLoaded = 2,
|
|
1326
|
+
NSCFontFaceStatusError = 3,
|
|
1327
|
+
};
|
|
1328
|
+
|
|
1329
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontWeight, "NSCFontWeight", open) {
|
|
1330
|
+
NSCFontWeightThin = 0,
|
|
1331
|
+
NSCFontWeightExtraLight = 1,
|
|
1332
|
+
NSCFontWeightLight = 2,
|
|
1333
|
+
NSCFontWeightNormal = 3,
|
|
1334
|
+
NSCFontWeightMedium = 4,
|
|
1335
|
+
NSCFontWeightSemiBold = 5,
|
|
1336
|
+
NSCFontWeightBold = 6,
|
|
1337
|
+
NSCFontWeightExtraBold = 7,
|
|
1338
|
+
NSCFontWeightBlack = 8,
|
|
1339
|
+
};
|
|
1340
|
+
|
|
1341
|
+
@class MasonScroll;
|
|
986
1342
|
SWIFT_CLASS_NAMED("NSCMason")
|
|
987
1343
|
@interface NSCMason : NSObject
|
|
988
1344
|
@property (nonatomic, readonly) void * _Nullable nativePtr;
|
|
@@ -990,54 +1346,208 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
990
1346
|
+ (NSCMason * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
|
|
991
1347
|
+ (void)setShared:(NSCMason * _Nonnull)value;
|
|
992
1348
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1349
|
+
- (void)setDeviceScale:(float)value;
|
|
993
1350
|
- (MasonNode * _Nonnull)nodeForView:(UIView * _Nonnull)view :(BOOL)isLeaf SWIFT_WARN_UNUSED_RESULT;
|
|
1351
|
+
- (void)configureStyleForView:(UIView * _Nonnull)view :(SWIFT_NOESCAPE void (^ _Nonnull)(MasonStyle * _Nonnull))block;
|
|
1352
|
+
- (MasonStyle * _Nonnull)styleForView:(UIView * _Nonnull)view SWIFT_WARN_UNUSED_RESULT;
|
|
1353
|
+
- (MasonLayout * _Nonnull)layoutForView:(UIView * _Nonnull)view;
|
|
994
1354
|
- (void)clear;
|
|
1355
|
+
- (MasonDocument * _Nonnull)createDocument SWIFT_WARN_UNUSED_RESULT;
|
|
995
1356
|
- (MasonUIView * _Nonnull)createView SWIFT_WARN_UNUSED_RESULT;
|
|
996
1357
|
- (MasonText * _Nonnull)createTextView SWIFT_WARN_UNUSED_RESULT;
|
|
1358
|
+
- (MasonTextNode * _Nonnull)createTextNode:(NSString * _Nonnull)data SWIFT_WARN_UNUSED_RESULT;
|
|
1359
|
+
- (MasonText * _Nonnull)createTextViewWithType:(enum MasonTextType)type SWIFT_WARN_UNUSED_RESULT;
|
|
1360
|
+
- (MasonImg * _Nonnull)createImageView SWIFT_WARN_UNUSED_RESULT;
|
|
1361
|
+
- (MasonScroll * _Nonnull)createScrollView SWIFT_WARN_UNUSED_RESULT;
|
|
1362
|
+
- (MasonButton * _Nonnull)createButton SWIFT_WARN_UNUSED_RESULT;
|
|
997
1363
|
- (MasonNode * _Nonnull)createNode SWIFT_WARN_UNUSED_RESULT;
|
|
998
1364
|
- (void)printTree:(MasonNode * _Nonnull)node;
|
|
999
1365
|
- (MasonNode * _Nonnull)createTextNode SWIFT_WARN_UNUSED_RESULT;
|
|
1366
|
+
- (MasonNode * _Nonnull)createImageNode SWIFT_WARN_UNUSED_RESULT;
|
|
1000
1367
|
@end
|
|
1001
1368
|
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1369
|
+
@interface NSObject (SWIFT_EXTENSION(Mason))
|
|
1370
|
+
- (void)mason_syncStyle:(NSString * _Nonnull)state :(NSString * _Nonnull)textState;
|
|
1371
|
+
- (void)mason_addView:(UIView * _Nonnull)view;
|
|
1372
|
+
- (void)mason_addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
1373
|
+
- (void)mason_markNodeDirty;
|
|
1374
|
+
- (BOOL)mason_isNodeDirty SWIFT_WARN_UNUSED_RESULT;
|
|
1375
|
+
- (void)mason_configure:(SWIFT_NOESCAPE void (^ _Nonnull)(MasonStyle * _Nonnull))block;
|
|
1376
|
+
- (MasonLayout * _Nonnull)mason_layout;
|
|
1377
|
+
- (void)mason_compute;
|
|
1378
|
+
- (void)mason_computeWithWidth:(float)width height:(float)height;
|
|
1379
|
+
- (void)mason_computeMaxContent;
|
|
1380
|
+
- (void)mason_computeMinContent;
|
|
1381
|
+
- (void)mason_computeWithSize:(float)width :(float)height;
|
|
1382
|
+
- (void)mason_computeWithViewSize;
|
|
1383
|
+
- (void)mason_computeWithViewSizeWithLayout:(BOOL)layout;
|
|
1384
|
+
- (void)mason_computeWithMaxContent;
|
|
1385
|
+
- (void)mason_computeWithMinContent;
|
|
1386
|
+
- (void)mason_attachAndApply;
|
|
1387
|
+
- (void)mason_requestLayout;
|
|
1388
|
+
- (void)mason_invalidateLayout;
|
|
1389
|
+
- (void)mason_append:(id <MasonElementObjc> _Nonnull)element;
|
|
1390
|
+
- (void)mason_appendWithText:(NSString * _Nonnull)text;
|
|
1391
|
+
- (void)mason_appendWithNode:(MasonNode * _Nonnull)node;
|
|
1392
|
+
- (void)mason_appendWithTexts:(NSArray<NSString *> * _Nonnull)texts;
|
|
1393
|
+
- (void)mason_appendWithElements:(NSArray<id <MasonElementObjc>> * _Nonnull)elements;
|
|
1394
|
+
- (void)mason_appendWithNodes:(NSArray<MasonNode *> * _Nonnull)nodes;
|
|
1395
|
+
- (void)mason_prepend:(id <MasonElementObjc> _Nonnull)element;
|
|
1396
|
+
- (void)mason_prependWithText:(NSString * _Nonnull)text;
|
|
1397
|
+
- (void)mason_prependWithNode:(MasonNode * _Nonnull)node;
|
|
1398
|
+
- (void)mason_prependWithTexts:(NSArray<NSString *> * _Nonnull)texts;
|
|
1399
|
+
- (void)mason_prependWithElements:(NSArray<id <MasonElementObjc>> * _Nonnull)elements;
|
|
1400
|
+
- (void)mason_prependWithNodes:(NSArray<MasonNode *> * _Nonnull)nodes;
|
|
1401
|
+
- (void)mason_addChildAtText:(NSString * _Nonnull)text :(NSInteger)index;
|
|
1402
|
+
- (void)mason_addChildAtElement:(id <MasonElementObjc> _Nonnull)element :(NSInteger)index;
|
|
1403
|
+
- (void)mason_addChildAtNode:(MasonNode * _Nonnull)node :(NSInteger)index;
|
|
1404
|
+
- (void)mason_replaceChildAtText:(NSString * _Nonnull)text :(NSInteger)index;
|
|
1405
|
+
- (void)mason_replaceChildAtElement:(id <MasonElementObjc> _Nonnull)element :(NSInteger)index;
|
|
1406
|
+
- (void)mason_replaceChildAtNode:(MasonNode * _Nonnull)node :(NSInteger)index;
|
|
1407
|
+
@end
|
|
1408
|
+
|
|
1409
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonObjectFit, "ObjectFit", open) {
|
|
1410
|
+
MasonObjectFitContain = 0,
|
|
1411
|
+
MasonObjectFitCover = 1,
|
|
1412
|
+
MasonObjectFitFill = 2,
|
|
1413
|
+
MasonObjectFitNone = 3,
|
|
1414
|
+
MasonObjectFitScaleDown = 4,
|
|
1007
1415
|
};
|
|
1008
1416
|
|
|
1009
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
1010
|
-
|
|
1011
|
-
|
|
1417
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonOverflow, "Overflow", open) {
|
|
1418
|
+
MasonOverflowVisible = 0,
|
|
1419
|
+
MasonOverflowHidden = 1,
|
|
1420
|
+
MasonOverflowScroll = 2,
|
|
1421
|
+
MasonOverflowClip = 3,
|
|
1422
|
+
MasonOverflowAuto = 4,
|
|
1012
1423
|
};
|
|
1013
1424
|
|
|
1014
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
TextTransformUppercase = 2,
|
|
1018
|
-
TextTransformLowercase = 3,
|
|
1019
|
-
TextTransformFullWidth = 4,
|
|
1020
|
-
TextTransformFullSizeKana = 5,
|
|
1021
|
-
TextTransformMathAuto = 6,
|
|
1425
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonPosition, "Position", open) {
|
|
1426
|
+
MasonPositionRelative = 0,
|
|
1427
|
+
MasonPositionAbsolute = 1,
|
|
1022
1428
|
};
|
|
1023
1429
|
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1430
|
+
SWIFT_CLASS_NAMED("Scroll")
|
|
1431
|
+
@interface MasonScroll : UIScrollView <MasonElementObjc, UIScrollViewDelegate>
|
|
1432
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
1433
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
1434
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
1435
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
1436
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
1437
|
+
- (void)scrollViewWillBeginDragging:(UIScrollView * _Nonnull)scrollView;
|
|
1438
|
+
- (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
|
|
1439
|
+
- (void)addView:(UIView * _Nonnull)view;
|
|
1440
|
+
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
1441
|
+
- (void)setSize:(float)width :(float)height;
|
|
1442
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
1443
|
+
@end
|
|
1444
|
+
|
|
1445
|
+
SWIFT_CLASS_NAMED("SwiftHelpers")
|
|
1446
|
+
@interface MasonSwiftHelpers : NSObject
|
|
1447
|
+
+ (void)markNodeDirty:(id <MasonElementObjc> _Nonnull)element;
|
|
1448
|
+
+ (BOOL)isNodeDirty:(id <MasonElementObjc> _Nonnull)element SWIFT_WARN_UNUSED_RESULT;
|
|
1449
|
+
+ (void)configure:(id <MasonElementObjc> _Nonnull)element :(SWIFT_NOESCAPE void (^ _Nonnull)(MasonStyle * _Nonnull))block;
|
|
1450
|
+
+ (MasonLayout * _Nonnull)layout:(id <MasonElementObjc> _Nonnull)element;
|
|
1451
|
+
+ (void)compute:(id <MasonElementObjc> _Nonnull)element;
|
|
1452
|
+
+ (void)compute:(id <MasonElementObjc> _Nonnull)element :(float)width :(float)height;
|
|
1453
|
+
+ (void)computeMaxContent:(id <MasonElementObjc> _Nonnull)element;
|
|
1454
|
+
+ (void)computeMinContent:(id <MasonElementObjc> _Nonnull)element;
|
|
1455
|
+
+ (void)computeWithSize:(id <MasonElementObjc> _Nonnull)element :(float)width :(float)height;
|
|
1456
|
+
+ (void)computeWithViewSize:(id <MasonElementObjc> _Nonnull)element;
|
|
1457
|
+
+ (void)computeWithViewSize:(id <MasonElementObjc> _Nonnull)element layout:(BOOL)layout;
|
|
1458
|
+
+ (void)computeWithMaxContent:(id <MasonElementObjc> _Nonnull)element;
|
|
1459
|
+
+ (void)computeWithMinContent:(id <MasonElementObjc> _Nonnull)element;
|
|
1460
|
+
+ (void)attachAndApply:(id <MasonElementObjc> _Nonnull)element;
|
|
1461
|
+
+ (void)requestLayout:(id <MasonElementObjc> _Nonnull)element;
|
|
1462
|
+
+ (void)append:(id <MasonElementObjc> _Nonnull)parent :(id <MasonElementObjc> _Nonnull)element;
|
|
1463
|
+
+ (void)append:(id <MasonElementObjc> _Nonnull)parent text:(NSString * _Nonnull)text;
|
|
1464
|
+
+ (void)append:(id <MasonElementObjc> _Nonnull)parent node:(MasonNode * _Nonnull)node;
|
|
1465
|
+
+ (void)append:(id <MasonElementObjc> _Nonnull)parent texts:(NSArray<NSString *> * _Nonnull)texts;
|
|
1466
|
+
+ (void)append:(id <MasonElementObjc> _Nonnull)parent elements:(NSArray<id <MasonElementObjc>> * _Nonnull)elements;
|
|
1467
|
+
+ (void)append:(id <MasonElementObjc> _Nonnull)parent nodes:(NSArray<MasonNode *> * _Nonnull)nodes;
|
|
1468
|
+
+ (void)prepend:(id <MasonElementObjc> _Nonnull)parent :(id <MasonElementObjc> _Nonnull)element;
|
|
1469
|
+
+ (void)prepend:(id <MasonElementObjc> _Nonnull)parent string:(NSString * _Nonnull)string;
|
|
1470
|
+
+ (void)prepend:(id <MasonElementObjc> _Nonnull)parent node:(MasonNode * _Nonnull)node;
|
|
1471
|
+
+ (void)prepend:(id <MasonElementObjc> _Nonnull)parent strings:(NSArray<NSString *> * _Nonnull)strings;
|
|
1472
|
+
+ (void)prepend:(id <MasonElementObjc> _Nonnull)parent elements:(NSArray<id <MasonElementObjc>> * _Nonnull)elements;
|
|
1473
|
+
+ (void)prepend:(id <MasonElementObjc> _Nonnull)parent nodes:(NSArray<MasonNode *> * _Nonnull)nodes;
|
|
1474
|
+
+ (void)addChildAt:(id <MasonElementObjc> _Nonnull)parent text:(NSString * _Nonnull)text :(NSInteger)index;
|
|
1475
|
+
+ (void)addChildAt:(id <MasonElementObjc> _Nonnull)parent element:(id <MasonElementObjc> _Nonnull)element :(NSInteger)index;
|
|
1476
|
+
+ (void)addChildAt:(id <MasonElementObjc> _Nonnull)parent node:(MasonNode * _Nonnull)node :(NSInteger)index;
|
|
1477
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1478
|
+
@end
|
|
1479
|
+
|
|
1480
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextAlign, "TextAlign", open) {
|
|
1481
|
+
MasonTextAlignAuto = 0,
|
|
1482
|
+
MasonTextAlignLeft = 1,
|
|
1483
|
+
MasonTextAlignRight = 2,
|
|
1484
|
+
MasonTextAlignCenter = 3,
|
|
1485
|
+
MasonTextAlignJustify = 4,
|
|
1486
|
+
MasonTextAlignStart = 5,
|
|
1487
|
+
MasonTextAlignEnd = 6,
|
|
1488
|
+
};
|
|
1489
|
+
|
|
1490
|
+
SWIFT_CLASS_NAMED("TextEngine")
|
|
1491
|
+
@interface MasonTextEngine : NSObject
|
|
1492
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1493
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1494
|
+
@end
|
|
1495
|
+
|
|
1496
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextJustify, "TextJustify", open) {
|
|
1497
|
+
MasonTextJustifyNone = 0,
|
|
1498
|
+
MasonTextJustifyAuto = 1,
|
|
1499
|
+
MasonTextJustifyInterWord = 2,
|
|
1500
|
+
MasonTextJustifyInterCharacter = 3,
|
|
1501
|
+
MasonTextJustifyDistribute = 4,
|
|
1028
1502
|
};
|
|
1029
1503
|
|
|
1504
|
+
SWIFT_CLASS_NAMED("TextOverflowCompat")
|
|
1505
|
+
@interface MasonTextOverflowCompat : NSObject
|
|
1506
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonTextOverflowCompat * _Nonnull Clip;)
|
|
1507
|
+
+ (MasonTextOverflowCompat * _Nonnull)Clip SWIFT_WARN_UNUSED_RESULT;
|
|
1508
|
+
+ (MasonTextOverflowCompat * _Nonnull)Ellipse:(NSString * _Nullable)value SWIFT_WARN_UNUSED_RESULT;
|
|
1509
|
+
+ (MasonTextOverflowCompat * _Nonnull)Custom:(NSString * _Nonnull)value SWIFT_WARN_UNUSED_RESULT;
|
|
1510
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
|
|
1511
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1512
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1513
|
+
@end
|
|
1514
|
+
|
|
1515
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextTransform, "TextTransform", open) {
|
|
1516
|
+
MasonTextTransformNone = 0,
|
|
1517
|
+
MasonTextTransformCapitalize = 1,
|
|
1518
|
+
MasonTextTransformUppercase = 2,
|
|
1519
|
+
MasonTextTransformLowercase = 3,
|
|
1520
|
+
MasonTextTransformFullWidth = 4,
|
|
1521
|
+
MasonTextTransformFullSizeKana = 5,
|
|
1522
|
+
MasonTextTransformMathAuto = 6,
|
|
1523
|
+
};
|
|
1524
|
+
|
|
1525
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextWrap, "TextWrap", open) {
|
|
1526
|
+
MasonTextWrapWrap = 0,
|
|
1527
|
+
MasonTextWrapNoWrap = 1,
|
|
1528
|
+
MasonTextWrapBalance = 2,
|
|
1529
|
+
MasonTextWrapPretty = 3,
|
|
1530
|
+
};
|
|
1030
1531
|
|
|
1031
1532
|
SWIFT_CLASS_NAMED("TrackSizingFunction")
|
|
1032
1533
|
@interface TrackSizingFunction : NSObject
|
|
1033
1534
|
@property (nonatomic, readonly) BOOL isRepeating;
|
|
1034
1535
|
@property (nonatomic, readonly) id _Nullable value;
|
|
1035
1536
|
+ (TrackSizingFunction * _Nonnull)Single:(MinMax * _Nonnull)value SWIFT_WARN_UNUSED_RESULT;
|
|
1036
|
-
+ (TrackSizingFunction * _Nonnull)AutoRepeat:(
|
|
1537
|
+
+ (TrackSizingFunction * _Nonnull)AutoRepeat:(MasonGridTrackRepetition * _Nonnull)gridTrackRepetition :(NSArray<MinMax *> * _Nonnull)value SWIFT_WARN_UNUSED_RESULT;
|
|
1538
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
1037
1539
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1038
1540
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1039
1541
|
@end
|
|
1040
1542
|
|
|
1543
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonWhiteSpace, "WhiteSpace", open) {
|
|
1544
|
+
MasonWhiteSpaceNormal = 0,
|
|
1545
|
+
MasonWhiteSpacePre = 1,
|
|
1546
|
+
MasonWhiteSpacePreWrap = 2,
|
|
1547
|
+
MasonWhiteSpacePreLine = 3,
|
|
1548
|
+
MasonWhiteSpaceNoWrap = 4,
|
|
1549
|
+
MasonWhiteSpaceBreakSpaces = 5,
|
|
1550
|
+
};
|
|
1041
1551
|
|
|
1042
1552
|
#endif
|
|
1043
1553
|
#if __has_attribute(external_source_symbol)
|
|
@@ -1049,7 +1559,7 @@ SWIFT_CLASS_NAMED("TrackSizingFunction")
|
|
|
1049
1559
|
#endif
|
|
1050
1560
|
|
|
1051
1561
|
#elif defined(__x86_64__) && __x86_64__
|
|
1052
|
-
// Generated by Apple Swift version 6.
|
|
1562
|
+
// Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
|
1053
1563
|
#ifndef MASON_SWIFT_H
|
|
1054
1564
|
#define MASON_SWIFT_H
|
|
1055
1565
|
#pragma clang diagnostic push
|
|
@@ -1114,6 +1624,7 @@ SWIFT_CLASS_NAMED("TrackSizingFunction")
|
|
|
1114
1624
|
# if __has_include(<uchar.h>)
|
|
1115
1625
|
# include <uchar.h>
|
|
1116
1626
|
# elif !defined(__cplusplus)
|
|
1627
|
+
typedef unsigned char char8_t;
|
|
1117
1628
|
typedef uint_least16_t char16_t;
|
|
1118
1629
|
typedef uint_least32_t char32_t;
|
|
1119
1630
|
# endif
|
|
@@ -1330,8 +1841,10 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
1330
1841
|
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
|
|
1331
1842
|
#endif
|
|
1332
1843
|
@import CoreFoundation;
|
|
1844
|
+
@import CoreGraphics;
|
|
1333
1845
|
@import Foundation;
|
|
1334
1846
|
@import ObjectiveC;
|
|
1847
|
+
@import QuartzCore;
|
|
1335
1848
|
@import UIKit;
|
|
1336
1849
|
#endif
|
|
1337
1850
|
|
|
@@ -1354,95 +1867,182 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
1354
1867
|
#endif
|
|
1355
1868
|
|
|
1356
1869
|
#if defined(__OBJC__)
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1870
|
+
|
|
1871
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlign, "Align", open) {
|
|
1872
|
+
MasonAlignAuto = 0,
|
|
1873
|
+
MasonAlignLeft = 1,
|
|
1874
|
+
MasonAlignRight = 2,
|
|
1875
|
+
MasonAlignCenter = 3,
|
|
1876
|
+
};
|
|
1877
|
+
|
|
1878
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlignContent, "AlignContent", open) {
|
|
1879
|
+
MasonAlignContentNormal = -1,
|
|
1880
|
+
MasonAlignContentStart = 0,
|
|
1881
|
+
MasonAlignContentEnd = 1,
|
|
1882
|
+
MasonAlignContentCenter = 2,
|
|
1883
|
+
MasonAlignContentStretch = 3,
|
|
1884
|
+
MasonAlignContentSpaceBetween = 4,
|
|
1885
|
+
MasonAlignContentSpaceAround = 5,
|
|
1886
|
+
MasonAlignContentSpaceEvenly = 6,
|
|
1887
|
+
MasonAlignContentFlexStart = 7,
|
|
1888
|
+
MasonAlignContentFlexEnd = 8,
|
|
1889
|
+
};
|
|
1890
|
+
|
|
1891
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlignItems, "AlignItems", open) {
|
|
1892
|
+
MasonAlignItemsNormal = -1,
|
|
1893
|
+
MasonAlignItemsStart = 0,
|
|
1894
|
+
MasonAlignItemsEnd = 1,
|
|
1895
|
+
MasonAlignItemsCenter = 2,
|
|
1896
|
+
MasonAlignItemsBaseline = 3,
|
|
1897
|
+
MasonAlignItemsStretch = 4,
|
|
1898
|
+
MasonAlignItemsFlexStart = 5,
|
|
1899
|
+
MasonAlignItemsFlexEnd = 6,
|
|
1900
|
+
};
|
|
1901
|
+
|
|
1902
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonAlignSelf, "AlignSelf", open) {
|
|
1903
|
+
MasonAlignSelfNormal = -1,
|
|
1904
|
+
MasonAlignSelfStart = 0,
|
|
1905
|
+
MasonAlignSelfEnd = 1,
|
|
1906
|
+
MasonAlignSelfCenter = 2,
|
|
1907
|
+
MasonAlignSelfBaseline = 3,
|
|
1908
|
+
MasonAlignSelfStretch = 4,
|
|
1909
|
+
MasonAlignSelfFlexStart = 5,
|
|
1910
|
+
MasonAlignSelfFlexEnd = 6,
|
|
1368
1911
|
};
|
|
1369
1912
|
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1913
|
+
@class NSCoder;
|
|
1914
|
+
SWIFT_CLASS("_TtC5Mason17BackgroundCALayer")
|
|
1915
|
+
@interface BackgroundCALayer : CALayer
|
|
1916
|
+
- (void)drawInContext:(CGContextRef _Nonnull)ctx;
|
|
1917
|
+
- (void)layoutSublayers;
|
|
1918
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1919
|
+
- (nonnull instancetype)initWithLayer:(id _Nonnull)layer OBJC_DESIGNATED_INITIALIZER;
|
|
1920
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
|
|
1921
|
+
@end
|
|
1922
|
+
|
|
1923
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonBoxSizing, "BoxSizing", open) {
|
|
1924
|
+
MasonBoxSizingBorderBox = 0,
|
|
1925
|
+
MasonBoxSizingContentBox = 1,
|
|
1379
1926
|
};
|
|
1380
1927
|
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1928
|
+
@class MasonTextEngine;
|
|
1929
|
+
@class MasonNode;
|
|
1930
|
+
SWIFT_PROTOCOL_NAMED("TextContainer")
|
|
1931
|
+
@protocol MasonTextContainer <NSObject>
|
|
1932
|
+
@property (nonatomic, readonly, strong) MasonTextEngine * _Nonnull engine;
|
|
1933
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
1934
|
+
@end
|
|
1935
|
+
|
|
1936
|
+
@class MasonStyle;
|
|
1937
|
+
@class UIView;
|
|
1938
|
+
SWIFT_PROTOCOL("_TtP5Mason16MasonElementObjc_")
|
|
1939
|
+
@protocol MasonElementObjc <NSObject>
|
|
1940
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
1941
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
1942
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
1943
|
+
@end
|
|
1944
|
+
|
|
1945
|
+
@class NSCMason;
|
|
1946
|
+
@class NSString;
|
|
1947
|
+
@class NSMutableData;
|
|
1948
|
+
SWIFT_CLASS_NAMED("Button")
|
|
1949
|
+
@interface MasonButton : UIControl <MasonElementObjc, MasonTextContainer>
|
|
1950
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
1951
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
1952
|
+
@property (nonatomic, strong) MasonTextEngine * _Nonnull engine;
|
|
1953
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
1954
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
1955
|
+
/// Text content - sets or gets the concatenated text from all text nodes
|
|
1956
|
+
@property (nonatomic, copy) NSString * _Nonnull textContent;
|
|
1957
|
+
- (void)requestLayout;
|
|
1958
|
+
- (void)addView:(UIView * _Nonnull)view;
|
|
1959
|
+
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
1960
|
+
- (void)drawRect:(CGRect)rect;
|
|
1961
|
+
@property (nonatomic, readonly, strong) NSMutableData * _Nonnull textValues;
|
|
1962
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
|
|
1963
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
1964
|
+
@end
|
|
1965
|
+
|
|
1966
|
+
@class UITouch;
|
|
1967
|
+
@class UIEvent;
|
|
1968
|
+
@interface MasonButton (SWIFT_EXTENSION(Mason))
|
|
1969
|
+
- (void)touchesBegan:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
|
|
1970
|
+
- (void)touchesMoved:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
|
|
1971
|
+
- (void)touchesEnded:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
|
|
1972
|
+
- (void)touchesCancelled:(NSSet<UITouch *> * _Nonnull)touches withEvent:(UIEvent * _Nullable)event;
|
|
1973
|
+
@end
|
|
1974
|
+
|
|
1975
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonClear, "Clear", open) {
|
|
1976
|
+
MasonClearNone = 0,
|
|
1977
|
+
MasonClearLeft = 1,
|
|
1978
|
+
MasonClearRight = 2,
|
|
1979
|
+
MasonClearBoth = 3,
|
|
1390
1980
|
};
|
|
1391
1981
|
|
|
1392
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1982
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDecorationLine, "DecorationLine", open) {
|
|
1983
|
+
MasonDecorationLineNone = 0,
|
|
1984
|
+
MasonDecorationLineUnderline = 1,
|
|
1985
|
+
MasonDecorationLineOverline = 2,
|
|
1986
|
+
MasonDecorationLineLineThrough = 3,
|
|
1397
1987
|
};
|
|
1398
1988
|
|
|
1399
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1989
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDecorationStyle, "DecorationStyle", open) {
|
|
1990
|
+
MasonDecorationStyleSolid = 0,
|
|
1991
|
+
MasonDecorationStyleDouble = 1,
|
|
1992
|
+
MasonDecorationStyleDotted = 2,
|
|
1993
|
+
MasonDecorationStyleDashed = 3,
|
|
1994
|
+
MasonDecorationStyleWavy = 4,
|
|
1403
1995
|
};
|
|
1404
1996
|
|
|
1405
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
DisplayBlock = 3,
|
|
1997
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDirection, "Direction", open) {
|
|
1998
|
+
MasonDirectionInherit = 0,
|
|
1999
|
+
MasonDirectionLTR = 1,
|
|
2000
|
+
MasonDirectionRTL = 2,
|
|
1410
2001
|
};
|
|
1411
2002
|
|
|
1412
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
2003
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonDisplay, "Display", open) {
|
|
2004
|
+
MasonDisplayNone = 0,
|
|
2005
|
+
MasonDisplayFlex = 1,
|
|
2006
|
+
MasonDisplayGrid = 2,
|
|
2007
|
+
MasonDisplayBlock = 3,
|
|
2008
|
+
MasonDisplayInline = 4,
|
|
2009
|
+
MasonDisplayInlineBlock = 5,
|
|
2010
|
+
MasonDisplayInlineFlex = 6,
|
|
2011
|
+
MasonDisplayInlineGrid = 7,
|
|
1417
2012
|
};
|
|
1418
2013
|
|
|
1419
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
2014
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonFlexDirection, "FlexDirection", open) {
|
|
2015
|
+
MasonFlexDirectionRow = 0,
|
|
2016
|
+
MasonFlexDirectionColumn = 1,
|
|
2017
|
+
MasonFlexDirectionRowReverse = 2,
|
|
2018
|
+
MasonFlexDirectionColumnReverse = 3,
|
|
1423
2019
|
};
|
|
1424
2020
|
|
|
1425
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
2021
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonFlexWrap, "FlexWrap", open) {
|
|
2022
|
+
MasonFlexWrapNoWrap = 0,
|
|
2023
|
+
MasonFlexWrapWrap = 1,
|
|
2024
|
+
MasonFlexWrapWrapReverse = 2,
|
|
1429
2025
|
};
|
|
1430
2026
|
|
|
1431
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
FlexGridAutoFlowWrapColumnDense = 3,
|
|
2027
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonFontStyle, "FontStyle", open) {
|
|
2028
|
+
MasonFontStyleNormal = 0,
|
|
2029
|
+
MasonFontStyleItalic = 1,
|
|
2030
|
+
MasonFontStyleOblique = 2,
|
|
1436
2031
|
};
|
|
1437
2032
|
|
|
1438
|
-
|
|
1439
|
-
|
|
2033
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonGridAutoFlowWrap, "GridAutoFlow", open) {
|
|
2034
|
+
MasonGridAutoFlowWrapRow = 0,
|
|
2035
|
+
MasonGridAutoFlowWrapColumn = 1,
|
|
2036
|
+
MasonGridAutoFlowWrapRowDense = 2,
|
|
2037
|
+
MasonGridAutoFlowWrapColumnDense = 3,
|
|
2038
|
+
};
|
|
1440
2039
|
|
|
2040
|
+
enum MasonGridPlacementCompatType : NSInteger;
|
|
1441
2041
|
SWIFT_CLASS_NAMED("GridPlacementCompat")
|
|
1442
2042
|
@interface GridPlacementCompat : NSObject
|
|
1443
2043
|
- (nonnull instancetype)initWithSpan:(int16_t)span OBJC_DESIGNATED_INITIALIZER;
|
|
1444
2044
|
- (nonnull instancetype)initWithLine:(int16_t)line OBJC_DESIGNATED_INITIALIZER;
|
|
1445
|
-
@property (nonatomic, readonly) enum
|
|
2045
|
+
@property (nonatomic, readonly) enum MasonGridPlacementCompatType type;
|
|
1446
2046
|
@property (nonatomic, readonly) int16_t value;
|
|
1447
2047
|
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
1448
2048
|
@property (nonatomic, readonly, copy) NSString * _Nullable jsonValue;
|
|
@@ -1452,61 +2052,80 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GridPlacemen
|
|
|
1452
2052
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1453
2053
|
@end
|
|
1454
2054
|
|
|
1455
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
2055
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonGridPlacementCompatType, "GridPlacementCompatType", open) {
|
|
2056
|
+
MasonGridPlacementCompatTypeAuto = 0,
|
|
2057
|
+
MasonGridPlacementCompatTypeLine = 1,
|
|
2058
|
+
MasonGridPlacementCompatTypeSpan = 2,
|
|
1459
2059
|
};
|
|
1460
2060
|
|
|
1461
|
-
|
|
1462
2061
|
SWIFT_CLASS_NAMED("GridTrackRepetition")
|
|
1463
|
-
@interface
|
|
2062
|
+
@interface MasonGridTrackRepetition : NSObject
|
|
2063
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
1464
2064
|
@property (nonatomic, readonly) int32_t type;
|
|
1465
2065
|
@property (nonatomic, readonly) uint16_t value;
|
|
1466
|
-
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong)
|
|
1467
|
-
+ (
|
|
1468
|
-
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong)
|
|
1469
|
-
+ (
|
|
1470
|
-
+ (
|
|
2066
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonGridTrackRepetition * _Nonnull AutoFill;)
|
|
2067
|
+
+ (MasonGridTrackRepetition * _Nonnull)AutoFill SWIFT_WARN_UNUSED_RESULT;
|
|
2068
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonGridTrackRepetition * _Nonnull AutoFit;)
|
|
2069
|
+
+ (MasonGridTrackRepetition * _Nonnull)AutoFit SWIFT_WARN_UNUSED_RESULT;
|
|
2070
|
+
+ (MasonGridTrackRepetition * _Nonnull)Count:(uint16_t)value SWIFT_WARN_UNUSED_RESULT;
|
|
1471
2071
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1472
2072
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1473
2073
|
@end
|
|
1474
2074
|
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
2075
|
+
enum MasonLoadingState : NSInteger;
|
|
2076
|
+
@class UIImage;
|
|
2077
|
+
SWIFT_CLASS_NAMED("Img")
|
|
2078
|
+
@interface MasonImg : UIView <MasonElementObjc>
|
|
2079
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
2080
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
2081
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
2082
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
2083
|
+
@property (nonatomic, copy) void (^ _Nullable didLayout)(void);
|
|
2084
|
+
@property (nonatomic, copy) void (^ _Nullable onStateChange)(enum MasonLoadingState, NSError * _Nullable);
|
|
2085
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layerClass;)
|
|
2086
|
+
+ (Class _Nonnull)layerClass SWIFT_WARN_UNUSED_RESULT;
|
|
2087
|
+
@property (nonatomic, strong) UIImage * _Nullable image;
|
|
2088
|
+
- (void)requestLayout;
|
|
2089
|
+
@property (nonatomic, copy) NSString * _Nullable src;
|
|
2090
|
+
- (void)updateImage:(UIImage * _Nullable)image;
|
|
2091
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
2092
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
2093
|
+
@end
|
|
1487
2094
|
|
|
1488
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
2095
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonJustifyContent, "JustifyContent", open) {
|
|
2096
|
+
MasonJustifyContentNormal = -1,
|
|
2097
|
+
MasonJustifyContentStart = 0,
|
|
2098
|
+
MasonJustifyContentEnd = 1,
|
|
2099
|
+
MasonJustifyContentCenter = 2,
|
|
2100
|
+
MasonJustifyContentStretch = 3,
|
|
2101
|
+
MasonJustifyContentSpaceBetween = 4,
|
|
2102
|
+
MasonJustifyContentSpaceAround = 5,
|
|
2103
|
+
MasonJustifyContentSpaceEvenly = 6,
|
|
2104
|
+
MasonJustifyContentFlexStart = 7,
|
|
2105
|
+
MasonJustifyContentFlexEnd = 8,
|
|
1497
2106
|
};
|
|
1498
2107
|
|
|
1499
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
2108
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonJustifyItems, "JustifyItems", open) {
|
|
2109
|
+
MasonJustifyItemsNormal = -1,
|
|
2110
|
+
MasonJustifyItemsStart = 0,
|
|
2111
|
+
MasonJustifyItemsEnd = 1,
|
|
2112
|
+
MasonJustifyItemsCenter = 2,
|
|
2113
|
+
MasonJustifyItemsBaseline = 3,
|
|
2114
|
+
MasonJustifyItemsStretch = 4,
|
|
2115
|
+
MasonJustifyItemsFlexStart = 5,
|
|
2116
|
+
MasonJustifyItemsFlexEnd = 6,
|
|
1508
2117
|
};
|
|
1509
2118
|
|
|
2119
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonJustifySelf, "JustifySelf", open) {
|
|
2120
|
+
MasonJustifySelfNormal = -1,
|
|
2121
|
+
MasonJustifySelfStart = 0,
|
|
2122
|
+
MasonJustifySelfEnd = 1,
|
|
2123
|
+
MasonJustifySelfCenter = 2,
|
|
2124
|
+
MasonJustifySelfBaseline = 3,
|
|
2125
|
+
MasonJustifySelfStretch = 4,
|
|
2126
|
+
MasonJustifySelfFlexStart = 5,
|
|
2127
|
+
MasonJustifySelfFlexEnd = 6,
|
|
2128
|
+
};
|
|
1510
2129
|
|
|
1511
2130
|
SWIFT_CLASS_NAMED("LineGridPlacementCompat")
|
|
1512
2131
|
@interface LineGridPlacementCompat : NSObject
|
|
@@ -1516,13 +2135,33 @@ SWIFT_CLASS_NAMED("LineGridPlacementCompat")
|
|
|
1516
2135
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1517
2136
|
@end
|
|
1518
2137
|
|
|
1519
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
1520
|
-
|
|
1521
|
-
|
|
2138
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonLineHeight, "LineHeight", open) {
|
|
2139
|
+
MasonLineHeightNormal = 0,
|
|
2140
|
+
MasonLineHeightPre = 1,
|
|
2141
|
+
MasonLineHeightPreWrap = 2,
|
|
2142
|
+
MasonLineHeightPreLine = 3,
|
|
1522
2143
|
};
|
|
1523
2144
|
|
|
1524
|
-
|
|
2145
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonLoadingState, "LoadingState", open) {
|
|
2146
|
+
MasonLoadingStateLoading = 0,
|
|
2147
|
+
MasonLoadingStateLoaded = 1,
|
|
2148
|
+
MasonLoadingStateError = 2,
|
|
2149
|
+
};
|
|
1525
2150
|
|
|
2151
|
+
SWIFT_PROTOCOL("_TtP5Mason18MasonCharacterData_")
|
|
2152
|
+
@protocol MasonCharacterData
|
|
2153
|
+
@property (nonatomic, copy) NSString * _Nonnull data;
|
|
2154
|
+
@property (nonatomic, readonly) NSInteger length;
|
|
2155
|
+
- (nonnull instancetype)appendData:(NSString * _Nonnull)s;
|
|
2156
|
+
- (nonnull instancetype)insertData:(NSString * _Nonnull)s at:(NSInteger)offset;
|
|
2157
|
+
- (nonnull instancetype)deleteDataWithOffset:(NSInteger)offset count:(NSInteger)count;
|
|
2158
|
+
- (nonnull instancetype)replaceDataWithOffset:(NSInteger)offset count:(NSInteger)count with:(NSString * _Nonnull)s;
|
|
2159
|
+
- (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
|
|
2160
|
+
- (nonnull instancetype)deleteDataWithRange:(NSRange)range;
|
|
2161
|
+
- (nonnull instancetype)replaceDataWithRange:(NSRange)range with:(NSString * _Nonnull)s;
|
|
2162
|
+
@end
|
|
2163
|
+
|
|
2164
|
+
enum MasonDimensionCompatType : NSInteger;
|
|
1526
2165
|
SWIFT_CLASS_NAMED("MasonDimensionCompat")
|
|
1527
2166
|
@interface MasonDimensionCompat : NSObject
|
|
1528
2167
|
- (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -1545,6 +2184,13 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonDimensionCompatType, "MasonDimensionCom
|
|
|
1545
2184
|
MasonDimensionCompatTypePercent = 2,
|
|
1546
2185
|
};
|
|
1547
2186
|
|
|
2187
|
+
SWIFT_CLASS_NAMED("MasonDimensionPointCompat")
|
|
2188
|
+
@interface MasonDimensionPointCompat : NSObject
|
|
2189
|
+
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull x;
|
|
2190
|
+
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull y;
|
|
2191
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2192
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2193
|
+
@end
|
|
1548
2194
|
|
|
1549
2195
|
SWIFT_CLASS_NAMED("MasonDimensionRectCompat")
|
|
1550
2196
|
@interface MasonDimensionRectCompat : NSObject
|
|
@@ -1552,12 +2198,11 @@ SWIFT_CLASS_NAMED("MasonDimensionRectCompat")
|
|
|
1552
2198
|
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull right;
|
|
1553
2199
|
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull top;
|
|
1554
2200
|
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull bottom;
|
|
1555
|
-
- (nonnull instancetype)init:(MasonDimensionCompat * _Nonnull)left :(MasonDimensionCompat * _Nonnull)
|
|
2201
|
+
- (nonnull instancetype)init:(MasonDimensionCompat * _Nonnull)left :(MasonDimensionCompat * _Nonnull)top :(MasonDimensionCompat * _Nonnull)right :(MasonDimensionCompat * _Nonnull)bottom OBJC_DESIGNATED_INITIALIZER;
|
|
1556
2202
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1557
2203
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1558
2204
|
@end
|
|
1559
2205
|
|
|
1560
|
-
|
|
1561
2206
|
SWIFT_CLASS_NAMED("MasonDimensionSizeCompat")
|
|
1562
2207
|
@interface MasonDimensionSizeCompat : NSObject
|
|
1563
2208
|
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull width;
|
|
@@ -1566,6 +2211,28 @@ SWIFT_CLASS_NAMED("MasonDimensionSizeCompat")
|
|
|
1566
2211
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1567
2212
|
@end
|
|
1568
2213
|
|
|
2214
|
+
SWIFT_CLASS_NAMED("MasonDocument")
|
|
2215
|
+
@interface MasonDocument : NSObject
|
|
2216
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
2217
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
2218
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)instance OBJC_DESIGNATED_INITIALIZER;
|
|
2219
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2220
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2221
|
+
@end
|
|
2222
|
+
|
|
2223
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonFloat, "MasonFloat", open) {
|
|
2224
|
+
MasonFloatNone = 0,
|
|
2225
|
+
MasonFloatLeft = 1,
|
|
2226
|
+
MasonFloatRight = 2,
|
|
2227
|
+
};
|
|
2228
|
+
|
|
2229
|
+
SWIFT_CLASS("_TtC5Mason15MasonImageLayer")
|
|
2230
|
+
@interface MasonImageLayer : CALayer
|
|
2231
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
2232
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
2233
|
+
- (nonnull instancetype)initWithLayer:(id _Nonnull)layer OBJC_DESIGNATED_INITIALIZER;
|
|
2234
|
+
- (void)drawInContext:(CGContextRef _Nonnull)context;
|
|
2235
|
+
@end
|
|
1569
2236
|
|
|
1570
2237
|
SWIFT_CLASS_NAMED("MasonLayout")
|
|
1571
2238
|
@interface MasonLayout : NSObject
|
|
@@ -1575,13 +2242,15 @@ SWIFT_CLASS_NAMED("MasonLayout")
|
|
|
1575
2242
|
@property (nonatomic, readonly) float width;
|
|
1576
2243
|
@property (nonatomic, readonly) float height;
|
|
1577
2244
|
@property (nonatomic, readonly, copy) NSArray<MasonLayout *> * _Nonnull children;
|
|
2245
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonLayout * _Nonnull zero;)
|
|
2246
|
+
+ (MasonLayout * _Nonnull)zero SWIFT_WARN_UNUSED_RESULT;
|
|
2247
|
+
@property (nonatomic, readonly) BOOL hasChildren;
|
|
1578
2248
|
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
|
|
1579
2249
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1580
2250
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1581
2251
|
@end
|
|
1582
2252
|
|
|
1583
2253
|
enum MasonLengthPercentageAutoCompatType : NSInteger;
|
|
1584
|
-
|
|
1585
2254
|
SWIFT_CLASS_NAMED("MasonLengthPercentageAutoCompat")
|
|
1586
2255
|
@interface MasonLengthPercentageAutoCompat : NSObject
|
|
1587
2256
|
- (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -1604,6 +2273,13 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonLengthPercentageAutoCompatType, "MasonL
|
|
|
1604
2273
|
MasonLengthPercentageAutoCompatTypePercent = 2,
|
|
1605
2274
|
};
|
|
1606
2275
|
|
|
2276
|
+
SWIFT_CLASS_NAMED("MasonLengthPercentageAutoPointCompat")
|
|
2277
|
+
@interface MasonLengthPercentageAutoPointCompat : NSObject
|
|
2278
|
+
@property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull x;
|
|
2279
|
+
@property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull y;
|
|
2280
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2281
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2282
|
+
@end
|
|
1607
2283
|
|
|
1608
2284
|
SWIFT_CLASS_NAMED("MasonLengthPercentageAutoRectCompat")
|
|
1609
2285
|
@interface MasonLengthPercentageAutoRectCompat : NSObject
|
|
@@ -1611,12 +2287,11 @@ SWIFT_CLASS_NAMED("MasonLengthPercentageAutoRectCompat")
|
|
|
1611
2287
|
@property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull right;
|
|
1612
2288
|
@property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull top;
|
|
1613
2289
|
@property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull bottom;
|
|
1614
|
-
- (nonnull instancetype)init:(MasonLengthPercentageAutoCompat * _Nonnull)left :(MasonLengthPercentageAutoCompat * _Nonnull)
|
|
2290
|
+
- (nonnull instancetype)init:(MasonLengthPercentageAutoCompat * _Nonnull)left :(MasonLengthPercentageAutoCompat * _Nonnull)top :(MasonLengthPercentageAutoCompat * _Nonnull)right :(MasonLengthPercentageAutoCompat * _Nonnull)bottom OBJC_DESIGNATED_INITIALIZER;
|
|
1615
2291
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1616
2292
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1617
2293
|
@end
|
|
1618
2294
|
|
|
1619
|
-
|
|
1620
2295
|
SWIFT_CLASS_NAMED("MasonLengthPercentageAutoSizeCompat")
|
|
1621
2296
|
@interface MasonLengthPercentageAutoSizeCompat : NSObject
|
|
1622
2297
|
@property (nonatomic, strong) MasonLengthPercentageAutoCompat * _Nonnull width;
|
|
@@ -1626,7 +2301,6 @@ SWIFT_CLASS_NAMED("MasonLengthPercentageAutoSizeCompat")
|
|
|
1626
2301
|
@end
|
|
1627
2302
|
|
|
1628
2303
|
enum MasonLengthPercentageCompatType : NSInteger;
|
|
1629
|
-
|
|
1630
2304
|
SWIFT_CLASS_NAMED("MasonLengthPercentageCompat")
|
|
1631
2305
|
@interface MasonLengthPercentageCompat : NSObject
|
|
1632
2306
|
- (nonnull instancetype)initWithPoints:(float)points OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -1646,6 +2320,13 @@ typedef SWIFT_ENUM_NAMED(NSInteger, MasonLengthPercentageCompatType, "MasonLengt
|
|
|
1646
2320
|
MasonLengthPercentageCompatTypePercent = 1,
|
|
1647
2321
|
};
|
|
1648
2322
|
|
|
2323
|
+
SWIFT_CLASS_NAMED("MasonLengthPercentagePointCompat")
|
|
2324
|
+
@interface MasonLengthPercentagePointCompat : NSObject
|
|
2325
|
+
@property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull x;
|
|
2326
|
+
@property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull y;
|
|
2327
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2328
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2329
|
+
@end
|
|
1649
2330
|
|
|
1650
2331
|
SWIFT_CLASS_NAMED("MasonLengthPercentageRectCompat")
|
|
1651
2332
|
@interface MasonLengthPercentageRectCompat : NSObject
|
|
@@ -1658,7 +2339,6 @@ SWIFT_CLASS_NAMED("MasonLengthPercentageRectCompat")
|
|
|
1658
2339
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1659
2340
|
@end
|
|
1660
2341
|
|
|
1661
|
-
|
|
1662
2342
|
SWIFT_CLASS_NAMED("MasonLengthPercentageSizeCompat")
|
|
1663
2343
|
@interface MasonLengthPercentageSizeCompat : NSObject
|
|
1664
2344
|
@property (nonatomic, strong) MasonLengthPercentageCompat * _Nonnull width;
|
|
@@ -1667,65 +2347,115 @@ SWIFT_CLASS_NAMED("MasonLengthPercentageSizeCompat")
|
|
|
1667
2347
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1668
2348
|
@end
|
|
1669
2349
|
|
|
1670
|
-
|
|
1671
|
-
@class NSCMason;
|
|
1672
|
-
|
|
2350
|
+
enum MasonNodeType : int32_t;
|
|
1673
2351
|
SWIFT_CLASS_NAMED("MasonNode")
|
|
1674
2352
|
@interface MasonNode : NSObject
|
|
2353
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
2354
|
+
@property (nonatomic, copy) void (^ _Nullable onNodeAttached)(void);
|
|
2355
|
+
@property (nonatomic, copy) void (^ _Nullable onNodeDetached)(void);
|
|
1675
2356
|
@property (nonatomic, readonly) void * _Nullable nativePtr;
|
|
1676
|
-
@property (nonatomic, readonly, strong) MasonLayout *
|
|
1677
|
-
@property (nonatomic)
|
|
1678
|
-
|
|
1679
|
-
@property (nonatomic, readonly, strong) MasonNode * _Nullable
|
|
1680
|
-
@property (nonatomic, readonly,
|
|
2357
|
+
@property (nonatomic, readonly, strong) MasonLayout * _Nonnull computedLayout;
|
|
2358
|
+
@property (nonatomic, readonly, strong) MasonDocument * _Nullable document;
|
|
2359
|
+
- (MasonNode * _Nonnull)getRootNode SWIFT_WARN_UNUSED_RESULT;
|
|
2360
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nullable parent;
|
|
2361
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nullable parentNode;
|
|
2362
|
+
@property (nonatomic, readonly) enum MasonNodeType type;
|
|
2363
|
+
- (NSArray<MasonNode *> * _Nonnull)getChildren SWIFT_WARN_UNUSED_RESULT;
|
|
2364
|
+
- (NSArray<MasonNode *> * _Nonnull)getLayoutChildren SWIFT_WARN_UNUSED_RESULT;
|
|
2365
|
+
@property (nonatomic) BOOL inBatch;
|
|
1681
2366
|
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes OBJC_DESIGNATED_INITIALIZER;
|
|
1682
|
-
- (MasonLayout * _Nonnull)layout;
|
|
1683
2367
|
@property (nonatomic, readonly) BOOL isDirty;
|
|
1684
2368
|
- (void)markDirty;
|
|
1685
|
-
- (
|
|
1686
|
-
|
|
1687
|
-
- (
|
|
1688
|
-
- (
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
- (void)computeWithMaxContent;
|
|
1694
|
-
- (void)computeWithMinContent;
|
|
1695
|
-
- (void)attachAndApply;
|
|
2369
|
+
- (UIView * _Nullable)getRoot SWIFT_WARN_UNUSED_RESULT;
|
|
2370
|
+
/// Helper to get default text attributes for new text nodes
|
|
2371
|
+
- (NSDictionary<NSAttributedStringKey, id> * _Nonnull)getDefaultAttributes SWIFT_WARN_UNUSED_RESULT;
|
|
2372
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2373
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2374
|
+
@end
|
|
2375
|
+
|
|
2376
|
+
@interface MasonNode (SWIFT_EXTENSION(Mason))
|
|
1696
2377
|
- (void)setChildrenWithValue:(NSArray<MasonNode *> * _Nonnull)value;
|
|
1697
|
-
- (void)
|
|
1698
|
-
|
|
2378
|
+
- (void)appendChild:(MasonNode * _Nonnull)child;
|
|
2379
|
+
@end
|
|
2380
|
+
|
|
2381
|
+
typedef SWIFT_ENUM_NAMED(int32_t, MasonNodeType, "MasonNodeType", open) {
|
|
2382
|
+
MasonNodeTypeElement = 0,
|
|
2383
|
+
MasonNodeTypeText = 1,
|
|
2384
|
+
MasonNodeTypeDocument = 2,
|
|
2385
|
+
};
|
|
2386
|
+
|
|
2387
|
+
enum MasonOverflow : NSInteger;
|
|
2388
|
+
SWIFT_CLASS_NAMED("MasonOverflowPointCompat")
|
|
2389
|
+
@interface MasonOverflowPointCompat : NSObject
|
|
2390
|
+
@property (nonatomic) enum MasonOverflow x;
|
|
2391
|
+
@property (nonatomic) enum MasonOverflow y;
|
|
2392
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
1699
2393
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1700
2394
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1701
2395
|
@end
|
|
1702
2396
|
|
|
1703
|
-
@class
|
|
1704
|
-
@class
|
|
1705
|
-
enum
|
|
1706
|
-
|
|
2397
|
+
@class NSCFontFace;
|
|
2398
|
+
@class MasonVerticalAlignValue;
|
|
2399
|
+
enum MasonObjectFit : NSInteger;
|
|
2400
|
+
@class UIColor;
|
|
2401
|
+
enum MasonTextJustify : NSInteger;
|
|
2402
|
+
@class MasonTextOverflowCompat;
|
|
2403
|
+
enum MasonTextTransform : NSInteger;
|
|
2404
|
+
enum MasonWhiteSpace : NSInteger;
|
|
2405
|
+
enum MasonTextWrap : NSInteger;
|
|
2406
|
+
enum MasonPosition : NSInteger;
|
|
1707
2407
|
enum MasonTextAlign : NSInteger;
|
|
1708
|
-
@class MinMax;
|
|
1709
|
-
@class TrackSizingFunction;
|
|
1710
|
-
|
|
1711
2408
|
SWIFT_CLASS_NAMED("MasonStyle")
|
|
1712
2409
|
@interface MasonStyle : NSObject
|
|
1713
|
-
@property (nonatomic, strong)
|
|
1714
|
-
@property (nonatomic,
|
|
2410
|
+
@property (nonatomic, readonly, strong) NSCFontFace * _Null_unspecified font;
|
|
2411
|
+
@property (nonatomic, strong) NSMutableData * _Nonnull values;
|
|
2412
|
+
@property (nonatomic, strong) NSMutableData * _Nonnull textValues;
|
|
1715
2413
|
- (nonnull instancetype)initWithNode:(MasonNode * _Nonnull)node OBJC_DESIGNATED_INITIALIZER;
|
|
1716
|
-
@property (nonatomic)
|
|
1717
|
-
@property (nonatomic) enum
|
|
1718
|
-
@property (nonatomic) enum
|
|
1719
|
-
@property (nonatomic) enum
|
|
1720
|
-
@property (nonatomic)
|
|
1721
|
-
|
|
1722
|
-
@property (nonatomic)
|
|
1723
|
-
@property (nonatomic)
|
|
1724
|
-
@property (nonatomic)
|
|
1725
|
-
@property (nonatomic)
|
|
1726
|
-
@property (nonatomic)
|
|
1727
|
-
@property (nonatomic)
|
|
1728
|
-
@property (nonatomic)
|
|
2414
|
+
@property (nonatomic, strong) MasonVerticalAlignValue * _Nonnull verticalAlign;
|
|
2415
|
+
@property (nonatomic) enum MasonObjectFit objectFit;
|
|
2416
|
+
@property (nonatomic, getter=float, setter=setFloat:) enum MasonFloat float_;
|
|
2417
|
+
@property (nonatomic) enum MasonClear clear;
|
|
2418
|
+
@property (nonatomic) uint32_t color;
|
|
2419
|
+
- (void)setColorWithUi:(UIColor * _Nonnull)color;
|
|
2420
|
+
@property (nonatomic, copy) NSString * _Nonnull filter;
|
|
2421
|
+
@property (nonatomic, copy) NSString * _Nonnull background;
|
|
2422
|
+
@property (nonatomic, copy) NSString * _Nonnull backgroundImage;
|
|
2423
|
+
@property (nonatomic, copy) NSString * _Nonnull backgroundRepeat;
|
|
2424
|
+
@property (nonatomic, copy) NSString * _Nonnull backgroundPosition;
|
|
2425
|
+
@property (nonatomic, copy) NSString * _Nonnull backgroundSize;
|
|
2426
|
+
@property (nonatomic, copy) NSString * _Nonnull backgroundClip;
|
|
2427
|
+
@property (nonatomic) uint32_t backgroundColor;
|
|
2428
|
+
- (void)setBackgroundColorWithUi:(UIColor * _Nonnull)color;
|
|
2429
|
+
- (void)setLineHeight:(float)value :(BOOL)isRelative;
|
|
2430
|
+
@property (nonatomic) float lineHeight;
|
|
2431
|
+
@property (nonatomic) float letterSpacing;
|
|
2432
|
+
@property (nonatomic) uint32_t decorationColor;
|
|
2433
|
+
- (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
|
|
2434
|
+
@property (nonatomic) enum MasonDecorationLine decorationLine;
|
|
2435
|
+
@property (nonatomic) int32_t fontSize;
|
|
2436
|
+
- (void)setFontStyle:(enum MasonFontStyle)style :(int32_t)slant;
|
|
2437
|
+
@property (nonatomic) enum MasonTextJustify textJustify;
|
|
2438
|
+
@property (nonatomic) enum MasonFontStyle fontStyle;
|
|
2439
|
+
@property (nonatomic, copy) NSString * _Nonnull fontFamily;
|
|
2440
|
+
@property (nonatomic, copy) NSString * _Nonnull fontWeight;
|
|
2441
|
+
@property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
|
|
2442
|
+
@property (nonatomic) enum MasonTextTransform textTransform;
|
|
2443
|
+
@property (nonatomic) enum MasonWhiteSpace whiteSpace;
|
|
2444
|
+
@property (nonatomic) enum MasonTextWrap textWrap;
|
|
2445
|
+
@property (nonatomic) enum MasonDisplay display;
|
|
2446
|
+
@property (nonatomic) enum MasonPosition position;
|
|
2447
|
+
@property (nonatomic) enum MasonDirection direction;
|
|
2448
|
+
@property (nonatomic) enum MasonFlexDirection flexDirection;
|
|
2449
|
+
@property (nonatomic) enum MasonFlexWrap flexWrap;
|
|
2450
|
+
@property (nonatomic, strong) MasonOverflowPointCompat * _Nonnull overflowCompat;
|
|
2451
|
+
@property (nonatomic) enum MasonOverflow overflowX;
|
|
2452
|
+
@property (nonatomic) enum MasonOverflow overflowY;
|
|
2453
|
+
@property (nonatomic) enum MasonAlignItems alignItems;
|
|
2454
|
+
@property (nonatomic) enum MasonAlignSelf alignSelf;
|
|
2455
|
+
@property (nonatomic) enum MasonAlignContent alignContent;
|
|
2456
|
+
@property (nonatomic) enum MasonJustifyItems justifyItems;
|
|
2457
|
+
@property (nonatomic) enum MasonJustifySelf justifySelf;
|
|
2458
|
+
@property (nonatomic) enum MasonJustifyContent justifyContent;
|
|
1729
2459
|
@property (nonatomic, strong) MasonLengthPercentageAutoRectCompat * _Nonnull insetCompat;
|
|
1730
2460
|
- (void)setInsetLeft:(float)value :(NSInteger)type;
|
|
1731
2461
|
- (void)setInsetRight:(float)value :(NSInteger)type;
|
|
@@ -1744,16 +2474,19 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
1744
2474
|
- (void)setPaddingTop:(float)value :(NSInteger)type;
|
|
1745
2475
|
- (void)setPaddingBottom:(float)value :(NSInteger)type;
|
|
1746
2476
|
- (void)setPaddingWithValueType:(float)value :(NSInteger)type;
|
|
1747
|
-
@property (nonatomic,
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
- (void)
|
|
1751
|
-
- (void)
|
|
1752
|
-
- (void)
|
|
2477
|
+
@property (nonatomic, copy) NSString * _Nonnull borderRadius;
|
|
2478
|
+
@property (nonatomic, copy) NSString * _Nonnull border;
|
|
2479
|
+
@property (nonatomic, strong) MasonLengthPercentageRectCompat * _Nonnull borderWidthCompat;
|
|
2480
|
+
- (void)setBorderLeftWidth:(float)value :(NSInteger)type;
|
|
2481
|
+
- (void)setBorderRightWidth:(float)value :(NSInteger)type;
|
|
2482
|
+
- (void)setBorderTopWidth:(float)value :(NSInteger)type;
|
|
2483
|
+
- (void)setBorderBottomWidth:(float)value :(NSInteger)type;
|
|
2484
|
+
- (void)setBorderWidth:(float)value :(NSInteger)type;
|
|
1753
2485
|
@property (nonatomic) float flexGrow;
|
|
1754
2486
|
@property (nonatomic) float flexShrink;
|
|
1755
2487
|
- (void)setFlexBasis:(float)value :(NSInteger)type;
|
|
1756
2488
|
- (void)setScrollBarWidth:(float)value;
|
|
2489
|
+
@property (nonatomic) enum MasonAlign align;
|
|
1757
2490
|
@property (nonatomic) enum MasonTextAlign textAlign;
|
|
1758
2491
|
@property (nonatomic) enum MasonBoxSizing boxSizing;
|
|
1759
2492
|
@property (nonatomic, strong) MasonDimensionSizeCompat * _Nonnull minSizeCompat;
|
|
@@ -1775,130 +2508,169 @@ SWIFT_CLASS_NAMED("MasonStyle")
|
|
|
1775
2508
|
- (void)setGapColumn:(float)value :(NSInteger)type;
|
|
1776
2509
|
- (void)setRowGap:(float)value :(NSInteger)type;
|
|
1777
2510
|
- (void)setColumnGap:(float)value :(NSInteger)type;
|
|
1778
|
-
@property (nonatomic, copy)
|
|
1779
|
-
@property (nonatomic, copy)
|
|
1780
|
-
@property (nonatomic)
|
|
1781
|
-
@property (nonatomic,
|
|
1782
|
-
@property (nonatomic
|
|
1783
|
-
@property (nonatomic,
|
|
1784
|
-
@property (nonatomic,
|
|
1785
|
-
@property (nonatomic,
|
|
1786
|
-
@property (nonatomic,
|
|
1787
|
-
@property (nonatomic, copy)
|
|
1788
|
-
@property (nonatomic, copy)
|
|
2511
|
+
@property (nonatomic, copy) NSString * _Nonnull gridArea;
|
|
2512
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateAreas;
|
|
2513
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoRows;
|
|
2514
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoColumns;
|
|
2515
|
+
@property (nonatomic) enum MasonGridAutoFlowWrap gridAutoFlow;
|
|
2516
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumn;
|
|
2517
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnStart;
|
|
2518
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnEnd;
|
|
2519
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRow;
|
|
2520
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowStart;
|
|
2521
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowEnd;
|
|
2522
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateRows;
|
|
2523
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateColumns;
|
|
1789
2524
|
- (void)updateNativeStyle;
|
|
1790
2525
|
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
|
|
1791
2526
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
1792
2527
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1793
2528
|
@end
|
|
1794
2529
|
|
|
1795
|
-
|
|
1796
|
-
@class NSMutableAttributedString;
|
|
1797
|
-
@class UIFont;
|
|
1798
|
-
enum TextTransform : NSInteger;
|
|
1799
|
-
@class UIColor;
|
|
1800
|
-
enum TextWrap : NSInteger;
|
|
1801
|
-
|
|
2530
|
+
enum MasonTextType : NSInteger;
|
|
1802
2531
|
SWIFT_CLASS_NAMED("MasonText")
|
|
1803
|
-
@interface MasonText : UIView
|
|
1804
|
-
@property (nonatomic, readonly, strong) MasonText * _Nullable owner;
|
|
2532
|
+
@interface MasonText : UIView <MasonElementObjc, MasonTextContainer>
|
|
1805
2533
|
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
1806
|
-
@property (nonatomic, readonly
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
2534
|
+
@property (nonatomic, readonly) enum MasonTextType type;
|
|
2535
|
+
@property (nonatomic, strong) MasonTextEngine * _Nonnull engine;
|
|
2536
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) Class _Nonnull layerClass;)
|
|
2537
|
+
+ (Class _Nonnull)layerClass SWIFT_WARN_UNUSED_RESULT;
|
|
2538
|
+
@property (nonatomic, readonly, strong) NSMutableData * _Nonnull textValues;
|
|
1810
2539
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
1811
2540
|
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
1812
|
-
- (
|
|
1813
|
-
- (
|
|
1814
|
-
- (void)
|
|
1815
|
-
- (void)
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
- (
|
|
1819
|
-
@property (nonatomic)
|
|
1820
|
-
@property (nonatomic) CGFloat fontSize;
|
|
1821
|
-
@property (nonatomic) enum FontStyle fontStyle;
|
|
1822
|
-
- (void)setFontStyle:(enum FontStyle)style slant:(int32_t)slant;
|
|
1823
|
-
@property (nonatomic, copy) NSString * _Nonnull fontWeight;
|
|
2541
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason type:(enum MasonTextType)textType OBJC_DESIGNATED_INITIALIZER;
|
|
2542
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)mason OBJC_DESIGNATED_INITIALIZER;
|
|
2543
|
+
- (void)setNeedsDisplay;
|
|
2544
|
+
- (void)requestLayout;
|
|
2545
|
+
- (void)addView:(UIView * _Nonnull)view;
|
|
2546
|
+
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
2547
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
2548
|
+
@property (nonatomic, strong) MasonTextOverflowCompat * _Nonnull textOverflowCompat;
|
|
1824
2549
|
@property (nonatomic) uint32_t color;
|
|
1825
|
-
@property (nonatomic) uint32_t backgroundColorValue;
|
|
1826
2550
|
- (void)setColorWithUi:(UIColor * _Nonnull)color;
|
|
2551
|
+
@property (nonatomic) uint32_t backgroundColorValue;
|
|
1827
2552
|
- (void)setBackgroundColorWithUi:(UIColor * _Nonnull)color;
|
|
1828
|
-
- (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
|
|
1829
2553
|
@property (nonatomic) uint32_t decorationColor;
|
|
1830
|
-
|
|
1831
|
-
@property (nonatomic) enum
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
- (void)
|
|
1835
|
-
@property (nonatomic, copy) NSString *
|
|
1836
|
-
|
|
2554
|
+
- (void)setDecorationColorWithUi:(UIColor * _Nonnull)color;
|
|
2555
|
+
@property (nonatomic) enum MasonDecorationLine decorationLine;
|
|
2556
|
+
@property (nonatomic) int32_t fontSize;
|
|
2557
|
+
@property (nonatomic) enum MasonFontStyle fontStyle;
|
|
2558
|
+
- (void)setFontStyle:(enum MasonFontStyle)style slant:(int32_t)slant;
|
|
2559
|
+
@property (nonatomic, copy) NSString * _Nonnull fontWeight;
|
|
2560
|
+
@property (nonatomic) enum MasonTextTransform textTransform;
|
|
2561
|
+
@property (nonatomic) enum MasonWhiteSpace whiteSpace;
|
|
2562
|
+
@property (nonatomic) enum MasonTextWrap textWrap;
|
|
2563
|
+
@property (nonatomic) float lineHeight;
|
|
2564
|
+
/// Text content - sets or gets the concatenated text from all text nodes
|
|
2565
|
+
@property (nonatomic, copy) NSString * _Nonnull textContent;
|
|
1837
2566
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
1838
2567
|
@end
|
|
1839
2568
|
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
2569
|
+
@interface MasonText (SWIFT_EXTENSION(Mason))
|
|
2570
|
+
- (void)addChild:(MasonNode * _Nonnull)child;
|
|
2571
|
+
@end
|
|
2572
|
+
|
|
2573
|
+
@interface MasonText (SWIFT_EXTENSION(Mason))
|
|
2574
|
+
/// Remove child from text container
|
|
2575
|
+
- (MasonNode * _Nullable)removeChild:(MasonNode * _Nonnull)child;
|
|
2576
|
+
@end
|
|
2577
|
+
|
|
2578
|
+
SWIFT_CLASS("_TtC5Mason14MasonTextLayer")
|
|
2579
|
+
@interface MasonTextLayer : CALayer
|
|
2580
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
2581
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
2582
|
+
- (nonnull instancetype)initWithLayer:(id _Nonnull)layer OBJC_DESIGNATED_INITIALIZER;
|
|
2583
|
+
- (void)drawInContext:(CGContextRef _Nonnull)context;
|
|
2584
|
+
@end
|
|
2585
|
+
|
|
2586
|
+
SWIFT_CLASS_NAMED("MasonTextNode")
|
|
2587
|
+
@interface MasonTextNode : MasonNode <MasonCharacterData>
|
|
2588
|
+
@property (nonatomic, copy) NSString * _Nonnull data;
|
|
2589
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc data:(NSString * _Nonnull)text attributes:(NSDictionary<NSAttributedStringKey, id> * _Nullable)attrs OBJC_DESIGNATED_INITIALIZER;
|
|
2590
|
+
- (void)appendChild:(MasonNode * _Nonnull)child;
|
|
2591
|
+
@property (nonatomic, readonly) NSInteger length;
|
|
2592
|
+
- (NSString * _Nonnull)substringDataWithOffset:(NSInteger)offset count:(NSInteger)count SWIFT_WARN_UNUSED_RESULT;
|
|
2593
|
+
- (nonnull instancetype)appendData:(NSString * _Nonnull)s;
|
|
2594
|
+
- (nonnull instancetype)insertData:(NSString * _Nonnull)s at:(NSInteger)offset;
|
|
2595
|
+
- (nonnull instancetype)deleteDataWithOffset:(NSInteger)offset count:(NSInteger)count;
|
|
2596
|
+
- (nonnull instancetype)replaceDataWithOffset:(NSInteger)offset count:(NSInteger)count with:(NSString * _Nonnull)s;
|
|
2597
|
+
- (nonnull instancetype)deleteDataWithRange:(NSRange)range;
|
|
2598
|
+
- (nonnull instancetype)replaceDataWithRange:(NSRange)range with:(NSString * _Nonnull)s;
|
|
2599
|
+
- (nonnull instancetype)initWithMason:(NSCMason * _Nonnull)doc children:(NSArray<MasonNode *> * _Nonnull)nodes SWIFT_UNAVAILABLE;
|
|
2600
|
+
@end
|
|
1849
2601
|
|
|
2602
|
+
@class NSAttributedString;
|
|
2603
|
+
@interface MasonTextNode (SWIFT_EXTENSION(Mason))
|
|
2604
|
+
/// Get attributed string representation of this text node
|
|
2605
|
+
- (NSAttributedString * _Nonnull)attributed SWIFT_WARN_UNUSED_RESULT;
|
|
2606
|
+
@end
|
|
2607
|
+
|
|
2608
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextType, "MasonTextType", open) {
|
|
2609
|
+
MasonTextTypeNone = 0,
|
|
2610
|
+
MasonTextTypeP = 1,
|
|
2611
|
+
MasonTextTypeSpan = 2,
|
|
2612
|
+
MasonTextTypeCode = 3,
|
|
2613
|
+
MasonTextTypeH1 = 4,
|
|
2614
|
+
MasonTextTypeH2 = 5,
|
|
2615
|
+
MasonTextTypeH3 = 6,
|
|
2616
|
+
MasonTextTypeH4 = 7,
|
|
2617
|
+
MasonTextTypeH5 = 8,
|
|
2618
|
+
MasonTextTypeH6 = 9,
|
|
2619
|
+
MasonTextTypeLi = 10,
|
|
2620
|
+
MasonTextTypeBlockquote = 11,
|
|
2621
|
+
MasonTextTypeB = 12,
|
|
2622
|
+
MasonTextTypePre = 13,
|
|
2623
|
+
};
|
|
1850
2624
|
|
|
1851
2625
|
SWIFT_CLASS_NAMED("MasonUIView")
|
|
1852
|
-
@interface MasonUIView : UIView
|
|
2626
|
+
@interface MasonUIView : UIView <MasonElementObjc>
|
|
2627
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
2628
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
1853
2629
|
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
2630
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
1854
2631
|
- (void)markNodeDirty;
|
|
1855
2632
|
- (BOOL)isNodeDirty SWIFT_WARN_UNUSED_RESULT;
|
|
1856
|
-
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
1857
|
-
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
1858
2633
|
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
1859
2634
|
+ (MasonUIView * _Nonnull)createGridView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
1860
2635
|
+ (MasonUIView * _Nonnull)createFlexView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
1861
2636
|
+ (MasonUIView * _Nonnull)createBlockView:(NSCMason * _Nonnull)mason SWIFT_WARN_UNUSED_RESULT;
|
|
1862
|
-
@property (nonatomic, readonly) int64_t masonPtr;
|
|
1863
|
-
@property (nonatomic, readonly) int64_t masonNodePtr;
|
|
1864
|
-
@property (nonatomic, readonly, copy) NSString * _Nonnull masonPtrs;
|
|
1865
|
-
@property (nonatomic, strong) MasonStyle * _Nonnull style;
|
|
1866
2637
|
- (void)addView:(UIView * _Nonnull)view;
|
|
1867
2638
|
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
1868
|
-
- (void)syncStyle:(NSString * _Nonnull)state;
|
|
1869
2639
|
- (void)addSubviews:(NSArray<UIView *> * _Nonnull)views;
|
|
1870
2640
|
- (void)addSubviews:(NSArray<UIView *> * _Nonnull)views at:(NSInteger)index;
|
|
1871
|
-
- (void)configure:(SWIFT_NOESCAPE void (^ _Nonnull)(MasonNode * _Nonnull))block;
|
|
1872
2641
|
@property (nonatomic) BOOL inBatch;
|
|
1873
|
-
@property (nonatomic)
|
|
1874
|
-
@property (nonatomic) enum
|
|
1875
|
-
@property (nonatomic) enum
|
|
1876
|
-
@property (nonatomic) enum
|
|
1877
|
-
@property (nonatomic) enum
|
|
1878
|
-
@property (nonatomic) enum
|
|
1879
|
-
@property (nonatomic) enum
|
|
1880
|
-
@property (nonatomic) enum
|
|
1881
|
-
@property (nonatomic) enum
|
|
1882
|
-
@property (nonatomic) enum
|
|
1883
|
-
@property (nonatomic) enum
|
|
1884
|
-
@property (nonatomic) enum
|
|
1885
|
-
@property (nonatomic) enum
|
|
2642
|
+
@property (nonatomic, copy) NSString * _Nonnull background;
|
|
2643
|
+
@property (nonatomic) enum MasonDisplay display;
|
|
2644
|
+
@property (nonatomic) enum MasonPosition _position;
|
|
2645
|
+
@property (nonatomic) enum MasonDirection direction;
|
|
2646
|
+
@property (nonatomic) enum MasonFlexDirection flexDirection;
|
|
2647
|
+
@property (nonatomic) enum MasonFlexWrap flexWrap;
|
|
2648
|
+
@property (nonatomic) enum MasonOverflow overflowX;
|
|
2649
|
+
@property (nonatomic) enum MasonOverflow overflowY;
|
|
2650
|
+
@property (nonatomic) enum MasonAlignItems alignItems;
|
|
2651
|
+
@property (nonatomic) enum MasonAlignSelf alignSelf;
|
|
2652
|
+
@property (nonatomic) enum MasonAlignContent alignContent;
|
|
2653
|
+
@property (nonatomic) enum MasonJustifyItems justifyItems;
|
|
2654
|
+
@property (nonatomic) enum MasonJustifySelf justifySelf;
|
|
2655
|
+
@property (nonatomic) enum MasonJustifyContent justifyContent;
|
|
1886
2656
|
@property (nonatomic) float flexGrow;
|
|
1887
2657
|
@property (nonatomic) float flexShrink;
|
|
1888
2658
|
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull scrollBarWidthCompat;
|
|
1889
2659
|
@property (nonatomic, strong) MasonDimensionCompat * _Nonnull flexBasisCompat;
|
|
1890
2660
|
@property (nonatomic) float aspectRatio;
|
|
1891
|
-
@property (nonatomic, copy)
|
|
1892
|
-
@property (nonatomic, copy)
|
|
1893
|
-
@property (nonatomic)
|
|
1894
|
-
@property (nonatomic,
|
|
1895
|
-
@property (nonatomic
|
|
1896
|
-
@property (nonatomic,
|
|
1897
|
-
@property (nonatomic,
|
|
1898
|
-
@property (nonatomic,
|
|
1899
|
-
@property (nonatomic,
|
|
1900
|
-
@property (nonatomic, copy)
|
|
1901
|
-
@property (nonatomic, copy)
|
|
2661
|
+
@property (nonatomic, copy) NSString * _Nonnull gridArea;
|
|
2662
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateAreas;
|
|
2663
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoRows;
|
|
2664
|
+
@property (nonatomic, copy) NSString * _Nonnull gridAutoColumns;
|
|
2665
|
+
@property (nonatomic) enum MasonGridAutoFlowWrap gridAutoFlow;
|
|
2666
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumn;
|
|
2667
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnStart;
|
|
2668
|
+
@property (nonatomic, copy) NSString * _Nonnull gridColumnEnd;
|
|
2669
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRow;
|
|
2670
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowStart;
|
|
2671
|
+
@property (nonatomic, copy) NSString * _Nonnull gridRowEnd;
|
|
2672
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateRows;
|
|
2673
|
+
@property (nonatomic, copy) NSString * _Nonnull gridTemplateColumns;
|
|
1902
2674
|
- (void)setPadding:(float)left :(float)right :(float)top :(float)bottom;
|
|
1903
2675
|
- (MasonLengthPercentageRectCompat * _Nonnull)getPadding SWIFT_WARN_UNUSED_RESULT;
|
|
1904
2676
|
- (void)setPaddingLeft:(float)left :(NSInteger)type;
|
|
@@ -1909,12 +2681,12 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
1909
2681
|
- (MasonLengthPercentageCompat * _Nonnull)getPaddingRight SWIFT_WARN_UNUSED_RESULT;
|
|
1910
2682
|
- (MasonLengthPercentageCompat * _Nonnull)getPaddingTop SWIFT_WARN_UNUSED_RESULT;
|
|
1911
2683
|
- (MasonLengthPercentageCompat * _Nonnull)getPaddingBottom SWIFT_WARN_UNUSED_RESULT;
|
|
1912
|
-
- (void)
|
|
1913
|
-
- (MasonLengthPercentageRectCompat * _Nonnull)
|
|
1914
|
-
- (void)
|
|
1915
|
-
- (void)
|
|
1916
|
-
- (void)
|
|
1917
|
-
- (void)
|
|
2684
|
+
- (void)setBorderWidth:(float)left :(float)top :(float)right :(float)bottom;
|
|
2685
|
+
- (MasonLengthPercentageRectCompat * _Nonnull)getBorderWidth SWIFT_WARN_UNUSED_RESULT;
|
|
2686
|
+
- (void)setBorderLeftWidth:(float)left :(NSInteger)type;
|
|
2687
|
+
- (void)setBorderRightWidth:(float)right :(NSInteger)type;
|
|
2688
|
+
- (void)setBorderTopWidth:(float)top :(NSInteger)type;
|
|
2689
|
+
- (void)setBorderBottomWidth:(float)bottom :(NSInteger)type;
|
|
1918
2690
|
- (MasonLengthPercentageCompat * _Nonnull)getBorderLeft SWIFT_WARN_UNUSED_RESULT;
|
|
1919
2691
|
- (MasonLengthPercentageCompat * _Nonnull)getBorderRight SWIFT_WARN_UNUSED_RESULT;
|
|
1920
2692
|
- (MasonLengthPercentageCompat * _Nonnull)getBorderBottom SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -1967,6 +2739,11 @@ SWIFT_CLASS_NAMED("MasonUIView")
|
|
|
1967
2739
|
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
1968
2740
|
@end
|
|
1969
2741
|
|
|
2742
|
+
SWIFT_CLASS_NAMED("MasonVerticalAlignValue")
|
|
2743
|
+
@interface MasonVerticalAlignValue : NSObject
|
|
2744
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2745
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2746
|
+
@end
|
|
1970
2747
|
|
|
1971
2748
|
SWIFT_CLASS_NAMED("MaxSizing")
|
|
1972
2749
|
@interface MaxSizing : NSObject
|
|
@@ -1988,14 +2765,12 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MaxSizing *
|
|
|
1988
2765
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
1989
2766
|
@end
|
|
1990
2767
|
|
|
1991
|
-
|
|
1992
2768
|
SWIFT_CLASS_NAMED("MeasureOutput")
|
|
1993
2769
|
@interface MeasureOutput : NSObject
|
|
1994
2770
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
1995
2771
|
@end
|
|
1996
2772
|
|
|
1997
2773
|
@class MinSizing;
|
|
1998
|
-
|
|
1999
2774
|
SWIFT_CLASS_NAMED("MinMax")
|
|
2000
2775
|
@interface MinMax : NSObject
|
|
2001
2776
|
- (nonnull instancetype)init:(MinSizing * _Nonnull)min :(MaxSizing * _Nonnull)max OBJC_DESIGNATED_INITIALIZER;
|
|
@@ -2013,7 +2788,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinMax * _No
|
|
|
2013
2788
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2014
2789
|
@end
|
|
2015
2790
|
|
|
2016
|
-
|
|
2017
2791
|
SWIFT_CLASS_NAMED("MinSizing")
|
|
2018
2792
|
@interface MinSizing : NSObject
|
|
2019
2793
|
@property (nonatomic, readonly) float value;
|
|
@@ -2031,7 +2805,99 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MinSizing *
|
|
|
2031
2805
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2032
2806
|
@end
|
|
2033
2807
|
|
|
2808
|
+
SWIFT_CLASS_NAMED("NSCFontDescriptors")
|
|
2809
|
+
@interface NSCFontDescriptors : NSObject
|
|
2810
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
|
|
2811
|
+
- (void)update:(NSString * _Nonnull)value;
|
|
2812
|
+
- (void)setFontWeight:(NSString * _Nonnull)value;
|
|
2813
|
+
- (void)setFontStyle:(NSString * _Nonnull)value;
|
|
2814
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2815
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2816
|
+
@end
|
|
2034
2817
|
|
|
2818
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontDisplay, "NSCFontDisplay", open) {
|
|
2819
|
+
NSCFontDisplayAuto = 0,
|
|
2820
|
+
NSCFontDisplayBlock = 1,
|
|
2821
|
+
NSCFontDisplayFallback = 2,
|
|
2822
|
+
NSCFontDisplayOptional = 3,
|
|
2823
|
+
NSCFontDisplaySwap = 4,
|
|
2824
|
+
};
|
|
2825
|
+
|
|
2826
|
+
@class NSData;
|
|
2827
|
+
enum NSCFontFaceStatus : NSInteger;
|
|
2828
|
+
enum NSCFontWeight : NSInteger;
|
|
2829
|
+
SWIFT_CLASS_NAMED("NSCFontFace")
|
|
2830
|
+
@interface NSCFontFace : NSObject
|
|
2831
|
+
@property (nonatomic, readonly) CGFontRef _Nullable font;
|
|
2832
|
+
@property (nonatomic, readonly, strong) NSData * _Nullable fontData;
|
|
2833
|
+
- (void)updateDescriptorWithValue:(NSString * _Nonnull)value;
|
|
2834
|
+
+ (NSCFontFace * _Nullable)loadFromStyleWithStyle:(NSString * _Nonnull)style SWIFT_WARN_UNUSED_RESULT;
|
|
2835
|
+
+ (void)importFromRemoteWithUrl:(NSString * _Nonnull)url load:(BOOL)load callback:(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nullable, NSString * _Nullable))callback;
|
|
2836
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family OBJC_DESIGNATED_INITIALIZER;
|
|
2837
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family owner:(MasonStyle * _Nonnull)style OBJC_DESIGNATED_INITIALIZER;
|
|
2838
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family source:(NSString * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
|
|
2839
|
+
- (nonnull instancetype)initWithFamily:(NSString * _Nonnull)family data:(NSData * _Nonnull)source OBJC_DESIGNATED_INITIALIZER;
|
|
2840
|
+
- (nonnull instancetype)init:(NSString * _Nonnull)family :(NSString * _Nullable)source :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
|
|
2841
|
+
- (nonnull instancetype)init:(NSString * _Nonnull)family data:(NSData * _Nullable)data :(NSCFontDescriptors * _Nullable)descriptors OBJC_DESIGNATED_INITIALIZER;
|
|
2842
|
+
@property (nonatomic) enum NSCFontFaceStatus status;
|
|
2843
|
+
@property (nonatomic) enum NSCFontDisplay display;
|
|
2844
|
+
- (void)setFontDisplayWithValue:(NSString * _Nonnull)value;
|
|
2845
|
+
@property (nonatomic, copy) NSString * _Nonnull style;
|
|
2846
|
+
- (void)setFontStyleWithValue:(NSString * _Nonnull)value angle:(NSString * _Nullable)angle;
|
|
2847
|
+
@property (nonatomic) enum NSCFontWeight weight;
|
|
2848
|
+
- (void)setFontWeightWithValue:(NSString * _Nonnull)value;
|
|
2849
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull family;
|
|
2850
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull ascentOverride;
|
|
2851
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull descentOverride;
|
|
2852
|
+
- (void)load:(void (^ _Nonnull)(NSString * _Nullable))callback;
|
|
2853
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2854
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2855
|
+
@end
|
|
2856
|
+
|
|
2857
|
+
enum NSCFontFaceSetStatus : NSInteger;
|
|
2858
|
+
@class NSEnumerator;
|
|
2859
|
+
SWIFT_CLASS_NAMED("NSCFontFaceSet")
|
|
2860
|
+
@interface NSCFontFaceSet : NSObject
|
|
2861
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) NSCFontFaceSet * _Nonnull instance;)
|
|
2862
|
+
+ (NSCFontFaceSet * _Nonnull)instance SWIFT_WARN_UNUSED_RESULT;
|
|
2863
|
+
@property (nonatomic) enum NSCFontFaceSetStatus status;
|
|
2864
|
+
@property (nonatomic, copy) void (^ _Nullable onStatus)(enum NSCFontFaceSetStatus);
|
|
2865
|
+
- (NSEnumerator * _Nonnull)iter SWIFT_WARN_UNUSED_RESULT;
|
|
2866
|
+
- (NSArray * _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
|
|
2867
|
+
- (void)add:(NSCFontFace * _Nonnull)font;
|
|
2868
|
+
- (void)clear;
|
|
2869
|
+
- (void)delete:(NSCFontFace * _Nonnull)font;
|
|
2870
|
+
- (BOOL)check:(NSString * _Nonnull)font :(NSString * _Nullable)text SWIFT_WARN_UNUSED_RESULT;
|
|
2871
|
+
- (void)load:(NSString * _Nonnull)font :(NSString * _Nullable)text :(void (^ _Nonnull)(NSArray<NSCFontFace *> * _Nonnull, NSString * _Nullable))callback;
|
|
2872
|
+
@property (nonatomic, readonly) NSInteger size;
|
|
2873
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
2874
|
+
@end
|
|
2875
|
+
|
|
2876
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceSetStatus, "NSCFontFaceSetStatus", open) {
|
|
2877
|
+
NSCFontFaceSetStatusLoading = 0,
|
|
2878
|
+
NSCFontFaceSetStatusLoaded = 1,
|
|
2879
|
+
};
|
|
2880
|
+
|
|
2881
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontFaceStatus, "NSCFontFaceStatus", open) {
|
|
2882
|
+
NSCFontFaceStatusUnloaded = 0,
|
|
2883
|
+
NSCFontFaceStatusLoading = 1,
|
|
2884
|
+
NSCFontFaceStatusLoaded = 2,
|
|
2885
|
+
NSCFontFaceStatusError = 3,
|
|
2886
|
+
};
|
|
2887
|
+
|
|
2888
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, NSCFontWeight, "NSCFontWeight", open) {
|
|
2889
|
+
NSCFontWeightThin = 0,
|
|
2890
|
+
NSCFontWeightExtraLight = 1,
|
|
2891
|
+
NSCFontWeightLight = 2,
|
|
2892
|
+
NSCFontWeightNormal = 3,
|
|
2893
|
+
NSCFontWeightMedium = 4,
|
|
2894
|
+
NSCFontWeightSemiBold = 5,
|
|
2895
|
+
NSCFontWeightBold = 6,
|
|
2896
|
+
NSCFontWeightExtraBold = 7,
|
|
2897
|
+
NSCFontWeightBlack = 8,
|
|
2898
|
+
};
|
|
2899
|
+
|
|
2900
|
+
@class MasonScroll;
|
|
2035
2901
|
SWIFT_CLASS_NAMED("NSCMason")
|
|
2036
2902
|
@interface NSCMason : NSObject
|
|
2037
2903
|
@property (nonatomic, readonly) void * _Nullable nativePtr;
|
|
@@ -2039,54 +2905,208 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) NSCMason * _Nonnull sh
|
|
|
2039
2905
|
+ (NSCMason * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
|
|
2040
2906
|
+ (void)setShared:(NSCMason * _Nonnull)value;
|
|
2041
2907
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
2908
|
+
- (void)setDeviceScale:(float)value;
|
|
2042
2909
|
- (MasonNode * _Nonnull)nodeForView:(UIView * _Nonnull)view :(BOOL)isLeaf SWIFT_WARN_UNUSED_RESULT;
|
|
2910
|
+
- (void)configureStyleForView:(UIView * _Nonnull)view :(SWIFT_NOESCAPE void (^ _Nonnull)(MasonStyle * _Nonnull))block;
|
|
2911
|
+
- (MasonStyle * _Nonnull)styleForView:(UIView * _Nonnull)view SWIFT_WARN_UNUSED_RESULT;
|
|
2912
|
+
- (MasonLayout * _Nonnull)layoutForView:(UIView * _Nonnull)view;
|
|
2043
2913
|
- (void)clear;
|
|
2914
|
+
- (MasonDocument * _Nonnull)createDocument SWIFT_WARN_UNUSED_RESULT;
|
|
2044
2915
|
- (MasonUIView * _Nonnull)createView SWIFT_WARN_UNUSED_RESULT;
|
|
2045
2916
|
- (MasonText * _Nonnull)createTextView SWIFT_WARN_UNUSED_RESULT;
|
|
2917
|
+
- (MasonTextNode * _Nonnull)createTextNode:(NSString * _Nonnull)data SWIFT_WARN_UNUSED_RESULT;
|
|
2918
|
+
- (MasonText * _Nonnull)createTextViewWithType:(enum MasonTextType)type SWIFT_WARN_UNUSED_RESULT;
|
|
2919
|
+
- (MasonImg * _Nonnull)createImageView SWIFT_WARN_UNUSED_RESULT;
|
|
2920
|
+
- (MasonScroll * _Nonnull)createScrollView SWIFT_WARN_UNUSED_RESULT;
|
|
2921
|
+
- (MasonButton * _Nonnull)createButton SWIFT_WARN_UNUSED_RESULT;
|
|
2046
2922
|
- (MasonNode * _Nonnull)createNode SWIFT_WARN_UNUSED_RESULT;
|
|
2047
2923
|
- (void)printTree:(MasonNode * _Nonnull)node;
|
|
2048
2924
|
- (MasonNode * _Nonnull)createTextNode SWIFT_WARN_UNUSED_RESULT;
|
|
2925
|
+
- (MasonNode * _Nonnull)createImageNode SWIFT_WARN_UNUSED_RESULT;
|
|
2049
2926
|
@end
|
|
2050
2927
|
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2928
|
+
@interface NSObject (SWIFT_EXTENSION(Mason))
|
|
2929
|
+
- (void)mason_syncStyle:(NSString * _Nonnull)state :(NSString * _Nonnull)textState;
|
|
2930
|
+
- (void)mason_addView:(UIView * _Nonnull)view;
|
|
2931
|
+
- (void)mason_addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
2932
|
+
- (void)mason_markNodeDirty;
|
|
2933
|
+
- (BOOL)mason_isNodeDirty SWIFT_WARN_UNUSED_RESULT;
|
|
2934
|
+
- (void)mason_configure:(SWIFT_NOESCAPE void (^ _Nonnull)(MasonStyle * _Nonnull))block;
|
|
2935
|
+
- (MasonLayout * _Nonnull)mason_layout;
|
|
2936
|
+
- (void)mason_compute;
|
|
2937
|
+
- (void)mason_computeWithWidth:(float)width height:(float)height;
|
|
2938
|
+
- (void)mason_computeMaxContent;
|
|
2939
|
+
- (void)mason_computeMinContent;
|
|
2940
|
+
- (void)mason_computeWithSize:(float)width :(float)height;
|
|
2941
|
+
- (void)mason_computeWithViewSize;
|
|
2942
|
+
- (void)mason_computeWithViewSizeWithLayout:(BOOL)layout;
|
|
2943
|
+
- (void)mason_computeWithMaxContent;
|
|
2944
|
+
- (void)mason_computeWithMinContent;
|
|
2945
|
+
- (void)mason_attachAndApply;
|
|
2946
|
+
- (void)mason_requestLayout;
|
|
2947
|
+
- (void)mason_invalidateLayout;
|
|
2948
|
+
- (void)mason_append:(id <MasonElementObjc> _Nonnull)element;
|
|
2949
|
+
- (void)mason_appendWithText:(NSString * _Nonnull)text;
|
|
2950
|
+
- (void)mason_appendWithNode:(MasonNode * _Nonnull)node;
|
|
2951
|
+
- (void)mason_appendWithTexts:(NSArray<NSString *> * _Nonnull)texts;
|
|
2952
|
+
- (void)mason_appendWithElements:(NSArray<id <MasonElementObjc>> * _Nonnull)elements;
|
|
2953
|
+
- (void)mason_appendWithNodes:(NSArray<MasonNode *> * _Nonnull)nodes;
|
|
2954
|
+
- (void)mason_prepend:(id <MasonElementObjc> _Nonnull)element;
|
|
2955
|
+
- (void)mason_prependWithText:(NSString * _Nonnull)text;
|
|
2956
|
+
- (void)mason_prependWithNode:(MasonNode * _Nonnull)node;
|
|
2957
|
+
- (void)mason_prependWithTexts:(NSArray<NSString *> * _Nonnull)texts;
|
|
2958
|
+
- (void)mason_prependWithElements:(NSArray<id <MasonElementObjc>> * _Nonnull)elements;
|
|
2959
|
+
- (void)mason_prependWithNodes:(NSArray<MasonNode *> * _Nonnull)nodes;
|
|
2960
|
+
- (void)mason_addChildAtText:(NSString * _Nonnull)text :(NSInteger)index;
|
|
2961
|
+
- (void)mason_addChildAtElement:(id <MasonElementObjc> _Nonnull)element :(NSInteger)index;
|
|
2962
|
+
- (void)mason_addChildAtNode:(MasonNode * _Nonnull)node :(NSInteger)index;
|
|
2963
|
+
- (void)mason_replaceChildAtText:(NSString * _Nonnull)text :(NSInteger)index;
|
|
2964
|
+
- (void)mason_replaceChildAtElement:(id <MasonElementObjc> _Nonnull)element :(NSInteger)index;
|
|
2965
|
+
- (void)mason_replaceChildAtNode:(MasonNode * _Nonnull)node :(NSInteger)index;
|
|
2966
|
+
@end
|
|
2967
|
+
|
|
2968
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonObjectFit, "ObjectFit", open) {
|
|
2969
|
+
MasonObjectFitContain = 0,
|
|
2970
|
+
MasonObjectFitCover = 1,
|
|
2971
|
+
MasonObjectFitFill = 2,
|
|
2972
|
+
MasonObjectFitNone = 3,
|
|
2973
|
+
MasonObjectFitScaleDown = 4,
|
|
2056
2974
|
};
|
|
2057
2975
|
|
|
2058
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
2059
|
-
|
|
2060
|
-
|
|
2976
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonOverflow, "Overflow", open) {
|
|
2977
|
+
MasonOverflowVisible = 0,
|
|
2978
|
+
MasonOverflowHidden = 1,
|
|
2979
|
+
MasonOverflowScroll = 2,
|
|
2980
|
+
MasonOverflowClip = 3,
|
|
2981
|
+
MasonOverflowAuto = 4,
|
|
2061
2982
|
};
|
|
2062
2983
|
|
|
2063
|
-
typedef SWIFT_ENUM_NAMED(NSInteger,
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
TextTransformUppercase = 2,
|
|
2067
|
-
TextTransformLowercase = 3,
|
|
2068
|
-
TextTransformFullWidth = 4,
|
|
2069
|
-
TextTransformFullSizeKana = 5,
|
|
2070
|
-
TextTransformMathAuto = 6,
|
|
2984
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonPosition, "Position", open) {
|
|
2985
|
+
MasonPositionRelative = 0,
|
|
2986
|
+
MasonPositionAbsolute = 1,
|
|
2071
2987
|
};
|
|
2072
2988
|
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2989
|
+
SWIFT_CLASS_NAMED("Scroll")
|
|
2990
|
+
@interface MasonScroll : UIScrollView <MasonElementObjc, UIScrollViewDelegate>
|
|
2991
|
+
@property (nonatomic, readonly, strong) MasonNode * _Nonnull node;
|
|
2992
|
+
@property (nonatomic, readonly, strong) NSCMason * _Nonnull mason;
|
|
2993
|
+
@property (nonatomic, readonly, strong) UIView * _Nonnull uiView;
|
|
2994
|
+
@property (nonatomic, readonly, strong) MasonStyle * _Nonnull style;
|
|
2995
|
+
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
|
|
2996
|
+
- (void)scrollViewWillBeginDragging:(UIScrollView * _Nonnull)scrollView;
|
|
2997
|
+
- (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
|
|
2998
|
+
- (void)addView:(UIView * _Nonnull)view;
|
|
2999
|
+
- (void)addView:(UIView * _Nonnull)view at:(NSInteger)at;
|
|
3000
|
+
- (void)setSize:(float)width :(float)height;
|
|
3001
|
+
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
|
|
3002
|
+
@end
|
|
3003
|
+
|
|
3004
|
+
SWIFT_CLASS_NAMED("SwiftHelpers")
|
|
3005
|
+
@interface MasonSwiftHelpers : NSObject
|
|
3006
|
+
+ (void)markNodeDirty:(id <MasonElementObjc> _Nonnull)element;
|
|
3007
|
+
+ (BOOL)isNodeDirty:(id <MasonElementObjc> _Nonnull)element SWIFT_WARN_UNUSED_RESULT;
|
|
3008
|
+
+ (void)configure:(id <MasonElementObjc> _Nonnull)element :(SWIFT_NOESCAPE void (^ _Nonnull)(MasonStyle * _Nonnull))block;
|
|
3009
|
+
+ (MasonLayout * _Nonnull)layout:(id <MasonElementObjc> _Nonnull)element;
|
|
3010
|
+
+ (void)compute:(id <MasonElementObjc> _Nonnull)element;
|
|
3011
|
+
+ (void)compute:(id <MasonElementObjc> _Nonnull)element :(float)width :(float)height;
|
|
3012
|
+
+ (void)computeMaxContent:(id <MasonElementObjc> _Nonnull)element;
|
|
3013
|
+
+ (void)computeMinContent:(id <MasonElementObjc> _Nonnull)element;
|
|
3014
|
+
+ (void)computeWithSize:(id <MasonElementObjc> _Nonnull)element :(float)width :(float)height;
|
|
3015
|
+
+ (void)computeWithViewSize:(id <MasonElementObjc> _Nonnull)element;
|
|
3016
|
+
+ (void)computeWithViewSize:(id <MasonElementObjc> _Nonnull)element layout:(BOOL)layout;
|
|
3017
|
+
+ (void)computeWithMaxContent:(id <MasonElementObjc> _Nonnull)element;
|
|
3018
|
+
+ (void)computeWithMinContent:(id <MasonElementObjc> _Nonnull)element;
|
|
3019
|
+
+ (void)attachAndApply:(id <MasonElementObjc> _Nonnull)element;
|
|
3020
|
+
+ (void)requestLayout:(id <MasonElementObjc> _Nonnull)element;
|
|
3021
|
+
+ (void)append:(id <MasonElementObjc> _Nonnull)parent :(id <MasonElementObjc> _Nonnull)element;
|
|
3022
|
+
+ (void)append:(id <MasonElementObjc> _Nonnull)parent text:(NSString * _Nonnull)text;
|
|
3023
|
+
+ (void)append:(id <MasonElementObjc> _Nonnull)parent node:(MasonNode * _Nonnull)node;
|
|
3024
|
+
+ (void)append:(id <MasonElementObjc> _Nonnull)parent texts:(NSArray<NSString *> * _Nonnull)texts;
|
|
3025
|
+
+ (void)append:(id <MasonElementObjc> _Nonnull)parent elements:(NSArray<id <MasonElementObjc>> * _Nonnull)elements;
|
|
3026
|
+
+ (void)append:(id <MasonElementObjc> _Nonnull)parent nodes:(NSArray<MasonNode *> * _Nonnull)nodes;
|
|
3027
|
+
+ (void)prepend:(id <MasonElementObjc> _Nonnull)parent :(id <MasonElementObjc> _Nonnull)element;
|
|
3028
|
+
+ (void)prepend:(id <MasonElementObjc> _Nonnull)parent string:(NSString * _Nonnull)string;
|
|
3029
|
+
+ (void)prepend:(id <MasonElementObjc> _Nonnull)parent node:(MasonNode * _Nonnull)node;
|
|
3030
|
+
+ (void)prepend:(id <MasonElementObjc> _Nonnull)parent strings:(NSArray<NSString *> * _Nonnull)strings;
|
|
3031
|
+
+ (void)prepend:(id <MasonElementObjc> _Nonnull)parent elements:(NSArray<id <MasonElementObjc>> * _Nonnull)elements;
|
|
3032
|
+
+ (void)prepend:(id <MasonElementObjc> _Nonnull)parent nodes:(NSArray<MasonNode *> * _Nonnull)nodes;
|
|
3033
|
+
+ (void)addChildAt:(id <MasonElementObjc> _Nonnull)parent text:(NSString * _Nonnull)text :(NSInteger)index;
|
|
3034
|
+
+ (void)addChildAt:(id <MasonElementObjc> _Nonnull)parent element:(id <MasonElementObjc> _Nonnull)element :(NSInteger)index;
|
|
3035
|
+
+ (void)addChildAt:(id <MasonElementObjc> _Nonnull)parent node:(MasonNode * _Nonnull)node :(NSInteger)index;
|
|
3036
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
3037
|
+
@end
|
|
3038
|
+
|
|
3039
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextAlign, "TextAlign", open) {
|
|
3040
|
+
MasonTextAlignAuto = 0,
|
|
3041
|
+
MasonTextAlignLeft = 1,
|
|
3042
|
+
MasonTextAlignRight = 2,
|
|
3043
|
+
MasonTextAlignCenter = 3,
|
|
3044
|
+
MasonTextAlignJustify = 4,
|
|
3045
|
+
MasonTextAlignStart = 5,
|
|
3046
|
+
MasonTextAlignEnd = 6,
|
|
3047
|
+
};
|
|
3048
|
+
|
|
3049
|
+
SWIFT_CLASS_NAMED("TextEngine")
|
|
3050
|
+
@interface MasonTextEngine : NSObject
|
|
3051
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
3052
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
3053
|
+
@end
|
|
3054
|
+
|
|
3055
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextJustify, "TextJustify", open) {
|
|
3056
|
+
MasonTextJustifyNone = 0,
|
|
3057
|
+
MasonTextJustifyAuto = 1,
|
|
3058
|
+
MasonTextJustifyInterWord = 2,
|
|
3059
|
+
MasonTextJustifyInterCharacter = 3,
|
|
3060
|
+
MasonTextJustifyDistribute = 4,
|
|
2077
3061
|
};
|
|
2078
3062
|
|
|
3063
|
+
SWIFT_CLASS_NAMED("TextOverflowCompat")
|
|
3064
|
+
@interface MasonTextOverflowCompat : NSObject
|
|
3065
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) MasonTextOverflowCompat * _Nonnull Clip;)
|
|
3066
|
+
+ (MasonTextOverflowCompat * _Nonnull)Clip SWIFT_WARN_UNUSED_RESULT;
|
|
3067
|
+
+ (MasonTextOverflowCompat * _Nonnull)Ellipse:(NSString * _Nullable)value SWIFT_WARN_UNUSED_RESULT;
|
|
3068
|
+
+ (MasonTextOverflowCompat * _Nonnull)Custom:(NSString * _Nonnull)value SWIFT_WARN_UNUSED_RESULT;
|
|
3069
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
|
|
3070
|
+
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
3071
|
+
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
3072
|
+
@end
|
|
3073
|
+
|
|
3074
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextTransform, "TextTransform", open) {
|
|
3075
|
+
MasonTextTransformNone = 0,
|
|
3076
|
+
MasonTextTransformCapitalize = 1,
|
|
3077
|
+
MasonTextTransformUppercase = 2,
|
|
3078
|
+
MasonTextTransformLowercase = 3,
|
|
3079
|
+
MasonTextTransformFullWidth = 4,
|
|
3080
|
+
MasonTextTransformFullSizeKana = 5,
|
|
3081
|
+
MasonTextTransformMathAuto = 6,
|
|
3082
|
+
};
|
|
3083
|
+
|
|
3084
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonTextWrap, "TextWrap", open) {
|
|
3085
|
+
MasonTextWrapWrap = 0,
|
|
3086
|
+
MasonTextWrapNoWrap = 1,
|
|
3087
|
+
MasonTextWrapBalance = 2,
|
|
3088
|
+
MasonTextWrapPretty = 3,
|
|
3089
|
+
};
|
|
2079
3090
|
|
|
2080
3091
|
SWIFT_CLASS_NAMED("TrackSizingFunction")
|
|
2081
3092
|
@interface TrackSizingFunction : NSObject
|
|
2082
3093
|
@property (nonatomic, readonly) BOOL isRepeating;
|
|
2083
3094
|
@property (nonatomic, readonly) id _Nullable value;
|
|
2084
3095
|
+ (TrackSizingFunction * _Nonnull)Single:(MinMax * _Nonnull)value SWIFT_WARN_UNUSED_RESULT;
|
|
2085
|
-
+ (TrackSizingFunction * _Nonnull)AutoRepeat:(
|
|
3096
|
+
+ (TrackSizingFunction * _Nonnull)AutoRepeat:(MasonGridTrackRepetition * _Nonnull)gridTrackRepetition :(NSArray<MinMax *> * _Nonnull)value SWIFT_WARN_UNUSED_RESULT;
|
|
3097
|
+
@property (nonatomic, readonly, copy) NSString * _Nonnull cssValue;
|
|
2086
3098
|
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
|
|
2087
3099
|
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
|
|
2088
3100
|
@end
|
|
2089
3101
|
|
|
3102
|
+
typedef SWIFT_ENUM_NAMED(NSInteger, MasonWhiteSpace, "WhiteSpace", open) {
|
|
3103
|
+
MasonWhiteSpaceNormal = 0,
|
|
3104
|
+
MasonWhiteSpacePre = 1,
|
|
3105
|
+
MasonWhiteSpacePreWrap = 2,
|
|
3106
|
+
MasonWhiteSpacePreLine = 3,
|
|
3107
|
+
MasonWhiteSpaceNoWrap = 4,
|
|
3108
|
+
MasonWhiteSpaceBreakSpaces = 5,
|
|
3109
|
+
};
|
|
2090
3110
|
|
|
2091
3111
|
#endif
|
|
2092
3112
|
#if __has_attribute(external_source_symbol)
|