summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/evas/Evas_Legacy.h54
-rw-r--r--src/lib/evas/canvas/evas_vg_gradient_linear.c6
-rw-r--r--src/lib/evas/canvas/evas_vg_gradient_radial.c6
3 files changed, 66 insertions, 0 deletions
diff --git a/src/lib/evas/Evas_Legacy.h b/src/lib/evas/Evas_Legacy.h
index 95d2b20013..6a4833c476 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);
3234EAPI Eina_Bool evas_vg_shape_interpolate(Eo *obj, const Eo *from, const Eo *to, double pos_map); 3234EAPI Eina_Bool evas_vg_shape_interpolate(Eo *obj, const Eo *from, const Eo *to, double pos_map);
3235EAPI Eina_Bool evas_vg_shape_equal_commands(Eo *obj, const Eo *with); 3235EAPI Eina_Bool evas_vg_shape_equal_commands(Eo *obj, const Eo *with);
3236 3236
3237/**
3238 * set a vg object as the fill property
3239 *
3240 * @param obj The object whose fill property gets modified.
3241 * @param f The object content will be used for filling.
3242 *
3243 */
3244EAPI void evas_vg_shape_fill_set(Eo *obj, Efl_VG *f);
3245
3246/**
3247 * returns the object that is set for the fill property
3248 *
3249 * @param obj The object whose fill property is inspected.
3250 * @return The object that is set as fill property.
3251 *
3252 */
3253EAPI Efl_VG* evas_vg_shape_fill_get(const Eo *obj);
3254
3255/**
3256 * set a vg object as the stroke fill property
3257 *
3258 * @param obj The object whose stroke fill property gets modified.
3259 * @param f The object content will be used for stroke filling.
3260 *
3261 */
3262EAPI void evas_vg_shape_stroke_fill_set(Eo *obj, Efl_VG *f);
3263
3264/**
3265 * returns the object that is set for the stroke fill property
3266 *
3267 * @param obj The object whose stroke fill property is inspected.
3268 * @return The object that is set as stroke fill property.
3269 *
3270 */
3271EAPI Efl_VG* evas_vg_shape_stroke_fill_get(const Eo *obj);
3272
3237#include "canvas/efl_vg_shape.eo.legacy.h" 3273#include "canvas/efl_vg_shape.eo.legacy.h"
3238 3274
3239/** 3275/**
@@ -3281,6 +3317,15 @@ EAPI Efl_Gfx_Gradient_Spread evas_vg_gradient_spread_get(Eo *obj);
3281#include "canvas/efl_vg_gradient.eo.legacy.h" 3317#include "canvas/efl_vg_gradient.eo.legacy.h"
3282 3318
3283/** 3319/**
3320 * Creates a new linear gradient object \.
3321 *
3322 * @param parent The given vector container object.
3323 * @return The created linear gradient object handle.
3324 *
3325 */
3326EAPI Efl_VG* evas_vg_gradient_linear_add(Efl_VG *parent);
3327
3328/**
3284 * 3329 *
3285 * Sets the start point of this linear gradient. 3330 * Sets the start point of this linear gradient.
3286 * 3331 *
@@ -3323,6 +3368,15 @@ EAPI void evas_vg_gradient_linear_end_get(Eo *obj, double *x, double *y);
3323#include "canvas/efl_vg_gradient_linear.eo.legacy.h" 3368#include "canvas/efl_vg_gradient_linear.eo.legacy.h"
3324 3369
3325/** 3370/**
3371 * Creates a new radial gradient object \.
3372 *
3373 * @param parent The given vector container object.
3374 * @return The created radial gradient object handle.
3375 *
3376 */
3377EAPI Efl_VG* evas_vg_gradient_radial_add(Efl_VG *parent);
3378
3379/**
3326 * 3380 *
3327 * Sets the center of this radial gradient. 3381 * Sets the center of this radial gradient.
3328 * 3382 *
diff --git a/src/lib/evas/canvas/evas_vg_gradient_linear.c b/src/lib/evas/canvas/evas_vg_gradient_linear.c
index de81987979..a1e904617b 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)
192 efl_gfx_gradient_linear_end_get(obj, x, y); 192 efl_gfx_gradient_linear_end_get(obj, x, y);
193} 193}
194 194
195EAPI Efl_VG*
196evas_vg_gradient_linear_add(Efl_VG *parent)
197{
198 return efl_add(EFL_VG_GRADIENT_LINEAR_CLASS, parent);
199}
200
195#include "efl_vg_gradient_linear.eo.c" 201#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 9a60d65518..a464e2a19f 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)
224 efl_gfx_gradient_radial_focal_get(obj, x, y); 224 efl_gfx_gradient_radial_focal_get(obj, x, y);
225} 225}
226 226
227EAPI Efl_VG*
228evas_vg_gradient_radial_add(Efl_VG *parent)
229{
230 return efl_add(EFL_VG_GRADIENT_RADIAL_CLASS, parent);
231}
232
227#include "efl_vg_gradient_radial.eo.c" 233#include "efl_vg_gradient_radial.eo.c"