Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Elementary.h>
- EAPI_MAIN int
- elm_main(int argc, char **argv)
- {
- Evas_Object *win, *bt;
- win = elm_win_add(NULL, "window", ELM_WIN_BASIC);
- elm_win_title_set(win, "window");
- elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
- elm_win_autodel_set(win, EINA_TRUE);
- bt = elm_button_add(win);
- evas_object_resize(bt, 100, 30);
- elm_object_text_set(bt, "button");
- evas_object_show(bt);
- evas_object_resize(win, 320, 320);
- evas_object_show(win);
- elm_run();
- elm_shutdown();
- return 0;
- }
- ELM_MAIN()
Advertisement
Add Comment
Please, Sign In to add comment