@rive-app/react-native 0.2.6 → 0.2.7
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/android/src/main/java/com/margelo/nitro/rive/{Rive.kt → HybridDefaultFallbackFont.kt} +1 -5
- package/android/src/main/java/com/margelo/nitro/rive/HybridFallbackFont.kt +10 -0
- package/android/src/main/java/com/margelo/nitro/rive/HybridRiveFontConfig.kt +136 -0
- package/ios/HybridDefaultFallbackFont.swift +3 -0
- package/ios/HybridFallbackFont.swift +10 -0
- package/ios/HybridRiveFontConfig.swift +109 -0
- package/lib/module/core/RiveFonts.js +72 -0
- package/lib/module/core/RiveFonts.js.map +1 -0
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/specs/RiveFontConfig.nitro.js +4 -0
- package/lib/module/specs/{Rive.nitro.js.map → RiveFontConfig.nitro.js.map} +1 -1
- package/lib/typescript/src/core/RiveFonts.d.ts +23 -0
- package/lib/typescript/src/core/RiveFonts.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +2 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/specs/RiveFontConfig.nitro.d.ts +20 -0
- package/lib/typescript/src/specs/RiveFontConfig.nitro.d.ts.map +1 -0
- package/nitrogen/generated/android/c++/JHybridFallbackFontSpec.cpp +55 -0
- package/nitrogen/generated/android/c++/{JHybridRiveSpec.hpp → JHybridFallbackFontSpec.hpp} +11 -11
- package/nitrogen/generated/android/c++/JHybridRiveFontConfigSpec.cpp +143 -0
- package/nitrogen/generated/android/c++/JHybridRiveFontConfigSpec.hpp +73 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rive/{HybridRiveSpec.kt → HybridFallbackFontSpec.kt} +7 -9
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/rive/HybridRiveFontConfigSpec.kt +87 -0
- package/nitrogen/generated/android/rive+autolinking.cmake +4 -2
- package/nitrogen/generated/android/riveOnLoad.cpp +6 -4
- package/nitrogen/generated/ios/RNRive-Swift-Cxx-Bridge.cpp +50 -25
- package/nitrogen/generated/ios/RNRive-Swift-Cxx-Bridge.hpp +149 -69
- package/nitrogen/generated/ios/RNRive-Swift-Cxx-Umbrella.hpp +10 -5
- package/nitrogen/generated/ios/RNRiveAutolinking.mm +3 -3
- package/nitrogen/generated/ios/RNRiveAutolinking.swift +5 -5
- package/nitrogen/generated/ios/c++/{HybridRiveSpecSwift.cpp → HybridFallbackFontSpecSwift.cpp} +2 -2
- package/nitrogen/generated/ios/c++/{HybridRiveSpecSwift.hpp → HybridFallbackFontSpecSwift.hpp} +14 -21
- package/nitrogen/generated/ios/c++/HybridRiveFontConfigSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridRiveFontConfigSpecSwift.hpp +145 -0
- package/nitrogen/generated/ios/swift/Func_void_std__shared_ptr_HybridFallbackFontSpec_.swift +51 -0
- package/nitrogen/generated/ios/swift/HybridFallbackFontSpec.swift +56 -0
- package/nitrogen/generated/ios/swift/{HybridRiveSpec_cxx.swift → HybridFallbackFontSpec_cxx.swift} +20 -30
- package/nitrogen/generated/ios/swift/HybridRiveFontConfigSpec.swift +63 -0
- package/nitrogen/generated/ios/swift/HybridRiveFontConfigSpec_cxx.swift +262 -0
- package/nitrogen/generated/shared/c++/{HybridRiveSpec.cpp → HybridFallbackFontSpec.cpp} +4 -4
- package/nitrogen/generated/shared/c++/{HybridRiveSpec.hpp → HybridFallbackFontSpec.hpp} +10 -10
- package/nitrogen/generated/shared/c++/HybridRiveFontConfigSpec.cpp +28 -0
- package/nitrogen/generated/shared/c++/HybridRiveFontConfigSpec.hpp +75 -0
- package/package.json +1 -1
- package/src/core/RiveFonts.ts +95 -0
- package/src/index.tsx +7 -0
- package/src/specs/RiveFontConfig.nitro.ts +16 -0
- package/ios/Rive.swift +0 -5
- package/lib/module/specs/Rive.nitro.js +0 -4
- package/lib/typescript/src/specs/Rive.nitro.d.ts +0 -8
- package/lib/typescript/src/specs/Rive.nitro.d.ts.map +0 -1
- package/nitrogen/generated/android/c++/JHybridRiveSpec.cpp +0 -59
- package/nitrogen/generated/ios/swift/HybridRiveSpec.swift +0 -56
- package/src/specs/Rive.nitro.ts +0 -6
|
@@ -22,18 +22,20 @@ namespace margelo::nitro::rive { enum class DataBindMode; }
|
|
|
22
22
|
namespace margelo::nitro::rive { enum class Fit; }
|
|
23
23
|
// Forward declaration of `HybridBindableArtboardSpec` to properly resolve imports.
|
|
24
24
|
namespace margelo::nitro::rive { class HybridBindableArtboardSpec; }
|
|
25
|
+
// Forward declaration of `HybridFallbackFontSpec` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::rive { class HybridFallbackFontSpec; }
|
|
25
27
|
// Forward declaration of `HybridRiveFileFactorySpec` to properly resolve imports.
|
|
26
28
|
namespace margelo::nitro::rive { class HybridRiveFileFactorySpec; }
|
|
27
29
|
// Forward declaration of `HybridRiveFileSpec` to properly resolve imports.
|
|
28
30
|
namespace margelo::nitro::rive { class HybridRiveFileSpec; }
|
|
31
|
+
// Forward declaration of `HybridRiveFontConfigSpec` to properly resolve imports.
|
|
32
|
+
namespace margelo::nitro::rive { class HybridRiveFontConfigSpec; }
|
|
29
33
|
// Forward declaration of `HybridRiveImageFactorySpec` to properly resolve imports.
|
|
30
34
|
namespace margelo::nitro::rive { class HybridRiveImageFactorySpec; }
|
|
31
35
|
// Forward declaration of `HybridRiveImageSpec` to properly resolve imports.
|
|
32
36
|
namespace margelo::nitro::rive { class HybridRiveImageSpec; }
|
|
33
37
|
// Forward declaration of `HybridRiveRuntimeSpec` to properly resolve imports.
|
|
34
38
|
namespace margelo::nitro::rive { class HybridRiveRuntimeSpec; }
|
|
35
|
-
// Forward declaration of `HybridRiveSpec` to properly resolve imports.
|
|
36
|
-
namespace margelo::nitro::rive { class HybridRiveSpec; }
|
|
37
39
|
// Forward declaration of `HybridRiveViewSpec` to properly resolve imports.
|
|
38
40
|
namespace margelo::nitro::rive { class HybridRiveViewSpec; }
|
|
39
41
|
// Forward declaration of `HybridViewModelArtboardPropertySpec` to properly resolve imports.
|
|
@@ -76,18 +78,20 @@ namespace margelo::nitro::rive { struct UnifiedRiveEvent; }
|
|
|
76
78
|
// Forward declarations of Swift defined types
|
|
77
79
|
// Forward declaration of `HybridBindableArtboardSpec_cxx` to properly resolve imports.
|
|
78
80
|
namespace RNRive { class HybridBindableArtboardSpec_cxx; }
|
|
81
|
+
// Forward declaration of `HybridFallbackFontSpec_cxx` to properly resolve imports.
|
|
82
|
+
namespace RNRive { class HybridFallbackFontSpec_cxx; }
|
|
79
83
|
// Forward declaration of `HybridRiveFileFactorySpec_cxx` to properly resolve imports.
|
|
80
84
|
namespace RNRive { class HybridRiveFileFactorySpec_cxx; }
|
|
81
85
|
// Forward declaration of `HybridRiveFileSpec_cxx` to properly resolve imports.
|
|
82
86
|
namespace RNRive { class HybridRiveFileSpec_cxx; }
|
|
87
|
+
// Forward declaration of `HybridRiveFontConfigSpec_cxx` to properly resolve imports.
|
|
88
|
+
namespace RNRive { class HybridRiveFontConfigSpec_cxx; }
|
|
83
89
|
// Forward declaration of `HybridRiveImageFactorySpec_cxx` to properly resolve imports.
|
|
84
90
|
namespace RNRive { class HybridRiveImageFactorySpec_cxx; }
|
|
85
91
|
// Forward declaration of `HybridRiveImageSpec_cxx` to properly resolve imports.
|
|
86
92
|
namespace RNRive { class HybridRiveImageSpec_cxx; }
|
|
87
93
|
// Forward declaration of `HybridRiveRuntimeSpec_cxx` to properly resolve imports.
|
|
88
94
|
namespace RNRive { class HybridRiveRuntimeSpec_cxx; }
|
|
89
|
-
// Forward declaration of `HybridRiveSpec_cxx` to properly resolve imports.
|
|
90
|
-
namespace RNRive { class HybridRiveSpec_cxx; }
|
|
91
95
|
// Forward declaration of `HybridRiveViewSpec_cxx` to properly resolve imports.
|
|
92
96
|
namespace RNRive { class HybridRiveViewSpec_cxx; }
|
|
93
97
|
// Forward declaration of `HybridViewModelArtboardPropertySpec_cxx` to properly resolve imports.
|
|
@@ -123,12 +127,13 @@ namespace RNRive { class HybridViewModelTriggerPropertySpec_cxx; }
|
|
|
123
127
|
#include "DataBindMode.hpp"
|
|
124
128
|
#include "Fit.hpp"
|
|
125
129
|
#include "HybridBindableArtboardSpec.hpp"
|
|
130
|
+
#include "HybridFallbackFontSpec.hpp"
|
|
126
131
|
#include "HybridRiveFileFactorySpec.hpp"
|
|
127
132
|
#include "HybridRiveFileSpec.hpp"
|
|
133
|
+
#include "HybridRiveFontConfigSpec.hpp"
|
|
128
134
|
#include "HybridRiveImageFactorySpec.hpp"
|
|
129
135
|
#include "HybridRiveImageSpec.hpp"
|
|
130
136
|
#include "HybridRiveRuntimeSpec.hpp"
|
|
131
|
-
#include "HybridRiveSpec.hpp"
|
|
132
137
|
#include "HybridRiveViewSpec.hpp"
|
|
133
138
|
#include "HybridViewModelArtboardPropertySpec.hpp"
|
|
134
139
|
#include "HybridViewModelBooleanPropertySpec.hpp"
|
|
@@ -178,27 +183,6 @@ namespace margelo::nitro::rive::bridge::swift {
|
|
|
178
183
|
using std__weak_ptr_HybridBindableArtboardSpec_ = std::weak_ptr<HybridBindableArtboardSpec>;
|
|
179
184
|
inline std__weak_ptr_HybridBindableArtboardSpec_ weakify_std__shared_ptr_HybridBindableArtboardSpec_(const std::shared_ptr<HybridBindableArtboardSpec>& strong) noexcept { return strong; }
|
|
180
185
|
|
|
181
|
-
// pragma MARK: std::shared_ptr<HybridRiveSpec>
|
|
182
|
-
/**
|
|
183
|
-
* Specialized version of `std::shared_ptr<HybridRiveSpec>`.
|
|
184
|
-
*/
|
|
185
|
-
using std__shared_ptr_HybridRiveSpec_ = std::shared_ptr<HybridRiveSpec>;
|
|
186
|
-
std::shared_ptr<HybridRiveSpec> create_std__shared_ptr_HybridRiveSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
187
|
-
void* NON_NULL get_std__shared_ptr_HybridRiveSpec_(std__shared_ptr_HybridRiveSpec_ cppType);
|
|
188
|
-
|
|
189
|
-
// pragma MARK: std::weak_ptr<HybridRiveSpec>
|
|
190
|
-
using std__weak_ptr_HybridRiveSpec_ = std::weak_ptr<HybridRiveSpec>;
|
|
191
|
-
inline std__weak_ptr_HybridRiveSpec_ weakify_std__shared_ptr_HybridRiveSpec_(const std::shared_ptr<HybridRiveSpec>& strong) noexcept { return strong; }
|
|
192
|
-
|
|
193
|
-
// pragma MARK: Result<double>
|
|
194
|
-
using Result_double_ = Result<double>;
|
|
195
|
-
inline Result_double_ create_Result_double_(double value) noexcept {
|
|
196
|
-
return Result<double>::withValue(std::move(value));
|
|
197
|
-
}
|
|
198
|
-
inline Result_double_ create_Result_double_(const std::exception_ptr& error) noexcept {
|
|
199
|
-
return Result<double>::withError(error);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
186
|
// pragma MARK: std::optional<double>
|
|
203
187
|
/**
|
|
204
188
|
* Specialized version of `std::optional<double>`.
|
|
@@ -480,59 +464,61 @@ namespace margelo::nitro::rive::bridge::swift {
|
|
|
480
464
|
return Result<std::shared_ptr<Promise<std::shared_ptr<HybridRiveFileSpec>>>>::withError(error);
|
|
481
465
|
}
|
|
482
466
|
|
|
483
|
-
// pragma MARK: std::shared_ptr<
|
|
467
|
+
// pragma MARK: std::shared_ptr<HybridFallbackFontSpec>
|
|
484
468
|
/**
|
|
485
|
-
* Specialized version of `std::shared_ptr<
|
|
469
|
+
* Specialized version of `std::shared_ptr<HybridFallbackFontSpec>`.
|
|
486
470
|
*/
|
|
487
|
-
using
|
|
488
|
-
|
|
489
|
-
|
|
471
|
+
using std__shared_ptr_HybridFallbackFontSpec_ = std::shared_ptr<HybridFallbackFontSpec>;
|
|
472
|
+
std::shared_ptr<HybridFallbackFontSpec> create_std__shared_ptr_HybridFallbackFontSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
473
|
+
void* NON_NULL get_std__shared_ptr_HybridFallbackFontSpec_(std__shared_ptr_HybridFallbackFontSpec_ cppType);
|
|
474
|
+
|
|
475
|
+
// pragma MARK: std::weak_ptr<HybridFallbackFontSpec>
|
|
476
|
+
using std__weak_ptr_HybridFallbackFontSpec_ = std::weak_ptr<HybridFallbackFontSpec>;
|
|
477
|
+
inline std__weak_ptr_HybridFallbackFontSpec_ weakify_std__shared_ptr_HybridFallbackFontSpec_(const std::shared_ptr<HybridFallbackFontSpec>& strong) noexcept { return strong; }
|
|
478
|
+
|
|
479
|
+
// pragma MARK: std::shared_ptr<Promise<std::shared_ptr<HybridFallbackFontSpec>>>
|
|
480
|
+
/**
|
|
481
|
+
* Specialized version of `std::shared_ptr<Promise<std::shared_ptr<HybridFallbackFontSpec>>>`.
|
|
482
|
+
*/
|
|
483
|
+
using std__shared_ptr_Promise_std__shared_ptr_HybridFallbackFontSpec___ = std::shared_ptr<Promise<std::shared_ptr<HybridFallbackFontSpec>>>;
|
|
484
|
+
inline std::shared_ptr<Promise<std::shared_ptr<HybridFallbackFontSpec>>> create_std__shared_ptr_Promise_std__shared_ptr_HybridFallbackFontSpec___() noexcept {
|
|
485
|
+
return Promise<std::shared_ptr<HybridFallbackFontSpec>>::create();
|
|
490
486
|
}
|
|
491
|
-
inline PromiseHolder<std::shared_ptr<
|
|
492
|
-
return PromiseHolder<std::shared_ptr<
|
|
487
|
+
inline PromiseHolder<std::shared_ptr<HybridFallbackFontSpec>> wrap_std__shared_ptr_Promise_std__shared_ptr_HybridFallbackFontSpec___(std::shared_ptr<Promise<std::shared_ptr<HybridFallbackFontSpec>>> promise) noexcept {
|
|
488
|
+
return PromiseHolder<std::shared_ptr<HybridFallbackFontSpec>>(std::move(promise));
|
|
493
489
|
}
|
|
494
490
|
|
|
495
|
-
// pragma MARK: std::function<void(const std::shared_ptr<
|
|
491
|
+
// pragma MARK: std::function<void(const std::shared_ptr<HybridFallbackFontSpec>& /* result */)>
|
|
496
492
|
/**
|
|
497
|
-
* Specialized version of `std::function<void(const std::shared_ptr<
|
|
493
|
+
* Specialized version of `std::function<void(const std::shared_ptr<HybridFallbackFontSpec>&)>`.
|
|
498
494
|
*/
|
|
499
|
-
using
|
|
495
|
+
using Func_void_std__shared_ptr_HybridFallbackFontSpec_ = std::function<void(const std::shared_ptr<HybridFallbackFontSpec>& /* result */)>;
|
|
500
496
|
/**
|
|
501
|
-
* Wrapper class for a `std::function<void(const std::shared_ptr<
|
|
497
|
+
* Wrapper class for a `std::function<void(const std::shared_ptr<HybridFallbackFontSpec>& / * result * /)>`, this can be used from Swift.
|
|
502
498
|
*/
|
|
503
|
-
class
|
|
499
|
+
class Func_void_std__shared_ptr_HybridFallbackFontSpec__Wrapper final {
|
|
504
500
|
public:
|
|
505
|
-
explicit
|
|
506
|
-
inline void call(std::shared_ptr<
|
|
501
|
+
explicit Func_void_std__shared_ptr_HybridFallbackFontSpec__Wrapper(std::function<void(const std::shared_ptr<HybridFallbackFontSpec>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::shared_ptr<HybridFallbackFontSpec>& /* result */)>>(std::move(func))) {}
|
|
502
|
+
inline void call(std::shared_ptr<HybridFallbackFontSpec> result) const noexcept {
|
|
507
503
|
_function->operator()(result);
|
|
508
504
|
}
|
|
509
505
|
private:
|
|
510
|
-
std::unique_ptr<std::function<void(const std::shared_ptr<
|
|
506
|
+
std::unique_ptr<std::function<void(const std::shared_ptr<HybridFallbackFontSpec>& /* result */)>> _function;
|
|
511
507
|
} SWIFT_NONCOPYABLE;
|
|
512
|
-
|
|
513
|
-
inline
|
|
514
|
-
return
|
|
508
|
+
Func_void_std__shared_ptr_HybridFallbackFontSpec_ create_Func_void_std__shared_ptr_HybridFallbackFontSpec_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
509
|
+
inline Func_void_std__shared_ptr_HybridFallbackFontSpec__Wrapper wrap_Func_void_std__shared_ptr_HybridFallbackFontSpec_(Func_void_std__shared_ptr_HybridFallbackFontSpec_ value) noexcept {
|
|
510
|
+
return Func_void_std__shared_ptr_HybridFallbackFontSpec__Wrapper(std::move(value));
|
|
515
511
|
}
|
|
516
512
|
|
|
517
|
-
// pragma MARK: std::shared_ptr<
|
|
513
|
+
// pragma MARK: std::vector<std::shared_ptr<HybridFallbackFontSpec>>
|
|
518
514
|
/**
|
|
519
|
-
* Specialized version of `std::shared_ptr<
|
|
515
|
+
* Specialized version of `std::vector<std::shared_ptr<HybridFallbackFontSpec>>`.
|
|
520
516
|
*/
|
|
521
|
-
using
|
|
522
|
-
std::shared_ptr<
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
using std__weak_ptr_HybridRiveImageFactorySpec_ = std::weak_ptr<HybridRiveImageFactorySpec>;
|
|
527
|
-
inline std__weak_ptr_HybridRiveImageFactorySpec_ weakify_std__shared_ptr_HybridRiveImageFactorySpec_(const std::shared_ptr<HybridRiveImageFactorySpec>& strong) noexcept { return strong; }
|
|
528
|
-
|
|
529
|
-
// pragma MARK: Result<std::shared_ptr<Promise<std::shared_ptr<HybridRiveImageSpec>>>>
|
|
530
|
-
using Result_std__shared_ptr_Promise_std__shared_ptr_HybridRiveImageSpec____ = Result<std::shared_ptr<Promise<std::shared_ptr<HybridRiveImageSpec>>>>;
|
|
531
|
-
inline Result_std__shared_ptr_Promise_std__shared_ptr_HybridRiveImageSpec____ create_Result_std__shared_ptr_Promise_std__shared_ptr_HybridRiveImageSpec____(const std::shared_ptr<Promise<std::shared_ptr<HybridRiveImageSpec>>>& value) noexcept {
|
|
532
|
-
return Result<std::shared_ptr<Promise<std::shared_ptr<HybridRiveImageSpec>>>>::withValue(value);
|
|
533
|
-
}
|
|
534
|
-
inline Result_std__shared_ptr_Promise_std__shared_ptr_HybridRiveImageSpec____ create_Result_std__shared_ptr_Promise_std__shared_ptr_HybridRiveImageSpec____(const std::exception_ptr& error) noexcept {
|
|
535
|
-
return Result<std::shared_ptr<Promise<std::shared_ptr<HybridRiveImageSpec>>>>::withError(error);
|
|
517
|
+
using std__vector_std__shared_ptr_HybridFallbackFontSpec__ = std::vector<std::shared_ptr<HybridFallbackFontSpec>>;
|
|
518
|
+
inline std::vector<std::shared_ptr<HybridFallbackFontSpec>> create_std__vector_std__shared_ptr_HybridFallbackFontSpec__(size_t size) noexcept {
|
|
519
|
+
std::vector<std::shared_ptr<HybridFallbackFontSpec>> vector;
|
|
520
|
+
vector.reserve(size);
|
|
521
|
+
return vector;
|
|
536
522
|
}
|
|
537
523
|
|
|
538
524
|
// pragma MARK: std::shared_ptr<Promise<void>>
|
|
@@ -569,17 +555,35 @@ namespace margelo::nitro::rive::bridge::swift {
|
|
|
569
555
|
return Func_void_Wrapper(std::move(value));
|
|
570
556
|
}
|
|
571
557
|
|
|
572
|
-
// pragma MARK: std::shared_ptr<
|
|
558
|
+
// pragma MARK: std::shared_ptr<HybridRiveFontConfigSpec>
|
|
573
559
|
/**
|
|
574
|
-
* Specialized version of `std::shared_ptr<
|
|
560
|
+
* Specialized version of `std::shared_ptr<HybridRiveFontConfigSpec>`.
|
|
575
561
|
*/
|
|
576
|
-
using
|
|
577
|
-
std::shared_ptr<
|
|
578
|
-
void* NON_NULL
|
|
562
|
+
using std__shared_ptr_HybridRiveFontConfigSpec_ = std::shared_ptr<HybridRiveFontConfigSpec>;
|
|
563
|
+
std::shared_ptr<HybridRiveFontConfigSpec> create_std__shared_ptr_HybridRiveFontConfigSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
564
|
+
void* NON_NULL get_std__shared_ptr_HybridRiveFontConfigSpec_(std__shared_ptr_HybridRiveFontConfigSpec_ cppType);
|
|
579
565
|
|
|
580
|
-
// pragma MARK: std::weak_ptr<
|
|
581
|
-
using
|
|
582
|
-
inline
|
|
566
|
+
// pragma MARK: std::weak_ptr<HybridRiveFontConfigSpec>
|
|
567
|
+
using std__weak_ptr_HybridRiveFontConfigSpec_ = std::weak_ptr<HybridRiveFontConfigSpec>;
|
|
568
|
+
inline std__weak_ptr_HybridRiveFontConfigSpec_ weakify_std__shared_ptr_HybridRiveFontConfigSpec_(const std::shared_ptr<HybridRiveFontConfigSpec>& strong) noexcept { return strong; }
|
|
569
|
+
|
|
570
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::shared_ptr<HybridFallbackFontSpec>>>>
|
|
571
|
+
using Result_std__shared_ptr_Promise_std__shared_ptr_HybridFallbackFontSpec____ = Result<std::shared_ptr<Promise<std::shared_ptr<HybridFallbackFontSpec>>>>;
|
|
572
|
+
inline Result_std__shared_ptr_Promise_std__shared_ptr_HybridFallbackFontSpec____ create_Result_std__shared_ptr_Promise_std__shared_ptr_HybridFallbackFontSpec____(const std::shared_ptr<Promise<std::shared_ptr<HybridFallbackFontSpec>>>& value) noexcept {
|
|
573
|
+
return Result<std::shared_ptr<Promise<std::shared_ptr<HybridFallbackFontSpec>>>>::withValue(value);
|
|
574
|
+
}
|
|
575
|
+
inline Result_std__shared_ptr_Promise_std__shared_ptr_HybridFallbackFontSpec____ create_Result_std__shared_ptr_Promise_std__shared_ptr_HybridFallbackFontSpec____(const std::exception_ptr& error) noexcept {
|
|
576
|
+
return Result<std::shared_ptr<Promise<std::shared_ptr<HybridFallbackFontSpec>>>>::withError(error);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
// pragma MARK: Result<std::shared_ptr<HybridFallbackFontSpec>>
|
|
580
|
+
using Result_std__shared_ptr_HybridFallbackFontSpec__ = Result<std::shared_ptr<HybridFallbackFontSpec>>;
|
|
581
|
+
inline Result_std__shared_ptr_HybridFallbackFontSpec__ create_Result_std__shared_ptr_HybridFallbackFontSpec__(const std::shared_ptr<HybridFallbackFontSpec>& value) noexcept {
|
|
582
|
+
return Result<std::shared_ptr<HybridFallbackFontSpec>>::withValue(value);
|
|
583
|
+
}
|
|
584
|
+
inline Result_std__shared_ptr_HybridFallbackFontSpec__ create_Result_std__shared_ptr_HybridFallbackFontSpec__(const std::exception_ptr& error) noexcept {
|
|
585
|
+
return Result<std::shared_ptr<HybridFallbackFontSpec>>::withError(error);
|
|
586
|
+
}
|
|
583
587
|
|
|
584
588
|
// pragma MARK: Result<std::shared_ptr<Promise<void>>>
|
|
585
589
|
using Result_std__shared_ptr_Promise_void___ = Result<std::shared_ptr<Promise<void>>>;
|
|
@@ -590,6 +594,73 @@ namespace margelo::nitro::rive::bridge::swift {
|
|
|
590
594
|
return Result<std::shared_ptr<Promise<void>>>::withError(error);
|
|
591
595
|
}
|
|
592
596
|
|
|
597
|
+
// pragma MARK: std::shared_ptr<Promise<std::shared_ptr<HybridRiveImageSpec>>>
|
|
598
|
+
/**
|
|
599
|
+
* Specialized version of `std::shared_ptr<Promise<std::shared_ptr<HybridRiveImageSpec>>>`.
|
|
600
|
+
*/
|
|
601
|
+
using std__shared_ptr_Promise_std__shared_ptr_HybridRiveImageSpec___ = std::shared_ptr<Promise<std::shared_ptr<HybridRiveImageSpec>>>;
|
|
602
|
+
inline std::shared_ptr<Promise<std::shared_ptr<HybridRiveImageSpec>>> create_std__shared_ptr_Promise_std__shared_ptr_HybridRiveImageSpec___() noexcept {
|
|
603
|
+
return Promise<std::shared_ptr<HybridRiveImageSpec>>::create();
|
|
604
|
+
}
|
|
605
|
+
inline PromiseHolder<std::shared_ptr<HybridRiveImageSpec>> wrap_std__shared_ptr_Promise_std__shared_ptr_HybridRiveImageSpec___(std::shared_ptr<Promise<std::shared_ptr<HybridRiveImageSpec>>> promise) noexcept {
|
|
606
|
+
return PromiseHolder<std::shared_ptr<HybridRiveImageSpec>>(std::move(promise));
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
// pragma MARK: std::function<void(const std::shared_ptr<HybridRiveImageSpec>& /* result */)>
|
|
610
|
+
/**
|
|
611
|
+
* Specialized version of `std::function<void(const std::shared_ptr<HybridRiveImageSpec>&)>`.
|
|
612
|
+
*/
|
|
613
|
+
using Func_void_std__shared_ptr_HybridRiveImageSpec_ = std::function<void(const std::shared_ptr<HybridRiveImageSpec>& /* result */)>;
|
|
614
|
+
/**
|
|
615
|
+
* Wrapper class for a `std::function<void(const std::shared_ptr<HybridRiveImageSpec>& / * result * /)>`, this can be used from Swift.
|
|
616
|
+
*/
|
|
617
|
+
class Func_void_std__shared_ptr_HybridRiveImageSpec__Wrapper final {
|
|
618
|
+
public:
|
|
619
|
+
explicit Func_void_std__shared_ptr_HybridRiveImageSpec__Wrapper(std::function<void(const std::shared_ptr<HybridRiveImageSpec>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::shared_ptr<HybridRiveImageSpec>& /* result */)>>(std::move(func))) {}
|
|
620
|
+
inline void call(std::shared_ptr<HybridRiveImageSpec> result) const noexcept {
|
|
621
|
+
_function->operator()(result);
|
|
622
|
+
}
|
|
623
|
+
private:
|
|
624
|
+
std::unique_ptr<std::function<void(const std::shared_ptr<HybridRiveImageSpec>& /* result */)>> _function;
|
|
625
|
+
} SWIFT_NONCOPYABLE;
|
|
626
|
+
Func_void_std__shared_ptr_HybridRiveImageSpec_ create_Func_void_std__shared_ptr_HybridRiveImageSpec_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
627
|
+
inline Func_void_std__shared_ptr_HybridRiveImageSpec__Wrapper wrap_Func_void_std__shared_ptr_HybridRiveImageSpec_(Func_void_std__shared_ptr_HybridRiveImageSpec_ value) noexcept {
|
|
628
|
+
return Func_void_std__shared_ptr_HybridRiveImageSpec__Wrapper(std::move(value));
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
// pragma MARK: std::shared_ptr<HybridRiveImageFactorySpec>
|
|
632
|
+
/**
|
|
633
|
+
* Specialized version of `std::shared_ptr<HybridRiveImageFactorySpec>`.
|
|
634
|
+
*/
|
|
635
|
+
using std__shared_ptr_HybridRiveImageFactorySpec_ = std::shared_ptr<HybridRiveImageFactorySpec>;
|
|
636
|
+
std::shared_ptr<HybridRiveImageFactorySpec> create_std__shared_ptr_HybridRiveImageFactorySpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
637
|
+
void* NON_NULL get_std__shared_ptr_HybridRiveImageFactorySpec_(std__shared_ptr_HybridRiveImageFactorySpec_ cppType);
|
|
638
|
+
|
|
639
|
+
// pragma MARK: std::weak_ptr<HybridRiveImageFactorySpec>
|
|
640
|
+
using std__weak_ptr_HybridRiveImageFactorySpec_ = std::weak_ptr<HybridRiveImageFactorySpec>;
|
|
641
|
+
inline std__weak_ptr_HybridRiveImageFactorySpec_ weakify_std__shared_ptr_HybridRiveImageFactorySpec_(const std::shared_ptr<HybridRiveImageFactorySpec>& strong) noexcept { return strong; }
|
|
642
|
+
|
|
643
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::shared_ptr<HybridRiveImageSpec>>>>
|
|
644
|
+
using Result_std__shared_ptr_Promise_std__shared_ptr_HybridRiveImageSpec____ = Result<std::shared_ptr<Promise<std::shared_ptr<HybridRiveImageSpec>>>>;
|
|
645
|
+
inline Result_std__shared_ptr_Promise_std__shared_ptr_HybridRiveImageSpec____ create_Result_std__shared_ptr_Promise_std__shared_ptr_HybridRiveImageSpec____(const std::shared_ptr<Promise<std::shared_ptr<HybridRiveImageSpec>>>& value) noexcept {
|
|
646
|
+
return Result<std::shared_ptr<Promise<std::shared_ptr<HybridRiveImageSpec>>>>::withValue(value);
|
|
647
|
+
}
|
|
648
|
+
inline Result_std__shared_ptr_Promise_std__shared_ptr_HybridRiveImageSpec____ create_Result_std__shared_ptr_Promise_std__shared_ptr_HybridRiveImageSpec____(const std::exception_ptr& error) noexcept {
|
|
649
|
+
return Result<std::shared_ptr<Promise<std::shared_ptr<HybridRiveImageSpec>>>>::withError(error);
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
// pragma MARK: std::shared_ptr<HybridRiveRuntimeSpec>
|
|
653
|
+
/**
|
|
654
|
+
* Specialized version of `std::shared_ptr<HybridRiveRuntimeSpec>`.
|
|
655
|
+
*/
|
|
656
|
+
using std__shared_ptr_HybridRiveRuntimeSpec_ = std::shared_ptr<HybridRiveRuntimeSpec>;
|
|
657
|
+
std::shared_ptr<HybridRiveRuntimeSpec> create_std__shared_ptr_HybridRiveRuntimeSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
658
|
+
void* NON_NULL get_std__shared_ptr_HybridRiveRuntimeSpec_(std__shared_ptr_HybridRiveRuntimeSpec_ cppType);
|
|
659
|
+
|
|
660
|
+
// pragma MARK: std::weak_ptr<HybridRiveRuntimeSpec>
|
|
661
|
+
using std__weak_ptr_HybridRiveRuntimeSpec_ = std::weak_ptr<HybridRiveRuntimeSpec>;
|
|
662
|
+
inline std__weak_ptr_HybridRiveRuntimeSpec_ weakify_std__shared_ptr_HybridRiveRuntimeSpec_(const std::shared_ptr<HybridRiveRuntimeSpec>& strong) noexcept { return strong; }
|
|
663
|
+
|
|
593
664
|
// pragma MARK: std::optional<bool>
|
|
594
665
|
/**
|
|
595
666
|
* Specialized version of `std::optional<bool>`.
|
|
@@ -895,6 +966,15 @@ namespace margelo::nitro::rive::bridge::swift {
|
|
|
895
966
|
return Result<std::optional<std::shared_ptr<HybridViewModelInstanceSpec>>>::withError(error);
|
|
896
967
|
}
|
|
897
968
|
|
|
969
|
+
// pragma MARK: Result<double>
|
|
970
|
+
using Result_double_ = Result<double>;
|
|
971
|
+
inline Result_double_ create_Result_double_(double value) noexcept {
|
|
972
|
+
return Result<double>::withValue(std::move(value));
|
|
973
|
+
}
|
|
974
|
+
inline Result_double_ create_Result_double_(const std::exception_ptr& error) noexcept {
|
|
975
|
+
return Result<double>::withError(error);
|
|
976
|
+
}
|
|
977
|
+
|
|
898
978
|
// pragma MARK: Result<bool>
|
|
899
979
|
using Result_bool_ = Result<bool>;
|
|
900
980
|
inline Result_bool_ create_Result_bool_(bool value) noexcept {
|
|
@@ -22,18 +22,20 @@ namespace margelo::nitro::rive { enum class DataBindMode; }
|
|
|
22
22
|
namespace margelo::nitro::rive { enum class Fit; }
|
|
23
23
|
// Forward declaration of `HybridBindableArtboardSpec` to properly resolve imports.
|
|
24
24
|
namespace margelo::nitro::rive { class HybridBindableArtboardSpec; }
|
|
25
|
+
// Forward declaration of `HybridFallbackFontSpec` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::rive { class HybridFallbackFontSpec; }
|
|
25
27
|
// Forward declaration of `HybridRiveFileFactorySpec` to properly resolve imports.
|
|
26
28
|
namespace margelo::nitro::rive { class HybridRiveFileFactorySpec; }
|
|
27
29
|
// Forward declaration of `HybridRiveFileSpec` to properly resolve imports.
|
|
28
30
|
namespace margelo::nitro::rive { class HybridRiveFileSpec; }
|
|
31
|
+
// Forward declaration of `HybridRiveFontConfigSpec` to properly resolve imports.
|
|
32
|
+
namespace margelo::nitro::rive { class HybridRiveFontConfigSpec; }
|
|
29
33
|
// Forward declaration of `HybridRiveImageFactorySpec` to properly resolve imports.
|
|
30
34
|
namespace margelo::nitro::rive { class HybridRiveImageFactorySpec; }
|
|
31
35
|
// Forward declaration of `HybridRiveImageSpec` to properly resolve imports.
|
|
32
36
|
namespace margelo::nitro::rive { class HybridRiveImageSpec; }
|
|
33
37
|
// Forward declaration of `HybridRiveRuntimeSpec` to properly resolve imports.
|
|
34
38
|
namespace margelo::nitro::rive { class HybridRiveRuntimeSpec; }
|
|
35
|
-
// Forward declaration of `HybridRiveSpec` to properly resolve imports.
|
|
36
|
-
namespace margelo::nitro::rive { class HybridRiveSpec; }
|
|
37
39
|
// Forward declaration of `HybridRiveViewSpec` to properly resolve imports.
|
|
38
40
|
namespace margelo::nitro::rive { class HybridRiveViewSpec; }
|
|
39
41
|
// Forward declaration of `HybridViewModelArtboardPropertySpec` to properly resolve imports.
|
|
@@ -81,12 +83,13 @@ namespace margelo::nitro::rive { struct UnifiedRiveEvent; }
|
|
|
81
83
|
#include "DataBindMode.hpp"
|
|
82
84
|
#include "Fit.hpp"
|
|
83
85
|
#include "HybridBindableArtboardSpec.hpp"
|
|
86
|
+
#include "HybridFallbackFontSpec.hpp"
|
|
84
87
|
#include "HybridRiveFileFactorySpec.hpp"
|
|
85
88
|
#include "HybridRiveFileSpec.hpp"
|
|
89
|
+
#include "HybridRiveFontConfigSpec.hpp"
|
|
86
90
|
#include "HybridRiveImageFactorySpec.hpp"
|
|
87
91
|
#include "HybridRiveImageSpec.hpp"
|
|
88
92
|
#include "HybridRiveRuntimeSpec.hpp"
|
|
89
|
-
#include "HybridRiveSpec.hpp"
|
|
90
93
|
#include "HybridRiveViewSpec.hpp"
|
|
91
94
|
#include "HybridViewModelArtboardPropertySpec.hpp"
|
|
92
95
|
#include "HybridViewModelBooleanPropertySpec.hpp"
|
|
@@ -130,18 +133,20 @@ namespace margelo::nitro::rive { struct UnifiedRiveEvent; }
|
|
|
130
133
|
// Forward declarations of Swift defined types
|
|
131
134
|
// Forward declaration of `HybridBindableArtboardSpec_cxx` to properly resolve imports.
|
|
132
135
|
namespace RNRive { class HybridBindableArtboardSpec_cxx; }
|
|
136
|
+
// Forward declaration of `HybridFallbackFontSpec_cxx` to properly resolve imports.
|
|
137
|
+
namespace RNRive { class HybridFallbackFontSpec_cxx; }
|
|
133
138
|
// Forward declaration of `HybridRiveFileFactorySpec_cxx` to properly resolve imports.
|
|
134
139
|
namespace RNRive { class HybridRiveFileFactorySpec_cxx; }
|
|
135
140
|
// Forward declaration of `HybridRiveFileSpec_cxx` to properly resolve imports.
|
|
136
141
|
namespace RNRive { class HybridRiveFileSpec_cxx; }
|
|
142
|
+
// Forward declaration of `HybridRiveFontConfigSpec_cxx` to properly resolve imports.
|
|
143
|
+
namespace RNRive { class HybridRiveFontConfigSpec_cxx; }
|
|
137
144
|
// Forward declaration of `HybridRiveImageFactorySpec_cxx` to properly resolve imports.
|
|
138
145
|
namespace RNRive { class HybridRiveImageFactorySpec_cxx; }
|
|
139
146
|
// Forward declaration of `HybridRiveImageSpec_cxx` to properly resolve imports.
|
|
140
147
|
namespace RNRive { class HybridRiveImageSpec_cxx; }
|
|
141
148
|
// Forward declaration of `HybridRiveRuntimeSpec_cxx` to properly resolve imports.
|
|
142
149
|
namespace RNRive { class HybridRiveRuntimeSpec_cxx; }
|
|
143
|
-
// Forward declaration of `HybridRiveSpec_cxx` to properly resolve imports.
|
|
144
|
-
namespace RNRive { class HybridRiveSpec_cxx; }
|
|
145
150
|
// Forward declaration of `HybridRiveViewSpec_cxx` to properly resolve imports.
|
|
146
151
|
namespace RNRive { class HybridRiveViewSpec_cxx; }
|
|
147
152
|
// Forward declaration of `HybridViewModelArtboardPropertySpec_cxx` to properly resolve imports.
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
#import "RNRive-Swift-Cxx-Umbrella.hpp"
|
|
11
11
|
#import <type_traits>
|
|
12
12
|
|
|
13
|
-
#include "
|
|
13
|
+
#include "HybridRiveFontConfigSpecSwift.hpp"
|
|
14
14
|
#include "HybridRiveFileFactorySpecSwift.hpp"
|
|
15
15
|
#include "HybridRiveFileSpecSwift.hpp"
|
|
16
16
|
#include "HybridRiveViewSpecSwift.hpp"
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
using namespace margelo::nitro::rive;
|
|
28
28
|
|
|
29
29
|
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
30
|
-
"
|
|
30
|
+
"RiveFontConfig",
|
|
31
31
|
[]() -> std::shared_ptr<HybridObject> {
|
|
32
|
-
std::shared_ptr<
|
|
32
|
+
std::shared_ptr<HybridRiveFontConfigSpec> hybridObject = RNRive::RNRiveAutolinking::createRiveFontConfig();
|
|
33
33
|
return hybridObject;
|
|
34
34
|
}
|
|
35
35
|
);
|
|
@@ -12,16 +12,16 @@ import NitroModules
|
|
|
12
12
|
public final class RNRiveAutolinking {
|
|
13
13
|
public typealias bridge = margelo.nitro.rive.bridge.swift
|
|
14
14
|
|
|
15
|
-
public static func
|
|
16
|
-
let hybridObject =
|
|
17
|
-
return { () -> bridge.
|
|
15
|
+
public static func createRiveFontConfig() -> bridge.std__shared_ptr_HybridRiveFontConfigSpec_ {
|
|
16
|
+
let hybridObject = HybridRiveFontConfig()
|
|
17
|
+
return { () -> bridge.std__shared_ptr_HybridRiveFontConfigSpec_ in
|
|
18
18
|
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
19
19
|
return __cxxWrapped.getCxxPart()
|
|
20
20
|
}()
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
public static func
|
|
24
|
-
return
|
|
23
|
+
public static func isRiveFontConfigRecyclable() -> Bool {
|
|
24
|
+
return HybridRiveFontConfig.self is any RecyclableView.Type
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
public static func createRiveFileFactory() -> bridge.std__shared_ptr_HybridRiveFileFactorySpec_ {
|
package/nitrogen/generated/ios/c++/{HybridRiveSpecSwift.cpp → HybridFallbackFontSpecSwift.cpp}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// HybridFallbackFontSpecSwift.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
5
|
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
#include "
|
|
8
|
+
#include "HybridFallbackFontSpecSwift.hpp"
|
|
9
9
|
|
|
10
10
|
namespace margelo::nitro::rive {
|
|
11
11
|
} // namespace margelo::nitro::rive
|
package/nitrogen/generated/ios/c++/{HybridRiveSpecSwift.hpp → HybridFallbackFontSpecSwift.hpp}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///
|
|
2
|
-
///
|
|
2
|
+
/// HybridFallbackFontSpecSwift.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
5
|
/// Copyright © Marc Rousavy @ Margelo
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
9
9
|
|
|
10
|
-
#include "
|
|
10
|
+
#include "HybridFallbackFontSpec.hpp"
|
|
11
11
|
|
|
12
|
-
// Forward declaration of `
|
|
13
|
-
namespace RNRive { class
|
|
12
|
+
// Forward declaration of `HybridFallbackFontSpec_cxx` to properly resolve imports.
|
|
13
|
+
namespace RNRive { class HybridFallbackFontSpec_cxx; }
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -21,25 +21,25 @@ namespace RNRive { class HybridRiveSpec_cxx; }
|
|
|
21
21
|
namespace margelo::nitro::rive {
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* The C++ part of
|
|
24
|
+
* The C++ part of HybridFallbackFontSpec_cxx.swift.
|
|
25
25
|
*
|
|
26
|
-
*
|
|
26
|
+
* HybridFallbackFontSpecSwift (C++) accesses HybridFallbackFontSpec_cxx (Swift), and might
|
|
27
27
|
* contain some additional bridging code for C++ <> Swift interop.
|
|
28
28
|
*
|
|
29
29
|
* Since this obviously introduces an overhead, I hope at some point in
|
|
30
|
-
* the future,
|
|
30
|
+
* the future, HybridFallbackFontSpec_cxx can directly inherit from the C++ class HybridFallbackFontSpec
|
|
31
31
|
* to simplify the whole structure and memory management.
|
|
32
32
|
*/
|
|
33
|
-
class
|
|
33
|
+
class HybridFallbackFontSpecSwift: public virtual HybridFallbackFontSpec {
|
|
34
34
|
public:
|
|
35
35
|
// Constructor from a Swift instance
|
|
36
|
-
explicit
|
|
37
|
-
HybridObject(
|
|
36
|
+
explicit HybridFallbackFontSpecSwift(const RNRive::HybridFallbackFontSpec_cxx& swiftPart):
|
|
37
|
+
HybridObject(HybridFallbackFontSpec::TAG),
|
|
38
38
|
_swiftPart(swiftPart) { }
|
|
39
39
|
|
|
40
40
|
public:
|
|
41
41
|
// Get the Swift part
|
|
42
|
-
inline RNRive::
|
|
42
|
+
inline RNRive::HybridFallbackFontSpec_cxx& getSwiftPart() noexcept {
|
|
43
43
|
return _swiftPart;
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -48,7 +48,7 @@ namespace margelo::nitro::rive {
|
|
|
48
48
|
return _swiftPart.getMemorySize();
|
|
49
49
|
}
|
|
50
50
|
bool equals(const std::shared_ptr<HybridObject>& other) override {
|
|
51
|
-
if (auto otherCast = std::dynamic_pointer_cast<
|
|
51
|
+
if (auto otherCast = std::dynamic_pointer_cast<HybridFallbackFontSpecSwift>(other)) {
|
|
52
52
|
return _swiftPart.equals(otherCast->_swiftPart);
|
|
53
53
|
}
|
|
54
54
|
return false;
|
|
@@ -66,17 +66,10 @@ namespace margelo::nitro::rive {
|
|
|
66
66
|
|
|
67
67
|
public:
|
|
68
68
|
// Methods
|
|
69
|
-
|
|
70
|
-
auto __result = _swiftPart.multiply(std::forward<decltype(a)>(a), std::forward<decltype(b)>(b));
|
|
71
|
-
if (__result.hasError()) [[unlikely]] {
|
|
72
|
-
std::rethrow_exception(__result.error());
|
|
73
|
-
}
|
|
74
|
-
auto __value = std::move(__result.value());
|
|
75
|
-
return __value;
|
|
76
|
-
}
|
|
69
|
+
|
|
77
70
|
|
|
78
71
|
private:
|
|
79
|
-
RNRive::
|
|
72
|
+
RNRive::HybridFallbackFontSpec_cxx _swiftPart;
|
|
80
73
|
};
|
|
81
74
|
|
|
82
75
|
} // namespace margelo::nitro::rive
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridRiveFontConfigSpecSwift.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 "HybridRiveFontConfigSpecSwift.hpp"
|
|
9
|
+
|
|
10
|
+
namespace margelo::nitro::rive {
|
|
11
|
+
} // namespace margelo::nitro::rive
|