react-native-nitro-input 0.3.8 → 0.4.1
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 +105 -0
- package/README.md +6 -1
- package/android/src/main/java/com/margelo/nitro/nitroinput/DigitSlots.kt +143 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroInputMeasure.kt +52 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroInputView.kt +80 -80
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroNumberView.kt +18 -18
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroTextView.kt +14 -14
- package/android/src/main/java/com/margelo/nitro/nitroinput/InputFonts.kt +244 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/InputSizing.kt +404 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroInputView.kt +168 -338
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroNumberView.kt +178 -30
- package/ios/HybridNitroInputView.swift +73 -75
- package/ios/HybridNitroNumberView.swift +18 -18
- package/ios/HybridNitroTextView.swift +14 -14
- package/ios/InputSizing.swift +628 -0
- package/ios/NitroInputView.swift +180 -209
- package/ios/NitroNumberView.swift +98 -23
- package/lib/commonjs/nitrogen/generated/shared/json/NitroInputViewConfig.json +14 -8
- package/lib/commonjs/nitrogen/generated/shared/json/NitroNumberViewConfig.json +6 -6
- package/lib/commonjs/nitrogen/generated/shared/json/NitroTextViewConfig.json +6 -6
- package/lib/commonjs/src/NitroInput.js +166 -23
- package/lib/commonjs/src/NitroNumber.js +1 -1
- package/lib/commonjs/src/NitroText.js +6 -6
- package/lib/commonjs/src/specs/NitroInputMeasure.nitro.js +2 -0
- package/lib/module/nitrogen/generated/shared/json/NitroInputViewConfig.json +14 -8
- package/lib/module/nitrogen/generated/shared/json/NitroNumberViewConfig.json +6 -6
- package/lib/module/nitrogen/generated/shared/json/NitroTextViewConfig.json +6 -6
- package/lib/module/src/NitroInput.js +167 -24
- package/lib/module/src/NitroNumber.js +1 -1
- package/lib/module/src/NitroText.js +6 -6
- package/lib/module/src/specs/NitroInputMeasure.nitro.js +1 -0
- package/lib/typescript/src/NitroInput.d.ts +20 -16
- package/lib/typescript/src/specs/NitroInput.nitro.d.ts +21 -8
- package/lib/typescript/src/specs/NitroInputMeasure.nitro.d.ts +69 -0
- package/lib/typescript/src/specs/NitroNumber.nitro.d.ts +6 -6
- package/lib/typescript/src/specs/NitroText.nitro.d.ts +6 -6
- package/nitro.json +10 -0
- package/nitrogen/generated/android/NitroInput+autolinking.cmake +2 -0
- package/nitrogen/generated/android/NitroInputOnLoad.cpp +16 -0
- package/nitrogen/generated/android/c++/JHybridNitroInputMeasureSpec.cpp +93 -0
- package/nitrogen/generated/android/c++/JHybridNitroInputMeasureSpec.hpp +63 -0
- package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.cpp +94 -40
- package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.hpp +28 -16
- package/nitrogen/generated/android/c++/JHybridNitroNumberViewSpec.cpp +30 -30
- package/nitrogen/generated/android/c++/JHybridNitroNumberViewSpec.hpp +12 -12
- package/nitrogen/generated/android/c++/JHybridNitroTextViewSpec.cpp +30 -30
- package/nitrogen/generated/android/c++/JHybridNitroTextViewSpec.hpp +12 -12
- package/nitrogen/generated/android/c++/JNitroInputSize.hpp +61 -0
- package/nitrogen/generated/android/c++/JNitroInputSizing.hpp +292 -0
- package/nitrogen/generated/android/c++/views/JHybridNitroInputViewStateUpdater.cpp +54 -24
- package/nitrogen/generated/android/c++/views/JHybridNitroNumberViewStateUpdater.cpp +18 -18
- package/nitrogen/generated/android/c++/views/JHybridNitroTextViewStateUpdater.cpp +18 -18
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroInputMeasureSpec.kt +56 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroInputViewSpec.kt +44 -8
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroNumberViewSpec.kt +6 -6
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroTextViewSpec.kt +6 -6
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputSize.kt +56 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputSizing.kt +256 -0
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.cpp +17 -0
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.hpp +29 -0
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Umbrella.hpp +11 -0
- package/nitrogen/generated/ios/NitroInputAutolinking.mm +8 -0
- package/nitrogen/generated/ios/NitroInputAutolinking.swift +12 -0
- package/nitrogen/generated/ios/c++/HybridNitroInputMeasureSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridNitroInputMeasureSpecSwift.hpp +112 -0
- package/nitrogen/generated/ios/c++/HybridNitroInputViewSpecSwift.hpp +68 -32
- package/nitrogen/generated/ios/c++/HybridNitroNumberViewSpecSwift.hpp +24 -24
- package/nitrogen/generated/ios/c++/HybridNitroTextViewSpecSwift.hpp +24 -24
- package/nitrogen/generated/ios/c++/views/HybridNitroInputViewComponent.mm +68 -32
- package/nitrogen/generated/ios/c++/views/HybridNitroNumberViewComponent.mm +24 -24
- package/nitrogen/generated/ios/c++/views/HybridNitroTextViewComponent.mm +24 -24
- package/nitrogen/generated/ios/swift/HybridNitroInputMeasureSpec.swift +55 -0
- package/nitrogen/generated/ios/swift/HybridNitroInputMeasureSpec_cxx.swift +138 -0
- package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec.swift +14 -8
- package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec_cxx.swift +90 -24
- package/nitrogen/generated/ios/swift/HybridNitroNumberViewSpec.swift +6 -6
- package/nitrogen/generated/ios/swift/HybridNitroNumberViewSpec_cxx.swift +18 -18
- package/nitrogen/generated/ios/swift/HybridNitroTextViewSpec.swift +6 -6
- package/nitrogen/generated/ios/swift/HybridNitroTextViewSpec_cxx.swift +18 -18
- package/nitrogen/generated/ios/swift/NitroInputSize.swift +34 -0
- package/nitrogen/generated/ios/swift/NitroInputSizing.swift +252 -0
- package/nitrogen/generated/shared/c++/HybridNitroInputMeasureSpec.cpp +21 -0
- package/nitrogen/generated/shared/c++/HybridNitroInputMeasureSpec.hpp +66 -0
- package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.cpp +28 -16
- package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.hpp +28 -16
- package/nitrogen/generated/shared/c++/HybridNitroNumberViewSpec.cpp +12 -12
- package/nitrogen/generated/shared/c++/HybridNitroNumberViewSpec.hpp +12 -12
- package/nitrogen/generated/shared/c++/HybridNitroTextViewSpec.cpp +12 -12
- package/nitrogen/generated/shared/c++/HybridNitroTextViewSpec.hpp +12 -12
- package/nitrogen/generated/shared/c++/NitroInputSize.hpp +87 -0
- package/nitrogen/generated/shared/c++/NitroInputSizing.hpp +271 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.cpp +28 -16
- package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.hpp +42 -24
- package/nitrogen/generated/shared/c++/views/HybridNitroNumberViewComponent.cpp +12 -12
- package/nitrogen/generated/shared/c++/views/HybridNitroNumberViewComponent.hpp +18 -18
- package/nitrogen/generated/shared/c++/views/HybridNitroTextViewComponent.cpp +12 -12
- package/nitrogen/generated/shared/c++/views/HybridNitroTextViewComponent.hpp +18 -18
- package/nitrogen/generated/shared/json/NitroInputViewConfig.json +14 -8
- package/nitrogen/generated/shared/json/NitroNumberViewConfig.json +6 -6
- package/nitrogen/generated/shared/json/NitroTextViewConfig.json +6 -6
- package/package.json +4 -2
- package/src/NitroInput.tsx +215 -64
- package/src/NitroNumber.tsx +6 -6
- package/src/NitroText.tsx +6 -6
- package/src/specs/NitroInput.nitro.ts +21 -8
- package/src/specs/NitroInputMeasure.nitro.ts +78 -0
- package/src/specs/NitroNumber.nitro.ts +6 -6
- package/src/specs/NitroText.nitro.ts +6 -6
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
#include "NitroInput-Swift-Cxx-Bridge.hpp"
|
|
9
9
|
|
|
10
10
|
// Include C++ implementation defined types
|
|
11
|
+
#include "HybridNitroInputMeasureSpecSwift.hpp"
|
|
11
12
|
#include "HybridNitroInputViewSpecSwift.hpp"
|
|
12
13
|
#include "HybridNitroNumberFormatPlatformSpecSwift.hpp"
|
|
13
14
|
#include "HybridNitroNumberViewSpecSwift.hpp"
|
|
@@ -83,6 +84,22 @@ namespace margelo::nitro::nitroinput::bridge::swift {
|
|
|
83
84
|
return swiftPart.toUnsafe();
|
|
84
85
|
}
|
|
85
86
|
|
|
87
|
+
// pragma MARK: std::shared_ptr<HybridNitroInputMeasureSpec>
|
|
88
|
+
std::shared_ptr<HybridNitroInputMeasureSpec> create_std__shared_ptr_HybridNitroInputMeasureSpec_(void* NON_NULL swiftUnsafePointer) noexcept {
|
|
89
|
+
NitroInput::HybridNitroInputMeasureSpec_cxx swiftPart = NitroInput::HybridNitroInputMeasureSpec_cxx::fromUnsafe(swiftUnsafePointer);
|
|
90
|
+
return std::make_shared<margelo::nitro::nitroinput::HybridNitroInputMeasureSpecSwift>(swiftPart);
|
|
91
|
+
}
|
|
92
|
+
void* NON_NULL get_std__shared_ptr_HybridNitroInputMeasureSpec_(std__shared_ptr_HybridNitroInputMeasureSpec_ cppType) {
|
|
93
|
+
std::shared_ptr<margelo::nitro::nitroinput::HybridNitroInputMeasureSpecSwift> swiftWrapper = std::dynamic_pointer_cast<margelo::nitro::nitroinput::HybridNitroInputMeasureSpecSwift>(cppType);
|
|
94
|
+
#ifdef NITRO_DEBUG
|
|
95
|
+
if (swiftWrapper == nullptr) [[unlikely]] {
|
|
96
|
+
throw std::runtime_error("Class \"HybridNitroInputMeasureSpec\" is not implemented in Swift!");
|
|
97
|
+
}
|
|
98
|
+
#endif
|
|
99
|
+
NitroInput::HybridNitroInputMeasureSpec_cxx& swiftPart = swiftWrapper->getSwiftPart();
|
|
100
|
+
return swiftPart.toUnsafe();
|
|
101
|
+
}
|
|
102
|
+
|
|
86
103
|
// pragma MARK: std::function<void()>
|
|
87
104
|
Func_void create_Func_void(void* NON_NULL swiftClosureWrapper) noexcept {
|
|
88
105
|
auto swiftClosure = NitroInput::Func_void::fromUnsafe(swiftClosureWrapper);
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
#pragma once
|
|
9
9
|
|
|
10
10
|
// Forward declarations of C++ defined types
|
|
11
|
+
// Forward declaration of `HybridNitroInputMeasureSpec` to properly resolve imports.
|
|
12
|
+
namespace margelo::nitro::nitroinput { class HybridNitroInputMeasureSpec; }
|
|
11
13
|
// Forward declaration of `HybridNitroInputViewSpec` to properly resolve imports.
|
|
12
14
|
namespace margelo::nitro::nitroinput { class HybridNitroInputViewSpec; }
|
|
13
15
|
// Forward declaration of `HybridNitroNumberFormatPlatformSpec` to properly resolve imports.
|
|
@@ -28,6 +30,8 @@ namespace margelo::nitro::nitroinput { enum class NitroInputEasing; }
|
|
|
28
30
|
namespace margelo::nitro::nitroinput { enum class NitroInputEffect; }
|
|
29
31
|
// Forward declaration of `NitroInputNotation` to properly resolve imports.
|
|
30
32
|
namespace margelo::nitro::nitroinput { struct NitroInputNotation; }
|
|
33
|
+
// Forward declaration of `NitroInputSize` to properly resolve imports.
|
|
34
|
+
namespace margelo::nitro::nitroinput { struct NitroInputSize; }
|
|
31
35
|
// Forward declaration of `NitroNumberAffixAlign` to properly resolve imports.
|
|
32
36
|
namespace margelo::nitro::nitroinput { enum class NitroNumberAffixAlign; }
|
|
33
37
|
// Forward declaration of `NitroNumberDirection` to properly resolve imports.
|
|
@@ -46,6 +50,8 @@ namespace margelo::nitro::nitroinput { enum class NitroNumberTextAlign; }
|
|
|
46
50
|
namespace margelo::nitro::nitroinput { enum class NitroNumberTransition; }
|
|
47
51
|
|
|
48
52
|
// Forward declarations of Swift defined types
|
|
53
|
+
// Forward declaration of `HybridNitroInputMeasureSpec_cxx` to properly resolve imports.
|
|
54
|
+
namespace NitroInput { class HybridNitroInputMeasureSpec_cxx; }
|
|
49
55
|
// Forward declaration of `HybridNitroInputViewSpec_cxx` to properly resolve imports.
|
|
50
56
|
namespace NitroInput { class HybridNitroInputViewSpec_cxx; }
|
|
51
57
|
// Forward declaration of `HybridNitroNumberFormatPlatformSpec_cxx` to properly resolve imports.
|
|
@@ -60,6 +66,7 @@ namespace NitroInput { class HybridNitroTextMeasureSpec_cxx; }
|
|
|
60
66
|
namespace NitroInput { class HybridNitroTextViewSpec_cxx; }
|
|
61
67
|
|
|
62
68
|
// Include C++ defined types
|
|
69
|
+
#include "HybridNitroInputMeasureSpec.hpp"
|
|
63
70
|
#include "HybridNitroInputViewSpec.hpp"
|
|
64
71
|
#include "HybridNitroNumberFormatPlatformSpec.hpp"
|
|
65
72
|
#include "HybridNitroNumberViewSpec.hpp"
|
|
@@ -70,6 +77,7 @@ namespace NitroInput { class HybridNitroTextViewSpec_cxx; }
|
|
|
70
77
|
#include "NitroInputEasing.hpp"
|
|
71
78
|
#include "NitroInputEffect.hpp"
|
|
72
79
|
#include "NitroInputNotation.hpp"
|
|
80
|
+
#include "NitroInputSize.hpp"
|
|
73
81
|
#include "NitroNumberAffixAlign.hpp"
|
|
74
82
|
#include "NitroNumberDirection.hpp"
|
|
75
83
|
#include "NitroNumberEasing.hpp"
|
|
@@ -425,6 +433,27 @@ namespace margelo::nitro::nitroinput::bridge::swift {
|
|
|
425
433
|
return Result<bool>::withError(error);
|
|
426
434
|
}
|
|
427
435
|
|
|
436
|
+
// pragma MARK: std::shared_ptr<HybridNitroInputMeasureSpec>
|
|
437
|
+
/**
|
|
438
|
+
* Specialized version of `std::shared_ptr<HybridNitroInputMeasureSpec>`.
|
|
439
|
+
*/
|
|
440
|
+
using std__shared_ptr_HybridNitroInputMeasureSpec_ = std::shared_ptr<HybridNitroInputMeasureSpec>;
|
|
441
|
+
std::shared_ptr<HybridNitroInputMeasureSpec> create_std__shared_ptr_HybridNitroInputMeasureSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
442
|
+
void* NON_NULL get_std__shared_ptr_HybridNitroInputMeasureSpec_(std__shared_ptr_HybridNitroInputMeasureSpec_ cppType);
|
|
443
|
+
|
|
444
|
+
// pragma MARK: std::weak_ptr<HybridNitroInputMeasureSpec>
|
|
445
|
+
using std__weak_ptr_HybridNitroInputMeasureSpec_ = std::weak_ptr<HybridNitroInputMeasureSpec>;
|
|
446
|
+
inline std__weak_ptr_HybridNitroInputMeasureSpec_ weakify_std__shared_ptr_HybridNitroInputMeasureSpec_(const std::shared_ptr<HybridNitroInputMeasureSpec>& strong) noexcept { return strong; }
|
|
447
|
+
|
|
448
|
+
// pragma MARK: Result<NitroInputSize>
|
|
449
|
+
using Result_NitroInputSize_ = Result<NitroInputSize>;
|
|
450
|
+
inline Result_NitroInputSize_ create_Result_NitroInputSize_(const NitroInputSize& value) noexcept {
|
|
451
|
+
return Result<NitroInputSize>::withValue(value);
|
|
452
|
+
}
|
|
453
|
+
inline Result_NitroInputSize_ create_Result_NitroInputSize_(const std::exception_ptr& error) noexcept {
|
|
454
|
+
return Result<NitroInputSize>::withError(error);
|
|
455
|
+
}
|
|
456
|
+
|
|
428
457
|
// pragma MARK: std::optional<double>
|
|
429
458
|
/**
|
|
430
459
|
* Specialized version of `std::optional<double>`.
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
#pragma once
|
|
9
9
|
|
|
10
10
|
// Forward declarations of C++ defined types
|
|
11
|
+
// Forward declaration of `HybridNitroInputMeasureSpec` to properly resolve imports.
|
|
12
|
+
namespace margelo::nitro::nitroinput { class HybridNitroInputMeasureSpec; }
|
|
11
13
|
// Forward declaration of `HybridNitroInputViewSpec` to properly resolve imports.
|
|
12
14
|
namespace margelo::nitro::nitroinput { class HybridNitroInputViewSpec; }
|
|
13
15
|
// Forward declaration of `HybridNitroNumberFormatPlatformSpec` to properly resolve imports.
|
|
@@ -46,6 +48,10 @@ namespace margelo::nitro::nitroinput { struct NitroInputNotation; }
|
|
|
46
48
|
namespace margelo::nitro::nitroinput { enum class NitroInputReturnKeyType; }
|
|
47
49
|
// Forward declaration of `NitroInputSignPlacement` to properly resolve imports.
|
|
48
50
|
namespace margelo::nitro::nitroinput { enum class NitroInputSignPlacement; }
|
|
51
|
+
// Forward declaration of `NitroInputSize` to properly resolve imports.
|
|
52
|
+
namespace margelo::nitro::nitroinput { struct NitroInputSize; }
|
|
53
|
+
// Forward declaration of `NitroInputSizing` to properly resolve imports.
|
|
54
|
+
namespace margelo::nitro::nitroinput { struct NitroInputSizing; }
|
|
49
55
|
// Forward declaration of `NitroInputSubmitBehavior` to properly resolve imports.
|
|
50
56
|
namespace margelo::nitro::nitroinput { enum class NitroInputSubmitBehavior; }
|
|
51
57
|
// Forward declaration of `NitroInputTextAlignVertical` to properly resolve imports.
|
|
@@ -94,6 +100,7 @@ namespace margelo::nitro::nitroinput { enum class NumberFormatStyle; }
|
|
|
94
100
|
namespace margelo::nitro::nitroinput { enum class NumberFormatUnitDisplay; }
|
|
95
101
|
|
|
96
102
|
// Include C++ defined types
|
|
103
|
+
#include "HybridNitroInputMeasureSpec.hpp"
|
|
97
104
|
#include "HybridNitroInputViewSpec.hpp"
|
|
98
105
|
#include "HybridNitroNumberFormatPlatformSpec.hpp"
|
|
99
106
|
#include "HybridNitroNumberViewSpec.hpp"
|
|
@@ -113,6 +120,8 @@ namespace margelo::nitro::nitroinput { enum class NumberFormatUnitDisplay; }
|
|
|
113
120
|
#include "NitroInputNotation.hpp"
|
|
114
121
|
#include "NitroInputReturnKeyType.hpp"
|
|
115
122
|
#include "NitroInputSignPlacement.hpp"
|
|
123
|
+
#include "NitroInputSize.hpp"
|
|
124
|
+
#include "NitroInputSizing.hpp"
|
|
116
125
|
#include "NitroInputSubmitBehavior.hpp"
|
|
117
126
|
#include "NitroInputTextAlign.hpp"
|
|
118
127
|
#include "NitroInputTextAlignVertical.hpp"
|
|
@@ -154,6 +163,8 @@ namespace margelo::nitro::nitroinput { enum class NumberFormatUnitDisplay; }
|
|
|
154
163
|
#include <NitroModules/DateToChronoDate.hpp>
|
|
155
164
|
|
|
156
165
|
// Forward declarations of Swift defined types
|
|
166
|
+
// Forward declaration of `HybridNitroInputMeasureSpec_cxx` to properly resolve imports.
|
|
167
|
+
namespace NitroInput { class HybridNitroInputMeasureSpec_cxx; }
|
|
157
168
|
// Forward declaration of `HybridNitroInputViewSpec_cxx` to properly resolve imports.
|
|
158
169
|
namespace NitroInput { class HybridNitroInputViewSpec_cxx; }
|
|
159
170
|
// Forward declaration of `HybridNitroNumberFormatPlatformSpec_cxx` to properly resolve imports.
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
#include "HybridNitroNumberFormatPlatformSpecSwift.hpp"
|
|
18
18
|
#include "HybridNitroTextViewSpecSwift.hpp"
|
|
19
19
|
#include "HybridNitroTextMeasureSpecSwift.hpp"
|
|
20
|
+
#include "HybridNitroInputMeasureSpecSwift.hpp"
|
|
20
21
|
|
|
21
22
|
@interface NitroInputAutolinking : NSObject
|
|
22
23
|
@end
|
|
@@ -80,6 +81,13 @@
|
|
|
80
81
|
return hybridObject;
|
|
81
82
|
}
|
|
82
83
|
);
|
|
84
|
+
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
85
|
+
"NitroInputMeasure",
|
|
86
|
+
[]() -> std::shared_ptr<HybridObject> {
|
|
87
|
+
std::shared_ptr<HybridNitroInputMeasureSpec> hybridObject = NitroInput::NitroInputAutolinking::createNitroInputMeasure();
|
|
88
|
+
return hybridObject;
|
|
89
|
+
}
|
|
90
|
+
);
|
|
83
91
|
}
|
|
84
92
|
|
|
85
93
|
@end
|
|
@@ -71,4 +71,16 @@ public final class NitroInputAutolinking {
|
|
|
71
71
|
public static func isNitroTextMeasureRecyclable() -> Bool {
|
|
72
72
|
return HybridNitroTextMeasure.self is any RecyclableView.Type
|
|
73
73
|
}
|
|
74
|
+
|
|
75
|
+
public static func createNitroInputMeasure() -> bridge.std__shared_ptr_HybridNitroInputMeasureSpec_ {
|
|
76
|
+
let hybridObject = HybridNitroInputMeasure()
|
|
77
|
+
return { () -> bridge.std__shared_ptr_HybridNitroInputMeasureSpec_ in
|
|
78
|
+
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
79
|
+
return __cxxWrapped.getCxxPart()
|
|
80
|
+
}()
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
public static func isNitroInputMeasureRecyclable() -> Bool {
|
|
84
|
+
return HybridNitroInputMeasure.self is any RecyclableView.Type
|
|
85
|
+
}
|
|
74
86
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridNitroInputMeasureSpecSwift.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 "HybridNitroInputMeasureSpecSwift.hpp"
|
|
9
|
+
|
|
10
|
+
namespace margelo::nitro::nitroinput {
|
|
11
|
+
} // namespace margelo::nitro::nitroinput
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridNitroInputMeasureSpecSwift.hpp
|
|
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
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include "HybridNitroInputMeasureSpec.hpp"
|
|
11
|
+
|
|
12
|
+
// Forward declaration of `HybridNitroInputMeasureSpec_cxx` to properly resolve imports.
|
|
13
|
+
namespace NitroInput { class HybridNitroInputMeasureSpec_cxx; }
|
|
14
|
+
|
|
15
|
+
// Forward declaration of `NitroInputSize` to properly resolve imports.
|
|
16
|
+
namespace margelo::nitro::nitroinput { struct NitroInputSize; }
|
|
17
|
+
// Forward declaration of `NitroInputSizing` to properly resolve imports.
|
|
18
|
+
namespace margelo::nitro::nitroinput { struct NitroInputSizing; }
|
|
19
|
+
// Forward declaration of `NitroInputMode` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputMode; }
|
|
21
|
+
// Forward declaration of `NitroInputSignPlacement` to properly resolve imports.
|
|
22
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputSignPlacement; }
|
|
23
|
+
// Forward declaration of `NitroInputNotation` to properly resolve imports.
|
|
24
|
+
namespace margelo::nitro::nitroinput { struct NitroInputNotation; }
|
|
25
|
+
// Forward declaration of `NitroInputMaskAffinity` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputMaskAffinity; }
|
|
27
|
+
// Forward declaration of `NitroInputTextCase` to properly resolve imports.
|
|
28
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputTextCase; }
|
|
29
|
+
// Forward declaration of `NitroInputCharacterMapping` to properly resolve imports.
|
|
30
|
+
namespace margelo::nitro::nitroinput { struct NitroInputCharacterMapping; }
|
|
31
|
+
// Forward declaration of `NitroInputVariant` to properly resolve imports.
|
|
32
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputVariant; }
|
|
33
|
+
// Forward declaration of `NitroInputLabelBehavior` to properly resolve imports.
|
|
34
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputLabelBehavior; }
|
|
35
|
+
|
|
36
|
+
#include "NitroInputSize.hpp"
|
|
37
|
+
#include "NitroInputSizing.hpp"
|
|
38
|
+
#include <string>
|
|
39
|
+
#include "NitroInputMode.hpp"
|
|
40
|
+
#include "NitroInputSignPlacement.hpp"
|
|
41
|
+
#include "NitroInputNotation.hpp"
|
|
42
|
+
#include <vector>
|
|
43
|
+
#include "NitroInputMaskAffinity.hpp"
|
|
44
|
+
#include "NitroInputTextCase.hpp"
|
|
45
|
+
#include "NitroInputCharacterMapping.hpp"
|
|
46
|
+
#include "NitroInputVariant.hpp"
|
|
47
|
+
#include "NitroInputLabelBehavior.hpp"
|
|
48
|
+
|
|
49
|
+
#include "NitroInput-Swift-Cxx-Umbrella.hpp"
|
|
50
|
+
|
|
51
|
+
namespace margelo::nitro::nitroinput {
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* The C++ part of HybridNitroInputMeasureSpec_cxx.swift.
|
|
55
|
+
*
|
|
56
|
+
* HybridNitroInputMeasureSpecSwift (C++) accesses HybridNitroInputMeasureSpec_cxx (Swift), and might
|
|
57
|
+
* contain some additional bridging code for C++ <> Swift interop.
|
|
58
|
+
*
|
|
59
|
+
* Since this obviously introduces an overhead, I hope at some point in
|
|
60
|
+
* the future, HybridNitroInputMeasureSpec_cxx can directly inherit from the C++ class HybridNitroInputMeasureSpec
|
|
61
|
+
* to simplify the whole structure and memory management.
|
|
62
|
+
*/
|
|
63
|
+
class HybridNitroInputMeasureSpecSwift: public virtual HybridNitroInputMeasureSpec {
|
|
64
|
+
public:
|
|
65
|
+
// Constructor from a Swift instance
|
|
66
|
+
explicit HybridNitroInputMeasureSpecSwift(const NitroInput::HybridNitroInputMeasureSpec_cxx& swiftPart):
|
|
67
|
+
HybridObject(HybridNitroInputMeasureSpec::TAG),
|
|
68
|
+
_swiftPart(swiftPart) { }
|
|
69
|
+
|
|
70
|
+
public:
|
|
71
|
+
// Get the Swift part
|
|
72
|
+
inline NitroInput::HybridNitroInputMeasureSpec_cxx& getSwiftPart() noexcept {
|
|
73
|
+
return _swiftPart;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
public:
|
|
77
|
+
inline size_t getExternalMemorySize() noexcept override {
|
|
78
|
+
return _swiftPart.getMemorySize();
|
|
79
|
+
}
|
|
80
|
+
bool equals(const std::shared_ptr<HybridObject>& other) override {
|
|
81
|
+
if (auto otherCast = std::dynamic_pointer_cast<HybridNitroInputMeasureSpecSwift>(other)) {
|
|
82
|
+
return _swiftPart.equals(otherCast->_swiftPart);
|
|
83
|
+
}
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
void dispose() noexcept override {
|
|
87
|
+
_swiftPart.dispose();
|
|
88
|
+
}
|
|
89
|
+
std::string toString() override {
|
|
90
|
+
return _swiftPart.toString();
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
public:
|
|
94
|
+
// Properties
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
public:
|
|
98
|
+
// Methods
|
|
99
|
+
inline NitroInputSize measure(const NitroInputSizing& sizing) override {
|
|
100
|
+
auto __result = _swiftPart.measure(std::forward<decltype(sizing)>(sizing));
|
|
101
|
+
if (__result.hasError()) [[unlikely]] {
|
|
102
|
+
std::rethrow_exception(__result.error());
|
|
103
|
+
}
|
|
104
|
+
auto __value = std::move(__result.value());
|
|
105
|
+
return __value;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
private:
|
|
109
|
+
NitroInput::HybridNitroInputMeasureSpec_cxx _swiftPart;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
} // namespace margelo::nitro::nitroinput
|
|
@@ -353,11 +353,23 @@ namespace margelo::nitro::nitroinput {
|
|
|
353
353
|
inline void setSuffixAlign(NitroInputAffixAlign suffixAlign) noexcept override {
|
|
354
354
|
_swiftPart.setSuffixAlign(static_cast<int>(suffixAlign));
|
|
355
355
|
}
|
|
356
|
-
inline double
|
|
357
|
-
return _swiftPart.
|
|
356
|
+
inline double getTextLetterSpacing() noexcept override {
|
|
357
|
+
return _swiftPart.getTextLetterSpacing();
|
|
358
358
|
}
|
|
359
|
-
inline void
|
|
360
|
-
_swiftPart.
|
|
359
|
+
inline void setTextLetterSpacing(double textLetterSpacing) noexcept override {
|
|
360
|
+
_swiftPart.setTextLetterSpacing(std::forward<decltype(textLetterSpacing)>(textLetterSpacing));
|
|
361
|
+
}
|
|
362
|
+
inline bool getTabularNums() noexcept override {
|
|
363
|
+
return _swiftPart.getTabularNums();
|
|
364
|
+
}
|
|
365
|
+
inline void setTabularNums(bool tabularNums) noexcept override {
|
|
366
|
+
_swiftPart.setTabularNums(std::forward<decltype(tabularNums)>(tabularNums));
|
|
367
|
+
}
|
|
368
|
+
inline bool getSlotDigits() noexcept override {
|
|
369
|
+
return _swiftPart.getSlotDigits();
|
|
370
|
+
}
|
|
371
|
+
inline void setSlotDigits(bool slotDigits) noexcept override {
|
|
372
|
+
_swiftPart.setSlotDigits(std::forward<decltype(slotDigits)>(slotDigits));
|
|
361
373
|
}
|
|
362
374
|
inline double getPrefixSpacing() noexcept override {
|
|
363
375
|
return _swiftPart.getPrefixSpacing();
|
|
@@ -422,43 +434,43 @@ namespace margelo::nitro::nitroinput {
|
|
|
422
434
|
inline void setEffect(NitroInputEffect effect) noexcept override {
|
|
423
435
|
_swiftPart.setEffect(static_cast<int>(effect));
|
|
424
436
|
}
|
|
425
|
-
inline double
|
|
426
|
-
return _swiftPart.
|
|
437
|
+
inline double getTextSize() noexcept override {
|
|
438
|
+
return _swiftPart.getTextSize();
|
|
427
439
|
}
|
|
428
|
-
inline void
|
|
429
|
-
_swiftPart.
|
|
440
|
+
inline void setTextSize(double textSize) noexcept override {
|
|
441
|
+
_swiftPart.setTextSize(std::forward<decltype(textSize)>(textSize));
|
|
430
442
|
}
|
|
431
|
-
inline double
|
|
432
|
-
return _swiftPart.
|
|
443
|
+
inline double getTextLineHeight() noexcept override {
|
|
444
|
+
return _swiftPart.getTextLineHeight();
|
|
433
445
|
}
|
|
434
|
-
inline void
|
|
435
|
-
_swiftPart.
|
|
446
|
+
inline void setTextLineHeight(double textLineHeight) noexcept override {
|
|
447
|
+
_swiftPart.setTextLineHeight(std::forward<decltype(textLineHeight)>(textLineHeight));
|
|
436
448
|
}
|
|
437
|
-
inline double
|
|
438
|
-
return _swiftPart.
|
|
449
|
+
inline double getTextWeight() noexcept override {
|
|
450
|
+
return _swiftPart.getTextWeight();
|
|
439
451
|
}
|
|
440
|
-
inline void
|
|
441
|
-
_swiftPart.
|
|
452
|
+
inline void setTextWeight(double textWeight) noexcept override {
|
|
453
|
+
_swiftPart.setTextWeight(std::forward<decltype(textWeight)>(textWeight));
|
|
442
454
|
}
|
|
443
|
-
inline std::string
|
|
444
|
-
auto __result = _swiftPart.
|
|
455
|
+
inline std::string getTextFamily() noexcept override {
|
|
456
|
+
auto __result = _swiftPart.getTextFamily();
|
|
445
457
|
return __result;
|
|
446
458
|
}
|
|
447
|
-
inline void
|
|
448
|
-
_swiftPart.
|
|
459
|
+
inline void setTextFamily(const std::string& textFamily) noexcept override {
|
|
460
|
+
_swiftPart.setTextFamily(textFamily);
|
|
449
461
|
}
|
|
450
|
-
inline double
|
|
451
|
-
return _swiftPart.
|
|
462
|
+
inline double getTextColor() noexcept override {
|
|
463
|
+
return _swiftPart.getTextColor();
|
|
452
464
|
}
|
|
453
|
-
inline void
|
|
454
|
-
_swiftPart.
|
|
465
|
+
inline void setTextColor(double textColor) noexcept override {
|
|
466
|
+
_swiftPart.setTextColor(std::forward<decltype(textColor)>(textColor));
|
|
455
467
|
}
|
|
456
|
-
inline NitroInputTextAlign
|
|
457
|
-
auto __result = _swiftPart.
|
|
468
|
+
inline NitroInputTextAlign getTextAlignment() noexcept override {
|
|
469
|
+
auto __result = _swiftPart.getTextAlignment();
|
|
458
470
|
return static_cast<NitroInputTextAlign>(__result);
|
|
459
471
|
}
|
|
460
|
-
inline void
|
|
461
|
-
_swiftPart.
|
|
472
|
+
inline void setTextAlignment(NitroInputTextAlign textAlignment) noexcept override {
|
|
473
|
+
_swiftPart.setTextAlignment(static_cast<int>(textAlignment));
|
|
462
474
|
}
|
|
463
475
|
inline bool getRightToLeft() noexcept override {
|
|
464
476
|
return _swiftPart.getRightToLeft();
|
|
@@ -553,12 +565,36 @@ namespace margelo::nitro::nitroinput {
|
|
|
553
565
|
inline void setNumberOfLines(double numberOfLines) noexcept override {
|
|
554
566
|
_swiftPart.setNumberOfLines(std::forward<decltype(numberOfLines)>(numberOfLines));
|
|
555
567
|
}
|
|
556
|
-
inline NitroInputTextAlignVertical
|
|
557
|
-
auto __result = _swiftPart.
|
|
568
|
+
inline NitroInputTextAlignVertical getTextVerticalAlignment() noexcept override {
|
|
569
|
+
auto __result = _swiftPart.getTextVerticalAlignment();
|
|
558
570
|
return static_cast<NitroInputTextAlignVertical>(__result);
|
|
559
571
|
}
|
|
560
|
-
inline void
|
|
561
|
-
_swiftPart.
|
|
572
|
+
inline void setTextVerticalAlignment(NitroInputTextAlignVertical textVerticalAlignment) noexcept override {
|
|
573
|
+
_swiftPart.setTextVerticalAlignment(static_cast<int>(textVerticalAlignment));
|
|
574
|
+
}
|
|
575
|
+
inline double getTextInsetLeft() noexcept override {
|
|
576
|
+
return _swiftPart.getTextInsetLeft();
|
|
577
|
+
}
|
|
578
|
+
inline void setTextInsetLeft(double textInsetLeft) noexcept override {
|
|
579
|
+
_swiftPart.setTextInsetLeft(std::forward<decltype(textInsetLeft)>(textInsetLeft));
|
|
580
|
+
}
|
|
581
|
+
inline double getTextInsetTop() noexcept override {
|
|
582
|
+
return _swiftPart.getTextInsetTop();
|
|
583
|
+
}
|
|
584
|
+
inline void setTextInsetTop(double textInsetTop) noexcept override {
|
|
585
|
+
_swiftPart.setTextInsetTop(std::forward<decltype(textInsetTop)>(textInsetTop));
|
|
586
|
+
}
|
|
587
|
+
inline double getTextInsetRight() noexcept override {
|
|
588
|
+
return _swiftPart.getTextInsetRight();
|
|
589
|
+
}
|
|
590
|
+
inline void setTextInsetRight(double textInsetRight) noexcept override {
|
|
591
|
+
_swiftPart.setTextInsetRight(std::forward<decltype(textInsetRight)>(textInsetRight));
|
|
592
|
+
}
|
|
593
|
+
inline double getTextInsetBottom() noexcept override {
|
|
594
|
+
return _swiftPart.getTextInsetBottom();
|
|
595
|
+
}
|
|
596
|
+
inline void setTextInsetBottom(double textInsetBottom) noexcept override {
|
|
597
|
+
_swiftPart.setTextInsetBottom(std::forward<decltype(textInsetBottom)>(textInsetBottom));
|
|
562
598
|
}
|
|
563
599
|
inline bool getScrollEnabled() noexcept override {
|
|
564
600
|
return _swiftPart.getScrollEnabled();
|
|
@@ -318,12 +318,12 @@ namespace margelo::nitro::nitroinput {
|
|
|
318
318
|
inline void setShimmerDelay(std::optional<double> shimmerDelay) noexcept override {
|
|
319
319
|
_swiftPart.setShimmerDelay(shimmerDelay);
|
|
320
320
|
}
|
|
321
|
-
inline std::optional<double>
|
|
322
|
-
auto __result = _swiftPart.
|
|
321
|
+
inline std::optional<double> getTextSize() noexcept override {
|
|
322
|
+
auto __result = _swiftPart.getTextSize();
|
|
323
323
|
return __result;
|
|
324
324
|
}
|
|
325
|
-
inline void
|
|
326
|
-
_swiftPart.
|
|
325
|
+
inline void setTextSize(std::optional<double> textSize) noexcept override {
|
|
326
|
+
_swiftPart.setTextSize(textSize);
|
|
327
327
|
}
|
|
328
328
|
inline std::optional<double> getPrefixFontSize() noexcept override {
|
|
329
329
|
auto __result = _swiftPart.getPrefixFontSize();
|
|
@@ -360,12 +360,12 @@ namespace margelo::nitro::nitroinput {
|
|
|
360
360
|
inline void setSuffixAlign(std::optional<NitroNumberAffixAlign> suffixAlign) noexcept override {
|
|
361
361
|
_swiftPart.setSuffixAlign(suffixAlign);
|
|
362
362
|
}
|
|
363
|
-
inline std::optional<double>
|
|
364
|
-
auto __result = _swiftPart.
|
|
363
|
+
inline std::optional<double> getTextLetterSpacing() noexcept override {
|
|
364
|
+
auto __result = _swiftPart.getTextLetterSpacing();
|
|
365
365
|
return __result;
|
|
366
366
|
}
|
|
367
|
-
inline void
|
|
368
|
-
_swiftPart.
|
|
367
|
+
inline void setTextLetterSpacing(std::optional<double> textLetterSpacing) noexcept override {
|
|
368
|
+
_swiftPart.setTextLetterSpacing(textLetterSpacing);
|
|
369
369
|
}
|
|
370
370
|
inline std::optional<double> getPrefixSpacing() noexcept override {
|
|
371
371
|
auto __result = _swiftPart.getPrefixSpacing();
|
|
@@ -521,33 +521,33 @@ namespace margelo::nitro::nitroinput {
|
|
|
521
521
|
inline void setMaxFontSizeMultiplier(std::optional<double> maxFontSizeMultiplier) noexcept override {
|
|
522
522
|
_swiftPart.setMaxFontSizeMultiplier(maxFontSizeMultiplier);
|
|
523
523
|
}
|
|
524
|
-
inline std::optional<double>
|
|
525
|
-
auto __result = _swiftPart.
|
|
524
|
+
inline std::optional<double> getTextWeight() noexcept override {
|
|
525
|
+
auto __result = _swiftPart.getTextWeight();
|
|
526
526
|
return __result;
|
|
527
527
|
}
|
|
528
|
-
inline void
|
|
529
|
-
_swiftPart.
|
|
528
|
+
inline void setTextWeight(std::optional<double> textWeight) noexcept override {
|
|
529
|
+
_swiftPart.setTextWeight(textWeight);
|
|
530
530
|
}
|
|
531
|
-
inline std::optional<std::string>
|
|
532
|
-
auto __result = _swiftPart.
|
|
531
|
+
inline std::optional<std::string> getTextFamily() noexcept override {
|
|
532
|
+
auto __result = _swiftPart.getTextFamily();
|
|
533
533
|
return __result;
|
|
534
534
|
}
|
|
535
|
-
inline void
|
|
536
|
-
_swiftPart.
|
|
535
|
+
inline void setTextFamily(const std::optional<std::string>& textFamily) noexcept override {
|
|
536
|
+
_swiftPart.setTextFamily(textFamily);
|
|
537
537
|
}
|
|
538
|
-
inline std::optional<double>
|
|
539
|
-
auto __result = _swiftPart.
|
|
538
|
+
inline std::optional<double> getTextColor() noexcept override {
|
|
539
|
+
auto __result = _swiftPart.getTextColor();
|
|
540
540
|
return __result;
|
|
541
541
|
}
|
|
542
|
-
inline void
|
|
543
|
-
_swiftPart.
|
|
542
|
+
inline void setTextColor(std::optional<double> textColor) noexcept override {
|
|
543
|
+
_swiftPart.setTextColor(textColor);
|
|
544
544
|
}
|
|
545
|
-
inline std::optional<NitroNumberTextAlign>
|
|
546
|
-
auto __result = _swiftPart.
|
|
545
|
+
inline std::optional<NitroNumberTextAlign> getTextAlignment() noexcept override {
|
|
546
|
+
auto __result = _swiftPart.getTextAlignment();
|
|
547
547
|
return __result;
|
|
548
548
|
}
|
|
549
|
-
inline void
|
|
550
|
-
_swiftPart.
|
|
549
|
+
inline void setTextAlignment(std::optional<NitroNumberTextAlign> textAlignment) noexcept override {
|
|
550
|
+
_swiftPart.setTextAlignment(textAlignment);
|
|
551
551
|
}
|
|
552
552
|
inline std::optional<bool> getRightToLeft() noexcept override {
|
|
553
553
|
auto __result = _swiftPart.getRightToLeft();
|
|
@@ -81,47 +81,47 @@ namespace margelo::nitro::nitroinput {
|
|
|
81
81
|
inline void setText(const std::string& text) noexcept override {
|
|
82
82
|
_swiftPart.setText(text);
|
|
83
83
|
}
|
|
84
|
-
inline std::optional<double>
|
|
85
|
-
auto __result = _swiftPart.
|
|
84
|
+
inline std::optional<double> getTextSize() noexcept override {
|
|
85
|
+
auto __result = _swiftPart.getTextSize();
|
|
86
86
|
return __result;
|
|
87
87
|
}
|
|
88
|
-
inline void
|
|
89
|
-
_swiftPart.
|
|
88
|
+
inline void setTextSize(std::optional<double> textSize) noexcept override {
|
|
89
|
+
_swiftPart.setTextSize(textSize);
|
|
90
90
|
}
|
|
91
|
-
inline std::optional<double>
|
|
92
|
-
auto __result = _swiftPart.
|
|
91
|
+
inline std::optional<double> getTextWeight() noexcept override {
|
|
92
|
+
auto __result = _swiftPart.getTextWeight();
|
|
93
93
|
return __result;
|
|
94
94
|
}
|
|
95
|
-
inline void
|
|
96
|
-
_swiftPart.
|
|
95
|
+
inline void setTextWeight(std::optional<double> textWeight) noexcept override {
|
|
96
|
+
_swiftPart.setTextWeight(textWeight);
|
|
97
97
|
}
|
|
98
|
-
inline std::optional<std::string>
|
|
99
|
-
auto __result = _swiftPart.
|
|
98
|
+
inline std::optional<std::string> getTextFamily() noexcept override {
|
|
99
|
+
auto __result = _swiftPart.getTextFamily();
|
|
100
100
|
return __result;
|
|
101
101
|
}
|
|
102
|
-
inline void
|
|
103
|
-
_swiftPart.
|
|
102
|
+
inline void setTextFamily(const std::optional<std::string>& textFamily) noexcept override {
|
|
103
|
+
_swiftPart.setTextFamily(textFamily);
|
|
104
104
|
}
|
|
105
|
-
inline std::optional<double>
|
|
106
|
-
auto __result = _swiftPart.
|
|
105
|
+
inline std::optional<double> getTextColor() noexcept override {
|
|
106
|
+
auto __result = _swiftPart.getTextColor();
|
|
107
107
|
return __result;
|
|
108
108
|
}
|
|
109
|
-
inline void
|
|
110
|
-
_swiftPart.
|
|
109
|
+
inline void setTextColor(std::optional<double> textColor) noexcept override {
|
|
110
|
+
_swiftPart.setTextColor(textColor);
|
|
111
111
|
}
|
|
112
|
-
inline std::optional<double>
|
|
113
|
-
auto __result = _swiftPart.
|
|
112
|
+
inline std::optional<double> getTextLetterSpacing() noexcept override {
|
|
113
|
+
auto __result = _swiftPart.getTextLetterSpacing();
|
|
114
114
|
return __result;
|
|
115
115
|
}
|
|
116
|
-
inline void
|
|
117
|
-
_swiftPart.
|
|
116
|
+
inline void setTextLetterSpacing(std::optional<double> textLetterSpacing) noexcept override {
|
|
117
|
+
_swiftPart.setTextLetterSpacing(textLetterSpacing);
|
|
118
118
|
}
|
|
119
|
-
inline std::optional<NitroNumberTextAlign>
|
|
120
|
-
auto __result = _swiftPart.
|
|
119
|
+
inline std::optional<NitroNumberTextAlign> getTextAlignment() noexcept override {
|
|
120
|
+
auto __result = _swiftPart.getTextAlignment();
|
|
121
121
|
return __result;
|
|
122
122
|
}
|
|
123
|
-
inline void
|
|
124
|
-
_swiftPart.
|
|
123
|
+
inline void setTextAlignment(std::optional<NitroNumberTextAlign> textAlignment) noexcept override {
|
|
124
|
+
_swiftPart.setTextAlignment(textAlignment);
|
|
125
125
|
}
|
|
126
126
|
inline std::optional<bool> getRightToLeft() noexcept override {
|
|
127
127
|
auto __result = _swiftPart.getRightToLeft();
|