cxx: Added examples and tutorial for C++ binding
[platform/upstream/elementary.git] / src / examples / bg_cxx_example_01.cc
1 #include <Elementary.hh>
2
3 EAPI_MAIN int
4 elm_main (int argc, char *argv[])
5 {
6    elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);
7
8    ::elm::win_standard win;
9    win.title_set("Bg Plain");
10    win.autohide_set(true);
11
12    ::elm::bg bg(efl::eo::parent = win);
13    bg.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
14    win.resize_object_add(bg);
15    bg.visible_set(true);
16
17    win.size_set(320,320);
18    win.visible_set(true);
19
20    elm_run();
21    return 0;
22 }
23 ELM_MAIN()