summaryrefslogtreecommitdiff
path: root/src/examples/elementary/calendar_cxx_example_03.cc
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-03-23 12:56:14 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-03-23 13:24:41 -0700
commitc2a1c49ab2042f559b28e840e54feb8494888e0e (patch)
treec6eb110b7c479499854eede9d0c3ab0a80c9a11a /src/examples/elementary/calendar_cxx_example_03.cc
parent9340855597e7e465435c69b6278650346688da14 (diff)
elementary: move all legacy files to their expected new location.
Diffstat (limited to 'src/examples/elementary/calendar_cxx_example_03.cc')
-rw-r--r--src/examples/elementary/calendar_cxx_example_03.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/examples/elementary/calendar_cxx_example_03.cc b/src/examples/elementary/calendar_cxx_example_03.cc
new file mode 100644
index 0000000000..9aacadee72
--- /dev/null
+++ b/src/examples/elementary/calendar_cxx_example_03.cc
@@ -0,0 +1,23 @@
1#include <Elementary.hh>
2
3EAPI_MAIN int
4elm_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}
23ELM_MAIN()