Ejemplo n.º 1
0
HAPI void page_scroller_show_region(Evas_Object *scroller, int idx)
{
	Evas_Object *index;
	int w, h;

	evas_object_geometry_get(scroller, NULL, NULL, &w, &h);
	elm_scroller_region_show(scroller, idx * w, 0, w, h);

	index = evas_object_data_get(scroller, "index");
	if (!index) {
		_E("cannot find index.");
	}
	_D("page index bring in to %d", idx);
	index_bring_in(index, idx);
}
void Scroller::showRegion (const Eflxx::Rect &rect)
{
  elm_scroller_region_show (o, rect.x (), rect.y (), rect.width (), rect.height ());
}