Skia
2D Graphics Library
SkPathTypes.h File Reference
Include dependency graph for SkPathTypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  SkPathFillType { SkPathFillType::kWinding, SkPathFillType::kEvenOdd, SkPathFillType::kInverseWinding, SkPathFillType::kInverseEvenOdd }
 
enum  SkPathConvexityType { SkPathConvexityType::kUnknown, SkPathConvexityType::kConvex, SkPathConvexityType::kConcave }
 
enum  SkPathDirection { SkPathDirection::kCW, SkPathDirection::kCCW }
 
enum  SkPathSegmentMask { kLine_SkPathSegmentMask = 1 << 0, kQuad_SkPathSegmentMask = 1 << 1, kConic_SkPathSegmentMask = 1 << 2, kCubic_SkPathSegmentMask = 1 << 3 }
 
enum  SkPathVerb {
  SkPathVerb::kMove, SkPathVerb::kLine, SkPathVerb::kQuad, SkPathVerb::kConic,
  SkPathVerb::kCubic, SkPathVerb::kClose
}
 

Functions

static bool SkPathFillType_IsEvenOdd (SkPathFillType ft)
 
static bool SkPathFillType_IsInverse (SkPathFillType ft)
 
static SkPathFillType SkPathFillType_ConvertToNonInverse (SkPathFillType ft)
 

Enumeration Type Documentation

◆ SkPathConvexityType

enum SkPathConvexityType
strong
Enumerator
kUnknown 
kConvex 
kConcave 

◆ SkPathDirection

enum SkPathDirection
strong
Enumerator
kCW 

clockwise direction for adding closed contours

kCCW 

counter-clockwise direction for adding closed contours

◆ SkPathFillType

enum SkPathFillType
strong
Enumerator
kWinding 

Specifies that "inside" is computed by a non-zero sum of signed edge crossings.

kEvenOdd 

Specifies that "inside" is computed by an odd number of edge crossings.

kInverseWinding 

Same as Winding, but draws outside of the path, rather than inside.

kInverseEvenOdd 

Same as EvenOdd, but draws outside of the path, rather than inside.

◆ SkPathSegmentMask

Enumerator
kLine_SkPathSegmentMask 
kQuad_SkPathSegmentMask 
kConic_SkPathSegmentMask 
kCubic_SkPathSegmentMask 

◆ SkPathVerb

enum SkPathVerb
strong
Enumerator
kMove 

SkPath::RawIter returns 1 point.

kLine 

SkPath::RawIter returns 2 points.

kQuad 

SkPath::RawIter returns 3 points.

kConic 

SkPath::RawIter returns 3 points + 1 weight.

kCubic 

SkPath::RawIter returns 4 points.

kClose 

SkPath::RawIter returns 0 points.

Function Documentation

◆ SkPathFillType_ConvertToNonInverse()

static SkPathFillType SkPathFillType_ConvertToNonInverse ( SkPathFillType  ft)
inlinestatic

◆ SkPathFillType_IsEvenOdd()

static bool SkPathFillType_IsEvenOdd ( SkPathFillType  ft)
inlinestatic

◆ SkPathFillType_IsInverse()

static bool SkPathFillType_IsInverse ( SkPathFillType  ft)
inlinestatic