react-native-nitro-input 0.3.0 → 0.3.2
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 +80 -0
- package/README.md +120 -5
- package/android/src/main/cpp/JMaskEngine.cpp +45 -0
- package/android/src/main/cpp/JMaskEngine.hpp +9 -0
- package/android/src/main/cpp/JReflowEngine.cpp +32 -0
- package/android/src/main/cpp/JReflowEngine.hpp +13 -0
- package/android/src/main/cpp/JRollingEngine.cpp +42 -2
- package/android/src/main/cpp/JRollingEngine.hpp +9 -1
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroInputView.kt +24 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroNumberFormatPlatform.kt +76 -1
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroNumberView.kt +88 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroTextMeasure.kt +25 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroTextView.kt +140 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/MaskEngine.kt +16 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroInputPackage.kt +2 -1
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroInputView.kt +96 -6
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroNumberView.kt +388 -136
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroTextView.kt +868 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/ReflowEngine.kt +21 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/RollingEngine.kt +13 -2
- package/cpp/MaskEngine.cpp +294 -33
- package/cpp/MaskEngine.hpp +68 -0
- package/cpp/RollingEngine.cpp +92 -8
- package/cpp/RollingEngine.hpp +36 -2
- package/ios/HybridNitroInputView.swift +18 -0
- package/ios/HybridNitroNumberFormatPlatform.swift +87 -9
- package/ios/HybridNitroNumberView.swift +82 -1
- package/ios/HybridNitroTextView.swift +134 -0
- package/ios/NitroInputView.swift +125 -7
- package/ios/NitroNumberView.swift +368 -135
- package/ios/NitroTextView.swift +583 -0
- package/lib/commonjs/nitrogen/generated/shared/json/NitroInputViewConfig.json +6 -0
- package/lib/commonjs/nitrogen/generated/shared/json/NitroNumberViewConfig.json +20 -0
- package/lib/commonjs/nitrogen/generated/shared/json/NitroTextViewConfig.json +30 -0
- package/lib/commonjs/src/NitroInput.js +15 -2
- package/lib/commonjs/src/NitroNumber.js +52 -3
- package/lib/commonjs/src/NitroText.js +138 -0
- package/lib/commonjs/src/NitroTime.js +65 -0
- package/lib/commonjs/src/formatProps.js +76 -16
- package/lib/commonjs/src/index.js +6 -1
- package/lib/commonjs/src/specs/NitroText.nitro.js +2 -0
- package/lib/module/nitrogen/generated/shared/json/NitroInputViewConfig.json +6 -0
- package/lib/module/nitrogen/generated/shared/json/NitroNumberViewConfig.json +20 -0
- package/lib/module/nitrogen/generated/shared/json/NitroTextViewConfig.json +30 -0
- package/lib/module/src/NitroInput.js +15 -2
- package/lib/module/src/NitroNumber.js +53 -4
- package/lib/module/src/NitroText.js +98 -0
- package/lib/module/src/NitroTime.js +29 -0
- package/lib/module/src/formatProps.js +76 -17
- package/lib/module/src/index.js +2 -0
- package/lib/module/src/specs/NitroText.nitro.js +1 -0
- package/lib/typescript/src/NitroInput.d.ts +39 -1
- package/lib/typescript/src/NitroNumber.d.ts +79 -1
- package/lib/typescript/src/NitroText.d.ts +67 -0
- package/lib/typescript/src/NitroTime.d.ts +19 -0
- package/lib/typescript/src/formatProps.d.ts +30 -4
- package/lib/typescript/src/index.d.ts +5 -2
- package/lib/typescript/src/specs/NitroInput.nitro.d.ts +43 -0
- package/lib/typescript/src/specs/NitroNumber.nitro.d.ts +67 -0
- package/lib/typescript/src/specs/NitroText.nitro.d.ts +60 -0
- package/nitro.json +20 -0
- package/nitrogen/generated/android/NitroInput+autolinking.cmake +6 -0
- package/nitrogen/generated/android/NitroInputOnLoad.cpp +34 -0
- package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.cpp +102 -0
- package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.hpp +12 -0
- package/nitrogen/generated/android/c++/JHybridNitroNumberViewSpec.cpp +243 -0
- package/nitrogen/generated/android/c++/JHybridNitroNumberViewSpec.hpp +40 -0
- package/nitrogen/generated/android/c++/JHybridNitroTextMeasureSpec.cpp +58 -0
- package/nitrogen/generated/android/c++/JHybridNitroTextMeasureSpec.hpp +64 -0
- package/nitrogen/generated/android/c++/JHybridNitroTextViewSpec.cpp +253 -0
- package/nitrogen/generated/android/c++/JHybridNitroTextViewSpec.hpp +104 -0
- package/nitrogen/generated/android/c++/JNitroInputCharacterMapping.hpp +61 -0
- package/nitrogen/generated/android/c++/JNitroInputMaskAffinity.hpp +64 -0
- package/nitrogen/generated/android/c++/JNitroInputTextCase.hpp +61 -0
- package/nitrogen/generated/android/c++/JNitroNumberShimmerDirection.hpp +61 -0
- package/nitrogen/generated/android/c++/JNitroNumberSignDisplay.hpp +67 -0
- package/nitrogen/generated/android/c++/views/JHybridNitroInputViewStateUpdater.cpp +30 -0
- package/nitrogen/generated/android/c++/views/JHybridNitroNumberViewStateUpdater.cpp +100 -0
- package/nitrogen/generated/android/c++/views/JHybridNitroTextViewStateUpdater.cpp +174 -0
- package/nitrogen/generated/android/c++/views/JHybridNitroTextViewStateUpdater.hpp +54 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroInputViewSpec.kt +36 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroNumberViewSpec.kt +136 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroTextMeasureSpec.kt +60 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroTextViewSpec.kt +179 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputCharacterMapping.kt +56 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputMaskAffinity.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputTextCase.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroNumberShimmerDirection.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroNumberSignDisplay.kt +26 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/views/HybridNitroTextViewManager.kt +96 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/views/HybridNitroTextViewStateUpdater.kt +23 -0
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.cpp +34 -0
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.hpp +146 -11
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Umbrella.hpp +25 -0
- package/nitrogen/generated/ios/NitroInputAutolinking.mm +16 -0
- package/nitrogen/generated/ios/NitroInputAutolinking.swift +24 -0
- package/nitrogen/generated/ios/c++/HybridNitroInputViewSpecSwift.hpp +50 -0
- package/nitrogen/generated/ios/c++/HybridNitroNumberViewSpecSwift.hpp +146 -0
- package/nitrogen/generated/ios/c++/HybridNitroTextMeasureSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridNitroTextMeasureSpecSwift.hpp +90 -0
- package/nitrogen/generated/ios/c++/HybridNitroTextViewSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridNitroTextViewSpecSwift.hpp +233 -0
- package/nitrogen/generated/ios/c++/views/HybridNitroInputViewComponent.mm +36 -0
- package/nitrogen/generated/ios/c++/views/HybridNitroNumberViewComponent.mm +120 -0
- package/nitrogen/generated/ios/c++/views/HybridNitroTextViewComponent.mm +264 -0
- package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec.swift +6 -0
- package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec_cxx.swift +78 -0
- package/nitrogen/generated/ios/swift/HybridNitroNumberViewSpec.swift +20 -0
- package/nitrogen/generated/ios/swift/HybridNitroNumberViewSpec_cxx.swift +493 -0
- package/nitrogen/generated/ios/swift/HybridNitroTextMeasureSpec.swift +56 -0
- package/nitrogen/generated/ios/swift/HybridNitroTextMeasureSpec_cxx.swift +150 -0
- package/nitrogen/generated/ios/swift/HybridNitroTextViewSpec.swift +75 -0
- package/nitrogen/generated/ios/swift/HybridNitroTextViewSpec_cxx.swift +608 -0
- package/nitrogen/generated/ios/swift/NitroInputCharacterMapping.swift +34 -0
- package/nitrogen/generated/ios/swift/NitroInputMaskAffinity.swift +48 -0
- package/nitrogen/generated/ios/swift/NitroInputTextCase.swift +44 -0
- package/nitrogen/generated/ios/swift/NitroNumberShimmerDirection.swift +44 -0
- package/nitrogen/generated/ios/swift/NitroNumberSignDisplay.swift +52 -0
- package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.cpp +12 -0
- package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.hpp +21 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberViewSpec.cpp +40 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberViewSpec.hpp +46 -0
- package/nitrogen/generated/shared/c++/HybridNitroTextMeasureSpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridNitroTextMeasureSpec.hpp +63 -0
- package/nitrogen/generated/shared/c++/HybridNitroTextViewSpec.cpp +62 -0
- package/nitrogen/generated/shared/c++/HybridNitroTextViewSpec.hpp +115 -0
- package/nitrogen/generated/shared/c++/NitroInputCharacterMapping.hpp +87 -0
- package/nitrogen/generated/shared/c++/NitroInputMaskAffinity.hpp +84 -0
- package/nitrogen/generated/shared/c++/NitroInputTextCase.hpp +80 -0
- package/nitrogen/generated/shared/c++/NitroNumberShimmerDirection.hpp +80 -0
- package/nitrogen/generated/shared/c++/NitroNumberSignDisplay.hpp +88 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.cpp +12 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.hpp +21 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroNumberViewComponent.cpp +40 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroNumberViewComponent.hpp +62 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroTextViewComponent.cpp +74 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroTextViewComponent.hpp +149 -0
- package/nitrogen/generated/shared/json/NitroInputViewConfig.json +6 -0
- package/nitrogen/generated/shared/json/NitroNumberViewConfig.json +20 -0
- package/nitrogen/generated/shared/json/NitroTextViewConfig.json +30 -0
- package/package.json +2 -2
- package/src/NitroInput.tsx +73 -0
- package/src/NitroNumber.tsx +183 -9
- package/src/NitroText.tsx +166 -0
- package/src/NitroTime.tsx +68 -0
- package/src/formatProps.ts +108 -18
- package/src/index.ts +8 -0
- package/src/specs/NitroInput.nitro.ts +46 -0
- package/src/specs/NitroNumber.nitro.ts +69 -0
- package/src/specs/NitroText.nitro.ts +65 -0
|
@@ -16,6 +16,16 @@ namespace margelo::nitro::nitroinput { class HybridNitroNumberFormatPlatformSpec
|
|
|
16
16
|
namespace margelo::nitro::nitroinput { class HybridNitroNumberViewSpec; }
|
|
17
17
|
// Forward declaration of `HybridNitroPlatformNumberFormatterSpec` to properly resolve imports.
|
|
18
18
|
namespace margelo::nitro::nitroinput { class HybridNitroPlatformNumberFormatterSpec; }
|
|
19
|
+
// Forward declaration of `HybridNitroTextMeasureSpec` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::nitroinput { class HybridNitroTextMeasureSpec; }
|
|
21
|
+
// Forward declaration of `HybridNitroTextViewSpec` to properly resolve imports.
|
|
22
|
+
namespace margelo::nitro::nitroinput { class HybridNitroTextViewSpec; }
|
|
23
|
+
// Forward declaration of `NitroInputCharacterMapping` to properly resolve imports.
|
|
24
|
+
namespace margelo::nitro::nitroinput { struct NitroInputCharacterMapping; }
|
|
25
|
+
// Forward declaration of `NitroInputEasing` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputEasing; }
|
|
27
|
+
// Forward declaration of `NitroInputEffect` to properly resolve imports.
|
|
28
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputEffect; }
|
|
19
29
|
// Forward declaration of `NitroInputNotation` to properly resolve imports.
|
|
20
30
|
namespace margelo::nitro::nitroinput { struct NitroInputNotation; }
|
|
21
31
|
// Forward declaration of `NitroNumberAffixAlign` to properly resolve imports.
|
|
@@ -26,6 +36,10 @@ namespace margelo::nitro::nitroinput { enum class NitroNumberDirection; }
|
|
|
26
36
|
namespace margelo::nitro::nitroinput { enum class NitroNumberEasing; }
|
|
27
37
|
// Forward declaration of `NitroNumberRevealStyle` to properly resolve imports.
|
|
28
38
|
namespace margelo::nitro::nitroinput { enum class NitroNumberRevealStyle; }
|
|
39
|
+
// Forward declaration of `NitroNumberShimmerDirection` to properly resolve imports.
|
|
40
|
+
namespace margelo::nitro::nitroinput { enum class NitroNumberShimmerDirection; }
|
|
41
|
+
// Forward declaration of `NitroNumberSignDisplay` to properly resolve imports.
|
|
42
|
+
namespace margelo::nitro::nitroinput { enum class NitroNumberSignDisplay; }
|
|
29
43
|
// Forward declaration of `NitroNumberTextAlign` to properly resolve imports.
|
|
30
44
|
namespace margelo::nitro::nitroinput { enum class NitroNumberTextAlign; }
|
|
31
45
|
// Forward declaration of `NitroNumberTransition` to properly resolve imports.
|
|
@@ -40,17 +54,28 @@ namespace NitroInput { class HybridNitroNumberFormatPlatformSpec_cxx; }
|
|
|
40
54
|
namespace NitroInput { class HybridNitroNumberViewSpec_cxx; }
|
|
41
55
|
// Forward declaration of `HybridNitroPlatformNumberFormatterSpec_cxx` to properly resolve imports.
|
|
42
56
|
namespace NitroInput { class HybridNitroPlatformNumberFormatterSpec_cxx; }
|
|
57
|
+
// Forward declaration of `HybridNitroTextMeasureSpec_cxx` to properly resolve imports.
|
|
58
|
+
namespace NitroInput { class HybridNitroTextMeasureSpec_cxx; }
|
|
59
|
+
// Forward declaration of `HybridNitroTextViewSpec_cxx` to properly resolve imports.
|
|
60
|
+
namespace NitroInput { class HybridNitroTextViewSpec_cxx; }
|
|
43
61
|
|
|
44
62
|
// Include C++ defined types
|
|
45
63
|
#include "HybridNitroInputViewSpec.hpp"
|
|
46
64
|
#include "HybridNitroNumberFormatPlatformSpec.hpp"
|
|
47
65
|
#include "HybridNitroNumberViewSpec.hpp"
|
|
48
66
|
#include "HybridNitroPlatformNumberFormatterSpec.hpp"
|
|
67
|
+
#include "HybridNitroTextMeasureSpec.hpp"
|
|
68
|
+
#include "HybridNitroTextViewSpec.hpp"
|
|
69
|
+
#include "NitroInputCharacterMapping.hpp"
|
|
70
|
+
#include "NitroInputEasing.hpp"
|
|
71
|
+
#include "NitroInputEffect.hpp"
|
|
49
72
|
#include "NitroInputNotation.hpp"
|
|
50
73
|
#include "NitroNumberAffixAlign.hpp"
|
|
51
74
|
#include "NitroNumberDirection.hpp"
|
|
52
75
|
#include "NitroNumberEasing.hpp"
|
|
53
76
|
#include "NitroNumberRevealStyle.hpp"
|
|
77
|
+
#include "NitroNumberShimmerDirection.hpp"
|
|
78
|
+
#include "NitroNumberSignDisplay.hpp"
|
|
54
79
|
#include "NitroNumberTextAlign.hpp"
|
|
55
80
|
#include "NitroNumberTransition.hpp"
|
|
56
81
|
#include <NitroModules/Result.hpp>
|
|
@@ -78,6 +103,28 @@ namespace margelo::nitro::nitroinput::bridge::swift {
|
|
|
78
103
|
return vector;
|
|
79
104
|
}
|
|
80
105
|
|
|
106
|
+
// pragma MARK: std::vector<std::string>
|
|
107
|
+
/**
|
|
108
|
+
* Specialized version of `std::vector<std::string>`.
|
|
109
|
+
*/
|
|
110
|
+
using std__vector_std__string_ = std::vector<std::string>;
|
|
111
|
+
inline std::vector<std::string> create_std__vector_std__string_(size_t size) noexcept {
|
|
112
|
+
std::vector<std::string> vector;
|
|
113
|
+
vector.reserve(size);
|
|
114
|
+
return vector;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// pragma MARK: std::vector<NitroInputCharacterMapping>
|
|
118
|
+
/**
|
|
119
|
+
* Specialized version of `std::vector<NitroInputCharacterMapping>`.
|
|
120
|
+
*/
|
|
121
|
+
using std__vector_NitroInputCharacterMapping_ = std::vector<NitroInputCharacterMapping>;
|
|
122
|
+
inline std::vector<NitroInputCharacterMapping> create_std__vector_NitroInputCharacterMapping_(size_t size) noexcept {
|
|
123
|
+
std::vector<NitroInputCharacterMapping> vector;
|
|
124
|
+
vector.reserve(size);
|
|
125
|
+
return vector;
|
|
126
|
+
}
|
|
127
|
+
|
|
81
128
|
// pragma MARK: std::function<void(const std::string& /* text */, double /* eventCount */)>
|
|
82
129
|
/**
|
|
83
130
|
* Specialized version of `std::function<void(const std::string&, double)>`.
|
|
@@ -509,6 +556,21 @@ namespace margelo::nitro::nitroinput::bridge::swift {
|
|
|
509
556
|
return optional.value();
|
|
510
557
|
}
|
|
511
558
|
|
|
559
|
+
// pragma MARK: std::optional<NitroNumberShimmerDirection>
|
|
560
|
+
/**
|
|
561
|
+
* Specialized version of `std::optional<NitroNumberShimmerDirection>`.
|
|
562
|
+
*/
|
|
563
|
+
using std__optional_NitroNumberShimmerDirection_ = std::optional<NitroNumberShimmerDirection>;
|
|
564
|
+
inline std::optional<NitroNumberShimmerDirection> create_std__optional_NitroNumberShimmerDirection_(const NitroNumberShimmerDirection& value) noexcept {
|
|
565
|
+
return std::optional<NitroNumberShimmerDirection>(value);
|
|
566
|
+
}
|
|
567
|
+
inline bool has_value_std__optional_NitroNumberShimmerDirection_(const std::optional<NitroNumberShimmerDirection>& optional) noexcept {
|
|
568
|
+
return optional.has_value();
|
|
569
|
+
}
|
|
570
|
+
inline NitroNumberShimmerDirection get_std__optional_NitroNumberShimmerDirection_(const std::optional<NitroNumberShimmerDirection>& optional) noexcept {
|
|
571
|
+
return optional.value();
|
|
572
|
+
}
|
|
573
|
+
|
|
512
574
|
// pragma MARK: std::optional<NitroNumberAffixAlign>
|
|
513
575
|
/**
|
|
514
576
|
* Specialized version of `std::optional<NitroNumberAffixAlign>`.
|
|
@@ -524,6 +586,36 @@ namespace margelo::nitro::nitroinput::bridge::swift {
|
|
|
524
586
|
return optional.value();
|
|
525
587
|
}
|
|
526
588
|
|
|
589
|
+
// pragma MARK: std::optional<NitroNumberSignDisplay>
|
|
590
|
+
/**
|
|
591
|
+
* Specialized version of `std::optional<NitroNumberSignDisplay>`.
|
|
592
|
+
*/
|
|
593
|
+
using std__optional_NitroNumberSignDisplay_ = std::optional<NitroNumberSignDisplay>;
|
|
594
|
+
inline std::optional<NitroNumberSignDisplay> create_std__optional_NitroNumberSignDisplay_(const NitroNumberSignDisplay& value) noexcept {
|
|
595
|
+
return std::optional<NitroNumberSignDisplay>(value);
|
|
596
|
+
}
|
|
597
|
+
inline bool has_value_std__optional_NitroNumberSignDisplay_(const std::optional<NitroNumberSignDisplay>& optional) noexcept {
|
|
598
|
+
return optional.has_value();
|
|
599
|
+
}
|
|
600
|
+
inline NitroNumberSignDisplay get_std__optional_NitroNumberSignDisplay_(const std::optional<NitroNumberSignDisplay>& optional) noexcept {
|
|
601
|
+
return optional.value();
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
// pragma MARK: std::optional<std::vector<std::string>>
|
|
605
|
+
/**
|
|
606
|
+
* Specialized version of `std::optional<std::vector<std::string>>`.
|
|
607
|
+
*/
|
|
608
|
+
using std__optional_std__vector_std__string__ = std::optional<std::vector<std::string>>;
|
|
609
|
+
inline std::optional<std::vector<std::string>> create_std__optional_std__vector_std__string__(const std::vector<std::string>& value) noexcept {
|
|
610
|
+
return std::optional<std::vector<std::string>>(value);
|
|
611
|
+
}
|
|
612
|
+
inline bool has_value_std__optional_std__vector_std__string__(const std::optional<std::vector<std::string>>& optional) noexcept {
|
|
613
|
+
return optional.has_value();
|
|
614
|
+
}
|
|
615
|
+
inline std::vector<std::string> get_std__optional_std__vector_std__string__(const std::optional<std::vector<std::string>>& optional) noexcept {
|
|
616
|
+
return optional.value();
|
|
617
|
+
}
|
|
618
|
+
|
|
527
619
|
// pragma MARK: std::optional<NitroNumberTextAlign>
|
|
528
620
|
/**
|
|
529
621
|
* Specialized version of `std::optional<NitroNumberTextAlign>`.
|
|
@@ -603,6 +695,60 @@ namespace margelo::nitro::nitroinput::bridge::swift {
|
|
|
603
695
|
using std__weak_ptr_HybridNitroNumberViewSpec_ = std::weak_ptr<HybridNitroNumberViewSpec>;
|
|
604
696
|
inline std__weak_ptr_HybridNitroNumberViewSpec_ weakify_std__shared_ptr_HybridNitroNumberViewSpec_(const std::shared_ptr<HybridNitroNumberViewSpec>& strong) noexcept { return strong; }
|
|
605
697
|
|
|
698
|
+
// pragma MARK: std::shared_ptr<HybridNitroTextMeasureSpec>
|
|
699
|
+
/**
|
|
700
|
+
* Specialized version of `std::shared_ptr<HybridNitroTextMeasureSpec>`.
|
|
701
|
+
*/
|
|
702
|
+
using std__shared_ptr_HybridNitroTextMeasureSpec_ = std::shared_ptr<HybridNitroTextMeasureSpec>;
|
|
703
|
+
std::shared_ptr<HybridNitroTextMeasureSpec> create_std__shared_ptr_HybridNitroTextMeasureSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
704
|
+
void* NON_NULL get_std__shared_ptr_HybridNitroTextMeasureSpec_(std__shared_ptr_HybridNitroTextMeasureSpec_ cppType);
|
|
705
|
+
|
|
706
|
+
// pragma MARK: std::weak_ptr<HybridNitroTextMeasureSpec>
|
|
707
|
+
using std__weak_ptr_HybridNitroTextMeasureSpec_ = std::weak_ptr<HybridNitroTextMeasureSpec>;
|
|
708
|
+
inline std__weak_ptr_HybridNitroTextMeasureSpec_ weakify_std__shared_ptr_HybridNitroTextMeasureSpec_(const std::shared_ptr<HybridNitroTextMeasureSpec>& strong) noexcept { return strong; }
|
|
709
|
+
|
|
710
|
+
// pragma MARK: std::optional<NitroInputEasing>
|
|
711
|
+
/**
|
|
712
|
+
* Specialized version of `std::optional<NitroInputEasing>`.
|
|
713
|
+
*/
|
|
714
|
+
using std__optional_NitroInputEasing_ = std::optional<NitroInputEasing>;
|
|
715
|
+
inline std::optional<NitroInputEasing> create_std__optional_NitroInputEasing_(const NitroInputEasing& value) noexcept {
|
|
716
|
+
return std::optional<NitroInputEasing>(value);
|
|
717
|
+
}
|
|
718
|
+
inline bool has_value_std__optional_NitroInputEasing_(const std::optional<NitroInputEasing>& optional) noexcept {
|
|
719
|
+
return optional.has_value();
|
|
720
|
+
}
|
|
721
|
+
inline NitroInputEasing get_std__optional_NitroInputEasing_(const std::optional<NitroInputEasing>& optional) noexcept {
|
|
722
|
+
return optional.value();
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
// pragma MARK: std::optional<NitroInputEffect>
|
|
726
|
+
/**
|
|
727
|
+
* Specialized version of `std::optional<NitroInputEffect>`.
|
|
728
|
+
*/
|
|
729
|
+
using std__optional_NitroInputEffect_ = std::optional<NitroInputEffect>;
|
|
730
|
+
inline std::optional<NitroInputEffect> create_std__optional_NitroInputEffect_(const NitroInputEffect& value) noexcept {
|
|
731
|
+
return std::optional<NitroInputEffect>(value);
|
|
732
|
+
}
|
|
733
|
+
inline bool has_value_std__optional_NitroInputEffect_(const std::optional<NitroInputEffect>& optional) noexcept {
|
|
734
|
+
return optional.has_value();
|
|
735
|
+
}
|
|
736
|
+
inline NitroInputEffect get_std__optional_NitroInputEffect_(const std::optional<NitroInputEffect>& optional) noexcept {
|
|
737
|
+
return optional.value();
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
// pragma MARK: std::shared_ptr<HybridNitroTextViewSpec>
|
|
741
|
+
/**
|
|
742
|
+
* Specialized version of `std::shared_ptr<HybridNitroTextViewSpec>`.
|
|
743
|
+
*/
|
|
744
|
+
using std__shared_ptr_HybridNitroTextViewSpec_ = std::shared_ptr<HybridNitroTextViewSpec>;
|
|
745
|
+
std::shared_ptr<HybridNitroTextViewSpec> create_std__shared_ptr_HybridNitroTextViewSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
746
|
+
void* NON_NULL get_std__shared_ptr_HybridNitroTextViewSpec_(std__shared_ptr_HybridNitroTextViewSpec_ cppType);
|
|
747
|
+
|
|
748
|
+
// pragma MARK: std::weak_ptr<HybridNitroTextViewSpec>
|
|
749
|
+
using std__weak_ptr_HybridNitroTextViewSpec_ = std::weak_ptr<HybridNitroTextViewSpec>;
|
|
750
|
+
inline std__weak_ptr_HybridNitroTextViewSpec_ weakify_std__shared_ptr_HybridNitroTextViewSpec_(const std::shared_ptr<HybridNitroTextViewSpec>& strong) noexcept { return strong; }
|
|
751
|
+
|
|
606
752
|
// pragma MARK: std::shared_ptr<HybridNitroPlatformNumberFormatterSpec>
|
|
607
753
|
/**
|
|
608
754
|
* Specialized version of `std::shared_ptr<HybridNitroPlatformNumberFormatterSpec>`.
|
|
@@ -615,17 +761,6 @@ namespace margelo::nitro::nitroinput::bridge::swift {
|
|
|
615
761
|
using std__weak_ptr_HybridNitroPlatformNumberFormatterSpec_ = std::weak_ptr<HybridNitroPlatformNumberFormatterSpec>;
|
|
616
762
|
inline std__weak_ptr_HybridNitroPlatformNumberFormatterSpec_ weakify_std__shared_ptr_HybridNitroPlatformNumberFormatterSpec_(const std::shared_ptr<HybridNitroPlatformNumberFormatterSpec>& strong) noexcept { return strong; }
|
|
617
763
|
|
|
618
|
-
// pragma MARK: std::vector<std::string>
|
|
619
|
-
/**
|
|
620
|
-
* Specialized version of `std::vector<std::string>`.
|
|
621
|
-
*/
|
|
622
|
-
using std__vector_std__string_ = std::vector<std::string>;
|
|
623
|
-
inline std::vector<std::string> create_std__vector_std__string_(size_t size) noexcept {
|
|
624
|
-
std::vector<std::string> vector;
|
|
625
|
-
vector.reserve(size);
|
|
626
|
-
return vector;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
764
|
// pragma MARK: std::shared_ptr<HybridNitroNumberFormatPlatformSpec>
|
|
630
765
|
/**
|
|
631
766
|
* Specialized version of `std::shared_ptr<HybridNitroNumberFormatPlatformSpec>`.
|
|
@@ -16,10 +16,16 @@ namespace margelo::nitro::nitroinput { class HybridNitroNumberFormatPlatformSpec
|
|
|
16
16
|
namespace margelo::nitro::nitroinput { class HybridNitroNumberViewSpec; }
|
|
17
17
|
// Forward declaration of `HybridNitroPlatformNumberFormatterSpec` to properly resolve imports.
|
|
18
18
|
namespace margelo::nitro::nitroinput { class HybridNitroPlatformNumberFormatterSpec; }
|
|
19
|
+
// Forward declaration of `HybridNitroTextMeasureSpec` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::nitroinput { class HybridNitroTextMeasureSpec; }
|
|
21
|
+
// Forward declaration of `HybridNitroTextViewSpec` to properly resolve imports.
|
|
22
|
+
namespace margelo::nitro::nitroinput { class HybridNitroTextViewSpec; }
|
|
19
23
|
// Forward declaration of `NitroInputAffixAlign` to properly resolve imports.
|
|
20
24
|
namespace margelo::nitro::nitroinput { enum class NitroInputAffixAlign; }
|
|
21
25
|
// Forward declaration of `NitroInputAutoCapitalize` to properly resolve imports.
|
|
22
26
|
namespace margelo::nitro::nitroinput { enum class NitroInputAutoCapitalize; }
|
|
27
|
+
// Forward declaration of `NitroInputCharacterMapping` to properly resolve imports.
|
|
28
|
+
namespace margelo::nitro::nitroinput { struct NitroInputCharacterMapping; }
|
|
23
29
|
// Forward declaration of `NitroInputEasing` to properly resolve imports.
|
|
24
30
|
namespace margelo::nitro::nitroinput { enum class NitroInputEasing; }
|
|
25
31
|
// Forward declaration of `NitroInputEffect` to properly resolve imports.
|
|
@@ -30,6 +36,8 @@ namespace margelo::nitro::nitroinput { enum class NitroInputKeyboardAppearance;
|
|
|
30
36
|
namespace margelo::nitro::nitroinput { enum class NitroInputKeyboardType; }
|
|
31
37
|
// Forward declaration of `NitroInputLabelBehavior` to properly resolve imports.
|
|
32
38
|
namespace margelo::nitro::nitroinput { enum class NitroInputLabelBehavior; }
|
|
39
|
+
// Forward declaration of `NitroInputMaskAffinity` to properly resolve imports.
|
|
40
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputMaskAffinity; }
|
|
33
41
|
// Forward declaration of `NitroInputMode` to properly resolve imports.
|
|
34
42
|
namespace margelo::nitro::nitroinput { enum class NitroInputMode; }
|
|
35
43
|
// Forward declaration of `NitroInputNotation` to properly resolve imports.
|
|
@@ -44,6 +52,8 @@ namespace margelo::nitro::nitroinput { enum class NitroInputSubmitBehavior; }
|
|
|
44
52
|
namespace margelo::nitro::nitroinput { enum class NitroInputTextAlignVertical; }
|
|
45
53
|
// Forward declaration of `NitroInputTextAlign` to properly resolve imports.
|
|
46
54
|
namespace margelo::nitro::nitroinput { enum class NitroInputTextAlign; }
|
|
55
|
+
// Forward declaration of `NitroInputTextCase` to properly resolve imports.
|
|
56
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputTextCase; }
|
|
47
57
|
// Forward declaration of `NitroInputVariant` to properly resolve imports.
|
|
48
58
|
namespace margelo::nitro::nitroinput { enum class NitroInputVariant; }
|
|
49
59
|
// Forward declaration of `NitroNumberAffixAlign` to properly resolve imports.
|
|
@@ -54,6 +64,10 @@ namespace margelo::nitro::nitroinput { enum class NitroNumberDirection; }
|
|
|
54
64
|
namespace margelo::nitro::nitroinput { enum class NitroNumberEasing; }
|
|
55
65
|
// Forward declaration of `NitroNumberRevealStyle` to properly resolve imports.
|
|
56
66
|
namespace margelo::nitro::nitroinput { enum class NitroNumberRevealStyle; }
|
|
67
|
+
// Forward declaration of `NitroNumberShimmerDirection` to properly resolve imports.
|
|
68
|
+
namespace margelo::nitro::nitroinput { enum class NitroNumberShimmerDirection; }
|
|
69
|
+
// Forward declaration of `NitroNumberSignDisplay` to properly resolve imports.
|
|
70
|
+
namespace margelo::nitro::nitroinput { enum class NitroNumberSignDisplay; }
|
|
57
71
|
// Forward declaration of `NitroNumberTextAlign` to properly resolve imports.
|
|
58
72
|
namespace margelo::nitro::nitroinput { enum class NitroNumberTextAlign; }
|
|
59
73
|
// Forward declaration of `NitroNumberTransition` to properly resolve imports.
|
|
@@ -84,13 +98,17 @@ namespace margelo::nitro::nitroinput { enum class NumberFormatUnitDisplay; }
|
|
|
84
98
|
#include "HybridNitroNumberFormatPlatformSpec.hpp"
|
|
85
99
|
#include "HybridNitroNumberViewSpec.hpp"
|
|
86
100
|
#include "HybridNitroPlatformNumberFormatterSpec.hpp"
|
|
101
|
+
#include "HybridNitroTextMeasureSpec.hpp"
|
|
102
|
+
#include "HybridNitroTextViewSpec.hpp"
|
|
87
103
|
#include "NitroInputAffixAlign.hpp"
|
|
88
104
|
#include "NitroInputAutoCapitalize.hpp"
|
|
105
|
+
#include "NitroInputCharacterMapping.hpp"
|
|
89
106
|
#include "NitroInputEasing.hpp"
|
|
90
107
|
#include "NitroInputEffect.hpp"
|
|
91
108
|
#include "NitroInputKeyboardAppearance.hpp"
|
|
92
109
|
#include "NitroInputKeyboardType.hpp"
|
|
93
110
|
#include "NitroInputLabelBehavior.hpp"
|
|
111
|
+
#include "NitroInputMaskAffinity.hpp"
|
|
94
112
|
#include "NitroInputMode.hpp"
|
|
95
113
|
#include "NitroInputNotation.hpp"
|
|
96
114
|
#include "NitroInputReturnKeyType.hpp"
|
|
@@ -98,11 +116,14 @@ namespace margelo::nitro::nitroinput { enum class NumberFormatUnitDisplay; }
|
|
|
98
116
|
#include "NitroInputSubmitBehavior.hpp"
|
|
99
117
|
#include "NitroInputTextAlign.hpp"
|
|
100
118
|
#include "NitroInputTextAlignVertical.hpp"
|
|
119
|
+
#include "NitroInputTextCase.hpp"
|
|
101
120
|
#include "NitroInputVariant.hpp"
|
|
102
121
|
#include "NitroNumberAffixAlign.hpp"
|
|
103
122
|
#include "NitroNumberDirection.hpp"
|
|
104
123
|
#include "NitroNumberEasing.hpp"
|
|
105
124
|
#include "NitroNumberRevealStyle.hpp"
|
|
125
|
+
#include "NitroNumberShimmerDirection.hpp"
|
|
126
|
+
#include "NitroNumberSignDisplay.hpp"
|
|
106
127
|
#include "NitroNumberTextAlign.hpp"
|
|
107
128
|
#include "NitroNumberTransition.hpp"
|
|
108
129
|
#include "NumberFormatCompactDisplay.hpp"
|
|
@@ -141,6 +162,10 @@ namespace NitroInput { class HybridNitroNumberFormatPlatformSpec_cxx; }
|
|
|
141
162
|
namespace NitroInput { class HybridNitroNumberViewSpec_cxx; }
|
|
142
163
|
// Forward declaration of `HybridNitroPlatformNumberFormatterSpec_cxx` to properly resolve imports.
|
|
143
164
|
namespace NitroInput { class HybridNitroPlatformNumberFormatterSpec_cxx; }
|
|
165
|
+
// Forward declaration of `HybridNitroTextMeasureSpec_cxx` to properly resolve imports.
|
|
166
|
+
namespace NitroInput { class HybridNitroTextMeasureSpec_cxx; }
|
|
167
|
+
// Forward declaration of `HybridNitroTextViewSpec_cxx` to properly resolve imports.
|
|
168
|
+
namespace NitroInput { class HybridNitroTextViewSpec_cxx; }
|
|
144
169
|
|
|
145
170
|
// Include Swift defined types
|
|
146
171
|
#if __has_include("NitroInput-Swift.h")
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
#include "HybridNitroNumberViewSpecSwift.hpp"
|
|
16
16
|
#include "HybridNitroNumberFormatFactory.hpp"
|
|
17
17
|
#include "HybridNitroNumberFormatPlatformSpecSwift.hpp"
|
|
18
|
+
#include "HybridNitroTextViewSpecSwift.hpp"
|
|
19
|
+
#include "HybridNitroTextMeasureSpecSwift.hpp"
|
|
18
20
|
|
|
19
21
|
@interface NitroInputAutolinking : NSObject
|
|
20
22
|
@end
|
|
@@ -64,6 +66,20 @@
|
|
|
64
66
|
return hybridObject;
|
|
65
67
|
}
|
|
66
68
|
);
|
|
69
|
+
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
70
|
+
"NitroTextView",
|
|
71
|
+
[]() -> std::shared_ptr<HybridObject> {
|
|
72
|
+
std::shared_ptr<HybridNitroTextViewSpec> hybridObject = NitroInput::NitroInputAutolinking::createNitroTextView();
|
|
73
|
+
return hybridObject;
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
77
|
+
"NitroTextMeasure",
|
|
78
|
+
[]() -> std::shared_ptr<HybridObject> {
|
|
79
|
+
std::shared_ptr<HybridNitroTextMeasureSpec> hybridObject = NitroInput::NitroInputAutolinking::createNitroTextMeasure();
|
|
80
|
+
return hybridObject;
|
|
81
|
+
}
|
|
82
|
+
);
|
|
67
83
|
}
|
|
68
84
|
|
|
69
85
|
@end
|
|
@@ -47,4 +47,28 @@ public final class NitroInputAutolinking {
|
|
|
47
47
|
public static func isNitroNumberFormatPlatformRecyclable() -> Bool {
|
|
48
48
|
return HybridNitroNumberFormatPlatform.self is any RecyclableView.Type
|
|
49
49
|
}
|
|
50
|
+
|
|
51
|
+
public static func createNitroTextView() -> bridge.std__shared_ptr_HybridNitroTextViewSpec_ {
|
|
52
|
+
let hybridObject = HybridNitroTextView()
|
|
53
|
+
return { () -> bridge.std__shared_ptr_HybridNitroTextViewSpec_ in
|
|
54
|
+
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
55
|
+
return __cxxWrapped.getCxxPart()
|
|
56
|
+
}()
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
public static func isNitroTextViewRecyclable() -> Bool {
|
|
60
|
+
return HybridNitroTextView.self is any RecyclableView.Type
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
public static func createNitroTextMeasure() -> bridge.std__shared_ptr_HybridNitroTextMeasureSpec_ {
|
|
64
|
+
let hybridObject = HybridNitroTextMeasure()
|
|
65
|
+
return { () -> bridge.std__shared_ptr_HybridNitroTextMeasureSpec_ in
|
|
66
|
+
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
67
|
+
return __cxxWrapped.getCxxPart()
|
|
68
|
+
}()
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
public static func isNitroTextMeasureRecyclable() -> Bool {
|
|
72
|
+
return HybridNitroTextMeasure.self is any RecyclableView.Type
|
|
73
|
+
}
|
|
50
74
|
}
|
|
@@ -16,6 +16,12 @@ namespace NitroInput { class HybridNitroInputViewSpec_cxx; }
|
|
|
16
16
|
namespace margelo::nitro::nitroinput { enum class NitroInputMode; }
|
|
17
17
|
// Forward declaration of `NitroInputNotation` to properly resolve imports.
|
|
18
18
|
namespace margelo::nitro::nitroinput { struct NitroInputNotation; }
|
|
19
|
+
// Forward declaration of `NitroInputMaskAffinity` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputMaskAffinity; }
|
|
21
|
+
// Forward declaration of `NitroInputTextCase` to properly resolve imports.
|
|
22
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputTextCase; }
|
|
23
|
+
// Forward declaration of `NitroInputCharacterMapping` to properly resolve imports.
|
|
24
|
+
namespace margelo::nitro::nitroinput { struct NitroInputCharacterMapping; }
|
|
19
25
|
// Forward declaration of `NitroInputVariant` to properly resolve imports.
|
|
20
26
|
namespace margelo::nitro::nitroinput { enum class NitroInputVariant; }
|
|
21
27
|
// Forward declaration of `NitroInputLabelBehavior` to properly resolve imports.
|
|
@@ -47,6 +53,9 @@ namespace margelo::nitro::nitroinput { enum class NitroInputKeyboardAppearance;
|
|
|
47
53
|
#include "NitroInputMode.hpp"
|
|
48
54
|
#include "NitroInputNotation.hpp"
|
|
49
55
|
#include <vector>
|
|
56
|
+
#include "NitroInputMaskAffinity.hpp"
|
|
57
|
+
#include "NitroInputTextCase.hpp"
|
|
58
|
+
#include "NitroInputCharacterMapping.hpp"
|
|
50
59
|
#include "NitroInputVariant.hpp"
|
|
51
60
|
#include "NitroInputLabelBehavior.hpp"
|
|
52
61
|
#include "NitroInputSignPlacement.hpp"
|
|
@@ -173,6 +182,47 @@ namespace margelo::nitro::nitroinput {
|
|
|
173
182
|
inline void setMaskAutoSkip(bool maskAutoSkip) noexcept override {
|
|
174
183
|
_swiftPart.setMaskAutoSkip(std::forward<decltype(maskAutoSkip)>(maskAutoSkip));
|
|
175
184
|
}
|
|
185
|
+
inline std::vector<std::string> getMaskAffinityFormats() noexcept override {
|
|
186
|
+
auto __result = _swiftPart.getMaskAffinityFormats();
|
|
187
|
+
return __result;
|
|
188
|
+
}
|
|
189
|
+
inline void setMaskAffinityFormats(const std::vector<std::string>& maskAffinityFormats) noexcept override {
|
|
190
|
+
_swiftPart.setMaskAffinityFormats(maskAffinityFormats);
|
|
191
|
+
}
|
|
192
|
+
inline NitroInputMaskAffinity getMaskAffinityStrategy() noexcept override {
|
|
193
|
+
auto __result = _swiftPart.getMaskAffinityStrategy();
|
|
194
|
+
return static_cast<NitroInputMaskAffinity>(__result);
|
|
195
|
+
}
|
|
196
|
+
inline void setMaskAffinityStrategy(NitroInputMaskAffinity maskAffinityStrategy) noexcept override {
|
|
197
|
+
_swiftPart.setMaskAffinityStrategy(static_cast<int>(maskAffinityStrategy));
|
|
198
|
+
}
|
|
199
|
+
inline NitroInputTextCase getMaskTextCase() noexcept override {
|
|
200
|
+
auto __result = _swiftPart.getMaskTextCase();
|
|
201
|
+
return static_cast<NitroInputTextCase>(__result);
|
|
202
|
+
}
|
|
203
|
+
inline void setMaskTextCase(NitroInputTextCase maskTextCase) noexcept override {
|
|
204
|
+
_swiftPart.setMaskTextCase(static_cast<int>(maskTextCase));
|
|
205
|
+
}
|
|
206
|
+
inline std::vector<NitroInputCharacterMapping> getMaskCharacterMap() noexcept override {
|
|
207
|
+
auto __result = _swiftPart.getMaskCharacterMap();
|
|
208
|
+
return __result;
|
|
209
|
+
}
|
|
210
|
+
inline void setMaskCharacterMap(const std::vector<NitroInputCharacterMapping>& maskCharacterMap) noexcept override {
|
|
211
|
+
_swiftPart.setMaskCharacterMap(maskCharacterMap);
|
|
212
|
+
}
|
|
213
|
+
inline std::string getMaskSlotPlaceholder() noexcept override {
|
|
214
|
+
auto __result = _swiftPart.getMaskSlotPlaceholder();
|
|
215
|
+
return __result;
|
|
216
|
+
}
|
|
217
|
+
inline void setMaskSlotPlaceholder(const std::string& maskSlotPlaceholder) noexcept override {
|
|
218
|
+
_swiftPart.setMaskSlotPlaceholder(maskSlotPlaceholder);
|
|
219
|
+
}
|
|
220
|
+
inline bool getKeepPlaceholder() noexcept override {
|
|
221
|
+
return _swiftPart.getKeepPlaceholder();
|
|
222
|
+
}
|
|
223
|
+
inline void setKeepPlaceholder(bool keepPlaceholder) noexcept override {
|
|
224
|
+
_swiftPart.setKeepPlaceholder(std::forward<decltype(keepPlaceholder)>(keepPlaceholder));
|
|
225
|
+
}
|
|
176
226
|
inline std::string getGroupingSeparator() noexcept override {
|
|
177
227
|
auto __result = _swiftPart.getGroupingSeparator();
|
|
178
228
|
return __result;
|
|
@@ -20,8 +20,12 @@ namespace margelo::nitro::nitroinput { enum class NitroNumberTransition; }
|
|
|
20
20
|
namespace margelo::nitro::nitroinput { enum class NitroNumberDirection; }
|
|
21
21
|
// Forward declaration of `NitroNumberRevealStyle` to properly resolve imports.
|
|
22
22
|
namespace margelo::nitro::nitroinput { enum class NitroNumberRevealStyle; }
|
|
23
|
+
// Forward declaration of `NitroNumberShimmerDirection` to properly resolve imports.
|
|
24
|
+
namespace margelo::nitro::nitroinput { enum class NitroNumberShimmerDirection; }
|
|
23
25
|
// Forward declaration of `NitroNumberAffixAlign` to properly resolve imports.
|
|
24
26
|
namespace margelo::nitro::nitroinput { enum class NitroNumberAffixAlign; }
|
|
27
|
+
// Forward declaration of `NitroNumberSignDisplay` to properly resolve imports.
|
|
28
|
+
namespace margelo::nitro::nitroinput { enum class NitroNumberSignDisplay; }
|
|
25
29
|
// Forward declaration of `NitroNumberTextAlign` to properly resolve imports.
|
|
26
30
|
namespace margelo::nitro::nitroinput { enum class NitroNumberTextAlign; }
|
|
27
31
|
|
|
@@ -32,7 +36,9 @@ namespace margelo::nitro::nitroinput { enum class NitroNumberTextAlign; }
|
|
|
32
36
|
#include "NitroNumberDirection.hpp"
|
|
33
37
|
#include "NitroNumberRevealStyle.hpp"
|
|
34
38
|
#include <vector>
|
|
39
|
+
#include "NitroNumberShimmerDirection.hpp"
|
|
35
40
|
#include "NitroNumberAffixAlign.hpp"
|
|
41
|
+
#include "NitroNumberSignDisplay.hpp"
|
|
36
42
|
#include "NitroNumberTextAlign.hpp"
|
|
37
43
|
#include <functional>
|
|
38
44
|
|
|
@@ -277,6 +283,41 @@ namespace margelo::nitro::nitroinput {
|
|
|
277
283
|
inline void setShimmerDuration(std::optional<double> shimmerDuration) noexcept override {
|
|
278
284
|
_swiftPart.setShimmerDuration(shimmerDuration);
|
|
279
285
|
}
|
|
286
|
+
inline std::optional<double> getShimmerAngle() noexcept override {
|
|
287
|
+
auto __result = _swiftPart.getShimmerAngle();
|
|
288
|
+
return __result;
|
|
289
|
+
}
|
|
290
|
+
inline void setShimmerAngle(std::optional<double> shimmerAngle) noexcept override {
|
|
291
|
+
_swiftPart.setShimmerAngle(shimmerAngle);
|
|
292
|
+
}
|
|
293
|
+
inline std::optional<double> getShimmerWidth() noexcept override {
|
|
294
|
+
auto __result = _swiftPart.getShimmerWidth();
|
|
295
|
+
return __result;
|
|
296
|
+
}
|
|
297
|
+
inline void setShimmerWidth(std::optional<double> shimmerWidth) noexcept override {
|
|
298
|
+
_swiftPart.setShimmerWidth(shimmerWidth);
|
|
299
|
+
}
|
|
300
|
+
inline std::optional<double> getShimmerBaseColor() noexcept override {
|
|
301
|
+
auto __result = _swiftPart.getShimmerBaseColor();
|
|
302
|
+
return __result;
|
|
303
|
+
}
|
|
304
|
+
inline void setShimmerBaseColor(std::optional<double> shimmerBaseColor) noexcept override {
|
|
305
|
+
_swiftPart.setShimmerBaseColor(shimmerBaseColor);
|
|
306
|
+
}
|
|
307
|
+
inline std::optional<NitroNumberShimmerDirection> getShimmerDirection() noexcept override {
|
|
308
|
+
auto __result = _swiftPart.getShimmerDirection();
|
|
309
|
+
return __result;
|
|
310
|
+
}
|
|
311
|
+
inline void setShimmerDirection(std::optional<NitroNumberShimmerDirection> shimmerDirection) noexcept override {
|
|
312
|
+
_swiftPart.setShimmerDirection(shimmerDirection);
|
|
313
|
+
}
|
|
314
|
+
inline std::optional<double> getShimmerDelay() noexcept override {
|
|
315
|
+
auto __result = _swiftPart.getShimmerDelay();
|
|
316
|
+
return __result;
|
|
317
|
+
}
|
|
318
|
+
inline void setShimmerDelay(std::optional<double> shimmerDelay) noexcept override {
|
|
319
|
+
_swiftPart.setShimmerDelay(shimmerDelay);
|
|
320
|
+
}
|
|
280
321
|
inline std::optional<double> getFontSize() noexcept override {
|
|
281
322
|
auto __result = _swiftPart.getFontSize();
|
|
282
323
|
return __result;
|
|
@@ -361,6 +402,97 @@ namespace margelo::nitro::nitroinput {
|
|
|
361
402
|
inline void setTabularNums(std::optional<bool> tabularNums) noexcept override {
|
|
362
403
|
_swiftPart.setTabularNums(tabularNums);
|
|
363
404
|
}
|
|
405
|
+
inline std::optional<NitroNumberSignDisplay> getSignDisplay() noexcept override {
|
|
406
|
+
auto __result = _swiftPart.getSignDisplay();
|
|
407
|
+
return __result;
|
|
408
|
+
}
|
|
409
|
+
inline void setSignDisplay(std::optional<NitroNumberSignDisplay> signDisplay) noexcept override {
|
|
410
|
+
_swiftPart.setSignDisplay(signDisplay);
|
|
411
|
+
}
|
|
412
|
+
inline std::optional<std::string> getPlusSign() noexcept override {
|
|
413
|
+
auto __result = _swiftPart.getPlusSign();
|
|
414
|
+
return __result;
|
|
415
|
+
}
|
|
416
|
+
inline void setPlusSign(const std::optional<std::string>& plusSign) noexcept override {
|
|
417
|
+
_swiftPart.setPlusSign(plusSign);
|
|
418
|
+
}
|
|
419
|
+
inline std::optional<std::string> getMinusSign() noexcept override {
|
|
420
|
+
auto __result = _swiftPart.getMinusSign();
|
|
421
|
+
return __result;
|
|
422
|
+
}
|
|
423
|
+
inline void setMinusSign(const std::optional<std::string>& minusSign) noexcept override {
|
|
424
|
+
_swiftPart.setMinusSign(minusSign);
|
|
425
|
+
}
|
|
426
|
+
inline std::optional<std::vector<std::string>> getDigitGlyphs() noexcept override {
|
|
427
|
+
auto __result = _swiftPart.getDigitGlyphs();
|
|
428
|
+
return __result;
|
|
429
|
+
}
|
|
430
|
+
inline void setDigitGlyphs(const std::optional<std::vector<std::string>>& digitGlyphs) noexcept override {
|
|
431
|
+
_swiftPart.setDigitGlyphs(digitGlyphs);
|
|
432
|
+
}
|
|
433
|
+
inline std::optional<std::vector<double>> getGroupingSizes() noexcept override {
|
|
434
|
+
auto __result = _swiftPart.getGroupingSizes();
|
|
435
|
+
return __result;
|
|
436
|
+
}
|
|
437
|
+
inline void setGroupingSizes(const std::optional<std::vector<double>>& groupingSizes) noexcept override {
|
|
438
|
+
_swiftPart.setGroupingSizes(groupingSizes);
|
|
439
|
+
}
|
|
440
|
+
inline std::optional<std::vector<double>> getDigitMax() noexcept override {
|
|
441
|
+
auto __result = _swiftPart.getDigitMax();
|
|
442
|
+
return __result;
|
|
443
|
+
}
|
|
444
|
+
inline void setDigitMax(const std::optional<std::vector<double>>& digitMax) noexcept override {
|
|
445
|
+
_swiftPart.setDigitMax(digitMax);
|
|
446
|
+
}
|
|
447
|
+
inline std::optional<bool> getContinuous() noexcept override {
|
|
448
|
+
auto __result = _swiftPart.getContinuous();
|
|
449
|
+
return __result;
|
|
450
|
+
}
|
|
451
|
+
inline void setContinuous(std::optional<bool> continuous) noexcept override {
|
|
452
|
+
_swiftPart.setContinuous(continuous);
|
|
453
|
+
}
|
|
454
|
+
inline std::optional<double> getPrefixColor() noexcept override {
|
|
455
|
+
auto __result = _swiftPart.getPrefixColor();
|
|
456
|
+
return __result;
|
|
457
|
+
}
|
|
458
|
+
inline void setPrefixColor(std::optional<double> prefixColor) noexcept override {
|
|
459
|
+
_swiftPart.setPrefixColor(prefixColor);
|
|
460
|
+
}
|
|
461
|
+
inline std::optional<double> getSuffixColor() noexcept override {
|
|
462
|
+
auto __result = _swiftPart.getSuffixColor();
|
|
463
|
+
return __result;
|
|
464
|
+
}
|
|
465
|
+
inline void setSuffixColor(std::optional<double> suffixColor) noexcept override {
|
|
466
|
+
_swiftPart.setSuffixColor(suffixColor);
|
|
467
|
+
}
|
|
468
|
+
inline std::optional<double> getFractionColor() noexcept override {
|
|
469
|
+
auto __result = _swiftPart.getFractionColor();
|
|
470
|
+
return __result;
|
|
471
|
+
}
|
|
472
|
+
inline void setFractionColor(std::optional<double> fractionColor) noexcept override {
|
|
473
|
+
_swiftPart.setFractionColor(fractionColor);
|
|
474
|
+
}
|
|
475
|
+
inline std::optional<double> getFractionFontSize() noexcept override {
|
|
476
|
+
auto __result = _swiftPart.getFractionFontSize();
|
|
477
|
+
return __result;
|
|
478
|
+
}
|
|
479
|
+
inline void setFractionFontSize(std::optional<double> fractionFontSize) noexcept override {
|
|
480
|
+
_swiftPart.setFractionFontSize(fractionFontSize);
|
|
481
|
+
}
|
|
482
|
+
inline std::optional<NitroNumberAffixAlign> getFractionAlign() noexcept override {
|
|
483
|
+
auto __result = _swiftPart.getFractionAlign();
|
|
484
|
+
return __result;
|
|
485
|
+
}
|
|
486
|
+
inline void setFractionAlign(std::optional<NitroNumberAffixAlign> fractionAlign) noexcept override {
|
|
487
|
+
_swiftPart.setFractionAlign(fractionAlign);
|
|
488
|
+
}
|
|
489
|
+
inline std::optional<bool> getRespectReduceMotion() noexcept override {
|
|
490
|
+
auto __result = _swiftPart.getRespectReduceMotion();
|
|
491
|
+
return __result;
|
|
492
|
+
}
|
|
493
|
+
inline void setRespectReduceMotion(std::optional<bool> respectReduceMotion) noexcept override {
|
|
494
|
+
_swiftPart.setRespectReduceMotion(respectReduceMotion);
|
|
495
|
+
}
|
|
364
496
|
inline std::optional<bool> getAdjustsFontSizeToFit() noexcept override {
|
|
365
497
|
auto __result = _swiftPart.getAdjustsFontSizeToFit();
|
|
366
498
|
return __result;
|
|
@@ -445,6 +577,20 @@ namespace margelo::nitro::nitroinput {
|
|
|
445
577
|
inline void setOnRevealMilestone(const std::optional<std::function<void(double /* index */, double /* value */)>>& onRevealMilestone) noexcept override {
|
|
446
578
|
_swiftPart.setOnRevealMilestone(onRevealMilestone);
|
|
447
579
|
}
|
|
580
|
+
inline std::optional<std::function<void()>> getOnAnimationStart() noexcept override {
|
|
581
|
+
auto __result = _swiftPart.getOnAnimationStart();
|
|
582
|
+
return __result;
|
|
583
|
+
}
|
|
584
|
+
inline void setOnAnimationStart(const std::optional<std::function<void()>>& onAnimationStart) noexcept override {
|
|
585
|
+
_swiftPart.setOnAnimationStart(onAnimationStart);
|
|
586
|
+
}
|
|
587
|
+
inline std::optional<std::function<void(double /* value */)>> getOnAnimationEnd() noexcept override {
|
|
588
|
+
auto __result = _swiftPart.getOnAnimationEnd();
|
|
589
|
+
return __result;
|
|
590
|
+
}
|
|
591
|
+
inline void setOnAnimationEnd(const std::optional<std::function<void(double /* value */)>>& onAnimationEnd) noexcept override {
|
|
592
|
+
_swiftPart.setOnAnimationEnd(onAnimationEnd);
|
|
593
|
+
}
|
|
448
594
|
|
|
449
595
|
public:
|
|
450
596
|
// Methods
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridNitroTextMeasureSpecSwift.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 "HybridNitroTextMeasureSpecSwift.hpp"
|
|
9
|
+
|
|
10
|
+
namespace margelo::nitro::nitroinput {
|
|
11
|
+
} // namespace margelo::nitro::nitroinput
|