{
ELM_GLVIEW_ALPHA = 1,
ELM_GLVIEW_DEPTH = 2,
- ELM_GLVIEW_STENCIL = 4
- } Elm_GLView_Mode;
+ ELM_GLVIEW_STENCIL = 4
+ } Elm_GLView_Mode;
/**
- * Defines a policy for the glview resizing.
- *
+ * Defines a policy for the glview resizing.
+ *
* @note Default is ELM_GLVIEW_RESIZE_POLICY_RECREATE
*/
typedef enum _Elm_GLView_Resize_Policy
* selected and get selected. The event_info parameter is the
* segment item index.
*/
-
+
EAPI Evas_Object *elm_grid_add(Evas_Object *parent);
EAPI void elm_grid_size_set(Evas_Object *obj, int w, int h);
EAPI void elm_grid_size_get(Evas_Object *obj, int *w, int *h);
EAPI void elm_grid_clear(Evas_Object *obj, Eina_Bool clear);
EAPI void elm_grid_pack_set(Evas_Object *subobj, int x, int y, int w, int h);
EAPI void elm_grid_pack_get(Evas_Object *subobj, int *x, int *y, int *w, int *h);
-
+
#ifdef __cplusplus
}
#endif
_down_coord_eval(Smart_Data *sd, Evas_Coord *x, Evas_Coord *y)
{
Evas_Coord minx, miny;
-
+
if (sd->down.dir_x) *x = sd->down.sx - (*x - sd->down.x);
else *x = sd->down.sx;
if (sd->down.dir_y) *y = sd->down.sy - (*y - sd->down.y);
else *y = sd->down.sy;
-
+
if ((sd->down.dir_x) || (sd->down.dir_y))
{
if (!((sd->down.dir_x) && (sd->down.dir_y)))
}
sd->pan_func.min_get(sd->pan_obj, &minx, &miny);
-
+
if (*x < minx)
*x += (minx - *x) * _elm_config->thumbscroll_border_friction;
else if (sd->child.w <= sd->w)
*x += (sd->down.sx - *x) * _elm_config->thumbscroll_border_friction;
else if ((sd->child.w - sd->w + minx) < *x)
- *x += (sd->child.w - sd->w + minx - *x) *
+ *x += (sd->child.w - sd->w + minx - *x) *
_elm_config->thumbscroll_border_friction;
-
+
if (*y < miny)
*y += (miny - *y) * _elm_config->thumbscroll_border_friction;
else if (sd->child.h <= sd->h)
Evas_Coord x, y, dx, dy;
double t, dt;
} pos[60];
-
+
tdiff = sd->down.hist.est_timestamp_diff;
tnow = ecore_time_get() - tdiff;
t = tnow;
}
pos[i].x = x - basex;
pos[i].y = y - basey;
- pos[i].t =
+ pos[i].t =
sd->down.history[i].timestamp - sd->down.history[0].timestamp;
count++;
}
}
// printf("%3.5f %i %i\n", ecore_time_get(), sd->down.hold_y, fy);
}
-
+
elm_smart_scroller_child_pos_get(sd->smart_obj, &ox, &oy);
if (sd->down.dir_x)
{
(!elm_widget_drag_child_locked_y_get(sd->widget)))
oy = fy;
}
-
+
elm_smart_scroller_child_pos_set(sd->smart_obj, ox, oy);
return ECORE_CALLBACK_RENEW;
}
x += (sd->child.w - sd->w + minx - x) *
_elm_config->thumbscroll_border_friction;
}
-
+
sd->down.hold_x = x;
sd->down.hold_y = y;
if (!sd->down.hold_animator)