*/
EAPI Elm_Web_Zoom_Mode elm_web_zoom_mode_get(const Evas_Object *obj);
/**
- * Gets whether text-only zoom is set
- *
- * @param obj The web object
- *
- * @return EINA_TRUE if zoom is set to affect only text, EINA_FALSE
- * otherwise
- *
- * @see elm_web_zoom_text_only_set()
- */
- EAPI Eina_Bool elm_web_zoom_text_only_get(const Evas_Object *obj);
- /**
- * Enables or disables zoom to affect only text
- *
- * If set, then the zoom level set to the page will only be applied on text,
- * leaving other objects, such as images, at their original size.
- *
- * @param obj The web object
- * @param setting EINA_TRUE to use text-only zoom, EINA_FALSE to have zoom
- * affect the entire page
- */
- EAPI void elm_web_zoom_text_only_set(Evas_Object *obj, Eina_Bool setting);
- /**
* Shows the given region in the web object
*
* @param obj The web object
Evas_Coord fw, fh, pw, ph;
if (!ewk_frame_contents_size_get(frame, &fw, &fh))
return;
- z = ewk_frame_zoom_get(frame);
+ z = ewk_frame_page_zoom_get(frame);
fw /= z;
fh /= z;
if ((fw > 0) && (fh > 0))
Evas_Coord fw, fh, pw, ph;
if (!ewk_frame_contents_size_get(frame, &fw, &fh))
return;
- z = ewk_frame_zoom_get(frame);
+ z = ewk_frame_page_zoom_get(frame);
fw /= z;
fh /= z;
if ((fw > 0) && (fh > 0))
#endif
}
-EAPI Eina_Bool
-elm_web_zoom_text_only_get(const Evas_Object *obj)
-{
- ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE;
-#ifdef HAVE_ELEMENTARY_WEB
- Widget_Data *wd = elm_widget_data_get(obj);
- if (!wd) return EINA_FALSE;
- return ewk_view_zoom_text_only_get(wd->ewk_view);
-#else
- return EINA_FALSE;
-#endif
-}
-
-EAPI void
-elm_web_zoom_text_only_set(Evas_Object *obj, Eina_Bool setting)
-{
- ELM_CHECK_WIDTYPE(obj, widtype);
-#ifdef HAVE_ELEMENTARY_WEB
- Widget_Data *wd = elm_widget_data_get(obj);
- if (!wd) return;
- ewk_view_zoom_text_only_set(wd->ewk_view, setting);
-#else
- (void)setting;
-#endif
-}
-
EAPI void
elm_web_region_show(Evas_Object *obj, int x, int y, int w __UNUSED__, int h __UNUSED__)
{
int fw, fh, zw, zh, rx, ry;
float zoom;
ewk_frame_contents_size_get(frame, &fw, &fh);
- zoom = ewk_frame_zoom_get(frame);
+ zoom = ewk_frame_page_zoom_get(frame);
zw = fw / zoom;
zh = fh / zoom;
rx = (x * fw) / zw;
float zoom;
ewk_frame_contents_size_get(frame, &fw, &fh);
ewk_frame_scroll_pos_get(frame, &sx, &sy);
- zoom = ewk_frame_zoom_get(frame);
+ zoom = ewk_frame_page_zoom_get(frame);
zw = fw / zoom;
zh = fh / zoom;
rx = (x * fw) / zw;