summaryrefslogtreecommitdiff
path: root/src/examples/evas
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-05-20 11:52:10 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-20 11:52:10 -0400
commite9eb1c825a982f3f4e8ee74992bcee6d6c5a99cd (patch)
treefb56bd748a06c03fc38f70a3e08923c63e81a667 /src/examples/evas
parentb24fde67871707bafea7d3e638bca70c6ef75de0 (diff)
Rename Efl.Orient -> Efl.Gfx.Orientation
Summary: And the Efl.Orientation interface -> Efl.Gfx.Orientable (with proper c_prefix so it is not too cumbersome to use from C). Also, turned the theme_rotation_apply() parameter into an int to avoid confusion. Fixes T7919 Depends on D8912 Test Plan: Everything continues to build and pass tests Reviewers: zmike, bu5hm4n, cedric, Hermet, Jaehyun_Cho Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T7919 Differential Revision: https://phab.enlightenment.org/D8926
Diffstat (limited to 'src/examples/evas')
-rw-r--r--src/examples/evas/evas-images5.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/examples/evas/evas-images5.c b/src/examples/evas/evas-images5.c
index fa2794e952..7632b7fde1 100644
--- a/src/examples/evas/evas-images5.c
+++ b/src/examples/evas/evas-images5.c
@@ -76,7 +76,7 @@ _on_keydown(void *data EINA_UNUSED,
76 void *einfo) 76 void *einfo)
77{ 77{
78 Evas_Event_Key_Down *ev = einfo; 78 Evas_Event_Key_Down *ev = einfo;
79 Efl_Orient orient = efl_orientation_get(d.img); 79 Efl_Gfx_Orientation orient = efl_gfx_orientation_get(d.img);
80 80
81 if (strcmp(ev->key, "h") == 0) /* print help */ 81 if (strcmp(ev->key, "h") == 0) /* print help */
82 { 82 {
@@ -110,25 +110,25 @@ _on_keydown(void *data EINA_UNUSED,
110 switch (key_val) 110 switch (key_val)
111 { 111 {
112 case 0: 112 case 0:
113 efl_orientation_set(d.img, EFL_ORIENT_UP | (orient & EFL_ORIENT_FLIP_BITMASK)); 113 efl_gfx_orientation_set(d.img, EFL_GFX_ORIENTATION_UP | (orient & EFL_GFX_ORIENTATION_FLIP_BITMASK));
114 break; 114 break;
115 case 1: 115 case 1:
116 efl_orientation_set(d.img, EFL_ORIENT_RIGHT | (orient & EFL_ORIENT_FLIP_BITMASK)); 116 efl_gfx_orientation_set(d.img, EFL_GFX_ORIENTATION_RIGHT | (orient & EFL_GFX_ORIENTATION_FLIP_BITMASK));
117 break; 117 break;
118 case 2: 118 case 2:
119 efl_orientation_set(d.img, EFL_ORIENT_DOWN | (orient & EFL_ORIENT_FLIP_BITMASK)); 119 efl_gfx_orientation_set(d.img, EFL_GFX_ORIENTATION_DOWN | (orient & EFL_GFX_ORIENTATION_FLIP_BITMASK));
120 break; 120 break;
121 case 3: 121 case 3:
122 efl_orientation_set(d.img, EFL_ORIENT_LEFT | (orient & EFL_ORIENT_FLIP_BITMASK)); 122 efl_gfx_orientation_set(d.img, EFL_GFX_ORIENTATION_LEFT | (orient & EFL_GFX_ORIENTATION_FLIP_BITMASK));
123 break; 123 break;
124 case 4: 124 case 4:
125 efl_orientation_set(d.img, (orient & EFL_ORIENT_ROTATION_BITMASK) | EFL_ORIENT_FLIP_HORIZONTAL); 125 efl_gfx_orientation_set(d.img, (orient & EFL_GFX_ORIENTATION_ROTATION_BITMASK) | EFL_GFX_ORIENTATION_FLIP_HORIZONTAL);
126 break; 126 break;
127 case 5: 127 case 5:
128 efl_orientation_set(d.img, (orient & EFL_ORIENT_ROTATION_BITMASK) | EFL_ORIENT_FLIP_VERTICAL); 128 efl_gfx_orientation_set(d.img, (orient & EFL_GFX_ORIENTATION_ROTATION_BITMASK) | EFL_GFX_ORIENTATION_FLIP_VERTICAL);
129 break; 129 break;
130 case 6: 130 case 6:
131 efl_orientation_set(d.img, (orient & EFL_ORIENT_ROTATION_BITMASK)); 131 efl_gfx_orientation_set(d.img, (orient & EFL_GFX_ORIENTATION_ROTATION_BITMASK));
132 break; 132 break;
133 } 133 }
134} 134}