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

#include <SkSVGTypes.h>

Public Types

enum class  Type { kNonZero , kEvenOdd , kInherit }
 

Public Member Functions

constexpr SkSVGFillRule ()
 
constexpr SkSVGFillRule (Type t)
 
 SkSVGFillRule (const SkSVGFillRule &)=default
 
SkSVGFillRuleoperator= (const SkSVGFillRule &)=default
 
bool operator== (const SkSVGFillRule &other) const
 
bool operator!= (const SkSVGFillRule &other) const
 
Type type () const
 
SkPathFillType asFillType () const
 

Detailed Description

Definition at line 342 of file SkSVGTypes.h.

Member Enumeration Documentation

◆ Type

enum class SkSVGFillRule::Type
strong
Enumerator
kNonZero 
kEvenOdd 
kInherit 

Definition at line 344 of file SkSVGTypes.h.

Constructor & Destructor Documentation

◆ SkSVGFillRule() [1/3]

constexpr SkSVGFillRule::SkSVGFillRule ( )
inlineconstexpr

Definition at line 350 of file SkSVGTypes.h.

350: fType(Type::kInherit) {}

◆ SkSVGFillRule() [2/3]

constexpr SkSVGFillRule::SkSVGFillRule ( Type  t)
inlineexplicitconstexpr

Definition at line 351 of file SkSVGTypes.h.

351: fType(t) {}

◆ SkSVGFillRule() [3/3]

SkSVGFillRule::SkSVGFillRule ( const SkSVGFillRule )
default

Member Function Documentation

◆ asFillType()

SkPathFillType SkSVGFillRule::asFillType ( ) const
inline

Definition at line 361 of file SkSVGTypes.h.

361 {
362 SkASSERT(fType != Type::kInherit); // should never be called for unresolved values.
364 }
#define SkASSERT(cond)
Definition SkAssert.h:116

◆ operator!=()

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

Definition at line 357 of file SkSVGTypes.h.

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

◆ operator=()

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

◆ operator==()

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

Definition at line 356 of file SkSVGTypes.h.

356{ return fType == other.fType; }

◆ type()

Type SkSVGFillRule::type ( ) const
inline

Definition at line 359 of file SkSVGTypes.h.

359{ return fType; }

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