aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/c
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2016-02-09 13:25:51 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-09 13:25:51 -0800
commit4a7940bf5e4de6396fd48bbfdbf883e696b19b35 (patch)
tree25e2d4a37445ffd61acb9c613235e56fbb36a284 /include/c
parent0449bcfb2fa1dd33cb3a4c0c8b17960d17edf01a (diff)
add drawCircle to c api
Diffstat (limited to 'include/c')
-rw-r--r--include/c/sk_canvas.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/c/sk_canvas.h b/include/c/sk_canvas.h
index f6c0d4e1c1..1e1dd24f99 100644
--- a/include/c/sk_canvas.h
+++ b/include/c/sk_canvas.h
@@ -103,6 +103,11 @@ SK_API void sk_canvas_draw_paint(sk_canvas_t*, const sk_paint_t*);
*/
SK_API void sk_canvas_draw_rect(sk_canvas_t*, const sk_rect_t*, const sk_paint_t*);
/**
+ * Draw the circle centered at (cx, cy) with radius rad using the specified paint.
+ * The circle will be filled or framed based on the style in the paint
+ */
+SK_API void sk_canvas_draw_circle(sk_canvas_t*, float cx, float cy, float rad, const sk_paint_t*);
+/**
Draw the specified oval using the specified paint. The oval will be
filled or framed based on the style in the paint
*/