![]() |
Qt 6.x
The Qt SDK
|
Manages a list of QWindowsScreen. More...
#include <qwindowsscreen.h>
Collaboration diagram for QWindowsScreenManager:Public Types | |
| using | WindowsScreenList = QList< QWindowsScreen * > |
Public Member Functions | |
| QWindowsScreenManager () | |
| void | initialize () |
| ~QWindowsScreenManager () | |
| void | clearScreens () |
| bool | handleScreenChanges () |
| Synchronizes the screen list, adds new screens, removes deleted ones and propagates resolution changes to QWindowSystemInterface. | |
| const WindowsScreenList & | screens () const |
| const QWindowsScreen * | screenAtDp (const QPoint &p) const |
| const QWindowsScreen * | screenForHwnd (HWND hwnd) const |
Static Public Member Functions | |
| static bool | isSingleScreen () |
Manages a list of QWindowsScreen.
Listens for changes and notifies QWindowSystemInterface about changed/ added/deleted screens.
Definition at line 102 of file qwindowsscreen.h.
Definition at line 106 of file qwindowsscreen.h.
|
default |
| QWindowsScreenManager::~QWindowsScreenManager | ( | ) |
Definition at line 687 of file qwindowsscreen.cpp.
| void QWindowsScreenManager::clearScreens | ( | ) |
Definition at line 804 of file qwindowsscreen.cpp.
References QWindowSystemInterface::handleScreenRemoved(), QList< T >::isEmpty(), and QList< T >::takeLast().
Referenced by QWindowsContext::~QWindowsContext().
Here is the call graph for this function:
Here is the caller graph for this function:| bool QWindowsScreenManager::handleScreenChanges | ( | ) |
Synchronizes the screen list, adds new screens, removes deleted ones and propagates resolution changes to QWindowSystemInterface.
Definition at line 769 of file qwindowsscreen.cpp.
References QList< T >::at(), QList< T >::front(), QWindowSystemInterface::handleScreenAdded(), i, indexOfMonitor(), QWindowsTheme::instance(), QWindowsScreenData::LockScreen, monitorData(), QWindowsScreenData::PrimaryScreen, QList< T >::push_back(), qCDebug, and QList< T >::size().
Referenced by initialize(), qDisplayChangeObserverWndProc(), and QWindowsContext::windowsProc().
Here is the call graph for this function:
Here is the caller graph for this function:| void QWindowsScreenManager::initialize | ( | ) |
Definition at line 667 of file qwindowsscreen.cpp.
References className, QWindowsContext::classNamePrefix(), handleScreenChanges(), QWindowsContext::instance(), Q_ASSERT, qCDebug, qDisplayChangeObserverWndProc(), and QWindowsContext::registerWindowClass().
Referenced by QWindowsIntegration::QWindowsIntegration().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 692 of file qwindowsscreen.cpp.
References QWindowsContext::instance(), QWindowsContext::screenManager(), screens(), and QList< T >::size().
Referenced by QWindowsWindow::checkForScreenChanged(), QWindowsGeometryHint::frame(), and QWindowsGeometryHint::frame().
Here is the call graph for this function:
Here is the caller graph for this function:| const QWindowsScreen * QWindowsScreenManager::screenAtDp | ( | const QPoint & | p | ) | const |
Definition at line 811 of file qwindowsscreen.cpp.
Referenced by QWindowsOleDropSource::createCursors(), and windowPlacementOffset().
Here is the caller graph for this function:| const QWindowsScreen * QWindowsScreenManager::screenForHwnd | ( | HWND | hwnd | ) | const |
Definition at line 820 of file qwindowsscreen.cpp.
References QList< T >::cbegin(), QList< T >::cend(), and it.
Referenced by QWindowsWindow::checkForScreenChanged().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 115 of file qwindowsscreen.h.
Referenced by isSingleScreen(), QWindowsScreen::virtualSiblings(), and windowPlacementOffset().
Here is the caller graph for this function: