Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
SkPaintTitleUpdater Struct Reference

Public Member Functions

 SkPaintTitleUpdater (SkString *title)
 
void append (const char *s)
 
void done ()
 

Public Attributes

SkStringfTitle
 
int fCount
 

Detailed Description

Definition at line 1128 of file Viewer.cpp.

Constructor & Destructor Documentation

◆ SkPaintTitleUpdater()

SkPaintTitleUpdater::SkPaintTitleUpdater ( SkString title)
inline

Definition at line 1129 of file Viewer.cpp.

1129: fTitle(title), fCount(0) {}
SkString * fTitle
Definition: Viewer.cpp:1144

Member Function Documentation

◆ append()

void SkPaintTitleUpdater::append ( const char *  s)
inline

Definition at line 1130 of file Viewer.cpp.

1130 {
1131 if (fCount == 0) {
1132 fTitle->append(" {");
1133 } else {
1134 fTitle->append(", ");
1135 }
1136 fTitle->append(s);
1137 ++fCount;
1138 }
void append(const char text[])
Definition: SkString.h:203
struct MyStruct s

◆ done()

void SkPaintTitleUpdater::done ( )
inline

Definition at line 1139 of file Viewer.cpp.

1139 {
1140 if (fCount > 0) {
1141 fTitle->append("}");
1142 }
1143 }

Member Data Documentation

◆ fCount

int SkPaintTitleUpdater::fCount

Definition at line 1145 of file Viewer.cpp.

◆ fTitle

SkString* SkPaintTitleUpdater::fTitle

Definition at line 1144 of file Viewer.cpp.


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