2019-05-30 20:12:56 +00:00
|
|
|
// 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;
|
2021-04-26 22:03:28 +00:00
|
|
|
double fBlurSigma = 0.0;
|
2019-05-30 20:12:56 +00:00
|
|
|
|
|
|
|
TextShadow();
|
|
|
|
|
2021-04-26 22:03:28 +00:00
|
|
|
TextShadow(SkColor color, SkPoint offset, double blurSigma);
|
2019-05-30 20:12:56 +00:00
|
|
|
|
|
|
|
bool operator==(const TextShadow& other) const;
|
|
|
|
|
|
|
|
bool operator!=(const TextShadow& other) const;
|
|
|
|
|
|
|
|
bool hasShadow() const;
|
|
|
|
};
|
|
|
|
} // namespace textlayout
|
|
|
|
} // namespace skia
|
|
|
|
|
|
|
|
#endif // TextShadow_DEFINED
|