Flutter Engine
The Flutter Engine
Functions
Path_reset.cpp File Reference
#include "tools/fiddle/examples.h"

Go to the source code of this file.

Functions

 REG_FIDDLE (Path_reset, 256, 256, true, 0)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( Path_reset  ,
256  ,
256  ,
true  ,
 
)

Definition at line 4 of file Path_reset.cpp.

4 {
5void draw(SkCanvas* canvas) {
8 path1.addRect({10, 20, 30, 40});
9 SkDebugf("path1 %c= path2\n", path1 == path2 ? '=' : '!');
10 path1.reset();
11 SkDebugf("path1 %c= path2\n", path1 == path2 ? '=' : '!');
12}
13} // END FIDDLE
static SkPath path1()
static SkPath path2()
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27
Definition: SkPath.h:59
void setFillType(SkPathFillType ft)
Definition: SkPath.h:235
SkPath & reset()
Definition: SkPath.cpp:370
SkPath & addRect(const SkRect &rect, SkPathDirection dir, unsigned start)
Definition: SkPath.cpp:864