cxx: Added examples and tutorial for C++ binding
[platform/upstream/elementary.git] / src / examples / calendar_cxx_example_03.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("Calendar Min/Max Year Example");
10    win.autohide_set(true);
11
12    ::elm::calendar cal(efl::eo::parent = win);
13    cal.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
14    win.resize_object_add(cal);
15    cal.min_max_year_set(2020, 2022);
16    cal.visible_set(true);
17
18    win.visible_set(true);
19
20    elm_run();
21    return 0;
22 }
23 ELM_MAIN()