@onekeyfe/react-native-segment-slider 3.0.85 → 3.0.86-alpha.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/README.md +13 -3
- package/android/src/main/java/com/margelo/nitro/segmentslider/HybridSegmentSlider.kt +31 -7
- package/ios/HybridSegmentSlider.swift +34 -8
- package/lib/nitrogen/generated/android/c++/JFunc_void.hpp +3 -3
- package/lib/nitrogen/generated/android/c++/JFunc_void_double.hpp +3 -3
- package/lib/nitrogen/generated/android/c++/JHybridSegmentSliderSpec.cpp +71 -63
- package/lib/nitrogen/generated/android/c++/JHybridSegmentSliderSpec.hpp +24 -20
- package/lib/nitrogen/generated/android/c++/views/JHybridSegmentSliderStateUpdater.cpp +81 -77
- package/lib/nitrogen/generated/android/c++/views/JHybridSegmentSliderStateUpdater.hpp +4 -4
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/segmentslider/Func_void.kt +1 -1
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/segmentslider/Func_void_double.kt +1 -1
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/segmentslider/HybridSegmentSliderSpec.kt +25 -17
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/segmentslider/segmentsliderOnLoad.kt +1 -1
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/segmentslider/views/HybridSegmentSliderManager.kt +10 -40
- package/lib/nitrogen/generated/android/kotlin/com/margelo/nitro/segmentslider/views/HybridSegmentSliderStateUpdater.kt +1 -1
- package/lib/nitrogen/generated/android/segmentslider+autolinking.cmake +1 -1
- package/lib/nitrogen/generated/android/segmentslider+autolinking.gradle +1 -1
- package/lib/nitrogen/generated/android/segmentsliderOnLoad.cpp +20 -30
- package/lib/nitrogen/generated/android/segmentsliderOnLoad.hpp +5 -14
- package/lib/nitrogen/generated/ios/SegmentSlider+autolinking.rb +2 -2
- package/lib/nitrogen/generated/ios/SegmentSlider-Swift-Cxx-Bridge.cpp +1 -1
- package/lib/nitrogen/generated/ios/SegmentSlider-Swift-Cxx-Bridge.hpp +3 -3
- package/lib/nitrogen/generated/ios/SegmentSlider-Swift-Cxx-Umbrella.hpp +1 -1
- package/lib/nitrogen/generated/ios/SegmentSliderAutolinking.mm +1 -1
- package/lib/nitrogen/generated/ios/SegmentSliderAutolinking.swift +8 -9
- package/lib/nitrogen/generated/ios/c++/HybridSegmentSliderSpecSwift.cpp +1 -1
- package/lib/nitrogen/generated/ios/c++/HybridSegmentSliderSpecSwift.hpp +7 -7
- package/lib/nitrogen/generated/ios/c++/views/HybridSegmentSliderComponent.mm +6 -27
- package/lib/nitrogen/generated/ios/swift/Func_void.swift +2 -1
- package/lib/nitrogen/generated/ios/swift/Func_void_double.swift +2 -1
- package/lib/nitrogen/generated/ios/swift/HybridSegmentSliderSpec.swift +5 -3
- package/lib/nitrogen/generated/ios/swift/HybridSegmentSliderSpec_cxx.swift +13 -18
- package/lib/nitrogen/generated/shared/c++/HybridSegmentSliderSpec.cpp +3 -1
- package/lib/nitrogen/generated/shared/c++/HybridSegmentSliderSpec.hpp +3 -1
- package/lib/nitrogen/generated/shared/c++/views/HybridSegmentSliderComponent.cpp +46 -10
- package/lib/nitrogen/generated/shared/c++/views/HybridSegmentSliderComponent.hpp +7 -9
- package/lib/nitrogen/generated/shared/json/SegmentSliderConfig.json +1 -0
- package/lib/typescript/src/SegmentSlider.nitro.d.ts +8 -0
- package/lib/typescript/src/SegmentSlider.nitro.d.ts.map +1 -1
- package/nitrogen/generated/android/c++/JFunc_void.hpp +3 -3
- package/nitrogen/generated/android/c++/JFunc_void_double.hpp +3 -3
- package/nitrogen/generated/android/c++/JHybridSegmentSliderSpec.cpp +71 -63
- package/nitrogen/generated/android/c++/JHybridSegmentSliderSpec.hpp +24 -20
- package/nitrogen/generated/android/c++/views/JHybridSegmentSliderStateUpdater.cpp +81 -77
- package/nitrogen/generated/android/c++/views/JHybridSegmentSliderStateUpdater.hpp +4 -4
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/segmentslider/Func_void.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/segmentslider/Func_void_double.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/segmentslider/HybridSegmentSliderSpec.kt +25 -17
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/segmentslider/segmentsliderOnLoad.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/segmentslider/views/HybridSegmentSliderManager.kt +10 -40
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/segmentslider/views/HybridSegmentSliderStateUpdater.kt +1 -1
- package/nitrogen/generated/android/segmentslider+autolinking.cmake +1 -1
- package/nitrogen/generated/android/segmentslider+autolinking.gradle +1 -1
- package/nitrogen/generated/android/segmentsliderOnLoad.cpp +20 -30
- package/nitrogen/generated/android/segmentsliderOnLoad.hpp +5 -14
- package/nitrogen/generated/ios/SegmentSlider+autolinking.rb +2 -2
- package/nitrogen/generated/ios/SegmentSlider-Swift-Cxx-Bridge.cpp +1 -1
- package/nitrogen/generated/ios/SegmentSlider-Swift-Cxx-Bridge.hpp +3 -3
- package/nitrogen/generated/ios/SegmentSlider-Swift-Cxx-Umbrella.hpp +1 -1
- package/nitrogen/generated/ios/SegmentSliderAutolinking.mm +1 -1
- package/nitrogen/generated/ios/SegmentSliderAutolinking.swift +8 -9
- package/nitrogen/generated/ios/c++/HybridSegmentSliderSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridSegmentSliderSpecSwift.hpp +7 -7
- package/nitrogen/generated/ios/c++/views/HybridSegmentSliderComponent.mm +6 -27
- package/nitrogen/generated/ios/swift/Func_void.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_double.swift +2 -1
- package/nitrogen/generated/ios/swift/HybridSegmentSliderSpec.swift +5 -3
- package/nitrogen/generated/ios/swift/HybridSegmentSliderSpec_cxx.swift +13 -18
- package/nitrogen/generated/shared/c++/HybridSegmentSliderSpec.cpp +3 -1
- package/nitrogen/generated/shared/c++/HybridSegmentSliderSpec.hpp +3 -1
- package/nitrogen/generated/shared/c++/views/HybridSegmentSliderComponent.cpp +46 -10
- package/nitrogen/generated/shared/c++/views/HybridSegmentSliderComponent.hpp +7 -9
- package/nitrogen/generated/shared/json/SegmentSliderConfig.json +1 -0
- package/package.json +4 -4
- package/src/SegmentSlider.nitro.ts +12 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# SegmentSlider+autolinking.rb
|
|
3
3
|
# This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
# https://github.com/mrousavy/nitro
|
|
5
|
-
# Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
# Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
#
|
|
7
7
|
|
|
8
8
|
# This is a Ruby script that adds all files generated by Nitrogen
|
|
@@ -52,7 +52,7 @@ def add_nitrogen_files(spec)
|
|
|
52
52
|
spec.pod_target_xcconfig = current_pod_target_xcconfig.merge({
|
|
53
53
|
# Use C++ 20
|
|
54
54
|
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
|
|
55
|
-
# Enables C++ <-> Swift interop (by default it's only
|
|
55
|
+
# Enables C++ <-> Swift interop (by default it's only C)
|
|
56
56
|
"SWIFT_OBJC_INTEROP_MODE" => "objcxx",
|
|
57
57
|
# Enables stricter modular headers
|
|
58
58
|
"DEFINES_MODULE" => "YES",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// SegmentSlider-Swift-Cxx-Bridge.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "SegmentSlider-Swift-Cxx-Bridge.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// SegmentSlider-Swift-Cxx-Bridge.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -63,7 +63,7 @@ namespace margelo::nitro::segmentslider::bridge::swift {
|
|
|
63
63
|
return optional.has_value();
|
|
64
64
|
}
|
|
65
65
|
inline std::function<void(double /* value */)> get_std__optional_std__function_void_double____value______(const std::optional<std::function<void(double /* value */)>>& optional) noexcept {
|
|
66
|
-
return optional
|
|
66
|
+
return *optional;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
// pragma MARK: std::function<void()>
|
|
@@ -100,7 +100,7 @@ namespace margelo::nitro::segmentslider::bridge::swift {
|
|
|
100
100
|
return optional.has_value();
|
|
101
101
|
}
|
|
102
102
|
inline std::function<void()> get_std__optional_std__function_void____(const std::optional<std::function<void()>>& optional) noexcept {
|
|
103
|
-
return optional
|
|
103
|
+
return *optional;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
// pragma MARK: std::shared_ptr<HybridSegmentSliderSpec>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// SegmentSliderAutolinking.mm
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#import <Foundation/Foundation.h>
|
|
@@ -2,16 +2,19 @@
|
|
|
2
2
|
/// SegmentSliderAutolinking.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import NitroModules
|
|
9
|
-
|
|
10
|
-
// TODO: Use empty enums once Swift supports exporting them as namespaces
|
|
11
|
-
// See: https://github.com/swiftlang/swift/pull/83616
|
|
12
8
|
public final class SegmentSliderAutolinking {
|
|
13
9
|
public typealias bridge = margelo.nitro.segmentslider.bridge.swift
|
|
14
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Creates an instance of a Swift class that implements `HybridSegmentSliderSpec`,
|
|
13
|
+
* and wraps it in a Swift class that can directly interop with C++ (`HybridSegmentSliderSpec_cxx`)
|
|
14
|
+
*
|
|
15
|
+
* This is generated by Nitrogen and will initialize the class specified
|
|
16
|
+
* in the `"autolinking"` property of `nitro.json` (in this case, `HybridSegmentSlider`).
|
|
17
|
+
*/
|
|
15
18
|
public static func createSegmentSlider() -> bridge.std__shared_ptr_HybridSegmentSliderSpec_ {
|
|
16
19
|
let hybridObject = HybridSegmentSlider()
|
|
17
20
|
return { () -> bridge.std__shared_ptr_HybridSegmentSliderSpec_ in
|
|
@@ -19,8 +22,4 @@ public final class SegmentSliderAutolinking {
|
|
|
19
22
|
return __cxxWrapped.getCxxPart()
|
|
20
23
|
}()
|
|
21
24
|
}
|
|
22
|
-
|
|
23
|
-
public static func isSegmentSliderRecyclable() -> Bool {
|
|
24
|
-
return HybridSegmentSlider.self is any RecyclableView.Type
|
|
25
|
-
}
|
|
26
25
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridSegmentSliderSpecSwift.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridSegmentSliderSpecSwift.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridSegmentSliderSpecSwift.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -49,12 +49,6 @@ namespace margelo::nitro::segmentslider {
|
|
|
49
49
|
inline size_t getExternalMemorySize() noexcept override {
|
|
50
50
|
return _swiftPart.getMemorySize();
|
|
51
51
|
}
|
|
52
|
-
bool equals(const std::shared_ptr<HybridObject>& other) override {
|
|
53
|
-
if (auto otherCast = std::dynamic_pointer_cast<HybridSegmentSliderSpecSwift>(other)) {
|
|
54
|
-
return _swiftPart.equals(otherCast->_swiftPart);
|
|
55
|
-
}
|
|
56
|
-
return false;
|
|
57
|
-
}
|
|
58
52
|
void dispose() noexcept override {
|
|
59
53
|
_swiftPart.dispose();
|
|
60
54
|
}
|
|
@@ -118,6 +112,12 @@ namespace margelo::nitro::segmentslider {
|
|
|
118
112
|
inline void setSnapTapToSegment(bool snapTapToSegment) noexcept override {
|
|
119
113
|
_swiftPart.setSnapTapToSegment(std::forward<decltype(snapTapToSegment)>(snapTapToSegment));
|
|
120
114
|
}
|
|
115
|
+
inline bool getAlignSegmentMarksToIntegerValues() noexcept override {
|
|
116
|
+
return _swiftPart.getAlignSegmentMarksToIntegerValues();
|
|
117
|
+
}
|
|
118
|
+
inline void setAlignSegmentMarksToIntegerValues(bool alignSegmentMarksToIntegerValues) noexcept override {
|
|
119
|
+
_swiftPart.setAlignSegmentMarksToIntegerValues(std::forward<decltype(alignSegmentMarksToIntegerValues)>(alignSegmentMarksToIntegerValues));
|
|
120
|
+
}
|
|
121
121
|
inline std::string getFillColor() noexcept override {
|
|
122
122
|
auto __result = _swiftPart.getFillColor();
|
|
123
123
|
return __result;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridSegmentSliderComponent.mm
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#import "HybridSegmentSliderComponent.hpp"
|
|
@@ -17,13 +17,6 @@
|
|
|
17
17
|
#import "HybridSegmentSliderSpecSwift.hpp"
|
|
18
18
|
#import "SegmentSlider-Swift-Cxx-Umbrella.hpp"
|
|
19
19
|
|
|
20
|
-
#if __has_include(<cxxreact/ReactNativeVersion.h>)
|
|
21
|
-
#include <cxxreact/ReactNativeVersion.h>
|
|
22
|
-
#if REACT_NATIVE_VERSION_MINOR >= 82
|
|
23
|
-
#define ENABLE_RCT_COMPONENT_VIEW_INVALIDATE
|
|
24
|
-
#endif
|
|
25
|
-
#endif
|
|
26
|
-
|
|
27
20
|
using namespace facebook;
|
|
28
21
|
using namespace margelo::nitro::segmentslider;
|
|
29
22
|
using namespace margelo::nitro::segmentslider::views;
|
|
@@ -32,7 +25,6 @@ using namespace margelo::nitro::segmentslider::views;
|
|
|
32
25
|
* Represents the React Native View holder for the Nitro "SegmentSlider" HybridView.
|
|
33
26
|
*/
|
|
34
27
|
@interface HybridSegmentSliderComponent: RCTViewComponentView
|
|
35
|
-
+ (BOOL)shouldBeRecycled;
|
|
36
28
|
@end
|
|
37
29
|
|
|
38
30
|
@implementation HybridSegmentSliderComponent {
|
|
@@ -124,6 +116,11 @@ using namespace margelo::nitro::segmentslider::views;
|
|
|
124
116
|
swiftPart.setSnapTapToSegment(newViewProps.snapTapToSegment.value);
|
|
125
117
|
newViewProps.snapTapToSegment.isDirty = false;
|
|
126
118
|
}
|
|
119
|
+
// alignSegmentMarksToIntegerValues: boolean
|
|
120
|
+
if (newViewProps.alignSegmentMarksToIntegerValues.isDirty) {
|
|
121
|
+
swiftPart.setAlignSegmentMarksToIntegerValues(newViewProps.alignSegmentMarksToIntegerValues.value);
|
|
122
|
+
newViewProps.alignSegmentMarksToIntegerValues.isDirty = false;
|
|
123
|
+
}
|
|
127
124
|
// fillColor: string
|
|
128
125
|
if (newViewProps.fillColor.isDirty) {
|
|
129
126
|
swiftPart.setFillColor(newViewProps.fillColor.value);
|
|
@@ -201,22 +198,4 @@ using namespace margelo::nitro::segmentslider::views;
|
|
|
201
198
|
[super updateProps:props oldProps:oldProps];
|
|
202
199
|
}
|
|
203
200
|
|
|
204
|
-
+ (BOOL)shouldBeRecycled {
|
|
205
|
-
return SegmentSlider::SegmentSliderAutolinking::isSegmentSliderRecyclable();
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
- (void)prepareForRecycle {
|
|
209
|
-
[super prepareForRecycle];
|
|
210
|
-
SegmentSlider::HybridSegmentSliderSpec_cxx& swiftPart = _hybridView->getSwiftPart();
|
|
211
|
-
swiftPart.maybePrepareForRecycle();
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
#ifdef ENABLE_RCT_COMPONENT_VIEW_INVALIDATE
|
|
215
|
-
- (void)invalidate {
|
|
216
|
-
SegmentSlider::HybridSegmentSliderSpec_cxx& swiftPart = _hybridView->getSwiftPart();
|
|
217
|
-
swiftPart.onDropView();
|
|
218
|
-
[super invalidate];
|
|
219
|
-
}
|
|
220
|
-
#endif
|
|
221
|
-
|
|
222
201
|
@end
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
/// Func_void.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
/// Func_void_double.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
/// HybridSegmentSliderSpec.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
11
|
/// See ``HybridSegmentSliderSpec``
|
|
@@ -19,6 +20,7 @@ public protocol HybridSegmentSliderSpec_protocol: HybridObject, HybridView {
|
|
|
19
20
|
var showBubble: Bool { get set }
|
|
20
21
|
var centerOrigin: Bool { get set }
|
|
21
22
|
var snapTapToSegment: Bool { get set }
|
|
23
|
+
var alignSegmentMarksToIntegerValues: Bool { get set }
|
|
22
24
|
var fillColor: String { get set }
|
|
23
25
|
var trackColor: String { get set }
|
|
24
26
|
var thumbColor: String { get set }
|
|
@@ -49,14 +51,14 @@ open class HybridSegmentSliderSpec_base {
|
|
|
49
51
|
public init() { }
|
|
50
52
|
public func getCxxWrapper() -> HybridSegmentSliderSpec_cxx {
|
|
51
53
|
#if DEBUG
|
|
52
|
-
guard self is
|
|
54
|
+
guard self is HybridSegmentSliderSpec else {
|
|
53
55
|
fatalError("`self` is not a `HybridSegmentSliderSpec`! Did you accidentally inherit from `HybridSegmentSliderSpec_base` instead of `HybridSegmentSliderSpec`?")
|
|
54
56
|
}
|
|
55
57
|
#endif
|
|
56
58
|
if let cxxWrapper = self.cxxWrapper {
|
|
57
59
|
return cxxWrapper
|
|
58
60
|
} else {
|
|
59
|
-
let cxxWrapper = HybridSegmentSliderSpec_cxx(self as!
|
|
61
|
+
let cxxWrapper = HybridSegmentSliderSpec_cxx(self as! HybridSegmentSliderSpec)
|
|
60
62
|
self.cxxWrapper = cxxWrapper
|
|
61
63
|
return cxxWrapper
|
|
62
64
|
}
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
/// HybridSegmentSliderSpec_cxx.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
+
import Foundation
|
|
8
9
|
import NitroModules
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -95,14 +96,6 @@ open class HybridSegmentSliderSpec_cxx {
|
|
|
95
96
|
return MemoryHelper.getSizeOf(self.__implementation) + self.__implementation.memorySize
|
|
96
97
|
}
|
|
97
98
|
|
|
98
|
-
/**
|
|
99
|
-
* Compares this object with the given [other] object for reference equality.
|
|
100
|
-
*/
|
|
101
|
-
@inline(__always)
|
|
102
|
-
public func equals(other: HybridSegmentSliderSpec_cxx) -> Bool {
|
|
103
|
-
return self.__implementation === other.__implementation
|
|
104
|
-
}
|
|
105
|
-
|
|
106
99
|
/**
|
|
107
100
|
* Call dispose() on the Swift class.
|
|
108
101
|
* This _may_ be called manually from JS.
|
|
@@ -220,6 +213,17 @@ open class HybridSegmentSliderSpec_cxx {
|
|
|
220
213
|
}
|
|
221
214
|
}
|
|
222
215
|
|
|
216
|
+
public final var alignSegmentMarksToIntegerValues: Bool {
|
|
217
|
+
@inline(__always)
|
|
218
|
+
get {
|
|
219
|
+
return self.__implementation.alignSegmentMarksToIntegerValues
|
|
220
|
+
}
|
|
221
|
+
@inline(__always)
|
|
222
|
+
set {
|
|
223
|
+
self.__implementation.alignSegmentMarksToIntegerValues = newValue
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
223
227
|
public final var fillColor: std.string {
|
|
224
228
|
@inline(__always)
|
|
225
229
|
get {
|
|
@@ -438,13 +442,4 @@ open class HybridSegmentSliderSpec_cxx {
|
|
|
438
442
|
public final func afterUpdate() {
|
|
439
443
|
__implementation.afterUpdate()
|
|
440
444
|
}
|
|
441
|
-
|
|
442
|
-
public final func maybePrepareForRecycle() {
|
|
443
|
-
guard let recyclable = __implementation as? any RecyclableView else { return }
|
|
444
|
-
recyclable.prepareForRecycle()
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
public final func onDropView() {
|
|
448
|
-
__implementation.onDropView()
|
|
449
|
-
}
|
|
450
445
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridSegmentSliderSpec.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridSegmentSliderSpec.hpp"
|
|
@@ -32,6 +32,8 @@ namespace margelo::nitro::segmentslider {
|
|
|
32
32
|
prototype.registerHybridSetter("centerOrigin", &HybridSegmentSliderSpec::setCenterOrigin);
|
|
33
33
|
prototype.registerHybridGetter("snapTapToSegment", &HybridSegmentSliderSpec::getSnapTapToSegment);
|
|
34
34
|
prototype.registerHybridSetter("snapTapToSegment", &HybridSegmentSliderSpec::setSnapTapToSegment);
|
|
35
|
+
prototype.registerHybridGetter("alignSegmentMarksToIntegerValues", &HybridSegmentSliderSpec::getAlignSegmentMarksToIntegerValues);
|
|
36
|
+
prototype.registerHybridSetter("alignSegmentMarksToIntegerValues", &HybridSegmentSliderSpec::setAlignSegmentMarksToIntegerValues);
|
|
35
37
|
prototype.registerHybridGetter("fillColor", &HybridSegmentSliderSpec::getFillColor);
|
|
36
38
|
prototype.registerHybridSetter("fillColor", &HybridSegmentSliderSpec::setFillColor);
|
|
37
39
|
prototype.registerHybridGetter("trackColor", &HybridSegmentSliderSpec::getTrackColor);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridSegmentSliderSpec.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -64,6 +64,8 @@ namespace margelo::nitro::segmentslider {
|
|
|
64
64
|
virtual void setCenterOrigin(bool centerOrigin) = 0;
|
|
65
65
|
virtual bool getSnapTapToSegment() = 0;
|
|
66
66
|
virtual void setSnapTapToSegment(bool snapTapToSegment) = 0;
|
|
67
|
+
virtual bool getAlignSegmentMarksToIntegerValues() = 0;
|
|
68
|
+
virtual void setAlignSegmentMarksToIntegerValues(bool alignSegmentMarksToIntegerValues) = 0;
|
|
67
69
|
virtual std::string getFillColor() = 0;
|
|
68
70
|
virtual void setFillColor(const std::string& fillColor) = 0;
|
|
69
71
|
virtual std::string getTrackColor() = 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridSegmentSliderComponent.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridSegmentSliderComponent.hpp"
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
#include <utility>
|
|
13
13
|
#include <NitroModules/NitroDefines.hpp>
|
|
14
14
|
#include <NitroModules/JSIConverter.hpp>
|
|
15
|
-
#include <NitroModules/PropNameIDCache.hpp>
|
|
16
15
|
#include <react/renderer/core/RawValue.h>
|
|
17
16
|
#include <react/renderer/core/ShadowNode.h>
|
|
18
17
|
#include <react/renderer/core/ComponentDescriptor.h>
|
|
@@ -116,6 +115,16 @@ namespace margelo::nitro::segmentslider::views {
|
|
|
116
115
|
throw std::runtime_error(std::string("SegmentSlider.snapTapToSegment: ") + exc.what());
|
|
117
116
|
}
|
|
118
117
|
}()),
|
|
118
|
+
alignSegmentMarksToIntegerValues([&]() -> CachedProp<bool> {
|
|
119
|
+
try {
|
|
120
|
+
const react::RawValue* rawValue = rawProps.at("alignSegmentMarksToIntegerValues", nullptr, nullptr);
|
|
121
|
+
if (rawValue == nullptr) return sourceProps.alignSegmentMarksToIntegerValues;
|
|
122
|
+
const auto& [runtime, value] = (std::pair<jsi::Runtime*, jsi::Value>)*rawValue;
|
|
123
|
+
return CachedProp<bool>::fromRawValue(*runtime, value, sourceProps.alignSegmentMarksToIntegerValues);
|
|
124
|
+
} catch (const std::exception& exc) {
|
|
125
|
+
throw std::runtime_error(std::string("SegmentSlider.alignSegmentMarksToIntegerValues: ") + exc.what());
|
|
126
|
+
}
|
|
127
|
+
}()),
|
|
119
128
|
fillColor([&]() -> CachedProp<std::string> {
|
|
120
129
|
try {
|
|
121
130
|
const react::RawValue* rawValue = rawProps.at("fillColor", nullptr, nullptr);
|
|
@@ -211,7 +220,7 @@ namespace margelo::nitro::segmentslider::views {
|
|
|
211
220
|
const react::RawValue* rawValue = rawProps.at("onChange", nullptr, nullptr);
|
|
212
221
|
if (rawValue == nullptr) return sourceProps.onChange;
|
|
213
222
|
const auto& [runtime, value] = (std::pair<jsi::Runtime*, jsi::Value>)*rawValue;
|
|
214
|
-
return CachedProp<std::optional<std::function<void(double /* value */)>>>::fromRawValue(*runtime, value.asObject(*runtime).getProperty(*runtime,
|
|
223
|
+
return CachedProp<std::optional<std::function<void(double /* value */)>>>::fromRawValue(*runtime, value.asObject(*runtime).getProperty(*runtime, "f"), sourceProps.onChange);
|
|
215
224
|
} catch (const std::exception& exc) {
|
|
216
225
|
throw std::runtime_error(std::string("SegmentSlider.onChange: ") + exc.what());
|
|
217
226
|
}
|
|
@@ -221,7 +230,7 @@ namespace margelo::nitro::segmentslider::views {
|
|
|
221
230
|
const react::RawValue* rawValue = rawProps.at("onSlideStart", nullptr, nullptr);
|
|
222
231
|
if (rawValue == nullptr) return sourceProps.onSlideStart;
|
|
223
232
|
const auto& [runtime, value] = (std::pair<jsi::Runtime*, jsi::Value>)*rawValue;
|
|
224
|
-
return CachedProp<std::optional<std::function<void()>>>::fromRawValue(*runtime, value.asObject(*runtime).getProperty(*runtime,
|
|
233
|
+
return CachedProp<std::optional<std::function<void()>>>::fromRawValue(*runtime, value.asObject(*runtime).getProperty(*runtime, "f"), sourceProps.onSlideStart);
|
|
225
234
|
} catch (const std::exception& exc) {
|
|
226
235
|
throw std::runtime_error(std::string("SegmentSlider.onSlideStart: ") + exc.what());
|
|
227
236
|
}
|
|
@@ -231,7 +240,7 @@ namespace margelo::nitro::segmentslider::views {
|
|
|
231
240
|
const react::RawValue* rawValue = rawProps.at("onSlideComplete", nullptr, nullptr);
|
|
232
241
|
if (rawValue == nullptr) return sourceProps.onSlideComplete;
|
|
233
242
|
const auto& [runtime, value] = (std::pair<jsi::Runtime*, jsi::Value>)*rawValue;
|
|
234
|
-
return CachedProp<std::optional<std::function<void()>>>::fromRawValue(*runtime, value.asObject(*runtime).getProperty(*runtime,
|
|
243
|
+
return CachedProp<std::optional<std::function<void()>>>::fromRawValue(*runtime, value.asObject(*runtime).getProperty(*runtime, "f"), sourceProps.onSlideComplete);
|
|
235
244
|
} catch (const std::exception& exc) {
|
|
236
245
|
throw std::runtime_error(std::string("SegmentSlider.onSlideComplete: ") + exc.what());
|
|
237
246
|
}
|
|
@@ -241,12 +250,38 @@ namespace margelo::nitro::segmentslider::views {
|
|
|
241
250
|
const react::RawValue* rawValue = rawProps.at("hybridRef", nullptr, nullptr);
|
|
242
251
|
if (rawValue == nullptr) return sourceProps.hybridRef;
|
|
243
252
|
const auto& [runtime, value] = (std::pair<jsi::Runtime*, jsi::Value>)*rawValue;
|
|
244
|
-
return CachedProp<std::optional<std::function<void(const std::shared_ptr<HybridSegmentSliderSpec>& /* ref */)>>>::fromRawValue(*runtime, value.asObject(*runtime).getProperty(*runtime,
|
|
253
|
+
return CachedProp<std::optional<std::function<void(const std::shared_ptr<HybridSegmentSliderSpec>& /* ref */)>>>::fromRawValue(*runtime, value.asObject(*runtime).getProperty(*runtime, "f"), sourceProps.hybridRef);
|
|
245
254
|
} catch (const std::exception& exc) {
|
|
246
255
|
throw std::runtime_error(std::string("SegmentSlider.hybridRef: ") + exc.what());
|
|
247
256
|
}
|
|
248
257
|
}()) { }
|
|
249
258
|
|
|
259
|
+
HybridSegmentSliderProps::HybridSegmentSliderProps(const HybridSegmentSliderProps& other):
|
|
260
|
+
react::ViewProps(),
|
|
261
|
+
defaultValue(other.defaultValue),
|
|
262
|
+
min(other.min),
|
|
263
|
+
max(other.max),
|
|
264
|
+
segments(other.segments),
|
|
265
|
+
sliderHeight(other.sliderHeight),
|
|
266
|
+
disabled(other.disabled),
|
|
267
|
+
showBubble(other.showBubble),
|
|
268
|
+
centerOrigin(other.centerOrigin),
|
|
269
|
+
snapTapToSegment(other.snapTapToSegment),
|
|
270
|
+
alignSegmentMarksToIntegerValues(other.alignSegmentMarksToIntegerValues),
|
|
271
|
+
fillColor(other.fillColor),
|
|
272
|
+
trackColor(other.trackColor),
|
|
273
|
+
thumbColor(other.thumbColor),
|
|
274
|
+
thumbBorderColor(other.thumbBorderColor),
|
|
275
|
+
markActiveColor(other.markActiveColor),
|
|
276
|
+
markInactiveColor(other.markInactiveColor),
|
|
277
|
+
markBorderColor(other.markBorderColor),
|
|
278
|
+
bubbleColor(other.bubbleColor),
|
|
279
|
+
bubbleTextColor(other.bubbleTextColor),
|
|
280
|
+
onChange(other.onChange),
|
|
281
|
+
onSlideStart(other.onSlideStart),
|
|
282
|
+
onSlideComplete(other.onSlideComplete),
|
|
283
|
+
hybridRef(other.hybridRef) { }
|
|
284
|
+
|
|
250
285
|
bool HybridSegmentSliderProps::filterObjectKeys(const std::string& propName) {
|
|
251
286
|
switch (hashString(propName)) {
|
|
252
287
|
case hashString("defaultValue"): return true;
|
|
@@ -258,6 +293,7 @@ namespace margelo::nitro::segmentslider::views {
|
|
|
258
293
|
case hashString("showBubble"): return true;
|
|
259
294
|
case hashString("centerOrigin"): return true;
|
|
260
295
|
case hashString("snapTapToSegment"): return true;
|
|
296
|
+
case hashString("alignSegmentMarksToIntegerValues"): return true;
|
|
261
297
|
case hashString("fillColor"): return true;
|
|
262
298
|
case hashString("trackColor"): return true;
|
|
263
299
|
case hashString("thumbColor"): return true;
|
|
@@ -292,10 +328,10 @@ namespace margelo::nitro::segmentslider::views {
|
|
|
292
328
|
void HybridSegmentSliderComponentDescriptor::adopt(react::ShadowNode& shadowNode) const {
|
|
293
329
|
// This is called immediately after `ShadowNode` is created, cloned or in progress.
|
|
294
330
|
// On Android, we need to wrap props in our state, which gets routed through Java and later unwrapped in JNI/C++.
|
|
295
|
-
auto& concreteShadowNode =
|
|
296
|
-
const
|
|
297
|
-
|
|
298
|
-
|
|
331
|
+
auto& concreteShadowNode = dynamic_cast<HybridSegmentSliderShadowNode&>(shadowNode);
|
|
332
|
+
const HybridSegmentSliderProps& props = concreteShadowNode.getConcreteProps();
|
|
333
|
+
HybridSegmentSliderState state;
|
|
334
|
+
state.setProps(props);
|
|
299
335
|
concreteShadowNode.setStateData(std::move(state));
|
|
300
336
|
}
|
|
301
337
|
#endif
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridSegmentSliderComponent.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -37,6 +37,7 @@ namespace margelo::nitro::segmentslider::views {
|
|
|
37
37
|
class HybridSegmentSliderProps final: public react::ViewProps {
|
|
38
38
|
public:
|
|
39
39
|
HybridSegmentSliderProps() = default;
|
|
40
|
+
HybridSegmentSliderProps(const HybridSegmentSliderProps&);
|
|
40
41
|
HybridSegmentSliderProps(const react::PropsParserContext& context,
|
|
41
42
|
const HybridSegmentSliderProps& sourceProps,
|
|
42
43
|
const react::RawProps& rawProps);
|
|
@@ -51,6 +52,7 @@ namespace margelo::nitro::segmentslider::views {
|
|
|
51
52
|
CachedProp<bool> showBubble;
|
|
52
53
|
CachedProp<bool> centerOrigin;
|
|
53
54
|
CachedProp<bool> snapTapToSegment;
|
|
55
|
+
CachedProp<bool> alignSegmentMarksToIntegerValues;
|
|
54
56
|
CachedProp<std::string> fillColor;
|
|
55
57
|
CachedProp<std::string> trackColor;
|
|
56
58
|
CachedProp<std::string> thumbColor;
|
|
@@ -75,14 +77,10 @@ namespace margelo::nitro::segmentslider::views {
|
|
|
75
77
|
class HybridSegmentSliderState final {
|
|
76
78
|
public:
|
|
77
79
|
HybridSegmentSliderState() = default;
|
|
78
|
-
explicit HybridSegmentSliderState(const std::shared_ptr<HybridSegmentSliderProps>& props):
|
|
79
|
-
_props(props) {}
|
|
80
80
|
|
|
81
81
|
public:
|
|
82
|
-
|
|
83
|
-
const std::
|
|
84
|
-
return _props;
|
|
85
|
-
}
|
|
82
|
+
void setProps(const HybridSegmentSliderProps& props) { _props.emplace(props); }
|
|
83
|
+
const std::optional<HybridSegmentSliderProps>& getProps() const { return _props; }
|
|
86
84
|
|
|
87
85
|
public:
|
|
88
86
|
#ifdef ANDROID
|
|
@@ -96,7 +94,7 @@ namespace margelo::nitro::segmentslider::views {
|
|
|
96
94
|
#endif
|
|
97
95
|
|
|
98
96
|
private:
|
|
99
|
-
std::
|
|
97
|
+
std::optional<HybridSegmentSliderProps> _props;
|
|
100
98
|
};
|
|
101
99
|
|
|
102
100
|
/**
|
|
@@ -112,7 +110,7 @@ namespace margelo::nitro::segmentslider::views {
|
|
|
112
110
|
*/
|
|
113
111
|
class HybridSegmentSliderComponentDescriptor final: public react::ConcreteComponentDescriptor<HybridSegmentSliderShadowNode> {
|
|
114
112
|
public:
|
|
115
|
-
|
|
113
|
+
HybridSegmentSliderComponentDescriptor(const react::ComponentDescriptorParameters& parameters);
|
|
116
114
|
|
|
117
115
|
public:
|
|
118
116
|
/**
|
|
@@ -14,6 +14,7 @@ import type { HybridView, HybridViewMethods, HybridViewProps } from 'react-nativ
|
|
|
14
14
|
* pct = (clamp(value,min,max) - min) / (max - min)
|
|
15
15
|
* thumb x = 8 + pct * W'
|
|
16
16
|
* mark i x = 8 + (i / segments) * W' (i in 0..segments)
|
|
17
|
+
* aligned mark i uses pct(roundHalfToEven(min + i * step))
|
|
17
18
|
*
|
|
18
19
|
* Colors are resolved from the Tamagui theme in the JS wrapper and passed in as
|
|
19
20
|
* hex / rgba() strings so the native side never depends on the theme system.
|
|
@@ -50,6 +51,13 @@ export interface SegmentSliderProps extends HybridViewProps {
|
|
|
50
51
|
* callers keep the free-tap behavior.
|
|
51
52
|
*/
|
|
52
53
|
snapTapToSegment: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* When true, segment marks use the same integer values emitted by the slider.
|
|
56
|
+
* This keeps a rounded thumb centered on marks whose evenly divided values
|
|
57
|
+
* would otherwise be fractional. Half steps round to even so the result is
|
|
58
|
+
* consistent with the web slider. Default false.
|
|
59
|
+
*/
|
|
60
|
+
alignSegmentMarksToIntegerValues: boolean;
|
|
53
61
|
/** Active fill bar color (Tamagui `bgPrimary`). */
|
|
54
62
|
fillColor: string;
|
|
55
63
|
/** Inactive track color (Tamagui `neutral5`). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentSlider.nitro.d.ts","sourceRoot":"","sources":["../../../src/SegmentSlider.nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,iBAAiB,EACjB,eAAe,EAChB,MAAM,4BAA4B,CAAC;AAEpC
|
|
1
|
+
{"version":3,"file":"SegmentSlider.nitro.d.ts","sourceRoot":"","sources":["../../../src/SegmentSlider.nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,iBAAiB,EACjB,eAAe,EAChB,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,WAAW,kBAAmB,SAAQ,eAAe;IACzD;;;;;;;;OAQG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,4CAA4C;IAC5C,GAAG,EAAE,MAAM,CAAC;IACZ,qBAAqB;IACrB,GAAG,EAAE,MAAM,CAAC;IACZ,4EAA4E;IAC5E,QAAQ,EAAE,MAAM,CAAC;IACjB,8CAA8C;IAC9C,YAAY,EAAE,MAAM,CAAC;IACrB,0DAA0D;IAC1D,QAAQ,EAAE,OAAO,CAAC;IAClB,6EAA6E;IAC7E,UAAU,EAAE,OAAO,CAAC;IACpB,4EAA4E;IAC5E,YAAY,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAC1B;;;;;OAKG;IACH,gCAAgC,EAAE,OAAO,CAAC;IAG1C,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,gBAAgB,EAAE,MAAM,CAAC;IACzB,6DAA6D;IAC7D,eAAe,EAAE,MAAM,CAAC;IACxB,+CAA+C;IAC/C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,uDAAuD;IACvD,eAAe,EAAE,MAAM,CAAC;IACxB,qDAAqD;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,eAAe,EAAE,MAAM,CAAC;IAExB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,yCAAyC;IACzC,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,uCAAuC;IACvC,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,MAAM,aAAa,GAAG,UAAU,CACpC,kBAAkB,EAClB,oBAAoB,CACrB,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// JFunc_void.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -23,7 +23,7 @@ namespace margelo::nitro::segmentslider {
|
|
|
23
23
|
*/
|
|
24
24
|
struct JFunc_void: public jni::JavaClass<JFunc_void> {
|
|
25
25
|
public:
|
|
26
|
-
static constexpr
|
|
26
|
+
static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/segmentslider/Func_void;";
|
|
27
27
|
|
|
28
28
|
public:
|
|
29
29
|
/**
|
|
@@ -59,7 +59,7 @@ namespace margelo::nitro::segmentslider {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
public:
|
|
62
|
-
static constexpr
|
|
62
|
+
static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/segmentslider/Func_void_cxx;";
|
|
63
63
|
static void registerNatives() {
|
|
64
64
|
registerHybrid({makeNativeMethod("invoke_cxx", JFunc_void_cxx::invoke_cxx)});
|
|
65
65
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// JFunc_void_double.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright © Marc Rousavy @ Margelo
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -23,7 +23,7 @@ namespace margelo::nitro::segmentslider {
|
|
|
23
23
|
*/
|
|
24
24
|
struct JFunc_void_double: public jni::JavaClass<JFunc_void_double> {
|
|
25
25
|
public:
|
|
26
|
-
static constexpr
|
|
26
|
+
static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/segmentslider/Func_void_double;";
|
|
27
27
|
|
|
28
28
|
public:
|
|
29
29
|
/**
|
|
@@ -59,7 +59,7 @@ namespace margelo::nitro::segmentslider {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
public:
|
|
62
|
-
static constexpr
|
|
62
|
+
static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/segmentslider/Func_void_double_cxx;";
|
|
63
63
|
static void registerNatives() {
|
|
64
64
|
registerHybrid({makeNativeMethod("invoke_cxx", JFunc_void_double_cxx::invoke_cxx)});
|
|
65
65
|
}
|