summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorAli Alzyod <ali198724@gmail.com>2019-11-28 16:55:26 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2019-11-28 16:55:27 +0900
commit7bdb63d045cf3377abb7966d018da10c4e8d6b13 (patch)
tree18d5ddd1391f755bca294fee486d1740b55dba38 /src/examples
parentfa1aa10d792129a031ec16b20d73aa99804359de (diff)
Polish text interface methods
Summary: This patch is set to rename some properties of `Efl.Text_Font` & `Efl.Text_Format` interfaces. 1- efl_text_font_set/get become (efl_text_font_family_set/get, efl_text_font_size_set/get) 2- efl_text_valign/halign become efl_text_vertical/horizontal_align 3- efl_text_halign_auto_type become efl_text_horizontal_align_auto_type Reviewers: ali.alzyod, woohyun, segfaultxavi, bu5hm4n, zmike, cedric Reviewed By: woohyun Subscribers: zmike, #committers, #reviewers, cedric Tags: #efl Differential Revision: https://phab.enlightenment.org/D10716
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/elementary/efl_canvas_layout_text.c3
-rw-r--r--src/examples/elementary/efl_ui_list_example_1.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/src/examples/elementary/efl_canvas_layout_text.c b/src/examples/elementary/efl_canvas_layout_text.c
index 593dbe8872..bafd0dd2e5 100644
--- a/src/examples/elementary/efl_canvas_layout_text.c
+++ b/src/examples/elementary/efl_canvas_layout_text.c
@@ -135,7 +135,8 @@ efl_main(void *data EINA_UNUSED,
135 efl_text_markup_set(efl_part(layout, "text"), "This is an example text. This is a layout text part."); 135 efl_text_markup_set(efl_part(layout, "text"), "This is an example text. This is a layout text part.");
136 efl_text_wrap_set(efl_part(layout, "text"), wraps[wrap_itr].wrap); 136 efl_text_wrap_set(efl_part(layout, "text"), wraps[wrap_itr].wrap);
137 efl_text_normal_color_set(efl_part(layout, "text"), 255, 255, 0, 255); 137 efl_text_normal_color_set(efl_part(layout, "text"), 255, 255, 0, 255);
138 efl_text_font_set(efl_part(layout, "text"), "Serif", 12); 138 efl_text_font_family_set(efl_part(layout, "text"), "Serif");
139 efl_text_font_size_set(efl_part(layout, "text"), 12);
139 140
140 efl_canvas_layout_part_text_expand_set(efl_part(layout, "text"), 141 efl_canvas_layout_part_text_expand_set(efl_part(layout, "text"),
141 expands[expand_itr].expand); 142 expands[expand_itr].expand);
diff --git a/src/examples/elementary/efl_ui_list_example_1.c b/src/examples/elementary/efl_ui_list_example_1.c
index edf6d5dd4b..49cd52250c 100644
--- a/src/examples/elementary/efl_ui_list_example_1.c
+++ b/src/examples/elementary/efl_ui_list_example_1.c
@@ -154,7 +154,7 @@ elm_main(int argc EINA_UNUSED, char **argv)
154 154
155 txt = efl_add(EFL_UI_TEXT_CLASS, ibox); 155 txt = efl_add(EFL_UI_TEXT_CLASS, ibox);
156 efl_gfx_hint_weight_set(txt, 0.95, EFL_GFX_HINT_EXPAND); 156 efl_gfx_hint_weight_set(txt, 0.95, EFL_GFX_HINT_EXPAND);
157 efl_text_halign_set(txt, 0.2); 157 efl_text_horizontal_align_set(txt, 0.2);
158 efl_text_interactive_selection_allowed_set(txt, EINA_FALSE); 158 efl_text_interactive_selection_allowed_set(txt, EINA_FALSE);
159 snprintf(buf, sizeof(buf), "placeholder style item [%d]", i); 159 snprintf(buf, sizeof(buf), "placeholder style item [%d]", i);
160 efl_text_set(txt, buf); 160 efl_text_set(txt, buf);
@@ -232,7 +232,7 @@ elm_main(int argc EINA_UNUSED, char **argv)
232 /*select mode */ 232 /*select mode */
233 txt = efl_add(EFL_UI_TEXT_CLASS, wbox); 233 txt = efl_add(EFL_UI_TEXT_CLASS, wbox);
234 efl_gfx_hint_weight_set(txt, EFL_GFX_HINT_EXPAND, 0.01); 234 efl_gfx_hint_weight_set(txt, EFL_GFX_HINT_EXPAND, 0.01);
235 efl_text_halign_set(txt, 0.02); 235 efl_text_horizontal_align_set(txt, 0.02);
236 efl_text_interactive_selection_allowed_set(txt, EINA_FALSE); 236 efl_text_interactive_selection_allowed_set(txt, EINA_FALSE);
237 efl_text_set(txt, "Select Mode"); 237 efl_text_set(txt, "Select Mode");
238 efl_pack_end(wbox, txt); 238 efl_pack_end(wbox, txt);
@@ -260,7 +260,7 @@ elm_main(int argc EINA_UNUSED, char **argv)
260 txt = efl_add(EFL_UI_TEXT_CLASS, wbox); 260 txt = efl_add(EFL_UI_TEXT_CLASS, wbox);
261 efl_gfx_hint_weight_set(txt, EFL_GFX_HINT_EXPAND, 0.01); 261 efl_gfx_hint_weight_set(txt, EFL_GFX_HINT_EXPAND, 0.01);
262 efl_text_interactive_selection_allowed_set(txt, EINA_FALSE); 262 efl_text_interactive_selection_allowed_set(txt, EINA_FALSE);
263 efl_text_halign_set(txt, 0.02); 263 efl_text_horizontal_align_set(txt, 0.02);
264 efl_text_set(txt, "Item Scroll"); 264 efl_text_set(txt, "Item Scroll");
265 efl_pack_end(wbox, txt); 265 efl_pack_end(wbox, txt);
266 266