Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QWindowsContext Class Reference

Singleton container for all relevant information. More...

#include <qwindowscontext.h>

+ Collaboration diagram for QWindowsContext:

Public Types

enum  SystemInfoFlags { SI_RTL_Extensions = 0x1 , SI_SupportsTouch = 0x2 , SI_SupportsPointer = 0x4 }
 
using HandleBaseWindowHash = QHash< HWND, QWindowsWindow * >
 

Public Member Functions

 QWindowsContext ()
 
 ~QWindowsContext ()
 
bool initTouch ()
 
bool initTouch (unsigned integrationOptions)
 
void registerTouchWindows ()
 
bool initTablet ()
 
bool initPointer (unsigned integrationOptions)
 
bool disposeTablet ()
 
bool initPowerNotificationHandler ()
 
int defaultDPI () const
 
QString registerWindowClass (const QWindow *w)
 
QString registerWindowClass (QString cname, WNDPROC proc, unsigned style=0, HBRUSH brush=nullptr, bool icon=false)
 
HWND createDummyWindow (const QString &classNameIn, const wchar_t *windowName, WNDPROC wndProc=nullptr, DWORD style=WS_OVERLAPPED)
 Convenience to create a non-visible, message-only dummy window for example used as clipboard watcher or for GL.
 
HDC displayContext () const
 
int screenDepth () const
 
void addWindow (HWND, QWindowsWindow *w)
 
void removeWindow (HWND)
 
QWindowsWindowfindClosestPlatformWindow (HWND) const
 
QWindowsWindowfindPlatformWindow (HWND) const
 
QWindowsWindowfindPlatformWindow (const QWindowsMenuBar *mb) const
 
QWindowfindWindow (HWND) const
 
QWindowsWindowfindPlatformWindowAt (HWND parent, const QPoint &screenPoint, unsigned cwex_flags) const
 
QWindowwindowUnderMouse () const
 
void clearWindowUnderMouse ()
 
bool windowsProc (HWND hwnd, UINT message, QtWindows::WindowsEventType et, WPARAM wParam, LPARAM lParam, LRESULT *result, QWindowsWindow **platformWindowPtr)
 Main windows procedure registered for windows.
 
QWindowkeyGrabber () const
 
void setKeyGrabber (QWindow *hwnd)
 
QSharedPointer< QWindowCreationContextsetWindowCreationContext (const QSharedPointer< QWindowCreationContext > &ctx)
 
QSharedPointer< QWindowCreationContextwindowCreationContext () const
 
void setDetectAltGrModifier (bool a)
 
unsigned systemInfo () const
 
bool useRTLExtensions () const
 
QList< int > possibleKeys (const QKeyEvent *e) const
 
HandleBaseWindowHashwindows ()
 
QWindowsMimeRegistrymimeConverter () const
 
QWindowsScreenManagerscreenManager ()
 
QWindowsTabletSupporttabletSupport () const
 
bool asyncExpose () const
 
void setAsyncExpose (bool value)
 

Static Public Member Functions

static QString classNamePrefix ()
 
static QWindowsContextinstance ()
 
static bool shouldHaveNonClientDpiScaling (const QWindow *window)
 
static void setTabletAbsoluteRange (int a)
 
static bool setProcessDpiAwareness (QtWindows::DpiAwareness dpiAwareness)
 
static QtWindows::DpiAwareness processDpiAwareness ()
 
static QtWindows::DpiAwareness windowDpiAwareness (HWND hwnd)
 
static bool isDarkMode ()
 
static bool isSessionLocked ()
 
static void forceNcCalcSize (HWND hwnd)
 
static bool systemParametersInfo (unsigned action, unsigned param, void *out, unsigned dpi=0)
 
static bool systemParametersInfoForScreen (unsigned action, unsigned param, void *out, const QPlatformScreen *screen=nullptr)
 
static bool systemParametersInfoForWindow (unsigned action, unsigned param, void *out, const QPlatformWindow *win=nullptr)
 
static bool nonClientMetrics (NONCLIENTMETRICS *ncm, unsigned dpi=0)
 
