static bool app_create(void *data)
{
    /* Hook to take necessary actions before main event loop starts
     Initialize UI resources and application's data
     If this function returns true, the main loop of application starts
     If this function returns false, the application is terminated */
    appdata_s *ad = (appdata_s *) data;

    elm_app_base_scale_set(1.8);

    create_base_gui(ad);

    configure_platform();

    return true;
}
Esempio n. 2
0
uib_view_context* initialize() {
	memset(&g_uib_device_info, 0x00, sizeof(uib_device_info_st));
	uib_util_get_device_info(&g_uib_device_info);
	window_obj* win_obj = uib_views_get_instance()->create_window_obj();
        uib_util_rotation_set(win_obj->win, e_rotation_fullSensor);
	uib_view_context* vc = uib_views_get_instance()->startup_view_create(win_obj);
	Evas_Object* nf = win_obj->app_naviframe;
	Elm_Object_Item* nf_it = elm_naviframe_bottom_item_get(nf);

	eext_object_event_callback_add(nf, EEXT_CALLBACK_BACK, nf_hw_back_cb, vc);
	evas_object_show(nf);
	elm_naviframe_item_pop_cb_set(nf_it, nf_root_it_pop_cb, win_obj->win);

	elm_app_base_scale_set(g_uib_device_info.base_scale);
	evas_object_smart_callback_add(win_obj->win, "delete,request", win_del_request_cb, NULL);
	return vc;
}