![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Manages a list of QWindowsScreen. More...
#include <qwindowsscreen.h>
Public Types | |
| using | WindowsScreenList = QList<QWindowsScreen *> |
Public Member Functions | |
| QWindowsScreenManager () | |
| void | initialize () |
| void | destroyWindow () |
| ~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 |
| const QWindowsScreen * | screenForRect (const RECT *rect) 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 100 of file qwindowsscreen.h.
Definition at line 104 of file qwindowsscreen.h.
|
default |
|
default |
| void QWindowsScreenManager::clearScreens | ( | ) |
Definition at line 861 of file qwindowsscreen.cpp.
| void QWindowsScreenManager::destroyWindow | ( | ) |
Definition at line 721 of file qwindowsscreen.cpp.
| bool QWindowsScreenManager::handleScreenChanges | ( | ) |
Synchronizes the screen list, adds new screens, removes deleted ones and propagates resolution changes to QWindowSystemInterface.
Definition at line 830 of file qwindowsscreen.cpp.
References QWindowsTheme::instance(), and QWindowsTheme::refreshFonts().
Referenced by initialize().
| void QWindowsScreenManager::initialize | ( | ) |
Definition at line 701 of file qwindowsscreen.cpp.
References handleScreenChanges().
|
static |
Definition at line 730 of file qwindowsscreen.cpp.
References QWindowsContext::instance(), and QWindowsContext::screenManager().
Referenced by QWindowsWindow::checkForScreenChanged(), and QWindowsGeometryHint::frame().
| const QWindowsScreen * QWindowsScreenManager::screenAtDp | ( | const QPoint & | p | ) | const |
Definition at line 868 of file qwindowsscreen.cpp.
Referenced by QWindowsOleDropSource::createCursors(), QWindowsGeometryHint::frame(), windowPlacementOffset(), and QWindowsSystemTrayIcon::winEvent().
| const QWindowsScreen * QWindowsScreenManager::screenForHwnd | ( | HWND | hwnd | ) | const |
Definition at line 891 of file qwindowsscreen.cpp.
| const QWindowsScreen * QWindowsScreenManager::screenForRect | ( | const RECT * | rect | ) | const |
Definition at line 897 of file qwindowsscreen.cpp.
|
inline |
Definition at line 114 of file qwindowsscreen.h.