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 Class Reference

#include <qwindowspointerhandler.h>

Collaboration diagram for QWindowsPointerHandler:

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 QPointingDevicePtrtouchDevice () const
void setTouchDevice (const QPointingDevicePtr &d)
QWindowwindowUnderMouse () const
void clearWindowUnderMouse ()
void clearEvents ()

Static Public Member Functions

static QPointingDevicePtr createTouchDevice (bool mouseEmulation)
static Qt::MouseButtons queryMouseButtons ()

Detailed Description

Definition at line 22 of file qwindowspointerhandler.h.

Member Typedef Documentation

◆ QPointingDevicePtr

Constructor & Destructor Documentation

◆ QWindowsPointerHandler()

QWindowsPointerHandler::QWindowsPointerHandler ( )
default

◆ ~QWindowsPointerHandler()

QWindowsPointerHandler::~QWindowsPointerHandler ( )

Definition at line 49 of file qwindowspointerhandler.cpp.

Member Function Documentation

◆ clearEvents()

void QWindowsPointerHandler::clearEvents ( )

Definition at line 320 of file qwindowspointerhandler.cpp.

◆ clearWindowUnderMouse()

void QWindowsPointerHandler::clearWindowUnderMouse ( )
inline

Definition at line 38 of file qwindowspointerhandler.h.

◆ createTouchDevice()

QWindowsPointerHandler::QPointingDevicePtr QWindowsPointerHandler::createTouchDevice ( bool mouseEmulation)
static

Definition at line 286 of file qwindowspointerhandler.cpp.

◆ queryMouseButtons()

Qt::MouseButtons QWindowsPointerHandler::queryMouseButtons ( )
static

Definition at line 225 of file qwindowspointerhandler.cpp.

◆ setTouchDevice()

void QWindowsPointerHandler::setTouchDevice ( const QPointingDevicePtr & d)
inline

Definition at line 34 of file qwindowspointerhandler.h.

◆ touchDevice()

const QPointingDevicePtr & QWindowsPointerHandler::touchDevice ( ) const
inline

Definition at line 33 of file qwindowspointerhandler.h.

◆ translateMouseEvent()

bool QWindowsPointerHandler::translateMouseEvent ( QWindow * window,
HWND hwnd,
QtWindows::WindowsEventType et,
MSG msg,
LRESULT * result )

Definition at line 744 of file qwindowspointerhandler.cpp.

References QWindowsContext::instance(), isMouseEventSynthesizedFromPenOrTouch(), QWindowsContext::keyMapper(), QtWindows::MouseWheelEvent, QtWindows::NonClientEventFlag, and primaryMouse().

Here is the call graph for this function:

◆ translatePointerEvent()

bool QWindowsPointerHandler::translatePointerEvent ( QWindow * window,
HWND hwnd,
QtWindows::WindowsEventType et,
MSG msg,
LRESULT * result )

Definition at line 53 of file qwindowspointerhandler.cpp.

◆ windowUnderMouse()

QWindow * QWindowsPointerHandler::windowUnderMouse ( ) const
inline

Definition at line 37 of file qwindowspointerhandler.h.


The documentation for this class was generated from the following files: