diff options
Diffstat (limited to 'src/libs/dxvk-native-1.9.2a/src/wsi/wsi_monitor.h')
-rw-r--r-- | src/libs/dxvk-native-1.9.2a/src/wsi/wsi_monitor.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/libs/dxvk-native-1.9.2a/src/wsi/wsi_monitor.h b/src/libs/dxvk-native-1.9.2a/src/wsi/wsi_monitor.h new file mode 100644 index 00000000..d0d324cb --- /dev/null +++ b/src/libs/dxvk-native-1.9.2a/src/wsi/wsi_monitor.h @@ -0,0 +1,48 @@ +#pragma once + +#include <windows.h> + +#include <array> +#include <cstdint> + +namespace dxvk::wsi { + + /** + * \brief Default monitor + * + * \returns The monitor of given index + */ + HMONITOR getDefaultMonitor(); + + /** + * \brief Enumerators monitors on the system + * + * \returns The monitor of given index + */ + HMONITOR enumMonitors(uint32_t index); + + /** + * \brief Get the GDI name of a HMONITOR + * + * Get the GDI Device Name of a HMONITOR to + * return to the end user. + * + * This typically looks like \.\\DISPLAY1 + * and has a maximum length of 32 chars. + * + * \param [in] hMonitor The monitor + * \param [out] Name The GDI display name + * \returns \c true on success, \c false if an error occured + */ + bool getDisplayName( + HMONITOR hMonitor, + WCHAR (&Name)[32]); + + /** + * \brief Get the encompassing coords of a monitor + */ + bool getDesktopCoordinates( + HMONITOR hMonitor, + RECT* pRect); + +} |