Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QWindowsTabletSupport Class Reference

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 QWindowsTabletSupportcreate ()
 
static int absoluteRange ()
 
static void setAbsoluteRange (int a)
 

Detailed Description

Tablet support for Windows.

Support for WACOM tablets.

See also
http://www.wacomeng.com/windows/docs/Wintab_v140.htm
Since
5.2

Definition at line 98 of file qwindowstabletsupport.h.

Member Typedef Documentation

◆ DevicePtr

◆ Devices

Member Enumeration Documentation

◆ Mode

Enumerator
PenMode 
MouseMode 

Definition at line 108 of file qwindowstabletsupport.h.

◆ State

Enumerator
PenUp 
PenProximity 
PenDown 

Definition at line 114 of file qwindowstabletsupport.h.

Constructor & Destructor Documentation

◆ ~QWindowsTabletSupport()

QWindowsTabletSupport::~QWindowsTabletSupport ( )

Definition at line 226 of file qwindowstabletsupport.cpp.

Member Function Documentation

◆ absoluteRange()

static int QWindowsTabletSupport::absoluteRange ( )
inlinestatic

Definition at line 131 of file qwindowstabletsupport.h.

◆ create()

QWindowsTabletSupport * QWindowsTabletSupport::create ( )
static

Definition at line 232 of file qwindowstabletsupport.cpp.

References context, QWindowsContext::instance(), PACKETDATA, PacketMode, qCDebug, qCWarning, QStringLiteral, qWarning, qWindowsTabletSupportWndProc(), TabletPacketQSize, and window().

Referenced by QWindowsContext::initTablet().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ description()

QString QWindowsTabletSupport::description ( ) const

Definition at line 288 of file qwindowstabletsupport.cpp.

References Qt::dec(), formatOptions(), QString::fromWCharArray(), Qt::hex(), and str.

+ Here is the call graph for this function:

◆ notifyActivate()

void QWindowsTabletSupport::notifyActivate ( )

Definition at line 320 of file qwindowstabletsupport.cpp.

References qCDebug.

◆ setAbsoluteRange()

static void QWindowsTabletSupport::setAbsoluteRange ( int a)
inlinestatic

Definition at line 132 of file qwindowstabletsupport.h.

Referenced by QWindowsContext::setTabletAbsoluteRange().

+ Here is the caller graph for this function:

◆ translateTabletPacketEvent()

◆ translateTabletProximityEvent()

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, and QSharedPointer< T >::reset().

+ Here is the call graph for this function:

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