Flutter Engine
The Flutter Engine
Public Member Functions | Protected Attributes | List of all members
SkPath_PointIterator< N > Class Template Reference

#include <SkPathMakers.h>

Public Member Functions

 SkPath_PointIterator (SkPathDirection dir, unsigned startIndex)
 
const SkPointcurrent () const
 
const SkPointnext ()
 

Protected Attributes

SkPoint fPts [N]
 

Detailed Description

template<unsigned N>
class SkPath_PointIterator< N >

Definition at line 15 of file SkPathMakers.h.

Constructor & Destructor Documentation

◆ SkPath_PointIterator()

template<unsigned N>
SkPath_PointIterator< N >::SkPath_PointIterator ( SkPathDirection  dir,
unsigned  startIndex 
)
inline

Definition at line 17 of file SkPathMakers.h.

18 : fCurrent(startIndex % N)
19 , fAdvance(dir == SkPathDirection::kCW ? 1 : N - 1) { }
#define N
Definition: beziers.cpp:19
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 to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets dir
Definition: switches.h:145

Member Function Documentation

◆ current()

template<unsigned N>
const SkPoint & SkPath_PointIterator< N >::current ( ) const
inline

Definition at line 21 of file SkPathMakers.h.

21 {
22 SkASSERT(fCurrent < N);
23 return fPts[fCurrent];
24 }
#define SkASSERT(cond)
Definition: SkAssert.h:116

◆ next()

template<unsigned N>
const SkPoint & SkPath_PointIterator< N >::next ( )
inline

Definition at line 26 of file SkPathMakers.h.

26 {
27 fCurrent = (fCurrent + fAdvance) % N;
28 return this->current();
29 }
const SkPoint & current() const
Definition: SkPathMakers.h:21

Member Data Documentation

◆ fPts

template<unsigned N>
SkPoint SkPath_PointIterator< N >::fPts[N]
protected

Definition at line 32 of file SkPathMakers.h.


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