Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
Region_getBoundaryPath.cpp File Reference
#include "tools/fiddle/examples.h"

Go to the source code of this file.

Functions

 REG_FIDDLE (Region_getBoundaryPath, 256, 100, false, 0)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( Region_getBoundaryPath  ,
256  ,
100  ,
false  ,
 
)

Definition at line 5 of file Region_getBoundaryPath.cpp.

5 {
6void draw(SkCanvas* canvas) {
8 region.setRect({10, 20, 90, 60});
9 region.op({30, 40, 60, 80}, SkRegion::kXOR_Op);
10 canvas->drawRegion(region, SkPaint());
13 path.offset(100, 0);
14 canvas->drawPath(path, SkPaint());
15}
16} // END FIDDLE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition aaclip.cpp:27
void drawRegion(const SkRegion &region, const SkPaint &paint)
void drawPath(const SkPath &path, const SkPaint &paint)
bool getBoundaryPath(SkPath *path) const
@ kXOR_Op
target exclusive or with operand
Definition SkRegion.h:370
bool op(const SkIRect &rect, Op op)
Definition SkRegion.h:384
bool setRect(const SkIRect &rect)
Definition SkRegion.cpp:192
ClipOpAndAA opAA SkRegion region
Definition SkRecords.h:238
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition switches.h:57