![]() |
Qt 6.x
The Qt SDK
|
#include <qwindowspointerhandler.h>
Public Types | |
using | QPointingDevicePtr = QSharedPointer< QPointingDevice > |
Public Member Functions | |
QWindowsPointerHandler ()=default | |
~QWindowsPointerHandler () | |
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) |
const QPointingDevicePtr & | touchDevice () const |
void | setTouchDevice (const QPointingDevicePtr &d) |
QWindow * | windowUnderMouse () const |
void | clearWindowUnderMouse () |
void | clearEvents () |
Static Public Member Functions | |
static QPointingDevicePtr | createTouchDevice (bool mouseEmulation) |
Definition at line 22 of file qwindowspointerhandler.h.
Definition at line 26 of file qwindowspointerhandler.h.
|
default |
QWindowsPointerHandler::~QWindowsPointerHandler | ( | ) |
Definition at line 42 of file qwindowspointerhandler.cpp.
void QWindowsPointerHandler::clearEvents | ( | ) |
Definition at line 313 of file qwindowspointerhandler.cpp.
References Qt::NoButton, and QEvent::None.
|
inline |
Definition at line 38 of file qwindowspointerhandler.h.
Referenced by QWindowsContext::clearWindowUnderMouse().
|
static |
Definition at line 279 of file qwindowspointerhandler.cpp.
References QInputDevice::Area, d, Qt::dec(), QPointingDevice::Finger, QPointingDeviceUniqueId::fromNumericId(), Qt::hex(), QInputDevice::MouseEmulation, QInputDevice::NormalizedPosition, Qt::noshowbase(), QInputDevice::Position, qCDebug, QInputDevice::Scroll, Qt::showbase(), QInputDevice::TouchPad, and QInputDevice::TouchScreen.
Referenced by QWindowsContext::initTouch().
|
inline |
Definition at line 34 of file qwindowspointerhandler.h.
References d.
Referenced by QWindowsContext::initTouch().
|
inline |
Definition at line 33 of file qwindowspointerhandler.h.
Referenced by QWindowsContextPrivate::QWindowsContextPrivate(), and QWindowsContext::initTouch().
bool QWindowsPointerHandler::translateMouseEvent | ( | QWindow * | window, |
HWND | hwnd, | ||
QtWindows::WindowsEventType | et, | ||
MSG | msg, | ||
LRESULT * | result | ||
) |
Definition at line 734 of file qwindowspointerhandler.cpp.
References QSharedPointer< T >::data(), device, QWindowsIntegration::DontPassOsMouseEventsSynthesizedFromTouch, eventFromMsg(), QWindowSystemInterface::flushWindowSystemEvents(), getWindowUnderPointer(), QWindowSystemInterface::handleLeaveEvent(), QWindowSystemInterface::handleMouseEvent(), QWindowsIntegration::instance(), isMouseEventSynthesizedFromPenOrTouch(), QPointer< T >::isNull(), QSharedPointer< T >::isNull(), QWindowsBaseWindow::isRtlLayout(), lastMouseMovePos, QWindowsGeometryHint::mapFromGlobal(), QWindowsGeometryHint::mapToGlobal(), QEvent::MouseButtonRelease, mouseButtonsFromKeyState(), Qt::MouseEventNotSynthesized, Qt::MouseEventSynthesizedBySystem, QEvent::MouseMove, QtWindows::MouseWheelEvent, QEvent::NonClientAreaMouseButtonDblClick, QEvent::NonClientAreaMouseButtonPress, QEvent::NonClientAreaMouseButtonRelease, QEvent::NonClientAreaMouseMove, QtWindows::NonClientEventFlag, QEvent::None, QWindowsMouseHandler::primaryMouse(), qCDebug, QT_PT_PEN, QT_PT_TOUCH, QWindowsKeyMapper::queryKeyboardModifiers(), queryMouseButtons(), QPoint::setX(), Event::type, window(), and QPoint::x().
Referenced by QWindowsContext::windowsProc().
bool QWindowsPointerHandler::translatePointerEvent | ( | QWindow * | window, |
HWND | hwnd, | ||
QtWindows::WindowsEventType | et, | ||
MSG | msg, | ||
LRESULT * | result | ||
) |
Definition at line 46 of file qwindowspointerhandler.cpp.
References Qt::AA_CompressHighFrequencyEvents, Qt::AA_CompressTabletEvents, QVarLengthArray< T, Prealloc >::data(), it, qt_error_string(), QT_PT_MOUSE, QT_PT_PEN, QT_PT_POINTER, QT_PT_TOUCH, QT_PT_TOUCHPAD, qWarning, QVarLengthArray< T, Prealloc >::rbegin(), QVarLengthArray< T, Prealloc >::rend(), QVarLengthArray< T, Prealloc >::resize(), QCoreApplication::testAttribute(), and window().
Referenced by QWindowsContext::windowsProc().
|
inline |
Definition at line 37 of file qwindowspointerhandler.h.
References QPointer< T >::data().
Referenced by QWindowsContext::windowUnderMouse().