Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qeventdispatcher_win.cpp File Reference
#include "qeventdispatcher_win_p.h"
#include "qcoreapplication.h"
#include <private/qsystemlibrary_p.h>
#include "qoperatingsystemversion.h"
#include "qpair.h"
#include "qset.h"
#include "qsocketnotifier.h"
#include "qvarlengtharray.h"
#include "qelapsedtimer.h"
#include "qcoreapplication_p.h"
#include <private/qthread_p.h>
#include "moc_qeventdispatcher_win_p.cpp"
+ Include dependency graph for qeventdispatcher_win.cpp:

Go to the source code of this file.

Classes

struct  QWindowsMessageWindowClassContext
 

Macros

#define TIME_KILL_SYNCHRONOUS   0x0100
 
#define QS_RAWINPUT   0x0400
 
#define WM_TOUCH   0x0240
 
#define WM_GESTURE   0x0119
 
#define WM_GESTURENOTIFY   0x011A
 
#define DWORD_PTR   DWORD
 

Enumerations

enum  { WM_QT_SOCKETNOTIFIER = WM_USER , WM_QT_SENDPOSTEDEVENTS = WM_USER + 1 , WM_QT_ACTIVATENOTIFIERS = WM_USER + 2 }
 
enum  { SendPostedEventsTimerId = ~1u }
 

Functions

LRESULT QT_WIN_CALLBACK qt_internal_proc (HWND hwnd, UINT message, WPARAM wp, LPARAM lp)
 
static quint64 qt_msectime ()
 
void WINAPI QT_WIN_CALLBACK qt_fast_timer_proc (uint timerId, uint, DWORD_PTR user, DWORD_PTR, DWORD_PTR)
 
static HWND qt_create_internal_window (const QEventDispatcherWin32 *eventDispatcher)
 
static ULONG calculateNextTimeout (WinTimerInfo *t, quint64 currentTime)
 
static bool isUserInputMessage (UINT message)
 

Macro Definition Documentation

◆ DWORD_PTR

#define DWORD_PTR   DWORD

Definition at line 54 of file qeventdispatcher_win.cpp.

◆ QS_RAWINPUT

#define QS_RAWINPUT   0x0400

Definition at line 26 of file qeventdispatcher_win.cpp.

◆ TIME_KILL_SYNCHRONOUS

#define TIME_KILL_SYNCHRONOUS   0x0100

Definition at line 22 of file qeventdispatcher_win.cpp.

◆ WM_GESTURE

#define WM_GESTURE   0x0119

Definition at line 34 of file qeventdispatcher_win.cpp.

◆ WM_GESTURENOTIFY

#define WM_GESTURENOTIFY   0x011A

Definition at line 37 of file qeventdispatcher_win.cpp.

◆ WM_TOUCH

#define WM_TOUCH   0x0240

Definition at line 30 of file qeventdispatcher_win.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
WM_QT_SOCKETNOTIFIER 
WM_QT_SENDPOSTEDEVENTS 
WM_QT_ACTIVATENOTIFIERS 

Definition at line 41 of file qeventdispatcher_win.cpp.

◆ anonymous enum

anonymous enum
Enumerator
SendPostedEventsTimerId 

Definition at line 47 of file qeventdispatcher_win.cpp.

Function Documentation

◆ calculateNextTimeout()

static ULONG calculateNextTimeout ( WinTimerInfo t,
quint64  currentTime 
)
static

Definition at line 300 of file qeventdispatcher_win.cpp.

References Qt::CoarseTimer, currentTime(), Qt::PreciseTimer, Q_FALLTHROUGH, and Qt::VeryCoarseTimer.

Referenced by QTimerInfoList::activateTimers(), QEventDispatcherWin32Private::registerTimer(), and QEventDispatcherWin32Private::sendTimerEvent().

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

◆ isUserInputMessage()

static bool isUserInputMessage ( UINT  message)
static

Definition at line 443 of file qeventdispatcher_win.cpp.

References WM_GESTURE, WM_GESTURENOTIFY, WM_MOUSEHWHEEL, WM_MOUSEWHEEL, and WM_TOUCH.

Referenced by QEventDispatcherWin32::processEvents().

+ Here is the caller graph for this function:

◆ qt_create_internal_window()

static HWND qt_create_internal_window ( const QEventDispatcherWin32 eventDispatcher)
static

Definition at line 276 of file qeventdispatcher_win.cpp.

References qErrnoWarning().

Referenced by QEventDispatcherWin32::QEventDispatcherWin32().

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

◆ qt_fast_timer_proc()

void WINAPI QT_WIN_CALLBACK qt_fast_timer_proc ( uint  timerId,
uint  ,
DWORD_PTR  user,
DWORD_PTR  ,
DWORD_PTR   
)

Definition at line 80 of file qeventdispatcher_win.cpp.

References QCoreApplication::postEvent(), and Q_ASSERT.

Referenced by QEventDispatcherWin32Private::registerTimer().

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

◆ qt_internal_proc()

LRESULT QT_WIN_CALLBACK qt_internal_proc ( HWND  hwnd,
UINT  message,
WPARAM  wp,
LPARAM  lp 
)

Definition at line 89 of file qeventdispatcher_win.cpp.

Referenced by QWindowsMessageWindowClassContext::QWindowsMessageWindowClassContext().

+ Here is the caller graph for this function:

◆ qt_msectime()

static quint64 qt_msectime ( )
static

Definition at line 59 of file qeventdispatcher_win.cpp.

Referenced by QEventDispatcherWin32Private::registerTimer(), QEventDispatcherWin32::remainingTime(), and QEventDispatcherWin32Private::sendTimerEvent().

+ Here is the caller graph for this function: