capi: Added wrapper for tvg::Shape::rotate 52/239552/1
authorMateusz Palkowski <m.palkowski@samsung.com>
Mon, 27 Jul 2020 12:08:01 +0000 (14:08 +0200)
committerMateusz Palkowski <m.palkowski@samsung.com>
Mon, 27 Jul 2020 13:11:38 +0000 (15:11 +0200)
Change-Id: I2cef6600586c037caaf8d2f45fc6d78e93dce925

inc/thorvg_capi.h
src/bindings/capi/tvgCapi.cpp

index d7f98ec..9d32483 100644 (file)
@@ -141,6 +141,7 @@ TVG_EXPORT Tvg_Result tvg_shape_set_stroke_cap(Tvg_Paint* paint, Tvg_Stroke_Cap
 TVG_EXPORT Tvg_Result tvg_shape_set_stroke_join(Tvg_Paint* paint, Tvg_Stroke_Join join);
 TVG_EXPORT Tvg_Result tvg_shape_fill_color(Tvg_Paint* paint, uint8_t r, uint8_t g, uint8_t b, uint8_t a);
 TVG_EXPORT Tvg_Result tvg_shape_scale(Tvg_Paint* paint, float factor);
+TVG_EXPORT Tvg_Result tvg_shape_rotate(Tvg_Paint* paint, float degree);
 
 #ifdef __cplusplus
 }
index 2e4e866..bd83ccd 100644 (file)
@@ -231,6 +231,11 @@ TVG_EXPORT Tvg_Result tvg_shape_scale(Tvg_Paint* paint, float factor)
     return (Tvg_Result) reinterpret_cast<Shape*>(paint)->scale(factor);
 }
 
+TVG_EXPORT Tvg_Result tvg_shape_rotate(Tvg_Paint* paint, float degree)
+{
+    return (Tvg_Result) reinterpret_cast<Shape*>(paint)->rotate(degree);
+}
+
 #ifdef __cplusplus
 }
 #endif
\ No newline at end of file