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
QEvdevTouchScreenData Class Reference
+ Collaboration diagram for QEvdevTouchScreenData:

Classes

struct  Contact
 

Public Member Functions

 QEvdevTouchScreenData (QEvdevTouchScreenHandler *q_ptr, const QStringList &args)
 
void processInputEvent (input_event *data)
 
void assignIds ()
 
int findClosestContact (const QHash< int, Contact > &contacts, int x, int y, int *dist)
 
void addTouchPoint (const Contact &contact, QEventPoint::States *combinedStates)
 
void reportPoints ()
 
void loadMultiScreenMappings ()
 
QRect screenGeometry () const
 

Public Attributes

QEvdevTouchScreenHandlerq
 
int m_lastEventType
 
QList< QWindowSystemInterface::TouchPointm_touchPoints
 
QList< QWindowSystemInterface::TouchPointm_lastTouchPoints
 
QHash< int, Contactm_contacts
 
QHash< int, Contactm_lastContacts
 
Contact m_currentData
 
int m_currentSlot
 
double m_timeStamp
 
double m_lastTimeStamp
 
int hw_range_x_min
 
int hw_range_x_max
 
int hw_range_y_min
 
int hw_range_y_max
 
int hw_pressure_min
 
int hw_pressure_max
 
QString hw_name
 
QString deviceNode
 
bool m_forceToActiveWindow
 
bool m_typeB
 
QTransform m_rotate
 
bool m_singleTouch
 
QString m_screenName
 
QPointer< QScreenm_screen
 
bool m_filtered
 
int m_prediction
 
QMutex m_mutex
 

Detailed Description

Definition at line 79 of file qevdevtouchhandler.cpp.

Constructor & Destructor Documentation

◆ QEvdevTouchScreenData()

QEvdevTouchScreenData::QEvdevTouchScreenData ( QEvdevTouchScreenHandler * q_ptr,
const QStringList & args )

Definition at line 143 of file qevdevtouchhandler.cpp.

References arg, args, m_filtered, m_forceToActiveWindow, m_prediction, QStringView::mid(), and toInt().

+ Here is the call graph for this function:

Member Function Documentation

◆ addTouchPoint()

void QEvdevTouchScreenData::addTouchPoint ( const Contact & contact,
QEventPoint::States * combinedStates )

Definition at line 489 of file qevdevtouchhandler.cpp.

References QList< T >::append(), QWindowSystemInterface::TouchPoint::area, hw_range_x_max, hw_range_x_min, hw_range_y_max, hw_range_y_min, QWindowSystemInterface::TouchPoint::id, QTransform::isIdentity(), m_rotate, m_touchPoints, QTransform::map(), QRectF::moveCenter(), QWindowSystemInterface::TouchPoint::normalPosition, QWindowSystemInterface::TouchPoint::pressure, QWindowSystemInterface::TouchPoint::rawPositions, and QWindowSystemInterface::TouchPoint::state.

Referenced by processInputEvent().

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

◆ assignIds()

void QEvdevTouchScreenData::assignIds ( )

Definition at line 701 of file qevdevtouchhandler.cpp.

References dist(), findClosestContact(), QSet< T >::insert(), it, m_contacts, m_lastContacts, and pending.

Referenced by processInputEvent().

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

◆ findClosestContact()

int QEvdevTouchScreenData::findClosestContact ( const QHash< int, Contact > & contacts,
int x,
int y,
int * dist )

Definition at line 682 of file qevdevtouchhandler.cpp.

References dist(), and it.

Referenced by assignIds().

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

◆ loadMultiScreenMappings()

void QEvdevTouchScreenData::loadMultiScreenMappings ( )

◆ processInputEvent()

◆ reportPoints()

void QEvdevTouchScreenData::reportPoints ( )

Definition at line 769 of file qevdevtouchhandler.cpp.

References QWindowSystemInterface::TouchPoint::area, emit, QWindowSystemInterface::handleTouchEvent(), QRectF::height(), hw_pressure_max, hw_pressure_min, hw_range_x_max, hw_range_x_min, hw_range_y_max, hw_range_y_min, i, m_filtered, m_touchPoints, QRectF::moveCenter(), QWindowSystemInterface::TouchPoint::normalPosition, QWindowSystemInterface::TouchPoint::pressure, Q_UNLIKELY, qCDebug, QEventPoint::Released, screenGeometry(), QList< T >::size(), QWindowSystemInterface::TouchPoint::state, QRectF::width(), QPointF::x(), and QPointF::y().

