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.c31
1 files changed, 15 insertions, 16 deletions
diff --git a/src/examples/evas/evas-stacking.c b/src/examples/evas/evas-stacking.c
index 523d44e..50df01d 100644
--- a/src/examples/evas/evas-stacking.c
+++ b/src/examples/evas/evas-stacking.c
@@ -117,10 +117,10 @@ _on_keydown(void *data EINA_UNUSED,
117 printf(".\n"); 117 printf(".\n");
118 118
119 printf("Current target rectangle is %s\n", 119 printf("Current target rectangle is %s\n",
120 _name_get(d.rects[d.cur_rect])); 120 _name_get(d.rects[d.cur_rect]));
121 121
122 printf("Background rectangle's layer is %d\n", 122 printf("Background rectangle's layer is %d\n",
123 evas_object_layer_get(d.bg)); 123 evas_object_layer_get(d.bg));
124 124
125 return; 125 return;
126 } 126 }
@@ -131,7 +131,7 @@ _on_keydown(void *data EINA_UNUSED,
131 evas_object_layer_set(d.bg, d.layers[d.cur_layer]); 131 evas_object_layer_set(d.bg, d.layers[d.cur_layer]);
132 132
133 printf("Changing background rectangle's layer to %d\n", 133 printf("Changing background rectangle's layer to %d\n",
134 d.layers[d.cur_layer]); 134 d.layers[d.cur_layer]);
135 return; 135 return;
136 } 136 }
137 137
@@ -140,7 +140,7 @@ _on_keydown(void *data EINA_UNUSED,
140 d.cur_rect = (d.cur_rect + 1) % 3; 140 d.cur_rect = (d.cur_rect + 1) % 3;
141 141
142 printf("Changing target rectangle to the %s one\n", 142 printf("Changing target rectangle to the %s one\n",
143 _name_get(d.rects[d.cur_rect])); 143 _name_get(d.rects[d.cur_rect]));
144 return; 144 return;
145 } 145 }
146 146
@@ -151,11 +151,11 @@ _on_keydown(void *data EINA_UNUSED,
151 evas_object_raise(d.rects[d.cur_rect]); 151 evas_object_raise(d.rects[d.cur_rect]);
152 152
153 printf("%s rectangle was re-stacked to the top if its layer\n", 153 printf("%s rectangle was re-stacked to the top if its layer\n",
154 name); 154 name);
155 155
156 neighbour = evas_object_below_get(d.rects[d.cur_rect]); 156 neighbour = evas_object_below_get(d.rects[d.cur_rect]);
157 printf("Below of %s rect is %s\n", name, 157 printf("Below of %s rect is %s\n", name,
158 neighbour ? _name_get(neighbour) : "no object"); 158 neighbour ? _name_get(neighbour) : "no object");
159 return; 159 return;
160 } 160 }
161 161
@@ -165,13 +165,12 @@ _on_keydown(void *data EINA_UNUSED,
165 165
166 evas_object_lower(d.rects[d.cur_rect]); 166 evas_object_lower(d.rects[d.cur_rect]);
167 167
168 printf( 168 printf("%s rectangle was re-stacked to the bottom if its layer\n",
169 "%s rectangle was re-stacked to the bottom if its layer\n", 169 name);
170 name);
171 170
172 neighbour = evas_object_below_get(d.rects[d.cur_rect]); 171 neighbour = evas_object_below_get(d.rects[d.cur_rect]);
173 printf("Below of %s rect is %s\n", name, 172 printf("Below of %s rect is %s\n", name,
174 neighbour ? _name_get(neighbour) : "no object"); 173 neighbour ? _name_get(neighbour) : "no object");
175 return; 174 return;
176 } 175 }
177 176
@@ -182,7 +181,7 @@ _on_keydown(void *data EINA_UNUSED,
182 evas_object_pass_events_set(d.rects[d.cur_rect], !pass); 181 evas_object_pass_events_set(d.rects[d.cur_rect], !pass);
183 182
184 printf("%s rectangle is now set to%s pass (ignore) events\n", 183 printf("%s rectangle is now set to%s pass (ignore) events\n",
185 name, pass ? " NOT" : ""); 184 name, pass ? " NOT" : "");
186 185
187 return; 186 return;
188 } 187 }
@@ -194,7 +193,7 @@ _on_keydown(void *data EINA_UNUSED,
194 evas_object_repeat_events_set(d.rects[d.cur_rect], !repeat); 193 evas_object_repeat_events_set(d.rects[d.cur_rect], !repeat);
195 194
196 printf("%s rectangle is now set to%s repeat events\n", 195 printf("%s rectangle is now set to%s repeat events\n",
197 name, repeat ? " NOT" : ""); 196 name, repeat ? " NOT" : "");
198 197
199 return; 198 return;
200 } 199 }
@@ -213,11 +212,11 @@ _on_keydown(void *data EINA_UNUSED,
213 212
214 neighbour = evas_object_above_get(d.rects[d.cur_rect]); 213 neighbour = evas_object_above_get(d.rects[d.cur_rect]);
215 printf("Above of %s rect is %s\n", name, 214 printf("Above of %s rect is %s\n", name,
216 neighbour ? _name_get(neighbour) : "no object"); 215 neighbour ? _name_get(neighbour) : "no object");
217 216
218 neighbour = evas_object_below_get(d.rects[d.cur_rect]); 217 neighbour = evas_object_below_get(d.rects[d.cur_rect]);
219 printf("Below of %s rect is %s\n", name, 218 printf("Below of %s rect is %s\n", name,
220 neighbour ? _name_get(neighbour) : "no object"); 219 neighbour ? _name_get(neighbour) : "no object");
221 return; 220 return;
222 } 221 }
223 222
@@ -235,12 +234,12 @@ _on_keydown(void *data EINA_UNUSED,
235 234
236 neighbour = evas_object_above_get(d.rects[d.cur_rect]); 235 neighbour = evas_object_above_get(d.rects[d.cur_rect]);
237 printf("Above of %s rect is %s\n", name, 236 printf("Above of %s rect is %s\n", name,
238 neighbour ? _name_get(neighbour) : "no object"); 237 neighbour ? _name_get(neighbour) : "no object");
239 238
240 neighbour = evas_object_below_get(d.rects[d.cur_rect]); 239 neighbour = evas_object_below_get(d.rects[d.cur_rect]);
241 240
242 printf("Below of %s rect is %s\n", name, 241 printf("Below of %s rect is %s\n", name,
243 neighbour ? _name_get(neighbour) : "no object"); 242 neighbour ? _name_get(neighbour) : "no object");
244 return; 243 return;
245 } 244 }
246} 245}