Home | History | Annotate | Download | only in ewk

Lines Matching defs:cx

883 static Eina_Bool _ewk_view_smart_zoom_set(Ewk_View_Smart_Data* sd, float zoom, Evas_Coord cx, Evas_Coord cy)
893 px = (double)(x + cx) / (w + sd->view.w);
905 x = (w + sd->view.w) * px - cx;
972 Evas_Coord cx, cy;
976 cx = priv->animated_zoom.center.x;
979 // TODO: progressively center (cx, cy) -> (view.x + view.h/2, view.y + view.h/2)
980 if (cx >= sd->view.w)
981 cx = sd->view.w - 1;
988 ewk_view_zoom_set(sd->self, priv->animated_zoom.zoom.end, cx, cy);
994 sd->api->zoom_weak_set(sd, sd->animated_zoom.zoom.current, cx, cy);
1885 * @param cx x of center coordinate
1890 Eina_Bool ewk_view_zoom_set(Evas_Object* o, float zoom, Evas_Coord cx, Evas_Coord cy)
1912 if (cx >= sd->view.w)
1913 cx = sd->view.w - 1;
1916 if (cx < 0)
1917 cx = 0;
1921 return sd->api->zoom_set(sd, zoom, cx, cy);
1963 * @param cx horizontal center offset, relative to object (w/2 is middle).
1968 Eina_Bool ewk_view_zoom_weak_set(Evas_Object* o, float zoom, Evas_Coord cx, Evas_Coord cy)
1990 if (cx >= sd->view.w)
1991 cx = sd->view.w - 1;
1994 if (cx < 0)
1995 cx = 0;
2002 return sd->api->zoom_weak_set(sd, zoom, cx, cy);
2116 * @param cx offset inside object that defines zoom center. 0 is left side.
2121 Eina_Bool ewk_view_zoom_animated_set(Evas_Object* o, float zoom, float duration, Evas_Coord cx, Evas_Coord cy)
2150 if (cx < 0)
2151 cx = 0;
2161 priv->animated_zoom.center.x = cx;
4046 cx, Evas_Coord cy, Evas_Coord cw, Evas_Coord ch, Eina_Bool main_frame)
4049 o, dx, dy, sx, sy, sw, sh, cx, cy, cw, ch);
4051 if ((sx != cx) || (sy != cy) || (sw != cw) || (sh != ch))
4053 sx, sy, sw, sh, cx, cy, cw, ch);