Add browser window scale acceser.
svn path=/trunk/netsurf/; revision=13491
This commit is contained in:
parent
feb44c7396
commit
ed9fb931cd
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue