summaryrefslogtreecommitdiff
path: root/src/main.c
blob: bf099bcb27f7b49e2a9092da5f0d39dc52bbb78d (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#include "main.h"

static bool app_create(void *data)
{
	Evas_Object *win = elm_win_util_standard_add(PACKAGE, PACKAGE);
	elm_win_conformant_set(win, EINA_TRUE);
	elm_win_autodel_set(win, EINA_TRUE);
	evas_object_show(win);

	Evas_Object *conform = elm_conformant_add(win);
	elm_win_indicator_mode_set(win, ELM_WIN_INDICATOR_SHOW);
	elm_win_indicator_opacity_set(win, ELM_WIN_INDICATOR_OPAQUE);
	evas_object_size_hint_weight_set(conform, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
	elm_win_resize_object_add(win, conform);
	evas_object_show(conform);

	Evas_Object *nf = elm_naviframe_add(conform);
	eext_object_event_callback_add(nf, EEXT_CALLBACK_BACK, eext_naviframe_back_cb, NULL);
	evas_object_size_hint_weight_set(nf, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
	elm_object_content_set(conform, nf);
	evas_object_show(nf);

	create_setting_menu(nf);

	return true;
}

static void app_control(app_control_h app_control, void *data)
{
	// Empty
}

static void app_pause(void *data)
{
	// Empty
}

static void app_resume(void *data)
{
	// Empty
}

static void app_terminate(void *data)
{
	// Empty
}

int main(int argc, char *argv[])
{
	ui_app_lifecycle_callback_s event_callback = {0,};

	event_callback.create = app_create;
	event_callback.app_control = app_control;
	event_callback.pause = app_pause;
	event_callback.resume = app_resume;
	event_callback.terminate = app_terminate;

	return ui_app_main(argc, argv, &event_callback, NULL);
}