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
qwindowscontext.cpp File Reference

(6793a519667eaef07d6bc04d2799b1746d258c41)

#include "qwindowscontext.h"
#include "qwindowsintegration.h"
#include "qwindowswindow.h"
#include "qwindowskeymapper.h"
#include "qwindowsnativeinterface.h"
#include "qwindowspointerhandler.h"
#include "qtwindowsglobal.h"
#include "qwindowsmenu.h"
#include "qwindowsmimeregistry.h"
#include "qwindowsinputcontext.h"
#include "qwindowstheme.h"
#include <private/qguiapplication_p.h>
#include "qwindowsscreen.h"
#include <QtGui/qwindow.h>
#include <qpa/qwindowsysteminterface.h>
#include <qpa/qwindowsysteminterface_p.h>
#include <qpa/qplatformnativeinterface.h>
#include <QtGui/qguiapplication.h>
#include <QtGui/qopenglcontext.h>
#include <QtGui/qpointingdevice.h>
#include <QtCore/qset.h>
#include <QtCore/qhash.h>
#include <QtCore/qlibraryinfo.h>
#include <QtCore/qstringlist.h>
#include <QtCore/qdebug.h>
#include <QtCore/qsysinfo.h>
#include <QtCore/qscopedpointer.h>
#include <QtCore/quuid.h>
#include <QtCore/qscopeguard.h>
#include <QtCore/private/qwinregistry_p.h>
#include <QtCore/private/qsystemerror_p.h>
#include <QtGui/private/qwindowsguieventdispatcher_p.h>
#include <QtGui/private/qwindowsthemecache_p.h>
#include <stdlib.h>
#include <stdio.h>
#include <windowsx.h>
#include <dbt.h>
#include <wtsapi32.h>
#include <shellscalingapi.h>
Include dependency graph for qwindowscontext.cpp:

Go to the source code of this file.

Classes

struct  QWindowsContextPrivate

Macros

#define LANG_SYRIAC   0x5a

Functions

static bool useRTL_Extensions ()
static bool sessionManagerInteractionBlocked ()
LRESULT QT_WIN_CALLBACK qWindowsPowerWindowProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
static QtWindows::DpiAwareness dpiAwarenessContextToQtDpiAwareness (DPI_AWARENESS_CONTEXT context)
static DPI_AWARENESS_CONTEXT qtDpiAwarenessToDpiAwarenessContext (QtWindows::DpiAwareness dpiAwareness)
QDebug operator<< (QDebug d, QtWindows::DpiAwareness dpiAwareness)
static bool findPlatformWindowHelper (const POINT &screenPoint, unsigned cwexFlags, const QWindowsContext *context, HWND *hwnd, QWindowsWindow **result)
 Find a child window at a screen point.
static QWindowsInputContextwindowsInputContext ()
static bool isInputMessage (UINT m)
static bool enableNonClientDpiScaling (HWND hwnd)
static bool isEmptyRect (const RECT &rect)
static QMargins marginsFromRects (const RECT &frame, const RECT &client)
static RECT rectFromNcCalcSize (UINT message, WPARAM wParam, LPARAM lParam, int n)
static bool isMinimized (HWND hwnd)
static bool isTopLevel (HWND hwnd)
LRESULT QT_WIN_CALLBACK qWindowsWndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
 Windows functions for actual windows.
static QByteArray nativeEventType ()

Macro Definition Documentation

◆ LANG_SYRIAC

#define LANG_SYRIAC   0x5a

Definition at line 84 of file qwindowscontext.cpp.

Function Documentation

◆ dpiAwarenessContextToQtDpiAwareness()

QtWindows::DpiAwareness dpiAwarenessContextToQtDpiAwareness ( DPI_AWARENESS_CONTEXT context)
inlinestaticnodiscard

◆ enableNonClientDpiScaling()

bool enableNonClientDpiScaling ( HWND hwnd)
static

