OpenCPN Partial API docs
Loading...
Searching...
No Matches
displays.h
Go to the documentation of this file.
1/**************************************************************************
2 * Copyright (C) 2024 by David S. Register *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 * *
9 * This program is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12 * GNU General Public License for more details. *
13 * *
14 * You should have received a copy of the GNU General Public License *
15 * along with this program; if not, see <https://www.gnu.org/licenses/>. *
16 **************************************************************************/
17
24#ifndef OCPN_DISPLAYS_H
25#define OCPN_DISPLAYS_H
26
27#include <string>
28#include <vector>
29
33 std::string name;
34
36 size_t width_mm;
37
39 size_t height_mm;
40
42 size_t width;
43
45 size_t height;
46
49 size_t width_px;
50
53 size_t height_px;
54
56 size_t scale;
57};
58
60extern std::vector<OCPN_MonitorInfo> g_monitor_info;
61
64
65#endif // OCPN_DISPLAYS_H
std::vector< OCPN_MonitorInfo > g_monitor_info
Information about the monitors connected to the system.
Definition displays.cpp:45
void EnumerateMonitors()
Enumerate the monitors connected to the system.
Definition displays.cpp:108
Structure to hold information about a monitor.
Definition displays.h:31
size_t height_px
Height of the monitor in physical pixels, on eg.
Definition displays.h:53
size_t width
Width of the monitor in pixels.
Definition displays.h:42
size_t height_mm
Height of the monitor in millimeters.
Definition displays.h:39
size_t height
Height of the monitor in pixels.
Definition displays.h:45
size_t width_mm
Width of the monitor in millimeters.
Definition displays.h:36
size_t width_px
Width of the monitor in physical pixels, on eg.
Definition displays.h:49
size_t scale
Scaling factor in percent.
Definition displays.h:56
std::string name
Name of the monitor.
Definition displays.h:33