![]() |
Qt 6.x
The Qt SDK
|
Tablet support for Windows. More...
#include <qwindowstabletsupport.h>
Collaboration diagram for QWindowsTabletSupport:Public Types | |
| enum | Mode { PenMode , MouseMode } |
| enum | State { PenUp , PenProximity , PenDown } |
| using | DevicePtr = QSharedPointer< QWinTabPointingDevice > |
| using | Devices = QList< DevicePtr > |
Public Member Functions | |
| ~QWindowsTabletSupport () | |
| void | notifyActivate () |
| QString | description () const |
| bool | translateTabletProximityEvent (WPARAM wParam, LPARAM lParam) |
| bool | translateTabletPacketEvent () |
Static Public Member Functions | |
| static QWindowsTabletSupport * | create () |
| static int | absoluteRange () |
| static void | setAbsoluteRange (int a) |
Tablet support for Windows.
Support for WACOM tablets.
Definition at line 98 of file qwindowstabletsupport.h.
Definition at line 105 of file qwindowstabletsupport.h.
| using QWindowsTabletSupport::Devices = QList<DevicePtr> |
Definition at line 106 of file qwindowstabletsupport.h.
| Enumerator | |
|---|---|
| PenMode | |
| MouseMode | |
Definition at line 108 of file qwindowstabletsupport.h.
| Enumerator | |
|---|---|
| PenUp | |
| PenProximity | |
| PenDown | |
Definition at line 114 of file qwindowstabletsupport.h.
| QWindowsTabletSupport::~QWindowsTabletSupport | ( | ) |
Definition at line 226 of file qwindowstabletsupport.cpp.
References QWindowsWinTab32DLL::wTClose.
|
inlinestatic |
Definition at line 131 of file qwindowstabletsupport.h.
|
static |
Definition at line 232 of file qwindowstabletsupport.cpp.
References context, QWindowsContext::createDummyWindow(), QWindowsWinTab32DLL::init(), QWindowsContext::instance(), PACKETDATA, PacketMode, qCDebug, qCWarning, QStringLiteral, qWarning, qWindowsTabletSupportWndProc(), TabletPacketQSize, window(), QWindowsWinTab32DLL::wTClose, QWindowsWinTab32DLL::wTInfo, QWindowsWinTab32DLL::wTOpen, and QWindowsWinTab32DLL::wTQueueSizeGet.
Referenced by QWindowsContext::initTablet().
Here is the call graph for this function:
Here is the caller graph for this function:| QString QWindowsTabletSupport::description | ( | ) | const |
Definition at line 288 of file qwindowstabletsupport.cpp.
References QVarLengthArray< T, Prealloc >::data(), Qt::dec(), formatOptions(), QString::fromWCharArray(), Qt::hex(), str, and QWindowsWinTab32DLL::wTInfo.
Here is the call graph for this function:| void QWindowsTabletSupport::notifyActivate | ( | ) |
Definition at line 320 of file qwindowstabletsupport.cpp.
References qCDebug, QWindowsWinTab32DLL::wTEnable, and QWindowsWinTab32DLL::wTOverlap.
|
inlinestatic |
Definition at line 132 of file qwindowstabletsupport.h.
Referenced by QWindowsContext::setTabletAbsoluteRange().
Here is the caller graph for this function:| bool QWindowsTabletSupport::translateTabletPacketEvent | ( | ) |
Definition at line 568 of file qwindowstabletsupport.cpp.
References QInputDevice::Airbrush, convertTabletButtons(), QSharedPointer< T >::data(), QWinTabPointingDevice::deviceData(), QPointingDevice::Eraser, QWindowSystemInterface::handleTabletEvent(), i, QSharedPointer< T >::isNull(), QPlatformWindow::mapFromGlobal(), MouseMode, QWindowsCursor::mousePosition(), Qt::NoButton, QPointingDeviceUniqueId::numericId, QPointingDevice::Pen, PenDown, PenMode, PenProximity, QPointingDevice::pointerType, pointerType(), QGuiApplication::primaryScreen, Q_ASSERT, qCDebug, qDegreesToRadians(), qRadiansToDegrees(), QWindowsKeyMapper::queryKeyboardModifiers(), QWindowsTabletDeviceData::scaleCoordinates(), QWindowsTabletDeviceData::scalePressure(), QWindowsTabletDeviceData::scaleTangentialPressure(), QInputDevice::systemId, QGuiApplicationPrivate::tabletDevicePoint(), TabletPacketQSize, QGuiApplicationPrivate::TabletPointData::target, QPointF::toPoint(), QInputDevice::type, QPointingDevice::uniqueId, QWindowsContext::verbose, QWindowsScreen::virtualGeometry(), QWindowsScreen::windowAt(), QWindowsWinTab32DLL::wTPacketsGet, and QWindowsTabletDeviceData::zCapability.
Here is the call graph for this function:| bool QWindowsTabletSupport::translateTabletProximityEvent | ( | WPARAM | wParam, |
| LPARAM | lParam | ||
| ) |
Definition at line 468 of file qwindowstabletsupport.cpp.
References QList< T >::append(), createInputDevice(), QSharedPointer< T >::data(), QWinTabPointingDevice::deviceData(), deviceType(), QSharedPointer< T >::isNull(), PenProximity, PenUp, pointerType(), qCDebug, QSharedPointer< T >::reset(), QWindowsWinTab32DLL::wTInfo, and QWindowsWinTab32DLL::wTPacketsGet.
Here is the call graph for this function: