Qt 4.8
Public Types | Public Variables | List of all members
QWSPointerCalibrationData Class Reference

The QWSPointerCalibrationData class is a container for mouse calibration data in Qt for Embedded Linux. More...

#include <qmouse_qws.h>

Public Types

enum  Location {
  TopLeft = 0, BottomLeft = 1, BottomRight = 2, TopRight = 3,
  Center = 4, LastLocation = Center
}
 This enum describes the various logical positions that can be specified by the devPoints and screenPoints variables. More...
 

Public Variables

QPoint devPoints [5]
 the raw device coordinates for each value of the Location enum. More...
 
QPoint screenPoints [5]
 the logical screen coordinates for each value of the Location enum. More...
 

Detailed Description

The QWSPointerCalibrationData class is a container for mouse calibration data in Qt for Embedded Linux.

Note that this class is only available in Qt for Embedded Linux.

QWSPointerCalibrationData stores device and screen coordinates in the devPoints and screenPoints variables, respectively.

A calibration program should create a QWSPointerCalibrationData object, fill the devPoints and screenPoints variables with its device and screen coordinates, and pass the object to the mouse driver using the QWSMouseHandler::calibrate() function.

See also
QWSCalibratedMouseHandler, {Mouse Calibration Example}

Definition at line 57 of file qmouse_qws.h.

Enumerations

◆ Location

This enum describes the various logical positions that can be specified by the devPoints and screenPoints variables.

  • TopLeft Index of the top left corner of the screen.
  • BottomLeft Index of the bottom left corner of the screen.
  • BottomRight Index of the bottom right corner of the screen.
  • TopRight Index of the top right corner of the screen.
  • Center Index of the center of the screen.
  • LastLocation Last index in the pointer arrays.
Enumerator
TopLeft 
BottomLeft 
BottomRight 
TopRight 
Center 
LastLocation 

Definition at line 60 of file qmouse_qws.h.

Properties

◆ devPoints

QWSPointerCalibrationData::devPoints

the raw device coordinates for each value of the Location enum.

Definition at line 62 of file qmouse_qws.h.

Referenced by QWSCalibratedMouseHandler::calibrate(), and QWSCalibratedMouseHandler::getCalibration().

◆ screenPoints

QWSPointerCalibrationData::screenPoints

the logical screen coordinates for each value of the Location enum.

Definition at line 63 of file qmouse_qws.h.

Referenced by QWSCalibratedMouseHandler::calibrate(), and QWSCalibratedMouseHandler::getCalibration().


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