static bool nonClientMetricsForScreen (NONCLIENTMETRICS *ncm, const QPlatformScreen *screen=nullptr)
 
static bool nonClientMetricsForWindow (NONCLIENTMETRICS *ncm, const QPlatformWindow *win=nullptr)
 
static DWORD readAdvancedExplorerSettings (const wchar_t *subKey, DWORD defaultValue)
 
static bool filterNativeEvent (MSG *msg, LRESULT *result)
 
static bool filterNativeEvent (QWindow *window, MSG *msg, LRESULT *result)
 

Static Public Attributes

static int verbose = 0
 

Detailed Description

Singleton container for all relevant information.

Holds state information formerly stored in qapplication_win.cpp.

Definition at line 47 of file qwindowscontext.h.

Member Typedef Documentation

◆ HandleBaseWindowHash

Definition at line 51 of file qwindowscontext.h.

Member Enumeration Documentation

◆ SystemInfoFlags

Enumerator
SI_RTL_Extensions 
SI_SupportsTouch 
SI_SupportsPointer 

Definition at line 53 of file qwindowscontext.h.

Constructor & Destructor Documentation

◆ QWindowsContext()

QWindowsContext::QWindowsContext ( )
explicit

Definition at line 179 of file qwindowscontext.cpp.

References QString::fromLocal8Bit(), QByteArray::isEmpty(), qgetenv(), and QLoggingCategory::setFilterRules().

+ Here is the call graph for this function:

◆ ~QWindowsContext()

QWindowsContext::~QWindowsContext ( )

Definition at line 192 of file qwindowscontext.cpp.

References QWindowsScreenManager::clearScreens(), QWindowsContextPrivate::m_displayContext, QWindowsContextPrivate::m_oleInitializeResult, QWindowsContextPrivate::m_powerDummyWindow, QWindowsContextPrivate::m_powerNotification, and QWindowsContextPrivate::m_screenManager.

+ Here is the call graph for this function:

Member Function Documentation

◆ addWindow()

void QWindowsContext::addWindow ( HWND  hwnd,
QWindowsWindow w 
)

Definition at line 679 of file qwindowscontext.cpp.

References QHash< Key, T >::insert(), and QWindowsContextPrivate::m_windows.

Referenced by QWindowsWindow::QWindowsWindow().

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

◆ asyncExpose()

bool QWindowsContext::asyncExpose ( ) const

Definition at line 1483 of file qwindowscontext.cpp.

References QWindowsContextPrivate::m_asyncExpose.

◆ classNamePrefix()

QString QWindowsContext::classNamePrefix ( )
static

Definition at line 526 of file qwindowscontext.cpp.

References QLibraryInfo::isDebugBuild(), and str.

Referenced by createDummyWindow(), createTrayIconMessageWindow(), QWindowsScreenManager::initialize(), and registerWindowClass().

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

◆ clearWindowUnderMouse()

void QWindowsContext::clearWindowUnderMouse ( )

Definition at line 738 of file qwindowscontext.cpp.

References QWindowsMouseHandler::clearWindowUnderMouse(), QWindowsPointerHandler::clearWindowUnderMouse(), QWindowsContextPrivate::m_mouseHandler, QWindowsContextPrivate::m_pointerHandler, QWindowsContextPrivate::m_systemInfo, and SI_SupportsPointer.

+ Here is the call graph for this function:

◆ createDummyWindow()

HWND QWindowsContext::createDummyWindow ( const QString classNameIn,
const wchar_t *  windowName,
WNDPROC  wndProc = nullptr,
DWORD  style = WS_OVERLAPPED 
)

Convenience to create a non-visible, message-only dummy window for example used as clipboard watcher or for GL.

Definition at line 865 of file qwindowscontext.cpp.

References className, classNamePrefix(), and registerWindowClass().

Referenced by QWindowsTabletSupport::create(), and initPowerNotificationHandler().

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

◆ defaultDPI()

int QWindowsContext::defaultDPI ( ) const

Definition at line 506 of file qwindowscontext.cpp.

References QWindowsContextPrivate::m_defaultDPI.

◆ displayContext()

HDC QWindowsContext::displayContext ( ) const

