Flutter Engine
The Flutter Engine
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Properties
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Related Functions
:
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
y
Enumerator
b
c
d
e
f
g
h
k
l
m
n
p
r
s
t
u
v
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
third_party
skia
modules
skparagraph
src
TextShadow.cpp
Go to the documentation of this file.
1
// Copyright 2019 Google LLC.
2
#include "
include/core/SkColor.h
"
3
#include "
modules/skparagraph/include/TextShadow.h
"
4
5
namespace
skia
{
6
namespace
textlayout {
7
8
TextShadow::TextShadow
() =
default
;
9
TextShadow::TextShadow
(
SkColor
color
,
SkPoint
offset
,
double
blurSigma)
10
: fColor(
color
), fOffset(
offset
), fBlurSigma(blurSigma) {}
11
12
bool
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
20
bool
TextShadow::operator!=
(
const
TextShadow
& other)
const
{
return
!(*
this
== other); }
21
22
bool
TextShadow::hasShadow
()
const
{
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
SkColor.h
SkColor
uint32_t SkColor
Definition:
SkColor.h:37
TextShadow.h
skia::textlayout::TextShadow
Definition:
TextShadow.h:11
skia::textlayout::TextShadow::operator==
bool operator==(const TextShadow &other) const
Definition:
TextShadow.cpp:12
skia::textlayout::TextShadow::fOffset
SkPoint fOffset
Definition:
TextShadow.h:14
skia::textlayout::TextShadow::fBlurSigma
double fBlurSigma
Definition:
TextShadow.h:15
skia::textlayout::TextShadow::fColor
SkColor fColor
Definition:
TextShadow.h:13
skia::textlayout::TextShadow::TextShadow
TextShadow()
skia::textlayout::TextShadow::hasShadow
bool hasShadow() const
Definition:
TextShadow.cpp:22
skia::textlayout::TextShadow::operator!=
bool operator!=(const TextShadow &other) const
Definition:
TextShadow.cpp:20
color
DlColor color
Definition:
dl_golden_blur_unittests.cc:23
skia
Definition:
DartTypes.h:13
offset
SeparatedVector2 offset
Definition:
stroke_path_geometry.cc:311
SkPoint
Definition:
SkPoint_impl.h:163
SkPoint::isZero
bool isZero() const
Definition:
SkPoint_impl.h:193
Generated on Sun Jun 23 2024 21:56:06 for Flutter Engine by
1.9.4