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
11
namespace
txt
{
12
13
class
TextShadow
{
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_
txt::TextShadow
Definition
text_shadow.h:13
txt::TextShadow::hasShadow
bool hasShadow() const
Definition
text_shadow.cc:16
txt::TextShadow::color
SkColor color
Definition
text_shadow.h:15
txt::TextShadow::TextShadow
TextShadow()
Definition
text_shadow.cc:10
txt::TextShadow::offset
SkPoint offset
Definition
text_shadow.h:16
txt::TextShadow::blur_sigma
double blur_sigma
Definition
text_shadow.h:17
txt::TextShadow::operator==
bool operator==(const TextShadow &other) const
txt
Definition
paragraph_builder_skia.cc:15
txt
src
txt
text_shadow.h
Generated on Thu Nov 6 2025 16:11:30 for Flutter Engine by
1.9.8