summaryrefslogtreecommitdiff
path: root/src/examples/elementary/calendar_cxx_example_01.cc
blob: 4e24fff699d692065bf80d52e76aee9f133ab5f9 (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
#ifdef HAVE_CONFIG_H
#include "config.h"
#include "elementary_config.h"
#endif

#include <Elementary.hh>

using efl::eo::instantiate;

static void
efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
{
   elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_HIDDEN);

   auto win = efl::ui::Win(instantiate);
   win.text_set("Calendar Creation Example");
   win.autohide_set(true);

   auto cal = efl::ui::Calendar(instantiate, win);
   win.content_set(cal);

   win.size_set({320,320});
}
EFL_MAIN()