www-content/pages/tutorial/basic_tutorial.txt

72 lines
1.3 KiB
Plaintext

~~Title: Basic Tutorial~~
==== Basic Tutorial ====
These basic tutorials describe the basics of widget interactions.
== Prerequisite ==
* Do a helloworld program: [[docs/efl/start|Get started with EFL]].
* Work with this example.
<code c>
#include <Elementary.h>
EAPI_MAIN int
elm_main(int argc, char **argv)
{
Evas_Object *win;
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
win = elm_win_util_standard_add("Main", "Hello, World!");
elm_win_autodel_set(win, EINA_TRUE);
//win 400x400
evas_object_resize(win, 400, 400);
/*basic tutorial code*/
evas_object_show(win);
elm_run();
return 0;
}
ELM_MAIN()
</code>
==== Basic Button ====
**__[[/tutorial/basic/button|Basic Button Tutorial]]:__**
//{{code_c/tutorial/basic/button.c}}//[[/tutorial/basic/button|{{ :basic_button.png?direct|button}}]]
\\
\\
\\
\\
\\
\\
\\
\\
\\
\\
\\
\\
\\
\\
\\
\\
------
==== Basic Label ====
**__[[/tutorial/basic/label|Simple Text Tutorial]]:__**//
{{code_c/tutorial/basic/label.c}}//[[/tutorial/basic/label|{{ :basic_label.png?direct|label}}]]
\\
\\
\\
\\
\\
\\
\\
\\
------
==== Basic List ====
**__[[tutorial/basic/list|Simple List Tutorial]]:__**//
{{code_c/tutorial/basic/list.c}}//[[/tutorial/basic/list|{{ :basic_list.png?direct|list}}]]