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

#include <qdirectfbmouse.h>

Inheritance diagram for QDirectFBMouseHandler:
QWSMouseHandler

Public Functions

 QDirectFBMouseHandler (const QString &driver=QString(), const QString &device=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...
 
 ~QDirectFBMouseHandler ()
 
- 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

QDirectFBMouseHandlerPrivated
 
- Protected Variables inherited from QWSMouseHandler
QWSMouseHandlerPrivated_ptr
 
QPointmousePos
 

Detailed Description

Definition at line 58 of file qdirectfbmouse.h.

Constructors and Destructors

◆ QDirectFBMouseHandler()

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

Definition at line 268 of file qdirectfbmouse.cpp.

270  : QWSMouseHandler(driver, device)
271 {
272  d = new QDirectFBMouseHandlerPrivate(this);
273 }
QDirectFBMouseHandlerPrivate * d
QWSMouseHandler(const QString &driver=QString(), const QString &device=QString())
Constructs a mouse driver.
Definition: qmouse_qws.cpp:223

◆ ~QDirectFBMouseHandler()

QDirectFBMouseHandler::~QDirectFBMouseHandler ( )

Definition at line 275 of file qdirectfbmouse.cpp.

276 {
277  delete d;
278 }
QDirectFBMouseHandlerPrivate * d

Functions

◆ resume()

void QDirectFBMouseHandler::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 285 of file qdirectfbmouse.cpp.

286 {
287  d->setEnabled(true);
288 }
QDirectFBMouseHandlerPrivate * d

◆ suspend()

void QDirectFBMouseHandler::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 280 of file qdirectfbmouse.cpp.

281 {
282  d->setEnabled(false);
283 }
QDirectFBMouseHandlerPrivate * d

Properties

◆ d

QDirectFBMouseHandlerPrivate* QDirectFBMouseHandler::d
protected

Definition at line 68 of file qdirectfbmouse.h.

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


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