Flutter Engine
 
Loading...
Searching...
No Matches
txt::TextShadow Class Reference

#include <text_shadow.h>

Public Member Functions

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

Public Attributes

SkColor color = SK_ColorBLACK
 
SkPoint offset
 
double blur_sigma = 0.0
 

Detailed Description

Definition at line 13 of file text_shadow.h.

Constructor & Destructor Documentation

◆ TextShadow() [1/2]

txt::TextShadow::TextShadow ( )

Definition at line 10 of file text_shadow.cc.

10{}

◆ TextShadow() [2/2]

txt::TextShadow::TextShadow ( SkColor  color,
SkPoint  offset,
double  blur_sigma 
)

Definition at line 11 of file text_shadow.cc.

Member Function Documentation

◆ hasShadow()

bool txt::TextShadow::hasShadow ( ) const

Definition at line 16 of file text_shadow.cc.

16 {
17 if (!offset.isZero()) {
18 return true;
19 }
20 if (blur_sigma > 0.5) {
21 return true;
22 }
23
24 return false;
25}

References blur_sigma, and offset.

◆ operator==()

bool txt::TextShadow::operator== ( const TextShadow other) const
default

Member Data Documentation

◆ blur_sigma

double txt::TextShadow::blur_sigma = 0.0

Definition at line 17 of file text_shadow.h.

Referenced by hasShadow().

◆ color

SkColor txt::TextShadow::color = SK_ColorBLACK

Definition at line 15 of file text_shadow.h.

◆ offset

SkPoint txt::TextShadow::offset

Definition at line 16 of file text_shadow.h.

Referenced by hasShadow().


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