Flutter Engine
 
Loading...
Searching...
No Matches
text_shadow.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_TXT_SRC_TXT_TEXT_SHADOW_H_
6#define FLUTTER_TXT_SRC_TXT_TEXT_SHADOW_H_
7
8#include "third_party/skia/include/core/SkColor.h"
9#include "third_party/skia/include/core/SkPoint.h"
10
11namespace txt {
12
14 public:
15 SkColor color = SK_ColorBLACK;
16 SkPoint offset;
17 double blur_sigma = 0.0;
18
19 TextShadow();
20
21 TextShadow(SkColor color, SkPoint offset, double blur_sigma);
22
23 bool operator==(const TextShadow& other) const;
24
25 bool hasShadow() const;
26};
27
28} // namespace txt
29
30#endif // FLUTTER_TXT_SRC_TXT_TEXT_SHADOW_H_
bool hasShadow() const
bool operator==(const TextShadow &other) const