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

(3a38de71da13103fbe5bdf6b822263e282e68368)

#include <QtCore/qt_windows.h>
#include "qwindowspointerhandler.h"
#include "qwindowskeymapper.h"
#include "qwindowscontext.h"
#include "qwindowswindow.h"
#include "qwindowsintegration.h"
#include "qwindowsscreen.h"
#include <QtGui/qguiapplication.h>
#include <QtGui/qscreen.h>
#include <QtGui/qpointingdevice.h>
#include <QtGui/qwindow.h>
#include <QtGui/private/qguiapplication_p.h>
#include <QtCore/qvarlengtharray.h>
#include <QtCore/qloggingcategory.h>
#include <QtCore/qqueue.h>
#include <algorithm>
#include <windowsx.h>
Include dependency graph for qwindowspointerhandler.cpp:

Go to the source code of this file.

Enumerations

enum  {
  QT_PT_POINTER = 1 , QT_PT_TOUCH = 2 , QT_PT_PEN = 3 , QT_PT_MOUSE = 4 ,
  QT_PT_TOUCHPAD = 5 , QT_PT_POINTER = 1 , QT_PT_TOUCH = 2 , QT_PT_PEN = 3 ,
  QT_PT_MOUSE = 4 , QT_PT_TOUCHPAD = 5
}
enum  {
  QT_PT_POINTER = 1 , QT_PT_TOUCH = 2 , QT_PT_PEN = 3 , QT_PT_MOUSE = 4 ,
  QT_PT_TOUCHPAD = 5 , QT_PT_POINTER = 1 , QT_PT_TOUCH = 2 , QT_PT_PEN = 3 ,
  QT_PT_MOUSE = 4 , QT_PT_TOUCHPAD = 5
}

Functions

const QPointingDeviceprimaryMouse ()
static Qt::MouseButton extraButton (WPARAM wParam)
static MouseEvent eventFromMsg (const MSG &msg)
static Qt::MouseButtons mouseButtonsFromKeyState (WPARAM keyState)
static QWindowgetWindowUnderPointer (QWindow *window, QPoint globalPos)
static bool trackLeave (HWND hwnd)
static bool isValidWheelReceiver (QWindow *candidate)
static bool isMouseEventSynthesizedFromPenOrTouch ()

Enumeration Type Documentation

◆ anonymous enum [1/2]

anonymous enum
Enumerator
QT_PT_POINTER 
QT_PT_TOUCH 
QT_PT_PEN 
QT_PT_MOUSE 
QT_PT_TOUCHPAD 
QT_PT_POINTER 
QT_PT_TOUCH 
QT_PT_PEN 
QT_PT_MOUSE 
QT_PT_TOUCHPAD 

Definition at line 31 of file qwindowspointerhandler.cpp.

◆ anonymous enum [2/2]

anonymous enum
Enumerator
QT_PT_POINTER 
QT_PT_TOUCH 
QT_PT_PEN 
QT_PT_MOUSE 
QT_PT_TOUCHPAD 
QT_PT_POINTER 
QT_PT_TOUCH 
QT_PT_PEN 
QT_PT_MOUSE 
QT_PT_TOUCHPAD 

Definition at line 31 of file qwindowspointerhandler.cpp.

Function Documentation

◆ eventFromMsg()

MouseEvent eventFromMsg ( const MSG & msg)
inlinestatic

Definition at line 154 of file qwindowspointerhandler.cpp.

◆ extraButton()

Qt::MouseButton extraButton ( WPARAM wParam)
inlinestatic

Definition at line 149 of file qwindowspointerhandler.cpp.

◆ getWindowUnderPointer()

QWindow * getWindowUnderPointer ( QWindow * window,
QPoint globalPos )
static

Definition at line 242 of file qwindowspointerhandler.cpp.

◆ isMouseEventSynthesizedFromPenOrTouch()

bool isMouseEventSynthesizedFromPenOrTouch ( )
inlinestatic

Definition at line 706 of file qwindowspointerhandler.cpp.

Referenced by QWindowsPointerHandler::translateMouseEvent().

Here is the caller graph for this function:

◆ isValidWheelReceiver()

bool isValidWheelReceiver ( QWindow * candidate)
static

Definition at line 274 of file qwindowspointerhandler.cpp.

References QWindowsWindow::BlockedByModal, and QWindowsWindow::testFlag().

Here is the call graph for this function:

◆ mouseButtonsFromKeyState()

Qt::MouseButtons mouseButtonsFromKeyState ( WPARAM keyState)
static

Definition at line 209 of file qwindowspointerhandler.cpp.

◆ primaryMouse()

const QPointingDevice * primaryMouse ( )

Definition at line 41 of file qwindowspointerhandler.cpp.

Referenced by QWindowsPointerHandler::translateMouseEvent().

Here is the caller graph for this function:

◆ trackLeave()

bool trackLeave ( HWND hwnd)
static

Definition at line 264 of file qwindowspointerhandler.cpp.