| // Copyright 2019 Google LLC | |
| #ifndef TextShadow_DEFINED | |
| #define TextShadow_DEFINED | |
| #include "include/core/SkColor.h" | |
| #include "include/core/SkPoint.h" | |
| namespace skia { | |
| namespace textlayout { | |
| class TextShadow { | |
| public: | |
| SkColor fColor = SK_ColorBLACK; | |
| SkPoint fOffset; | |
| double fBlurSigma = 0.0; | |
| TextShadow(); | |
| TextShadow(SkColor color, SkPoint offset, double blurSigma); | |
| bool operator==(const TextShadow& other) const; | |
| bool operator!=(const TextShadow& other) const; | |
| bool hasShadow() const; | |
| }; | |
| } // namespace textlayout | |
| } // namespace skia | |
| #endif // TextShadow_DEFINED |