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
8namespace skia {
9namespace textlayout {
10
11class TextShadow {
12public:
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