summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2018-08-27 06:33:23 -0700
committerapache <apache@e5-web1.enlightenment.org>2018-08-27 06:33:23 -0700
commite7fbc8a0e8531a898b65ada656af5011f91f8ba9 (patch)
treee39257be16468ca8c4011817fc2f15f575dae2e3 /pages
parent4561f54150fa87836b47501c49cdc732caf48e22 (diff)
Wiki page hello-world-gui.md changed with summary [Sync with code] by Xavi Artigas
Diffstat (limited to 'pages')
-rw-r--r--pages/develop/tutorials/c/hello-world-gui.md.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/pages/develop/tutorials/c/hello-world-gui.md.txt b/pages/develop/tutorials/c/hello-world-gui.md.txt
index f427cec6e..25e5e352b 100644
--- a/pages/develop/tutorials/c/hello-world-gui.md.txt
+++ b/pages/develop/tutorials/c/hello-world-gui.md.txt
@@ -255,12 +255,12 @@ You can add a text box widget using the ``EFL_UI_TEXT_CLASS`` and insert into yo
255[...] 255[...]
256 efl_add(EFL_UI_TEXT_CLASS, box, 256 efl_add(EFL_UI_TEXT_CLASS, box,
257 efl_text_markup_set(efl_added, "Hello World. This is an <b>Efl.Ui</b> application!"), 257 efl_text_markup_set(efl_added, "Hello World. This is an <b>Efl.Ui</b> application!"),
258 efl_ui_text_interactive_selection_allowed_set(efl_added, EINA_FALSE), 258 efl_text_interactive_selection_allowed_set(efl_added, EINA_FALSE),
259 efl_pack(box, efl_added)); 259 efl_pack(box, efl_added));
260[...] 260[...]
261``` 261```
262 262
263The ``efl_text_markup_set()`` lets you define what text to show in the text box. You can apply some formatting if you wish using some basic HTML-like markup. The ``efl_ui_text_interactive_selection_allowed_set(efl_added, EINA_FALSE)`` tells the application that the text cannot be modified by the user. ``efl_pack()`` fits the text box inside container box, taking up all the space available. This doesn't necessarily mean all the space: see below. 263The ``efl_text_markup_set()`` lets you define what text to show in the text box. You can apply some formatting if you wish using some basic HTML-like markup. The ``efl_text_interactive_selection_allowed_set(efl_added, EINA_FALSE)`` tells the application that the text cannot be modified by the user. ``efl_pack()`` fits the text box inside container box, taking up all the space available. This doesn't necessarily mean all the space: see below.
264 264
265To add a button use the following code: 265To add a button use the following code:
266 266
@@ -292,7 +292,7 @@ To change how much relative space each widget takes up, you use *weight hinting*
292[...] 292[...]
293 efl_add(EFL_UI_TEXT_CLASS, box, 293 efl_add(EFL_UI_TEXT_CLASS, box,
294 efl_text_markup_set(efl_added, "Hello World.<br>This is an <b>Efl.Ui</b> application!"), 294 efl_text_markup_set(efl_added, "Hello World.<br>This is an <b>Efl.Ui</b> application!"),
295 efl_ui_text_interactive_selection_allowed_set(efl_added, EINA_FALSE), 295 efl_text_interactive_selection_allowed_set(efl_added, EINA_FALSE),
296 efl_gfx_size_hint_weight_set(efl_added, 1.0, 1.0), 296 efl_gfx_size_hint_weight_set(efl_added, 1.0, 1.0),
297 efl_pack(box, efl_added)); 297 efl_pack(box, efl_added));
298 298
@@ -383,7 +383,7 @@ _gui_setup()
383 383
384 efl_add(EFL_UI_TEXT_CLASS, box, 384 efl_add(EFL_UI_TEXT_CLASS, box,
385 efl_text_markup_set(efl_added, "Hello World. This is an <b>Efl.Ui</b> application!"), 385 efl_text_markup_set(efl_added, "Hello World. This is an <b>Efl.Ui</b> application!"),
386 efl_ui_text_interactive_selection_allowed_set(efl_added, EINA_FALSE), 386 efl_text_interactive_selection_allowed_set(efl_added, EINA_FALSE),
387 efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.9), 387 efl_gfx_size_hint_weight_set(efl_added, 1.0, 0.9),
388 efl_gfx_size_hint_align_set(efl_added, 0.5, 0.5), 388 efl_gfx_size_hint_align_set(efl_added, 0.5, 0.5),
389 efl_pack(box, efl_added)); 389 efl_pack(box, efl_added));