Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
skia::textlayout::TextShadow Class Reference

#include <TextShadow.h>

Public Member Functions

 TextShadow ()
 
 TextShadow (SkColor color, SkPoint offset, double blurSigma)
 
bool operator== (const TextShadow &other) const
 
bool operator!= (const TextShadow &other) const
 
bool hasShadow () const
 

Public Attributes

SkColor fColor = SK_ColorBLACK
 
SkPoint fOffset
 
double fBlurSigma = 0.0
 

Detailed Description

Definition at line 11 of file TextShadow.h.

Constructor & Destructor Documentation

◆ TextShadow() [1/2]

skia::textlayout::TextShadow::TextShadow ( )
default

◆ TextShadow() [2/2]

skia::textlayout::TextShadow::TextShadow ( SkColor  color,
SkPoint  offset,
double  blurSigma 
)

Definition at line 9 of file TextShadow.cpp.

10 : fColor(color), fOffset(offset), fBlurSigma(blurSigma) {}
DlColor color
SeparatedVector2 offset

Member Function Documentation

◆ hasShadow()

bool skia::textlayout::TextShadow::hasShadow ( ) const

Definition at line 22 of file TextShadow.cpp.

22 {
23 if (!fOffset.isZero()) return true;
24 if (fBlurSigma != 0.0) return true;
25
26 return false;
27}
bool isZero() const
Definition: SkPoint_impl.h:193

◆ operator!=()

bool skia::textlayout::TextShadow::operator!= ( const TextShadow other) const

Definition at line 20 of file TextShadow.cpp.

20{ return !(*this == other); }

◆ operator==()

bool skia::textlayout::TextShadow::operator== ( const TextShadow other) const

Definition at line 12 of file TextShadow.cpp.

12 {
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}

Member Data Documentation

◆ fBlurSigma

double skia::textlayout::TextShadow::fBlurSigma = 0.0

Definition at line 15 of file TextShadow.h.

◆ fColor

SkColor skia::textlayout::TextShadow::fColor = SK_ColorBLACK

Definition at line 13 of file TextShadow.h.

◆ fOffset

SkPoint skia::textlayout::TextShadow::fOffset

Definition at line 14 of file TextShadow.h.


The documentation for this class was generated from the following files: