1 #pragma once
2 
3 #include <memory>
4 #include <utility>
5 
6 #include <jsi/jsi.h>
7 
8 #include "JsiSkHostObjects.h"
9 
10 #pragma clang diagnostic push
11 #pragma clang diagnostic ignored "-Wdocumentation"
12 
13 #include "SkPathEffect.h"
14 
15 #pragma clang diagnostic pop
16 
17 namespace RNSkia {
18 
19 namespace jsi = facebook::jsi;
20 
21 class JsiSkPathEffect : public JsiSkWrappingSkPtrHostObject<SkPathEffect> {
22 public:
JsiSkPathEffect(std::shared_ptr<RNSkPlatformContext> context,sk_sp<SkPathEffect> pathEffect)23   JsiSkPathEffect(std::shared_ptr<RNSkPlatformContext> context,
24                   sk_sp<SkPathEffect> pathEffect)
25       : JsiSkWrappingSkPtrHostObject<SkPathEffect>(std::move(context),
26                                                    std::move(pathEffect)) {}
27 
28   EXPORT_JSI_API_TYPENAME(JsiSkPathEffect, "PathEffect")
29   JSI_EXPORT_FUNCTIONS(JSI_EXPORT_FUNC(JsiSkColorFilter, dispose))
30 };
31 
32 } // namespace RNSkia
33