Molybden API
Loading...
Searching...
No Matches
molybden::Zoom Class Referenceabstract

Configures zoom level for the domain of the currently loaded web page. More...

#include <zoom.hpp>

Public Member Functions

virtual std::shared_ptr< Browserbrowser ()=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.
 

Detailed Description

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.

Member Function Documentation

◆ disable()

virtual void molybden::Zoom::disable ( )
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.

◆ isEnabled()

virtual bool molybden::Zoom::isEnabled ( )
pure virtual

Indicates whether zoom level can be changed or not.

By default, it can be changed.

◆ setLevel()

virtual void molybden::Zoom::setLevel ( ZoomLevel  level)
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.


The documentation for this class was generated from the following file: