Molybden API
Loading...
Searching...
No Matches
zoom.hpp
1// Copyright (c) 2000-2023 TeamDev Ltd. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_ZOOM_HPP
6#define MOLYBDEN_ZOOM_HPP
7
8#include <memory>
9#include "molybden/zoom/zoom_level.hpp"
10
11namespace molybden {
12
13class Browser;
14
26class Zoom {
27 public:
31 virtual std::shared_ptr<Browser> browser() = 0;
32
36 virtual ZoomLevel level() = 0;
37
43 virtual void setLevel(ZoomLevel level) = 0;
44
48 virtual void in() = 0;
49
53 virtual void out() = 0;
54
59 virtual void reset() = 0;
60
66 virtual bool isEnabled() = 0;
67
71 virtual void enable() = 0;
72
79 virtual void disable() = 0;
80};
81} // namespace molybden
82
83#endif // MOLYBDEN_ZOOM_HPP
Configures zoom level for the domain of the currently loaded web page.
Definition zoom.hpp:26
virtual bool isEnabled()=0
Indicates whether zoom level can be changed or not.
virtual void out()=0
Performs zoom out on the currently loaded web page.
virtual void enable()=0
Enables the possibility to change zoom levels for the loaded web pages.
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 disable()=0
Disables the possibility to change zoom levels for the loaded web pages and resets zoom level of the ...
virtual void in()=0
Performs zoom in 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 std::shared_ptr< Browser > browser()=0
The Browser instance of this zoom.