Qt:Документация 4.3.2/qwspointercalibrationdata
Материал из Wiki.crossplatform.ru
Внимание: Актуальная версия перевода документации находится здесь |
__NOTOC__
Главная · Все классы · Основные классы · Классы по группам · Модули · Функции |
Содержание |
[править] QWSPointerCalibrationData Class Reference
[модуль QtGui ]
The QWSPointerCalibrationData class is a container for mouse calibration data in Qtopia Core. Далее...
#include <QWSPointerCalibrationData>
[править] Открытые типы
- enum Location { TopLeft, BottomLeft, BottomRight, TopRight, Center, LastLocation }
[править] Public Variables
- QPoint devPoints[5]
- QPoint screenPoints[5]
[править] Подробное описание
The QWSPointerCalibrationData class is a container for mouse calibration data in Qtopia Core.
Note that this class is only available in Qtopia Core.
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.
[править] Описание типов
[править] enum QWSPointerCalibrationData::Location
This enum describes the various logical positions that can be specified by the devPoints and screenPoints variables.
Константа | Значение | Описание |
---|---|---|
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. |
[править] Member Variable Documentation
[править] 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.
Copyright © 2007 Trolltech | Trademarks | Qt 4.3.2
|