Definition at line 511 of file qwindowscontext.cpp.

References QWindowsContextPrivate::m_displayContext.

◆ disposeTablet()

bool QWindowsContext::disposeTablet ( )

Definition at line 267 of file qwindowscontext.cpp.

◆ filterNativeEvent() [1/2]

static bool QWindowsContext::filterNativeEvent ( MSG msg,
LRESULT *  result 
)
static

Referenced by windowsProc().

+ Here is the caller graph for this function:

◆ filterNativeEvent() [2/2]

static bool QWindowsContext::filterNativeEvent ( QWindow window,
MSG msg,
LRESULT *  result 
)
static

◆ findClosestPlatformWindow()

QWindowsWindow * QWindowsContext::findClosestPlatformWindow ( HWND  hwnd) const

Definition at line 708 of file qwindowscontext.cpp.

References QWindowsContextPrivate::m_windows, QHash< Key, T >::value(), and window().

+ Here is the call graph for this function:

◆ findPlatformWindow() [1/2]

QWindowsWindow * QWindowsContext::findPlatformWindow ( const QWindowsMenuBar mb) const

Definition at line 694 of file qwindowscontext.cpp.

References QHash< Key, T >::cbegin(), QHash< Key, T >::cend(), it, and QWindowsContextPrivate::m_windows.

+ Here is the call graph for this function:

◆ findPlatformWindow() [2/2]

QWindowsWindow * QWindowsContext::findPlatformWindow ( HWND  hwnd) const

Definition at line 703 of file qwindowscontext.cpp.

References QWindowsContextPrivate::m_windows, and QHash< Key, T >::value().

Referenced by findPlatformWindowAt(), findWindow(), and windowsProc().

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

◆ findPlatformWindowAt()

QWindowsWindow * QWindowsContext::findPlatformWindowAt ( HWND  parent,
const QPoint screenPoint,
unsigned  cwex_flags 
) const

Definition at line 794 of file qwindowscontext.cpp.

References findPlatformWindow(), findPlatformWindowHelper(), parent, window(), QPoint::x(), and QPoint::y().

+ Here is the call graph for this function:

◆ findWindow()

QWindow * QWindowsContext::findWindow ( HWND  hwnd) const

Definition at line 725 of file qwindowscontext.cpp.

References findPlatformWindow().

+ Here is the call graph for this function:

◆ forceNcCalcSize()

void QWindowsContext::forceNcCalcSize ( HWND  hwnd)
static

Definition at line 879 of file qwindowscontext.cpp.

Referenced by QWindowsMenuBar::install(), and QWindowsWindow::updateFullFrameMargins().

+ Here is the caller graph for this function:

◆ initPointer()

bool QWindowsContext::initPointer ( unsigned  integrationOptions)

Definition at line 277 of file qwindowscontext.cpp.

References QWindowsIntegration::DontUseWMPointer, QWindowsContextPrivate::m_systemInfo, and SI_SupportsPointer.

Referenced by QWindowsIntegrationPrivate::parseOptions().

+ Here is the caller graph for this function:

◆ initPowerNotificationHandler()

bool QWindowsContext::initPowerNotificationHandler ( )

Definition at line 317 of file qwindowscontext.cpp.

References createDummyWindow(), QWindowsContextPrivate::m_powerDummyWindow, QWindowsContextPrivate::m_powerNotification, QStringLiteral, and qWindowsPowerWindowProc().

Referenced by QWindowsIntegrationPrivate::parseOptions().

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

◆ initTablet()

bool QWindowsContext::initTablet ( )

Definition at line 257 of file qwindowscontext.cpp.

References QWindowsTabletSupport::create().

Referenced by QWindowsIntegrationPrivate::parseOptions().

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

◆ initTouch() [1/2]

bool QWindowsContext::initTouch ( )

Definition at line 218 of file qwindowscontext.cpp.

References initTouch(), and QWindowsIntegration::instance().

Referenced by initTouch(), QWindowsIntegrationPrivate::parseOptions(), and windowsProc().

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

◆ initTouch() [2/2]

◆ instance()

QWindowsContext * QWindowsContext::instance ( )
static

