Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 5 of file Path_reset.cpp.

5 {
6void draw(SkCanvas* canvas) {
9 path1.addRect({10, 20, 30, 40});
10 SkDebugf("path1 %c= path2\n", path1 == path2 ? '=' : '!');
11 path1.reset();
12 SkDebugf("path1 %c= path2\n", path1 == path2 ? '=' : '!');
13}
14} // 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
void setFillType(SkPathFillType ft)
Definition SkPath.h:235
SkPath & reset()
Definition SkPath.cpp:360
SkPath & addRect(const SkRect &rect, SkPathDirection dir, unsigned start)
Definition SkPath.cpp:854