Lines Matching defs:zoom
148 } zoom;
626 // viewport meta tag is implemented using zoom. When scale zoom is supported by webkit-efl,
627 // this functionality will be modified by the scale zoom patch.
883 static Eina_Bool _ewk_view_smart_zoom_set(Ewk_View_Smart_Data* sd, float zoom, Evas_Coord cx, Evas_Coord cy)
902 ret = ewk_frame_zoom_set(sd->main_frame, zoom);
918 static Eina_Bool _ewk_view_smart_pre_render_region(Ewk_View_Smart_Data* sd, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h, float zoom)
920 WRN("not supported by engine. sd=%p area=%d,%d+%dx%d, zoom=%f",
921 sd, x, y, w, h, zoom);
925 static Eina_Bool _ewk_view_smart_pre_render_relative_radius(Ewk_View_Smart_Data* sd, unsigned int n, float zoom)
927 WRN("not supported by engine. sd=%p, n=%u zoom=%f",
928 sd, n, zoom);
939 sd->animated_zoom.zoom.start = 0.0;
940 sd->animated_zoom.zoom.end = 0.0;
941 sd->animated_zoom.zoom.current = 0.0;
950 evas_object_smart_callback_call(sd->self, "zoom,animated,end", 0);
965 return ((priv->animated_zoom.zoom.range * delta)
966 + priv->animated_zoom.zoom.start);
988 ewk_view_zoom_set(sd->self, priv->animated_zoom.zoom.end, cx, cy);
993 sd->animated_zoom.zoom.current = _ewk_view_zoom_animated_current(priv);
994 sd->api->zoom_weak_set(sd, sd->animated_zoom.zoom.current, cx, cy);
1113 * size. It's automatically scaled based on zoom, but will not change
1120 * based on zoom level.
1122 * based on zoom level.
1868 * Get the current zoom level of main frame.
1870 * @param o view object to query zoom level.
1872 * @return current zoom level in use or -1.0 on error.
1881 * Set the current zoom level of main frame.
1883 * @param o view object to set zoom level.
1884 * @param zoom new level to use.
1890 Eina_Bool ewk_view_zoom_set(Evas_Object* o, float zoom, Evas_Coord cx, Evas_Coord cy)
1903 if (zoom < priv->settings.zoom_range.min_scale) {
1904 WRN("zoom level is < %f : %f", (double)priv->settings.zoom_range.min_scale, (double)zoom);
1907 if (zoom > priv->settings.zoom_range.max_scale) {
1908 WRN("zoom level is > %f : %f", (double)priv->settings.zoom_range.max_scale, (double)zoom);
1921 return sd->api->zoom_set(sd, zoom, cx, cy);
1943 * Set the current zoom level of backing store, centered at given point.
1957 * set ewk_view_zoom_animated_mark_start() to actual webkit zoom
1959 * ewk_view_zoom_animated_mark_current() to given zoom level.
1961 * @param o view object to set weak zoom level.
1962 * @param zoom level to scale backing store.
1968 Eina_Bool ewk_view_zoom_weak_set(Evas_Object* o, float zoom, Evas_Coord cx, Evas_Coord cy)
1981 if (zoom < priv->settings.zoom_range.min_scale) {
1982 WRN("zoom level is < %f : %f", (double)priv->settings.zoom_range.min_scale, (double)zoom);
1985 if (zoom > priv->settings.zoom_range.max_scale) {
1986 WRN("zoom level is > %f : %f", (double)priv->settings.zoom_range.max_scale, (double)zoom);
1999 sd->animated_zoom.zoom.start = ewk_frame_zoom_get(sd->main_frame);
2000 sd->animated_zoom.zoom.end = zoom;
2001 sd->animated_zoom.zoom.current = zoom;
2002 return sd->api->zoom_weak_set(sd, zoom, cx, cy);
2006 zoom animation state to given zoom.
2008 * This does not modify any actual zoom in WebKit or backing store,
2009 * just set the Ewk_View_Smart_Data->animated_zoom.zoom.start so
2013 * @param zoom new start value.
2023 Eina_Bool ewk_view_zoom_animated_mark_start(Evas_Object* o, float zoom)
2026 sd->animated_zoom.zoom.start = zoom;
2031 * Mark internal zoom animation state to given zoom.
2033 * This does not modify any actual zoom in WebKit or backing store,
2034 * just set the Ewk_View_Smart_Data->animated_zoom.zoom.end so
2038 * @param zoom new end value.
2048 Eina_Bool ewk_view_zoom_animated_mark_end(Evas_Object* o, float zoom)
2051 sd->animated_zoom.zoom.end = zoom;
2056 * Mark internal zoom animation state to given zoom.
2058 * This does not modify any actual zoom in WebKit or backing store,
2059 * just set the Ewk_View_Smart_Data->animated_zoom.zoom.current so
2063 * @param zoom new current value.
2073 Eina_Bool ewk_view_zoom_animated_mark_current(Evas_Object* o, float zoom)
2076 sd->animated_zoom.zoom.current = zoom;
2081 * Unmark internal zoom animation state.
2100 * Set the current zoom level while animating.
2102 * If the view was already animating to another zoom, it will start
2103 * from current point to the next provided zoom (@a zoom parameter)
2114 * @param zoom final zoom level to use.
2116 * @param cx offset inside object that defines zoom center. 0 is left side.
2117 * @param cy offset inside object that defines zoom center. 0 is top side.
2119 * because zoom is too small/big.
2121 Eina_Bool ewk_view_zoom_animated_set(Evas_Object* o, float zoom, float duration, Evas_Coord cx, Evas_Coord cy)
2134 if (zoom < priv->settings.zoom_range.min_scale) {
2135 WRN("zoom level is < %f : %f", (double)priv->settings.zoom_range.min_scale, (double)zoom);
2138 if (zoom > priv->settings.zoom_range.max_scale) {
2139 WRN("zoom level is > %f : %f", (double)priv->settings.zoom_range.max_scale, (double)zoom);
2144 priv->animated_zoom.zoom.start = _ewk_view_zoom_animated_current(priv);
2146 priv->animated_zoom.zoom.start = ewk_frame_zoom_get(sd->main_frame);
2159 priv->animated_zoom.zoom.end = zoom;
2160 priv->animated_zoom.zoom.range = (priv->animated_zoom.zoom.end - priv->animated_zoom.zoom.start);
2163 sd->animated_zoom.zoom.current = priv->animated_zoom.zoom.start;
2164 sd->animated_zoom.zoom.start = priv->animated_zoom.zoom.start;
2165 sd->animated_zoom.zoom.end = priv->animated_zoom.zoom.end;
2171 * Query if zoom level just applies to text and not other elements.
2184 * Set if zoom level just applies to text and not other elements.
2187 * @param setting @c EINA_TRUE if zoom should just be applied to text.
2214 * @param x absolute coordinate (0=left) to pre-render at zoom.
2215 * @param y absolute coordinate (0=top) to pre-render at zoom.
2216 * @param w width to pre-render starting from @a x at zoom.
2217 * @param h height to pre-render starting from @a y at zoom.
2218 * @param zoom desired zoom.
2225 Eina_Bool ewk_view_pre_render_region(Evas_Object* o, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h, float zoom)
2233 /* When doing animated zoom it's not possible to call pre-render since it
2246 cw *= zoom / cur_zoom;
2247 ch *= zoom / cur_zoom;
2248 DBG("region %d,%d+%dx%d @ %f contents=%dx%d", x, y, w, h, zoom, cw, ch);
2265 return sd->api->pre_render_region(sd, x, y, w, h, zoom);
4291 * Sets the zoom range.
4294 * @param min_scale minimum value of zoom range.
4295 * @param max_scale maximum value of zoom range.
4297 * @return @c EINA_TRUE if zoom range is changed, @c EINA_FALSE if not or failure.
4316 * Gets the minimum value of zoom range.
4320 * @return minimum value of zoom range.
4331 * Gets the maximum value of zoom range.
4335 * @return maximum value of zoom range.
4346 * Sets if zoom is enabled.
4349 * @param user_scalable boolean pointer in which to enable zoom. It defaults
4361 * Gets if zoom is enabled.
4366 * @return @c EINA_TRUE if zoom is enabled, @c EINA_FALSE if not.
4382 * @return @c EINA_TRUE if zoom is enabled, @c EINA_FALSE if not.