cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=4f16e16b9449167416f4108c61552c1e48b6d8ca
commit 4f16e16b9449167416f4108c61552c1e48b6d8ca Author: Subhransu Mohanty <sub.moha...@samsung.com> Date: Tue Oct 25 13:31:45 2016 -0700 evas: vg/gradient - add missing legacy api for gradient object creation. Reviewers: jpeg, Hermet, artem.popov, cedric Reviewed By: artem.popov, cedric Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4331 Signed-off-by: Cedric Bail <ced...@osg.samsung.com> --- src/lib/evas/Evas_Legacy.h | 54 +++++++++++++++++++++++++++ src/lib/evas/canvas/evas_vg_gradient_linear.c | 6 +++ src/lib/evas/canvas/evas_vg_gradient_radial.c | 6 +++ 3 files changed, 66 insertions(+) diff --git a/src/lib/evas/Evas_Legacy.h b/src/lib/evas/Evas_Legacy.h index 95d2b20..6a4833c 100644 --- a/src/lib/evas/Evas_Legacy.h +++ b/src/lib/evas/Evas_Legacy.h @@ -3234,6 +3234,42 @@ EAPI void evas_vg_shape_append_svg_path(Eo *obj, const char *svg_path_data); EAPI Eina_Bool evas_vg_shape_interpolate(Eo *obj, const Eo *from, const Eo *to, double pos_map); EAPI Eina_Bool evas_vg_shape_equal_commands(Eo *obj, const Eo *with); +/** + * set a vg object as the fill property + * + * @param obj The object whose fill property gets modified. + * @param f The object content will be used for filling. + * + */ +EAPI void evas_vg_shape_fill_set(Eo *obj, Efl_VG *f); + +/** + * returns the object that is set for the fill property + * + * @param obj The object whose fill property is inspected. + * @return The object that is set as fill property. + * + */ +EAPI Efl_VG* evas_vg_shape_fill_get(const Eo *obj); + +/** + * set a vg object as the stroke fill property + * + * @param obj The object whose stroke fill property gets modified. + * @param f The object content will be used for stroke filling. + * + */ +EAPI void evas_vg_shape_stroke_fill_set(Eo *obj, Efl_VG *f); + +/** + * returns the object that is set for the stroke fill property + * + * @param obj The object whose stroke fill property is inspected. + * @return The object that is set as stroke fill property. + * + */ +EAPI Efl_VG* evas_vg_shape_stroke_fill_get(const Eo *obj); + #include "canvas/efl_vg_shape.eo.legacy.h" /** @@ -3281,6 +3317,15 @@ EAPI Efl_Gfx_Gradient_Spread evas_vg_gradient_spread_get(Eo *obj); #include "canvas/efl_vg_gradient.eo.legacy.h" /** + * Creates a new linear gradient object \. + * + * @param parent The given vector container object. + * @return The created linear gradient object handle. + * + */ +EAPI Efl_VG* evas_vg_gradient_linear_add(Efl_VG *parent); + +/** * * Sets the start point of this linear gradient. * @@ -3323,6 +3368,15 @@ EAPI void evas_vg_gradient_linear_end_get(Eo *obj, double *x, double *y); #include "canvas/efl_vg_gradient_linear.eo.legacy.h" /** + * Creates a new radial gradient object \. + * + * @param parent The given vector container object. + * @return The created radial gradient object handle. + * + */ +EAPI Efl_VG* evas_vg_gradient_radial_add(Efl_VG *parent); + +/** * * Sets the center of this radial gradient. * diff --git a/src/lib/evas/canvas/evas_vg_gradient_linear.c b/src/lib/evas/canvas/evas_vg_gradient_linear.c index de81987..a1e9046 100644 --- a/src/lib/evas/canvas/evas_vg_gradient_linear.c +++ b/src/lib/evas/canvas/evas_vg_gradient_linear.c @@ -192,4 +192,10 @@ evas_vg_gradient_linear_end_get(Eo *obj, double *x, double *y) efl_gfx_gradient_linear_end_get(obj, x, y); } +EAPI Efl_VG* +evas_vg_gradient_linear_add(Efl_VG *parent) +{ + return efl_add(EFL_VG_GRADIENT_LINEAR_CLASS, parent); +} + #include "efl_vg_gradient_linear.eo.c" diff --git a/src/lib/evas/canvas/evas_vg_gradient_radial.c b/src/lib/evas/canvas/evas_vg_gradient_radial.c index 9a60d65..a464e2a 100644 --- a/src/lib/evas/canvas/evas_vg_gradient_radial.c +++ b/src/lib/evas/canvas/evas_vg_gradient_radial.c @@ -224,4 +224,10 @@ evas_vg_gradient_radial_focal_get(Eo *obj, double *x, double *y) efl_gfx_gradient_radial_focal_get(obj, x, y); } +EAPI Efl_VG* +evas_vg_gradient_radial_add(Efl_VG *parent) +{ + return efl_add(EFL_VG_GRADIENT_RADIAL_CLASS, parent); +} + #include "efl_vg_gradient_radial.eo.c" --