void GengridItemBase::Prepend(Evas_Object *_gengrid) { gengrid = _gengrid; item = elm_gengrid_item_prepend(gengrid, &item_class, this, _item_sel_cb, /* select function */ this); /* select function data */ elm_object_item_data_set(item, this); itemAdded(); }
void GengridItemBase::InsertAfter(Evas_Object *_gengrid, GengridItemBase *after) { gengrid = _gengrid; item = elm_gengrid_item_insert_after(gengrid, &item_class, this, after->item, _item_sel_cb, /* select function */ this); /* select function data */ elm_object_item_data_set(item, this); itemAdded(); }
void GengridItemBase::InsertBefore(Evas_Object *_gengrid, GengridItemBase *before) { gengrid = _gengrid; item = elm_gengrid_item_insert_before(gengrid, &item_class, this, before->item, _item_sel_cb, /* select function */ this); /* select function data */ elm_object_item_data_set(item, this); itemAdded(); }
void GenlistItemBase::Prepend(Evas_Object *_genlist, GenlistItemBase *gparent) { genlist = _genlist; item = elm_genlist_item_prepend(genlist, &item_class, this, (gparent)?gparent->item:NULL, /* parent item */ flags, _item_sel_cb, /* select function */ this); /* select function data */ elm_object_item_data_set(item, this); itemAdded(); }
void GenlistItemBase::InsertBefore(Evas_Object *_genlist, GenlistItemBase *before, GenlistItemBase *gparent) { genlist = _genlist; item = elm_genlist_item_insert_before(genlist, &item_class, this, (gparent)?gparent->item:NULL, /* parent item */ before->item, flags, _item_sel_cb, /* select function */ this); /* select function data */ elm_object_item_data_set(item, this); itemAdded(); }
void _gl_update_item(oicappData *ad , const char *title , Elm_Object_Item *item) { oicappItemData *it_data; it_data = calloc(1 , sizeof(oicappItemData)); if (NULL == it_data) { DBG("calloc failed!!!!"); return; } it_data->title = title; it_data->ad = ad; elm_object_item_data_set(item , it_data); elm_genlist_item_update(item); }
static Elm_Object_Item* intf_push_view(interface *intf, interface_view *view, const char *title) { /* Push the view in the naviframe with the corresponding header */ Elm_Object_Item *nf_it = elm_naviframe_item_push(intf->nf_content, title, NULL, NULL, view->view, "basic"); elm_object_item_data_set(nf_it, view); evas_object_show(view->view); /* Start the view */ if (view->pf_start != NULL) view->pf_start(view->p_view_sys); /* Prepare the popup menu if needed */ if(view->pf_has_menu != NULL && view->pf_has_menu(view->p_view_sys) == true) { Evas_Object *popup_toggle_btn = create_button(intf->nf_content, "naviframe/custom_more"); evas_object_smart_callback_add(popup_toggle_btn, "clicked", right_panel_button_clicked_cb, intf); elm_object_part_content_set(intf->nf_content, "title_right_btn", popup_toggle_btn); } return nf_it; }