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,1073 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// JHybridNitroInputViewSpec.cpp
|
|
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
|
+
#include "JHybridNitroInputViewSpec.hpp"
|
|
9
|
+
|
|
10
|
+
// Forward declaration of `NitroInputMode` to properly resolve imports.
|
|
11
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputMode; }
|
|
12
|
+
// Forward declaration of `NitroInputNotation` to properly resolve imports.
|
|
13
|
+
namespace margelo::nitro::nitroinput { struct NitroInputNotation; }
|
|
14
|
+
// Forward declaration of `NitroInputVariant` to properly resolve imports.
|
|
15
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputVariant; }
|
|
16
|
+
// Forward declaration of `NitroInputLabelBehavior` to properly resolve imports.
|
|
17
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputLabelBehavior; }
|
|
18
|
+
// Forward declaration of `NitroInputSignPlacement` to properly resolve imports.
|
|
19
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputSignPlacement; }
|
|
20
|
+
// Forward declaration of `NitroInputAffixAlign` to properly resolve imports.
|
|
21
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputAffixAlign; }
|
|
22
|
+
// Forward declaration of `NitroInputEasing` to properly resolve imports.
|
|
23
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputEasing; }
|
|
24
|
+
// Forward declaration of `NitroInputEffect` to properly resolve imports.
|
|
25
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputEffect; }
|
|
26
|
+
// Forward declaration of `NitroInputTextAlign` to properly resolve imports.
|
|
27
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputTextAlign; }
|
|
28
|
+
// Forward declaration of `NitroInputKeyboardType` to properly resolve imports.
|
|
29
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputKeyboardType; }
|
|
30
|
+
// Forward declaration of `NitroInputReturnKeyType` to properly resolve imports.
|
|
31
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputReturnKeyType; }
|
|
32
|
+
// Forward declaration of `NitroInputAutoCapitalize` to properly resolve imports.
|
|
33
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputAutoCapitalize; }
|
|
34
|
+
// Forward declaration of `NitroInputTextAlignVertical` to properly resolve imports.
|
|
35
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputTextAlignVertical; }
|
|
36
|
+
// Forward declaration of `NitroInputSubmitBehavior` to properly resolve imports.
|
|
37
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputSubmitBehavior; }
|
|
38
|
+
// Forward declaration of `NitroInputKeyboardAppearance` to properly resolve imports.
|
|
39
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputKeyboardAppearance; }
|
|
40
|
+
|
|
41
|
+
#include <string>
|
|
42
|
+
#include "NitroInputMode.hpp"
|
|
43
|
+
#include "JNitroInputMode.hpp"
|
|
44
|
+
#include "NitroInputNotation.hpp"
|
|
45
|
+
#include <vector>
|
|
46
|
+
#include "JNitroInputNotation.hpp"
|
|
47
|
+
#include "NitroInputVariant.hpp"
|
|
48
|
+
#include "JNitroInputVariant.hpp"
|
|
49
|
+
#include "NitroInputLabelBehavior.hpp"
|
|
50
|
+
#include "JNitroInputLabelBehavior.hpp"
|
|
51
|
+
#include "NitroInputSignPlacement.hpp"
|
|
52
|
+
#include "JNitroInputSignPlacement.hpp"
|
|
53
|
+
#include "NitroInputAffixAlign.hpp"
|
|
54
|
+
#include "JNitroInputAffixAlign.hpp"
|
|
55
|
+
#include "NitroInputEasing.hpp"
|
|
56
|
+
#include "JNitroInputEasing.hpp"
|
|
57
|
+
#include "NitroInputEffect.hpp"
|
|
58
|
+
#include "JNitroInputEffect.hpp"
|
|
59
|
+
#include "NitroInputTextAlign.hpp"
|
|
60
|
+
#include "JNitroInputTextAlign.hpp"
|
|
61
|
+
#include "NitroInputKeyboardType.hpp"
|
|
62
|
+
#include "JNitroInputKeyboardType.hpp"
|
|
63
|
+
#include "NitroInputReturnKeyType.hpp"
|
|
64
|
+
#include "JNitroInputReturnKeyType.hpp"
|
|
65
|
+
#include "NitroInputAutoCapitalize.hpp"
|
|
66
|
+
#include "JNitroInputAutoCapitalize.hpp"
|
|
67
|
+
#include "NitroInputTextAlignVertical.hpp"
|
|
68
|
+
#include "JNitroInputTextAlignVertical.hpp"
|
|
69
|
+
#include "NitroInputSubmitBehavior.hpp"
|
|
70
|
+
#include "JNitroInputSubmitBehavior.hpp"
|
|
71
|
+
#include "NitroInputKeyboardAppearance.hpp"
|
|
72
|
+
#include "JNitroInputKeyboardAppearance.hpp"
|
|
73
|
+
#include <functional>
|
|
74
|
+
#include <optional>
|
|
75
|
+
#include "JFunc_void_std__string_double.hpp"
|
|
76
|
+
#include <NitroModules/JNICallable.hpp>
|
|
77
|
+
#include "JFunc_void_std__string_std__string_std__string_bool.hpp"
|
|
78
|
+
#include "JFunc_void_double.hpp"
|
|
79
|
+
#include "JFunc_void_bool.hpp"
|
|
80
|
+
#include "JFunc_void_std__string.hpp"
|
|
81
|
+
#include "JFunc_void_double_double.hpp"
|
|
82
|
+
|
|
83
|
+
namespace margelo::nitro::nitroinput {
|
|
84
|
+
|
|
85
|
+
std::shared_ptr<JHybridNitroInputViewSpec> JHybridNitroInputViewSpec::JavaPart::getJHybridNitroInputViewSpec() {
|
|
86
|
+
auto hybridObject = JHybridObject::JavaPart::getJHybridObject();
|
|
87
|
+
auto castHybridObject = std::dynamic_pointer_cast<JHybridNitroInputViewSpec>(hybridObject);
|
|
88
|
+
if (castHybridObject == nullptr) [[unlikely]] {
|
|
89
|
+
throw std::runtime_error("Failed to downcast JHybridObject to JHybridNitroInputViewSpec!");
|
|
90
|
+
}
|
|
91
|
+
return castHybridObject;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
jni::local_ref<JHybridNitroInputViewSpec::CxxPart::jhybriddata> JHybridNitroInputViewSpec::CxxPart::initHybrid(jni::alias_ref<jhybridobject> jThis) {
|
|
95
|
+
return makeCxxInstance(jThis);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
std::shared_ptr<JHybridObject> JHybridNitroInputViewSpec::CxxPart::createHybridObject(const jni::local_ref<JHybridObject::JavaPart>& javaPart) {
|
|
99
|
+
auto castJavaPart = jni::dynamic_ref_cast<JHybridNitroInputViewSpec::JavaPart>(javaPart);
|
|
100
|
+
if (castJavaPart == nullptr) [[unlikely]] {
|
|
101
|
+
throw std::runtime_error("Failed to cast JHybridObject::JavaPart to JHybridNitroInputViewSpec::JavaPart!");
|
|
102
|
+
}
|
|
103
|
+
return std::make_shared<JHybridNitroInputViewSpec>(castJavaPart);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
void JHybridNitroInputViewSpec::CxxPart::registerNatives() {
|
|
107
|
+
registerHybrid({
|
|
108
|
+
makeNativeMethod("initHybrid", JHybridNitroInputViewSpec::CxxPart::initHybrid),
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Properties
|
|
113
|
+
std::string JHybridNitroInputViewSpec::getText() {
|
|
114
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getText");
|
|
115
|
+
auto __result = method(_javaPart);
|
|
116
|
+
return __result->toStdString();
|
|
117
|
+
}
|
|
118
|
+
void JHybridNitroInputViewSpec::setText(const std::string& text) {
|
|
119
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* text */)>("setText");
|
|
120
|
+
method(_javaPart, jni::make_jstring(text));
|
|
121
|
+
}
|
|
122
|
+
double JHybridNitroInputViewSpec::getMostRecentEventCount() {
|
|
123
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getMostRecentEventCount");
|
|
124
|
+
auto __result = method(_javaPart);
|
|
125
|
+
return __result;
|
|
126
|
+
}
|
|
127
|
+
void JHybridNitroInputViewSpec::setMostRecentEventCount(double mostRecentEventCount) {
|
|
128
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* mostRecentEventCount */)>("setMostRecentEventCount");
|
|
129
|
+
method(_javaPart, mostRecentEventCount);
|
|
130
|
+
}
|
|
131
|
+
NitroInputMode JHybridNitroInputViewSpec::getMode() {
|
|
132
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JNitroInputMode>()>("getMode");
|
|
133
|
+
auto __result = method(_javaPart);
|
|
134
|
+
return __result->toCpp();
|
|
135
|
+
}
|
|
136
|
+
void JHybridNitroInputViewSpec::setMode(NitroInputMode mode) {
|
|
137
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JNitroInputMode> /* mode */)>("setMode");
|
|
138
|
+
method(_javaPart, JNitroInputMode::fromCpp(mode));
|
|
139
|
+
}
|
|
140
|
+
bool JHybridNitroInputViewSpec::getPlain() {
|
|
141
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("getPlain");
|
|
142
|
+
auto __result = method(_javaPart);
|
|
143
|
+
return static_cast<bool>(__result);
|
|
144
|
+
}
|
|
145
|
+
void JHybridNitroInputViewSpec::setPlain(bool plain) {
|
|
146
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jboolean /* plain */)>("setPlain");
|
|
147
|
+
method(_javaPart, plain);
|
|
148
|
+
}
|
|
149
|
+
double JHybridNitroInputViewSpec::getFractionDigits() {
|
|
150
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getFractionDigits");
|
|
151
|
+
auto __result = method(_javaPart);
|
|
152
|
+
return __result;
|
|
153
|
+
}
|
|
154
|
+
void JHybridNitroInputViewSpec::setFractionDigits(double fractionDigits) {
|
|
155
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* fractionDigits */)>("setFractionDigits");
|
|
156
|
+
method(_javaPart, fractionDigits);
|
|
157
|
+
}
|
|
158
|
+
double JHybridNitroInputViewSpec::getMaxIntegerDigits() {
|
|
159
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getMaxIntegerDigits");
|
|
160
|
+
auto __result = method(_javaPart);
|
|
161
|
+
return __result;
|
|
162
|
+
}
|
|
163
|
+
void JHybridNitroInputViewSpec::setMaxIntegerDigits(double maxIntegerDigits) {
|
|
164
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* maxIntegerDigits */)>("setMaxIntegerDigits");
|
|
165
|
+
method(_javaPart, maxIntegerDigits);
|
|
166
|
+
}
|
|
167
|
+
std::string JHybridNitroInputViewSpec::getMask() {
|
|
168
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getMask");
|
|
169
|
+
auto __result = method(_javaPart);
|
|
170
|
+
return __result->toStdString();
|
|
171
|
+
}
|
|
172
|
+
void JHybridNitroInputViewSpec::setMask(const std::string& mask) {
|
|
173
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* mask */)>("setMask");
|
|
174
|
+
method(_javaPart, jni::make_jstring(mask));
|
|
175
|
+
}
|
|
176
|
+
std::vector<NitroInputNotation> JHybridNitroInputViewSpec::getMaskNotations() {
|
|
177
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JArrayClass<JNitroInputNotation>>()>("getMaskNotations");
|
|
178
|
+
auto __result = method(_javaPart);
|
|
179
|
+
return [&](auto&& __input) {
|
|
180
|
+
size_t __size = __input->size();
|
|
181
|
+
std::vector<NitroInputNotation> __vector;
|
|
182
|
+
__vector.reserve(__size);
|
|
183
|
+
for (size_t __i = 0; __i < __size; __i++) {
|
|
184
|
+
auto __element = __input->getElement(__i);
|
|
185
|
+
__vector.push_back(__element->toCpp());
|
|
186
|
+
}
|
|
187
|
+
return __vector;
|
|
188
|
+
}(__result);
|
|
189
|
+
}
|
|
190
|
+
void JHybridNitroInputViewSpec::setMaskNotations(const std::vector<NitroInputNotation>& maskNotations) {
|
|
191
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JArrayClass<JNitroInputNotation>> /* maskNotations */)>("setMaskNotations");
|
|
192
|
+
method(_javaPart, [&](auto&& __input) {
|
|
193
|
+
size_t __size = __input.size();
|
|
194
|
+
jni::local_ref<jni::JArrayClass<JNitroInputNotation>> __array = jni::JArrayClass<JNitroInputNotation>::newArray(__size);
|
|
195
|
+
for (size_t __i = 0; __i < __size; __i++) {
|
|
196
|
+
const auto& __element = __input[__i];
|
|
197
|
+
auto __elementJni = JNitroInputNotation::fromCpp(__element);
|
|
198
|
+
__array->setElement(__i, *__elementJni);
|
|
199
|
+
}
|
|
200
|
+
return __array;
|
|
201
|
+
}(maskNotations));
|
|
202
|
+
}
|
|
203
|
+
bool JHybridNitroInputViewSpec::getMaskAutocomplete() {
|
|
204
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("getMaskAutocomplete");
|
|
205
|
+
auto __result = method(_javaPart);
|
|
206
|
+
return static_cast<bool>(__result);
|
|
207
|
+
}
|
|
208
|
+
void JHybridNitroInputViewSpec::setMaskAutocomplete(bool maskAutocomplete) {
|
|
209
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jboolean /* maskAutocomplete */)>("setMaskAutocomplete");
|
|
210
|
+
method(_javaPart, maskAutocomplete);
|
|
211
|
+
}
|
|
212
|
+
bool JHybridNitroInputViewSpec::getMaskAutoSkip() {
|
|
213
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("getMaskAutoSkip");
|
|
214
|
+
auto __result = method(_javaPart);
|
|
215
|
+
return static_cast<bool>(__result);
|
|
216
|
+
}
|
|
217
|
+
void JHybridNitroInputViewSpec::setMaskAutoSkip(bool maskAutoSkip) {
|
|
218
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jboolean /* maskAutoSkip */)>("setMaskAutoSkip");
|
|
219
|
+
method(_javaPart, maskAutoSkip);
|
|
220
|
+
}
|
|
221
|
+
std::string JHybridNitroInputViewSpec::getGroupingSeparator() {
|
|
222
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getGroupingSeparator");
|
|
223
|
+
auto __result = method(_javaPart);
|
|
224
|
+
return __result->toStdString();
|
|
225
|
+
}
|
|
226
|
+
void JHybridNitroInputViewSpec::setGroupingSeparator(const std::string& groupingSeparator) {
|
|
227
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* groupingSeparator */)>("setGroupingSeparator");
|
|
228
|
+
method(_javaPart, jni::make_jstring(groupingSeparator));
|
|
229
|
+
}
|
|
230
|
+
std::string JHybridNitroInputViewSpec::getDecimalSeparator() {
|
|
231
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getDecimalSeparator");
|
|
232
|
+
auto __result = method(_javaPart);
|
|
233
|
+
return __result->toStdString();
|
|
234
|
+
}
|
|
235
|
+
void JHybridNitroInputViewSpec::setDecimalSeparator(const std::string& decimalSeparator) {
|
|
236
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* decimalSeparator */)>("setDecimalSeparator");
|
|
237
|
+
method(_javaPart, jni::make_jstring(decimalSeparator));
|
|
238
|
+
}
|
|
239
|
+
NitroInputVariant JHybridNitroInputViewSpec::getVariant() {
|
|
240
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JNitroInputVariant>()>("getVariant");
|
|
241
|
+
auto __result = method(_javaPart);
|
|
242
|
+
return __result->toCpp();
|
|
243
|
+
}
|
|
244
|
+
void JHybridNitroInputViewSpec::setVariant(NitroInputVariant variant) {
|
|
245
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JNitroInputVariant> /* variant */)>("setVariant");
|
|
246
|
+
method(_javaPart, JNitroInputVariant::fromCpp(variant));
|
|
247
|
+
}
|
|
248
|
+
std::string JHybridNitroInputViewSpec::getLabel() {
|
|
249
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getLabel");
|
|
250
|
+
auto __result = method(_javaPart);
|
|
251
|
+
return __result->toStdString();
|
|
252
|
+
}
|
|
253
|
+
void JHybridNitroInputViewSpec::setLabel(const std::string& label) {
|
|
254
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* label */)>("setLabel");
|
|
255
|
+
method(_javaPart, jni::make_jstring(label));
|
|
256
|
+
}
|
|
257
|
+
NitroInputLabelBehavior JHybridNitroInputViewSpec::getLabelBehavior() {
|
|
258
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JNitroInputLabelBehavior>()>("getLabelBehavior");
|
|
259
|
+
auto __result = method(_javaPart);
|
|
260
|
+
return __result->toCpp();
|
|
261
|
+
}
|
|
262
|
+
void JHybridNitroInputViewSpec::setLabelBehavior(NitroInputLabelBehavior labelBehavior) {
|
|
263
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JNitroInputLabelBehavior> /* labelBehavior */)>("setLabelBehavior");
|
|
264
|
+
method(_javaPart, JNitroInputLabelBehavior::fromCpp(labelBehavior));
|
|
265
|
+
}
|
|
266
|
+
double JHybridNitroInputViewSpec::getLabelColor() {
|
|
267
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getLabelColor");
|
|
268
|
+
auto __result = method(_javaPart);
|
|
269
|
+
return __result;
|
|
270
|
+
}
|
|
271
|
+
void JHybridNitroInputViewSpec::setLabelColor(double labelColor) {
|
|
272
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* labelColor */)>("setLabelColor");
|
|
273
|
+
method(_javaPart, labelColor);
|
|
274
|
+
}
|
|
275
|
+
double JHybridNitroInputViewSpec::getLabelFocusedColor() {
|
|
276
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getLabelFocusedColor");
|
|
277
|
+
auto __result = method(_javaPart);
|
|
278
|
+
return __result;
|
|
279
|
+
}
|
|
280
|
+
void JHybridNitroInputViewSpec::setLabelFocusedColor(double labelFocusedColor) {
|
|
281
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* labelFocusedColor */)>("setLabelFocusedColor");
|
|
282
|
+
method(_javaPart, labelFocusedColor);
|
|
283
|
+
}
|
|
284
|
+
double JHybridNitroInputViewSpec::getLabelFontSize() {
|
|
285
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getLabelFontSize");
|
|
286
|
+
auto __result = method(_javaPart);
|
|
287
|
+
return __result;
|
|
288
|
+
}
|
|
289
|
+
void JHybridNitroInputViewSpec::setLabelFontSize(double labelFontSize) {
|
|
290
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* labelFontSize */)>("setLabelFontSize");
|
|
291
|
+
method(_javaPart, labelFontSize);
|
|
292
|
+
}
|
|
293
|
+
double JHybridNitroInputViewSpec::getStrokeColor() {
|
|
294
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getStrokeColor");
|
|
295
|
+
auto __result = method(_javaPart);
|
|
296
|
+
return __result;
|
|
297
|
+
}
|
|
298
|
+
void JHybridNitroInputViewSpec::setStrokeColor(double strokeColor) {
|
|
299
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* strokeColor */)>("setStrokeColor");
|
|
300
|
+
method(_javaPart, strokeColor);
|
|
301
|
+
}
|
|
302
|
+
double JHybridNitroInputViewSpec::getFocusedStrokeColor() {
|
|
303
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getFocusedStrokeColor");
|
|
304
|
+
auto __result = method(_javaPart);
|
|
305
|
+
return __result;
|
|
306
|
+
}
|
|
307
|
+
void JHybridNitroInputViewSpec::setFocusedStrokeColor(double focusedStrokeColor) {
|
|
308
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* focusedStrokeColor */)>("setFocusedStrokeColor");
|
|
309
|
+
method(_javaPart, focusedStrokeColor);
|
|
310
|
+
}
|
|
311
|
+
double JHybridNitroInputViewSpec::getStrokeWidth() {
|
|
312
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getStrokeWidth");
|
|
313
|
+
auto __result = method(_javaPart);
|
|
314
|
+
return __result;
|
|
315
|
+
}
|
|
316
|
+
void JHybridNitroInputViewSpec::setStrokeWidth(double strokeWidth) {
|
|
317
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* strokeWidth */)>("setStrokeWidth");
|
|
318
|
+
method(_javaPart, strokeWidth);
|
|
319
|
+
}
|
|
320
|
+
double JHybridNitroInputViewSpec::getCornerRadius() {
|
|
321
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getCornerRadius");
|
|
322
|
+
auto __result = method(_javaPart);
|
|
323
|
+
return __result;
|
|
324
|
+
}
|
|
325
|
+
void JHybridNitroInputViewSpec::setCornerRadius(double cornerRadius) {
|
|
326
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* cornerRadius */)>("setCornerRadius");
|
|
327
|
+
method(_javaPart, cornerRadius);
|
|
328
|
+
}
|
|
329
|
+
double JHybridNitroInputViewSpec::getFillColor() {
|
|
330
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getFillColor");
|
|
331
|
+
auto __result = method(_javaPart);
|
|
332
|
+
return __result;
|
|
333
|
+
}
|
|
334
|
+
void JHybridNitroInputViewSpec::setFillColor(double fillColor) {
|
|
335
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* fillColor */)>("setFillColor");
|
|
336
|
+
method(_javaPart, fillColor);
|
|
337
|
+
}
|
|
338
|
+
std::string JHybridNitroInputViewSpec::getPrefix() {
|
|
339
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getPrefix");
|
|
340
|
+
auto __result = method(_javaPart);
|
|
341
|
+
return __result->toStdString();
|
|
342
|
+
}
|
|
343
|
+
void JHybridNitroInputViewSpec::setPrefix(const std::string& prefix) {
|
|
344
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* prefix */)>("setPrefix");
|
|
345
|
+
method(_javaPart, jni::make_jstring(prefix));
|
|
346
|
+
}
|
|
347
|
+
std::string JHybridNitroInputViewSpec::getSuffix() {
|
|
348
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getSuffix");
|
|
349
|
+
auto __result = method(_javaPart);
|
|
350
|
+
return __result->toStdString();
|
|
351
|
+
}
|
|
352
|
+
void JHybridNitroInputViewSpec::setSuffix(const std::string& suffix) {
|
|
353
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* suffix */)>("setSuffix");
|
|
354
|
+
method(_javaPart, jni::make_jstring(suffix));
|
|
355
|
+
}
|
|
356
|
+
double JHybridNitroInputViewSpec::getPrefixFontSize() {
|
|
357
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getPrefixFontSize");
|
|
358
|
+
auto __result = method(_javaPart);
|
|
359
|
+
return __result;
|
|
360
|
+
}
|
|
361
|
+
void JHybridNitroInputViewSpec::setPrefixFontSize(double prefixFontSize) {
|
|
362
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* prefixFontSize */)>("setPrefixFontSize");
|
|
363
|
+
method(_javaPart, prefixFontSize);
|
|
364
|
+
}
|
|
365
|
+
double JHybridNitroInputViewSpec::getSuffixFontSize() {
|
|
366
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getSuffixFontSize");
|
|
367
|
+
auto __result = method(_javaPart);
|
|
368
|
+
return __result;
|
|
369
|
+
}
|
|
370
|
+
void JHybridNitroInputViewSpec::setSuffixFontSize(double suffixFontSize) {
|
|
371
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* suffixFontSize */)>("setSuffixFontSize");
|
|
372
|
+
method(_javaPart, suffixFontSize);
|
|
373
|
+
}
|
|
374
|
+
NitroInputSignPlacement JHybridNitroInputViewSpec::getSignPlacement() {
|
|
375
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JNitroInputSignPlacement>()>("getSignPlacement");
|
|
376
|
+
auto __result = method(_javaPart);
|
|
377
|
+
return __result->toCpp();
|
|
378
|
+
}
|
|
379
|
+
void JHybridNitroInputViewSpec::setSignPlacement(NitroInputSignPlacement signPlacement) {
|
|
380
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JNitroInputSignPlacement> /* signPlacement */)>("setSignPlacement");
|
|
381
|
+
method(_javaPart, JNitroInputSignPlacement::fromCpp(signPlacement));
|
|
382
|
+
}
|
|
383
|
+
NitroInputAffixAlign JHybridNitroInputViewSpec::getPrefixAlign() {
|
|
384
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JNitroInputAffixAlign>()>("getPrefixAlign");
|
|
385
|
+
auto __result = method(_javaPart);
|
|
386
|
+
return __result->toCpp();
|
|
387
|
+
}
|
|
388
|
+
void JHybridNitroInputViewSpec::setPrefixAlign(NitroInputAffixAlign prefixAlign) {
|
|
389
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JNitroInputAffixAlign> /* prefixAlign */)>("setPrefixAlign");
|
|
390
|
+
method(_javaPart, JNitroInputAffixAlign::fromCpp(prefixAlign));
|
|
391
|
+
}
|
|
392
|
+
NitroInputAffixAlign JHybridNitroInputViewSpec::getSuffixAlign() {
|
|
393
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JNitroInputAffixAlign>()>("getSuffixAlign");
|
|
394
|
+
auto __result = method(_javaPart);
|
|
395
|
+
return __result->toCpp();
|
|
396
|
+
}
|
|
397
|
+
void JHybridNitroInputViewSpec::setSuffixAlign(NitroInputAffixAlign suffixAlign) {
|
|
398
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JNitroInputAffixAlign> /* suffixAlign */)>("setSuffixAlign");
|
|
399
|
+
method(_javaPart, JNitroInputAffixAlign::fromCpp(suffixAlign));
|
|
400
|
+
}
|
|
401
|
+
std::string JHybridNitroInputViewSpec::getPlaceholder() {
|
|
402
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getPlaceholder");
|
|
403
|
+
auto __result = method(_javaPart);
|
|
404
|
+
return __result->toStdString();
|
|
405
|
+
}
|
|
406
|
+
void JHybridNitroInputViewSpec::setPlaceholder(const std::string& placeholder) {
|
|
407
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* placeholder */)>("setPlaceholder");
|
|
408
|
+
method(_javaPart, jni::make_jstring(placeholder));
|
|
409
|
+
}
|
|
410
|
+
double JHybridNitroInputViewSpec::getPlaceholderColor() {
|
|
411
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getPlaceholderColor");
|
|
412
|
+
auto __result = method(_javaPart);
|
|
413
|
+
return __result;
|
|
414
|
+
}
|
|
415
|
+
void JHybridNitroInputViewSpec::setPlaceholderColor(double placeholderColor) {
|
|
416
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* placeholderColor */)>("setPlaceholderColor");
|
|
417
|
+
method(_javaPart, placeholderColor);
|
|
418
|
+
}
|
|
419
|
+
double JHybridNitroInputViewSpec::getDuration() {
|
|
420
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getDuration");
|
|
421
|
+
auto __result = method(_javaPart);
|
|
422
|
+
return __result;
|
|
423
|
+
}
|
|
424
|
+
void JHybridNitroInputViewSpec::setDuration(double duration) {
|
|
425
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* duration */)>("setDuration");
|
|
426
|
+
method(_javaPart, duration);
|
|
427
|
+
}
|
|
428
|
+
NitroInputEasing JHybridNitroInputViewSpec::getEasing() {
|
|
429
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JNitroInputEasing>()>("getEasing");
|
|
430
|
+
auto __result = method(_javaPart);
|
|
431
|
+
return __result->toCpp();
|
|
432
|
+
}
|
|
433
|
+
void JHybridNitroInputViewSpec::setEasing(NitroInputEasing easing) {
|
|
434
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JNitroInputEasing> /* easing */)>("setEasing");
|
|
435
|
+
method(_javaPart, JNitroInputEasing::fromCpp(easing));
|
|
436
|
+
}
|
|
437
|
+
double JHybridNitroInputViewSpec::getBounce() {
|
|
438
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getBounce");
|
|
439
|
+
auto __result = method(_javaPart);
|
|
440
|
+
return __result;
|
|
441
|
+
}
|
|
442
|
+
void JHybridNitroInputViewSpec::setBounce(double bounce) {
|
|
443
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* bounce */)>("setBounce");
|
|
444
|
+
method(_javaPart, bounce);
|
|
445
|
+
}
|
|
446
|
+
NitroInputEffect JHybridNitroInputViewSpec::getEffect() {
|
|
447
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JNitroInputEffect>()>("getEffect");
|
|
448
|
+
auto __result = method(_javaPart);
|
|
449
|
+
return __result->toCpp();
|
|
450
|
+
}
|
|
451
|
+
void JHybridNitroInputViewSpec::setEffect(NitroInputEffect effect) {
|
|
452
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JNitroInputEffect> /* effect */)>("setEffect");
|
|
453
|
+
method(_javaPart, JNitroInputEffect::fromCpp(effect));
|
|
454
|
+
}
|
|
455
|
+
double JHybridNitroInputViewSpec::getFontSize() {
|
|
456
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getFontSize");
|
|
457
|
+
auto __result = method(_javaPart);
|
|
458
|
+
return __result;
|
|
459
|
+
}
|
|
460
|
+
void JHybridNitroInputViewSpec::setFontSize(double fontSize) {
|
|
461
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* fontSize */)>("setFontSize");
|
|
462
|
+
method(_javaPart, fontSize);
|
|
463
|
+
}
|
|
464
|
+
double JHybridNitroInputViewSpec::getLineHeight() {
|
|
465
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getLineHeight");
|
|
466
|
+
auto __result = method(_javaPart);
|
|
467
|
+
return __result;
|
|
468
|
+
}
|
|
469
|
+
void JHybridNitroInputViewSpec::setLineHeight(double lineHeight) {
|
|
470
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* lineHeight */)>("setLineHeight");
|
|
471
|
+
method(_javaPart, lineHeight);
|
|
472
|
+
}
|
|
473
|
+
double JHybridNitroInputViewSpec::getFontWeight() {
|
|
474
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getFontWeight");
|
|
475
|
+
auto __result = method(_javaPart);
|
|
476
|
+
return __result;
|
|
477
|
+
}
|
|
478
|
+
void JHybridNitroInputViewSpec::setFontWeight(double fontWeight) {
|
|
479
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* fontWeight */)>("setFontWeight");
|
|
480
|
+
method(_javaPart, fontWeight);
|
|
481
|
+
}
|
|
482
|
+
std::string JHybridNitroInputViewSpec::getFontFamily() {
|
|
483
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getFontFamily");
|
|
484
|
+
auto __result = method(_javaPart);
|
|
485
|
+
return __result->toStdString();
|
|
486
|
+
}
|
|
487
|
+
void JHybridNitroInputViewSpec::setFontFamily(const std::string& fontFamily) {
|
|
488
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* fontFamily */)>("setFontFamily");
|
|
489
|
+
method(_javaPart, jni::make_jstring(fontFamily));
|
|
490
|
+
}
|
|
491
|
+
double JHybridNitroInputViewSpec::getColor() {
|
|
492
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getColor");
|
|
493
|
+
auto __result = method(_javaPart);
|
|
494
|
+
return __result;
|
|
495
|
+
}
|
|
496
|
+
void JHybridNitroInputViewSpec::setColor(double color) {
|
|
497
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* color */)>("setColor");
|
|
498
|
+
method(_javaPart, color);
|
|
499
|
+
}
|
|
500
|
+
NitroInputTextAlign JHybridNitroInputViewSpec::getTextAlign() {
|
|
501
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JNitroInputTextAlign>()>("getTextAlign");
|
|
502
|
+
auto __result = method(_javaPart);
|
|
503
|
+
return __result->toCpp();
|
|
504
|
+
}
|
|
505
|
+
void JHybridNitroInputViewSpec::setTextAlign(NitroInputTextAlign textAlign) {
|
|
506
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JNitroInputTextAlign> /* textAlign */)>("setTextAlign");
|
|
507
|
+
method(_javaPart, JNitroInputTextAlign::fromCpp(textAlign));
|
|
508
|
+
}
|
|
509
|
+
bool JHybridNitroInputViewSpec::getRightToLeft() {
|
|
510
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("getRightToLeft");
|
|
511
|
+
auto __result = method(_javaPart);
|
|
512
|
+
return static_cast<bool>(__result);
|
|
513
|
+
}
|
|
514
|
+
void JHybridNitroInputViewSpec::setRightToLeft(bool rightToLeft) {
|
|
515
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jboolean /* rightToLeft */)>("setRightToLeft");
|
|
516
|
+
method(_javaPart, rightToLeft);
|
|
517
|
+
}
|
|
518
|
+
double JHybridNitroInputViewSpec::getCaretColor() {
|
|
519
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getCaretColor");
|
|
520
|
+
auto __result = method(_javaPart);
|
|
521
|
+
return __result;
|
|
522
|
+
}
|
|
523
|
+
void JHybridNitroInputViewSpec::setCaretColor(double caretColor) {
|
|
524
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* caretColor */)>("setCaretColor");
|
|
525
|
+
method(_javaPart, caretColor);
|
|
526
|
+
}
|
|
527
|
+
double JHybridNitroInputViewSpec::getSelectionColor() {
|
|
528
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getSelectionColor");
|
|
529
|
+
auto __result = method(_javaPart);
|
|
530
|
+
return __result;
|
|
531
|
+
}
|
|
532
|
+
void JHybridNitroInputViewSpec::setSelectionColor(double selectionColor) {
|
|
533
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* selectionColor */)>("setSelectionColor");
|
|
534
|
+
method(_javaPart, selectionColor);
|
|
535
|
+
}
|
|
536
|
+
bool JHybridNitroInputViewSpec::getCaretHidden() {
|
|
537
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("getCaretHidden");
|
|
538
|
+
auto __result = method(_javaPart);
|
|
539
|
+
return static_cast<bool>(__result);
|
|
540
|
+
}
|
|
541
|
+
void JHybridNitroInputViewSpec::setCaretHidden(bool caretHidden) {
|
|
542
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jboolean /* caretHidden */)>("setCaretHidden");
|
|
543
|
+
method(_javaPart, caretHidden);
|
|
544
|
+
}
|
|
545
|
+
bool JHybridNitroInputViewSpec::getAdjustsFontSizeToFit() {
|
|
546
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("getAdjustsFontSizeToFit");
|
|
547
|
+
auto __result = method(_javaPart);
|
|
548
|
+
return static_cast<bool>(__result);
|
|
549
|
+
}
|
|
550
|
+
void JHybridNitroInputViewSpec::setAdjustsFontSizeToFit(bool adjustsFontSizeToFit) {
|
|
551
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jboolean /* adjustsFontSizeToFit */)>("setAdjustsFontSizeToFit");
|
|
552
|
+
method(_javaPart, adjustsFontSizeToFit);
|
|
553
|
+
}
|
|
554
|
+
double JHybridNitroInputViewSpec::getMinimumFontScale() {
|
|
555
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getMinimumFontScale");
|
|
556
|
+
auto __result = method(_javaPart);
|
|
557
|
+
return __result;
|
|
558
|
+
}
|
|
559
|
+
void JHybridNitroInputViewSpec::setMinimumFontScale(double minimumFontScale) {
|
|
560
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* minimumFontScale */)>("setMinimumFontScale");
|
|
561
|
+
method(_javaPart, minimumFontScale);
|
|
562
|
+
}
|
|
563
|
+
bool JHybridNitroInputViewSpec::getAllowFontScaling() {
|
|
564
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("getAllowFontScaling");
|
|
565
|
+
auto __result = method(_javaPart);
|
|
566
|
+
return static_cast<bool>(__result);
|
|
567
|
+
}
|
|
568
|
+
void JHybridNitroInputViewSpec::setAllowFontScaling(bool allowFontScaling) {
|
|
569
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jboolean /* allowFontScaling */)>("setAllowFontScaling");
|
|
570
|
+
method(_javaPart, allowFontScaling);
|
|
571
|
+
}
|
|
572
|
+
double JHybridNitroInputViewSpec::getMaxFontSizeMultiplier() {
|
|
573
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getMaxFontSizeMultiplier");
|
|
574
|
+
auto __result = method(_javaPart);
|
|
575
|
+
return __result;
|
|
576
|
+
}
|
|
577
|
+
void JHybridNitroInputViewSpec::setMaxFontSizeMultiplier(double maxFontSizeMultiplier) {
|
|
578
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* maxFontSizeMultiplier */)>("setMaxFontSizeMultiplier");
|
|
579
|
+
method(_javaPart, maxFontSizeMultiplier);
|
|
580
|
+
}
|
|
581
|
+
NitroInputKeyboardType JHybridNitroInputViewSpec::getKeyboardType() {
|
|
582
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JNitroInputKeyboardType>()>("getKeyboardType");
|
|
583
|
+
auto __result = method(_javaPart);
|
|
584
|
+
return __result->toCpp();
|
|
585
|
+
}
|
|
586
|
+
void JHybridNitroInputViewSpec::setKeyboardType(NitroInputKeyboardType keyboardType) {
|
|
587
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JNitroInputKeyboardType> /* keyboardType */)>("setKeyboardType");
|
|
588
|
+
method(_javaPart, JNitroInputKeyboardType::fromCpp(keyboardType));
|
|
589
|
+
}
|
|
590
|
+
NitroInputReturnKeyType JHybridNitroInputViewSpec::getReturnKeyType() {
|
|
591
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JNitroInputReturnKeyType>()>("getReturnKeyType");
|
|
592
|
+
auto __result = method(_javaPart);
|
|
593
|
+
return __result->toCpp();
|
|
594
|
+
}
|
|
595
|
+
void JHybridNitroInputViewSpec::setReturnKeyType(NitroInputReturnKeyType returnKeyType) {
|
|
596
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JNitroInputReturnKeyType> /* returnKeyType */)>("setReturnKeyType");
|
|
597
|
+
method(_javaPart, JNitroInputReturnKeyType::fromCpp(returnKeyType));
|
|
598
|
+
}
|
|
599
|
+
NitroInputAutoCapitalize JHybridNitroInputViewSpec::getAutoCapitalize() {
|
|
600
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JNitroInputAutoCapitalize>()>("getAutoCapitalize");
|
|
601
|
+
auto __result = method(_javaPart);
|
|
602
|
+
return __result->toCpp();
|
|
603
|
+
}
|
|
604
|
+
void JHybridNitroInputViewSpec::setAutoCapitalize(NitroInputAutoCapitalize autoCapitalize) {
|
|
605
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JNitroInputAutoCapitalize> /* autoCapitalize */)>("setAutoCapitalize");
|
|
606
|
+
method(_javaPart, JNitroInputAutoCapitalize::fromCpp(autoCapitalize));
|
|
607
|
+
}
|
|
608
|
+
bool JHybridNitroInputViewSpec::getAutoCorrect() {
|
|
609
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("getAutoCorrect");
|
|
610
|
+
auto __result = method(_javaPart);
|
|
611
|
+
return static_cast<bool>(__result);
|
|
612
|
+
}
|
|
613
|
+
void JHybridNitroInputViewSpec::setAutoCorrect(bool autoCorrect) {
|
|
614
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jboolean /* autoCorrect */)>("setAutoCorrect");
|
|
615
|
+
method(_javaPart, autoCorrect);
|
|
616
|
+
}
|
|
617
|
+
bool JHybridNitroInputViewSpec::getEditable() {
|
|
618
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("getEditable");
|
|
619
|
+
auto __result = method(_javaPart);
|
|
620
|
+
return static_cast<bool>(__result);
|
|
621
|
+
}
|
|
622
|
+
void JHybridNitroInputViewSpec::setEditable(bool editable) {
|
|
623
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jboolean /* editable */)>("setEditable");
|
|
624
|
+
method(_javaPart, editable);
|
|
625
|
+
}
|
|
626
|
+
bool JHybridNitroInputViewSpec::getMultiline() {
|
|
627
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("getMultiline");
|
|
628
|
+
auto __result = method(_javaPart);
|
|
629
|
+
return static_cast<bool>(__result);
|
|
630
|
+
}
|
|
631
|
+
void JHybridNitroInputViewSpec::setMultiline(bool multiline) {
|
|
632
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jboolean /* multiline */)>("setMultiline");
|
|
633
|
+
method(_javaPart, multiline);
|
|
634
|
+
}
|
|
635
|
+
double JHybridNitroInputViewSpec::getNumberOfLines() {
|
|
636
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getNumberOfLines");
|
|
637
|
+
auto __result = method(_javaPart);
|
|
638
|
+
return __result;
|
|
639
|
+
}
|
|
640
|
+
void JHybridNitroInputViewSpec::setNumberOfLines(double numberOfLines) {
|
|
641
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* numberOfLines */)>("setNumberOfLines");
|
|
642
|
+
method(_javaPart, numberOfLines);
|
|
643
|
+
}
|
|
644
|
+
NitroInputTextAlignVertical JHybridNitroInputViewSpec::getTextAlignVertical() {
|
|
645
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JNitroInputTextAlignVertical>()>("getTextAlignVertical");
|
|
646
|
+
auto __result = method(_javaPart);
|
|
647
|
+
return __result->toCpp();
|
|
648
|
+
}
|
|
649
|
+
void JHybridNitroInputViewSpec::setTextAlignVertical(NitroInputTextAlignVertical textAlignVertical) {
|
|
650
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JNitroInputTextAlignVertical> /* textAlignVertical */)>("setTextAlignVertical");
|
|
651
|
+
method(_javaPart, JNitroInputTextAlignVertical::fromCpp(textAlignVertical));
|
|
652
|
+
}
|
|
653
|
+
bool JHybridNitroInputViewSpec::getScrollEnabled() {
|
|
654
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("getScrollEnabled");
|
|
655
|
+
auto __result = method(_javaPart);
|
|
656
|
+
return static_cast<bool>(__result);
|
|
657
|
+
}
|
|
658
|
+
void JHybridNitroInputViewSpec::setScrollEnabled(bool scrollEnabled) {
|
|
659
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jboolean /* scrollEnabled */)>("setScrollEnabled");
|
|
660
|
+
method(_javaPart, scrollEnabled);
|
|
661
|
+
}
|
|
662
|
+
bool JHybridNitroInputViewSpec::getAutoFocus() {
|
|
663
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("getAutoFocus");
|
|
664
|
+
auto __result = method(_javaPart);
|
|
665
|
+
return static_cast<bool>(__result);
|
|
666
|
+
}
|
|
667
|
+
void JHybridNitroInputViewSpec::setAutoFocus(bool autoFocus) {
|
|
668
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jboolean /* autoFocus */)>("setAutoFocus");
|
|
669
|
+
method(_javaPart, autoFocus);
|
|
670
|
+
}
|
|
671
|
+
std::string JHybridNitroInputViewSpec::getFieldTestID() {
|
|
672
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getFieldTestID");
|
|
673
|
+
auto __result = method(_javaPart);
|
|
674
|
+
return __result->toStdString();
|
|
675
|
+
}
|
|
676
|
+
void JHybridNitroInputViewSpec::setFieldTestID(const std::string& fieldTestID) {
|
|
677
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* fieldTestID */)>("setFieldTestID");
|
|
678
|
+
method(_javaPart, jni::make_jstring(fieldTestID));
|
|
679
|
+
}
|
|
680
|
+
std::string JHybridNitroInputViewSpec::getFieldAccessibilityLabel() {
|
|
681
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getFieldAccessibilityLabel");
|
|
682
|
+
auto __result = method(_javaPart);
|
|
683
|
+
return __result->toStdString();
|
|
684
|
+
}
|
|
685
|
+
void JHybridNitroInputViewSpec::setFieldAccessibilityLabel(const std::string& fieldAccessibilityLabel) {
|
|
686
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* fieldAccessibilityLabel */)>("setFieldAccessibilityLabel");
|
|
687
|
+
method(_javaPart, jni::make_jstring(fieldAccessibilityLabel));
|
|
688
|
+
}
|
|
689
|
+
NitroInputSubmitBehavior JHybridNitroInputViewSpec::getSubmitBehavior() {
|
|
690
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JNitroInputSubmitBehavior>()>("getSubmitBehavior");
|
|
691
|
+
auto __result = method(_javaPart);
|
|
692
|
+
return __result->toCpp();
|
|
693
|
+
}
|
|
694
|
+
void JHybridNitroInputViewSpec::setSubmitBehavior(NitroInputSubmitBehavior submitBehavior) {
|
|
695
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JNitroInputSubmitBehavior> /* submitBehavior */)>("setSubmitBehavior");
|
|
696
|
+
method(_javaPart, JNitroInputSubmitBehavior::fromCpp(submitBehavior));
|
|
697
|
+
}
|
|
698
|
+
bool JHybridNitroInputViewSpec::getSecureTextEntry() {
|
|
699
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("getSecureTextEntry");
|
|
700
|
+
auto __result = method(_javaPart);
|
|
701
|
+
return static_cast<bool>(__result);
|
|
702
|
+
}
|
|
703
|
+
void JHybridNitroInputViewSpec::setSecureTextEntry(bool secureTextEntry) {
|
|
704
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jboolean /* secureTextEntry */)>("setSecureTextEntry");
|
|
705
|
+
method(_javaPart, secureTextEntry);
|
|
706
|
+
}
|
|
707
|
+
NitroInputKeyboardAppearance JHybridNitroInputViewSpec::getKeyboardAppearance() {
|
|
708
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JNitroInputKeyboardAppearance>()>("getKeyboardAppearance");
|
|
709
|
+
auto __result = method(_javaPart);
|
|
710
|
+
return __result->toCpp();
|
|
711
|
+
}
|
|
712
|
+
void JHybridNitroInputViewSpec::setKeyboardAppearance(NitroInputKeyboardAppearance keyboardAppearance) {
|
|
713
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JNitroInputKeyboardAppearance> /* keyboardAppearance */)>("setKeyboardAppearance");
|
|
714
|
+
method(_javaPart, JNitroInputKeyboardAppearance::fromCpp(keyboardAppearance));
|
|
715
|
+
}
|
|
716
|
+
std::string JHybridNitroInputViewSpec::getTextContentType() {
|
|
717
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("getTextContentType");
|
|
718
|
+
auto __result = method(_javaPart);
|
|
719
|
+
return __result->toStdString();
|
|
720
|
+
}
|
|
721
|
+
void JHybridNitroInputViewSpec::setTextContentType(const std::string& textContentType) {
|
|
722
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* textContentType */)>("setTextContentType");
|
|
723
|
+
method(_javaPart, jni::make_jstring(textContentType));
|
|
724
|
+
}
|
|
725
|
+
bool JHybridNitroInputViewSpec::getEnablesReturnKeyAutomatically() {
|
|
726
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("getEnablesReturnKeyAutomatically");
|
|
727
|
+
auto __result = method(_javaPart);
|
|
728
|
+
return static_cast<bool>(__result);
|
|
729
|
+
}
|
|
730
|
+
void JHybridNitroInputViewSpec::setEnablesReturnKeyAutomatically(bool enablesReturnKeyAutomatically) {
|
|
731
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jboolean /* enablesReturnKeyAutomatically */)>("setEnablesReturnKeyAutomatically");
|
|
732
|
+
method(_javaPart, enablesReturnKeyAutomatically);
|
|
733
|
+
}
|
|
734
|
+
bool JHybridNitroInputViewSpec::getShowSoftInputOnFocus() {
|
|
735
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("getShowSoftInputOnFocus");
|
|
736
|
+
auto __result = method(_javaPart);
|
|
737
|
+
return static_cast<bool>(__result);
|
|
738
|
+
}
|
|
739
|
+
void JHybridNitroInputViewSpec::setShowSoftInputOnFocus(bool showSoftInputOnFocus) {
|
|
740
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jboolean /* showSoftInputOnFocus */)>("setShowSoftInputOnFocus");
|
|
741
|
+
method(_javaPart, showSoftInputOnFocus);
|
|
742
|
+
}
|
|
743
|
+
bool JHybridNitroInputViewSpec::getSelectTextOnFocus() {
|
|
744
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("getSelectTextOnFocus");
|
|
745
|
+
auto __result = method(_javaPart);
|
|
746
|
+
return static_cast<bool>(__result);
|
|
747
|
+
}
|
|
748
|
+
void JHybridNitroInputViewSpec::setSelectTextOnFocus(bool selectTextOnFocus) {
|
|
749
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jboolean /* selectTextOnFocus */)>("setSelectTextOnFocus");
|
|
750
|
+
method(_javaPart, selectTextOnFocus);
|
|
751
|
+
}
|
|
752
|
+
bool JHybridNitroInputViewSpec::getClearTextOnFocus() {
|
|
753
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("getClearTextOnFocus");
|
|
754
|
+
auto __result = method(_javaPart);
|
|
755
|
+
return static_cast<bool>(__result);
|
|
756
|
+
}
|
|
757
|
+
void JHybridNitroInputViewSpec::setClearTextOnFocus(bool clearTextOnFocus) {
|
|
758
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jboolean /* clearTextOnFocus */)>("setClearTextOnFocus");
|
|
759
|
+
method(_javaPart, clearTextOnFocus);
|
|
760
|
+
}
|
|
761
|
+
bool JHybridNitroInputViewSpec::getContextMenuHidden() {
|
|
762
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("getContextMenuHidden");
|
|
763
|
+
auto __result = method(_javaPart);
|
|
764
|
+
return static_cast<bool>(__result);
|
|
765
|
+
}
|
|
766
|
+
void JHybridNitroInputViewSpec::setContextMenuHidden(bool contextMenuHidden) {
|
|
767
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jboolean /* contextMenuHidden */)>("setContextMenuHidden");
|
|
768
|
+
method(_javaPart, contextMenuHidden);
|
|
769
|
+
}
|
|
770
|
+
bool JHybridNitroInputViewSpec::getSpellCheck() {
|
|
771
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("getSpellCheck");
|
|
772
|
+
auto __result = method(_javaPart);
|
|
773
|
+
return static_cast<bool>(__result);
|
|
774
|
+
}
|
|
775
|
+
void JHybridNitroInputViewSpec::setSpellCheck(bool spellCheck) {
|
|
776
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jboolean /* spellCheck */)>("setSpellCheck");
|
|
777
|
+
method(_javaPart, spellCheck);
|
|
778
|
+
}
|
|
779
|
+
double JHybridNitroInputViewSpec::getSelectionStart() {
|
|
780
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getSelectionStart");
|
|
781
|
+
auto __result = method(_javaPart);
|
|
782
|
+
return __result;
|
|
783
|
+
}
|
|
784
|
+
void JHybridNitroInputViewSpec::setSelectionStart(double selectionStart) {
|
|
785
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* selectionStart */)>("setSelectionStart");
|
|
786
|
+
method(_javaPart, selectionStart);
|
|
787
|
+
}
|
|
788
|
+
double JHybridNitroInputViewSpec::getSelectionEnd() {
|
|
789
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getSelectionEnd");
|
|
790
|
+
auto __result = method(_javaPart);
|
|
791
|
+
return __result;
|
|
792
|
+
}
|
|
793
|
+
void JHybridNitroInputViewSpec::setSelectionEnd(double selectionEnd) {
|
|
794
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* selectionEnd */)>("setSelectionEnd");
|
|
795
|
+
method(_javaPart, selectionEnd);
|
|
796
|
+
}
|
|
797
|
+
double JHybridNitroInputViewSpec::getMaxLength() {
|
|
798
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getMaxLength");
|
|
799
|
+
auto __result = method(_javaPart);
|
|
800
|
+
return __result;
|
|
801
|
+
}
|
|
802
|
+
void JHybridNitroInputViewSpec::setMaxLength(double maxLength) {
|
|
803
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* maxLength */)>("setMaxLength");
|
|
804
|
+
method(_javaPart, maxLength);
|
|
805
|
+
}
|
|
806
|
+
double JHybridNitroInputViewSpec::getTransformWorklet() {
|
|
807
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getTransformWorklet");
|
|
808
|
+
auto __result = method(_javaPart);
|
|
809
|
+
return __result;
|
|
810
|
+
}
|
|
811
|
+
void JHybridNitroInputViewSpec::setTransformWorklet(double transformWorklet) {
|
|
812
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* transformWorklet */)>("setTransformWorklet");
|
|
813
|
+
method(_javaPart, transformWorklet);
|
|
814
|
+
}
|
|
815
|
+
double JHybridNitroInputViewSpec::getOnChangeTextWorklet() {
|
|
816
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getOnChangeTextWorklet");
|
|
817
|
+
auto __result = method(_javaPart);
|
|
818
|
+
return __result;
|
|
819
|
+
}
|
|
820
|
+
void JHybridNitroInputViewSpec::setOnChangeTextWorklet(double onChangeTextWorklet) {
|
|
821
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* onChangeTextWorklet */)>("setOnChangeTextWorklet");
|
|
822
|
+
method(_javaPart, onChangeTextWorklet);
|
|
823
|
+
}
|
|
824
|
+
double JHybridNitroInputViewSpec::getOnChangeValueWorklet() {
|
|
825
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getOnChangeValueWorklet");
|
|
826
|
+
auto __result = method(_javaPart);
|
|
827
|
+
return __result;
|
|
828
|
+
}
|
|
829
|
+
void JHybridNitroInputViewSpec::setOnChangeValueWorklet(double onChangeValueWorklet) {
|
|
830
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* onChangeValueWorklet */)>("setOnChangeValueWorklet");
|
|
831
|
+
method(_javaPart, onChangeValueWorklet);
|
|
832
|
+
}
|
|
833
|
+
double JHybridNitroInputViewSpec::getOnFocusChangeWorklet() {
|
|
834
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getOnFocusChangeWorklet");
|
|
835
|
+
auto __result = method(_javaPart);
|
|
836
|
+
return __result;
|
|
837
|
+
}
|
|
838
|
+
void JHybridNitroInputViewSpec::setOnFocusChangeWorklet(double onFocusChangeWorklet) {
|
|
839
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* onFocusChangeWorklet */)>("setOnFocusChangeWorklet");
|
|
840
|
+
method(_javaPart, onFocusChangeWorklet);
|
|
841
|
+
}
|
|
842
|
+
double JHybridNitroInputViewSpec::getOnSelectionChangeWorklet() {
|
|
843
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getOnSelectionChangeWorklet");
|
|
844
|
+
auto __result = method(_javaPart);
|
|
845
|
+
return __result;
|
|
846
|
+
}
|
|
847
|
+
void JHybridNitroInputViewSpec::setOnSelectionChangeWorklet(double onSelectionChangeWorklet) {
|
|
848
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* onSelectionChangeWorklet */)>("setOnSelectionChangeWorklet");
|
|
849
|
+
method(_javaPart, onSelectionChangeWorklet);
|
|
850
|
+
}
|
|
851
|
+
double JHybridNitroInputViewSpec::getOnSubmitEditingWorklet() {
|
|
852
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getOnSubmitEditingWorklet");
|
|
853
|
+
auto __result = method(_javaPart);
|
|
854
|
+
return __result;
|
|
855
|
+
}
|
|
856
|
+
void JHybridNitroInputViewSpec::setOnSubmitEditingWorklet(double onSubmitEditingWorklet) {
|
|
857
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* onSubmitEditingWorklet */)>("setOnSubmitEditingWorklet");
|
|
858
|
+
method(_javaPart, onSubmitEditingWorklet);
|
|
859
|
+
}
|
|
860
|
+
double JHybridNitroInputViewSpec::getOnEndEditingWorklet() {
|
|
861
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getOnEndEditingWorklet");
|
|
862
|
+
auto __result = method(_javaPart);
|
|
863
|
+
return __result;
|
|
864
|
+
}
|
|
865
|
+
void JHybridNitroInputViewSpec::setOnEndEditingWorklet(double onEndEditingWorklet) {
|
|
866
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* onEndEditingWorklet */)>("setOnEndEditingWorklet");
|
|
867
|
+
method(_javaPart, onEndEditingWorklet);
|
|
868
|
+
}
|
|
869
|
+
double JHybridNitroInputViewSpec::getOnKeyPressWorklet() {
|
|
870
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getOnKeyPressWorklet");
|
|
871
|
+
auto __result = method(_javaPart);
|
|
872
|
+
return __result;
|
|
873
|
+
}
|
|
874
|
+
void JHybridNitroInputViewSpec::setOnKeyPressWorklet(double onKeyPressWorklet) {
|
|
875
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* onKeyPressWorklet */)>("setOnKeyPressWorklet");
|
|
876
|
+
method(_javaPart, onKeyPressWorklet);
|
|
877
|
+
}
|
|
878
|
+
std::optional<std::function<void(const std::string& /* text */, double /* eventCount */)>> JHybridNitroInputViewSpec::getOnChangeText() {
|
|
879
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JFunc_void_std__string_double::javaobject>()>("getOnChangeText_cxx");
|
|
880
|
+
auto __result = method(_javaPart);
|
|
881
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::string& /* text */, double /* eventCount */)> {
|
|
882
|
+
if (__result->isInstanceOf(JFunc_void_std__string_double_cxx::javaClassStatic())) [[likely]] {
|
|
883
|
+
auto downcast = jni::static_ref_cast<JFunc_void_std__string_double_cxx::javaobject>(__result);
|
|
884
|
+
return downcast->cthis()->getFunction();
|
|
885
|
+
} else {
|
|
886
|
+
auto __resultRef = jni::make_global(__result);
|
|
887
|
+
return JNICallable<JFunc_void_std__string_double, void(std::string, double)>(std::move(__resultRef));
|
|
888
|
+
}
|
|
889
|
+
}()) : std::nullopt;
|
|
890
|
+
}
|
|
891
|
+
void JHybridNitroInputViewSpec::setOnChangeText(const std::optional<std::function<void(const std::string& /* text */, double /* eventCount */)>>& onChangeText) {
|
|
892
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_std__string_double::javaobject> /* onChangeText */)>("setOnChangeText_cxx");
|
|
893
|
+
method(_javaPart, onChangeText.has_value() ? JFunc_void_std__string_double_cxx::fromCpp(onChangeText.value()) : nullptr);
|
|
894
|
+
}
|
|
895
|
+
std::optional<std::function<void(const std::string& /* formatted */, const std::string& /* extracted */, const std::string& /* tailPlaceholder */, bool /* complete */)>> JHybridNitroInputViewSpec::getOnChangeMask() {
|
|
896
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JFunc_void_std__string_std__string_std__string_bool::javaobject>()>("getOnChangeMask_cxx");
|
|
897
|
+
auto __result = method(_javaPart);
|
|
898
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::string& /* formatted */, const std::string& /* extracted */, const std::string& /* tailPlaceholder */, bool /* complete */)> {
|
|
899
|
+
if (__result->isInstanceOf(JFunc_void_std__string_std__string_std__string_bool_cxx::javaClassStatic())) [[likely]] {
|
|
900
|
+
auto downcast = jni::static_ref_cast<JFunc_void_std__string_std__string_std__string_bool_cxx::javaobject>(__result);
|
|
901
|
+
return downcast->cthis()->getFunction();
|
|
902
|
+
} else {
|
|
903
|
+
auto __resultRef = jni::make_global(__result);
|
|
904
|
+
return JNICallable<JFunc_void_std__string_std__string_std__string_bool, void(std::string, std::string, std::string, bool)>(std::move(__resultRef));
|
|
905
|
+
}
|
|
906
|
+
}()) : std::nullopt;
|
|
907
|
+
}
|
|
908
|
+
void JHybridNitroInputViewSpec::setOnChangeMask(const std::optional<std::function<void(const std::string& /* formatted */, const std::string& /* extracted */, const std::string& /* tailPlaceholder */, bool /* complete */)>>& onChangeMask) {
|
|
909
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_std__string_std__string_std__string_bool::javaobject> /* onChangeMask */)>("setOnChangeMask_cxx");
|
|
910
|
+
method(_javaPart, onChangeMask.has_value() ? JFunc_void_std__string_std__string_std__string_bool_cxx::fromCpp(onChangeMask.value()) : nullptr);
|
|
911
|
+
}
|
|
912
|
+
std::optional<std::function<void(double /* value */)>> JHybridNitroInputViewSpec::getOnChangeValue() {
|
|
913
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JFunc_void_double::javaobject>()>("getOnChangeValue_cxx");
|
|
914
|
+
auto __result = method(_javaPart);
|
|
915
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(double /* value */)> {
|
|
916
|
+
if (__result->isInstanceOf(JFunc_void_double_cxx::javaClassStatic())) [[likely]] {
|
|
917
|
+
auto downcast = jni::static_ref_cast<JFunc_void_double_cxx::javaobject>(__result);
|
|
918
|
+
return downcast->cthis()->getFunction();
|
|
919
|
+
} else {
|
|
920
|
+
auto __resultRef = jni::make_global(__result);
|
|
921
|
+
return JNICallable<JFunc_void_double, void(double)>(std::move(__resultRef));
|
|
922
|
+
}
|
|
923
|
+
}()) : std::nullopt;
|
|
924
|
+
}
|
|
925
|
+
void JHybridNitroInputViewSpec::setOnChangeValue(const std::optional<std::function<void(double /* value */)>>& onChangeValue) {
|
|
926
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_double::javaobject> /* onChangeValue */)>("setOnChangeValue_cxx");
|
|
927
|
+
method(_javaPart, onChangeValue.has_value() ? JFunc_void_double_cxx::fromCpp(onChangeValue.value()) : nullptr);
|
|
928
|
+
}
|
|
929
|
+
std::optional<std::function<void(bool /* focused */)>> JHybridNitroInputViewSpec::getOnFocusChange() {
|
|
930
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JFunc_void_bool::javaobject>()>("getOnFocusChange_cxx");
|
|
931
|
+
auto __result = method(_javaPart);
|
|
932
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(bool /* focused */)> {
|
|
933
|
+
if (__result->isInstanceOf(JFunc_void_bool_cxx::javaClassStatic())) [[likely]] {
|
|
934
|
+
auto downcast = jni::static_ref_cast<JFunc_void_bool_cxx::javaobject>(__result);
|
|
935
|
+
return downcast->cthis()->getFunction();
|
|
936
|
+
} else {
|
|
937
|
+
auto __resultRef = jni::make_global(__result);
|
|
938
|
+
return JNICallable<JFunc_void_bool, void(bool)>(std::move(__resultRef));
|
|
939
|
+
}
|
|
940
|
+
}()) : std::nullopt;
|
|
941
|
+
}
|
|
942
|
+
void JHybridNitroInputViewSpec::setOnFocusChange(const std::optional<std::function<void(bool /* focused */)>>& onFocusChange) {
|
|
943
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_bool::javaobject> /* onFocusChange */)>("setOnFocusChange_cxx");
|
|
944
|
+
method(_javaPart, onFocusChange.has_value() ? JFunc_void_bool_cxx::fromCpp(onFocusChange.value()) : nullptr);
|
|
945
|
+
}
|
|
946
|
+
std::optional<std::function<void(const std::string& /* text */)>> JHybridNitroInputViewSpec::getOnSubmitEditing() {
|
|
947
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JFunc_void_std__string::javaobject>()>("getOnSubmitEditing_cxx");
|
|
948
|
+
auto __result = method(_javaPart);
|
|
949
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::string& /* text */)> {
|
|
950
|
+
if (__result->isInstanceOf(JFunc_void_std__string_cxx::javaClassStatic())) [[likely]] {
|
|
951
|
+
auto downcast = jni::static_ref_cast<JFunc_void_std__string_cxx::javaobject>(__result);
|
|
952
|
+
return downcast->cthis()->getFunction();
|
|
953
|
+
} else {
|
|
954
|
+
auto __resultRef = jni::make_global(__result);
|
|
955
|
+
return JNICallable<JFunc_void_std__string, void(std::string)>(std::move(__resultRef));
|
|
956
|
+
}
|
|
957
|
+
}()) : std::nullopt;
|
|
958
|
+
}
|
|
959
|
+
void JHybridNitroInputViewSpec::setOnSubmitEditing(const std::optional<std::function<void(const std::string& /* text */)>>& onSubmitEditing) {
|
|
960
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_std__string::javaobject> /* onSubmitEditing */)>("setOnSubmitEditing_cxx");
|
|
961
|
+
method(_javaPart, onSubmitEditing.has_value() ? JFunc_void_std__string_cxx::fromCpp(onSubmitEditing.value()) : nullptr);
|
|
962
|
+
}
|
|
963
|
+
std::optional<std::function<void(const std::string& /* text */)>> JHybridNitroInputViewSpec::getOnEndEditing() {
|
|
964
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JFunc_void_std__string::javaobject>()>("getOnEndEditing_cxx");
|
|
965
|
+
auto __result = method(_javaPart);
|
|
966
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::string& /* text */)> {
|
|
967
|
+
if (__result->isInstanceOf(JFunc_void_std__string_cxx::javaClassStatic())) [[likely]] {
|
|
968
|
+
auto downcast = jni::static_ref_cast<JFunc_void_std__string_cxx::javaobject>(__result);
|
|
969
|
+
return downcast->cthis()->getFunction();
|
|
970
|
+
} else {
|
|
971
|
+
auto __resultRef = jni::make_global(__result);
|
|
972
|
+
return JNICallable<JFunc_void_std__string, void(std::string)>(std::move(__resultRef));
|
|
973
|
+
}
|
|
974
|
+
}()) : std::nullopt;
|
|
975
|
+
}
|
|
976
|
+
void JHybridNitroInputViewSpec::setOnEndEditing(const std::optional<std::function<void(const std::string& /* text */)>>& onEndEditing) {
|
|
977
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_std__string::javaobject> /* onEndEditing */)>("setOnEndEditing_cxx");
|
|
978
|
+
method(_javaPart, onEndEditing.has_value() ? JFunc_void_std__string_cxx::fromCpp(onEndEditing.value()) : nullptr);
|
|
979
|
+
}
|
|
980
|
+
std::optional<std::function<void(double /* start */, double /* end */)>> JHybridNitroInputViewSpec::getOnSelectionChange() {
|
|
981
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JFunc_void_double_double::javaobject>()>("getOnSelectionChange_cxx");
|
|
982
|
+
auto __result = method(_javaPart);
|
|
983
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(double /* start */, double /* end */)> {
|
|
984
|
+
if (__result->isInstanceOf(JFunc_void_double_double_cxx::javaClassStatic())) [[likely]] {
|
|
985
|
+
auto downcast = jni::static_ref_cast<JFunc_void_double_double_cxx::javaobject>(__result);
|
|
986
|
+
return downcast->cthis()->getFunction();
|
|
987
|
+
} else {
|
|
988
|
+
auto __resultRef = jni::make_global(__result);
|
|
989
|
+
return JNICallable<JFunc_void_double_double, void(double, double)>(std::move(__resultRef));
|
|
990
|
+
}
|
|
991
|
+
}()) : std::nullopt;
|
|
992
|
+
}
|
|
993
|
+
void JHybridNitroInputViewSpec::setOnSelectionChange(const std::optional<std::function<void(double /* start */, double /* end */)>>& onSelectionChange) {
|
|
994
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_double_double::javaobject> /* onSelectionChange */)>("setOnSelectionChange_cxx");
|
|
995
|
+
method(_javaPart, onSelectionChange.has_value() ? JFunc_void_double_double_cxx::fromCpp(onSelectionChange.value()) : nullptr);
|
|
996
|
+
}
|
|
997
|
+
std::optional<std::function<void(const std::string& /* key */)>> JHybridNitroInputViewSpec::getOnKeyPress() {
|
|
998
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JFunc_void_std__string::javaobject>()>("getOnKeyPress_cxx");
|
|
999
|
+
auto __result = method(_javaPart);
|
|
1000
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(const std::string& /* key */)> {
|
|
1001
|
+
if (__result->isInstanceOf(JFunc_void_std__string_cxx::javaClassStatic())) [[likely]] {
|
|
1002
|
+
auto downcast = jni::static_ref_cast<JFunc_void_std__string_cxx::javaobject>(__result);
|
|
1003
|
+
return downcast->cthis()->getFunction();
|
|
1004
|
+
} else {
|
|
1005
|
+
auto __resultRef = jni::make_global(__result);
|
|
1006
|
+
return JNICallable<JFunc_void_std__string, void(std::string)>(std::move(__resultRef));
|
|
1007
|
+
}
|
|
1008
|
+
}()) : std::nullopt;
|
|
1009
|
+
}
|
|
1010
|
+
void JHybridNitroInputViewSpec::setOnKeyPress(const std::optional<std::function<void(const std::string& /* key */)>>& onKeyPress) {
|
|
1011
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_std__string::javaobject> /* onKeyPress */)>("setOnKeyPress_cxx");
|
|
1012
|
+
method(_javaPart, onKeyPress.has_value() ? JFunc_void_std__string_cxx::fromCpp(onKeyPress.value()) : nullptr);
|
|
1013
|
+
}
|
|
1014
|
+
std::optional<std::function<void(double /* width */, double /* height */)>> JHybridNitroInputViewSpec::getOnSizeChange() {
|
|
1015
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<JFunc_void_double_double::javaobject>()>("getOnSizeChange_cxx");
|
|
1016
|
+
auto __result = method(_javaPart);
|
|
1017
|
+
return __result != nullptr ? std::make_optional([&]() -> std::function<void(double /* width */, double /* height */)> {
|
|
1018
|
+
if (__result->isInstanceOf(JFunc_void_double_double_cxx::javaClassStatic())) [[likely]] {
|
|
1019
|
+
auto downcast = jni::static_ref_cast<JFunc_void_double_double_cxx::javaobject>(__result);
|
|
1020
|
+
return downcast->cthis()->getFunction();
|
|
1021
|
+
} else {
|
|
1022
|
+
auto __resultRef = jni::make_global(__result);
|
|
1023
|
+
return JNICallable<JFunc_void_double_double, void(double, double)>(std::move(__resultRef));
|
|
1024
|
+
}
|
|
1025
|
+
}()) : std::nullopt;
|
|
1026
|
+
}
|
|
1027
|
+
void JHybridNitroInputViewSpec::setOnSizeChange(const std::optional<std::function<void(double /* width */, double /* height */)>>& onSizeChange) {
|
|
1028
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<JFunc_void_double_double::javaobject> /* onSizeChange */)>("setOnSizeChange_cxx");
|
|
1029
|
+
method(_javaPart, onSizeChange.has_value() ? JFunc_void_double_double_cxx::fromCpp(onSizeChange.value()) : nullptr);
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
// Methods
|
|
1033
|
+
void JHybridNitroInputViewSpec::focus() {
|
|
1034
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void()>("focus");
|
|
1035
|
+
method(_javaPart);
|
|
1036
|
+
}
|
|
1037
|
+
void JHybridNitroInputViewSpec::blur() {
|
|
1038
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void()>("blur");
|
|
1039
|
+
method(_javaPart);
|
|
1040
|
+
}
|
|
1041
|
+
void JHybridNitroInputViewSpec::clear() {
|
|
1042
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void()>("clear");
|
|
1043
|
+
method(_javaPart);
|
|
1044
|
+
}
|
|
1045
|
+
void JHybridNitroInputViewSpec::replaceText(const std::string& text) {
|
|
1046
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(jni::alias_ref<jni::JString> /* text */)>("replaceText");
|
|
1047
|
+
method(_javaPart, jni::make_jstring(text));
|
|
1048
|
+
}
|
|
1049
|
+
void JHybridNitroInputViewSpec::setValue(double value) {
|
|
1050
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* value */)>("setValue");
|
|
1051
|
+
method(_javaPart, value);
|
|
1052
|
+
}
|
|
1053
|
+
std::string JHybridNitroInputViewSpec::currentText() {
|
|
1054
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jni::local_ref<jni::JString>()>("currentText");
|
|
1055
|
+
auto __result = method(_javaPart);
|
|
1056
|
+
return __result->toStdString();
|
|
1057
|
+
}
|
|
1058
|
+
double JHybridNitroInputViewSpec::getValue() {
|
|
1059
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<double()>("getValue");
|
|
1060
|
+
auto __result = method(_javaPart);
|
|
1061
|
+
return __result;
|
|
1062
|
+
}
|
|
1063
|
+
bool JHybridNitroInputViewSpec::isFocused() {
|
|
1064
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<jboolean()>("isFocused");
|
|
1065
|
+
auto __result = method(_javaPart);
|
|
1066
|
+
return static_cast<bool>(__result);
|
|
1067
|
+
}
|
|
1068
|
+
void JHybridNitroInputViewSpec::setSelection(double start, double end) {
|
|
1069
|
+
static const auto method = _javaPart->javaClassStatic()->getMethod<void(double /* start */, double /* end */)>("setSelection");
|
|
1070
|
+
method(_javaPart, start, end);
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
} // namespace margelo::nitro::nitroinput
|