static void _index_changed(void *data, Evas_Object *obj, void *event_info) { Elm_Object_Item *item = elm_object_item_data_get(event_info); elm_gengrid_item_bring_in(item, ELM_GENGRID_ITEM_SCROLLTO_IN); }
/* bring in 1st item */ static void _bring_1st_clicked(void *data, Evas_Object *obj, void *event_info) { Elm_Object_Item *gg_it = elm_gengrid_first_item_get(data); if (!gg_it) return; elm_gengrid_item_bring_in(gg_it, ELM_GENGRID_ITEM_SCROLLTO_IN); }
static void set_api_state(api_data *api) { Evas_Object *grid = api->grid; /* use elm_box_children_get() to get list of children */ switch(api->state) { /* Put all api-changes under switch */ case GRID_ALIGN_SET: /* 0 */ elm_gengrid_align_set(grid, 0.2, 0.8); break; case GRID_BRING_IN: /* 1 */ elm_gengrid_item_bring_in(elm_gengrid_first_item_get(grid), ELM_GENGRID_ITEM_SCROLLTO_IN); break; case GRID_NO_SELECT_MODE: /* 2 */ elm_gengrid_select_mode_set(grid, ELM_OBJECT_SELECT_MODE_NONE); break; case GRID_NO_BOUNCE: /* 3 */ elm_scroller_bounce_set(grid, EINA_TRUE, EINA_FALSE); break; case GRID_PAGE_RELATIVE: /* 4 */ elm_scroller_bounce_set(grid, EINA_TRUE, EINA_TRUE); elm_scroller_page_relative_set(grid, 0.5, 0.5); break; case GRID_PAGE_SIZE: /* 5 */ elm_scroller_page_size_set(grid, 50, 25); break; case GRID_TOOLTIP_SET_TEXT: /* 6 */ { Elm_Object_Item *item = elm_gengrid_first_item_get(grid); elm_gengrid_item_tooltip_text_set(item, "This is the first item"); } break; case GRID_TOOLTIP_UNSET: /* 7 */ { Elm_Object_Item *item = elm_gengrid_first_item_get(grid); elm_gengrid_item_tooltip_unset(item); } break; case API_STATE_LAST: break; default: return; } }
static void _ephoto_thumb_browser_show(Ephoto *ephoto, Ephoto_Entry *entry) { DBG("entry '%s'", entry ? entry->path : ""); ephoto_single_browser_entry_set(ephoto->single_browser, NULL); ephoto_slideshow_entry_set(ephoto->slideshow, NULL); elm_pager_content_promote(ephoto->pager, ephoto->thumb_browser); _ephoto_state_set(ephoto, EPHOTO_STATE_THUMB); ephoto_title_set(ephoto, ephoto->config->directory); if ((entry) && (entry->item)) elm_gengrid_item_bring_in(entry->item); }
void GengridItemBase::BringInItem(Elm_Gengrid_Item_Scrollto_Type type) { elm_gengrid_item_bring_in(item, type); }