Wiki page hello-world-gui.md changed with summary [remove unnecessary headers, addd a comment about Efl_Ui.h] by Vincent Torri

This commit is contained in:
Vincent Torri 2021-04-19 11:21:15 -07:00 committed by www-data
parent b03077bf11
commit 286c6bfca7
1 changed files with 1 additions and 10 deletions

View File

@ -18,7 +18,6 @@ As you'll be building on the code from the prior tutorial, take a look at the pr
```c
#define EFL_BETA_API_SUPPORT 1
#include <Eina.h>
#include <Efl_Core.h>
EAPI_MAIN void
@ -69,13 +68,11 @@ Instead of printing to the command line, this time your message will be displaye
Technically you could put all the code for opening the window, text boxes, buttons and so on into the main function which previously contained the lines you just deleted but that's messy. In general it's much better and cleaner to use the main function to call other functions.
Create a function to set up your window and name it ``_gui_setup()``. Insert a call to the function from within the main EFL loop. Your program should look like this:
Create a function to set up your window and name it ``_gui_setup()``. Insert a call to the function from within the main EFL loop. Also include ``Efl_Ui.h`` instead of ``Efl_Core.h`` to include all the necessary UI code. Your program should look like this:
```c
#define EFL_BETA_API_SUPPORT 1
#include <Eina.h>
#include <Elementary.h>
#include <Efl_Ui.h>
@ -121,8 +118,6 @@ Your program will now look like this:
```c
#define EFL_BETA_API_SUPPORT 1
#include <Eina.h>
#include <Elementary.h>
#include <Efl_Ui.h>
@ -202,8 +197,6 @@ Your program should now look like this:
```c
#define EFL_BETA_API_SUPPORT 1
#include <Eina.h>
#include <Elementary.h>
#include <Efl_Ui.h>
static void
@ -350,8 +343,6 @@ If you use ``0.5, 0.5``, the text will be centered. Take a look at [the complete
```c
#define EFL_BETA_API_SUPPORT 1
#include <Eina.h>
#include <Elementary.h>
#include <Efl_Ui.h>
static void