Add browser window scale acceser.

svn path=/trunk/netsurf/; revision=13491
This commit is contained in:
Michael Drake 2012-02-27 22:43:25 +00:00
parent feb44c7396
commit ed9fb931cd
2 changed files with 14 additions and 0 deletions

View File

@ -2071,6 +2071,19 @@ void browser_window_set_scale_internal(struct browser_window *bw, float scale)
}
/**
* Gets the scale of a browser window
*
* \param bw The browser window to scale
* \return
*/
float browser_window_get_scale(struct browser_window *bw)
{
return bw->scale;
}
/**
* Update URL bar for a given browser window to given URL
*

View File

@ -241,6 +241,7 @@ void browser_window_destroy(struct browser_window *bw);
void browser_window_reformat(struct browser_window *bw, bool background,
int width, int height);
void browser_window_set_scale(struct browser_window *bw, float scale, bool all);
float browser_window_get_scale(struct browser_window *bw);
/**
* Get access to any content, link URLs and objects (images) currently