Add wxWebView::SetZoomFactor(float) and GetZoomFactor()
The new method allows to set the zoom level more precisely than the existing SetZoom(wxWebViewZoom). Also improve the webview sample by using radio menu items instead of check items and manually resetting them. Closes https://github.com/wxWidgets/wxWidgets/pull/1894 Closes #18769.
This commit is contained in:
committed by
Vadim Zeitlin
parent
dc9040cc89
commit
895424ecc0
@@ -201,8 +201,10 @@ public:
|
||||
//Zoom
|
||||
virtual bool CanSetZoomType(wxWebViewZoomType type) const = 0;
|
||||
virtual wxWebViewZoom GetZoom() const = 0;
|
||||
virtual float GetZoomFactor() const = 0;
|
||||
virtual wxWebViewZoomType GetZoomType() const = 0;
|
||||
virtual void SetZoom(wxWebViewZoom zoom) = 0;
|
||||
virtual void SetZoomFactor(float zoom) = 0;
|
||||
virtual void SetZoomType(wxWebViewZoomType zoomType) = 0;
|
||||
|
||||
//Selection
|
||||
|
Reference in New Issue
Block a user