Definition at line 959 of file qwindowscontext.cpp.

◆ findPlatformWindowHelper()

bool findPlatformWindowHelper ( const POINT & screenPoint,
unsigned cwexFlags,
const QWindowsContext * context,
HWND * hwnd,
QWindowsWindow ** result )
inlinestatic

Find a child window at a screen point.

Deep search for a QWindow at global point, skipping non-owned windows (accessibility?). Implemented using ChildWindowFromPointEx() instead of (historically used) WindowFromPoint() to get a well-defined behaviour for hidden/transparent windows.

cwex_flags are flags of ChildWindowFromPointEx(). parent is the parent window, pass GetDesktopWindow() for top levels.

Definition at line 743 of file qwindowscontext.cpp.

References QWindowsContext::findPlatformWindow().

Here is the call graph for this function:

◆ isEmptyRect()

bool isEmptyRect ( const RECT & rect)
inlinestatic

Definition at line 1465 of file qwindowscontext.cpp.

◆ isInputMessage()

bool isInputMessage ( UINT m)
inlinestatic

Definition at line 931 of file qwindowscontext.cpp.

◆ isMinimized()

bool isMinimized ( HWND hwnd)
inlinestatic

Definition at line 1484 of file qwindowscontext.cpp.

◆ isTopLevel()

bool isTopLevel ( HWND hwnd)
inlinestatic

Definition at line 1491 of file qwindowscontext.cpp.

◆ marginsFromRects()

QMargins marginsFromRects ( const RECT & frame,
const RECT & client )
inlinestatic

Definition at line 1470 of file qwindowscontext.cpp.

◆ nativeEventType()

QByteArray nativeEventType ( )
inlinestatic

Definition at line 1544 of file qwindowscontext.cpp.

◆ operator<<()

QDebug operator<< ( QDebug d,
QtWindows::DpiAwareness dpiAwareness )

Definition at line 400 of file qwindowscontext.cpp.

◆ qtDpiAwarenessToDpiAwarenessContext()

DPI_AWARENESS_CONTEXT qtDpiAwarenessToDpiAwarenessContext ( QtWindows::DpiAwareness dpiAwareness)
inlinestaticnodiscard

Definition at line 380 of file qwindowscontext.cpp.

References QtWindows::Invalid.

◆ qWindowsPowerWindowProc()

LRESULT QT_WIN_CALLBACK qWindowsPowerWindowProc ( HWND hwnd,
UINT message,
WPARAM wParam,
LPARAM lParam )

Definition at line 276 of file qwindowscontext.cpp.

◆ qWindowsWndProc()

LRESULT QT_WIN_CALLBACK qWindowsWndProc ( HWND hwnd,
UINT message,
WPARAM wParam,
LPARAM lParam )

Windows functions for actual windows.

There is another one for timers, sockets, etc in QEventDispatcherWin32.

Definition at line 1504 of file qwindowscontext.cpp.

◆ rectFromNcCalcSize()

RECT rectFromNcCalcSize ( UINT message,
WPARAM wParam,
LPARAM lParam,
int n )
static

Definition at line 1476 of file qwindowscontext.cpp.

◆ sessionManagerInteractionBlocked()

bool sessionManagerInteractionBlocked ( )
inlinestatic

Definition at line 122 of file qwindowscontext.cpp.

Referenced by QWindowsContext::windowsProc().

Here is the caller graph for this function:

◆ useRTL_Extensions()

bool useRTL_Extensions ( )
inlinestatic

Definition at line 87 of file qwindowscontext.cpp.

Referenced by QWindowsContextPrivate::QWindowsContextPrivate().

Here is the caller graph for this function:

◆ windowsInputContext()

QWindowsInputContext * windowsInputContext ( )
inlinestatic

Definition at line 911 of file qwindowscontext.cpp.

References QWindowsIntegration::instance().

Referenced by QWindowsContext::windowsProc().

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