diff options
Diffstat (limited to 'experimental/skotty/SkottyProperties.h')
-rw-r--r-- | experimental/skotty/SkottyProperties.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/experimental/skotty/SkottyProperties.h b/experimental/skotty/SkottyProperties.h index 4357367b3f..cb64ed748b 100644 --- a/experimental/skotty/SkottyProperties.h +++ b/experimental/skotty/SkottyProperties.h @@ -8,6 +8,7 @@ #ifndef SkottyProperties_DEFINED #define SkottyProperties_DEFINED +#include "SkColor.h" #include "SkPath.h" #include "SkPoint.h" #include "SkSize.h" @@ -20,6 +21,7 @@ #include <vector> namespace sksg { +class Color; class Matrix; class Path; class RRect; @@ -53,6 +55,21 @@ using ShapeValue = SkPath; p_type f##p_name = p_default; \ public: +class CompositeColor final : public SkRefCnt { +public: + explicit CompositeColor(sk_sp<sksg::Color>); + + COMPOSITE_PROPERTY(Color , SkColor , SK_ColorBLACK) + COMPOSITE_PROPERTY(Opacity, SkScalar, 100 ) + +private: + void apply(); + + sk_sp<sksg::Color> fColorNode; + + using INHERITED = SkRefCnt; +}; + class CompositeRRect final : public SkRefCnt { public: explicit CompositeRRect(sk_sp<sksg::RRect>); |