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>.
Loading...
Searching...
No Matches
QWindowsScreenManager Class Reference

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 WindowsScreenListscreens () const
 
const QWindowsScreenscreenAtDp (const QPoint &p) const
 
const QWindowsScreenscreenForHwnd (HWND hwnd) const
 

Static Public Member Functions

static bool isSingleScreen ()
 

Detailed Description

Manages a list of QWindowsScreen.

Listens for changes and notifies QWindowSystemInterface about changed/ added/deleted screens.

See also
QWindowsScreen

Definition at line 100 of file qwindowsscreen.h.

Member Typedef Documentation

◆ WindowsScreenList

Constructor & Destructor Documentation

◆ QWindowsScreenManager()

QWindowsScreenManager::QWindowsScreenManager ( )
default

◆ ~QWindowsScreenManager()

QWindowsScreenManager::~QWindowsScreenManager ( )

Definition at line 701 of file qwindowsscreen.cpp.

Member Function Documentation

◆ clearScreens()

void QWindowsScreenManager::clearScreens ( )

Definition at line 818 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:

◆ handleScreenChanges()

bool QWindowsScreenManager::handleScreenChanges ( )

Synchronizes the screen list, adds new screens, removes deleted ones and propagates resolution changes to QWindowSystemInterface.

Definition at line 783 of file qwindowsscreen.cpp.

References QList< T >::at(), QWindowSystemInterface::handleScreenAdded(), i, indexOfMonitor(), QWindowsTheme::instance(), QWindowsScreenData::LockScreen, monitorData(), QWindowsScreenData::PrimaryScreen, QList< T >::push_back(), qCDebug, and QList< T >::size().

Referenced by initialize(), and QWindowsContext::windowsProc().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initialize()

void QWindowsScreenManager::initialize ( )

Definition at line 681 of file qwindowsscreen.cpp.

References className, QWindowsContext::classNamePrefix(), handleScreenChanges(), QWindowsContext::instance(), Q_ASSERT, qCDebug, and qDisplayChangeObserverWndProc().

Referenced by QWindowsIntegration::QWindowsIntegration().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isSingleScreen()

bool QWindowsScreenManager::isSingleScreen ( )
static

Definition at line 706 of file qwindowsscreen.cpp.

References QWindowsContext::instance().

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:

◆ screenAtDp()

const QWindowsScreen * QWindowsScreenManager::screenAtDp ( const QPoint & p) const

Definition at line 825 of file qwindowsscreen.cpp.

Referenced by windowPlacementOffset().

+ Here is the caller graph for this function:

◆ screenForHwnd()

const QWindowsScreen * QWindowsScreenManager::screenForHwnd ( HWND hwnd) const

Definition at line 834 of file qwindowsscreen.cpp.

References QList< T >::cbegin(), QList< T >::cend(), and it.

+ Here is the call graph for this function:

◆ screens()

const WindowsScreenList & QWindowsScreenManager::screens ( ) const
inline

Definition at line 113 of file qwindowsscreen.h.

Referenced by windowPlacementOffset().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: