diff options
author | Tommi Komulainen <tko@litl.com> | 2009-08-25 15:05:32 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marcopg@litl.com> | 2010-07-27 22:04:22 (GMT) |
commit | aded6eb5272ccb4f9b90ee529bdb014ffaa59031 (patch) | |
tree | dde7bd63762ca9fbcf17805809ebbd7c13284ea1 /browser-plugin/plugin.cpp | |
parent | 60cc60c16e52601993c77076dab3eeb9d1f0ab1a (diff) |
browser-plugin: add zoom property
Example:
plugin.zoom = plugin.zoom * 1.5;
Diffstat (limited to 'browser-plugin/plugin.cpp')
-rw-r--r-- | browser-plugin/plugin.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/browser-plugin/plugin.cpp b/browser-plugin/plugin.cpp index 8398db3..7d79100 100644 --- a/browser-plugin/plugin.cpp +++ b/browser-plugin/plugin.cpp @@ -80,6 +80,19 @@ Plugin::ZoomOut () } void +Plugin::SetZoom (double zoom) +{ + ev_view_set_sizing_mode (EV_VIEW (mView), EV_SIZING_FREE); + ev_view_set_zoom (EV_VIEW (mView), zoom, FALSE); +} + +double +Plugin::GetZoom (void) const +{ + return ev_view_get_zoom (EV_VIEW (mView)); +} + +void Plugin::FindNext (const char *text) { } |