Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include "qwindowsscreen.h"
#include "qwindowscontext.h"
#include "qwindowswindow.h"
#include "qwindowsintegration.h"
#include "qwindowscursor.h"
#include "qwindowstheme.h"
#include <QtCore/qt_windows.h>
#include <QtCore/qsettings.h>
#include <QtGui/qpixmap.h>
#include <QtGui/qguiapplication.h>
#include <qpa/qwindowsysteminterface.h>
#include <QtCore/private/qsystemerror_p.h>
#include <QtGui/private/qedidparser_p.h>
#include <private/qhighdpiscaling_p.h>
#include <private/qwindowsfontdatabasebase_p.h>
#include <private/qpixmap_win_p.h>
#include <private/quniquehandle_p.h>
#include <QtGui/qscreen.h>
#include <QtCore/qdebug.h>
#include <memory>
#include <type_traits>
#include <cfgmgr32.h>
#include <setupapi.h>
#include <shellscalingapi.h>
Go to the source code of this file.
Typedefs | |
using | WindowsScreenDataList = QList<QWindowsScreenData> |
Functions | |
static QDpi | deviceDPI (HDC hdc) |
static QDpi | monitorDPI (HMONITOR hMonitor) |
static std::vector< DISPLAYCONFIG_PATH_INFO > | getPathInfo (const MONITORINFOEX &viewInfo) |
static void | setMonitorDataFromSetupApi (QWindowsScreenData &data, const std::vector< DISPLAYCONFIG_PATH_INFO > &pathGroup) |
static bool | monitorData (HMONITOR hMonitor, QWindowsScreenData *data) |
BOOL QT_WIN_CALLBACK | monitorEnumCallback (HMONITOR hMonitor, HDC, LPRECT, LPARAM p) |
static WindowsScreenDataList | monitorData () |
static QDebug | operator<< (QDebug dbg, const QWindowsScreenData &d) |
LRESULT QT_WIN_CALLBACK | qDisplayChangeObserverWndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
static int | indexOfMonitor (const QWindowsScreenManager::WindowsScreenList &screens, const QString &deviceName) |
static int | indexOfMonitor (const WindowsScreenDataList &screenData, const QString &deviceName) |
static void | moveToVirtualScreen (QWindow *w, const QScreen *newScreen) |
using WindowsScreenDataList = QList<QWindowsScreenData> |
Definition at line 118 of file qwindowsscreen.cpp.
|
inlinestatic |
Definition at line 39 of file qwindowsscreen.cpp.
Referenced by monitorData().
|
static |
Definition at line 53 of file qwindowsscreen.cpp.
Referenced by monitorData().
|
inlinestatic |
Definition at line 715 of file qwindowsscreen.cpp.
References QList< T >::at(), i, and QList< T >::size().
Referenced by QWindowsScreenManager::handleScreenChanges().
|
inlinestatic |
Definition at line 724 of file qwindowsscreen.cpp.
References i.
|
inlinestatic |
Definition at line 368 of file qwindowsscreen.cpp.
References monitorEnumCallback().
Referenced by QWindowsScreenManager::handleScreenChanges(), and monitorEnumCallback().
|
static |
Definition at line 263 of file qwindowsscreen.cpp.
References deviceDPI(), QImage::Format_RGB16, QImage::Format_RGB32, QString::fromWCharArray(), getPathInfo(), info, Qt::InvertedLandscapeOrientation, Qt::InvertedPortraitOrientation, Qt::LandscapeOrientation, QWindowsScreenData::LockScreen, monitorDPI(), Qt::PortraitOrientation, QWindowsScreenData::PrimaryScreen, qPrintable, qWarning, setMonitorDataFromSetupApi(), and QWindowsScreenData::VirtualDesktop.
|
inlinestatic |
Definition at line 44 of file qwindowsscreen.cpp.
Referenced by monitorData().
BOOL QT_WIN_CALLBACK monitorEnumCallback | ( | HMONITOR | hMonitor, |
HDC | , | ||
LPRECT | , | ||
LPARAM | p ) |
Definition at line 340 of file qwindowsscreen.cpp.
References i, it, monitorData(), and QWindowsScreenData::PrimaryScreen.
Referenced by monitorData().
Definition at line 734 of file qwindowsscreen.cpp.
References QPoint::manhattanLength(), QRect::moveTopLeft(), and QRect::topLeft().
|
static |
Definition at line 376 of file qwindowsscreen.cpp.
References d, QWindowsScreenData::LockScreen, QWindowsScreenData::PrimaryScreen, and QWindowsScreenData::VirtualDesktop.
LRESULT QT_WIN_CALLBACK qDisplayChangeObserverWndProc | ( | HWND | hwnd, |
UINT | message, | ||
WPARAM | wParam, | ||
LPARAM | lParam ) |
Definition at line 665 of file qwindowsscreen.cpp.
References context, QWindowsWindow::displayChanged(), QWindowsContext::instance(), QWindowsTheme::instance(), and qCDebug.
Referenced by QWindowsScreenManager::initialize().
|
static |
Definition at line 137 of file qwindowsscreen.cpp.
References QString::fromWCharArray(), qCDebug, qCWarning, QByteArray::resize(), QString::size(), and storage.
Referenced by monitorData().