Molybden API
Loading...
Searching...
No Matches
zoom.hpp
1// Copyright (c) 2000-2024 TeamDev. 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
10#include "molybden/zoom/zoom_level.hpp"
11
12namespace molybden {
13
14class Browser;
15
27class Zoom {
28 public:
32 virtual std::shared_ptr<Browser> browser() = 0;
33
37 virtual ZoomLevel level() = 0;
38
44 virtual void setLevel(ZoomLevel level) = 0;
45
49 virtual void in() = 0;
50
54 virtual void out() = 0;
55
60 virtual void reset() = 0;
61
67 virtual bool isEnabled() = 0;
68
72 virtual void enable() = 0;
73
80 virtual void disable() = 0;
81};
82} // namespace molybden
83
84#endif // MOLYBDEN_ZOOM_HPP
Configures zoom level for the domain of the currently loaded web page.
Definition zoom.hpp:27
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.