xref: /aosp_15_r20/external/skia/modules/skparagraph/include/TextShadow.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
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 fBlurSigma = 0.0;
16 
17     TextShadow();
18 
19     TextShadow(SkColor color, SkPoint offset, double blurSigma);
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