• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ elm_exit函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中elm_exit函数的典型用法代码示例。如果您正苦于以下问题:C++ elm_exit函数的具体用法?C++ elm_exit怎么用?C++ elm_exit使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了elm_exit函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: cleanup

// Clean up function for each test purpose
static void
cleanup()
{
	// Clean up the used resources.
	if ( NULL != main_win ) {
		main_win = NULL;
	}

	if ( NULL != main_bg ) {
		main_bg = NULL;
	}

	if ( NULL != test_win ) {
		test_win = NULL;
	}

	if ( NULL != test_bg ) {
		test_bg = NULL;
	}

	if ( NULL != test_eo ) {
		test_eo = NULL;
	}

	elm_exit();

	tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");

}
开发者ID:TizenChameleon,项目名称:uifw-elementary,代码行数:30,代码来源:uts_elm_imageslider_add_func.c


示例2: _on_done

static void
_on_done(void        *data,
         Evas_Object *obj,
         void        *event_info)
{
   elm_exit();
}
开发者ID:Limsik,项目名称:e17,代码行数:7,代码来源:list_example_03.c


示例3: _ui_saved

static void
_ui_saved(void *data, int status)
{
	bin_t *bin = data;
	prog_t *handle = (void *)bin - offsetof(prog_t, bin);

	//printf("_ui_saved: %i\n", status);
	if(handle->save_state == SAVE_STATE_NSM)
	{
		synthpod_nsm_saved(bin->nsm, status);
	}
	else if(handle->save_state == SAVE_STATE_JACK)
	{
		jack_session_event_t *ev = handle->session_event;
		if(ev)
		{
			if(status != 0)
				ev->flags |= JackSessionSaveError;
			jack_session_reply(handle->client, ev);
			jack_session_event_free(ev);
		}
		handle->session_event = NULL;
	}
	handle->save_state = SAVE_STATE_INTERNAL;

	if(atomic_load_explicit(&handle->kill, memory_order_relaxed))
	{
		elm_exit();
	}
}
开发者ID:foren197316,项目名称:synthpod,代码行数:30,代码来源:synthpod_jack.c


示例4: my_win_del

static void
my_win_del(void *data, Evas_Object *obj, void *event_info)
{
    save_state();
    release_cpu();
    elm_exit();
}
开发者ID:shr-project,项目名称:e-tasks,代码行数:7,代码来源:main.c


示例5: cleanup

static void cleanup(void)
{
	if ( NULL != main_win ) {
		main_win = NULL;
	}

	if ( NULL != main_bg ) {
		main_bg = NULL;
	}

	if ( NULL != test_win ) {
		test_win = NULL;
	}

	if ( NULL != test_bg ) {
		test_bg = NULL;
	}

	if ( NULL != test_eo ) {
		test_eo = NULL;
	}

	elm_exit();

	tet_infoline("[[ TET_MSG ]]:: ============ Cleanup ============ ");
}
开发者ID:TizenChameleon,项目名称:uifw-elementary,代码行数:26,代码来源:utc_UIFW_elm_gengrid_add_func.c


示例6: _on_done

static void
_on_done(void        *data,
         Evas_Object *obj,
         void        *event_info)
{
   _progressbar_example_stop(NULL, NULL, NULL);
   elm_exit();
}
开发者ID:TizenChameleon,项目名称:uifw-elementary,代码行数:8,代码来源:progressbar_example.c


示例7: _on_done

static void
_on_done(void        *data,
         Evas_Object *obj,
         void        *event_info)
{
   fprintf(stdout, "Done testing SlideShow!\n");
   elm_exit();
}
开发者ID:radoslawjablonski,项目名称:eail,代码行数:8,代码来源:eail_slideshow_test.c


示例8: ewallset_end

int ewallset_end()
{
	unlink(e->tmpn);
	eina_stringshare_del(e->value);
	e_dbus_connection_close(e->conn);
	free(e);
	elm_exit();
}
开发者ID:Alien-nick,项目名称:princeamds-code,代码行数:8,代码来源:main.c


示例9: _on_done

static void
_on_done(void *data,
         Evas_Object *obj,
         void *event_info)
{
   evas_object_del((Evas_Object*)data);
   elm_exit();
}
开发者ID:radoslawjablonski,项目名称:eail,代码行数:8,代码来源:eail_flipselector_test.c


示例10: del

// on window delete - cancel thread then delete window and exit mainloop
static void
del(void *data, Evas_Object *obj, void *event_info)
{
   if (thr) ecore_thread_cancel(thr);
   thr = NULL;
   evas_object_del(obj);
   elm_exit();
}
开发者ID:FlorentRevest,项目名称:Elementary,代码行数:9,代码来源:efl_thread_5.c


示例11: check_terminate

Eina_Bool check_terminate(void *data){
	if( is_terminate ){
		nfc_manager_deinitialize();
		elm_exit();
		return 0;
	}
 	return 1;
}
开发者ID:tizenorg,项目名称:framework.api.nfc,代码行数:8,代码来源:network_nfc_test.c


示例12: del

