summaryrefslogtreecommitdiff
path: root/src/examples
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/examples
parenta5daa2b72fa725c6a8129f990351f18b694ef357 (diff)
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/examples')
-rw-r--r--src/examples/elementary/.gitignore4
-rw-r--r--src/examples/elementary/efl_ui_relative_container_example_01.c (renamed from src/examples/elementary/efl_ui_relative_layout_example_01.c)18
-rw-r--r--src/examples/elementary/efl_ui_relative_container_example_02.c (renamed from src/examples/elementary/efl_ui_relative_layout_example_02.c)14
3 files changed, 18 insertions, 18 deletions
diff --git a/src/examples/elementary/.gitignore b/src/examples/elementary/.gitignore
index 06e20555aa..89ec3ec650 100644
--- a/src/examples/elementary/.gitignore
+++ b/src/examples/elementary/.gitignore
@@ -169,5 +169,5 @@
169/efl_ui_list_view_example_3 169/efl_ui_list_view_example_3
170/efl_ui_theme_example_01 170/efl_ui_theme_example_01
171/efl_ui_theme_example_02 171/efl_ui_theme_example_02
172/efl_ui_relative_layout_example_01 172/efl_ui_relative_container_example_01
173/efl_ui_relative_layout_example_02 173/efl_ui_relative_container_example_02
diff --git a/src/examples/elementary/efl_ui_relative_layout_example_01.c b/src/examples/elementary/efl_ui_relative_container_example_01.c
index 77453cf7ce..f7bcb64194 100644
--- a/src/examples/elementary/efl_ui_relative_layout_example_01.c
+++ b/src/examples/elementary/efl_ui_relative_container_example_01.c
@@ -1,4 +1,4 @@
1// gcc -o efl_ui_relative_layout_example_01 efl_ui_relative_layout_example_01.c `pkg-config --cflags --libs elementary` 1// gcc -o efl_ui_relative_container_example_01 efl_ui_relative_container_example_01.c `pkg-config --cflags --libs elementary`
2 2
3#ifdef HAVE_CONFIG_H 3#ifdef HAVE_CONFIG_H
4#include "elementary_config.h" 4#include "elementary_config.h"
@@ -16,10 +16,10 @@ elm_main(int argc, char **argv)
16 Eo *win, *layout, *btn1, *btn2, *btn3; 16 Eo *win, *layout, *btn1, *btn2, *btn3;
17 17
18 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 18 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(),
19 efl_text_set(efl_added, "Efl.Ui.Relative_Layout"), 19 efl_text_set(efl_added, "Efl.Ui.Relative_Container"),
20 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 20 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
21 21
22 layout = efl_add(EFL_UI_RELATIVE_LAYOUT_CLASS, win, 22 layout = efl_add(EFL_UI_RELATIVE_CONTAINER_CLASS, win,
23 efl_content_set(win, efl_added)); 23 efl_content_set(win, efl_added));
24 24
25 btn1 = efl_add(EFL_UI_BUTTON_CLASS, layout, 25 btn1 = efl_add(EFL_UI_BUTTON_CLASS, layout,
@@ -27,20 +27,20 @@ elm_main(int argc, char **argv)
27 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 100)), 27 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(100, 100)),
28 efl_gfx_hint_align_set(efl_added, 0, 0), 28 efl_gfx_hint_align_set(efl_added, 0, 0),
29 efl_gfx_hint_margin_set(efl_added, 10, 30, 20, 40), 29 efl_gfx_hint_margin_set(efl_added, 10, 30, 20, 40),
30 efl_ui_relative_layout_relation_right_set(layout, efl_added, layout, 0.0), 30 efl_ui_relative_container_relation_right_set(layout, efl_added, layout, 0.0),
31 efl_ui_relative_layout_relation_bottom_set(layout, efl_added, layout, 0.0)); 31 efl_ui_relative_container_relation_bottom_set(layout, efl_added, layout, 0.0));
32 32
33 btn2 = efl_add(EFL_UI_BUTTON_CLASS, layout, 33 btn2 = efl_add(EFL_UI_BUTTON_CLASS, layout,
34 efl_text_set(efl_added, "btn2"), 34 efl_text_set(efl_added, "btn2"),
35 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(0, 200)), 35 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(0, 200)),
36 efl_gfx_hint_align_set(efl_added, 0.5, 0), 36 efl_gfx_hint_align_set(efl_added, 0.5, 0),
37 efl_ui_relative_layout_relation_left_set(layout, efl_added, btn1, 1.0), 37 efl_ui_relative_container_relation_left_set(layout, efl_added, btn1, 1.0),
38 efl_ui_relative_layout_relation_bottom_set(layout, efl_added, layout, 0.0)); 38 efl_ui_relative_container_relation_bottom_set(layout, efl_added, layout, 0.0));
39 39
40 btn3 = efl_add(EFL_UI_BUTTON_CLASS, layout, 40 btn3 = efl_add(EFL_UI_BUTTON_CLASS, layout,
41 efl_text_set(efl_added, "btn3"), 41 efl_text_set(efl_added, "btn3"),
42 efl_ui_relative_layout_relation_left_set(layout, efl_added, btn2, 0.0), 42 efl_ui_relative_container_relation_left_set(layout, efl_added, btn2, 0.0),
43 efl_ui_relative_layout_relation_top_set(layout, efl_added, btn2, 1.0)); 43 efl_ui_relative_container_relation_top_set(layout, efl_added, btn2, 1.0));
44 44
45 efl_gfx_entity_size_set(win, EINA_SIZE2D(300, 300)); 45 efl_gfx_entity_size_set(win, EINA_SIZE2D(300, 300));
46 46
diff --git a/src/examples/elementary/efl_ui_relative_layout_example_02.c b/src/examples/elementary/efl_ui_relative_container_example_02.c
index bc3740d601..bb18c269e8 100644
--- a/src/examples/elementary/efl_ui_relative_layout_example_02.c
+++ b/src/examples/elementary/efl_ui_relative_container_example_02.c
@@ -1,4 +1,4 @@
1// gcc -o efl_ui_relative_layout_example_02 efl_ui_relative_layout_example_02.c `pkg-config --cflags --libs elementary` 1// gcc -o efl_ui_relative_container_example_02 efl_ui_relative_container_example_02.c `pkg-config --cflags --libs elementary`
2 2
3#ifdef HAVE_CONFIG_H 3#ifdef HAVE_CONFIG_H
4#include "elementary_config.h" 4#include "elementary_config.h"
@@ -16,10 +16,10 @@ elm_main(int argc, char **argv)
16 Eo *win, *layout, *btn1, *btn2; 16 Eo *win, *layout, *btn1, *btn2;
17 17
18 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), 18 win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(),
19 efl_text_set(efl_added, "Efl.Ui.Relative_Layout"), 19 efl_text_set(efl_added, "Efl.Ui.Relative_Container"),
20 efl_ui_win_autodel_set(efl_added, EINA_TRUE)); 20 efl_ui_win_autodel_set(efl_added, EINA_TRUE));
21 21
22 layout = efl_add(EFL_UI_RELATIVE_LAYOUT_CLASS, win, 22 layout = efl_add(EFL_UI_RELATIVE_CONTAINER_CLASS, win,
23 efl_content_set(win, efl_added)); 23 efl_content_set(win, efl_added));
24 24
25 btn1 = efl_add(EFL_UI_BUTTON_CLASS, layout, 25 btn1 = efl_add(EFL_UI_BUTTON_CLASS, layout,
@@ -30,11 +30,11 @@ elm_main(int argc, char **argv)
30 efl_text_set(efl_added, "btn2"), 30 efl_text_set(efl_added, "btn2"),
31 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(0, 100))); 31 efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(0, 100)));
32 32
33 efl_ui_relative_layout_relation_right_set(layout, btn1, btn2, 0.0); 33 efl_ui_relative_container_relation_right_set(layout, btn1, btn2, 0.0);
34 efl_ui_relative_layout_relation_bottom_set(layout, btn1, btn2, 0.0); 34 efl_ui_relative_container_relation_bottom_set(layout, btn1, btn2, 0.0);
35 35
36 efl_ui_relative_layout_relation_left_set(layout, btn2, btn1, 1.0); 36 efl_ui_relative_container_relation_left_set(layout, btn2, btn1, 1.0);
37 efl_ui_relative_layout_relation_top_set(layout, btn2, btn1, 1.0); 37 efl_ui_relative_container_relation_top_set(layout, btn2, btn1, 1.0);
38 38
39 efl_gfx_entity_size_set(win, EINA_SIZE2D(300, 300)); 39 efl_gfx_entity_size_set(win, EINA_SIZE2D(300, 300));
40 40