4#ifndef QWINDOWSPOINTERHANDLER_H
5#define QWINDOWSPOINTERHANDLER_H
8#include <QtCore/qt_windows.h>
10#include <QtCore/qpointer.h>
11#include <QtCore/qscopedpointer.h>
12#include <QtCore/qsharedpointer.h>
13#include <QtCore/qhash.h>
14#include <QtGui/qevent.h>
15#include <qpa/qwindowsysteminterface.h>
44 bool translateMouseWheelEvent(
QWindow *
window,
QWindow *currentWindowUnderPointer,
MSG msg,
QPoint globalPos, Qt::KeyboardModifiers keyModifiers);
47#if QT_CONFIG(tabletevent)
52#if QT_CONFIG(tabletevent)
60 QWindow *m_previousCaptureWindow =
nullptr;
61 bool m_needsEnterOnPointerUpdate =
false;
64 DWORD m_pointerType = 0;
65 static qint64 m_nextInputDeviceId;
Type
This enum type defines the valid event types in Qt.
\inmodule QtCore\reentrant
The QPointingDevice class describes a device from which mouse, touch or tablet events originate.
PointerType
This enum represents what is interacting with the pointing device.
QWindow * windowUnderMouse() const
static QPointingDevicePtr createTouchDevice(bool mouseEmulation)
~QWindowsPointerHandler()
QWindowsPointerHandler()=default
const QPointingDevicePtr & touchDevice() const
bool translatePointerEvent(QWindow *window, HWND hwnd, QtWindows::WindowsEventType et, MSG msg, LRESULT *result)
bool translateMouseEvent(QWindow *window, HWND hwnd, QtWindows::WindowsEventType et, MSG msg, LRESULT *result)
void clearWindowUnderMouse()
QSharedPointer< QPointingDevice > QPointingDevicePtr
void setTouchDevice(const QPointingDevicePtr &d)
Combined button and popup list for selecting options.
WindowsEventType
Enumerations for WM_XX events.
GLenum GLenum GLsizei count
static QPointingDevice::PointerType pointerType(unsigned currentCursor)