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 <cedric@osg.samsung.com>
This commit is contained in:
Subhransu Mohanty 2016-10-25 13:31:45 -07:00 committed by Cedric Bail
parent 9a62932d07
commit 4f16e16b94
3 changed files with 66 additions and 0 deletions

View File

@ -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"
/**
@ -3280,6 +3316,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.
@ -3322,6 +3367,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.

View File

@ -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"

View File

@ -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"