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

#include <SkPathMakers.h>

Inheritance diagram for SkPath_OvalPointIterator:
SkPath_PointIterator< 4 >

Public Member Functions

 SkPath_OvalPointIterator (const SkRect &oval, SkPathDirection dir, unsigned startIndex)
 
- Public Member Functions inherited from SkPath_PointIterator< 4 >
 SkPath_PointIterator (SkPathDirection dir, unsigned startIndex)
 
const SkPointcurrent () const
 
const SkPointnext ()
 

Additional Inherited Members

- Protected Attributes inherited from SkPath_PointIterator< 4 >
SkPoint fPts [N]
 

Detailed Description

Definition at line 51 of file SkPathMakers.h.

Constructor & Destructor Documentation

◆ SkPath_OvalPointIterator()

SkPath_OvalPointIterator::SkPath_OvalPointIterator ( const SkRect oval,
SkPathDirection  dir,
unsigned  startIndex 
)
inline

Definition at line 53 of file SkPathMakers.h.

54 : SkPath_PointIterator(dir, startIndex) {
55
56 const SkScalar cx = oval.centerX();
57 const SkScalar cy = oval.centerY();
58
59 fPts[0] = SkPoint::Make(cx, oval.fTop);
60 fPts[1] = SkPoint::Make(oval.fRight, cy);
62 fPts[3] = SkPoint::Make(oval.fLeft, cy);
63 }
float SkScalar
Definition extension.cpp:12
SkRect oval
Definition SkRecords.h:249
static constexpr SkPoint Make(float x, float y)
SkScalar fBottom
larger y-axis bounds
Definition extension.cpp:17
SkScalar fLeft
smaller x-axis bounds
Definition extension.cpp:14
SkScalar fRight
larger x-axis bounds
Definition extension.cpp:16
constexpr float centerX() const
Definition SkRect.h:776
constexpr float centerY() const
Definition SkRect.h:785
SkScalar fTop
smaller y-axis bounds
Definition extension.cpp:15

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