diff options
author | ChunEon Park <chuneon.park@samsung.com> | 2015-02-11 19:53:25 +0900 |
---|---|---|
committer | ChunEon Park <chuneon.park@samsung.com> | 2015-02-11 19:53:25 +0900 |
commit | c649e7d882de631760a2d99b7fed0aa2f8935d47 (patch) | |
tree | 7dc88f753b77c458788ff91bd3f7e340a129a4ea | |
parent | 9316256c94d5b7610e9ef39eb59386a02aa95f29 (diff) | |
download | efl-devs/hermet/develop.tar.gz |
evas/vector: expose rounded_rect(), arc() legacy apisdevs/hermet/develop
-rw-r--r-- | src/lib/evas/Evas_Legacy.h | 2 | ||||
-rw-r--r-- | src/lib/evas/canvas/evas_vg_shape.c | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/evas/Evas_Legacy.h b/src/lib/evas/Evas_Legacy.h index 56b38cc274..c16217dc5b 100644 --- a/src/lib/evas/Evas_Legacy.h +++ b/src/lib/evas/Evas_Legacy.h @@ -1758,6 +1758,8 @@ EAPI void evas_vg_shape_shape_append_circle(Eo *obj, double x, double y, double EAPI void evas_vg_shape_shape_append_svg_path(Eo *obj, const char *svg_path_data); EAPI Eina_Bool evas_vg_shape_shape_interpolate(Eo *obj, const Eo *from, const Eo *to, double pos_map); EAPI Eina_Bool evas_vg_shape_shape_equal_commands(Eo *obj, const Eo *with); +EAPI void evas_vg_shape_shape_append_rounded_rect(Eo *obj, double x, double y, double w, double h, double xr, double yr); +EAPI void evas_vg_shape_shape_append_arc(Eo *obj, double x, double y, double w, double h, double start_angle, double sweep_length); #include "canvas/efl_vg_shape.eo.legacy.h" diff --git a/src/lib/evas/canvas/evas_vg_shape.c b/src/lib/evas/canvas/evas_vg_shape.c index fd80c1a978..74073f1f59 100644 --- a/src/lib/evas/canvas/evas_vg_shape.c +++ b/src/lib/evas/canvas/evas_vg_shape.c @@ -525,4 +525,16 @@ evas_vg_shape_shape_equal_commands(Eo *obj, const Eo *with) return eo_do(obj, efl_gfx_shape_equal_commands(with)); } +EAPI void +evas_vg_shape_shape_append_rounded_rect(Eo *obj, double x, double y, double w, double h, double xr, double yr) +{ + eo_do(obj, efl_gfx_shape_append_rounded_rect(x, y, w, h, xr, yr)); +} + +EAPI void +evas_vg_shape_shape_append_arc(Eo *obj, double x, double y, double w, double h, double start_angle, double sweep_length) +{ + eo_do(obj, efl_gfx_shape_append_rounded_rect(x, y, w, h, start_angle, sweep_length)); +} + #include "efl_vg_shape.eo.c" |