summaryrefslogtreecommitdiff
path: root/src/examples/calendar_cxx_example_03.cc
blob: 9aacadee728694227b9dede0c1b5ac95286a0937 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <Elementary.hh>

EAPI_MAIN int
elm_main (int argc, char *argv[])
{
   elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);

   ::elm::win_standard win;
   win.title_set("Calendar Min/Max Year Example");
   win.autohide_set(true);

   ::elm::calendar cal(efl::eo::parent = win);
   cal.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   win.resize_object_add(cal);
   cal.min_max_year_set(2020, 2022);
   cal.visible_set(true);

   win.visible_set(true);

   elm_run();
   return 0;
}
ELM_MAIN()