Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
SkSVGStopColor Class Reference

#include <SkSVGTypes.h>

Public Types

enum class  Type { kColor , kCurrentColor , kICCColor , kInherit }
 

Public Member Functions

 SkSVGStopColor ()
 
 SkSVGStopColor (Type t)
 
 SkSVGStopColor (const SkSVGColorType &c)
 
 SkSVGStopColor (const SkSVGStopColor &)=default
 
SkSVGStopColoroperator= (const SkSVGStopColor &)=default
 
bool operator== (const SkSVGStopColor &other) const
 
bool operator!= (const SkSVGStopColor &other) const
 
Type type () const
 
const SkSVGColorTypecolor () const
 

Detailed Description

Definition at line 425 of file SkSVGTypes.h.

Member Enumeration Documentation

◆ Type

enum class SkSVGStopColor::Type
strong
Enumerator
kColor 
kCurrentColor 
kICCColor 
kInherit 

Definition at line 427 of file SkSVGTypes.h.

Constructor & Destructor Documentation

◆ SkSVGStopColor() [1/4]

SkSVGStopColor::SkSVGStopColor ( )
inline

Definition at line 434 of file SkSVGTypes.h.

434: fType(Type::kColor), fColor(SK_ColorBLACK) {}
constexpr SkColor SK_ColorBLACK
Definition SkColor.h:103

◆ SkSVGStopColor() [2/4]

SkSVGStopColor::SkSVGStopColor ( Type  t)
inlineexplicit

Definition at line 435 of file SkSVGTypes.h.

435: fType(t), fColor(SK_ColorBLACK) {}

◆ SkSVGStopColor() [3/4]

SkSVGStopColor::SkSVGStopColor ( const SkSVGColorType c)
inlineexplicit

Definition at line 436 of file SkSVGTypes.h.

436: fType(Type::kColor), fColor(c) {}

◆ SkSVGStopColor() [4/4]

SkSVGStopColor::SkSVGStopColor ( const SkSVGStopColor )
default

Member Function Documentation

◆ color()

const SkSVGColorType & SkSVGStopColor::color ( ) const
inline

Definition at line 447 of file SkSVGTypes.h.

447{ SkASSERT(fType == Type::kColor); return fColor; }
#define SkASSERT(cond)
Definition SkAssert.h:116

◆ operator!=()

bool SkSVGStopColor::operator!= ( const SkSVGStopColor other) const
inline

Definition at line 444 of file SkSVGTypes.h.

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

◆ operator=()

SkSVGStopColor & SkSVGStopColor::operator= ( const SkSVGStopColor )
default

◆ operator==()

bool SkSVGStopColor::operator== ( const SkSVGStopColor other) const
inline

Definition at line 441 of file SkSVGTypes.h.

441 {
442 return fType == other.fType && fColor == other.fColor;
443 }

◆ type()

Type SkSVGStopColor::type ( ) const
inline

Definition at line 446 of file SkSVGTypes.h.

446{ return fType; }

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