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

(bb716c01118ea42d1d7ffe2ac78501b53f9ed6d1)

#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 "q26numeric.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 , WM_QT_SOCKETNOTIFIER = WM_USER ,
  WM_QT_SENDPOSTEDEVENTS = WM_USER + 1 , WM_QT_ACTIVATENOTIFIERS = WM_USER + 2
}
enum  { SendPostedEventsTimerId = ~1u , SendPostedEventsTimerId = ~1u }
enum  {
  WM_QT_SOCKETNOTIFIER = WM_USER , WM_QT_SENDPOSTEDEVENTS = WM_USER + 1 , WM_QT_ACTIVATENOTIFIERS = WM_USER + 2 , WM_QT_SOCKETNOTIFIER = WM_USER ,
  WM_QT_SENDPOSTEDEVENTS = WM_USER + 1 , WM_QT_ACTIVATENOTIFIERS = WM_USER + 2
}
enum  { SendPostedEventsTimerId = ~1u , 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 55 of file qeventdispatcher_win.cpp.

◆ QS_RAWINPUT

#define QS_RAWINPUT   0x0400

Definition at line 27 of file qeventdispatcher_win.cpp.

◆ TIME_KILL_SYNCHRONOUS

#define TIME_KILL_SYNCHRONOUS   0x0100

Definition at line 23 of file qeventdispatcher_win.cpp.

◆ WM_GESTURE

#define WM_GESTURE   0x0119

Definition at line 35 of file qeventdispatcher_win.cpp.

◆ WM_GESTURENOTIFY

#define WM_GESTURENOTIFY   0x011A

Definition at line 38 of file qeventdispatcher_win.cpp.

◆ WM_TOUCH

#define WM_TOUCH   0x0240

Definition at line 31 of file qeventdispatcher_win.cpp.

Enumeration Type Documentation

◆ anonymous enum [1/2]

anonymous enum
Enumerator
WM_QT_SOCKETNOTIFIER 
WM_QT_SENDPOSTEDEVENTS 
WM_QT_ACTIVATENOTIFIERS 
WM_QT_SOCKETNOTIFIER 
WM_QT_SENDPOSTEDEVENTS 
WM_QT_ACTIVATENOTIFIERS 

Definition at line 42 of file qeventdispatcher_win.cpp.

◆ anonymous enum [2/2]

anonymous enum
Enumerator
WM_QT_SOCKETNOTIFIER 
WM_QT_SENDPOSTEDEVENTS 
WM_QT_ACTIVATENOTIFIERS 
WM_QT_SOCKETNOTIFIER 
WM_QT_SENDPOSTEDEVENTS 
WM_QT_ACTIVATENOTIFIERS 

Definition at line 42 of file qeventdispatcher_win.cpp.

◆ anonymous enum [1/2]

anonymous enum
Enumerator
SendPostedEventsTimerId 
SendPostedEventsTimerId 

Definition at line 48 of file qeventdispatcher_win.cpp.

◆ anonymous enum [2/2]

anonymous enum
Enumerator
SendPostedEventsTimerId 
SendPostedEventsTimerId 

Definition at line 48 of file qeventdispatcher_win.cpp.

Function Documentation

◆ calculateNextTimeout()

ULONG calculateNextTimeout ( WinTimerInfo * t,
quint64 currentTime )
static

Definition at line 301 of file qeventdispatcher_win.cpp.

◆ isUserInputMessage()

bool isUserInputMessage ( UINT message)
static

Definition at line 457 of file qeventdispatcher_win.cpp.

◆ qt_create_internal_window()

HWND qt_create_internal_window ( const QEventDispatcherWin32 * eventDispatcher)
static

Definition at line 277 of file qeventdispatcher_win.cpp.

◆ 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 81 of file qeventdispatcher_win.cpp.

◆ qt_internal_proc()

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

Definition at line 90 of file qeventdispatcher_win.cpp.

◆ qt_msectime()

quint64 qt_msectime ( )
static

Definition at line 60 of file qeventdispatcher_win.cpp.