Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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 ()
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 ()

Detailed Description

Manages a list of QWindowsScreen.

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

See also
QWindowsScreen

Definition at line 106 of file qwindowsscreen.h.

Member Typedef Documentation

◆ WindowsScreenList

Constructor & Destructor Documentation

◆ QWindowsScreenManager()

QWindowsScreenManager::QWindowsScreenManager ( )
default

◆ ~QWindowsScreenManager()

QWindowsScreenManager::~QWindowsScreenManager ( )
default

Member Function Documentation

◆ clearScreens()

void QWindowsScreenManager::clearScreens ( )

Definition at line 1079 of file qwindowsscreen.cpp.

◆ destroyWindow()

void QWindowsScreenManager::destroyWindow ( )

Definition at line 939 of file qwindowsscreen.cpp.

◆ handleScreenChanges()

bool QWindowsScreenManager::handleScreenChanges ( )

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

Definition at line 1048 of file qwindowsscreen.cpp.

References QWindowsTheme::instance(), and QWindowsTheme::refreshFonts().

Referenced by initialize().

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

◆ initialize()

void QWindowsScreenManager::initialize ( )

Definition at line 909 of file qwindowsscreen.cpp.

References handleScreenChanges(), and QWindowsWindowClassRegistry::instance().

Here is the call graph for this function:

◆ isSingleScreen()

bool QWindowsScreenManager::isSingleScreen ( )
static

Definition at line 948 of file qwindowsscreen.cpp.

References QWindowsContext::instance(), and QWindowsContext::screenManager().

Referenced by QWindowsWindow::checkForScreenChanged(), 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 1086 of file qwindowsscreen.cpp.

Referenced by QWindowsOleDropSource::createCursors(), QWindowsGeometryHint::frame(), windowPlacementOffset(), and QWindowsSystemTrayIcon::winEvent().

Here is the caller graph for this function:

◆ screenForHwnd()

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

Definition at line 1109 of file qwindowsscreen.cpp.

◆ screenForRect()

const QWindowsScreen * QWindowsScreenManager::screenForRect ( const RECT * rect) const

Definition at line 1115 of file qwindowsscreen.cpp.

◆ screens()

const WindowsScreenList & QWindowsScreenManager::screens ( ) const
inline

Definition at line 120 of file qwindowsscreen.h.


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