// on window delete - cancel thread then delete window and exit mainloop
static void
del(void *data, Evas_Object *obj, void *event_info)
{
   pthread_mutex_lock(&th_lock);
   th_exit = 1;
   pthread_mutex_unlock(&th_lock);
   evas_object_del(obj);
   elm_exit();
}
开发者ID:maikodaraine,项目名称:EnlightenmentUbuntu,代码行数:10,代码来源:efl_thread_4.c


示例13: win_del

// Close window
static void
win_del(void *data, Evas_Object *obj, void *event_info)
{

//Clear memory allowed to struct Fenetre
    free(data) ;

//Exit elementary loop
    elm_exit();
}
开发者ID:warshall,项目名称:Raspi,代码行数:11,代码来源:main.c


示例14: on_focus_in

static void on_focus_in(void *data, Evas_Object *obj, void *event_info)
{
   AtkObject *aobj = atk_get_root();
   if (aobj)
     _traverse_children(aobj);
   else
     printf("error: ATK returns null\n");

   elm_exit();
}
开发者ID:radoslawjablonski,项目名称:eail,代码行数:10,代码来源:eail_tooltip_test.c


示例15: mp_app_exit

void
mp_app_exit(void *data)
{
	struct appdata *ad = data;
	mp_retm_if(ad == NULL, "appdata is NULL");

	DEBUG_TRACE("player_state [%d]\n", ad->player_state);

	elm_exit();
}
开发者ID:minjinsong,项目名称:tizen-music-player,代码行数:10,代码来源:mp-app.c


示例16: slider_callback

SH_API void
slider_callback(void *data, Evas_Object *obj, void *event_info)
{
  Evas_Object *slider = data;
  double value;

  value = elm_slider_value_get(slider);

  printf("%f\n", value);
  elm_exit();
}
开发者ID:Limsik,项目名称:e17,代码行数:11,代码来源:shelm_callbacks.c


示例17: elm_main

EAPI_MAIN int
elm_main(int argc, char **argv)
{

	setpriority(PRIO_PROCESS, 0, +15);

	int x, y, w, h;


	if (argc > 1) {
	   file=argv[1];
	}
	if (argc > 2) {
	   command=argv[2];
	}
	if (argc > 3) {
	   x=atof(argv[3]);
	}
	if (argc > 4) {
	   y=atof(argv[4]);
	}
	if (argc > 5) {
	   w=atof(argv[5]);
	}
	if (argc > 6) {
	   h=atof(argv[6]);
	} else {
	   printf("how to use: ./button_png filename command x y w h \n");
	   elm_exit();
	   exit(0);
	}


	win = elm_win_add(NULL, NULL, ELM_WIN_NOTIFICATION);
	elm_win_prop_focus_skip_set(win, EINA_TRUE);

	Evas *evas = evas_object_evas_get(win);
	evas_object_move(win, x, y); evas_object_resize(win,w,h);
	evas_object_show(win);

	// Create an image object
	Evas_Object *img = evas_object_image_filled_add(evas);
	evas_object_image_file_set(img, file, NULL);
	evas_object_move(img, 0, 0); evas_object_resize(img,w,h);
	evas_object_event_callback_add(img, EVAS_CALLBACK_MOUSE_DOWN, _on_keydown, NULL);
	evas_object_show(img);

	ecore_main_loop_iterate();
   
   elm_run();

   return 0;
}
开发者ID:AdamRLukaitis,项目名称:nx500_nx1_modding,代码行数:53,代码来源:button_png.c


示例18: _on_focus_in

static void
_on_focus_in(void *data, Evas_Object *obj, void *event_info)
{
   AtkObject *aobj = atk_get_root();
   g_assert(aobj);

   eailu_traverse_children_for_type_call_cb
                                    (aobj, EAIL_TYPE_FOR_WINDOW, _test_window);

   g_assert(eail_test_code_called);
   elm_exit();
}
开发者ID:radoslawjablonski,项目名称:eail,代码行数:12,代码来源:eail_win_test.c


示例19: clock_callback

SH_API void
clock_callback(void *data, Evas_Object *obj, void *event_info)
{
  Evas_Object *clock = data;
  char value[PATH_MAX];
  int h, m, s;
  elm_clock_time_get(clock, &h, &m, &s);
  snprintf(value, sizeof(value), "%i:%i:%i", h, m, s);

  printf("%s\n", value);
  elm_exit();
}
开发者ID:Limsik,项目名称:e17,代码行数:12,代码来源:shelm_callbacks.c


示例20: _on_focus_in

static void
_on_focus_in(void *data, Evas_Object *obj, void *event_info)
{
   AtkObject *aobj = atk_get_root();
   g_assert(aobj);

   eailu_traverse_children_for_type_call_cb
                                 (aobj, "EailEntry", _test_focus_on_entry);

   g_assert(eail_test_code_called);
   elm_exit();
}
开发者ID:patrykka,项目名称:eail,代码行数:12,代码来源:eail_focus_test.c



注:本文中的elm_exit函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ elm_init函数代码示例发布时间:2022-05-30
下一篇:
C++ elm_box_add函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap