The QWSPointerCalibrationData class is a container for mouse calibration data in Qt for Embedded Linux. More...
#include <QWSPointerCalibrationData>
enum | Location { TopLeft, BottomLeft, BottomRight, TopRight, Center, LastLocation } |
QPoint | devPoints[5] |
QPoint | screenPoints[5] |
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 and Mouse Calibration Example.
This enum describes the various logical positions that can be specified by the devPoints and screenPoints variables.
Constant | Value | Description |
---|---|---|
QWSPointerCalibrationData::TopLeft | 0 | Index of the top left corner of the screen. |
QWSPointerCalibrationData::BottomLeft | 1 | Index of the bottom left corner of the screen. |
QWSPointerCalibrationData::BottomRight | 2 | Index of the bottom right corner of the screen. |
QWSPointerCalibrationData::TopRight | 3 | Index of the top right corner of the screen. |
QWSPointerCalibrationData::Center | 4 | Index of the center of the screen. |
QWSPointerCalibrationData::LastLocation | Center | Last index in the pointer arrays. |
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.