You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
610 B

// 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