summaryrefslogtreecommitdiff
path: root/src/examples/evas/evas-stacking.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/evas/evas-stacking.c')
-rw-r--r--src/examples/evas/evas-stacking.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/examples/evas/evas-stacking.c b/src/examples/evas/evas-stacking.c
index 18221cd..148393f 100644
--- a/src/examples/evas/evas-stacking.c
+++ b/src/examples/evas/evas-stacking.c
@@ -66,7 +66,7 @@ _on_mouse_down(void *data EINA_UNUSED,
66 Evas_Object *o, 66 Evas_Object *o,
67 void *einfo EINA_UNUSED) 67 void *einfo EINA_UNUSED)
68{ 68{
69 fprintf(stdout, "Mouse down on rectangle %s!\n", _name_get(o)); 69 printf("Mouse down on rectangle %s!\n", _name_get(o));
70} 70}
71 71
72/* here just to keep our example's window size and background image's 72/* here just to keep our example's window size and background image's
@@ -93,7 +93,7 @@ _on_keydown(void *data EINA_UNUSED,
93 93
94 if (strcmp(ev->key, "h") == 0) /* print help */ 94 if (strcmp(ev->key, "h") == 0) /* print help */
95 { 95 {
96 fprintf(stdout, commands); 96 printf(commands);
97 return; 97 return;
98 } 98 }
99 99
@@ -103,24 +103,24 @@ _on_keydown(void *data EINA_UNUSED,
103 { 103 {
104 Evas_Object *rect; 104 Evas_Object *rect;
105 105
106 fprintf(stdout, "Order of stacking, from top to bottom, is: "); 106 printf("Order of stacking, from top to bottom, is: ");
107 107
108 rect = evas_object_top_get(evas); 108 rect = evas_object_top_get(evas);
109 fprintf(stdout, "%s", _name_get(rect)); 109 printf("%s", _name_get(rect));
110 110
111 rect = evas_object_below_get(rect); 111 rect = evas_object_below_get(rect);
112 while (rect) 112 while (rect)
113 { 113 {
114 fprintf(stdout, ", %s", _name_get(rect)); 114 printf(", %s", _name_get(rect));
115 rect = evas_object_below_get(rect); 115 rect = evas_object_below_get(rect);
116 } 116 }
117 117
118 fprintf(stdout, ".\n"); 118 printf(".\n");
119 119
120 fprintf(stdout, "Current target rectangle is %s\n", 120 printf("Current target rectangle is %s\n",
121 _name_get(d.rects[d.cur_rect])); 121 _name_get(d.rects[d.cur_rect]));
122 122
123 fprintf(stdout, "Background rectangle's layer is %d\n", 123 printf("Background rectangle's layer is %d\n",
124 evas_object_layer_get(d.bg)); 124 evas_object_layer_get(d.bg));
125 125
126 return; 126 return;
@@ -131,7 +131,7 @@ _on_keydown(void *data EINA_UNUSED,
131 d.cur_layer = (d.cur_layer + 1) % 3; 131 d.cur_layer = (d.cur_layer + 1) % 3;
132 evas_object_layer_set(d.bg, d.layers[d.cur_layer]); 132 evas_object_layer_set(d.bg, d.layers[d.cur_layer]);
133 133
134 fprintf(stdout, "Changing background rectangle's layer to %d\n", 134 printf("Changing background rectangle's layer to %d\n",
135 d.layers[d.cur_layer]); 135 d.layers[d.cur_layer]);
136 return; 136 return;
137 } 137 }
@@ -140,7 +140,7 @@ _on_keydown(void *data EINA_UNUSED,
140 { 140 {
141 d.cur_rect = (d.cur_rect + 1) % 3; 141 d.cur_rect = (d.cur_rect + 1) % 3;
142 142
143 fprintf(stdout, "Changing target rectangle to the %s one\n", 143 printf("Changing target rectangle to the %s one\n",
144 _name_get(d.rects[d.cur_rect])); 144 _name_get(d.rects[d.cur_rect]));
145 return; 145 return;
146 } 146 }
@@ -151,11 +151,11 @@ _on_keydown(void *data EINA_UNUSED,
151 151
152 evas_object_raise(d.rects[d.cur_rect]); 152 evas_object_raise(d.rects[d.cur_rect]);
153 153
154 fprintf(stdout, "%s rectangle was re-stacked to the top if its layer\n", 154 printf("%s rectangle was re-stacked to the top if its layer\n",
155 name); 155 name);
156 156
157 neighbour = evas_object_below_get(d.rects[d.cur_rect]); 157 neighbour = evas_object_below_get(d.rects[d.cur_rect]);
158 fprintf(stdout, "Below of %s rect is %s\n", name, 158 printf("Below of %s rect is %s\n", name,
159 neighbour ? _name_get(neighbour) : "no object"); 159 neighbour ? _name_get(neighbour) : "no object");
160 return; 160 return;
161 } 161 }
@@ -166,12 +166,12 @@ _on_keydown(void *data EINA_UNUSED,
166 166
167 evas_object_lower(d.rects[d.cur_rect]); 167 evas_object_lower(d.rects[d.cur_rect]);
168 168
169 fprintf(stdout, 169 printf(
170 "%s rectangle was re-stacked to the bottom if its layer\n", 170 "%s rectangle was re-stacked to the bottom if its layer\n",
171 name); 171 name);
172 172
173 neighbour = evas_object_below_get(d.rects[d.cur_rect]); 173 neighbour = evas_object_below_get(d.rects[d.cur_rect]);
174 fprintf(stdout, "Below of %s rect is %s\n", name, 174 printf("Below of %s rect is %s\n", name,
175 neighbour ? _name_get(neighbour) : "no object"); 175 neighbour ? _name_get(neighbour) : "no object");
176 return; 176 return;
177 } 177 }
@@ -182,7 +182,7 @@ _on_keydown(void *data EINA_UNUSED,
182 182
183 evas_object_pass_events_set(d.rects[d.cur_rect], !pass); 183 evas_object_pass_events_set(d.rects[d.cur_rect], !pass);
184 184
185 fprintf(stdout, "%s rectangle is now set to%s pass (ignore) events\n", 185 printf("%s rectangle is now set to%s pass (ignore) events\n",
186 name, pass ? " NOT" : ""); 186 name, pass ? " NOT" : "");
187 187
188 return; 188 return;
@@ -194,7 +194,7 @@ _on_keydown(void *data EINA_UNUSED,
194 194
195 evas_object_repeat_events_set(d.rects[d.cur_rect], !repeat); 195 evas_object_repeat_events_set(d.rects[d.cur_rect], !repeat);
196 196
197 fprintf(stdout, "%s rectangle is now set to%s repeat events\n", 197 printf("%s rectangle is now set to%s repeat events\n",
198 name, repeat ? " NOT" : ""); 198 name, repeat ? " NOT" : "");
199 199
200 return; 200 return;
@@ -210,14 +210,14 @@ _on_keydown(void *data EINA_UNUSED,
210 210
211 evas_object_stack_above(d.rects[d.cur_rect], neighbour); 211 evas_object_stack_above(d.rects[d.cur_rect], neighbour);
212 212
213 fprintf(stdout, "%s rectangle was re-stacked one level above\n", name); 213 printf("%s rectangle was re-stacked one level above\n", name);
214 214
215 neighbour = evas_object_above_get(d.rects[d.cur_rect]); 215 neighbour = evas_object_above_get(d.rects[d.cur_rect]);
216 fprintf(stdout, "Above of %s rect is %s\n", name, 216 printf("Above of %s rect is %s\n", name,
217 neighbour ? _name_get(neighbour) : "no object"); 217 neighbour ? _name_get(neighbour) : "no object");
218 218
219 neighbour = evas_object_below_get(d.rects[d.cur_rect]); 219 neighbour = evas_object_below_get(d.rects[d.cur_rect]);
220 fprintf(stdout, "Below of %s rect is %s\n", name, 220 printf("Below of %s rect is %s\n", name,
221 neighbour ? _name_get(neighbour) : "no object"); 221 neighbour ? _name_get(neighbour) : "no object");
222 return; 222 return;
223 } 223 }
@@ -232,15 +232,15 @@ _on_keydown(void *data EINA_UNUSED,
232 232
233 evas_object_stack_below(d.rects[d.cur_rect], neighbour); 233 evas_object_stack_below(d.rects[d.cur_rect], neighbour);
234 234
235 fprintf(stdout, "%s rectangle was re-stacked one level below\n", name); 235 printf("%s rectangle was re-stacked one level below\n", name);
236 236
237 neighbour = evas_object_above_get(d.rects[d.cur_rect]); 237 neighbour = evas_object_above_get(d.rects[d.cur_rect]);
238 fprintf(stdout, "Above of %s rect is %s\n", name, 238 printf("Above of %s rect is %s\n", name,
239 neighbour ? _name_get(neighbour) : "no object"); 239 neighbour ? _name_get(neighbour) : "no object");
240 240
241 neighbour = evas_object_below_get(d.rects[d.cur_rect]); 241 neighbour = evas_object_below_get(d.rects[d.cur_rect]);
242 242
243 fprintf(stdout, "Below of %s rect is %s\n", name, 243 printf("Below of %s rect is %s\n", name,
244 neighbour ? _name_get(neighbour) : "no object"); 244 neighbour ? _name_get(neighbour) : "no object");
245 return; 245 return;
246 } 246 }
@@ -322,7 +322,7 @@ main(void)
322 evas_object_event_callback_add( 322 evas_object_event_callback_add(
323 d.rects[0], EVAS_CALLBACK_MOUSE_DOWN, _on_mouse_down, NULL); 323 d.rects[0], EVAS_CALLBACK_MOUSE_DOWN, _on_mouse_down, NULL);
324 324
325 fprintf(stdout, commands); 325 printf(commands);
326 ecore_main_loop_begin(); 326 ecore_main_loop_begin();
327 327
328 ecore_evas_shutdown(); 328 ecore_evas_shutdown();