Home · All Classes · Main Classes · Grouped Classes · Modules · Functions

QWSPointerCalibrationData Class Reference
[QtGui module]

The QWSPointerCalibrationData class is a container for data used in calibration of a mouse handler. More...

#include <QWSPointerCalibrationData>

Public Types


Detailed Description

The QWSPointerCalibrationData class is a container for data used in calibration of a mouse handler.

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

A calibration program should create an instance of this class, fill the devPoints and screenPoints variables with its device and screen coordinates, and pass the QWSPointerCalibrationData object to an instance of the QWSMouseHandler class using the QWSMouseHandler::calibrate() function.

See also QWSCalibratedMouseHandler and Mouse Calibration Example.


Member Type Documentation

enum QWSPointerCalibrationData::Location

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

ConstantValueDescription
QWSPointerCalibrationData::TopLeft0Index of the top left corner of the screen.
QWSPointerCalibrationData::BottomLeft1Index of the bottom left corner of the screen.
QWSPointerCalibrationData::BottomRight2Index of the bottom right corner of the screen.
QWSPointerCalibrationData::TopRight3Index of the top right corner of the screen.
QWSPointerCalibrationData::Center4Index of the center of the screen.
QWSPointerCalibrationData::LastLocationCenterLast index in the pointer arrays.


Copyright © 2006 Trolltech Trademarks
Qt 4.1.3