summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubhransu Sekhar Mohanty <sub.mohanty@samsung.com>2015-04-03 16:34:00 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:34:00 +0200
commite80a7591396b0b1cbf1e87f020c11d5997cb09dc (patch)
treebf5325d3c95f340fc60029fec78c76113f36fbbe
parentb1e663b3688c1288236c39ec047487eb634c455a (diff)
evas: add legacy api for creating vg_shape and vg_container object.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/evas/Evas_Legacy.h20
-rw-r--r--src/lib/evas/canvas/evas_vg_container.c6
-rw-r--r--src/lib/evas/canvas/evas_vg_shape.c6
3 files changed, 32 insertions, 0 deletions
diff --git a/src/lib/evas/Evas_Legacy.h b/src/lib/evas/Evas_Legacy.h
index 7fef29513f..0b337e9cb1 100644
--- a/src/lib/evas/Evas_Legacy.h
+++ b/src/lib/evas/Evas_Legacy.h
@@ -1712,6 +1712,26 @@ EAPI Evas_Object *evas_object_vg_add(Evas *e) EINA_WARN_UNUSED_RESULT EINA_ARG_N
1712 1712
1713#include "canvas/evas_vg.eo.legacy.h" 1713#include "canvas/evas_vg.eo.legacy.h"
1714 1714
1715/**
1716 * Creates a new vector shape object \.
1717 *
1718 * @param parent The given vector container object.
1719 * @return The created vector shape object handle.
1720 *
1721 * @since 1.14
1722 */
1723EAPI Efl_VG* evas_vg_shape_add(Efl_VG *parent);
1724
1725/**
1726 * Creates a new vector container object \.
1727 *
1728 * @param parent The given vector container object.
1729 * @return The created vector container object handle.
1730 *
1731 * @since 1.14
1732 */
1733EAPI Efl_VG* evas_vg_container_add(Efl_VG *parent);
1734
1715EAPI Eina_Bool evas_vg_node_visible_get(Eo *obj); 1735EAPI Eina_Bool evas_vg_node_visible_get(Eo *obj);
1716EAPI void evas_vg_node_visible_set(Eo *obj, Eina_Bool v); 1736EAPI void evas_vg_node_visible_set(Eo *obj, Eina_Bool v);
1717EAPI void evas_vg_node_color_get(Eo *obj, int *r, int *g, int *b, int *a); 1737EAPI void evas_vg_node_color_get(Eo *obj, int *r, int *g, int *b, int *a);
diff --git a/src/lib/evas/canvas/evas_vg_container.c b/src/lib/evas/canvas/evas_vg_container.c
index fdf81244ad..e85ff3b4ad 100644
--- a/src/lib/evas/canvas/evas_vg_container.c
+++ b/src/lib/evas/canvas/evas_vg_container.c
@@ -76,5 +76,11 @@ _efl_vg_container_efl_vg_base_bound_get(Eo *obj EINA_UNUSED,
76 return first ? EINA_FALSE : EINA_TRUE; 76 return first ? EINA_FALSE : EINA_TRUE;
77} 77}
78 78
79EAPI Efl_VG*
80evas_vg_container_add(Efl_VG *parent)
81{
82 return eo_add(EFL_VG_CONTAINER_CLASS, parent);
83}
84
79 85
80#include "efl_vg_container.eo.c" 86#include "efl_vg_container.eo.c"
diff --git a/src/lib/evas/canvas/evas_vg_shape.c b/src/lib/evas/canvas/evas_vg_shape.c
index c1584805c3..c33c6a864c 100644
--- a/src/lib/evas/canvas/evas_vg_shape.c
+++ b/src/lib/evas/canvas/evas_vg_shape.c
@@ -553,4 +553,10 @@ evas_vg_shape_shape_equal_commands(Eo *obj, const Eo *with)
553 return eo_do_ret(obj, ret, efl_gfx_shape_equal_commands(with)); 553 return eo_do_ret(obj, ret, efl_gfx_shape_equal_commands(with));
554} 554}
555 555
556EAPI Efl_VG*
557evas_vg_shape_add(Efl_VG *parent)
558{
559 return eo_add(EFL_VG_SHAPE_CLASS, parent);
560}
561
556#include "efl_vg_shape.eo.c" 562#include "efl_vg_shape.eo.c"