Molybden API
|
Configures zoom level for the domain of the currently loaded web page. More...
#include <zoom.hpp>
Public Member Functions | |
virtual std::shared_ptr< Browser > | browser ()=0 |
The Browser instance of this zoom. | |
virtual ZoomLevel | level ()=0 |
The zoom level associated with the domain of the currently loaded web page. | |
virtual void | setLevel (ZoomLevel level)=0 |
Updates the zoom level for the domain of the currently loaded web page. | |
virtual void | in ()=0 |
Performs zoom in on the currently loaded web page. | |
virtual void | out ()=0 |
Performs zoom out on the currently loaded web page. | |
virtual void | reset ()=0 |
Resets zoom level for the domain of the currently loaded web page to the default value. | |
virtual bool | isEnabled ()=0 |
Indicates whether zoom level can be changed or not. | |
virtual void | enable ()=0 |
Enables the possibility to change zoom levels for the loaded web pages. | |
virtual void | disable ()=0 |
Disables the possibility to change zoom levels for the loaded web pages and resets zoom level of the loaded web pages to the default value. | |
Configures zoom level for the domain of the currently loaded web page.
The zoom level is configured for each domain separately, so if you set zoom level for "a.com", it will not be applied for "b.com". If you change zoom level for one domain and then load another one, then the zoom level for another domain will be default.
The zoom level per domain configurations are kept by the Profile
instance, and they are preserved after closing a Browser
.
|
pure virtual |
Disables the possibility to change zoom levels for the loaded web pages and resets zoom level of the loaded web pages to the default value.
All attempts to change zoom level after that will be ignored.
|
pure virtual |
Indicates whether zoom level can be changed or not.
By default, it can be changed.
|
pure virtual |
Updates the zoom level for the domain of the currently loaded web page.
Does nothing if the zoom level is less than 0.