本文整理汇总了C++中edje_object_signal_emit函数的典型用法代码示例。如果您正苦于以下问题:C++ edje_object_signal_emit函数的具体用法?C++ edje_object_signal_emit怎么用?C++ edje_object_signal_emit使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了edje_object_signal_emit函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: _e_wid_focus_hook
static void
_e_wid_focus_hook(Evas_Object *obj)
{
E_Widget_Data *wd;
wd = e_widget_data_get(obj);
if (e_widget_focus_get(obj))
{
edje_object_signal_emit(wd->o_button, "e,state,focused", "e");
evas_object_focus_set(wd->o_button, 1);
}
else
{
edje_object_signal_emit(wd->o_button, "e,state,unfocused", "e");
evas_object_focus_set(wd->o_button, 0);
}
}
开发者ID:amitesh-singh,项目名称:Enlightenment,代码行数:17,代码来源:e_widget_button.c
示例2: _wlan_cb_mouse_in
static void
_wlan_cb_mouse_in (void *data, Evas * e, Evas_Object * obj, void *event_info)
{
Instance *inst;
inst = data;
edje_object_signal_emit (inst->wlan_obj, "label_active", "");
}
开发者ID:amitesh-singh,项目名称:Enlightenment,代码行数:8,代码来源:e_mod_main.c
示例3: bs_service_hide
static void
bs_service_hide (Bookstore_Service *s)
{
if (!s)
return;
if (s && s->hide)
(s->hide)(mod->o_layout);
mod->current = NULL;
mod->state = BS_MENU_VIEW;
bs_service_set_bg(NULL);
edje_object_signal_emit(mod->edje, "service,hide", "enna");
edje_object_signal_emit(mod->edje, "module,show", "enna");
edje_object_signal_emit(mod->edje, "menu,show", "enna");
}
开发者ID:GeeXboX,项目名称:enna,代码行数:17,代码来源:bookstore.c
示例4: edje_object_signal_emit
void XmasWidget::Show()
{
edje_object_signal_emit(edje, "enable", "calaos");
EdjeObject::Show();
if (animator) ecore_animator_del(animator);
animator = ecore_animator_add(_snow_cb_animator, this);
}
开发者ID:expertisesolutions,项目名称:calaos_base,代码行数:8,代码来源:Xmas.cpp
示例5: eclair_gui_cover_set
//Set the cover displayed on the GUI
//Remove it if cover_path == NULL
void eclair_gui_cover_set(Eclair *eclair, const char *cover_path, Evas_Bool force_cover_update)
{
char *current_path;
if (!eclair || !eclair->cover_owner || !eclair->cover)
return;
current_path = NULL;
evas_object_image_file_get(eclair->cover, ¤t_path, NULL);
if (!current_path && !cover_path)
return;
if (!force_cover_update && current_path && cover_path && (strcmp(current_path, cover_path) == 0))
return;
if (eclair->previous_cover)
{
Evas_Object *tmp;
edje_object_part_unswallow(eclair->cover_owner->edje_object, eclair->cover);
edje_object_part_unswallow(eclair->cover_owner->edje_object, eclair->previous_cover);
tmp = eclair->previous_cover;
eclair->previous_cover = eclair->cover;
eclair->cover = tmp;
edje_object_part_swallow(eclair->cover_owner->edje_object, "cover", eclair->cover);
edje_object_part_swallow(eclair->cover_owner->edje_object, "previous_cover", eclair->previous_cover);
}
evas_object_image_file_set(eclair->cover, cover_path, NULL);
//TODO: evas_object_image_reload bug? need to do two reloads to really reload the image?!
if (current_path && cover_path && (strcmp(current_path, cover_path) == 0))
{
evas_object_image_reload(eclair->cover);
evas_object_image_reload(eclair->cover);
}
if (cover_path)
{
edje_object_signal_emit(eclair->cover_owner->edje_object, "signal_cover_set", "eclair_bin");
evas_object_show(eclair->cover);
}
else
{
edje_object_signal_emit(eclair->cover_owner->edje_object, "signal_cover_unset", "eclair_bin");
evas_object_hide(eclair->cover);
}
}
开发者ID:playya,项目名称:Enlightenment,代码行数:47,代码来源:eclair.c
示例6: cb_ee_mouse_out
static void
cb_ee_mouse_out(Ecore_Evas *ee)
{
Elicit *el;
el = ecore_evas_data_get(ee, "Elicit");
if (!el) return;
edje_object_signal_emit(el->obj.main, "elicit,deactivate", "elicit");
}
开发者ID:rephorm,项目名称:elicit,代码行数:9,代码来源:elicit.c
示例7: EINA_LIST_FOREACH
EINA_LIST_FOREACH(_ptrs, l, ptr)
{
_e_pointer_active_handle(ptr);
if (e_powersave_mode_get() < E_POWERSAVE_MODE_EXTREME)
{
if (ptr->o_ptr)
edje_object_signal_emit(ptr->o_ptr, "e,action,mouse,down", "e");
}
}
开发者ID:FlorentRevest,项目名称:Enlightenment,代码行数:9,代码来源:e_pointer.c
示例8: _update_signal_strength
static void
_update_signal_strength(int strength)
{
char buf[16];
g_debug("signal strength is %d", strength);
snprintf(buf, 16, "%d", strength);
edje_object_signal_emit(ui_utils_view_layout_get(VIEW_PTR(view)),
buf, "gsmSignalChange");
}
开发者ID:shr-project,项目名称:libphone-ui-shr,代码行数:9,代码来源:idle-view.c
示例9: enna_mainmenu_hide
void
enna_mainmenu_hide(Evas_Object *obj)
{
Smart_Data *sd;
Evas_Object *ic;
sd = evas_object_data_get(obj, "mainmenu_data");
if (!sd) return;
sd->visible = 0;
edje_object_signal_emit(elm_layout_edje_get(enna->layout),
"mainmenu,hide", "enna");
edje_object_signal_emit(elm_layout_edje_get(enna->layout),
"gadgets,hide", "enna");
enna_gadgets_hide();
}
开发者ID:enna-project,项目名称:enna,代码行数:18,代码来源:mainmenu.c
示例10: e_gadcon_popup_toggle_pinned
EAPI void
e_gadcon_popup_toggle_pinned(E_Gadcon_Popup *pop)
{
if (!pop) return;
E_OBJECT_CHECK(pop);
E_OBJECT_TYPE_CHECK(pop, E_GADCON_POPUP_TYPE);
if (pop->pinned)
{
pop->pinned = 0;
edje_object_signal_emit(pop->o_bg, "e,state,unpinned", "e");
}
else
{
pop->pinned = 1;
edje_object_signal_emit(pop->o_bg, "e,state,pinned", "e");
}
}
开发者ID:Limsik,项目名称:e17,代码行数:18,代码来源:e_gadcon_popup.c
示例11: eclair_menu_item_deactivate
//Deactivate the menu item
void eclair_menu_item_deactivate(Eclair_Menu_Item *item)
{
if (!item || !item->is_active)
return;
edje_object_signal_emit(item->edje_object, "signal_deactivate", "eclair_bin");
eclair_menu_pop_down(item->child);
item->is_active = 0;
}
开发者ID:playya,项目名称:Enlightenment,代码行数:10,代码来源:eclair_menu.c
示例12: _cpu_turn
static void
_cpu_turn(Game *game)
{
edje_object_signal_emit(game->base, "playing", "");
game->next = 0;
game->mode = PLAYING;
game->step++;
game->play_timer = ecore_timer_add(game->speed, _play_next, game);
}
开发者ID:gzorin,项目名称:e17,代码行数:9,代码来源:main.c
示例13: _wlan_cb_mouse_out
static void
_wlan_cb_mouse_out (void *data, Evas * e, Evas_Object * obj, void *event_info)
{
Instance *inst;
inst = data;
if (!inst->ci->always_text)
edje_object_signal_emit (inst->wlan_obj, "label_passive", "");
}
开发者ID:amitesh-singh,项目名称:Enlightenment,代码行数:9,代码来源:e_mod_main.c
示例14: _screen_visual_bounds
static void
_screen_visual_bounds(Miniview *mv)
{
if ((mv->screen.pos_val > 1) || (mv->screen.pos_val < 0))
{
edje_object_part_drag_value_set(mv->base, "miniview_screen",
0.0, mv->screen.pos_val);
edje_object_signal_emit(mv->base, "miniview_screen,outbounds",
"miniview");
}
else
{
edje_object_part_drag_value_set(mv->base, "miniview_screen",
0.0, mv->screen.pos_val);
edje_object_signal_emit(mv->base, "miniview_screen,inbounds",
"miniview");
}
}
开发者ID:billiob,项目名称:terminology,代码行数:18,代码来源:miniview.c
示例15: _item_refresh_mode_one
static void
_item_refresh_mode_one(News_Item *ni, int changed_order, int changed_state)
{
Evas_Object *box;
Evas_Object *obj;
box = ni->view.box;
obj = ni->view.obj_mode_one;
/* create obj */
if (!obj)
{
obj = edje_object_add(ni->gcc->gadcon->evas);
news_theme_edje_set(obj, NEWS_THEME_FEEDONE);
edje_object_signal_callback_add(obj, "e,action,open", "e",
_cb_item_open, ni);
}
if (!ni->view.obj_mode_one || changed_order)
{
e_box_pack_end(box, obj);
e_box_pack_options_set(obj,
1, 1, /* fill */
1, 1, /* expand */
0, 0, /* align */
0, 0,
-1, -1
);
evas_object_show(obj);
}
/* state */
if (!ni->view.obj_mode_one || changed_state)
{
if (ni->unread_count)
edje_object_signal_emit(obj, "e,state,new,set", "e");
else
edje_object_signal_emit(obj, "e,state,new,unset", "e");
}
ni->view.obj_mode_one = obj;
}
开发者ID:JeffHoogland,项目名称:moksha-modules-extra,代码行数:44,代码来源:news_item.c
示例16: _elm_ews_border_focus_apply
static void
_elm_ews_border_focus_apply(Ecore_Evas *ee, Evas_Object *o)
{
const char *sig;
if (ecore_evas_focus_get(ee))
sig = "elm,state,focus,on";
else
sig = "elm,state,focus,off";
edje_object_signal_emit(o, sig, "elm");
}
开发者ID:Limsik,项目名称:e17,代码行数:10,代码来源:elu_ews_wm.c
示例17: _source_in
static void
_source_in(void *data, Evas_Object *edj, const char *emission, const char *source)
{
Evas_Object *o = data;
patcher_t *priv = evas_object_smart_data_get(o);
unsigned short src;
evas_object_table_pack_get(priv->matrix, edj, &src, NULL, NULL, NULL);
int src_idx;
_abs_to_rel(priv, src, 0, &src_idx, NULL);
edje_object_signal_emit(edj, "on", PATCHER_UI);
Evas_Object *tar = evas_object_table_child_get(priv->matrix, src, priv->max+1);
edje_object_signal_emit(tar, "on", PATCHER_UI);
int first = 1;
for(int j=0; j<priv->sinks; j++)
{
int snk;
_rel_to_abs(priv, 0, j, NULL, &snk);
if(priv->state[src_idx][j]) // connected
{
for(int i=src+1; i<priv->max; i++)
{
tar = evas_object_table_child_get(priv->matrix, i, snk);
edje_object_signal_emit(tar, "horizontal", PATCHER_UI);
}
tar = evas_object_table_child_get(priv->matrix, src, snk);
if(first)
{
edje_object_signal_emit(tar, "edge", PATCHER_UI);
first = 0;
}
else
edje_object_signal_emit(tar, "edge,vertical", PATCHER_UI);
tar = evas_object_table_child_get(priv->matrix, priv->max, snk);
edje_object_signal_emit(tar, "on", PATCHER_UI);
tar = evas_object_table_child_get(priv->matrix, priv->max+1, snk);
edje_object_signal_emit(tar, "on", PATCHER_UI);
}
else if(!first)
{
tar = evas_object_table_child_get(priv->matrix, src, snk);
edje_object_signal_emit(tar, "vertical", PATCHER_UI);
}
}
priv->src_over = edj;
}
开发者ID:foren197316,项目名称:synthpod,代码行数:53,代码来源:patcher.c
示例18: enscribi_input_frame_send_result
void enscribi_input_frame_send_result(Evas_Object *obj)
{
Smart_Data *sd;
sd = evas_object_smart_data_get(obj);
if (!sd)
return;
edje_object_signal_emit(sd->edje, "result,finished", "result");
}
开发者ID:olofsj,项目名称:enscribi,代码行数:10,代码来源:enscribi_input_frame.c
示例19: _e_wid_focus_hook
static void
_e_wid_focus_hook(Evas_Object *obj)
{
E_Widget_Data *wd = NULL;
wd = e_widget_data_get(obj);
if (e_widget_focus_get(obj))
{
edje_object_signal_emit(e_scrollframe_edje_object_get(wd->o_scroll),
"e,state,focused", "e");
evas_object_focus_set(wd->o_fm, 1);
}
else
{
edje_object_signal_emit(e_scrollframe_edje_object_get(wd->o_scroll),
"e,state,unfocused", "e");
evas_object_focus_set(wd->o_fm, 0);
}
}
开发者ID:Deepspeed,项目名称:moksha,代码行数:19,代码来源:e_widget_flist.c
示例20: on_urlbar_mouse_down
static void
on_urlbar_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info)
{
Evas_Event_Mouse_Down *ev = event_info;
Url_Bar *urlBar = (Url_Bar *)data;
if (ev->button == 1) {
evas_object_focus_set(urlBar->entry, EINA_TRUE);
edje_object_signal_emit(urlBar->entry, "entry,action,focus", "entry");
}
}
开发者ID:harlanlewis,项目名称:webkit,代码行数:11,代码来源:url_bar.c
注:本文中的edje_object_signal_emit函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论