Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qeventdispatcher_win.cpp File Reference

(ac9e9687559df28dbd6bc9bb645006ff454e18bd)

#include "qeventdispatcher_win_p.h"
#include "qcoreapplication.h"
#include <private/qsystemlibrary_p.h>
#include "qoperatingsystemversion.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

◆ QS_RAWINPUT

#define QS_RAWINPUT   0x0400

Definition at line 25 of file qeventdispatcher_win.cpp.

◆ TIME_KILL_SYNCHRONOUS

#define TIME_KILL_SYNCHRONOUS   0x0100

◆ WM_GESTURE

#define WM_GESTURE   0x0119

Definition at line 33 of file qeventdispatcher_win.cpp.

Referenced by isUserInputMessage().

◆ WM_GESTURENOTIFY

#define WM_GESTURENOTIFY   0x011A

Definition at line 36 of file qeventdispatcher_win.cpp.

Referenced by isUserInputMessage().

◆ WM_TOUCH

#define WM_TOUCH   0x0240

Definition at line 29 of file qeventdispatcher_win.cpp.

Referenced by isInputMessage(), and isUserInputMessage().

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
WM_QT_SOCKETNOTIFIER 
WM_QT_SENDPOSTEDEVENTS 
WM_QT_ACTIVATENOTIFIERS 

Definition at line 40 of file qeventdispatcher_win.cpp.

◆ anonymous enum

anonymous enum
Enumerator
SendPostedEventsTimerId 

Definition at line 46 of file qeventdispatcher_win.cpp.

Function Documentation

◆ calculateNextTimeout()

static ULONG calculateNextTimeout ( WinTimerInfo * t,
quint64 currentTime )
static

Definition at line 299 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 442 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 275 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 79 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 88 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 58 of file qeventdispatcher_win.cpp.

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

+ Here is the caller graph for this function: