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

#include <qmousepc_qws.h>

Inheritance diagram for QWSPcMouseHandler:
QWSMouseHandler

Public Functions

 QWSPcMouseHandler (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...
 
 ~QWSPcMouseHandler ()
 
- Public Functions inherited from QWSMouseHandler
virtual void calibrate (const QWSPointerCalibrationData *)
 This virtual function allows subclasses of QWSMouseHandler to set the calibration information passed in the given data. More...
 
virtual void clearCalibration ()
 This virtual function allows subclasses of QWSMouseHandler to clear the calibration information. More...
 
virtual void getCalibration (QWSPointerCalibrationData *) const
 This virtual function allows subclasses of QWSMouseHandler to fill in the device coordinates in data with values that correspond to screen coordinates that are already in data. More...
 
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

QWSPcMouseHandlerPrivated
 
- Protected Variables inherited from QWSMouseHandler
QWSMouseHandlerPrivated_ptr
 
QPointmousePos
 

Detailed Description

Definition at line 57 of file qmousepc_qws.h.

Constructors and Destructors

◆ QWSPcMouseHandler()

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

Definition at line 512 of file qmousepc_qws.cpp.

513  : QWSMouseHandler(driver, device)
514 {
515  d = new QWSPcMouseHandlerPrivate(this, driver, device);
516 }
QWSMouseHandler(const QString &driver=QString(), const QString &device=QString())
Constructs a mouse driver.
Definition: qmouse_qws.cpp:223
QWSPcMouseHandlerPrivate * d
Definition: qmousepc_qws.h:67

◆ ~QWSPcMouseHandler()

QWSPcMouseHandler::~QWSPcMouseHandler ( )

Definition at line 518 of file qmousepc_qws.cpp.

519 {
520  delete d;
521 }
QWSPcMouseHandlerPrivate * d
Definition: qmousepc_qws.h:67

Functions

◆ resume()

void QWSPcMouseHandler::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 528 of file qmousepc_qws.cpp.

529 {
530  d->resume();
531 }
QWSPcMouseHandlerPrivate * d
Definition: qmousepc_qws.h:67

◆ suspend()

void QWSPcMouseHandler::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 523 of file qmousepc_qws.cpp.

524 {
525  d->suspend();
526 }
QWSPcMouseHandlerPrivate * d
Definition: qmousepc_qws.h:67

Properties

◆ d

QWSPcMouseHandlerPrivate* QWSPcMouseHandler::d
protected

Definition at line 67 of file qmousepc_qws.h.

Referenced by QWSPcMouseHandler(), resume(), suspend(), and ~QWSPcMouseHandler().


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