1 #include <Elementary.hh>
4 _format_month_year(struct tm *format_time)
7 if (!strftime(buf, sizeof(buf), "%b %y", format_time)) return NULL;
12 elm_main (int argc, char *argv[])
14 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);
16 const char *weekdays[] =
18 "S", "M", "T", "W", "T", "F", "S"
21 ::elm::win_standard win;
22 win.title_set("Calendar Layout Formatting Example");
23 win.autohide_set(true);
25 ::elm::calendar cal(efl::eo::parent = win);
26 cal.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
27 win.resize_object_add(cal);
29 cal.format_function_set(_format_month_year);
30 cal.weekdays_names_set(weekdays);
32 cal.visible_set(true);
33 win.visible_set(true);