blob: e2f860992d2d11156563f72eef2a329b63ee0368 [file] [log] [blame]
// 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