QWSPointerCalibrationData Class

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

頭: #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.

注意,此類隻可用於 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 () 函數。

另請參閱 QWSCalibratedMouseHandler and Mouse Calibration Example .

成員類型文檔編製

enum QWSPointerCalibrationData:: 定位

This enum describes the various logical positions that can be specified by the devPoints and screenPoints 變量。

常量 描述
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.

成員變量文檔編製

QPoint QWSPointerCalibrationData:: devPoints [5]

This variable holds the raw device coordinates for each value of the Location enum.

QPoint QWSPointerCalibrationData:: screenPoints [5]

This variable holds the logical screen coordinates for each value of the Location enum.