Qt 4.8
Public Functions | Protected Variables | Friends | List of all members
QWSLinuxTPMouseHandler Class Reference

#include <qmouselinuxtp_qws.h>

Inheritance diagram for QWSLinuxTPMouseHandler:
QWSCalibratedMouseHandler QWSMouseHandler

Public Functions

 QWSLinuxTPMouseHandler (const QString &=QString(), const QString &=QString())
 
void resume ()
 Implement this function to resume reading and handling mouse events, e. More...
 
void suspend ()
 Implement this function to suspend reading and handling of mouse events, e. More...
 
 ~QWSLinuxTPMouseHandler ()
 
- Public Functions inherited from QWSCalibratedMouseHandler
virtual void calibrate (const QWSPointerCalibrationData *)
 Updates the calibration parameters based on coordinate mapping of the given data. More...
 
virtual void clearCalibration ()
 Clears the current calibration, i.e., makes the mouse driver return mouse events in raw device coordinates instead of screen coordinates. More...
 
virtual void getCalibration (QWSPointerCalibrationData *) const
 Fills cd with the device coordinates corresponding to the given screen coordinates. More...
 
 QWSCalibratedMouseHandler (const QString &driver=QString(), const QString &device=QString())
 
- Public Functions inherited from QWSMouseHandler
void limitToScreen (QPoint &pt)
 Ensures that the given position is within the screen's boundaries, changing the position if necessary. More...
 
void mouseChanged (const QPoint &pos, int bstate, int wheel=0)
 Notifies the system of a new mouse event. More...
 
const QPointpos () const
 Returns the current mouse position. More...
 
 QWSMouseHandler (const QString &driver=QString(), const QString &device=QString())
 Constructs a mouse driver. More...
 
void setScreen (const QScreen *screen)
 Sets the screen for this mouse driver to be the given screen. More...
 
virtual ~QWSMouseHandler ()
 Destroys this mouse driver. More...
 

Protected Variables

QWSLinuxTPMouseHandlerPrivated
 
- Protected Variables inherited from QWSMouseHandler
QWSMouseHandlerPrivated_ptr
 
QPointmousePos
 

Friends

class QWSLinuxTPMouseHandlerPrivate
 

Additional Inherited Members

- Protected Functions inherited from QWSCalibratedMouseHandler
void readCalibration ()
 Reads previously written calibration parameters which are stored in /etc/pointercal (separated by whitespace and in alphabetical order). More...
 
bool sendFiltered (const QPoint &, int button)
 Notifies the system of a new mouse event after applying a noise reduction filter. More...
 
void setFilterSize (int)
 Sets the size of the filter used in noise reduction to the given size. More...
 
QPoint transform (const QPoint &)
 Transforms the given position from device coordinates to screen coordinates, and returns the transformed position. More...
 
void writeCalibration ()
 Saves the current calibration parameters in /etc/pointercal (separated by whitespace and in alphabetical order). More...
 

Detailed Description

Definition at line 57 of file qmouselinuxtp_qws.h.

Constructors and Destructors

◆ QWSLinuxTPMouseHandler()

QWSLinuxTPMouseHandler::QWSLinuxTPMouseHandler ( const QString driver = QString(),
const QString device = QString() 
)
explicit

Definition at line 154 of file qmouselinuxtp_qws.cpp.

155  : QWSCalibratedMouseHandler(driver, device)
156 {
157  d = new QWSLinuxTPMouseHandlerPrivate(this, device);
158 }
QWSLinuxTPMouseHandlerPrivate * d
QWSCalibratedMouseHandler(const QString &driver=QString(), const QString &device=QString())
Definition: qmouse_qws.cpp:382
friend class QWSLinuxTPMouseHandlerPrivate

◆ ~QWSLinuxTPMouseHandler()

QWSLinuxTPMouseHandler::~QWSLinuxTPMouseHandler ( )

Definition at line 160 of file qmouselinuxtp_qws.cpp.

161 {
162  delete d;
163 }
QWSLinuxTPMouseHandlerPrivate * d

Functions

◆ resume()

void QWSLinuxTPMouseHandler::resume ( )
virtual

Implement this function to resume reading and handling mouse events, e.

g., call the QSocketNotifier::setEnabled() function to enable the socket notifier.

See also
suspend()

Implements QWSMouseHandler.

Definition at line 170 of file qmouselinuxtp_qws.cpp.

171 {
172  d->resume();
173 }
QWSLinuxTPMouseHandlerPrivate * d

◆ suspend()

void QWSLinuxTPMouseHandler::suspend ( )
virtual

Implement this function to suspend reading and handling of mouse events, e.

g., call the QSocketNotifier::setEnabled() function to disable the socket notifier.

See also
resume()

Implements QWSMouseHandler.

Definition at line 165 of file qmouselinuxtp_qws.cpp.

166 {
167  d->suspend();
168 }
QWSLinuxTPMouseHandlerPrivate * d

Friends and Related Functions

◆ QWSLinuxTPMouseHandlerPrivate

Definition at line 59 of file qmouselinuxtp_qws.h.

Referenced by QWSLinuxTPMouseHandler().

Properties

◆ d

QWSLinuxTPMouseHandlerPrivate* QWSLinuxTPMouseHandler::d
protected

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