![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Singleton container for all relevant information. More...
#include <qwindowscontext.h>
Public Types | |
| enum | SystemInfoFlags { SI_RTL_Extensions = 0x1 , SI_SupportsTouch = 0x2 } |
| using | HandleBaseWindowHash = QHash<HWND, QWindowsWindow *> |
Static Public Member Functions | |
| static QWindowsContext * | instance () |
| 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 | 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 |
Singleton container for all relevant information.
Holds state information formerly stored in qapplication_win.cpp.
Definition at line 48 of file qwindowscontext.h.
| using QWindowsContext::HandleBaseWindowHash = QHash<HWND, QWindowsWindow *> |
Definition at line 52 of file qwindowscontext.h.
| Enumerator | |
|---|---|
| SI_RTL_Extensions | |
| SI_SupportsTouch | |
Definition at line 54 of file qwindowscontext.h.
|
explicit |
Definition at line 178 of file qwindowscontext.cpp.
References QWindowsContext().
Referenced by QWindowsContext().
| QWindowsContext::~QWindowsContext | ( | ) |
Definition at line 184 of file qwindowscontext.cpp.
References QWindowsTheme::instance().
| void QWindowsContext::addWindow | ( | HWND | hwnd, |
| QWindowsWindow * | w ) |
Definition at line 511 of file qwindowscontext.cpp.
| bool QWindowsContext::asyncExpose | ( | ) | const |
Definition at line 1291 of file qwindowscontext.cpp.
Referenced by QWindowsApplication::asyncExpose().
| void QWindowsContext::clearWindowUnderMouse | ( | ) |
Definition at line 569 of file qwindowscontext.cpp.
| 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 693 of file qwindowscontext.cpp.
| int QWindowsContext::defaultDPI | ( | ) | const |
Definition at line 486 of file qwindowscontext.cpp.
Referenced by QWindowsTheme::themeHint().
| HDC QWindowsContext::displayContext | ( | ) | const |
Definition at line 491 of file qwindowscontext.cpp.
| bool QWindowsContext::disposeTablet | ( | ) |
Definition at line 259 of file qwindowscontext.cpp.
Referenced by QWindowsApplication::setWinTabEnabled().
|
static |
Definition at line 1390 of file qwindowscontext.cpp.
Definition at line 1402 of file qwindowscontext.cpp.
| QWindowsWindow * QWindowsContext::findClosestPlatformWindow | ( | HWND | hwnd | ) | const |
Definition at line 540 of file qwindowscontext.cpp.
| QWindowsWindow * QWindowsContext::findPlatformWindow | ( | const QWindowsMenuBar * | mb | ) | const |
Definition at line 526 of file qwindowscontext.cpp.
Referenced by findPlatformWindowAt(), findPlatformWindowHelper(), findWindow(), and windowsProc().
| QWindowsWindow * QWindowsContext::findPlatformWindow | ( | HWND | hwnd | ) | const |
Definition at line 535 of file qwindowscontext.cpp.
| QWindowsWindow * QWindowsContext::findPlatformWindowAt | ( | HWND | parent, |
| const QPoint & | screenPoint, | ||
| unsigned | cwex_flags ) const |
Definition at line 622 of file qwindowscontext.cpp.
References findPlatformWindow().
| QWindow * QWindowsContext::findWindow | ( | HWND | hwnd | ) | const |
Definition at line 557 of file qwindowscontext.cpp.
References findPlatformWindow().
|
static |
Definition at line 707 of file qwindowscontext.cpp.
| bool QWindowsContext::initPowerNotificationHandler | ( | ) |
Definition at line 300 of file qwindowscontext.cpp.
| bool QWindowsContext::initTablet | ( | ) |
Definition at line 249 of file qwindowscontext.cpp.
Referenced by QWindowsApplication::setWinTabEnabled().
| bool QWindowsContext::initTouch | ( | ) |
Definition at line 212 of file qwindowscontext.cpp.
References initTouch(), QWindowsIntegration::instance(), and QWindowsIntegration::options().
Referenced by windowsProc().
| bool QWindowsContext::initTouch | ( | unsigned | integrationOptions | ) |
Definition at line 217 of file qwindowscontext.cpp.
References registerTouchWindows().
Referenced by initTouch().
|
static |
Definition at line 449 of file qwindowscontext.cpp.
Referenced by QWindowsWindow::QWindowsWindow(), applyNewCursor(), QWindowsApplication::asyncExpose(), QWindowsWindow::checkForScreenChanged(), QWindowsCursor::clearOverrideCursor(), QWindowsTabletSupport::create(), WindowCreationData::create(), QWindowsOleDropSource::createCursors(), createDummyGLWindow(), QWindowsApplication::createMessageWindow(), QWindowsOleDataObject::EnumFormatEtc(), QWindowsInternalMimeData::formats_sys(), QWindowsGeometryHint::frame(), QWindowsGeometryHint::frame(), QWindowsOleDataObject::GetData(), QWindowsScreen::grabWindow(), QWindowsInternalMimeData::hasFormat_sys(), QWindowsWindow::initialize(), QWindowsScreenManager::isSingleScreen(), QWindowsApplication::isWinTabEnabled(), QWindowsOleDataObject::QueryGetData(), QWindowsApplication::registerMime(), QWindowsWindow::registerTouchWindow(), QWindowsInternalMimeData::retrieveData_sys(), QWindowsApplication::setAsyncExpose(), QWindowsWindow::setKeyboardGrabEnabled(), QWindowsApplication::setTouchWindowTouchType(), QWindowsApplication::setWinTabEnabled(), startDoDragDrop(), QWindowsTheme::themeHint(), QWindowsWindow::topLevelOf(), QWindowsPointerHandler::translateMouseEvent(), QWindowsTabletSupport::translateTabletPacketEvent(), QWindowsApplication::unregisterMime(), QWindowsScreen::virtualSiblings(), QWindowsScreen::windowAt(), windowPlacementOffset(), and QWindowsSystemTrayIcon::winEvent().
|
static |
Definition at line 638 of file qwindowscontext.cpp.
| QWindow * QWindowsContext::keyGrabber | ( | ) | const |
Definition at line 496 of file qwindowscontext.cpp.
| QPlatformKeyMapper * QWindowsContext::keyMapper | ( | ) | const |
Definition at line 464 of file qwindowscontext.cpp.
Referenced by QWindowsPointerHandler::translateMouseEvent(), and QWindowsTabletSupport::translateTabletPacketEvent().
| QWindowsMimeRegistry & QWindowsContext::mimeConverter | ( | ) | const |
Definition at line 669 of file qwindowscontext.cpp.
Referenced by QWindowsOleDataObject::EnumFormatEtc(), QWindowsInternalMimeData::formats_sys(), QWindowsOleDataObject::GetData(), QWindowsInternalMimeData::hasFormat_sys(), QWindowsOleDataObject::QueryGetData(), QWindowsApplication::registerMime(), QWindowsInternalMimeData::retrieveData_sys(), and QWindowsApplication::unregisterMime().
|
static |
Definition at line 735 of file qwindowscontext.cpp.
References systemParametersInfo().
|
static |
Definition at line 742 of file qwindowscontext.cpp.
|
static |
Definition at line 749 of file qwindowscontext.cpp.
|
static |
Definition at line 359 of file qwindowscontext.cpp.
Referenced by QWindowsScreen::grabWindow(), and setProcessDpiAwareness().
|
static |
Definition at line 1301 of file qwindowscontext.cpp.
| void QWindowsContext::registerTouchWindows | ( | ) |
Definition at line 240 of file qwindowscontext.cpp.
Referenced by initTouch(), and QWindowsApplication::setTouchWindowTouchType().
| void QWindowsContext::removeWindow | ( | HWND | hwnd | ) |
Definition at line 516 of file qwindowscontext.cpp.
| int QWindowsContext::screenDepth | ( | ) | const |
Definition at line 506 of file qwindowscontext.cpp.
| QWindowsScreenManager & QWindowsContext::screenManager | ( | ) |
Definition at line 674 of file qwindowscontext.cpp.
Referenced by QWindowsWindow::checkForScreenChanged(), QWindowsOleDropSource::createCursors(), QWindowsGeometryHint::frame(), QWindowsGeometryHint::frame(), QWindowsScreenManager::isSingleScreen(), QWindowsScreen::virtualSiblings(), windowPlacementOffset(), and QWindowsSystemTrayIcon::winEvent().
| void QWindowsContext::setAsyncExpose | ( | bool | value | ) |
Definition at line 1296 of file qwindowscontext.cpp.
Referenced by QWindowsApplication::setAsyncExpose().
| void QWindowsContext::setDetectAltGrModifier | ( | bool | a | ) |
Definition at line 327 of file qwindowscontext.cpp.
Definition at line 501 of file qwindowscontext.cpp.
|
static |
Definition at line 422 of file qwindowscontext.cpp.
References QWindowsContextPrivate::m_v2DpiAware, QtWindows::PerMonitorVersion2, and processDpiAwareness().
|
static |
Definition at line 318 of file qwindowscontext.cpp.
Referenced by QWindowsIntegrationPrivate::parseOptions().
| QSharedPointer< QWindowCreationContext > QWindowsContext::setWindowCreationContext | ( | const QSharedPointer< QWindowCreationContext > & | ctx | ) |
Definition at line 474 of file qwindowscontext.cpp.
|
static |
Definition at line 759 of file qwindowscontext.cpp.
References QWindowsWindow::embeddedNativeParentHandleProperty, and QWindowsContextPrivate::m_v2DpiAware.
| unsigned QWindowsContext::systemInfo | ( | ) | const |
Definition at line 454 of file qwindowscontext.cpp.
Referenced by QWindowsWindow::registerTouchWindow().
|
static |
Definition at line 714 of file qwindowscontext.cpp.
Referenced by nonClientMetrics(), and systemParametersInfoForScreen().
|
static |
Definition at line 723 of file qwindowscontext.cpp.
References systemParametersInfo().
Referenced by systemParametersInfoForWindow().
|
static |
Definition at line 729 of file qwindowscontext.cpp.
References systemParametersInfoForScreen().
| QWindowsTabletSupport * QWindowsContext::tabletSupport | ( | ) | const |
Definition at line 679 of file qwindowscontext.cpp.
Referenced by QWindowsApplication::isWinTabEnabled().
| bool QWindowsContext::useRTLExtensions | ( | ) | const |
Definition at line 459 of file qwindowscontext.cpp.
| QSharedPointer< QWindowCreationContext > QWindowsContext::windowCreationContext | ( | ) | const |
Definition at line 481 of file qwindowscontext.cpp.
|
static |
Definition at line 351 of file qwindowscontext.cpp.
References QtWindows::Invalid.
| QWindowsContext::HandleBaseWindowHash & QWindowsContext::windows | ( | ) |
Definition at line 469 of file qwindowscontext.cpp.
|
inline |
Main windows procedure registered for windows.
Definition at line 822 of file qwindowscontext.cpp.
References QtWindows::AccessibleObjectFromWindowRequest, QtWindows::ActivateWindowEvent, QWindowsWindow::alertWindow(), QWindowsWindow::BlockedByModal, QtWindows::CalculateSize, QWindowsWindow::clearFlag(), QtWindows::ClipboardEvent, QtWindows::CompositionSettingsChanged, QtWindows::CursorEvent, QtWindows::DestroyEvent, QtWindows::DeviceChangeEvent, QtWindows::DpiChangedAfterParentEvent, QtWindows::DpiChangedEvent, QtWindows::DpiScaledSizeEvent, QWindowsCursor::enforceOverrideCursor(), QtWindows::EnterSizeMoveEvent, QtWindows::ExitSizeMoveEvent, QtWindows::ExposeEvent, findPlatformWindow(), QtWindows::FocusInEvent, QtWindows::FocusOutEvent, QWindowsWindow::frameStrutEventsEnabled(), QtWindows::GeometryChangingEvent, QtWindows::GestureEvent, QWindowsWindow::handleCompositionSettingsChanged(), QWindowsWindow::handleHidden(), QWindowsWindow::handleMoved(), QWindowsCursor::hasOverrideCursor(), QtWindows::HideEvent, initTouch(), QtWindows::InputLanguageChangeEvent, QtWindows::InputMethodCloseCandidateWindowEvent, QtWindows::InputMethodCompositionEvent, QtWindows::InputMethodEndCompositionEvent, QtWindows::InputMethodEventFlag, QtWindows::InputMethodOpenCandidateWindowEvent, QtWindows::InputMethodRequest, QtWindows::InputMethodStartCompositionEvent, QWindowsIntegration::instance(), QtWindows::LeaveEvent, QtWindows::MenuAboutToShowEvent, QWindowsWindow::menuBar(), QtWindows::MenuCommandEvent, QtWindows::MouseActivateWindowEvent, QtWindows::MouseEvent, QtWindows::MouseEventFlag, QtWindows::MouseWheelEvent, QtWindows::MoveEvent, QtWindows::NonClientActivate, QtWindows::NonClientCreate, QtWindows::NonClientEventFlag, QtWindows::NonClientHitTest, QtWindows::NonClientMouseEvent, QtWindows::NonClientPointerEvent, QtWindows::PointerActivateWindowEvent, QtWindows::QuerySizeHints, QtWindows::ResizeEvent, QWindowsWindow::ResizeMoveActive, QtWindows::ScrollEvent, sessionManagerInteractionBlocked(), QWindowsWindow::setFlag(), QtWindows::SettingChangedEvent, QWindowsWindow::settingsChanged(), QWindowsInputContext::setWindowsImeEnabled(), QtWindows::ShowEventOnParentRestoring, QtWindows::TaskbarButtonCreated, QWindowsWindow::testFlag(), QtWindows::ThemeChanged, QtWindows::TouchEvent, QtWindows::UnknownEvent, QWindowsIntegration::updateApplicationBadge(), QWindowsWindow::updateCustomTitlebar(), QWindowsWindow::updateRestoreGeometry(), verbose, QtWindows::WhatsThisEvent, windowsInputContext(), and QWindowsWindow::WithinDestroy.
| QWindow * QWindowsContext::windowUnderMouse | ( | ) | const |
Definition at line 564 of file qwindowscontext.cpp.
|
static |
Definition at line 61 of file qwindowscontext.h.
Referenced by QWindowsGLContext::QWindowsGLContext(), QWindowsOleEnumFmtEtc::QWindowsOleEnumFmtEtc(), QWindowsOleEnumFmtEtc::QWindowsOleEnumFmtEtc(), QWindowsMimeRegistry::allMimesForFormats(), QWindowsBackingStore::beginPaint(), coverage_report.CoverageExecutor::call(), coverage_report.CoverageExecutor::call_silent(), coverage_report.CoverageExecutor::check_output(), QWindowsOleDataObject::EnumFormatEtc(), coverage_report.CoverageExecutor::generate_coverage(), QWindowsGLContext::getProcAddress(), operator<<(), QWindowsOleDataObject::QueryGetData(), QWindowsBackingStore::resize(), QWindowsInternalMimeData::retrieveData_sys(), QWindowsClipboardRetrievalMimeData::retrieveDataObject(), QWindowsOleDataObject::SetData(), QWindowsGLContext::swapBuffers(), QWindowsScreen::topLevelAt(), QWindowsTabletSupport::translateTabletPacketEvent(), QWindowsScreen::windowAt(), and windowsProc().