blob: 672e6319f904c0926432ab29f9e759cdeae6d19d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#ifdef HAVE_CONFIG_H
#include "config.h"
#include "elementary_config.h"
#endif
#include <Elementary.hh>
EAPI_MAIN int
elm_main (int argc EINA_UNUSED, char **argv EINA_UNUSED)
{
Efl_Time min, max;
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);
using efl::eo::instantiate;
efl::ui::Win win(instantiate);
//win.title_set("Calendar Min/Max Year Example");
win.autohide_set(true);
elm::Calendar cal(instantiate, win);
min.tm_year = 2020 - 1900;
max.tm_year = 2022 - 1900;
//cal.size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
//win.resize_object_add(cal);
cal.date_min_set(min);
cal.date_max_set(max);
cal.visible_set(true);
cal.eo_cxx::efl::Gfx::size_set({140,140});
win.eo_cxx::efl::Gfx::size_set({140,140});
win.visible_set(true);
elm_run();
return 0;
}
ELM_MAIN()
|