本文整理汇总了C++中edje_object_signal_emit函数的典型用法代码示例。如果您正苦于以下问题:C++ edje_object_signal_emit函数的具体用法?C++ edje_object_signal_emit怎么用?C++ edje_object_signal_emit使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了edje_object_signal_emit函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
}
示例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", "");
}
示例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");
}
示例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);
}
示例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);
}
}
示例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");
}
示例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");
}
}
示例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");
}
示例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();
}
示例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");
}
}
示例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;
}
示例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);
}
示例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", "");
}
示例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");
}
}
示例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;
}