Referenced by processInputEvent().

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

◆ screenGeometry()

QRect QEvdevTouchScreenData::screenGeometry ( ) const

Definition at line 735 of file qevdevtouchhandler.cpp.

References QGuiApplication::focusWindow(), QScreen::geometry, QWidget::geometry, QString::isEmpty(), m_forceToActiveWindow, m_screen, m_screenName, QGuiApplication::primaryScreen, screen, QGuiApplication::screens(), QHighDpi::toNativePixels(), QHighDpi::toNativeWindowGeometry(), and win.

Referenced by reportPoints().

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

Member Data Documentation

◆ deviceNode

QString QEvdevTouchScreenData::deviceNode

◆ hw_name

QString QEvdevTouchScreenData::hw_name

◆ hw_pressure_max

int QEvdevTouchScreenData::hw_pressure_max

◆ hw_pressure_min

int QEvdevTouchScreenData::hw_pressure_min

◆ hw_range_x_max

int QEvdevTouchScreenData::hw_range_x_max

◆ hw_range_x_min

int QEvdevTouchScreenData::hw_range_x_min

◆ hw_range_y_max

int QEvdevTouchScreenData::hw_range_y_max

◆ hw_range_y_min

int QEvdevTouchScreenData::hw_range_y_min

◆ m_contacts

QHash<int, Contact> QEvdevTouchScreenData::m_contacts

Definition at line 100 of file qevdevtouchhandler.cpp.

Referenced by assignIds(), and processInputEvent().

◆ m_currentData

Contact QEvdevTouchScreenData::m_currentData

Definition at line 102 of file qevdevtouchhandler.cpp.

Referenced by processInputEvent().

◆ m_currentSlot

int QEvdevTouchScreenData::m_currentSlot

Definition at line 103 of file qevdevtouchhandler.cpp.

Referenced by processInputEvent().

◆ m_filtered

◆ m_forceToActiveWindow

bool QEvdevTouchScreenData::m_forceToActiveWindow

Definition at line 123 of file qevdevtouchhandler.cpp.

Referenced by QEvdevTouchScreenData(), and screenGeometry().

◆ m_lastContacts

QHash<int, Contact> QEvdevTouchScreenData::m_lastContacts

Definition at line 101 of file qevdevtouchhandler.cpp.

Referenced by assignIds(), and processInputEvent().

◆ m_lastEventType

int QEvdevTouchScreenData::m_lastEventType

Definition at line 88 of file qevdevtouchhandler.cpp.

Referenced by processInputEvent().

◆ m_lastTimeStamp

double QEvdevTouchScreenData::m_lastTimeStamp

Definition at line 106 of file qevdevtouchhandler.cpp.

Referenced by processInputEvent().

◆ m_lastTouchPoints

QList<QWindowSystemInterface::TouchPoint> QEvdevTouchScreenData::m_lastTouchPoints

Definition at line 90 of file qevdevtouchhandler.cpp.

Referenced by processInputEvent().

◆ m_mutex

QMutex QEvdevTouchScreenData::m_mutex

Definition at line 140 of file qevdevtouchhandler.cpp.

Referenced by processInputEvent().

◆ m_prediction

int QEvdevTouchScreenData::m_prediction

◆ m_rotate

QTransform QEvdevTouchScreenData::m_rotate

◆ m_screen

QPointer<QScreen> QEvdevTouchScreenData::m_screen
mutable

Definition at line 128 of file qevdevtouchhandler.cpp.

Referenced by screenGeometry().

◆ m_screenName

QString QEvdevTouchScreenData::m_screenName

◆ m_singleTouch

bool QEvdevTouchScreenData::m_singleTouch

◆ m_timeStamp

double QEvdevTouchScreenData::m_timeStamp

Definition at line 105 of file qevdevtouchhandler.cpp.

Referenced by processInputEvent().

◆ m_touchPoints

QList<QWindowSystemInterface::TouchPoint> QEvdevTouchScreenData::m_touchPoints

Definition at line 89 of file qevdevtouchhandler.cpp.

Referenced by addTouchPoint(), processInputEvent(), and reportPoints().

◆ m_typeB

bool QEvdevTouchScreenData::m_typeB

◆ q

QEvdevTouchScreenHandler* QEvdevTouchScreenData::q

Definition at line 87 of file qevdevtouchhandler.cpp.


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