summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-02-02 10:20:16 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-02-02 10:20:16 +0900
commit57f04c5c28cbe21801e70eb4d61e535d498326ed (patch)
treef6351435a99703e8da6714e4540d337a8bae8791 /src/bin
parentaeda6256fd66e930cc4bc4d9d7995b73afd9a534 (diff)
add tests to window moves.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/test_win_state.c44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/bin/test_win_state.c b/src/bin/test_win_state.c
index c2f7c0d80..199bbdf0a 100644
--- a/src/bin/test_win_state.c
+++ b/src/bin/test_win_state.c
@@ -169,6 +169,18 @@ _close_win(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSE
169 evas_object_del(data); 169 evas_object_del(data);
170} 170}
171 171
172static void
173_move_20_20(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
174{
175 evas_object_move(data, 20, 20);
176}
177
178static void
179_move_0_0(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
180{
181 evas_object_move(data, 0, 0);
182}
183
172void 184void
173test_win_state(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 185test_win_state(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
174{ 186{
@@ -239,6 +251,14 @@ test_win_state(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
239 elm_box_pack_end(bx2, bt); 251 elm_box_pack_end(bx2, bt);
240 evas_object_show(bt); 252 evas_object_show(bt);
241 253
254 bt = elm_button_add(win);
255 elm_object_text_set(bt, "Move 20 20");
256 evas_object_smart_callback_add(bt, "clicked", _move_20_20, win);
257 evas_object_size_hint_fill_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
258 evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
259 elm_box_pack_end(bx2, bt);
260 evas_object_show(bt);
261
242 elm_box_pack_end(bx, bx2); 262 elm_box_pack_end(bx, bx2);
243 evas_object_show(bx2); 263 evas_object_show(bx2);
244 264
@@ -328,6 +348,14 @@ test_win_state(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
328 elm_box_pack_end(bx2, bt); 348 elm_box_pack_end(bx2, bt);
329 evas_object_show(bt); 349 evas_object_show(bt);
330 350
351 bt = elm_button_add(win);
352 elm_object_text_set(bt, "Move 0 0");
353 evas_object_smart_callback_add(bt, "clicked", _move_0_0, win);
354 evas_object_size_hint_fill_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
355 evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
356 elm_box_pack_end(bx2, bt);
357 evas_object_show(bt);
358
331 elm_box_pack_end(bx, bx2); 359 elm_box_pack_end(bx, bx2);
332 evas_object_show(bx2); 360 evas_object_show(bx2);
333 361
@@ -390,6 +418,14 @@ test_win_state2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *even
390 elm_box_pack_end(bx2, bt); 418 elm_box_pack_end(bx2, bt);
391 evas_object_show(bt); 419 evas_object_show(bt);
392 420
421 bt = elm_button_add(win);
422 elm_object_text_set(bt, "Move 20 20");
423 evas_object_smart_callback_add(bt, "clicked", _move_20_20, win);
424 evas_object_size_hint_fill_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
425 evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
426 elm_box_pack_end(bx2, bt);
427 evas_object_show(bt);
428
393 elm_box_pack_end(bx, bx2); 429 elm_box_pack_end(bx, bx2);
394 evas_object_show(bx2); 430 evas_object_show(bx2);
395 431
@@ -461,6 +497,14 @@ test_win_state2(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *even
461 elm_box_pack_end(bx2, bt); 497 elm_box_pack_end(bx2, bt);
462 evas_object_show(bt); 498 evas_object_show(bt);
463 499
500 bt = elm_button_add(win);
501 elm_object_text_set(bt, "Move 0 0");
502 evas_object_smart_callback_add(bt, "clicked", _move_0_0, win);
503 evas_object_size_hint_fill_set(bt, EVAS_HINT_FILL, EVAS_HINT_FILL);
504 evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
505 elm_box_pack_end(bx2, bt);
506 evas_object_show(bt);
507
464 elm_box_pack_end(bx, bx2); 508 elm_box_pack_end(bx, bx2);
465 evas_object_show(bx2); 509 evas_object_show(bx2);
466 510