canvas vg: keep the eo interfaces for the compatibility just in case... 86/258186/1
authorHermet Park <chuneon.park@samsung.com>
Wed, 12 May 2021 04:23:36 +0000 (13:23 +0900)
committerHermet Park <chuneon.park@samsung.com>
Wed, 12 May 2021 04:23:36 +0000 (13:23 +0900)
Change-Id: I3e63b44e9182777b385af7231c34008274a3da78

src/lib/evas/canvas/efl_canvas_vg_gradient.c
src/lib/evas/canvas/efl_canvas_vg_gradient.eo
src/lib/evas/canvas/efl_canvas_vg_gradient_linear.c
src/lib/evas/canvas/efl_canvas_vg_gradient_linear.eo

index cbf4518..1aeee7a 100644 (file)
@@ -7,6 +7,40 @@
 
 #define MY_CLASS EFL_CANVAS_VG_GRADIENT_CLASS
 
+static void
+_efl_canvas_vg_gradient_efl_gfx_gradient_stop_set(Eo *obj,
+                                                 Efl_Canvas_Vg_Gradient_Data *pd EINA_UNUSED,
+                                                 const Efl_Gfx_Gradient_Stop *colors,
+                                                 unsigned int length)
+{
+   evas_vg_gradient_stop_set(obj, colors, length);
+}
+
+static void
+_efl_canvas_vg_gradient_efl_gfx_gradient_stop_get(const Eo *obj,
+                                                  Efl_Canvas_Vg_Gradient_Data *pd EINA_UNUSED,
+                                                  const Efl_Gfx_Gradient_Stop **colors,
+                                                  unsigned int *length)
+{
+   evas_vg_gradient_stop_get(obj, colors, length)
+
+}
+
+static void
+_efl_canvas_vg_gradient_efl_gfx_gradient_spread_set(Eo *obj,
+                                                    Efl_Canvas_Vg_Gradient_Data *pd EINA_UNUSED,
+                                                    Efl_Gfx_Gradient_Spread spread)
+{
+   evas_vg_gradient_spread_set(obj, spread);
+}
+
+static Efl_Gfx_Gradient_Spread
+_efl_canvas_vg_gradient_efl_gfx_gradient_spread_get(const Eo *obj,
+                                                    Efl_Canvas_Vg_Gradient_Data *pd EINA_UNUSED)
+{
+   return evas_vg_gradient_spread_get(obj);
+}
+
 static Eina_Bool
 _efl_canvas_vg_gradient_efl_gfx_path_interpolate(Eo *obj,
                                          Efl_Canvas_Vg_Gradient_Data *pd EINA_UNUSED,
index 30c355a..08731dc 100644 (file)
@@ -2,6 +2,8 @@ abstract @beta Efl.Canvas.Vg.Gradient extends Efl.Canvas.Vg.Node implements Efl.
 {
    [[Efl vectopr graphics gradient abstract class]]
    implements {
+      Efl.Gfx.Gradient.stop { get; set; }
+      Efl.Gfx.Gradient.spread { get; set; }
       Efl.Gfx.Path.interpolate;
       Efl.Duplicate.duplicate;
       Efl.Object.destructor;
index 52fb188..0e24b83 100644 (file)
@@ -17,6 +17,38 @@ struct _Efl_Canvas_Vg_Gradient_Linear_Data
 };
 
 static void
+_efl_canvas_vg_gradient_linear_efl_gfx_gradient_linear_start_set(Eo *obj,
+                                                                 Efl_Canvas_Vg_Gradient_Linear_Data *pd EINA_UNUSED,
+                                                                 double x, double y)
+{
+   evas_vg_gradient_linear_start_set(obj, x, y);
+}
+
+static void
+_efl_canvas_vg_gradient_linear_efl_gfx_gradient_linear_start_get(const Eo *obj,
+                                                                 Efl_Canvas_Vg_Gradient_Linear_Data *pd EINA_UNUSED,
+                                                                 double *x, double *y)
+{
+   evas_vg_gradient_linear_start_get(obj, x, y);
+}
+
+static void
+_efl_canvas_vg_gradient_linear_efl_gfx_gradient_linear_end_set(Eo *obj,
+                                                               Efl_Canvas_Vg_Gradient_Linear_Data *pd EINA_UNUSED,
+                                                               double x, double y)
+{
+   evas_vg_gradient_linear_end_set(obj, x, y);
+}
+
+static void
+_efl_canvas_vg_gradient_linear_efl_gfx_gradient_linear_end_get(const Eo *obj,
+                                                               Efl_Canvas_Vg_Gradient_Linear_Data *pd EINA_UNUSED,
+                                                               double *x, double *y)
+{
+   evas_vg_gradient_linear_end_get(obj, x, y);
+}
+
+static void
 _gradient_linear_render_pre_tvg(Efl_Canvas_Vg_Gradient_Data *gd,
                                 Tvg_Paint *shape,
                                 Evas_Vg_Gradient_Owner_Type owner)
index 8c6ba6a..21d3be7 100644 (file)
@@ -2,6 +2,8 @@ class @beta Efl.Canvas.Vg.Gradient_Linear extends Efl.Canvas.Vg.Gradient impleme
 {
    [[Efl vector graphics gradient linear class]]
    implements {
+      Efl.Gfx.Gradient_Linear.start { get; set; }
+      Efl.Gfx.Gradient_Linear.end { get; set; }
       Efl.Gfx.Path.interpolate;
       Efl.Duplicate.duplicate;
       Efl.Gfx.Path.bounds_get;