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

Go to the source code of this file.

Functions

 REG_FIDDLE (Paint_setStrokeCap_b, 256, 200, false, 0)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( Paint_setStrokeCap_b  ,
256  ,
200  ,
false  ,
 
)

Definition at line 5 of file Paint_setStrokeCap_b.cpp.

5 {
6void draw(SkCanvas* canvas) {
9 paint.setStrokeWidth(20);
11 path.moveTo(30, 20);
12 path.lineTo(40, 40);
13 path.conicTo(70, 20, 100, 20, .707f);
15 paint.setStrokeJoin(j);
16 canvas->drawPath(path, paint);
17 canvas->translate(0, 70);
18 }
19}
20} // END FIDDLE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition aaclip.cpp:27
void translate(SkScalar dx, SkScalar dy)
void drawPath(const SkPath &path, const SkPaint &paint)
@ kStroke_Style
set to stroke geometry
Definition SkPaint.h:194
@ kRound_Join
adds circle
Definition SkPaint.h:360
@ kMiter_Join
extends to miter limit
Definition SkPaint.h:359
@ kBevel_Join
connects outside edges
Definition SkPaint.h:361
const Paint & paint
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