summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_bg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/elementary/test_bg.c')
-rw-r--r--src/bin/elementary/test_bg.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/bin/elementary/test_bg.c b/src/bin/elementary/test_bg.c
index 5ebf59f..7ec6fe6 100644
--- a/src/bin/elementary/test_bg.c
+++ b/src/bin/elementary/test_bg.c
@@ -382,11 +382,16 @@ static void
382_cb_check_changed_scale_type(void *data, const Efl_Event *ev) 382_cb_check_changed_scale_type(void *data, const Efl_Event *ev)
383{ 383{
384 Evas_Object *o_bg = data; 384 Evas_Object *o_bg = data;
385 int r, g, b, a;
385 386
386 if (efl_ui_check_selected_get(ev->object)) 387 if (efl_ui_check_selected_get(ev->object))
387 efl_gfx_color_set(o_bg, 255, 128, 128, 255); 388 efl_gfx_color_set(o_bg, 255, 128, 128, 255);
388 else 389 else
389 efl_gfx_color_set(o_bg, 0, 0, 0, 0); 390 efl_gfx_color_set(o_bg, 0, 0, 0, 0);
391
392 efl_gfx_color_get(o_bg, &r, &g, &b, &a);
393 printf("bg color: %d %d %d %d\n", r, g, b, a);
394 fflush(stdout);
390} 395}
391 396
392void 397void
@@ -431,7 +436,7 @@ test_bg_scale_type(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
431 efl_gfx_size_hint_weight_set(efl_added, EFL_GFX_SIZE_HINT_EXPAND, 0.0), 436 efl_gfx_size_hint_weight_set(efl_added, EFL_GFX_SIZE_HINT_EXPAND, 0.0),
432 efl_event_callback_add(efl_added, EFL_UI_RADIO_EVENT_CHANGED, _cb_radio_changed_scale_type, o_bg), 437 efl_event_callback_add(efl_added, EFL_UI_RADIO_EVENT_CHANGED, _cb_radio_changed_scale_type, o_bg),
433 efl_pack(hbox, efl_added)); 438 efl_pack(hbox, efl_added));
434 439
435 rd = efl_add(EFL_UI_RADIO_CLASS, hbox, 440 rd = efl_add(EFL_UI_RADIO_CLASS, hbox,
436 efl_ui_radio_state_value_set(efl_added, EFL_UI_IMAGE_SCALE_TYPE_FIT_INSIDE), 441 efl_ui_radio_state_value_set(efl_added, EFL_UI_IMAGE_SCALE_TYPE_FIT_INSIDE),
437 efl_ui_radio_group_add(efl_added, rdg), 442 efl_ui_radio_group_add(efl_added, rdg),
@@ -440,7 +445,7 @@ test_bg_scale_type(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
440 efl_event_callback_add(efl_added, EFL_UI_RADIO_EVENT_CHANGED, _cb_radio_changed_scale_type, o_bg), 445 efl_event_callback_add(efl_added, EFL_UI_RADIO_EVENT_CHANGED, _cb_radio_changed_scale_type, o_bg),
441 efl_pack(hbox, efl_added)); 446 efl_pack(hbox, efl_added));
442 447
443 448
444 rd = efl_add(EFL_UI_RADIO_CLASS, hbox, 449 rd = efl_add(EFL_UI_RADIO_CLASS, hbox,
445 efl_ui_radio_state_value_set(efl_added, EFL_UI_IMAGE_SCALE_TYPE_FIT_OUTSIDE), 450 efl_ui_radio_state_value_set(efl_added, EFL_UI_IMAGE_SCALE_TYPE_FIT_OUTSIDE),
446 efl_ui_radio_group_add(efl_added, rdg), 451 efl_ui_radio_group_add(efl_added, rdg),
@@ -448,7 +453,7 @@ test_bg_scale_type(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e
448 efl_gfx_size_hint_weight_set(efl_added, EFL_GFX_SIZE_HINT_EXPAND, 0.0), 453 efl_gfx_size_hint_weight_set(efl_added, EFL_GFX_SIZE_HINT_EXPAND, 0.0),
449 efl_event_callback_add(efl_added, EFL_UI_RADIO_EVENT_CHANGED, _cb_radio_changed_scale_type, o_bg), 454 efl_event_callback_add(efl_added, EFL_UI_RADIO_EVENT_CHANGED, _cb_radio_changed_scale_type, o_bg),
450 efl_pack(hbox, efl_added)); 455 efl_pack(hbox, efl_added));
451 456
452 rd = efl_add(EFL_UI_RADIO_CLASS, hbox, 457 rd = efl_add(EFL_UI_RADIO_CLASS, hbox,
453 efl_ui_radio_state_value_set(efl_added, EFL_UI_IMAGE_SCALE_TYPE_NONE), 458 efl_ui_radio_state_value_set(efl_added, EFL_UI_IMAGE_SCALE_TYPE_NONE),
454 efl_ui_radio_group_add(efl_added, rdg), 459 efl_ui_radio_group_add(efl_added, rdg),