Definition at line 469 of file qwindowscontext.cpp.

Referenced by QWindowsWindow::QWindowsWindow(), applyNewCursor(), QWindowsApplication::asyncExpose(), QWindowsWindow::checkForScreenChanged(), QWindowsCursor::clearOverrideCursor(), QWindowsTabletSupport::create(), WindowCreationData::create(), QWindowsOleDropSource::createCursors(), createDummyGLWindow(), QWindowsApplication::createMessageWindow(), createTrayIconMessageWindow(), QWindowsOleDataObject::EnumFormatEtc(), QWindowsInternalMimeData::formats_sys(), QWindowsGeometryHint::frame(), QWindowsGeometryHint::frame(), QWindowsOleDataObject::GetData(), QWindowsWindow::handleWmPaint(), QWindowsInternalMimeData::hasFormat_sys(), QWindowsScreenManager::initialize(), QWindowsWindow::initialize(), QWindowsScreenManager::isSingleScreen(), QWindowsApplication::isWinTabEnabled(), qDisplayChangeObserverWndProc(), QWindowsOleDataObject::QueryGetData(), qWindowsTabletSupportWndProc(), QWindowsApplication::registerMime(), QWindowsWindow::registerTouchWindow(), QWindowsClipboard::registerViewer(), QWindowsInternalMimeData::retrieveData_sys(), QWindowsApplication::setAsyncExpose(), QWindowsWindow::setKeyboardGrabEnabled(), QWindowsApplication::setTouchWindowTouchType(), QWindowsApplication::setWinTabEnabled(), startDoDragDrop(), QWindowsTheme::themeHint(), QWindowsWindow::topLevelOf(), QWindowsMouseHandler::translateTouchEvent(), QWindowsApplication::unregisterMime(), QWindowsScreen::virtualSiblings(), QWindowsScreen::windowAt(), windowPlacementOffset(), and QWindowsSystemTrayIcon::winEvent().

+ Here is the caller graph for this function:

◆ isDarkMode()

bool QWindowsContext::isDarkMode ( )
static

Definition at line 464 of file qwindowscontext.cpp.

References QWindowsContextPrivate::m_darkMode.

Referenced by QWindowsTheme::colorScheme(), WindowCreationData::create(), QWindowsApplication::isDarkMode(), QWindowsIntegration::setApplicationBadge(), and QWindowsWindow::windowEvent().

+ Here is the caller graph for this function:

◆ isSessionLocked()

bool QWindowsContext::isSessionLocked ( )
static

Definition at line 810 of file qwindowscontext.cpp.

References info.

Referenced by QWindowsClipboard::setMimeData().

+ Here is the caller graph for this function:

◆ keyGrabber()

QWindow * QWindowsContext::keyGrabber ( ) const

Definition at line 516 of file qwindowscontext.cpp.

References QWindowsKeyMapper::keyGrabber(), and QWindowsContextPrivate::m_keyMapper.

+ Here is the call graph for this function:

◆ mimeConverter()

QWindowsMimeRegistry & QWindowsContext::mimeConverter ( ) const

Definition at line 841 of file qwindowscontext.cpp.

References QWindowsContextPrivate::m_mimeConverter.

Referenced by QWindowsOleDataObject::EnumFormatEtc(), QWindowsInternalMimeData::formats_sys(), QWindowsOleDataObject::GetData(), QWindowsInternalMimeData::hasFormat_sys(), QWindowsOleDataObject::QueryGetData(), and QWindowsInternalMimeData::retrieveData_sys().

+ Here is the caller graph for this function:

◆ nonClientMetrics()

bool QWindowsContext::nonClientMetrics ( NONCLIENTMETRICS *  ncm,
unsigned  dpi = 0 
)
static

Definition at line 907 of file qwindowscontext.cpp.

References systemParametersInfo().

Referenced by nonClientMetricsForScreen(), and QWindowsTheme::refreshFonts().

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

◆ nonClientMetricsForScreen()

bool QWindowsContext::nonClientMetricsForScreen ( NONCLIENTMETRICS *  ncm,
const QPlatformScreen screen = nullptr 
)
static

