Ultralight C++ API 1.3.0
Loading...
Searching...
No Matches
Monitor.h
Go to the documentation of this file.
1/******************************************************************************
2 * This file is a part of Ultralight, an ultra-portable web-browser engine. *
3 * *
4 * See <https://ultralig.ht> for licensing and more. *
5 * *
6 * (C) 2023 Ultralight, Inc. *
7 *****************************************************************************/
8#pragma once
9#include "Defines.h"
10
11namespace ultralight {
12
13///
14/// Monitor class, represents a platform monitor.
15///
17public:
18 virtual ~Monitor() {}
19
20 ///
21 /// Get the DPI scale (1.0 = 100%)
22 ///
23 virtual double scale() const = 0;
24
25 ///
26 /// Get the width of the monitor.
27 ///
28 virtual uint32_t width() const = 0;
29
30 /// Get the height of the monitor.
31 ///
32 virtual uint32_t height() const = 0;
33};
34
35} // namespace ultralight
#define AExport
Definition Defines.h:42
Monitor class, represents a platform monitor.
Definition Monitor.h:16
virtual uint32_t width() const =0
Get the width of the monitor.
virtual double scale() const =0
Get the DPI scale (1.0 = 100%)
virtual ~Monitor()
Definition Monitor.h:18
virtual uint32_t height() const =0
Get the height of the monitor.
Definition App.h:14