#include <SoQtTouchpad.h>
Public Types | |
| enum | Mask { MAGNIFY = 0x01, ROTATE = 0x02, PAN = 0x04, SWIPE = 0x08, DOUBLETAP = 0x10, HOLDWHILEPAN = 0x20, ALL = 0xFF } |
| Event mask values. More... | |
Public Member Functions | |
| SoQtTouchpad (Mask mask=SoQtTouchpad::ALL) | |
| Constructor. | |
| ~SoQtTouchpad () | |
| Destructor. | |
| virtual const SoEvent * | translateEvent (QEvent *event) |
| This converts a window system event into an SoEvent. | |
| virtual void | enable (QWidget *w, SoQtEventHandler *f, void *data) |
| These functions will enable/disable this device for the passed widget. | |
| virtual void | disable (QWidget *w, SoQtEventHandler *f, void *data) |
Static Public Member Functions | |
| static void | initClass () |
...
events ...
Definition at line 39 of file SoQtTouchpad.h.
| enum SoQtTouchpad::Mask |
Event mask values.
Bitwise OR these to specify whichEvents this device should queue.
| MAGNIFY | Touchpad magnify. |
| ROTATE | Touchpad rotate. |
| PAN | Touchpad pan. |
| SWIPE | Touchpad swipe. |
| DOUBLETAP | Touchpad double tap. |
| HOLDWHILEPAN | Touchpad hold while pan. |
| ALL | All Touchpad events. |
Definition at line 49 of file SoQtTouchpad.h.
| SoQtTouchpad::SoQtTouchpad | ( | Mask | mask = SoQtTouchpad::ALL |
) |
Constructor.
| SoQtTouchpad::~SoQtTouchpad | ( | ) |
Destructor.
| virtual void SoQtTouchpad::disable | ( | QWidget * | w, | |
| SoQtEventHandler * | f, | |||
| void * | data | |||
| ) | [virtual] |
| virtual void SoQtTouchpad::enable | ( | QWidget * | w, | |
| SoQtEventHandler * | f, | |||
| void * | data | |||
| ) | [virtual] |
These functions will enable/disable this device for the passed widget.
The callback function f will be invoked when events occur in w. data is the clientData which will be passed.
| static void SoQtTouchpad::initClass | ( | ) | [static] |
| virtual const SoEvent* SoQtTouchpad::translateEvent | ( | QEvent * | event | ) | [virtual] |
This converts a window system event into an SoEvent.
The function returns NULL if the event is not from this device.
1.5.8