Definition at line 914 of file qwindowscontext.cpp.

References nonClientMetrics(), qRound(), and screen.

Referenced by nonClientMetricsForWindow().

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

◆ nonClientMetricsForWindow()

bool QWindowsContext::nonClientMetricsForWindow ( NONCLIENTMETRICS *  ncm,
const QPlatformWindow win = nullptr 
)
static

Definition at line 921 of file qwindowscontext.cpp.

References nonClientMetricsForScreen(), QWidget::screen(), and win.

+ Here is the call graph for this function:

◆ possibleKeys()

QList< int > QWindowsContext::possibleKeys ( const QKeyEvent e) const

Definition at line 484 of file qwindowscontext.cpp.

References e, QWindowsContextPrivate::m_keyMapper, and QWindowsKeyMapper::possibleKeys().

Referenced by QWindowsIntegration::possibleKeys().

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

◆ processDpiAwareness()

QtWindows::DpiAwareness QWindowsContext::processDpiAwareness ( )
static

Definition at line 376 of file qwindowscontext.cpp.

References context, and dpiAwarenessContextToQtDpiAwareness().

Referenced by QWindowsIntegrationPrivate::parseOptions(), and setProcessDpiAwareness().

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

◆ readAdvancedExplorerSettings()

DWORD QWindowsContext::readAdvancedExplorerSettings ( const wchar_t *  subKey,
DWORD  defaultValue 
)
static

Definition at line 1493 of file qwindowscontext.cpp.

References QWinRegistryKey::dwordValue().

Referenced by QWindowsNativeFileDialogBase::setMode(), and QWindowsSystemTrayIcon::supportsMessages().

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

◆ registerTouchWindows()

void QWindowsContext::registerTouchWindows ( )

Definition at line 248 of file qwindowscontext.cpp.

References QCoreApplicationPrivate::is_app_running, QWindowsContextPrivate::m_systemInfo, QWindowsContextPrivate::m_windows, and SI_SupportsTouch.

Referenced by initTouch().

+ Here is the caller graph for this function:

◆ registerWindowClass() [1/2]

QString QWindowsContext::registerWindowClass ( const QWindow w)

Definition at line 545 of file qwindowscontext.cpp.

References classNamePrefix(), CS_DROPSHADOW, Qt::Dialog, icon, Qt::MSWindowsOwnDC, Qt::NoDropShadowWindowHint, QSurface::OpenGLSurface, Qt::Popup, Q_ASSERT, qWindowsWndProc(), registerWindowClass(), Qt::Tool, Qt::ToolTip, Qt::WindowSystemMenuHint, and Qt::WindowType_Mask.

Referenced by WindowCreationData::create(), createDummyWindow(), QWindowsScreenManager::initialize(), and registerWindowClass().

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

◆ registerWindowClass() [2/2]

QString QWindowsContext::registerWindowClass ( QString  cname,
WNDPROC  proc,
unsigned  style = 0,
HBRUSH  brush = nullptr,
bool  icon = false 
)

Definition at line 601 of file qwindowscontext.cpp.

References QSet< T >::contains(), QUuid::createUuid(), Qt::dec(), Qt::hex(), icon, QSet< T >::insert(), QWindowsContextPrivate::m_registeredWindowClassNames, qCDebug, qErrnoWarning(), qPrintable, QUuid::toString(), and QString::utf16().

+ Here is the call graph for this function:

◆ removeWindow()

void QWindowsContext::removeWindow ( HWND  hwnd)

Definition at line 684 of file qwindowscontext.cpp.

References QHash< Key, T >::end(), QHash< Key, T >::erase(), QHash< Key, T >::find(), it, QHash< HWND, QWindowsWindow * >::iterator, QWindowsKeyMapper::keyGrabber(), QWindowsContextPrivate::m_keyMapper, QWindowsContextPrivate::m_windows, and QWindowsKeyMapper::setKeyGrabber().

+ Here is the call graph for this function:

◆ screenDepth()

int QWindowsContext::screenDepth ( ) const

Definition at line 674 of file qwindowscontext.cpp.

References QWindowsContextPrivate::m_displayContext.

