1 | // Copyright 2019 Google LLC. |
2 | #ifndef TextShadow_DEFINED |
3 | #define TextShadow_DEFINED |
4 | |
5 | #include "include/core/SkColor.h" |
6 | #include "include/core/SkPoint.h" |
7 | |
8 | namespace skia { |
9 | namespace textlayout { |
10 | |
11 | class TextShadow { |
12 | public: |
13 | SkColor fColor = SK_ColorBLACK; |
14 | SkPoint fOffset; |
15 | double fBlurRadius = 0.0; |
16 | |
17 | TextShadow(); |
18 | |
19 | TextShadow(SkColor color, SkPoint offset, double blurRadius); |
20 | |
21 | bool operator==(const TextShadow& other) const; |
22 | |
23 | bool operator!=(const TextShadow& other) const; |
24 | |
25 | bool hasShadow() const; |
26 | }; |
27 | } // namespace textlayout |
28 | } // namespace skia |
29 | |
30 | #endif // TextShadow_DEFINED |
31 | |