Flutter Engine
The Flutter Engine
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 4 of file Region_getBoundaryPath.cpp.

4 {
5void draw(SkCanvas* canvas) {
7 region.setRect({10, 20, 90, 60});
8 region.op({30, 40, 60, 80}, SkRegion::kXOR_Op);
9 canvas->drawRegion(region, SkPaint());
12 path.offset(100, 0);
13 canvas->drawPath(path, SkPaint());
14}
15} // 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)
Definition: SkCanvas.cpp:1685
void drawPath(const SkPath &path, const SkPaint &paint)
Definition: SkCanvas.cpp:1747
Definition: SkPath.h:59
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