◆ screenManager()

◆ setAsyncExpose()

void QWindowsContext::setAsyncExpose ( bool  value)

Definition at line 1488 of file qwindowscontext.cpp.

References QWindowsContextPrivate::m_asyncExpose.

◆ setDetectAltGrModifier()

void QWindowsContext::setDetectAltGrModifier ( bool  a)

Definition at line 344 of file qwindowscontext.cpp.

References QWindowsContextPrivate::m_keyMapper, and QWindowsKeyMapper::setDetectAltGrModifier().

Referenced by QWindowsIntegration::QWindowsIntegration().

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

◆ setKeyGrabber()

void QWindowsContext::setKeyGrabber ( QWindow hwnd)

Definition at line 521 of file qwindowscontext.cpp.

References QWindowsContextPrivate::m_keyMapper, and QWindowsKeyMapper::setKeyGrabber().

+ Here is the call graph for this function:

◆ setProcessDpiAwareness()

bool QWindowsContext::setProcessDpiAwareness ( QtWindows::DpiAwareness  dpiAwareness)
static

Definition at line 439 of file qwindowscontext.cpp.

References context, QWindowsContextPrivate::m_v2DpiAware, QtWindows::PerMonitorVersion2, processDpiAwareness(), qCDebug, qCWarning, and qtDpiAwarenessToDpiAwarenessContext().

Referenced by QWindowsIntegrationPrivate::parseOptions().

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

◆ setTabletAbsoluteRange()

void QWindowsContext::setTabletAbsoluteRange ( int  a)
static

Definition at line 335 of file qwindowscontext.cpp.

References Q_UNUSED, and QWindowsTabletSupport::setAbsoluteRange().

Referenced by QWindowsIntegrationPrivate::parseOptions().

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

◆ setWindowCreationContext()

QSharedPointer< QWindowCreationContext > QWindowsContext::setWindowCreationContext ( const QSharedPointer< QWindowCreationContext > &  ctx)

Definition at line 494 of file qwindowscontext.cpp.

References QWindowsContextPrivate::m_creationContext.

Referenced by WindowCreationData::create(), and QWindowsWindow::initialize().

+ Here is the caller graph for this function:

◆ shouldHaveNonClientDpiScaling()

bool QWindowsContext::shouldHaveNonClientDpiScaling ( const QWindow window)
static

Definition at line 931 of file qwindowscontext.cpp.

References QWindowsWindow::embeddedNativeParentHandleProperty, QOpenGLContext::LibGL, QWindowsContextPrivate::m_v2DpiAware, QOpenGLContext::openGLModuleType(), QSurface::OpenGLSurface, and window().

Referenced by QWindowsIntegration::createPlatformWindow(), QWindowsGeometryHint::frame(), and windowsProc().

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

◆ systemInfo()

unsigned QWindowsContext::systemInfo ( ) const

Definition at line 474 of file qwindowscontext.cpp.

References QWindowsContextPrivate::m_systemInfo.

◆ systemParametersInfo()

bool QWindowsContext::systemParametersInfo ( unsigned  action,
unsigned  param,
void out,
unsigned  dpi = 0 
)
static

Definition at line 886 of file qwindowscontext.cpp.

References out.

Referenced by nonClientMetrics(), and systemParametersInfoForScreen().

+ Here is the caller graph for this function:

◆ systemParametersInfoForScreen()

bool QWindowsContext::systemParametersInfoForScreen ( unsigned  action,
unsigned  param,
void out,
const QPlatformScreen screen = nullptr 
)
static

Definition at line 895 of file qwindowscontext.cpp.

References out, screen, and systemParametersInfo().

Referenced by systemParametersInfoForWindow().

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

◆ systemParametersInfoForWindow()

bool QWindowsContext::systemParametersInfoForWindow ( unsigned  action,
unsigned  param,
void out,
const QPlatformWindow win = nullptr 
)
static

Definition at line 901 of file qwindowscontext.cpp.

References out, QWidget::screen(), systemParametersInfoForScreen(), and win.

+ Here is the call graph for this function:

◆ tabletSupport()

