Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkNWayCanvas::Iter Class Reference

Public Member Functions

 Iter (const SkTDArray< SkCanvas * > &list)
 
bool next ()
 
SkCanvasoperator-> ()
 
SkCanvasget () const
 

Detailed Description

Definition at line 77 of file SkNWayCanvas.cpp.

Constructor & Destructor Documentation

◆ Iter()

SkNWayCanvas::Iter::Iter ( const SkTDArray< SkCanvas * > &  list)
inline

Definition at line 79 of file SkNWayCanvas.cpp.

79 : fList(list) {
80 fIndex = 0;
81 }

Member Function Documentation

◆ get()

SkCanvas * SkNWayCanvas::Iter::get ( ) const
inline

Definition at line 90 of file SkNWayCanvas.cpp.

90{ return fCanvas; }

◆ next()

bool SkNWayCanvas::Iter::next ( )
inline

Definition at line 82 of file SkNWayCanvas.cpp.

82 {
83 if (fIndex < fList.size()) {
84 fCanvas = fList[fIndex++];
85 return true;
86 }
87 return false;
88 }
int size() const
Definition: SkTDArray.h:138

◆ operator->()

SkCanvas * SkNWayCanvas::Iter::operator-> ( )
inline

Definition at line 89 of file SkNWayCanvas.cpp.

89{ return fCanvas; }

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