Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SkPathPriv::Iterate Struct Reference

#include <SkPathPriv.h>

Public Member Functions

 Iterate (const SkPath &path)
 
 Iterate (const uint8_t *verbsBegin, const uint8_t *verbsEnd, const SkPoint *points, const SkScalar *weights)
 
SkPath::RangeIter begin ()
 
SkPath::RangeIter end ()
 

Detailed Description

Iterable object for traversing verbs, points, and conic weights in a path:

for (auto [verb, pts, weights] : SkPathPriv::Iterate(skPath)) { ... }

Definition at line 173 of file SkPathPriv.h.

Constructor & Destructor Documentation

◆ Iterate() [1/2]

SkPathPriv::Iterate::Iterate ( const SkPath path)
inline

Definition at line 175 of file SkPathPriv.h.

176 : Iterate(path.fPathRef->verbsBegin(),
177 // Don't allow iteration through non-finite points.
178 (!path.isFinite()) ? path.fPathRef->verbsBegin()
179 : path.fPathRef->verbsEnd(),
180 path.fPathRef->points(), path.fPathRef->conicWeights()) {
181 }
static const int points[]
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition switches.h:57
Iterate(const SkPath &path)
Definition SkPathPriv.h:175

◆ Iterate() [2/2]

SkPathPriv::Iterate::Iterate ( const uint8_t *  verbsBegin,
const uint8_t *  verbsEnd,
const SkPoint points,
const SkScalar weights 
)
inline

Definition at line 182 of file SkPathPriv.h.

184 : fVerbsBegin(verbsBegin), fVerbsEnd(verbsEnd), fPoints(points), fWeights(weights) {
185 }

Member Function Documentation

◆ begin()

SkPath::RangeIter SkPathPriv::Iterate::begin ( )
inline

Definition at line 186 of file SkPathPriv.h.

186{ return {fVerbsBegin, fPoints, fWeights}; }

◆ end()

SkPath::RangeIter SkPathPriv::Iterate::end ( )
inline

Definition at line 187 of file SkPathPriv.h.

187{ return {fVerbsEnd, nullptr, nullptr}; }

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