QWindowsTabletSupport * QWindowsContext::tabletSupport ( ) const

Definition at line 851 of file qwindowscontext.cpp.

◆ useRTLExtensions()

bool QWindowsContext::useRTLExtensions ( ) const

Definition at line 479 of file qwindowscontext.cpp.

References QWindowsContextPrivate::m_keyMapper, and QWindowsKeyMapper::useRTLExtensions().

Referenced by QWindowsIntegration::styleHint().

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

◆ windowCreationContext()

QSharedPointer< QWindowCreationContext > QWindowsContext::windowCreationContext ( ) const

Definition at line 501 of file qwindowscontext.cpp.

References QWindowsContextPrivate::m_creationContext.

◆ windowDpiAwareness()

QtWindows::DpiAwareness QWindowsContext::windowDpiAwareness ( HWND  hwnd)
static

Definition at line 368 of file qwindowscontext.cpp.

References context, dpiAwarenessContextToQtDpiAwareness(), and QtWindows::Invalid.

Referenced by enableNonClientDpiScaling().

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

◆ windows()

QWindowsContext::HandleBaseWindowHash & QWindowsContext::windows ( )

Definition at line 489 of file qwindowscontext.cpp.

References QWindowsContextPrivate::m_windows.

Referenced by QWindowsCursor::clearOverrideCursor().

+ Here is the caller graph for this function:

◆ windowsProc()

bool QWindowsContext::windowsProc ( HWND  hwnd,
UINT  message,
QtWindows::WindowsEventType  et,
WPARAM  wParam,
LPARAM  lParam,
LRESULT *  result,
QWindowsWindow **  platformWindowPtr 
)
inline

Main windows procedure registered for windows.

See also
QWindowsGuiEventDispatcher

Definition at line 994 of file qwindowscontext.cpp.

