summaryrefslogtreecommitdiff
path: root/src/bin/vg_basic_gradient.c
diff options
context:
space:
mode:
authorHermet Park <hermet@hermet.pe.kr>2016-08-22 19:00:56 +0900
committerHermet Park <hermet@hermet.pe.kr>2016-08-22 19:00:56 +0900
commit05a29c965a81ba942fef1f7262e9c64a91ffa2f4 (patch)
tree97abbc80d64280d84a9f71da6f24cd56a31ae247 /src/bin/vg_basic_gradient.c
parentffa005ea3de26b4219f32c285cb1665bb1366163 (diff)
fix eo break.
Its api are still unstable. make it work again.
Diffstat (limited to 'src/bin/vg_basic_gradient.c')
-rw-r--r--src/bin/vg_basic_gradient.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/vg_basic_gradient.c b/src/bin/vg_basic_gradient.c
index b4346cd..da25236 100644
--- a/src/bin/vg_basic_gradient.c
+++ b/src/bin/vg_basic_gradient.c
@@ -36,7 +36,7 @@ static void _setup(void)
36 Eo *vector; 36 Eo *vector;
37 double w = 70, h = 70, stroke_w = 3; 37 double w = 70, h = 70, stroke_w = 3;
38 38
39 vector = eo_add(EVAS_VG_CLASS, evas); 39 vector = efl_add(EVAS_VG_CLASS, evas);
40 o_shapes[i] = vector; 40 o_shapes[i] = vector;
41 efl_gfx_size_set(vector, w + stroke_w * 2, h + stroke_w * 2); 41 efl_gfx_size_set(vector, w + stroke_w * 2, h + stroke_w * 2);
42 efl_gfx_position_set(vector, 0, 0); 42 efl_gfx_position_set(vector, 0, 0);
@@ -44,13 +44,13 @@ static void _setup(void)
44 44
45 root = evas_object_vg_root_node_get(vector); 45 root = evas_object_vg_root_node_get(vector);
46 46
47 gradient = eo_add(EFL_VG_GRADIENT_LINEAR_CLASS, NULL); 47 gradient = efl_add(EFL_VG_GRADIENT_LINEAR_CLASS, NULL);
48 efl_gfx_gradient_stop_set(gradient, stops, 3); 48 efl_gfx_gradient_stop_set(gradient, stops, 3);
49 efl_gfx_gradient_spread_set(gradient, EFL_GFX_GRADIENT_SPREAD_REFLECT); 49 efl_gfx_gradient_spread_set(gradient, EFL_GFX_GRADIENT_SPREAD_REFLECT);
50 efl_gfx_gradient_linear_start_set(gradient, 10, 10); 50 efl_gfx_gradient_linear_start_set(gradient, 10, 10);
51 efl_gfx_gradient_linear_end_set(gradient, 50, 50); 51 efl_gfx_gradient_linear_end_set(gradient, 50, 50);
52 52
53 rect = eo_add(EFL_VG_SHAPE_CLASS, root); 53 rect = efl_add(EFL_VG_SHAPE_CLASS, root);
54 efl_gfx_shape_append_rect(rect, 0 + stroke_w, 0 + stroke_w, w, h, 10, 10); 54 efl_gfx_shape_append_rect(rect, 0 + stroke_w, 0 + stroke_w, w, h, 10, 10);
55 efl_vg_shape_fill_set(rect, gradient); 55 efl_vg_shape_fill_set(rect, gradient);
56 efl_gfx_shape_stroke_width_set(rect, stroke_w); 56 efl_gfx_shape_stroke_width_set(rect, stroke_w);
@@ -65,7 +65,7 @@ static void _cleanup(void)
65{ 65{
66 unsigned int i; 66 unsigned int i;
67 67
68 for (i = 0; i < OBNUM; i++) eo_del(o_shapes[i]); 68 for (i = 0; i < OBNUM; i++) efl_del(o_shapes[i]);
69} 69}
70 70
71/* loop - do things */ 71/* loop - do things */