react-native-nitro-input 0.1.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 +63 -0
- package/LICENSE +21 -0
- package/NitroInput.podspec +54 -0
- package/README.md +524 -0
- package/android/CMakeLists.txt +52 -0
- package/android/build.gradle +158 -0
- package/android/fix-prefab.gradle +51 -0
- package/android/gradle.properties +4 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/cpp/JAmountFormatter.cpp +70 -0
- package/android/src/main/cpp/JAmountFormatter.hpp +45 -0
- package/android/src/main/cpp/JMaskEngine.cpp +81 -0
- package/android/src/main/cpp/JMaskEngine.hpp +52 -0
- package/android/src/main/cpp/JMorphEngine.cpp +132 -0
- package/android/src/main/cpp/JMorphEngine.hpp +54 -0
- package/android/src/main/cpp/JNitroInputWorklets.cpp +83 -0
- package/android/src/main/cpp/JNitroInputWorklets.hpp +40 -0
- package/android/src/main/cpp/JOutlineGeometry.cpp +58 -0
- package/android/src/main/cpp/JOutlineGeometry.hpp +55 -0
- package/android/src/main/cpp/cpp-adapter.cpp +19 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/AmountFormatter.kt +35 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroInputView.kt +730 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/MaskEngine.kt +50 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/MorphEngine.kt +47 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroInputPackage.kt +24 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroInputView.kt +2176 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroInputWorklets.kt +34 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/OutlineGeometry.kt +71 -0
- package/cpp/AmountFormatter.cpp +346 -0
- package/cpp/AmountFormatter.hpp +88 -0
- package/cpp/MaskEngine.cpp +596 -0
- package/cpp/MaskEngine.hpp +136 -0
- package/cpp/MorphEngine.cpp +904 -0
- package/cpp/MorphEngine.hpp +213 -0
- package/cpp/OutlineGeometry.cpp +159 -0
- package/cpp/OutlineGeometry.hpp +107 -0
- package/cpp/worklets/HybridNitroInputWorklets.cpp +30 -0
- package/cpp/worklets/HybridNitroInputWorklets.hpp +30 -0
- package/cpp/worklets/NitroInputWorkletsBridge.cpp +203 -0
- package/cpp/worklets/NitroInputWorkletsBridge.hpp +52 -0
- package/cpp/worklets/NitroInputWorkletsBridgeJSI.hpp +23 -0
- package/ios/HybridMorphInputView.swift +710 -0
- package/ios/NitroInputCommands.mm +66 -0
- package/ios/NitroInputView.swift +2600 -0
- package/lib/commonjs/nitrogen/generated/shared/json/NitroInputViewConfig.json +101 -0
- package/lib/commonjs/src/MorphInput.js +42 -0
- package/lib/commonjs/src/NitroInput.js +623 -0
- package/lib/commonjs/src/index.js +12 -0
- package/lib/commonjs/src/specs/NitroInput.nitro.js +2 -0
- package/lib/commonjs/src/specs/NitroInputWorklets.nitro.js +2 -0
- package/lib/commonjs/src/useNitroInputState.js +58 -0
- package/lib/commonjs/src/worklets.js +226 -0
- package/lib/module/nitrogen/generated/shared/json/NitroInputViewConfig.json +101 -0
- package/lib/module/package.json +1 -0
- package/lib/module/src/MorphInput.js +6 -0
- package/lib/module/src/NitroInput.js +584 -0
- package/lib/module/src/index.js +4 -0
- package/lib/module/src/specs/NitroInput.nitro.js +1 -0
- package/lib/module/src/specs/NitroInputWorklets.nitro.js +1 -0
- package/lib/module/src/useNitroInputState.js +55 -0
- package/lib/module/src/worklets.js +214 -0
- package/lib/typescript/src/MorphInput.d.ts +18 -0
- package/lib/typescript/src/NitroInput.d.ts +411 -0
- package/lib/typescript/src/index.d.ts +6 -0
- package/lib/typescript/src/specs/NitroInput.nitro.d.ts +390 -0
- package/lib/typescript/src/specs/NitroInputWorklets.nitro.d.ts +15 -0
- package/lib/typescript/src/useNitroInputState.d.ts +55 -0
- package/lib/typescript/src/worklets.d.ts +117 -0
- package/nitro.json +37 -0
- package/nitrogen/generated/.gitattributes +1 -0
- package/nitrogen/generated/android/NitroInput+autolinking.cmake +84 -0
- package/nitrogen/generated/android/NitroInput+autolinking.gradle +27 -0
- package/nitrogen/generated/android/NitroInputOnLoad.cpp +78 -0
- package/nitrogen/generated/android/NitroInputOnLoad.hpp +34 -0
- package/nitrogen/generated/android/c++/JFunc_void_bool.hpp +75 -0
- package/nitrogen/generated/android/c++/JFunc_void_double.hpp +75 -0
- package/nitrogen/generated/android/c++/JFunc_void_double_double.hpp +75 -0
- package/nitrogen/generated/android/c++/JFunc_void_std__string.hpp +76 -0
- package/nitrogen/generated/android/c++/JFunc_void_std__string_double.hpp +76 -0
- package/nitrogen/generated/android/c++/JFunc_void_std__string_std__string_std__string_bool.hpp +76 -0
- package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.cpp +1073 -0
- package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.hpp +254 -0
- package/nitrogen/generated/android/c++/JNitroInputAffixAlign.hpp +64 -0
- package/nitrogen/generated/android/c++/JNitroInputAutoCapitalize.hpp +64 -0
- package/nitrogen/generated/android/c++/JNitroInputEasing.hpp +67 -0
- package/nitrogen/generated/android/c++/JNitroInputEffect.hpp +61 -0
- package/nitrogen/generated/android/c++/JNitroInputKeyboardAppearance.hpp +61 -0
- package/nitrogen/generated/android/c++/JNitroInputKeyboardType.hpp +79 -0
- package/nitrogen/generated/android/c++/JNitroInputLabelBehavior.hpp +58 -0
- package/nitrogen/generated/android/c++/JNitroInputMode.hpp +61 -0
- package/nitrogen/generated/android/c++/JNitroInputNotation.hpp +65 -0
- package/nitrogen/generated/android/c++/JNitroInputReturnKeyType.hpp +70 -0
- package/nitrogen/generated/android/c++/JNitroInputSignPlacement.hpp +58 -0
- package/nitrogen/generated/android/c++/JNitroInputSubmitBehavior.hpp +61 -0
- package/nitrogen/generated/android/c++/JNitroInputTextAlign.hpp +64 -0
- package/nitrogen/generated/android/c++/JNitroInputTextAlignVertical.hpp +64 -0
- package/nitrogen/generated/android/c++/JNitroInputVariant.hpp +61 -0
- package/nitrogen/generated/android/c++/views/JHybridNitroInputViewStateUpdater.cpp +529 -0
- package/nitrogen/generated/android/c++/views/JHybridNitroInputViewStateUpdater.hpp +54 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/Func_void_bool.kt +78 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/Func_void_double.kt +78 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/Func_void_double_double.kt +78 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/Func_void_std__string.kt +78 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/Func_void_std__string_double.kt +78 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/Func_void_std__string_std__string_std__string_bool.kt +78 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroInputViewSpec.kt +711 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputAffixAlign.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputAutoCapitalize.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputEasing.kt +26 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputEffect.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputKeyboardAppearance.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputKeyboardType.kt +30 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputLabelBehavior.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputMode.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputNotation.kt +61 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputOnLoad.kt +35 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputReturnKeyType.kt +27 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputSignPlacement.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputSubmitBehavior.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputTextAlign.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputTextAlignVertical.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputVariant.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/views/HybridNitroInputViewManager.kt +96 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/views/HybridNitroInputViewStateUpdater.kt +23 -0
- package/nitrogen/generated/ios/NitroInput+autolinking.rb +62 -0
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.cpp +81 -0
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.hpp +348 -0
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Umbrella.hpp +92 -0
- package/nitrogen/generated/ios/NitroInputAutolinking.mm +43 -0
- package/nitrogen/generated/ios/NitroInputAutolinking.swift +26 -0
- package/nitrogen/generated/ios/c++/HybridNitroInputViewSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridNitroInputViewSpecSwift.hpp +769 -0
- package/nitrogen/generated/ios/c++/views/HybridNitroInputViewComponent.mm +690 -0
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_double.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_double_double.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__string.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__string_double.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__string_std__string_std__string_bool.swift +46 -0
- package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec.swift +154 -0
- package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec_cxx.swift +1454 -0
- package/nitrogen/generated/ios/swift/NitroInputAffixAlign.swift +48 -0
- package/nitrogen/generated/ios/swift/NitroInputAutoCapitalize.swift +48 -0
- package/nitrogen/generated/ios/swift/NitroInputEasing.swift +52 -0
- package/nitrogen/generated/ios/swift/NitroInputEffect.swift +44 -0
- package/nitrogen/generated/ios/swift/NitroInputKeyboardAppearance.swift +44 -0
- package/nitrogen/generated/ios/swift/NitroInputKeyboardType.swift +68 -0
- package/nitrogen/generated/ios/swift/NitroInputLabelBehavior.swift +40 -0
- package/nitrogen/generated/ios/swift/NitroInputMode.swift +44 -0
- package/nitrogen/generated/ios/swift/NitroInputNotation.swift +39 -0
- package/nitrogen/generated/ios/swift/NitroInputReturnKeyType.swift +56 -0
- package/nitrogen/generated/ios/swift/NitroInputSignPlacement.swift +40 -0
- package/nitrogen/generated/ios/swift/NitroInputSubmitBehavior.swift +44 -0
- package/nitrogen/generated/ios/swift/NitroInputTextAlign.swift +48 -0
- package/nitrogen/generated/ios/swift/NitroInputTextAlignVertical.swift +48 -0
- package/nitrogen/generated/ios/swift/NitroInputVariant.swift +44 -0
- package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.cpp +213 -0
- package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.hpp +300 -0
- package/nitrogen/generated/shared/c++/HybridNitroInputWorkletsSpec.cpp +21 -0
- package/nitrogen/generated/shared/c++/HybridNitroInputWorkletsSpec.hpp +62 -0
- package/nitrogen/generated/shared/c++/NitroInputAffixAlign.hpp +84 -0
- package/nitrogen/generated/shared/c++/NitroInputAutoCapitalize.hpp +84 -0
- package/nitrogen/generated/shared/c++/NitroInputEasing.hpp +88 -0
- package/nitrogen/generated/shared/c++/NitroInputEffect.hpp +80 -0
- package/nitrogen/generated/shared/c++/NitroInputKeyboardAppearance.hpp +80 -0
- package/nitrogen/generated/shared/c++/NitroInputKeyboardType.hpp +104 -0
- package/nitrogen/generated/shared/c++/NitroInputLabelBehavior.hpp +76 -0
- package/nitrogen/generated/shared/c++/NitroInputMode.hpp +80 -0
- package/nitrogen/generated/shared/c++/NitroInputNotation.hpp +91 -0
- package/nitrogen/generated/shared/c++/NitroInputReturnKeyType.hpp +92 -0
- package/nitrogen/generated/shared/c++/NitroInputSignPlacement.hpp +76 -0
- package/nitrogen/generated/shared/c++/NitroInputSubmitBehavior.hpp +80 -0
- package/nitrogen/generated/shared/c++/NitroInputTextAlign.hpp +84 -0
- package/nitrogen/generated/shared/c++/NitroInputTextAlignVertical.hpp +84 -0
- package/nitrogen/generated/shared/c++/NitroInputVariant.hpp +80 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.cpp +216 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.hpp +374 -0
- package/nitrogen/generated/shared/json/NitroInputViewConfig.json +101 -0
- package/package.json +141 -0
- package/react-native.config.js +16 -0
- package/src/MorphInput.tsx +30 -0
- package/src/NitroInput.tsx +1364 -0
- package/src/index.ts +55 -0
- package/src/specs/NitroInput.nitro.ts +436 -0
- package/src/specs/NitroInputWorklets.nitro.ts +13 -0
- package/src/useNitroInputState.ts +101 -0
- package/src/worklets.ts +300 -0
|
@@ -0,0 +1,1454 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridNitroInputViewSpec_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 HybridNitroInputViewSpec 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 HybridNitroInputViewSpec_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 `HybridNitroInputViewSpec` Swift protocol.
|
|
29
|
+
*/
|
|
30
|
+
private var __implementation: any HybridNitroInputViewSpec
|
|
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_HybridNitroInputViewSpec_
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Create a new `HybridNitroInputViewSpec_cxx` that wraps the given `HybridNitroInputViewSpec`.
|
|
39
|
+
* All properties and methods bridge to C++ types.
|
|
40
|
+
*/
|
|
41
|
+
public init(_ implementation: any HybridNitroInputViewSpec) {
|
|
42
|
+
self.__implementation = implementation
|
|
43
|
+
self.__cxxPart = .init()
|
|
44
|
+
/* no base class */
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Get the actual `HybridNitroInputViewSpec` instance this class wraps.
|
|
49
|
+
*/
|
|
50
|
+
@inline(__always)
|
|
51
|
+
public func getHybridNitroInputViewSpec() -> any HybridNitroInputViewSpec {
|
|
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 `HybridNitroInputViewSpec_cxx`.
|
|
65
|
+
* The pointer has to be a retained opaque `Unmanaged<HybridNitroInputViewSpec_cxx>`.
|
|
66
|
+
* This removes one strong reference from the object!
|
|
67
|
+
*/
|
|
68
|
+
public class func fromUnsafe(_ pointer: UnsafeMutableRawPointer) -> HybridNitroInputViewSpec_cxx {
|
|
69
|
+
return Unmanaged<HybridNitroInputViewSpec_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<HybridNitroInputViewSpec>`.
|
|
75
|
+
*/
|
|
76
|
+
public func getCxxPart() -> bridge.std__shared_ptr_HybridNitroInputViewSpec_ {
|
|
77
|
+
let cachedCxxPart = self.__cxxPart.lock()
|
|
78
|
+
if Bool(fromCxx: cachedCxxPart) {
|
|
79
|
+
return cachedCxxPart
|
|
80
|
+
} else {
|
|
81
|
+
let newCxxPart = bridge.create_std__shared_ptr_HybridNitroInputViewSpec_(self.toUnsafe())
|
|
82
|
+
__cxxPart = bridge.weakify_std__shared_ptr_HybridNitroInputViewSpec_(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: HybridNitroInputViewSpec_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 text: std.string {
|
|
125
|
+
@inline(__always)
|
|
126
|
+
get {
|
|
127
|
+
return std.string(self.__implementation.text)
|
|
128
|
+
}
|
|
129
|
+
@inline(__always)
|
|
130
|
+
set {
|
|
131
|
+
self.__implementation.text = String(newValue)
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
public final var mostRecentEventCount: Double {
|
|
136
|
+
@inline(__always)
|
|
137
|
+
get {
|
|
138
|
+
return self.__implementation.mostRecentEventCount
|
|
139
|
+
}
|
|
140
|
+
@inline(__always)
|
|
141
|
+
set {
|
|
142
|
+
self.__implementation.mostRecentEventCount = newValue
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
public final var mode: Int32 {
|
|
147
|
+
@inline(__always)
|
|
148
|
+
get {
|
|
149
|
+
return self.__implementation.mode.rawValue
|
|
150
|
+
}
|
|
151
|
+
@inline(__always)
|
|
152
|
+
set {
|
|
153
|
+
self.__implementation.mode = margelo.nitro.nitroinput.NitroInputMode(rawValue: newValue)!
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
public final var plain: Bool {
|
|
158
|
+
@inline(__always)
|
|
159
|
+
get {
|
|
160
|
+
return self.__implementation.plain
|
|
161
|
+
}
|
|
162
|
+
@inline(__always)
|
|
163
|
+
set {
|
|
164
|
+
self.__implementation.plain = newValue
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
public final var fractionDigits: Double {
|
|
169
|
+
@inline(__always)
|
|
170
|
+
get {
|
|
171
|
+
return self.__implementation.fractionDigits
|
|
172
|
+
}
|
|
173
|
+
@inline(__always)
|
|
174
|
+
set {
|
|
175
|
+
self.__implementation.fractionDigits = newValue
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
public final var maxIntegerDigits: Double {
|
|
180
|
+
@inline(__always)
|
|
181
|
+
get {
|
|
182
|
+
return self.__implementation.maxIntegerDigits
|
|
183
|
+
}
|
|
184
|
+
@inline(__always)
|
|
185
|
+
set {
|
|
186
|
+
self.__implementation.maxIntegerDigits = newValue
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
public final var mask: std.string {
|
|
191
|
+
@inline(__always)
|
|
192
|
+
get {
|
|
193
|
+
return std.string(self.__implementation.mask)
|
|
194
|
+
}
|
|
195
|
+
@inline(__always)
|
|
196
|
+
set {
|
|
197
|
+
self.__implementation.mask = String(newValue)
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
public final var maskNotations: bridge.std__vector_NitroInputNotation_ {
|
|
202
|
+
@inline(__always)
|
|
203
|
+
get {
|
|
204
|
+
return { () -> bridge.std__vector_NitroInputNotation_ in
|
|
205
|
+
var __vector = bridge.create_std__vector_NitroInputNotation_(self.__implementation.maskNotations.count)
|
|
206
|
+
for __item in self.__implementation.maskNotations {
|
|
207
|
+
__vector.push_back(__item)
|
|
208
|
+
}
|
|
209
|
+
return __vector
|
|
210
|
+
}()
|
|
211
|
+
}
|
|
212
|
+
@inline(__always)
|
|
213
|
+
set {
|
|
214
|
+
self.__implementation.maskNotations = newValue.map({ __item in __item })
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
public final var maskAutocomplete: Bool {
|
|
219
|
+
@inline(__always)
|
|
220
|
+
get {
|
|
221
|
+
return self.__implementation.maskAutocomplete
|
|
222
|
+
}
|
|
223
|
+
@inline(__always)
|
|
224
|
+
set {
|
|
225
|
+
self.__implementation.maskAutocomplete = newValue
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
public final var maskAutoSkip: Bool {
|
|
230
|
+
@inline(__always)
|
|
231
|
+
get {
|
|
232
|
+
return self.__implementation.maskAutoSkip
|
|
233
|
+
}
|
|
234
|
+
@inline(__always)
|
|
235
|
+
set {
|
|
236
|
+
self.__implementation.maskAutoSkip = newValue
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
public final var groupingSeparator: std.string {
|
|
241
|
+
@inline(__always)
|
|
242
|
+
get {
|
|
243
|
+
return std.string(self.__implementation.groupingSeparator)
|
|
244
|
+
}
|
|
245
|
+
@inline(__always)
|
|
246
|
+
set {
|
|
247
|
+
self.__implementation.groupingSeparator = String(newValue)
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
public final var decimalSeparator: std.string {
|
|
252
|
+
@inline(__always)
|
|
253
|
+
get {
|
|
254
|
+
return std.string(self.__implementation.decimalSeparator)
|
|
255
|
+
}
|
|
256
|
+
@inline(__always)
|
|
257
|
+
set {
|
|
258
|
+
self.__implementation.decimalSeparator = String(newValue)
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
public final var variant: Int32 {
|
|
263
|
+
@inline(__always)
|
|
264
|
+
get {
|
|
265
|
+
return self.__implementation.variant.rawValue
|
|
266
|
+
}
|
|
267
|
+
@inline(__always)
|
|
268
|
+
set {
|
|
269
|
+
self.__implementation.variant = margelo.nitro.nitroinput.NitroInputVariant(rawValue: newValue)!
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
public final var label: std.string {
|
|
274
|
+
@inline(__always)
|
|
275
|
+
get {
|
|
276
|
+
return std.string(self.__implementation.label)
|
|
277
|
+
}
|
|
278
|
+
@inline(__always)
|
|
279
|
+
set {
|
|
280
|
+
self.__implementation.label = String(newValue)
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
public final var labelBehavior: Int32 {
|
|
285
|
+
@inline(__always)
|
|
286
|
+
get {
|
|
287
|
+
return self.__implementation.labelBehavior.rawValue
|
|
288
|
+
}
|
|
289
|
+
@inline(__always)
|
|
290
|
+
set {
|
|
291
|
+
self.__implementation.labelBehavior = margelo.nitro.nitroinput.NitroInputLabelBehavior(rawValue: newValue)!
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
public final var labelColor: Double {
|
|
296
|
+
@inline(__always)
|
|
297
|
+
get {
|
|
298
|
+
return self.__implementation.labelColor
|
|
299
|
+
}
|
|
300
|
+
@inline(__always)
|
|
301
|
+
set {
|
|
302
|
+
self.__implementation.labelColor = newValue
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
public final var labelFocusedColor: Double {
|
|
307
|
+
@inline(__always)
|
|
308
|
+
get {
|
|
309
|
+
return self.__implementation.labelFocusedColor
|
|
310
|
+
}
|
|
311
|
+
@inline(__always)
|
|
312
|
+
set {
|
|
313
|
+
self.__implementation.labelFocusedColor = newValue
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
public final var labelFontSize: Double {
|
|
318
|
+
@inline(__always)
|
|
319
|
+
get {
|
|
320
|
+
return self.__implementation.labelFontSize
|
|
321
|
+
}
|
|
322
|
+
@inline(__always)
|
|
323
|
+
set {
|
|
324
|
+
self.__implementation.labelFontSize = newValue
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
public final var strokeColor: Double {
|
|
329
|
+
@inline(__always)
|
|
330
|
+
get {
|
|
331
|
+
return self.__implementation.strokeColor
|
|
332
|
+
}
|
|
333
|
+
@inline(__always)
|
|
334
|
+
set {
|
|
335
|
+
self.__implementation.strokeColor = newValue
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
public final var focusedStrokeColor: Double {
|
|
340
|
+
@inline(__always)
|
|
341
|
+
get {
|
|
342
|
+
return self.__implementation.focusedStrokeColor
|
|
343
|
+
}
|
|
344
|
+
@inline(__always)
|
|
345
|
+
set {
|
|
346
|
+
self.__implementation.focusedStrokeColor = newValue
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
public final var strokeWidth: Double {
|
|
351
|
+
@inline(__always)
|
|
352
|
+
get {
|
|
353
|
+
return self.__implementation.strokeWidth
|
|
354
|
+
}
|
|
355
|
+
@inline(__always)
|
|
356
|
+
set {
|
|
357
|
+
self.__implementation.strokeWidth = newValue
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
public final var cornerRadius: Double {
|
|
362
|
+
@inline(__always)
|
|
363
|
+
get {
|
|
364
|
+
return self.__implementation.cornerRadius
|
|
365
|
+
}
|
|
366
|
+
@inline(__always)
|
|
367
|
+
set {
|
|
368
|
+
self.__implementation.cornerRadius = newValue
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
public final var fillColor: Double {
|
|
373
|
+
@inline(__always)
|
|
374
|
+
get {
|
|
375
|
+
return self.__implementation.fillColor
|
|
376
|
+
}
|
|
377
|
+
@inline(__always)
|
|
378
|
+
set {
|
|
379
|
+
self.__implementation.fillColor = newValue
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
public final var prefix: std.string {
|
|
384
|
+
@inline(__always)
|
|
385
|
+
get {
|
|
386
|
+
return std.string(self.__implementation.prefix)
|
|
387
|
+
}
|
|
388
|
+
@inline(__always)
|
|
389
|
+
set {
|
|
390
|
+
self.__implementation.prefix = String(newValue)
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
public final var suffix: std.string {
|
|
395
|
+
@inline(__always)
|
|
396
|
+
get {
|
|
397
|
+
return std.string(self.__implementation.suffix)
|
|
398
|
+
}
|
|
399
|
+
@inline(__always)
|
|
400
|
+
set {
|
|
401
|
+
self.__implementation.suffix = String(newValue)
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
public final var prefixFontSize: Double {
|
|
406
|
+
@inline(__always)
|
|
407
|
+
get {
|
|
408
|
+
return self.__implementation.prefixFontSize
|
|
409
|
+
}
|
|
410
|
+
@inline(__always)
|
|
411
|
+
set {
|
|
412
|
+
self.__implementation.prefixFontSize = newValue
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
public final var suffixFontSize: Double {
|
|
417
|
+
@inline(__always)
|
|
418
|
+
get {
|
|
419
|
+
return self.__implementation.suffixFontSize
|
|
420
|
+
}
|
|
421
|
+
@inline(__always)
|
|
422
|
+
set {
|
|
423
|
+
self.__implementation.suffixFontSize = newValue
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
public final var signPlacement: Int32 {
|
|
428
|
+
@inline(__always)
|
|
429
|
+
get {
|
|
430
|
+
return self.__implementation.signPlacement.rawValue
|
|
431
|
+
}
|
|
432
|
+
@inline(__always)
|
|
433
|
+
set {
|
|
434
|
+
self.__implementation.signPlacement = margelo.nitro.nitroinput.NitroInputSignPlacement(rawValue: newValue)!
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
public final var prefixAlign: Int32 {
|
|
439
|
+
@inline(__always)
|
|
440
|
+
get {
|
|
441
|
+
return self.__implementation.prefixAlign.rawValue
|
|
442
|
+
}
|
|
443
|
+
@inline(__always)
|
|
444
|
+
set {
|
|
445
|
+
self.__implementation.prefixAlign = margelo.nitro.nitroinput.NitroInputAffixAlign(rawValue: newValue)!
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
public final var suffixAlign: Int32 {
|
|
450
|
+
@inline(__always)
|
|
451
|
+
get {
|
|
452
|
+
return self.__implementation.suffixAlign.rawValue
|
|
453
|
+
}
|
|
454
|
+
@inline(__always)
|
|
455
|
+
set {
|
|
456
|
+
self.__implementation.suffixAlign = margelo.nitro.nitroinput.NitroInputAffixAlign(rawValue: newValue)!
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
public final var placeholder: std.string {
|
|
461
|
+
@inline(__always)
|
|
462
|
+
get {
|
|
463
|
+
return std.string(self.__implementation.placeholder)
|
|
464
|
+
}
|
|
465
|
+
@inline(__always)
|
|
466
|
+
set {
|
|
467
|
+
self.__implementation.placeholder = String(newValue)
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
public final var placeholderColor: Double {
|
|
472
|
+
@inline(__always)
|
|
473
|
+
get {
|
|
474
|
+
return self.__implementation.placeholderColor
|
|
475
|
+
}
|
|
476
|
+
@inline(__always)
|
|
477
|
+
set {
|
|
478
|
+
self.__implementation.placeholderColor = newValue
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
public final var duration: Double {
|
|
483
|
+
@inline(__always)
|
|
484
|
+
get {
|
|
485
|
+
return self.__implementation.duration
|
|
486
|
+
}
|
|
487
|
+
@inline(__always)
|
|
488
|
+
set {
|
|
489
|
+
self.__implementation.duration = newValue
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
public final var easing: Int32 {
|
|
494
|
+
@inline(__always)
|
|
495
|
+
get {
|
|
496
|
+
return self.__implementation.easing.rawValue
|
|
497
|
+
}
|
|
498
|
+
@inline(__always)
|
|
499
|
+
set {
|
|
500
|
+
self.__implementation.easing = margelo.nitro.nitroinput.NitroInputEasing(rawValue: newValue)!
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
public final var bounce: Double {
|
|
505
|
+
@inline(__always)
|
|
506
|
+
get {
|
|
507
|
+
return self.__implementation.bounce
|
|
508
|
+
}
|
|
509
|
+
@inline(__always)
|
|
510
|
+
set {
|
|
511
|
+
self.__implementation.bounce = newValue
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
public final var effect: Int32 {
|
|
516
|
+
@inline(__always)
|
|
517
|
+
get {
|
|
518
|
+
return self.__implementation.effect.rawValue
|
|
519
|
+
}
|
|
520
|
+
@inline(__always)
|
|
521
|
+
set {
|
|
522
|
+
self.__implementation.effect = margelo.nitro.nitroinput.NitroInputEffect(rawValue: newValue)!
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
public final var fontSize: Double {
|
|
527
|
+
@inline(__always)
|
|
528
|
+
get {
|
|
529
|
+
return self.__implementation.fontSize
|
|
530
|
+
}
|
|
531
|
+
@inline(__always)
|
|
532
|
+
set {
|
|
533
|
+
self.__implementation.fontSize = newValue
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
public final var lineHeight: Double {
|
|
538
|
+
@inline(__always)
|
|
539
|
+
get {
|
|
540
|
+
return self.__implementation.lineHeight
|
|
541
|
+
}
|
|
542
|
+
@inline(__always)
|
|
543
|
+
set {
|
|
544
|
+
self.__implementation.lineHeight = newValue
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
public final var fontWeight: Double {
|
|
549
|
+
@inline(__always)
|
|
550
|
+
get {
|
|
551
|
+
return self.__implementation.fontWeight
|
|
552
|
+
}
|
|
553
|
+
@inline(__always)
|
|
554
|
+
set {
|
|
555
|
+
self.__implementation.fontWeight = newValue
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
public final var fontFamily: std.string {
|
|
560
|
+
@inline(__always)
|
|
561
|
+
get {
|
|
562
|
+
return std.string(self.__implementation.fontFamily)
|
|
563
|
+
}
|
|
564
|
+
@inline(__always)
|
|
565
|
+
set {
|
|
566
|
+
self.__implementation.fontFamily = String(newValue)
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
public final var color: Double {
|
|
571
|
+
@inline(__always)
|
|
572
|
+
get {
|
|
573
|
+
return self.__implementation.color
|
|
574
|
+
}
|
|
575
|
+
@inline(__always)
|
|
576
|
+
set {
|
|
577
|
+
self.__implementation.color = newValue
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
public final var textAlign: Int32 {
|
|
582
|
+
@inline(__always)
|
|
583
|
+
get {
|
|
584
|
+
return self.__implementation.textAlign.rawValue
|
|
585
|
+
}
|
|
586
|
+
@inline(__always)
|
|
587
|
+
set {
|
|
588
|
+
self.__implementation.textAlign = margelo.nitro.nitroinput.NitroInputTextAlign(rawValue: newValue)!
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
public final var rightToLeft: Bool {
|
|
593
|
+
@inline(__always)
|
|
594
|
+
get {
|
|
595
|
+
return self.__implementation.rightToLeft
|
|
596
|
+
}
|
|
597
|
+
@inline(__always)
|
|
598
|
+
set {
|
|
599
|
+
self.__implementation.rightToLeft = newValue
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
public final var caretColor: Double {
|
|
604
|
+
@inline(__always)
|
|
605
|
+
get {
|
|
606
|
+
return self.__implementation.caretColor
|
|
607
|
+
}
|
|
608
|
+
@inline(__always)
|
|
609
|
+
set {
|
|
610
|
+
self.__implementation.caretColor = newValue
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
public final var selectionColor: Double {
|
|
615
|
+
@inline(__always)
|
|
616
|
+
get {
|
|
617
|
+
return self.__implementation.selectionColor
|
|
618
|
+
}
|
|
619
|
+
@inline(__always)
|
|
620
|
+
set {
|
|
621
|
+
self.__implementation.selectionColor = newValue
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
public final var caretHidden: Bool {
|
|
626
|
+
@inline(__always)
|
|
627
|
+
get {
|
|
628
|
+
return self.__implementation.caretHidden
|
|
629
|
+
}
|
|
630
|
+
@inline(__always)
|
|
631
|
+
set {
|
|
632
|
+
self.__implementation.caretHidden = newValue
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
public final var adjustsFontSizeToFit: Bool {
|
|
637
|
+
@inline(__always)
|
|
638
|
+
get {
|
|
639
|
+
return self.__implementation.adjustsFontSizeToFit
|
|
640
|
+
}
|
|
641
|
+
@inline(__always)
|
|
642
|
+
set {
|
|
643
|
+
self.__implementation.adjustsFontSizeToFit = newValue
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
public final var minimumFontScale: Double {
|
|
648
|
+
@inline(__always)
|
|
649
|
+
get {
|
|
650
|
+
return self.__implementation.minimumFontScale
|
|
651
|
+
}
|
|
652
|
+
@inline(__always)
|
|
653
|
+
set {
|
|
654
|
+
self.__implementation.minimumFontScale = newValue
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
public final var allowFontScaling: Bool {
|
|
659
|
+
@inline(__always)
|
|
660
|
+
get {
|
|
661
|
+
return self.__implementation.allowFontScaling
|
|
662
|
+
}
|
|
663
|
+
@inline(__always)
|
|
664
|
+
set {
|
|
665
|
+
self.__implementation.allowFontScaling = newValue
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
public final var maxFontSizeMultiplier: Double {
|
|
670
|
+
@inline(__always)
|
|
671
|
+
get {
|
|
672
|
+
return self.__implementation.maxFontSizeMultiplier
|
|
673
|
+
}
|
|
674
|
+
@inline(__always)
|
|
675
|
+
set {
|
|
676
|
+
self.__implementation.maxFontSizeMultiplier = newValue
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
public final var keyboardType: Int32 {
|
|
681
|
+
@inline(__always)
|
|
682
|
+
get {
|
|
683
|
+
return self.__implementation.keyboardType.rawValue
|
|
684
|
+
}
|
|
685
|
+
@inline(__always)
|
|
686
|
+
set {
|
|
687
|
+
self.__implementation.keyboardType = margelo.nitro.nitroinput.NitroInputKeyboardType(rawValue: newValue)!
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
public final var returnKeyType: Int32 {
|
|
692
|
+
@inline(__always)
|
|
693
|
+
get {
|
|
694
|
+
return self.__implementation.returnKeyType.rawValue
|
|
695
|
+
}
|
|
696
|
+
@inline(__always)
|
|
697
|
+
set {
|
|
698
|
+
self.__implementation.returnKeyType = margelo.nitro.nitroinput.NitroInputReturnKeyType(rawValue: newValue)!
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
public final var autoCapitalize: Int32 {
|
|
703
|
+
@inline(__always)
|
|
704
|
+
get {
|
|
705
|
+
return self.__implementation.autoCapitalize.rawValue
|
|
706
|
+
}
|
|
707
|
+
@inline(__always)
|
|
708
|
+
set {
|
|
709
|
+
self.__implementation.autoCapitalize = margelo.nitro.nitroinput.NitroInputAutoCapitalize(rawValue: newValue)!
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
public final var autoCorrect: Bool {
|
|
714
|
+
@inline(__always)
|
|
715
|
+
get {
|
|
716
|
+
return self.__implementation.autoCorrect
|
|
717
|
+
}
|
|
718
|
+
@inline(__always)
|
|
719
|
+
set {
|
|
720
|
+
self.__implementation.autoCorrect = newValue
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
public final var editable: Bool {
|
|
725
|
+
@inline(__always)
|
|
726
|
+
get {
|
|
727
|
+
return self.__implementation.editable
|
|
728
|
+
}
|
|
729
|
+
@inline(__always)
|
|
730
|
+
set {
|
|
731
|
+
self.__implementation.editable = newValue
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
public final var multiline: Bool {
|
|
736
|
+
@inline(__always)
|
|
737
|
+
get {
|
|
738
|
+
return self.__implementation.multiline
|
|
739
|
+
}
|
|
740
|
+
@inline(__always)
|
|
741
|
+
set {
|
|
742
|
+
self.__implementation.multiline = newValue
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
public final var numberOfLines: Double {
|
|
747
|
+
@inline(__always)
|
|
748
|
+
get {
|
|
749
|
+
return self.__implementation.numberOfLines
|
|
750
|
+
}
|
|
751
|
+
@inline(__always)
|
|
752
|
+
set {
|
|
753
|
+
self.__implementation.numberOfLines = newValue
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
public final var textAlignVertical: Int32 {
|
|
758
|
+
@inline(__always)
|
|
759
|
+
get {
|
|
760
|
+
return self.__implementation.textAlignVertical.rawValue
|
|
761
|
+
}
|
|
762
|
+
@inline(__always)
|
|
763
|
+
set {
|
|
764
|
+
self.__implementation.textAlignVertical = margelo.nitro.nitroinput.NitroInputTextAlignVertical(rawValue: newValue)!
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
public final var scrollEnabled: Bool {
|
|
769
|
+
@inline(__always)
|
|
770
|
+
get {
|
|
771
|
+
return self.__implementation.scrollEnabled
|
|
772
|
+
}
|
|
773
|
+
@inline(__always)
|
|
774
|
+
set {
|
|
775
|
+
self.__implementation.scrollEnabled = newValue
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
public final var autoFocus: Bool {
|
|
780
|
+
@inline(__always)
|
|
781
|
+
get {
|
|
782
|
+
return self.__implementation.autoFocus
|
|
783
|
+
}
|
|
784
|
+
@inline(__always)
|
|
785
|
+
set {
|
|
786
|
+
self.__implementation.autoFocus = newValue
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
public final var fieldTestID: std.string {
|
|
791
|
+
@inline(__always)
|
|
792
|
+
get {
|
|
793
|
+
return std.string(self.__implementation.fieldTestID)
|
|
794
|
+
}
|
|
795
|
+
@inline(__always)
|
|
796
|
+
set {
|
|
797
|
+
self.__implementation.fieldTestID = String(newValue)
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
public final var fieldAccessibilityLabel: std.string {
|
|
802
|
+
@inline(__always)
|
|
803
|
+
get {
|
|
804
|
+
return std.string(self.__implementation.fieldAccessibilityLabel)
|
|
805
|
+
}
|
|
806
|
+
@inline(__always)
|
|
807
|
+
set {
|
|
808
|
+
self.__implementation.fieldAccessibilityLabel = String(newValue)
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
public final var submitBehavior: Int32 {
|
|
813
|
+
@inline(__always)
|
|
814
|
+
get {
|
|
815
|
+
return self.__implementation.submitBehavior.rawValue
|
|
816
|
+
}
|
|
817
|
+
@inline(__always)
|
|
818
|
+
set {
|
|
819
|
+
self.__implementation.submitBehavior = margelo.nitro.nitroinput.NitroInputSubmitBehavior(rawValue: newValue)!
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
public final var secureTextEntry: Bool {
|
|
824
|
+
@inline(__always)
|
|
825
|
+
get {
|
|
826
|
+
return self.__implementation.secureTextEntry
|
|
827
|
+
}
|
|
828
|
+
@inline(__always)
|
|
829
|
+
set {
|
|
830
|
+
self.__implementation.secureTextEntry = newValue
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
public final var keyboardAppearance: Int32 {
|
|
835
|
+
@inline(__always)
|
|
836
|
+
get {
|
|
837
|
+
return self.__implementation.keyboardAppearance.rawValue
|
|
838
|
+
}
|
|
839
|
+
@inline(__always)
|
|
840
|
+
set {
|
|
841
|
+
self.__implementation.keyboardAppearance = margelo.nitro.nitroinput.NitroInputKeyboardAppearance(rawValue: newValue)!
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
public final var textContentType: std.string {
|
|
846
|
+
@inline(__always)
|
|
847
|
+
get {
|
|
848
|
+
return std.string(self.__implementation.textContentType)
|
|
849
|
+
}
|
|
850
|
+
@inline(__always)
|
|
851
|
+
set {
|
|
852
|
+
self.__implementation.textContentType = String(newValue)
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
public final var enablesReturnKeyAutomatically: Bool {
|
|
857
|
+
@inline(__always)
|
|
858
|
+
get {
|
|
859
|
+
return self.__implementation.enablesReturnKeyAutomatically
|
|
860
|
+
}
|
|
861
|
+
@inline(__always)
|
|
862
|
+
set {
|
|
863
|
+
self.__implementation.enablesReturnKeyAutomatically = newValue
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
public final var showSoftInputOnFocus: Bool {
|
|
868
|
+
@inline(__always)
|
|
869
|
+
get {
|
|
870
|
+
return self.__implementation.showSoftInputOnFocus
|
|
871
|
+
}
|
|
872
|
+
@inline(__always)
|
|
873
|
+
set {
|
|
874
|
+
self.__implementation.showSoftInputOnFocus = newValue
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
public final var selectTextOnFocus: Bool {
|
|
879
|
+
@inline(__always)
|
|
880
|
+
get {
|
|
881
|
+
return self.__implementation.selectTextOnFocus
|
|
882
|
+
}
|
|
883
|
+
@inline(__always)
|
|
884
|
+
set {
|
|
885
|
+
self.__implementation.selectTextOnFocus = newValue
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
public final var clearTextOnFocus: Bool {
|
|
890
|
+
@inline(__always)
|
|
891
|
+
get {
|
|
892
|
+
return self.__implementation.clearTextOnFocus
|
|
893
|
+
}
|
|
894
|
+
@inline(__always)
|
|
895
|
+
set {
|
|
896
|
+
self.__implementation.clearTextOnFocus = newValue
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
public final var contextMenuHidden: Bool {
|
|
901
|
+
@inline(__always)
|
|
902
|
+
get {
|
|
903
|
+
return self.__implementation.contextMenuHidden
|
|
904
|
+
}
|
|
905
|
+
@inline(__always)
|
|
906
|
+
set {
|
|
907
|
+
self.__implementation.contextMenuHidden = newValue
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
public final var spellCheck: Bool {
|
|
912
|
+
@inline(__always)
|
|
913
|
+
get {
|
|
914
|
+
return self.__implementation.spellCheck
|
|
915
|
+
}
|
|
916
|
+
@inline(__always)
|
|
917
|
+
set {
|
|
918
|
+
self.__implementation.spellCheck = newValue
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
public final var selectionStart: Double {
|
|
923
|
+
@inline(__always)
|
|
924
|
+
get {
|
|
925
|
+
return self.__implementation.selectionStart
|
|
926
|
+
}
|
|
927
|
+
@inline(__always)
|
|
928
|
+
set {
|
|
929
|
+
self.__implementation.selectionStart = newValue
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
public final var selectionEnd: Double {
|
|
934
|
+
@inline(__always)
|
|
935
|
+
get {
|
|
936
|
+
return self.__implementation.selectionEnd
|
|
937
|
+
}
|
|
938
|
+
@inline(__always)
|
|
939
|
+
set {
|
|
940
|
+
self.__implementation.selectionEnd = newValue
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
public final var maxLength: Double {
|
|
945
|
+
@inline(__always)
|
|
946
|
+
get {
|
|
947
|
+
return self.__implementation.maxLength
|
|
948
|
+
}
|
|
949
|
+
@inline(__always)
|
|
950
|
+
set {
|
|
951
|
+
self.__implementation.maxLength = newValue
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
public final var transformWorklet: Double {
|
|
956
|
+
@inline(__always)
|
|
957
|
+
get {
|
|
958
|
+
return self.__implementation.transformWorklet
|
|
959
|
+
}
|
|
960
|
+
@inline(__always)
|
|
961
|
+
set {
|
|
962
|
+
self.__implementation.transformWorklet = newValue
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
public final var onChangeTextWorklet: Double {
|
|
967
|
+
@inline(__always)
|
|
968
|
+
get {
|
|
969
|
+
return self.__implementation.onChangeTextWorklet
|
|
970
|
+
}
|
|
971
|
+
@inline(__always)
|
|
972
|
+
set {
|
|
973
|
+
self.__implementation.onChangeTextWorklet = newValue
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
public final var onChangeValueWorklet: Double {
|
|
978
|
+
@inline(__always)
|
|
979
|
+
get {
|
|
980
|
+
return self.__implementation.onChangeValueWorklet
|
|
981
|
+
}
|
|
982
|
+
@inline(__always)
|
|
983
|
+
set {
|
|
984
|
+
self.__implementation.onChangeValueWorklet = newValue
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
public final var onFocusChangeWorklet: Double {
|
|
989
|
+
@inline(__always)
|
|
990
|
+
get {
|
|
991
|
+
return self.__implementation.onFocusChangeWorklet
|
|
992
|
+
}
|
|
993
|
+
@inline(__always)
|
|
994
|
+
set {
|
|
995
|
+
self.__implementation.onFocusChangeWorklet = newValue
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
public final var onSelectionChangeWorklet: Double {
|
|
1000
|
+
@inline(__always)
|
|
1001
|
+
get {
|
|
1002
|
+
return self.__implementation.onSelectionChangeWorklet
|
|
1003
|
+
}
|
|
1004
|
+
@inline(__always)
|
|
1005
|
+
set {
|
|
1006
|
+
self.__implementation.onSelectionChangeWorklet = newValue
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
public final var onSubmitEditingWorklet: Double {
|
|
1011
|
+
@inline(__always)
|
|
1012
|
+
get {
|
|
1013
|
+
return self.__implementation.onSubmitEditingWorklet
|
|
1014
|
+
}
|
|
1015
|
+
@inline(__always)
|
|
1016
|
+
set {
|
|
1017
|
+
self.__implementation.onSubmitEditingWorklet = newValue
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
public final var onEndEditingWorklet: Double {
|
|
1022
|
+
@inline(__always)
|
|
1023
|
+
get {
|
|
1024
|
+
return self.__implementation.onEndEditingWorklet
|
|
1025
|
+
}
|
|
1026
|
+
@inline(__always)
|
|
1027
|
+
set {
|
|
1028
|
+
self.__implementation.onEndEditingWorklet = newValue
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
public final var onKeyPressWorklet: Double {
|
|
1033
|
+
@inline(__always)
|
|
1034
|
+
get {
|
|
1035
|
+
return self.__implementation.onKeyPressWorklet
|
|
1036
|
+
}
|
|
1037
|
+
@inline(__always)
|
|
1038
|
+
set {
|
|
1039
|
+
self.__implementation.onKeyPressWorklet = newValue
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
public final var onChangeText: bridge.std__optional_std__function_void_const_std__string_____text_____double____eventCount______ {
|
|
1044
|
+
@inline(__always)
|
|
1045
|
+
get {
|
|
1046
|
+
return { () -> bridge.std__optional_std__function_void_const_std__string_____text_____double____eventCount______ in
|
|
1047
|
+
if let __unwrappedValue = self.__implementation.onChangeText {
|
|
1048
|
+
return bridge.create_std__optional_std__function_void_const_std__string_____text_____double____eventCount______({ () -> bridge.Func_void_std__string_double in
|
|
1049
|
+
let __closureWrapper = Func_void_std__string_double(__unwrappedValue)
|
|
1050
|
+
return bridge.create_Func_void_std__string_double(__closureWrapper.toUnsafe())
|
|
1051
|
+
}())
|
|
1052
|
+
} else {
|
|
1053
|
+
return .init()
|
|
1054
|
+
}
|
|
1055
|
+
}()
|
|
1056
|
+
}
|
|
1057
|
+
@inline(__always)
|
|
1058
|
+
set {
|
|
1059
|
+
self.__implementation.onChangeText = { () -> ((_ text: String, _ eventCount: Double) -> Void)? in
|
|
1060
|
+
if bridge.has_value_std__optional_std__function_void_const_std__string_____text_____double____eventCount______(newValue) {
|
|
1061
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____text_____double____eventCount______(newValue)
|
|
1062
|
+
return { () -> (String, Double) -> Void in
|
|
1063
|
+
let __wrappedFunction = bridge.wrap_Func_void_std__string_double(__unwrapped)
|
|
1064
|
+
return { (__text: String, __eventCount: Double) -> Void in
|
|
1065
|
+
__wrappedFunction.call(std.string(__text), __eventCount)
|
|
1066
|
+
}
|
|
1067
|
+
}()
|
|
1068
|
+
} else {
|
|
1069
|
+
return nil
|
|
1070
|
+
}
|
|
1071
|
+
}()
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
public final var onChangeMask: bridge.std__optional_std__function_void_const_std__string_____formatted_____const_std__string_____extracted_____const_std__string_____tailPlaceholder_____bool____complete______ {
|
|
1076
|
+
@inline(__always)
|
|
1077
|
+
get {
|
|
1078
|
+
return { () -> bridge.std__optional_std__function_void_const_std__string_____formatted_____const_std__string_____extracted_____const_std__string_____tailPlaceholder_____bool____complete______ in
|
|
1079
|
+
if let __unwrappedValue = self.__implementation.onChangeMask {
|
|
1080
|
+
return bridge.create_std__optional_std__function_void_const_std__string_____formatted_____const_std__string_____extracted_____const_std__string_____tailPlaceholder_____bool____complete______({ () -> bridge.Func_void_std__string_std__string_std__string_bool in
|
|
1081
|
+
let __closureWrapper = Func_void_std__string_std__string_std__string_bool(__unwrappedValue)
|
|
1082
|
+
return bridge.create_Func_void_std__string_std__string_std__string_bool(__closureWrapper.toUnsafe())
|
|
1083
|
+
}())
|
|
1084
|
+
} else {
|
|
1085
|
+
return .init()
|
|
1086
|
+
}
|
|
1087
|
+
}()
|
|
1088
|
+
}
|
|
1089
|
+
@inline(__always)
|
|
1090
|
+
set {
|
|
1091
|
+
self.__implementation.onChangeMask = { () -> ((_ formatted: String, _ extracted: String, _ tailPlaceholder: String, _ complete: Bool) -> Void)? in
|
|
1092
|
+
if bridge.has_value_std__optional_std__function_void_const_std__string_____formatted_____const_std__string_____extracted_____const_std__string_____tailPlaceholder_____bool____complete______(newValue) {
|
|
1093
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____formatted_____const_std__string_____extracted_____const_std__string_____tailPlaceholder_____bool____complete______(newValue)
|
|
1094
|
+
return { () -> (String, String, String, Bool) -> Void in
|
|
1095
|
+
let __wrappedFunction = bridge.wrap_Func_void_std__string_std__string_std__string_bool(__unwrapped)
|
|
1096
|
+
return { (__formatted: String, __extracted: String, __tailPlaceholder: String, __complete: Bool) -> Void in
|
|
1097
|
+
__wrappedFunction.call(std.string(__formatted), std.string(__extracted), std.string(__tailPlaceholder), __complete)
|
|
1098
|
+
}
|
|
1099
|
+
}()
|
|
1100
|
+
} else {
|
|
1101
|
+
return nil
|
|
1102
|
+
}
|
|
1103
|
+
}()
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
public final var onChangeValue: bridge.std__optional_std__function_void_double____value______ {
|
|
1108
|
+
@inline(__always)
|
|
1109
|
+
get {
|
|
1110
|
+
return { () -> bridge.std__optional_std__function_void_double____value______ in
|
|
1111
|
+
if let __unwrappedValue = self.__implementation.onChangeValue {
|
|
1112
|
+
return bridge.create_std__optional_std__function_void_double____value______({ () -> bridge.Func_void_double in
|
|
1113
|
+
let __closureWrapper = Func_void_double(__unwrappedValue)
|
|
1114
|
+
return bridge.create_Func_void_double(__closureWrapper.toUnsafe())
|
|
1115
|
+
}())
|
|
1116
|
+
} else {
|
|
1117
|
+
return .init()
|
|
1118
|
+
}
|
|
1119
|
+
}()
|
|
1120
|
+
}
|
|
1121
|
+
@inline(__always)
|
|
1122
|
+
set {
|
|
1123
|
+
self.__implementation.onChangeValue = { () -> ((_ value: Double) -> Void)? in
|
|
1124
|
+
if bridge.has_value_std__optional_std__function_void_double____value______(newValue) {
|
|
1125
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_double____value______(newValue)
|
|
1126
|
+
return { () -> (Double) -> Void in
|
|
1127
|
+
let __wrappedFunction = bridge.wrap_Func_void_double(__unwrapped)
|
|
1128
|
+
return { (__value: Double) -> Void in
|
|
1129
|
+
__wrappedFunction.call(__value)
|
|
1130
|
+
}
|
|
1131
|
+
}()
|
|
1132
|
+
} else {
|
|
1133
|
+
return nil
|
|
1134
|
+
}
|
|
1135
|
+
}()
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
public final var onFocusChange: bridge.std__optional_std__function_void_bool____focused______ {
|
|
1140
|
+
@inline(__always)
|
|
1141
|
+
get {
|
|
1142
|
+
return { () -> bridge.std__optional_std__function_void_bool____focused______ in
|
|
1143
|
+
if let __unwrappedValue = self.__implementation.onFocusChange {
|
|
1144
|
+
return bridge.create_std__optional_std__function_void_bool____focused______({ () -> bridge.Func_void_bool in
|
|
1145
|
+
let __closureWrapper = Func_void_bool(__unwrappedValue)
|
|
1146
|
+
return bridge.create_Func_void_bool(__closureWrapper.toUnsafe())
|
|
1147
|
+
}())
|
|
1148
|
+
} else {
|
|
1149
|
+
return .init()
|
|
1150
|
+
}
|
|
1151
|
+
}()
|
|
1152
|
+
}
|
|
1153
|
+
@inline(__always)
|
|
1154
|
+
set {
|
|
1155
|
+
self.__implementation.onFocusChange = { () -> ((_ focused: Bool) -> Void)? in
|
|
1156
|
+
if bridge.has_value_std__optional_std__function_void_bool____focused______(newValue) {
|
|
1157
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_bool____focused______(newValue)
|
|
1158
|
+
return { () -> (Bool) -> Void in
|
|
1159
|
+
let __wrappedFunction = bridge.wrap_Func_void_bool(__unwrapped)
|
|
1160
|
+
return { (__focused: Bool) -> Void in
|
|
1161
|
+
__wrappedFunction.call(__focused)
|
|
1162
|
+
}
|
|
1163
|
+
}()
|
|
1164
|
+
} else {
|
|
1165
|
+
return nil
|
|
1166
|
+
}
|
|
1167
|
+
}()
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
public final var onSubmitEditing: bridge.std__optional_std__function_void_const_std__string_____text______ {
|
|
1172
|
+
@inline(__always)
|
|
1173
|
+
get {
|
|
1174
|
+
return { () -> bridge.std__optional_std__function_void_const_std__string_____text______ in
|
|
1175
|
+
if let __unwrappedValue = self.__implementation.onSubmitEditing {
|
|
1176
|
+
return bridge.create_std__optional_std__function_void_const_std__string_____text______({ () -> bridge.Func_void_std__string in
|
|
1177
|
+
let __closureWrapper = Func_void_std__string(__unwrappedValue)
|
|
1178
|
+
return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
|
|
1179
|
+
}())
|
|
1180
|
+
} else {
|
|
1181
|
+
return .init()
|
|
1182
|
+
}
|
|
1183
|
+
}()
|
|
1184
|
+
}
|
|
1185
|
+
@inline(__always)
|
|
1186
|
+
set {
|
|
1187
|
+
self.__implementation.onSubmitEditing = { () -> ((_ text: String) -> Void)? in
|
|
1188
|
+
if bridge.has_value_std__optional_std__function_void_const_std__string_____text______(newValue) {
|
|
1189
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____text______(newValue)
|
|
1190
|
+
return { () -> (String) -> Void in
|
|
1191
|
+
let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
|
|
1192
|
+
return { (__text: String) -> Void in
|
|
1193
|
+
__wrappedFunction.call(std.string(__text))
|
|
1194
|
+
}
|
|
1195
|
+
}()
|
|
1196
|
+
} else {
|
|
1197
|
+
return nil
|
|
1198
|
+
}
|
|
1199
|
+
}()
|
|
1200
|
+
}
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
public final var onEndEditing: bridge.std__optional_std__function_void_const_std__string_____text______ {
|
|
1204
|
+
@inline(__always)
|
|
1205
|
+
get {
|
|
1206
|
+
return { () -> bridge.std__optional_std__function_void_const_std__string_____text______ in
|
|
1207
|
+
if let __unwrappedValue = self.__implementation.onEndEditing {
|
|
1208
|
+
return bridge.create_std__optional_std__function_void_const_std__string_____text______({ () -> bridge.Func_void_std__string in
|
|
1209
|
+
let __closureWrapper = Func_void_std__string(__unwrappedValue)
|
|
1210
|
+
return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
|
|
1211
|
+
}())
|
|
1212
|
+
} else {
|
|
1213
|
+
return .init()
|
|
1214
|
+
}
|
|
1215
|
+
}()
|
|
1216
|
+
}
|
|
1217
|
+
@inline(__always)
|
|
1218
|
+
set {
|
|
1219
|
+
self.__implementation.onEndEditing = { () -> ((_ text: String) -> Void)? in
|
|
1220
|
+
if bridge.has_value_std__optional_std__function_void_const_std__string_____text______(newValue) {
|
|
1221
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____text______(newValue)
|
|
1222
|
+
return { () -> (String) -> Void in
|
|
1223
|
+
let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
|
|
1224
|
+
return { (__text: String) -> Void in
|
|
1225
|
+
__wrappedFunction.call(std.string(__text))
|
|
1226
|
+
}
|
|
1227
|
+
}()
|
|
1228
|
+
} else {
|
|
1229
|
+
return nil
|
|
1230
|
+
}
|
|
1231
|
+
}()
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
public final var onSelectionChange: bridge.std__optional_std__function_void_double____start_____double____end______ {
|
|
1236
|
+
@inline(__always)
|
|
1237
|
+
get {
|
|
1238
|
+
return { () -> bridge.std__optional_std__function_void_double____start_____double____end______ in
|
|
1239
|
+
if let __unwrappedValue = self.__implementation.onSelectionChange {
|
|
1240
|
+
return bridge.create_std__optional_std__function_void_double____start_____double____end______({ () -> bridge.Func_void_double_double in
|
|
1241
|
+
let __closureWrapper = Func_void_double_double(__unwrappedValue)
|
|
1242
|
+
return bridge.create_Func_void_double_double(__closureWrapper.toUnsafe())
|
|
1243
|
+
}())
|
|
1244
|
+
} else {
|
|
1245
|
+
return .init()
|
|
1246
|
+
}
|
|
1247
|
+
}()
|
|
1248
|
+
}
|
|
1249
|
+
@inline(__always)
|
|
1250
|
+
set {
|
|
1251
|
+
self.__implementation.onSelectionChange = { () -> ((_ start: Double, _ end: Double) -> Void)? in
|
|
1252
|
+
if bridge.has_value_std__optional_std__function_void_double____start_____double____end______(newValue) {
|
|
1253
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_double____start_____double____end______(newValue)
|
|
1254
|
+
return { () -> (Double, Double) -> Void in
|
|
1255
|
+
let __wrappedFunction = bridge.wrap_Func_void_double_double(__unwrapped)
|
|
1256
|
+
return { (__start: Double, __end: Double) -> Void in
|
|
1257
|
+
__wrappedFunction.call(__start, __end)
|
|
1258
|
+
}
|
|
1259
|
+
}()
|
|
1260
|
+
} else {
|
|
1261
|
+
return nil
|
|
1262
|
+
}
|
|
1263
|
+
}()
|
|
1264
|
+
}
|
|
1265
|
+
}
|
|
1266
|
+
|
|
1267
|
+
public final var onKeyPress: bridge.std__optional_std__function_void_const_std__string_____key______ {
|
|
1268
|
+
@inline(__always)
|
|
1269
|
+
get {
|
|
1270
|
+
return { () -> bridge.std__optional_std__function_void_const_std__string_____key______ in
|
|
1271
|
+
if let __unwrappedValue = self.__implementation.onKeyPress {
|
|
1272
|
+
return bridge.create_std__optional_std__function_void_const_std__string_____key______({ () -> bridge.Func_void_std__string in
|
|
1273
|
+
let __closureWrapper = Func_void_std__string(__unwrappedValue)
|
|
1274
|
+
return bridge.create_Func_void_std__string(__closureWrapper.toUnsafe())
|
|
1275
|
+
}())
|
|
1276
|
+
} else {
|
|
1277
|
+
return .init()
|
|
1278
|
+
}
|
|
1279
|
+
}()
|
|
1280
|
+
}
|
|
1281
|
+
@inline(__always)
|
|
1282
|
+
set {
|
|
1283
|
+
self.__implementation.onKeyPress = { () -> ((_ key: String) -> Void)? in
|
|
1284
|
+
if bridge.has_value_std__optional_std__function_void_const_std__string_____key______(newValue) {
|
|
1285
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_const_std__string_____key______(newValue)
|
|
1286
|
+
return { () -> (String) -> Void in
|
|
1287
|
+
let __wrappedFunction = bridge.wrap_Func_void_std__string(__unwrapped)
|
|
1288
|
+
return { (__key: String) -> Void in
|
|
1289
|
+
__wrappedFunction.call(std.string(__key))
|
|
1290
|
+
}
|
|
1291
|
+
}()
|
|
1292
|
+
} else {
|
|
1293
|
+
return nil
|
|
1294
|
+
}
|
|
1295
|
+
}()
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
public final var onSizeChange: bridge.std__optional_std__function_void_double____width_____double____height______ {
|
|
1300
|
+
@inline(__always)
|
|
1301
|
+
get {
|
|
1302
|
+
return { () -> bridge.std__optional_std__function_void_double____width_____double____height______ in
|
|
1303
|
+
if let __unwrappedValue = self.__implementation.onSizeChange {
|
|
1304
|
+
return bridge.create_std__optional_std__function_void_double____width_____double____height______({ () -> bridge.Func_void_double_double in
|
|
1305
|
+
let __closureWrapper = Func_void_double_double(__unwrappedValue)
|
|
1306
|
+
return bridge.create_Func_void_double_double(__closureWrapper.toUnsafe())
|
|
1307
|
+
}())
|
|
1308
|
+
} else {
|
|
1309
|
+
return .init()
|
|
1310
|
+
}
|
|
1311
|
+
}()
|
|
1312
|
+
}
|
|
1313
|
+
@inline(__always)
|
|
1314
|
+
set {
|
|
1315
|
+
self.__implementation.onSizeChange = { () -> ((_ width: Double, _ height: Double) -> Void)? in
|
|
1316
|
+
if bridge.has_value_std__optional_std__function_void_double____width_____double____height______(newValue) {
|
|
1317
|
+
let __unwrapped = bridge.get_std__optional_std__function_void_double____width_____double____height______(newValue)
|
|
1318
|
+
return { () -> (Double, Double) -> Void in
|
|
1319
|
+
let __wrappedFunction = bridge.wrap_Func_void_double_double(__unwrapped)
|
|
1320
|
+
return { (__width: Double, __height: Double) -> Void in
|
|
1321
|
+
__wrappedFunction.call(__width, __height)
|
|
1322
|
+
}
|
|
1323
|
+
}()
|
|
1324
|
+
} else {
|
|
1325
|
+
return nil
|
|
1326
|
+
}
|
|
1327
|
+
}()
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
// Methods
|
|
1332
|
+
@inline(__always)
|
|
1333
|
+
public final func focus() -> bridge.Result_void_ {
|
|
1334
|
+
do {
|
|
1335
|
+
try self.__implementation.focus()
|
|
1336
|
+
return bridge.create_Result_void_()
|
|
1337
|
+
} catch (let __error) {
|
|
1338
|
+
let __exceptionPtr = __error.toCpp()
|
|
1339
|
+
return bridge.create_Result_void_(__exceptionPtr)
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
@inline(__always)
|
|
1344
|
+
public final func blur() -> bridge.Result_void_ {
|
|
1345
|
+
do {
|
|
1346
|
+
try self.__implementation.blur()
|
|
1347
|
+
return bridge.create_Result_void_()
|
|
1348
|
+
} catch (let __error) {
|
|
1349
|
+
let __exceptionPtr = __error.toCpp()
|
|
1350
|
+
return bridge.create_Result_void_(__exceptionPtr)
|
|
1351
|
+
}
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
@inline(__always)
|
|
1355
|
+
public final func clear() -> bridge.Result_void_ {
|
|
1356
|
+
do {
|
|
1357
|
+
try self.__implementation.clear()
|
|
1358
|
+
return bridge.create_Result_void_()
|
|
1359
|
+
} catch (let __error) {
|
|
1360
|
+
let __exceptionPtr = __error.toCpp()
|
|
1361
|
+
return bridge.create_Result_void_(__exceptionPtr)
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
@inline(__always)
|
|
1366
|
+
public final func replaceText(text: std.string) -> bridge.Result_void_ {
|
|
1367
|
+
do {
|
|
1368
|
+
try self.__implementation.replaceText(text: String(text))
|
|
1369
|
+
return bridge.create_Result_void_()
|
|
1370
|
+
} catch (let __error) {
|
|
1371
|
+
let __exceptionPtr = __error.toCpp()
|
|
1372
|
+
return bridge.create_Result_void_(__exceptionPtr)
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
@inline(__always)
|
|
1377
|
+
public final func setValue(value: Double) -> bridge.Result_void_ {
|
|
1378
|
+
do {
|
|
1379
|
+
try self.__implementation.setValue(value: value)
|
|
1380
|
+
return bridge.create_Result_void_()
|
|
1381
|
+
} catch (let __error) {
|
|
1382
|
+
let __exceptionPtr = __error.toCpp()
|
|
1383
|
+
return bridge.create_Result_void_(__exceptionPtr)
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
@inline(__always)
|
|
1388
|
+
public final func currentText() -> bridge.Result_std__string_ {
|
|
1389
|
+
do {
|
|
1390
|
+
let __result = try self.__implementation.currentText()
|
|
1391
|
+
let __resultCpp = std.string(__result)
|
|
1392
|
+
return bridge.create_Result_std__string_(__resultCpp)
|
|
1393
|
+
} catch (let __error) {
|
|
1394
|
+
let __exceptionPtr = __error.toCpp()
|
|
1395
|
+
return bridge.create_Result_std__string_(__exceptionPtr)
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
@inline(__always)
|
|
1400
|
+
public final func getValue() -> bridge.Result_double_ {
|
|
1401
|
+
do {
|
|
1402
|
+
let __result = try self.__implementation.getValue()
|
|
1403
|
+
let __resultCpp = __result
|
|
1404
|
+
return bridge.create_Result_double_(__resultCpp)
|
|
1405
|
+
} catch (let __error) {
|
|
1406
|
+
let __exceptionPtr = __error.toCpp()
|
|
1407
|
+
return bridge.create_Result_double_(__exceptionPtr)
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
@inline(__always)
|
|
1412
|
+
public final func isFocused() -> bridge.Result_bool_ {
|
|
1413
|
+
do {
|
|
1414
|
+
let __result = try self.__implementation.isFocused()
|
|
1415
|
+
let __resultCpp = __result
|
|
1416
|
+
return bridge.create_Result_bool_(__resultCpp)
|
|
1417
|
+
} catch (let __error) {
|
|
1418
|
+
let __exceptionPtr = __error.toCpp()
|
|
1419
|
+
return bridge.create_Result_bool_(__exceptionPtr)
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
|
|
1423
|
+
@inline(__always)
|
|
1424
|
+
public final func setSelection(start: Double, end: Double) -> bridge.Result_void_ {
|
|
1425
|
+
do {
|
|
1426
|
+
try self.__implementation.setSelection(start: start, end: end)
|
|
1427
|
+
return bridge.create_Result_void_()
|
|
1428
|
+
} catch (let __error) {
|
|
1429
|
+
let __exceptionPtr = __error.toCpp()
|
|
1430
|
+
return bridge.create_Result_void_(__exceptionPtr)
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
public final func getView() -> UnsafeMutableRawPointer {
|
|
1435
|
+
return Unmanaged.passRetained(__implementation.view).toOpaque()
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1438
|
+
public final func beforeUpdate() {
|
|
1439
|
+
__implementation.beforeUpdate()
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
public final func afterUpdate() {
|
|
1443
|
+
__implementation.afterUpdate()
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
public final func maybePrepareForRecycle() {
|
|
1447
|
+
guard let recyclable = __implementation as? any RecyclableView else { return }
|
|
1448
|
+
recyclable.prepareForRecycle()
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
public final func onDropView() {
|
|
1452
|
+
__implementation.onDropView()
|
|
1453
|
+
}
|
|
1454
|
+
}
|