react-native-nitro-input 0.1.0 → 0.3.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/CHANGELOG.md +343 -3
- package/NitroInput.podspec +4 -4
- package/README.md +420 -53
- package/android/CMakeLists.txt +9 -3
- package/android/gradle.properties +1 -1
- package/android/src/main/cpp/JOutlineGeometry.hpp +1 -1
- package/android/src/main/cpp/JReflowEngine.cpp +132 -0
- package/android/src/main/cpp/{JMorphEngine.hpp → JReflowEngine.hpp} +7 -7
- package/android/src/main/cpp/JRollingEngine.cpp +223 -0
- package/android/src/main/cpp/JRollingEngine.hpp +68 -0
- package/android/src/main/cpp/cpp-adapter.cpp +4 -2
- package/android/src/main/java/com/margelo/nitro/nitroinput/AmountFormatter.kt +1 -1
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroInputView.kt +21 -1
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroNumberFormatPlatform.kt +209 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroNumberView.kt +496 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroInputPackage.kt +2 -1
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroInputView.kt +107 -26
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroNumberView.kt +1881 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/{MorphEngine.kt → ReflowEngine.kt} +2 -2
- package/android/src/main/java/com/margelo/nitro/nitroinput/RollingEngine.kt +60 -0
- package/cpp/AmountFormatter.cpp +5 -0
- package/cpp/AmountFormatter.hpp +10 -2
- package/cpp/{MorphEngine.cpp → ReflowEngine.cpp} +52 -47
- package/cpp/{MorphEngine.hpp → ReflowEngine.hpp} +12 -4
- package/cpp/RollingEngine.cpp +1234 -0
- package/cpp/RollingEngine.hpp +475 -0
- package/cpp/SwiftNonCopyable.hpp +22 -0
- package/cpp/numberformat/HybridNitroNumberFormat.cpp +498 -0
- package/cpp/numberformat/HybridNitroNumberFormat.hpp +74 -0
- package/cpp/numberformat/HybridNitroNumberFormatFactory.hpp +11 -0
- package/cpp/numberformat/NumberFormatCore.cpp +629 -0
- package/cpp/numberformat/NumberFormatCore.hpp +154 -0
- package/cpp/numberformat/NumberFormatProbe.cpp +354 -0
- package/cpp/numberformat/NumberFormatProbe.hpp +63 -0
- package/cpp/worklets/NitroInputWorkletsBridge.cpp +3 -3
- package/cpp/worklets/NitroInputWorkletsBridge.hpp +1 -1
- package/ios/{HybridMorphInputView.swift → HybridNitroInputView.swift} +16 -1
- package/ios/HybridNitroNumberFormatPlatform.swift +348 -0
- package/ios/HybridNitroNumberView.swift +458 -0
- package/ios/NitroInputView.swift +148 -64
- package/ios/NitroNumberView.swift +2074 -0
- package/lib/commonjs/nitrogen/generated/shared/json/NitroInputViewConfig.json +5 -0
- package/lib/commonjs/nitrogen/generated/shared/json/NitroNumberViewConfig.json +61 -0
- package/lib/commonjs/src/NitroInput.js +27 -56
- package/lib/commonjs/src/NitroNumber.js +141 -0
- package/lib/commonjs/src/NumberFormat.js +525 -0
- package/lib/commonjs/src/formatProps.js +48 -0
- package/lib/commonjs/src/index.js +6 -3
- package/lib/commonjs/src/specs/NitroNumber.nitro.js +2 -0
- package/lib/commonjs/src/specs/NumberFormat.nitro.js +2 -0
- package/lib/commonjs/src/styleHelpers.js +36 -0
- package/lib/module/nitrogen/generated/shared/json/NitroInputViewConfig.json +5 -0
- package/lib/module/nitrogen/generated/shared/json/NitroNumberViewConfig.json +61 -0
- package/lib/module/src/NitroInput.js +18 -47
- package/lib/module/src/NitroNumber.js +102 -0
- package/lib/module/src/NumberFormat.js +521 -0
- package/lib/module/src/formatProps.js +45 -0
- package/lib/module/src/index.js +2 -1
- package/lib/module/src/specs/NitroNumber.nitro.js +1 -0
- package/lib/module/src/specs/NumberFormat.nitro.js +1 -0
- package/lib/module/src/styleHelpers.js +32 -0
- package/lib/typescript/src/NitroInput.d.ts +50 -21
- package/lib/typescript/src/NitroNumber.d.ts +246 -0
- package/lib/typescript/src/NumberFormat.d.ts +47 -0
- package/lib/typescript/src/formatProps.d.ts +21 -0
- package/lib/typescript/src/index.d.ts +5 -2
- package/lib/typescript/src/specs/NitroInput.nitro.d.ts +19 -9
- package/lib/typescript/src/specs/NitroNumber.nitro.d.ts +250 -0
- package/lib/typescript/src/specs/NumberFormat.nitro.d.ts +139 -0
- package/lib/typescript/src/styleHelpers.d.ts +3 -0
- package/nitro.json +26 -0
- package/nitrogen/generated/android/NitroInput+autolinking.cmake +10 -0
- package/nitrogen/generated/android/NitroInputOnLoad.cpp +48 -0
- package/nitrogen/generated/android/c++/JFunc_void.hpp +75 -0
- package/nitrogen/generated/android/c++/JFunc_void_double_double.hpp +10 -10
- package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.cpp +45 -0
- package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.hpp +10 -0
- package/nitrogen/generated/android/c++/JHybridNitroNumberFormatPlatformSpec.cpp +118 -0
- package/nitrogen/generated/android/c++/JHybridNitroNumberFormatPlatformSpec.hpp +64 -0
- package/nitrogen/generated/android/c++/JHybridNitroNumberViewSpec.cpp +590 -0
- package/nitrogen/generated/android/c++/JHybridNitroNumberViewSpec.hpp +168 -0
- package/nitrogen/generated/android/c++/JHybridNitroPlatformNumberFormatterSpec.cpp +65 -0
- package/nitrogen/generated/android/c++/JHybridNitroPlatformNumberFormatterSpec.hpp +64 -0
- package/nitrogen/generated/android/c++/JNitroNumberAffixAlign.hpp +64 -0
- package/nitrogen/generated/android/c++/JNitroNumberDirection.hpp +64 -0
- package/nitrogen/generated/android/c++/JNitroNumberEasing.hpp +67 -0
- package/nitrogen/generated/android/c++/JNitroNumberRevealStyle.hpp +58 -0
- package/nitrogen/generated/android/c++/JNitroNumberTextAlign.hpp +64 -0
- package/nitrogen/generated/android/c++/JNitroNumberTransition.hpp +61 -0
- package/nitrogen/generated/android/c++/JNumberFormatCompactDisplay.hpp +58 -0
- package/nitrogen/generated/android/c++/JNumberFormatCurrencyDisplay.hpp +64 -0
- package/nitrogen/generated/android/c++/JNumberFormatCurrencySign.hpp +58 -0
- package/nitrogen/generated/android/c++/JNumberFormatNotation.hpp +64 -0
- package/nitrogen/generated/android/c++/JNumberFormatPlatformOptions.hpp +161 -0
- package/nitrogen/generated/android/c++/JNumberFormatPlatformSymbols.hpp +89 -0
- package/nitrogen/generated/android/c++/JNumberFormatRoundingMode.hpp +79 -0
- package/nitrogen/generated/android/c++/JNumberFormatSignDisplay.hpp +67 -0
- package/nitrogen/generated/android/c++/JNumberFormatStyle.hpp +64 -0
- package/nitrogen/generated/android/c++/JNumberFormatUnitDisplay.hpp +61 -0
- package/nitrogen/generated/android/c++/views/JHybridNitroInputViewStateUpdater.cpp +25 -0
- package/nitrogen/generated/android/c++/views/JHybridNitroNumberViewStateUpdater.cpp +329 -0
- package/nitrogen/generated/android/c++/views/JHybridNitroNumberViewStateUpdater.hpp +54 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/Func_void.kt +78 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/Func_void_double_double.kt +9 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroInputViewSpec.kt +30 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroNumberFormatPlatformSpec.kt +60 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroNumberViewSpec.kt +399 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroPlatformNumberFormatterSpec.kt +62 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroNumberAffixAlign.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroNumberDirection.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroNumberEasing.kt +26 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroNumberRevealStyle.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroNumberTextAlign.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroNumberTransition.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatCompactDisplay.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatCurrencyDisplay.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatCurrencySign.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatNotation.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatPlatformOptions.kt +136 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatPlatformSymbols.kt +91 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatRoundingMode.kt +30 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatSignDisplay.kt +26 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatStyle.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatUnitDisplay.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/views/HybridNitroNumberViewManager.kt +96 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/views/HybridNitroNumberViewStateUpdater.kt +23 -0
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.cpp +59 -0
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.hpp +311 -0
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Umbrella.hpp +63 -0
- package/nitrogen/generated/ios/NitroInputAutolinking.mm +26 -0
- package/nitrogen/generated/ios/NitroInputAutolinking.swift +24 -0
- package/nitrogen/generated/ios/c++/HybridNitroInputViewSpecSwift.hpp +30 -0
- package/nitrogen/generated/ios/c++/HybridNitroNumberFormatPlatformSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridNitroNumberFormatPlatformSpecSwift.hpp +122 -0
- package/nitrogen/generated/ios/c++/HybridNitroNumberViewSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridNitroNumberViewSpecSwift.hpp +474 -0
- package/nitrogen/generated/ios/c++/HybridNitroPlatformNumberFormatterSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridNitroPlatformNumberFormatterSpecSwift.hpp +94 -0
- package/nitrogen/generated/ios/c++/views/HybridNitroInputViewComponent.mm +30 -0
- package/nitrogen/generated/ios/c++/views/HybridNitroNumberViewComponent.mm +450 -0
- package/nitrogen/generated/ios/swift/Func_void.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_double_double.swift +5 -5
- package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec.swift +5 -0
- package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec_cxx.swift +55 -0
- package/nitrogen/generated/ios/swift/HybridNitroNumberFormatPlatformSpec.swift +56 -0
- package/nitrogen/generated/ios/swift/HybridNitroNumberFormatPlatformSpec_cxx.swift +159 -0
- package/nitrogen/generated/ios/swift/HybridNitroNumberViewSpec.swift +108 -0
- package/nitrogen/generated/ios/swift/HybridNitroNumberViewSpec_cxx.swift +1387 -0
- package/nitrogen/generated/ios/swift/HybridNitroPlatformNumberFormatterSpec.swift +56 -0
- package/nitrogen/generated/ios/swift/HybridNitroPlatformNumberFormatterSpec_cxx.swift +155 -0
- package/nitrogen/generated/ios/swift/NitroNumberAffixAlign.swift +48 -0
- package/nitrogen/generated/ios/swift/NitroNumberDirection.swift +48 -0
- package/nitrogen/generated/ios/swift/NitroNumberEasing.swift +52 -0
- package/nitrogen/generated/ios/swift/NitroNumberRevealStyle.swift +40 -0
- package/nitrogen/generated/ios/swift/NitroNumberTextAlign.swift +48 -0
- package/nitrogen/generated/ios/swift/NitroNumberTransition.swift +44 -0
- package/nitrogen/generated/ios/swift/NumberFormatCompactDisplay.swift +40 -0
- package/nitrogen/generated/ios/swift/NumberFormatCurrencyDisplay.swift +48 -0
- package/nitrogen/generated/ios/swift/NumberFormatCurrencySign.swift +40 -0
- package/nitrogen/generated/ios/swift/NumberFormatNotation.swift +48 -0
- package/nitrogen/generated/ios/swift/NumberFormatPlatformOptions.swift +159 -0
- package/nitrogen/generated/ios/swift/NumberFormatPlatformSymbols.swift +69 -0
- package/nitrogen/generated/ios/swift/NumberFormatRoundingMode.swift +68 -0
- package/nitrogen/generated/ios/swift/NumberFormatSignDisplay.swift +52 -0
- package/nitrogen/generated/ios/swift/NumberFormatStyle.swift +48 -0
- package/nitrogen/generated/ios/swift/NumberFormatUnitDisplay.swift +44 -0
- package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.cpp +10 -0
- package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.hpp +10 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberFormatFactorySpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberFormatFactorySpec.hpp +70 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberFormatPlatformSpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberFormatPlatformSpec.hpp +70 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberFormatSpec.cpp +23 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberFormatSpec.hpp +71 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberViewSpec.cpp +127 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberViewSpec.hpp +187 -0
- package/nitrogen/generated/shared/c++/HybridNitroPlatformNumberFormatterSpec.cpp +23 -0
- package/nitrogen/generated/shared/c++/HybridNitroPlatformNumberFormatterSpec.hpp +65 -0
- package/nitrogen/generated/shared/c++/NitroNumberAffixAlign.hpp +84 -0
- package/nitrogen/generated/shared/c++/NitroNumberDirection.hpp +84 -0
- package/nitrogen/generated/shared/c++/NitroNumberEasing.hpp +88 -0
- package/nitrogen/generated/shared/c++/NitroNumberRevealStyle.hpp +76 -0
- package/nitrogen/generated/shared/c++/NitroNumberTextAlign.hpp +84 -0
- package/nitrogen/generated/shared/c++/NitroNumberTransition.hpp +80 -0
- package/nitrogen/generated/shared/c++/NumberFormatCompactDisplay.hpp +76 -0
- package/nitrogen/generated/shared/c++/NumberFormatCurrencyDisplay.hpp +84 -0
- package/nitrogen/generated/shared/c++/NumberFormatCurrencySign.hpp +76 -0
- package/nitrogen/generated/shared/c++/NumberFormatGrouping.hpp +80 -0
- package/nitrogen/generated/shared/c++/NumberFormatNotation.hpp +84 -0
- package/nitrogen/generated/shared/c++/NumberFormatOptions.hpp +193 -0
- package/nitrogen/generated/shared/c++/NumberFormatPart.hpp +87 -0
- package/nitrogen/generated/shared/c++/NumberFormatPlatformOptions.hpp +176 -0
- package/nitrogen/generated/shared/c++/NumberFormatPlatformSymbols.hpp +115 -0
- package/nitrogen/generated/shared/c++/NumberFormatRoundingMode.hpp +104 -0
- package/nitrogen/generated/shared/c++/NumberFormatRoundingPriority.hpp +80 -0
- package/nitrogen/generated/shared/c++/NumberFormatSignDisplay.hpp +88 -0
- package/nitrogen/generated/shared/c++/NumberFormatStyle.hpp +84 -0
- package/nitrogen/generated/shared/c++/NumberFormatTrailingZeroDisplay.hpp +76 -0
- package/nitrogen/generated/shared/c++/NumberFormatUnitDisplay.hpp +80 -0
- package/nitrogen/generated/shared/c++/ResolvedNumberFormatOptions.hpp +197 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.cpp +10 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.hpp +15 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroNumberViewComponent.cpp +136 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroNumberViewComponent.hpp +245 -0
- package/nitrogen/generated/shared/json/NitroInputViewConfig.json +5 -0
- package/nitrogen/generated/shared/json/NitroNumberViewConfig.json +61 -0
- package/package.json +15 -7
- package/src/NitroInput.tsx +79 -67
- package/src/NitroNumber.tsx +531 -0
- package/src/NumberFormat.ts +563 -0
- package/src/formatProps.ts +59 -0
- package/src/index.ts +38 -6
- package/src/specs/NitroInput.nitro.ts +19 -9
- package/src/specs/NitroNumber.nitro.ts +271 -0
- package/src/specs/NumberFormat.nitro.ts +145 -0
- package/src/styleHelpers.ts +32 -0
- package/android/src/main/cpp/JMorphEngine.cpp +0 -132
- package/lib/commonjs/src/MorphInput.js +0 -42
- package/lib/module/src/MorphInput.js +0 -6
- package/lib/typescript/src/MorphInput.d.ts +0 -18
- package/src/MorphInput.tsx +0 -30
|
@@ -0,0 +1,1387 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridNitroNumberViewSpec_cxx.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
import NitroModules
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* A class implementation that bridges HybridNitroNumberViewSpec over to C++.
|
|
12
|
+
* In C++, we cannot use Swift protocols - so we need to wrap it in a class to make it strongly defined.
|
|
13
|
+
*
|
|
14
|
+
* Also, some Swift types need to be bridged with special handling:
|
|
15
|
+
* - Enums need to be wrapped in Structs, otherwise they cannot be accessed bi-directionally (Swift bug: https://github.com/swiftlang/swift/issues/75330)
|
|
16
|
+
* - Other HybridObjects need to be wrapped/unwrapped from the Swift TCxx wrapper
|
|
17
|
+
* - Throwing methods need to be wrapped with a Result<T, Error> type, as exceptions cannot be propagated to C++
|
|
18
|
+
*/
|
|
19
|
+
open class HybridNitroNumberViewSpec_cxx {
|
|
20
|
+
/**
|
|
21
|
+
* The Swift <> C++ bridge's namespace (`margelo::nitro::nitroinput::bridge::swift`)
|
|
22
|
+
* from `NitroInput-Swift-Cxx-Bridge.hpp`.
|
|
23
|
+
* This contains specialized C++ templates, and C++ helper functions that can be accessed from Swift.
|
|
24
|
+
*/
|
|
25
|
+
public typealias bridge = margelo.nitro.nitroinput.bridge.swift
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Holds an instance of the `HybridNitroNumberViewSpec` Swift protocol.
|
|
29
|
+
*/
|
|
30
|
+
private var __implementation: any HybridNitroNumberViewSpec
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Holds a weak pointer to the C++ class that wraps the Swift class.
|
|
34
|
+
*/
|
|
35
|
+
private var __cxxPart: bridge.std__weak_ptr_HybridNitroNumberViewSpec_
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Create a new `HybridNitroNumberViewSpec_cxx` that wraps the given `HybridNitroNumberViewSpec`.
|
|
39
|
+
* All properties and methods bridge to C++ types.
|
|
40
|
+
*/
|
|
41
|
+
public init(_ implementation: any HybridNitroNumberViewSpec) {
|
|
42
|
+
self.__implementation = implementation
|
|
43
|
+
self.__cxxPart = .init()
|
|
44
|
+
/* no base class */
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Get the actual `HybridNitroNumberViewSpec` instance this class wraps.
|
|
49
|
+
*/
|
|
50
|
+
@inline(__always)
|
|
51
|
+
public func getHybridNitroNumberViewSpec() -> any HybridNitroNumberViewSpec {
|
|
52
|
+
return __implementation
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Casts this instance to a retained unsafe raw pointer.
|
|
57
|
+
* This acquires one additional strong reference on the object!
|
|
58
|
+
*/
|
|
59
|
+
public func toUnsafe() -> UnsafeMutableRawPointer {
|
|
60
|
+
return Unmanaged.passRetained(self).toOpaque()
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Casts an unsafe pointer to a `HybridNitroNumberViewSpec_cxx`.
|
|
65
|
+
* The pointer has to be a retained opaque `Unmanaged<HybridNitroNumberViewSpec_cxx>`.
|
|
66
|
+
* This removes one strong reference from the object!
|
|
67
|
+
*/
|
|
68
|
+
public class func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> HybridNitroNumberViewSpec_cxx {
|
|
69
|
+
return Unmanaged<HybridNitroNumberViewSpec_cxx>.fromOpaque(pointer).takeRetainedValue()
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Gets (or creates) the C++ part of this Hybrid Object.
|
|
74
|
+
* The C++ part is a `std::shared_ptr<HybridNitroNumberViewSpec>`.
|
|
75
|
+
*/
|
|
76
|
+
public func getCxxPart() -> bridge.std__shared_ptr_HybridNitroNumberViewSpec_ {
|
|
77
|
+
let cachedCxxPart = self.__cxxPart.lock()
|
|
78
|
+
if Bool(fromCxx: cachedCxxPart) {
|
|
79
|
+
return cachedCxxPart
|
|
80
|
+
} else {
|
|
81
|
+
let newCxxPart = bridge.create_std__shared_ptr_HybridNitroNumberViewSpec_(self.toUnsafe())
|
|
82
|
+
__cxxPart = bridge.weakify_std__shared_ptr_HybridNitroNumberViewSpec_(newCxxPart)
|
|
83
|
+
return newCxxPart
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Get the memory size of the Swift class (plus size of any other allocations)
|
|
91
|
+
* so the JS VM can properly track it and garbage-collect the JS object if needed.
|
|
92
|
+
*/
|
|
93
|
+
@inline(__always)
|
|
94
|
+
public var memorySize: Int {
|
|
95
|
+
return MemoryHelper.getSizeOf(self.__implementation) + self.__implementation.memorySize
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Compares this object with the given [other] object for reference equality.
|
|
100
|
+
*/
|
|
101
|
+
@inline(__always)
|
|
102
|
+
public func equals(other: HybridNitroNumberViewSpec_cxx) -> Bool {
|
|
103
|
+
return self.__implementation === other.__implementation
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Call dispose() on the Swift class.
|
|
108
|
+
* This _may_ be called manually from JS.
|
|
109
|
+
*/
|
|
110
|
+
@inline(__always)
|
|
111
|
+
public func dispose() {
|
|
112
|
+
self.__implementation.dispose()
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Call toString() on the Swift class.
|
|
117
|
+
*/
|
|
118
|
+
@inline(__always)
|
|
119
|
+
public func toString() -> String {
|
|
120
|
+
return self.__implementation.toString()
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Properties
|
|
124
|
+
public final var value: Double {
|
|
125
|
+
@inline(__always)
|
|
126
|
+
get {
|
|
127
|
+
return self.__implementation.value
|
|
128
|
+
}
|
|
129
|
+
@inline(__always)
|
|
130
|
+
set {
|
|
131
|
+
self.__implementation.value = newValue
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
public final var fractionDigits: bridge.std__optional_double_ {
|
|
136
|
+
@inline(__always)
|
|
137
|
+
get {
|
|
138
|
+
return { () -> bridge.std__optional_double_ in
|
|
139
|
+
if let __unwrappedValue = self.__implementation.fractionDigits {
|
|
140
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
141
|
+
} else {
|
|
142
|
+
return .init()
|
|
143
|
+
}
|
|
144
|
+
}()
|
|
145
|
+
}
|
|
146
|
+
@inline(__always)
|
|
147
|
+
set {
|
|
148
|
+
self.__implementation.fractionDigits = { () -> Double? in
|
|
149
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
150
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
151
|
+
return __unwrapped
|
|
152
|
+
} else {
|
|
153
|
+
return nil
|
|
154
|
+
}
|
|
155
|
+
}()
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
public final var minimumIntegerDigits: bridge.std__optional_double_ {
|
|
160
|
+
@inline(__always)
|
|
161
|
+
get {
|
|
162
|
+
return { () -> bridge.std__optional_double_ in
|
|
163
|
+
if let __unwrappedValue = self.__implementation.minimumIntegerDigits {
|
|
164
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
165
|
+
} else {
|
|
166
|
+
return .init()
|
|
167
|
+
}
|
|
168
|
+
}()
|
|
169
|
+
}
|
|
170
|
+
@inline(__always)
|
|
171
|
+
set {
|
|
172
|
+
self.__implementation.minimumIntegerDigits = { () -> Double? in
|
|
173
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
174
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
175
|
+
return __unwrapped
|
|
176
|
+
} else {
|
|
177
|
+
return nil
|
|
178
|
+
}
|
|
179
|
+
}()
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
public final var groupingSeparator: bridge.std__optional_std__string_ {
|
|
184
|
+
@inline(__always)
|
|
185
|
+
get {
|
|
186
|
+
return { () -> bridge.std__optional_std__string_ in
|
|
187
|
+
if let __unwrappedValue = self.__implementation.groupingSeparator {
|
|
188
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
189
|
+
} else {
|
|
190
|
+
return .init()
|
|
191
|
+
}
|
|
192
|
+
}()
|
|
193
|
+
}
|
|
194
|
+
@inline(__always)
|
|
195
|
+
set {
|
|
196
|
+
self.__implementation.groupingSeparator = { () -> String? in
|
|
197
|
+
if bridge.has_value_std__optional_std__string_(newValue) {
|
|
198
|
+
let __unwrapped = bridge.get_std__optional_std__string_(newValue)
|
|
199
|
+
return String(__unwrapped)
|
|
200
|
+
} else {
|
|
201
|
+
return nil
|
|
202
|
+
}
|
|
203
|
+
}()
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
public final var decimalSeparator: bridge.std__optional_std__string_ {
|
|
208
|
+
@inline(__always)
|
|
209
|
+
get {
|
|
210
|
+
return { () -> bridge.std__optional_std__string_ in
|
|
211
|
+
if let __unwrappedValue = self.__implementation.decimalSeparator {
|
|
212
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
213
|
+
} else {
|
|
214
|
+
return .init()
|
|
215
|
+
}
|
|
216
|
+
}()
|
|
217
|
+
}
|
|
218
|
+
@inline(__always)
|
|
219
|
+
set {
|
|
220
|
+
self.__implementation.decimalSeparator = { () -> String? in
|
|
221
|
+
if bridge.has_value_std__optional_std__string_(newValue) {
|
|
222
|
+
let __unwrapped = bridge.get_std__optional_std__string_(newValue)
|
|
223
|
+
return String(__unwrapped)
|
|
224
|
+
} else {
|
|
225
|
+
return nil
|
|
226
|
+
}
|
|
227
|
+
}()
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
public final var prefix: bridge.std__optional_std__string_ {
|
|
232
|
+
@inline(__always)
|
|
233
|
+
get {
|
|
234
|
+
return { () -> bridge.std__optional_std__string_ in
|
|
235
|
+
if let __unwrappedValue = self.__implementation.prefix {
|
|
236
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
237
|
+
} else {
|
|
238
|
+
return .init()
|
|
239
|
+
}
|
|
240
|
+
}()
|
|
241
|
+
}
|
|
242
|
+
@inline(__always)
|
|
243
|
+
set {
|
|
244
|
+
self.__implementation.prefix = { () -> String? in
|
|
245
|
+
if bridge.has_value_std__optional_std__string_(newValue) {
|
|
246
|
+
let __unwrapped = bridge.get_std__optional_std__string_(newValue)
|
|
247
|
+
return String(__unwrapped)
|
|
248
|
+
} else {
|
|
249
|
+
return nil
|
|
250
|
+
}
|
|
251
|
+
}()
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
public final var suffix: bridge.std__optional_std__string_ {
|
|
256
|
+
@inline(__always)
|
|
257
|
+
get {
|
|
258
|
+
return { () -> bridge.std__optional_std__string_ in
|
|
259
|
+
if let __unwrappedValue = self.__implementation.suffix {
|
|
260
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
261
|
+
} else {
|
|
262
|
+
return .init()
|
|
263
|
+
}
|
|
264
|
+
}()
|
|
265
|
+
}
|
|
266
|
+
@inline(__always)
|
|
267
|
+
set {
|
|
268
|
+
self.__implementation.suffix = { () -> String? in
|
|
269
|
+
if bridge.has_value_std__optional_std__string_(newValue) {
|
|
270
|
+
let __unwrapped = bridge.get_std__optional_std__string_(newValue)
|
|
271
|
+
return String(__unwrapped)
|
|
272
|
+
} else {
|
|
273
|
+
return nil
|
|
274
|
+
}
|
|
275
|
+
}()
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
public final var duration: bridge.std__optional_double_ {
|
|
280
|
+
@inline(__always)
|
|
281
|
+
get {
|
|
282
|
+
return { () -> bridge.std__optional_double_ in
|
|
283
|
+
if let __unwrappedValue = self.__implementation.duration {
|
|
284
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
285
|
+
} else {
|
|
286
|
+
return .init()
|
|
287
|
+
}
|
|
288
|
+
}()
|
|
289
|
+
}
|
|
290
|
+
@inline(__always)
|
|
291
|
+
set {
|
|
292
|
+
self.__implementation.duration = { () -> Double? in
|
|
293
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
294
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
295
|
+
return __unwrapped
|
|
296
|
+
} else {
|
|
297
|
+
return nil
|
|
298
|
+
}
|
|
299
|
+
}()
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
public final var easing: bridge.std__optional_NitroNumberEasing_ {
|
|
304
|
+
@inline(__always)
|
|
305
|
+
get {
|
|
306
|
+
return { () -> bridge.std__optional_NitroNumberEasing_ in
|
|
307
|
+
if let __unwrappedValue = self.__implementation.easing {
|
|
308
|
+
return bridge.create_std__optional_NitroNumberEasing_(__unwrappedValue)
|
|
309
|
+
} else {
|
|
310
|
+
return .init()
|
|
311
|
+
}
|
|
312
|
+
}()
|
|
313
|
+
}
|
|
314
|
+
@inline(__always)
|
|
315
|
+
set {
|
|
316
|
+
self.__implementation.easing = newValue.value
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
public final var bounce: bridge.std__optional_double_ {
|
|
321
|
+
@inline(__always)
|
|
322
|
+
get {
|
|
323
|
+
return { () -> bridge.std__optional_double_ in
|
|
324
|
+
if let __unwrappedValue = self.__implementation.bounce {
|
|
325
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
326
|
+
} else {
|
|
327
|
+
return .init()
|
|
328
|
+
}
|
|
329
|
+
}()
|
|
330
|
+
}
|
|
331
|
+
@inline(__always)
|
|
332
|
+
set {
|
|
333
|
+
self.__implementation.bounce = { () -> Double? in
|
|
334
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
335
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
336
|
+
return __unwrapped
|
|
337
|
+
} else {
|
|
338
|
+
return nil
|
|
339
|
+
}
|
|
340
|
+
}()
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
public final var stagger: bridge.std__optional_double_ {
|
|
345
|
+
@inline(__always)
|
|
346
|
+
get {
|
|
347
|
+
return { () -> bridge.std__optional_double_ in
|
|
348
|
+
if let __unwrappedValue = self.__implementation.stagger {
|
|
349
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
350
|
+
} else {
|
|
351
|
+
return .init()
|
|
352
|
+
}
|
|
353
|
+
}()
|
|
354
|
+
}
|
|
355
|
+
@inline(__always)
|
|
356
|
+
set {
|
|
357
|
+
self.__implementation.stagger = { () -> Double? in
|
|
358
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
359
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
360
|
+
return __unwrapped
|
|
361
|
+
} else {
|
|
362
|
+
return nil
|
|
363
|
+
}
|
|
364
|
+
}()
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
public final var transition: bridge.std__optional_NitroNumberTransition_ {
|
|
369
|
+
@inline(__always)
|
|
370
|
+
get {
|
|
371
|
+
return { () -> bridge.std__optional_NitroNumberTransition_ in
|
|
372
|
+
if let __unwrappedValue = self.__implementation.transition {
|
|
373
|
+
return bridge.create_std__optional_NitroNumberTransition_(__unwrappedValue)
|
|
374
|
+
} else {
|
|
375
|
+
return .init()
|
|
376
|
+
}
|
|
377
|
+
}()
|
|
378
|
+
}
|
|
379
|
+
@inline(__always)
|
|
380
|
+
set {
|
|
381
|
+
self.__implementation.transition = newValue.value
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
public final var flashUpColor: bridge.std__optional_double_ {
|
|
386
|
+
@inline(__always)
|
|
387
|
+
get {
|
|
388
|
+
return { () -> bridge.std__optional_double_ in
|
|
389
|
+
if let __unwrappedValue = self.__implementation.flashUpColor {
|
|
390
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
391
|
+
} else {
|
|
392
|
+
return .init()
|
|
393
|
+
}
|
|
394
|
+
}()
|
|
395
|
+
}
|
|
396
|
+
@inline(__always)
|
|
397
|
+
set {
|
|
398
|
+
self.__implementation.flashUpColor = { () -> Double? in
|
|
399
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
400
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
401
|
+
return __unwrapped
|
|
402
|
+
} else {
|
|
403
|
+
return nil
|
|
404
|
+
}
|
|
405
|
+
}()
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
public final var flashDownColor: bridge.std__optional_double_ {
|
|
410
|
+
@inline(__always)
|
|
411
|
+
get {
|
|
412
|
+
return { () -> bridge.std__optional_double_ in
|
|
413
|
+
if let __unwrappedValue = self.__implementation.flashDownColor {
|
|
414
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
415
|
+
} else {
|
|
416
|
+
return .init()
|
|
417
|
+
}
|
|
418
|
+
}()
|
|
419
|
+
}
|
|
420
|
+
@inline(__always)
|
|
421
|
+
set {
|
|
422
|
+
self.__implementation.flashDownColor = { () -> Double? in
|
|
423
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
424
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
425
|
+
return __unwrapped
|
|
426
|
+
} else {
|
|
427
|
+
return nil
|
|
428
|
+
}
|
|
429
|
+
}()
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
public final var flashDuration: bridge.std__optional_double_ {
|
|
434
|
+
@inline(__always)
|
|
435
|
+
get {
|
|
436
|
+
return { () -> bridge.std__optional_double_ in
|
|
437
|
+
if let __unwrappedValue = self.__implementation.flashDuration {
|
|
438
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
439
|
+
} else {
|
|
440
|
+
return .init()
|
|
441
|
+
}
|
|
442
|
+
}()
|
|
443
|
+
}
|
|
444
|
+
@inline(__always)
|
|
445
|
+
set {
|
|
446
|
+
self.__implementation.flashDuration = { () -> Double? in
|
|
447
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
448
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
449
|
+
return __unwrapped
|
|
450
|
+
} else {
|
|
451
|
+
return nil
|
|
452
|
+
}
|
|
453
|
+
}()
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
public final var popOnChange: bridge.std__optional_double_ {
|
|
458
|
+
@inline(__always)
|
|
459
|
+
get {
|
|
460
|
+
return { () -> bridge.std__optional_double_ in
|
|
461
|
+
if let __unwrappedValue = self.__implementation.popOnChange {
|
|
462
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
463
|
+
} else {
|
|
464
|
+
return .init()
|
|
465
|
+
}
|
|
466
|
+
}()
|
|
467
|
+
}
|
|
468
|
+
@inline(__always)
|
|
469
|
+
set {
|
|
470
|
+
self.__implementation.popOnChange = { () -> Double? in
|
|
471
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
472
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
473
|
+
return __unwrapped
|
|
474
|
+
} else {
|
|
475
|
+
return nil
|
|
476
|
+
}
|
|
477
|
+
}()
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
public final var rollDirection: bridge.std__optional_NitroNumberDirection_ {
|
|
482
|
+
@inline(__always)
|
|
483
|
+
get {
|
|
484
|
+
return { () -> bridge.std__optional_NitroNumberDirection_ in
|
|
485
|
+
if let __unwrappedValue = self.__implementation.rollDirection {
|
|
486
|
+
return bridge.create_std__optional_NitroNumberDirection_(__unwrappedValue)
|
|
487
|
+
} else {
|
|
488
|
+
return .init()
|
|
489
|
+
}
|
|
490
|
+
}()
|
|
491
|
+
}
|
|
492
|
+
@inline(__always)
|
|
493
|
+
set {
|
|
494
|
+
self.__implementation.rollDirection = newValue.value
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
public final var revealState: bridge.std__optional_double_ {
|
|
499
|
+
@inline(__always)
|
|
500
|
+
get {
|
|
501
|
+
return { () -> bridge.std__optional_double_ in
|
|
502
|
+
if let __unwrappedValue = self.__implementation.revealState {
|
|
503
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
504
|
+
} else {
|
|
505
|
+
return .init()
|
|
506
|
+
}
|
|
507
|
+
}()
|
|
508
|
+
}
|
|
509
|
+
@inline(__always)
|
|
510
|
+
set {
|
|
511
|
+
self.__implementation.revealState = { () -> Double? in
|
|
512
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
513
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
514
|
+
return __unwrapped
|
|
515
|
+
} else {
|
|
516
|
+
return nil
|
|
517
|
+
}
|
|
518
|
+
}()
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
public final var revealStyle: bridge.std__optional_NitroNumberRevealStyle_ {
|
|
523
|
+
@inline(__always)
|
|
524
|
+
get {
|
|
525
|
+
return { () -> bridge.std__optional_NitroNumberRevealStyle_ in
|
|
526
|
+
if let __unwrappedValue = self.__implementation.revealStyle {
|
|
527
|
+
return bridge.create_std__optional_NitroNumberRevealStyle_(__unwrappedValue)
|
|
528
|
+
} else {
|
|
529
|
+
return .init()
|
|
530
|
+
}
|
|
531
|
+
}()
|
|
532
|
+
}
|
|
533
|
+
@inline(__always)
|
|
534
|
+
set {
|
|
535
|
+
self.__implementation.revealStyle = newValue.value
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
public final var revealDuration: bridge.std__optional_double_ {
|
|
540
|
+
@inline(__always)
|
|
541
|
+
get {
|
|
542
|
+
return { () -> bridge.std__optional_double_ in
|
|
543
|
+
if let __unwrappedValue = self.__implementation.revealDuration {
|
|
544
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
545
|
+
} else {
|
|
546
|
+
return .init()
|
|
547
|
+
}
|
|
548
|
+
}()
|
|
549
|
+
}
|
|
550
|
+
@inline(__always)
|
|
551
|
+
set {
|
|
552
|
+
self.__implementation.revealDuration = { () -> Double? in
|
|
553
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
554
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
555
|
+
return __unwrapped
|
|
556
|
+
} else {
|
|
557
|
+
return nil
|
|
558
|
+
}
|
|
559
|
+
}()
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
public final var revealBounce: bridge.std__optional_double_ {
|
|
564
|
+
@inline(__always)
|
|
565
|
+
get {
|
|
566
|
+
return { () -> bridge.std__optional_double_ in
|
|
567
|
+
if let __unwrappedValue = self.__implementation.revealBounce {
|
|
568
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
569
|
+
} else {
|
|
570
|
+
return .init()
|
|
571
|
+
}
|
|
572
|
+
}()
|
|
573
|
+
}
|
|
574
|
+
@inline(__always)
|
|
575
|
+
set {
|
|
576
|
+
self.__implementation.revealBounce = { () -> Double? in
|
|
577
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
578
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
579
|
+
return __unwrapped
|
|
580
|
+
} else {
|
|
581
|
+
return nil
|
|
582
|
+
}
|
|
583
|
+
}()
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
public final var revealGrow: bridge.std__optional_double_ {
|
|
588
|
+
@inline(__always)
|
|
589
|
+
get {
|
|
590
|
+
return { () -> bridge.std__optional_double_ in
|
|
591
|
+
if let __unwrappedValue = self.__implementation.revealGrow {
|
|
592
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
593
|
+
} else {
|
|
594
|
+
return .init()
|
|
595
|
+
}
|
|
596
|
+
}()
|
|
597
|
+
}
|
|
598
|
+
@inline(__always)
|
|
599
|
+
set {
|
|
600
|
+
self.__implementation.revealGrow = { () -> Double? in
|
|
601
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
602
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
603
|
+
return __unwrapped
|
|
604
|
+
} else {
|
|
605
|
+
return nil
|
|
606
|
+
}
|
|
607
|
+
}()
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
public final var revealStagger: bridge.std__optional_double_ {
|
|
612
|
+
@inline(__always)
|
|
613
|
+
get {
|
|
614
|
+
return { () -> bridge.std__optional_double_ in
|
|
615
|
+
if let __unwrappedValue = self.__implementation.revealStagger {
|
|
616
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
617
|
+
} else {
|
|
618
|
+
return .init()
|
|
619
|
+
}
|
|
620
|
+
}()
|
|
621
|
+
}
|
|
622
|
+
@inline(__always)
|
|
623
|
+
set {
|
|
624
|
+
self.__implementation.revealStagger = { () -> Double? in
|
|
625
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
626
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
627
|
+
return __unwrapped
|
|
628
|
+
} else {
|
|
629
|
+
return nil
|
|
630
|
+
}
|
|
631
|
+
}()
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
public final var revealMilestones: bridge.std__optional_std__vector_double__ {
|
|
636
|
+
@inline(__always)
|
|
637
|
+
get {
|
|
638
|
+
return { () -> bridge.std__optional_std__vector_double__ in
|
|
639
|
+
if let __unwrappedValue = self.__implementation.revealMilestones {
|
|
640
|
+
return bridge.create_std__optional_std__vector_double__({ () -> bridge.std__vector_double_ in
|
|
641
|
+
var __vector = bridge.create_std__vector_double_(__unwrappedValue.count)
|
|
642
|
+
for __item in __unwrappedValue {
|
|
643
|
+
__vector.push_back(__item)
|
|
644
|
+
}
|
|
645
|
+
return __vector
|
|
646
|
+
}())
|
|
647
|
+
} else {
|
|
648
|
+
return .init()
|
|
649
|
+
}
|
|
650
|
+
}()
|
|
651
|
+
}
|
|
652
|
+
@inline(__always)
|
|
653
|
+
set {
|
|
654
|
+
self.__implementation.revealMilestones = { () -> [Double]? in
|
|
655
|
+
if bridge.has_value_std__optional_std__vector_double__(newValue) {
|
|
656
|
+
let __unwrapped = bridge.get_std__optional_std__vector_double__(newValue)
|
|
657
|
+
return __unwrapped.map({ __item in __item })
|
|
658
|
+
} else {
|
|
659
|
+
return nil
|
|
660
|
+
}
|
|
661
|
+
}()
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
public final var revealMilestoneHold: bridge.std__optional_double_ {
|
|
666
|
+
@inline(__always)
|
|
667
|
+
get {
|
|
668
|
+
return { () -> bridge.std__optional_double_ in
|
|
669
|
+
if let __unwrappedValue = self.__implementation.revealMilestoneHold {
|
|
670
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
671
|
+
} else {
|
|
672
|
+
return .init()
|
|
673
|
+
}
|
|
674
|
+
}()
|
|
675
|
+
}
|
|
676
|
+
@inline(__always)
|
|
677
|
+
set {
|
|
678
|
+
self.__implementation.revealMilestoneHold = { () -> Double? in
|
|
679
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
680
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
681
|
+
return __unwrapped
|
|
682
|
+
} else {
|
|
683
|
+
return nil
|
|
684
|
+
}
|
|
685
|
+
}()
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
public final var loading: bridge.std__optional_bool_ {
|
|
690
|
+
@inline(__always)
|
|
691
|
+
get {
|
|
692
|
+
return { () -> bridge.std__optional_bool_ in
|
|
693
|
+
if let __unwrappedValue = self.__implementation.loading {
|
|
694
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
695
|
+
} else {
|
|
696
|
+
return .init()
|
|
697
|
+
}
|
|
698
|
+
}()
|
|
699
|
+
}
|
|
700
|
+
@inline(__always)
|
|
701
|
+
set {
|
|
702
|
+
self.__implementation.loading = { () -> Bool? in
|
|
703
|
+
if bridge.has_value_std__optional_bool_(newValue) {
|
|
704
|
+
let __unwrapped = bridge.get_std__optional_bool_(newValue)
|
|
705
|
+
return __unwrapped
|
|
706
|
+
} else {
|
|
707
|
+
return nil
|
|
708
|
+
}
|
|
709
|
+
}()
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
public final var shimmerColor: bridge.std__optional_double_ {
|
|
714
|
+
@inline(__always)
|
|
715
|
+
get {
|
|
716
|
+
return { () -> bridge.std__optional_double_ in
|
|
717
|
+
if let __unwrappedValue = self.__implementation.shimmerColor {
|
|
718
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
719
|
+
} else {
|
|
720
|
+
return .init()
|
|
721
|
+
}
|
|
722
|
+
}()
|
|
723
|
+
}
|
|
724
|
+
@inline(__always)
|
|
725
|
+
set {
|
|
726
|
+
self.__implementation.shimmerColor = { () -> Double? in
|
|
727
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
728
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
729
|
+
return __unwrapped
|
|
730
|
+
} else {
|
|
731
|
+
return nil
|
|
732
|
+
}
|
|
733
|
+
}()
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
public final var shimmerDuration: bridge.std__optional_double_ {
|
|
738
|
+
@inline(__always)
|
|
739
|
+
get {
|
|
740
|
+
return { () -> bridge.std__optional_double_ in
|
|
741
|
+
if let __unwrappedValue = self.__implementation.shimmerDuration {
|
|
742
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
743
|
+
} else {
|
|
744
|
+
return .init()
|
|
745
|
+
}
|
|
746
|
+
}()
|
|
747
|
+
}
|
|
748
|
+
@inline(__always)
|
|
749
|
+
set {
|
|
750
|
+
self.__implementation.shimmerDuration = { () -> Double? in
|
|
751
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
752
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
753
|
+
return __unwrapped
|
|
754
|
+
} else {
|
|
755
|
+
return nil
|
|
756
|
+
}
|
|
757
|
+
}()
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
public final var fontSize: bridge.std__optional_double_ {
|
|
762
|
+
@inline(__always)
|
|
763
|
+
get {
|
|
764
|
+
return { () -> bridge.std__optional_double_ in
|
|
765
|
+
if let __unwrappedValue = self.__implementation.fontSize {
|
|
766
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
767
|
+
} else {
|
|
768
|
+
return .init()
|
|
769
|
+
}
|
|
770
|
+
}()
|
|
771
|
+
}
|
|
772
|
+
@inline(__always)
|
|
773
|
+
set {
|
|
774
|
+
self.__implementation.fontSize = { () -> Double? in
|
|
775
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
776
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
777
|
+
return __unwrapped
|
|
778
|
+
} else {
|
|
779
|
+
return nil
|
|
780
|
+
}
|
|
781
|
+
}()
|
|
782
|
+
}
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
public final var prefixFontSize: bridge.std__optional_double_ {
|
|
786
|
+
@inline(__always)
|
|
787
|
+
get {
|
|
788
|
+
return { () -> bridge.std__optional_double_ in
|
|
789
|
+
if let __unwrappedValue = self.__implementation.prefixFontSize {
|
|
790
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
791
|
+
} else {
|
|
792
|
+
return .init()
|
|
793
|
+
}
|
|
794
|
+
}()
|
|
795
|
+
}
|
|
796
|
+
@inline(__always)
|
|
797
|
+
set {
|
|
798
|
+
self.__implementation.prefixFontSize = { () -> Double? in
|
|
799
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
800
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
801
|
+
return __unwrapped
|
|
802
|
+
} else {
|
|
803
|
+
return nil
|
|
804
|
+
}
|
|
805
|
+
}()
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
public final var suffixFontSize: bridge.std__optional_double_ {
|
|
810
|
+
@inline(__always)
|
|
811
|
+
get {
|
|
812
|
+
return { () -> bridge.std__optional_double_ in
|
|
813
|
+
if let __unwrappedValue = self.__implementation.suffixFontSize {
|
|
814
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
815
|
+
} else {
|
|
816
|
+
return .init()
|
|
817
|
+
}
|
|
818
|
+
}()
|
|
819
|
+
}
|
|
820
|
+
@inline(__always)
|
|
821
|
+
set {
|
|
822
|
+
self.__implementation.suffixFontSize = { () -> Double? in
|
|
823
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
824
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
825
|
+
return __unwrapped
|
|
826
|
+
} else {
|
|
827
|
+
return nil
|
|
828
|
+
}
|
|
829
|
+
}()
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
public final var affixAlign: bridge.std__optional_NitroNumberAffixAlign_ {
|
|
834
|
+
@inline(__always)
|
|
835
|
+
get {
|
|
836
|
+
return { () -> bridge.std__optional_NitroNumberAffixAlign_ in
|
|
837
|
+
if let __unwrappedValue = self.__implementation.affixAlign {
|
|
838
|
+
return bridge.create_std__optional_NitroNumberAffixAlign_(__unwrappedValue)
|
|
839
|
+
} else {
|
|
840
|
+
return .init()
|
|
841
|
+
}
|
|
842
|
+
}()
|
|
843
|
+
}
|
|
844
|
+
@inline(__always)
|
|
845
|
+
set {
|
|
846
|
+
self.__implementation.affixAlign = newValue.value
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
public final var prefixAlign: bridge.std__optional_NitroNumberAffixAlign_ {
|
|
851
|
+
@inline(__always)
|
|
852
|
+
get {
|
|
853
|
+
return { () -> bridge.std__optional_NitroNumberAffixAlign_ in
|
|
854
|
+
if let __unwrappedValue = self.__implementation.prefixAlign {
|
|
855
|
+
return bridge.create_std__optional_NitroNumberAffixAlign_(__unwrappedValue)
|
|
856
|
+
} else {
|
|
857
|
+
return .init()
|
|
858
|
+
}
|
|
859
|
+
}()
|
|
860
|
+
}
|
|
861
|
+
@inline(__always)
|
|
862
|
+
set {
|
|
863
|
+
self.__implementation.prefixAlign = newValue.value
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
public final var suffixAlign: bridge.std__optional_NitroNumberAffixAlign_ {
|
|
868
|
+
@inline(__always)
|
|
869
|
+
get {
|
|
870
|
+
return { () -> bridge.std__optional_NitroNumberAffixAlign_ in
|
|
871
|
+
if let __unwrappedValue = self.__implementation.suffixAlign {
|
|
872
|
+
return bridge.create_std__optional_NitroNumberAffixAlign_(__unwrappedValue)
|
|
873
|
+
} else {
|
|
874
|
+
return .init()
|
|
875
|
+
}
|
|
876
|
+
}()
|
|
877
|
+
}
|
|
878
|
+
@inline(__always)
|
|
879
|
+
set {
|
|
880
|
+
self.__implementation.suffixAlign = newValue.value
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
public final var letterSpacing: bridge.std__optional_double_ {
|
|
885
|
+
@inline(__always)
|
|
886
|
+
get {
|
|
887
|
+
return { () -> bridge.std__optional_double_ in
|
|
888
|
+
if let __unwrappedValue = self.__implementation.letterSpacing {
|
|
889
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
890
|
+
} else {
|
|
891
|
+
return .init()
|
|
892
|
+
}
|
|
893
|
+
}()
|
|
894
|
+
}
|
|
895
|
+
@inline(__always)
|
|
896
|
+
set {
|
|
897
|
+
self.__implementation.letterSpacing = { () -> Double? in
|
|
898
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
899
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
900
|
+
return __unwrapped
|
|
901
|
+
} else {
|
|
902
|
+
return nil
|
|
903
|
+
}
|
|
904
|
+
}()
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
public final var prefixSpacing: bridge.std__optional_double_ {
|
|
909
|
+
@inline(__always)
|
|
910
|
+
get {
|
|
911
|
+
return { () -> bridge.std__optional_double_ in
|
|
912
|
+
if let __unwrappedValue = self.__implementation.prefixSpacing {
|
|
913
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
914
|
+
} else {
|
|
915
|
+
return .init()
|
|
916
|
+
}
|
|
917
|
+
}()
|
|
918
|
+
}
|
|
919
|
+
@inline(__always)
|
|
920
|
+
set {
|
|
921
|
+
self.__implementation.prefixSpacing = { () -> Double? in
|
|
922
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
923
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
924
|
+
return __unwrapped
|
|
925
|
+
} else {
|
|
926
|
+
return nil
|
|
927
|
+
}
|
|
928
|
+
}()
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
public final var suffixSpacing: bridge.std__optional_double_ {
|
|
933
|
+
@inline(__always)
|
|
934
|
+
get {
|
|
935
|
+
return { () -> bridge.std__optional_double_ in
|
|
936
|
+
if let __unwrappedValue = self.__implementation.suffixSpacing {
|
|
937
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
938
|
+
} else {
|
|
939
|
+
return .init()
|
|
940
|
+
}
|
|
941
|
+
}()
|
|
942
|
+
}
|
|
943
|
+
@inline(__always)
|
|
944
|
+
set {
|
|
945
|
+
self.__implementation.suffixSpacing = { () -> Double? in
|
|
946
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
947
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
948
|
+
return __unwrapped
|
|
949
|
+
} else {
|
|
950
|
+
return nil
|
|
951
|
+
}
|
|
952
|
+
}()
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
public final var prefixOffset: bridge.std__optional_double_ {
|
|
957
|
+
@inline(__always)
|
|
958
|
+
get {
|
|
959
|
+
return { () -> bridge.std__optional_double_ in
|
|
960
|
+
if let __unwrappedValue = self.__implementation.prefixOffset {
|
|
961
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
962
|
+
} else {
|
|
963
|
+
return .init()
|
|
964
|
+
}
|
|
965
|
+
}()
|
|
966
|
+
}
|
|
967
|
+
@inline(__always)
|
|
968
|
+
set {
|
|
969
|
+
self.__implementation.prefixOffset = { () -> Double? in
|
|
970
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
971
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
972
|
+
return __unwrapped
|
|
973
|
+
} else {
|
|
974
|
+
return nil
|
|
975
|
+
}
|
|
976
|
+
}()
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
public final var suffixOffset: bridge.std__optional_double_ {
|
|
981
|
+
@inline(__always)
|
|
982
|
+
get {
|
|
983
|
+
return { () -> bridge.std__optional_double_ in
|
|
984
|
+
if let __unwrappedValue = self.__implementation.suffixOffset {
|
|
985
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
986
|
+
} else {
|
|
987
|
+
return .init()
|
|
988
|
+
}
|
|
989
|
+
}()
|
|
990
|
+
}
|
|
991
|
+
@inline(__always)
|
|
992
|
+
set {
|
|
993
|
+
self.__implementation.suffixOffset = { () -> Double? in
|
|
994
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
995
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
996
|
+
return __unwrapped
|
|
997
|
+
} else {
|
|
998
|
+
return nil
|
|
999
|
+
}
|
|
1000
|
+
}()
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
public final var tabularNums: bridge.std__optional_bool_ {
|
|
1005
|
+
@inline(__always)
|
|
1006
|
+
get {
|
|
1007
|
+
return { () -> bridge.std__optional_bool_ in
|
|
1008
|
+
if let __unwrappedValue = self.__implementation.tabularNums {
|
|
1009
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
1010
|
+
} else {
|
|
1011
|
+
return .init()
|
|
1012
|
+
}
|
|
1013
|
+
}()
|
|
1014
|
+
}
|
|
1015
|
+
@inline(__always)
|
|
1016
|
+
set {
|
|
1017
|
+
self.__implementation.tabularNums = { () -> Bool? in
|
|
1018
|
+
if bridge.has_value_std__optional_bool_(newValue) {
|
|
1019
|
+
let __unwrapped = bridge.get_std__optional_bool_(newValue)
|
|
1020
|
+
return __unwrapped
|
|
1021
|
+
} else {
|
|
1022
|
+
return nil
|
|
1023
|
+
}
|
|
1024
|
+
}()
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
public final var adjustsFontSizeToFit: bridge.std__optional_bool_ {
|
|
1029
|
+
@inline(__always)
|
|
1030
|
+
get {
|
|
1031
|
+
return { () -> bridge.std__optional_bool_ in
|
|
1032
|
+
if let __unwrappedValue = self.__implementation.adjustsFontSizeToFit {
|
|
1033
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
1034
|
+
} else {
|
|
1035
|
+
return .init()
|
|
1036
|
+
}
|
|
1037
|
+
}()
|
|
1038
|
+
}
|
|
1039
|
+
@inline(__always)
|
|
1040
|
+
set {
|
|
1041
|
+
self.__implementation.adjustsFontSizeToFit = { () -> Bool? in
|
|
1042
|
+
if bridge.has_value_std__optional_bool_(newValue) {
|
|
1043
|
+
let __unwrapped = bridge.get_std__optional_bool_(newValue)
|
|
1044
|
+
return __unwrapped
|
|
1045
|
+
} else {
|
|
1046
|
+
return nil
|
|
1047
|
+
}
|
|
1048
|
+
}()
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
public final var minimumFontScale: bridge.std__optional_double_ {
|
|
1053
|
+
@inline(__always)
|
|
1054
|
+
get {
|
|
1055
|
+
return { () -> bridge.std__optional_double_ in
|
|
1056
|
+
if let __unwrappedValue = self.__implementation.minimumFontScale {
|
|
1057
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
1058
|
+
} else {
|
|
1059
|
+
return .init()
|
|
1060
|
+
}
|
|
1061
|
+
}()
|
|
1062
|
+
}
|
|
1063
|
+
@inline(__always)
|
|
1064
|
+
set {
|
|
1065
|
+
self.__implementation.minimumFontScale = { () -> Double? in
|
|
1066
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
1067
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
1068
|
+
return __unwrapped
|
|
1069
|
+
} else {
|
|
1070
|
+
return nil
|
|
1071
|
+
}
|
|
1072
|
+
}()
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
public final var allowFontScaling: bridge.std__optional_bool_ {
|
|
1077
|
+
@inline(__always)
|
|
1078
|
+
get {
|
|
1079
|
+
return { () -> bridge.std__optional_bool_ in
|
|
1080
|
+
if let __unwrappedValue = self.__implementation.allowFontScaling {
|
|
1081
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
1082
|
+
} else {
|
|
1083
|
+
return .init()
|
|
1084
|
+
}
|
|
1085
|
+
}()
|
|
1086
|
+
}
|
|
1087
|
+
@inline(__always)
|
|
1088
|
+
set {
|
|
1089
|
+
self.__implementation.allowFontScaling = { () -> Bool? in
|
|
1090
|
+
if bridge.has_value_std__optional_bool_(newValue) {
|
|
1091
|
+
let __unwrapped = bridge.get_std__optional_bool_(newValue)
|
|
1092
|
+
return __unwrapped
|
|
1093
|
+
} else {
|
|
1094
|
+
return nil
|
|
1095
|
+
}
|
|
1096
|
+
}()
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
public final var maxFontSizeMultiplier: bridge.std__optional_double_ {
|
|
1101
|
+
@inline(__always)
|
|
1102
|
+
get {
|
|
1103
|
+
return { () -> bridge.std__optional_double_ in
|
|
1104
|
+
if let __unwrappedValue = self.__implementation.maxFontSizeMultiplier {
|
|
1105
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
1106
|
+
} else {
|
|
1107
|
+
return .init()
|
|
1108
|
+
}
|
|
1109
|
+
}()
|
|
1110
|
+
}
|
|
1111
|
+
@inline(__always)
|
|
1112
|
+
set {
|
|
1113
|
+
self.__implementation.maxFontSizeMultiplier = { () -> Double? in
|
|
1114
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
1115
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
1116
|
+
return __unwrapped
|
|
1117
|
+
} else {
|
|
1118
|
+
return nil
|
|
1119
|
+
}
|
|
1120
|
+
}()
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
public final var fontWeight: bridge.std__optional_double_ {
|
|
1125
|
+
@inline(__always)
|
|
1126
|
+
get {
|
|
1127
|
+
return { () -> bridge.std__optional_double_ in
|
|
1128
|
+
if let __unwrappedValue = self.__implementation.fontWeight {
|
|
1129
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
1130
|
+
} else {
|
|
1131
|
+
return .init()
|
|
1132
|
+
}
|
|
1133
|
+
}()
|
|
1134
|
+
}
|
|
1135
|
+
@inline(__always)
|
|
1136
|
+
set {
|
|
1137
|
+
self.__implementation.fontWeight = { () -> Double? in
|
|
1138
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
1139
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
1140
|
+
return __unwrapped
|
|
1141
|
+
} else {
|
|
1142
|
+
return nil
|
|
1143
|
+
}
|
|
1144
|
+
}()
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
public final var fontFamily: bridge.std__optional_std__string_ {
|
|
1149
|
+
@inline(__always)
|
|
1150
|
+
get {
|
|
1151
|
+
return { () -> bridge.std__optional_std__string_ in
|
|
1152
|
+
if let __unwrappedValue = self.__implementation.fontFamily {
|
|
1153
|
+
return bridge.create_std__optional_std__string_(std.string(__unwrappedValue))
|
|
1154
|
+
} else {
|
|
1155
|
+
return .init()
|
|
1156
|
+
}
|
|
1157
|
+
}()
|
|
1158
|
+
}
|
|
1159
|
+
@inline(__always)
|
|
1160
|
+
set {
|
|
1161
|
+
self.__implementation.fontFamily = { () -> String? in
|
|
1162
|
+
if bridge.has_value_std__optional_std__string_(newValue) {
|
|
1163
|
+
let __unwrapped = bridge.get_std__optional_std__string_(newValue)
|
|
1164
|
+
return String(__unwrapped)
|
|
1165
|
+
} else {
|
|
1166
|
+
return nil
|
|
1167
|
+
}
|
|
1168
|
+
}()
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
public final var color: bridge.std__optional_double_ {
|
|
1173
|
+
@inline(__always)
|
|
1174
|
+
get {
|
|
1175
|
+
return { () -> bridge.std__optional_double_ in
|
|
1176
|
+
if let __unwrappedValue = self.__implementation.color {
|
|
1177
|
+
return bridge.create_std__optional_double_(__unwrappedValue)
|
|
1178
|
+
} else {
|
|
1179
|
+
return .init()
|
|
1180
|
+
}
|
|
1181
|
+
}()
|
|
1182
|
+
}
|
|
1183
|
+
@inline(__always)
|
|
1184
|
+
set {
|
|
1185
|
+
self.__implementation.color = { () -> Double? in
|
|
1186
|
+
if bridge.has_value_std__optional_double_(newValue) {
|
|
1187
|
+
let __unwrapped = bridge.get_std__optional_double_(newValue)
|
|
1188
|
+
return __unwrapped
|
|
1189
|
+
} else {
|
|
1190
|
+
return nil
|
|
1191
|
+
}
|
|
1192
|
+
}()
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
public final var textAlign: bridge.std__optional_NitroNumberTextAlign_ {
|
|
1197
|
+
@inline(__always)
|
|
1198
|
+
get {
|
|
1199
|
+
return { () -> bridge.std__optional_NitroNumberTextAlign_ in
|
|
1200
|
+
if let __unwrappedValue = self.__implementation.textAlign {
|
|
1201
|
+
return bridge.create_std__optional_NitroNumberTextAlign_(__unwrappedValue)
|
|
1202
|
+
} else {
|
|
1203
|
+
return .init()
|
|
1204
|
+
}
|
|
1205
|
+
}()
|
|
1206
|
+
}
|
|
1207
|
+
@inline(__always)
|
|
1208
|
+
set {
|
|
1209
|
+
self.__implementation.textAlign = newValue.value
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
public final var rightToLeft: bridge.std__optional_bool_ {
|
|
1214
|
+
@inline(__always)
|
|
1215
|
+
get {
|
|
1216
|
+
return { () -> bridge.std__optional_bool_ in
|
|
1217
|
+
if let __unwrappedValue = self.__implementation.rightToLeft {
|
|
1218
|
+
return bridge.create_std__optional_bool_(__unwrappedValue)
|
|
1219
|
+
} else {
|
|
1220
|
+
return .init()
|
|
1221
|
+
}
|
|
1222
|
+
}()
|
|
1223
|
+
}
|
|
1224
|
+
@inline(__always)
|
|
1225
|
+
set {
|
|
1226
|
+
self.__implementation.rightToLeft = { () -> Bool? in
|
|
1227
|
+
if bridge.has_value_std__optional_bool_(newValue) {
|
|
1228
|
+
let __unwrapped = bridge.get_std__optional_bool_(newValue)
|
|
1229
|
+
return __unwrapped
|
|
1230
|
+
} else {
|
|
1231
|
+
return nil
|
|
1232
|
+
}
|
|
1233
|
+
}()
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
public final var onSizeChange: bridge.std__optional_std__function_void_double____width_____double____height______ {
|
|
1238
|
+
@inline(__always)
|
|
1239
|
+
get {
|
|
1240
|
+
return { () -> bridge.std__optional_std__function_void_double____width_____double____height______ in
|
|
1241
|
+
if let __unwrappedValue = self.__implementation.onSizeChange {
|
|
1242
|
+
return bridge.create_std__optional_std__function_void_double____width_____double____height______({ () -> bridge.Func_void_double_double in
|
|
1243
|
+
let __closureWrapper = Func_void_double_double(__unwrappedValue)
|
|
1244
|
+
return bridge.create_Func_void_double_double(__closureWrapper.toUnsafe())
|
|
1245
|
+
}())
|
|
1246
|
+
} else {
|
|
1247
|
+
return .init()
|
|
1248
|
+
}
|
|
1249
|
+
}()
|
|
1250
|
+
}
|
|
1251
|
+
@inline(__always)
|
|
1252
|
+
set {
|
|
1253
|
+
self.__implementation.onSizeChange = { () -> ((_ width: Double, _ height: Double) -> Void)? in
|
|
1254
|
+
if bridge.has_value_std__optional_std__function_void_double____width_____double____height______(newValue) {
|
|
1255
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_double____width_____double____height______(newValue)
|
|
1256
|
+
return { () -> (Double, Double) -> Void in
|
|
1257
|
+
let __wrappedFunction = bridge.wrap_Func_void_double_double(__unwrapped)
|
|
1258
|
+
return { (__width: Double, __height: Double) -> Void in
|
|
1259
|
+
__wrappedFunction.call(__width, __height)
|
|
1260
|
+
}
|
|
1261
|
+
}()
|
|
1262
|
+
} else {
|
|
1263
|
+
return nil
|
|
1264
|
+
}
|
|
1265
|
+
}()
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
public final var onRevealEnd: bridge.std__optional_std__function_void____ {
|
|
1270
|
+
@inline(__always)
|
|
1271
|
+
get {
|
|
1272
|
+
return { () -> bridge.std__optional_std__function_void____ in
|
|
1273
|
+
if let __unwrappedValue = self.__implementation.onRevealEnd {
|
|
1274
|
+
return bridge.create_std__optional_std__function_void____({ () -> bridge.Func_void in
|
|
1275
|
+
let __closureWrapper = Func_void(__unwrappedValue)
|
|
1276
|
+
return bridge.create_Func_void(__closureWrapper.toUnsafe())
|
|
1277
|
+
}())
|
|
1278
|
+
} else {
|
|
1279
|
+
return .init()
|
|
1280
|
+
}
|
|
1281
|
+
}()
|
|
1282
|
+
}
|
|
1283
|
+
@inline(__always)
|
|
1284
|
+
set {
|
|
1285
|
+
self.__implementation.onRevealEnd = { () -> (() -> Void)? in
|
|
1286
|
+
if bridge.has_value_std__optional_std__function_void____(newValue) {
|
|
1287
|
+
let __unwrapped = bridge.get_std__optional_std__function_void____(newValue)
|
|
1288
|
+
return { () -> () -> Void in
|
|
1289
|
+
let __wrappedFunction = bridge.wrap_Func_void(__unwrapped)
|
|
1290
|
+
return { () -> Void in
|
|
1291
|
+
__wrappedFunction.call()
|
|
1292
|
+
}
|
|
1293
|
+
}()
|
|
1294
|
+
} else {
|
|
1295
|
+
return nil
|
|
1296
|
+
}
|
|
1297
|
+
}()
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
public final var onRevealMilestone: bridge.std__optional_std__function_void_double____index_____double____value______ {
|
|
1302
|
+
@inline(__always)
|
|
1303
|
+
get {
|
|
1304
|
+
return { () -> bridge.std__optional_std__function_void_double____index_____double____value______ in
|
|
1305
|
+
if let __unwrappedValue = self.__implementation.onRevealMilestone {
|
|
1306
|
+
return bridge.create_std__optional_std__function_void_double____index_____double____value______({ () -> bridge.Func_void_double_double in
|
|
1307
|
+
let __closureWrapper = Func_void_double_double(__unwrappedValue)
|
|
1308
|
+
return bridge.create_Func_void_double_double(__closureWrapper.toUnsafe())
|
|
1309
|
+
}())
|
|
1310
|
+
} else {
|
|
1311
|
+
return .init()
|
|
1312
|
+
}
|
|
1313
|
+
}()
|
|
1314
|
+
}
|
|
1315
|
+
@inline(__always)
|
|
1316
|
+
set {
|
|
1317
|
+
self.__implementation.onRevealMilestone = { () -> ((_ index: Double, _ value: Double) -> Void)? in
|
|
1318
|
+
if bridge.has_value_std__optional_std__function_void_double____index_____double____value______(newValue) {
|
|
1319
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_double____index_____double____value______(newValue)
|
|
1320
|
+
return { () -> (Double, Double) -> Void in
|
|
1321
|
+
let __wrappedFunction = bridge.wrap_Func_void_double_double(__unwrapped)
|
|
1322
|
+
return { (__index: Double, __value: Double) -> Void in
|
|
1323
|
+
__wrappedFunction.call(__index, __value)
|
|
1324
|
+
}
|
|
1325
|
+
}()
|
|
1326
|
+
} else {
|
|
1327
|
+
return nil
|
|
1328
|
+
}
|
|
1329
|
+
}()
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
// Methods
|
|
1334
|
+
@inline(__always)
|
|
1335
|
+
public final func jumpTo(value: Double) -> bridge.Result_void_ {
|
|
1336
|
+
do {
|
|
1337
|
+
try self.__implementation.jumpTo(value: value)
|
|
1338
|
+
return bridge.create_Result_void_()
|
|
1339
|
+
} catch (let __error) {
|
|
1340
|
+
let __exceptionPtr = __error.toCpp()
|
|
1341
|
+
return bridge.create_Result_void_(__exceptionPtr)
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
@inline(__always)
|
|
1346
|
+
public final func animateTo(value: Double) -> bridge.Result_void_ {
|
|
1347
|
+
do {
|
|
1348
|
+
try self.__implementation.animateTo(value: value)
|
|
1349
|
+
return bridge.create_Result_void_()
|
|
1350
|
+
} catch (let __error) {
|
|
1351
|
+
let __exceptionPtr = __error.toCpp()
|
|
1352
|
+
return bridge.create_Result_void_(__exceptionPtr)
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
@inline(__always)
|
|
1357
|
+
public final func revealTo(value: Double) -> bridge.Result_void_ {
|
|
1358
|
+
do {
|
|
1359
|
+
try self.__implementation.revealTo(value: value)
|
|
1360
|
+
return bridge.create_Result_void_()
|
|
1361
|
+
} catch (let __error) {
|
|
1362
|
+
let __exceptionPtr = __error.toCpp()
|
|
1363
|
+
return bridge.create_Result_void_(__exceptionPtr)
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
public final func getView() -> UnsafeMutableRawPointer {
|
|
1368
|
+
return Unmanaged.passRetained(__implementation.view).toOpaque()
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
public final func beforeUpdate() {
|
|
1372
|
+
__implementation.beforeUpdate()
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
public final func afterUpdate() {
|
|
1376
|
+
__implementation.afterUpdate()
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
public final func maybePrepareForRecycle() {
|
|
1380
|
+
guard let recyclable = __implementation as? any RecyclableView else { return }
|
|
1381
|
+
recyclable.prepareForRecycle()
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
public final func onDropView() {
|
|
1385
|
+
__implementation.onDropView()
|
|
1386
|
+
}
|
|
1387
|
+
}
|