Flutter Engine
The Flutter Engine
third_party
skia
docs
examples
Path_addOval.cpp
Go to the documentation of this file.
1
// Copyright 2019 Google LLC.
2
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3
#include "
tools/fiddle/examples.h
"
4
REG_FIDDLE
(Path_addOval, 256, 120,
false
, 0) {
5
void
draw
(
SkCanvas
* canvas) {
6
SkPaint
paint
;
7
SkPath
oval
;
8
oval
.addOval({20, 20, 160, 80});
9
canvas->
drawPath
(
oval
,
paint
);
10
}
11
}
// END FIDDLE
REG_FIDDLE
REG_FIDDLE(Path_addOval, 256, 120, false, 0)
Definition:
Path_addOval.cpp:4
draw
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition:
aaclip.cpp:27
SkCanvas
Definition:
SkCanvas.h:106
SkCanvas::drawPath
void drawPath(const SkPath &path, const SkPaint &paint)
Definition:
SkCanvas.cpp:1747
SkPaint
Definition:
SkPaint.h:44
SkPath
Definition:
SkPath.h:59
paint
const Paint & paint
Definition:
color_source.cc:38
examples.h
SkRecords::oval
SkRect oval
Definition:
SkRecords.h:249
Generated on Sun Jun 23 2024 21:55:55 for Flutter Engine by
1.9.4