skia2/modules/skparagraph/include/TextShadow.h
Julia Lavrova a3552c5e6d Reland "SkParagraph"
This is a reland of 10ad0b9b01

Original change's description:
> SkParagraph
>
> Change-Id: I0a4be75fd0c18021c201bcc1edfdfad8556edeff
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/192100
> Reviewed-by: Ben Wagner <bungeman@google.com>
> Reviewed-by: Mike Reed <reed@google.com>
> Commit-Queue: Julia Lavrova <jlavrova@google.com>

Change-Id: I46cf43eae693edf68e45345acd0eb39e04e02bfc
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/219863
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Julia Lavrova <jlavrova@google.com>
2019-06-11 17:20:36 +00:00

31 lines
612 B
C++

// 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 fBlurRadius = 0.0;
TextShadow();
TextShadow(SkColor color, SkPoint offset, double blurRadius);
bool operator==(const TextShadow& other) const;
bool operator!=(const TextShadow& other) const;
bool hasShadow() const;
};
} // namespace textlayout
} // namespace skia
#endif // TextShadow_DEFINED