References QCoreApplicationPrivate::aboutToQuitEmitted, QtWindows::AccessibleObjectFromWindowRequest, QtWindows::ActivateWindowEvent, QWindowsSessionManager::allowsInteraction(), QtWindows::AppCommandEvent, QWindowCreationContext::applyToMinMaxInfo(), QWindowsWindow::BlockedByModal, QWindowsSessionManager::blocksInteraction(), QtWindows::CalculateSize, QWindowsSessionManager::clearCancellation(), clientToScreen(), QtWindows::ClipboardEvent, QtWindows::CloseEvent, QGuiApplicationPrivate::commitData(), QWindowsInputContext::composition(), QtWindows::CompositionSettingsChanged, QtWindows::ContextMenu, QtWindows::CursorEvent, QWindowCreationContext::customMargins, QtWindows::DestroyEvent, QtWindows::DeviceChangeEvent, QtWindows::DpiChangedAfterParentEvent, QtWindows::DpiChangedEvent, QtWindows::DpiScaledSizeEvent, enableNonClientDpiScaling(), QWindowsInputContext::endComposition(), QtWindows::EndSessionApplicationEvent, QWindowsCursor::enforceOverrideCursor(), QtWindows::EnterSizeMoveEvent, QtWindows::ExitSizeMoveEvent, QtWindows::ExposeEvent, filterNativeEvent(), findPlatformWindow(), QtWindows::FocusInEvent, QtWindows::FocusOutEvent, QtWindows::GeometryChangingEvent, QtWindows::GestureEvent, QObjectPrivate::get(), QWindowsGeometryHint::handleCalculateSize(), QWindowSystemInterface::handleCloseEvent(), QWindowsWindow::handleGeometryChangingMessage(), QWindowsInputContext::handleIME_Request(), QWindowsScreenManager::handleScreenChanges(), QWindowSystemInterface::handleThemeChange(), QWindowsCursor::hasOverrideCursor(), QtWindows::HideEvent, initTouch(), QtWindows::InputMethodCloseCandidateWindowEvent, QtWindows::InputMethodCompositionEvent, QtWindows::InputMethodEndCompositionEvent, QtWindows::InputMethodEventFlag, QtWindows::InputMethodKeyDownEvent, QtWindows::InputMethodKeyEvent, QtWindows::InputMethodOpenCandidateWindowEvent, QtWindows::InputMethodRequest, QtWindows::InputMethodStartCompositionEvent, QWindowsIntegration::instance(), QWindowsTheme::instance(), QMetaObject::InvokeMetaMethod, QWindowsSessionManager::isActive(), isInputMessage(), QSharedPointer< T >::isNull(), QtWindows::KeyboardLayoutChangeEvent, QtWindows::KeyDownEvent, QtWindows::KeyEvent, QtWindows::LeaveEvent, QWindowsContextPrivate::m_creationContext, QWindowsContextPrivate::m_darkMode, QWindowsContextPrivate::m_keyMapper, QWindowsContextPrivate::m_mouseHandler, QWindowsContextPrivate::m_pointerHandler, QWindowsContextPrivate::m_screenManager, QWindowsContextPrivate::m_systemInfo, QWindowsContextPrivate::m_v2DpiAware, QWindowsContextPrivate::m_windows, QWindowCreationContext::margins, QtWindows::MenuAboutToShowEvent, QtWindows::MenuCommandEvent, QGuiApplication::modalWindow(), QtWindows::MouseActivateWindowEvent, QtWindows::MouseEvent, QtWindows::MouseEventFlag, QtWindows::MouseWheelEvent, QtWindows::MoveEvent, QtWindows::NonClientCreate, QtWindows::NonClientEventFlag, QtWindows::NonClientHitTest, QtWindows::NonClientMouseEvent, QtWindows::NonClientPointerEvent, QWindowsPopupMenu::notifyAboutToShow(), QWindowsPopupMenu::notifyTriggered(), QWindowCreationContext::obtainedPos, QWindowCreationContext::obtainedSize, QtWindows::PointerActivateWindowEvent, QtWindows::PointerEvent, Q_ASSERT, Q_FALLTHROUGH, qApp, qCDebug, QWindowsTheme::queryDarkMode(), QtWindows::QueryEndSessionApplicationEvent, QtWindows::QuerySizeHints, QCoreApplication::quit(), qWarning, QWindowsTheme::refresh(), QtWindows::ResizeEvent, QWindowsWindow::ResizeMoveActive, QtWindows::ScrollEvent, sessionManagerInteractionBlocked(), QWindowsSessionManager::setActive(), QtWindows::SettingChangedEvent, QWindowsWindow::settingsChanged(), QWindowsInputContext::setWindowsImeEnabled(), shouldHaveNonClientDpiScaling(), QtWindows::ShowEventOnParentRestoring, SI_SupportsPointer, SI_SupportsTouch, QWindowsInputContext::startComposition(), QtWindows::TaskbarButtonCreated, QtWindows::ThemeChanged, QtWindows::TouchEvent, QWindowsMouseHandler::translateGestureEvent(), QWindowsKeyMapper::translateKeyEvent(), QWindowsMouseHandler::translateMouseEvent(), QWindowsPointerHandler::translateMouseEvent(), QWindowsPointerHandler::translatePointerEvent(), QWindowsMouseHandler::translateScrollEvent(), QWindowsMouseHandler::translateTouchEvent(), QtWindows::UnknownEvent, QWindowsIntegration::updateApplicationBadge(), verbose, QWindowsSessionManager::wasCanceled(), QtWindows::WhatsThisEvent, QWindowCreationContext::window, window(), Qt::WindowDoesNotAcceptFocus, windowsInputContext(), QWindowsGuiEventDispatcher::windowsMessageName(), QWindowsWindow::windowsWindowOf(), Qt::WindowTransparentForInput, and QWindowsWindow::WithinDestroy.

◆ windowUnderMouse()

QWindow * QWindowsContext::windowUnderMouse ( ) const

Definition at line 732 of file qwindowscontext.cpp.

References QWindowsContextPrivate::m_mouseHandler, QWindowsContextPrivate::m_pointerHandler, QWindowsContextPrivate::m_systemInfo, SI_SupportsPointer, QWindowsMouseHandler::windowUnderMouse(), and QWindowsPointerHandler::windowUnderMouse().

Referenced by applyNewCursor(), and startDoDragDrop().

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

Member Data Documentation

◆ verbose


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