Qt 4.8
Public Functions | Properties | Friends | List of all members
QWSLinuxInputMouseHandler Class Reference

#include <qmouselinuxinput_qws.h>

Inheritance diagram for QWSLinuxInputMouseHandler:
QWSCalibratedMouseHandler QWSMouseHandler

Public Functions

 QWSLinuxInputMouseHandler (const 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...
 
 ~QWSLinuxInputMouseHandler ()
 
- 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...
 

Properties

QWSLinuxInputMousePrivated
 

Friends

class QWSLinuxInputMousePrivate
 

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...
 
- Protected Variables inherited from QWSMouseHandler
QWSMouseHandlerPrivated_ptr
 
QPointmousePos
 

Detailed Description

Definition at line 57 of file qmouselinuxinput_qws.h.

Constructors and Destructors

◆ QWSLinuxInputMouseHandler()

QWSLinuxInputMouseHandler::QWSLinuxInputMouseHandler ( const QString device)

Definition at line 78 of file qmouselinuxinput_qws.cpp.

80 {
81  d = new QWSLinuxInputMousePrivate(this, device);
82 }
QWSLinuxInputMousePrivate * d
QWSCalibratedMouseHandler(const QString &driver=QString(), const QString &device=QString())
Definition: qmouse_qws.cpp:382

◆ ~QWSLinuxInputMouseHandler()

QWSLinuxInputMouseHandler::~QWSLinuxInputMouseHandler ( )

Definition at line 84 of file qmouselinuxinput_qws.cpp.

85 {
86  delete d;
87 }
QWSLinuxInputMousePrivate * d

Functions

◆ resume()

void QWSLinuxInputMouseHandler::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 94 of file qmouselinuxinput_qws.cpp.

95 {
96  d->enable(true);
97 }
QWSLinuxInputMousePrivate * d

◆ suspend()

void QWSLinuxInputMouseHandler::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 89 of file qmouselinuxinput_qws.cpp.

90 {
91  d->enable(false);
92 }
QWSLinuxInputMousePrivate * d

Friends and Related Functions

◆ QWSLinuxInputMousePrivate

Definition at line 69 of file qmouselinuxinput_qws.h.

Referenced by QWSLinuxInputMouseHandler().

Properties

◆ d

QWSLinuxInputMousePrivate* QWSLinuxInputMouseHandler::d
private

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