Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
TextShadow.cpp
Go to the documentation of this file.
1// Copyright 2019 Google LLC.
4
5namespace skia {
6namespace textlayout {
7
8TextShadow::TextShadow() = default;
10 : fColor(color), fOffset(offset), fBlurSigma(blurSigma) {}
11
12bool TextShadow::operator==(const TextShadow& other) const {
13 if (fColor != other.fColor) return false;
14 if (fOffset != other.fOffset) return false;
15 if (fBlurSigma != other.fBlurSigma) return false;
16
17 return true;
18}
19
20bool TextShadow::operator!=(const TextShadow& other) const { return !(*this == other); }
21
23 if (!fOffset.isZero()) return true;
24 if (fBlurSigma != 0.0) return true;
25
26 return false;
27}
28
29} // namespace textlayout
30} // namespace skia
SkColor4f color
uint32_t SkColor
Definition SkColor.h:37
bool operator==(const TextShadow &other) const
bool operator!=(const TextShadow &other) const
Point offset
bool isZero() const