summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2019-11-12 13:46:20 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-11-12 14:33:13 +0100
commit246485ca928d26144ca3188d895bb7b44a73d3ad (patch)
treeb9c981b1d3e5098c60bebfde02379f9ee1c13659 /src/bin
parenta5daa2b72fa725c6a8129f990351f18b694ef357 (diff)
downloadefl-246485ca928d26144ca3188d895bb7b44a73d3ad.tar.gz
efl_ui_relative_container: rename relative_layout
Summary: Also, Rename parameter name `target` to `base`. Rename parameter name `relative` to `relative_position`. ref T8380 Depends On D10639 Test Plan: ninja test Reviewers: woohyun, segfaultxavi Reviewed By: segfaultxavi Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8380 Differential Revision: https://phab.enlightenment.org/D10640
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/elementary/meson.build2
-rw-r--r--src/bin/elementary/test.c4
-rw-r--r--src/bin/elementary/test_ui_relative_container.c (renamed from src/bin/elementary/test_ui_relative_layout.c)50
3 files changed, 28 insertions, 28 deletions
diff --git a/src/bin/elementary/meson.build b/src/bin/elementary/meson.build
index 502573c49e..342e184fb1 100644
--- a/src/bin/elementary/meson.build
+++ b/src/bin/elementary/meson.build
@@ -155,7 +155,7 @@ elementary_test_src = [
'test_win_indicator.c',
'test_gesture_framework.c',
'test_ui_tab_pager.c',
- 'test_ui_relative_layout.c',
+ 'test_ui_relative_container.c',
'test_ui_collection.c',
'test_ui_collection_view.c',
'test_ui_items.c',
diff --git a/src/bin/elementary/test.c b/src/bin/elementary/test.c
index 8259ed8b0c..a78850aa31 100644
--- a/src/bin/elementary/test.c
+++ b/src/bin/elementary/test.c
@@ -397,7 +397,7 @@ void test_ui_spotlight_stack(void *data, Evas_Object *obj, void *event_info);
void test_ui_spotlight_plain(void *data, Evas_Object *obj, void *event_info);
void test_ui_spotlight_scroll(void *data, Evas_Object *obj, void *event_info);
-void test_ui_relative_layout(void *data, Evas_Object *obj, void *event_info);
+void test_ui_relative_container(void *data, Evas_Object *obj, void *event_info);
void test_efl_ui_radio(void *data, Evas_Object *obj, void *event_info);
void test_efl_ui_collection_list(void *data, Evas_Object *obj, void *event_info);
void test_efl_ui_collection_grid(void *data, Evas_Object *obj, void *event_info);
@@ -908,7 +908,7 @@ add_tests:
ADD_TEST_EO(NULL, "Containers", "Efl.Ui.Table", test_ui_table);
ADD_TEST_EO(NULL, "Containers", "Efl.Ui.Table (Linear API)", test_ui_table_linear);
ADD_TEST_EO(NULL, "Containers", "Efl.Ui.Table_Static", test_ui_table_static);
- ADD_TEST_EO(NULL, "Containers", "Efl.Ui.Relative_Layout", test_ui_relative_layout);
+ ADD_TEST_EO(NULL, "Containers", "Efl.Ui.Relative_Container", test_ui_relative_container);
ADD_TEST_EO(NULL, "Containers", "Efl.Ui.Collection List", test_efl_ui_collection_list);
ADD_TEST_EO(NULL, "Containers", "Efl.Ui.Collection Grid", test_efl_ui_collection_grid);
ADD_TEST_EO(NULL, "Containers", "Efl.Ui.Collection_View", test_efl_ui_collection_view);
diff --git a/src/bin/elementary/test_ui_relative_layout.c b/src/bin/elementary/test_ui_relative_container.c
index 40d9891725..40e2c1a05f 100644
--- a/src/bin/elementary/test_ui_relative_layout.c
+++ b/src/bin/elementary/test_ui_relative_container.c
@@ -57,20 +57,20 @@ _btn_clicked_to_cb(void *data, const Efl_Event *event)
switch (opt)
{
case LEFT:
- efl_ui_relative_layout_relation_left_get(layout, btn, NULL, &relative);
- efl_ui_relative_layout_relation_left_set(layout, btn, to, relative);
+ efl_ui_relative_container_relation_left_get(layout, btn, NULL, &relative);
+ efl_ui_relative_container_relation_left_set(layout, btn, to, relative);
break;
case RIGHT:
- efl_ui_relative_layout_relation_right_get(layout, btn, NULL, &relative);
- efl_ui_relative_layout_relation_right_set(layout, btn, to, relative);
+ efl_ui_relative_container_relation_right_get(layout, btn, NULL, &relative);
+ efl_ui_relative_container_relation_right_set(layout, btn, to, relative);
break;
case TOP:
- efl_ui_relative_layout_relation_top_get(layout, btn, NULL, &relative);
- efl_ui_relative_layout_relation_top_set(layout, btn, to, relative);
+ efl_ui_relative_container_relation_top_get(layout, btn, NULL, &relative);
+ efl_ui_relative_container_relation_top_set(layout, btn, to, relative);
break;
case BOTTOM:
- efl_ui_relative_layout_relation_bottom_get(layout, btn, NULL, &relative);
- efl_ui_relative_layout_relation_bottom_set(layout, btn, to, relative);
+ efl_ui_relative_container_relation_bottom_get(layout, btn, NULL, &relative);
+ efl_ui_relative_container_relation_bottom_set(layout, btn, to, relative);
break;
}
efl_text_set(obj, ((to == layout) ? "parent" : (char *)efl_text_get(to)));
@@ -89,16 +89,16 @@ _slider_changed_relative_cb(void *data, const Efl_Event *event)
switch (opt)
{
case LEFT:
- efl_ui_relative_layout_relation_left_set(layout, btn, NULL, val);
+ efl_ui_relative_container_relation_left_set(layout, btn, NULL, val);
break;
case RIGHT:
- efl_ui_relative_layout_relation_right_set(layout, btn, NULL, val);
+ efl_ui_relative_container_relation_right_set(layout, btn, NULL, val);
break;
case TOP:
- efl_ui_relative_layout_relation_top_set(layout, btn, NULL, val);
+ efl_ui_relative_container_relation_top_set(layout, btn, NULL, val);
break;
case BOTTOM:
- efl_ui_relative_layout_relation_bottom_set(layout, btn, NULL, val);
+ efl_ui_relative_container_relation_bottom_set(layout, btn, NULL, val);
break;
}
}
@@ -131,19 +131,19 @@ _setter_add(Eo *vbox, Eo *btn, Options option)
{
case LEFT:
text = "left";
- efl_ui_relative_layout_relation_left_get(layout, btn, &to, &relative);
+ efl_ui_relative_container_relation_left_get(layout, btn, &to, &relative);
break;
case RIGHT:
text = "right";
- efl_ui_relative_layout_relation_right_get(layout, btn, &to, &relative);
+ efl_ui_relative_container_relation_right_get(layout, btn, &to, &relative);
break;
case TOP:
text = "top";
- efl_ui_relative_layout_relation_top_get(layout, btn, &to, &relative);
+ efl_ui_relative_container_relation_top_get(layout, btn, &to, &relative);
break;
case BOTTOM:
text = "bottom";
- efl_ui_relative_layout_relation_bottom_get(layout, btn, &to, &relative);
+ efl_ui_relative_container_relation_bottom_get(layout, btn, &to, &relative);
break;
}
btn_text = ((to == layout) ? "parent" : (char *)efl_text_get(to));
@@ -271,12 +271,12 @@ _button_frame_add(Eo *box, Eo *btn)
}
void
-test_ui_relative_layout(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
+test_ui_relative_container(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
Eo *win, *vbox, *f, *hbox;
win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(),
- efl_text_set(efl_added, "Efl.Ui.Relative_Layout"),
+ efl_text_set(efl_added, "Efl.Ui.Relative_Container"),
efl_ui_win_autodel_set(efl_added, EINA_TRUE));
vbox = efl_add(EFL_UI_BOX_CLASS, win,
@@ -301,26 +301,26 @@ test_ui_relative_layout(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, vo
efl_text_set(efl_added, "Contents"),
efl_pack(vbox, efl_added));
- layout = efl_add(EFL_UI_RELATIVE_LAYOUT_CLASS, f,
+ layout = efl_add(EFL_UI_RELATIVE_CONTAINER_CLASS, f,
efl_content_set(f, efl_added));
btn1 = efl_add(EFL_UI_BUTTON_CLASS, layout,
efl_text_set(efl_added, "button1"),
efl_gfx_hint_align_set(efl_added, 0.0, 0.0),
efl_event_callback_add(efl_added, EFL_INPUT_EVENT_CLICKED, _btn_color_clicked_cb, layout),
- efl_ui_relative_layout_relation_right_set(layout, efl_added, layout, 0.0),
- efl_ui_relative_layout_relation_bottom_set(layout, efl_added, layout, 0.0));
+ efl_ui_relative_container_relation_right_set(layout, efl_added, layout, 0.0),
+ efl_ui_relative_container_relation_bottom_set(layout, efl_added, layout, 0.0));
btn2 = efl_add(EFL_UI_BUTTON_CLASS, layout,
efl_text_set(efl_added, "button2"),
efl_gfx_hint_align_set(efl_added, 0.5, 0.0),
- efl_ui_relative_layout_relation_left_set(layout, efl_added, btn1, 1.0),
- efl_ui_relative_layout_relation_bottom_set(layout, efl_added, layout, 0.0));
+ efl_ui_relative_container_relation_left_set(layout, efl_added, btn1, 1.0),
+ efl_ui_relative_container_relation_bottom_set(layout, efl_added, layout, 0.0));
btn3 = efl_add(EFL_UI_BUTTON_CLASS, layout,
efl_text_set(efl_added, "button3"),
- efl_ui_relative_layout_relation_left_set(layout, efl_added, btn2, 0.0),
- efl_ui_relative_layout_relation_top_set(layout, efl_added, btn2, 1.0));
+ efl_ui_relative_container_relation_left_set(layout, efl_added, btn2, 0.0),
+ efl_ui_relative_container_relation_top_set(layout, efl_added, btn2, 1.0));
_button_frame_add(hbox, btn1);
_button_frame_add(hbox, btn2);