A native event filter to access platform specific events. More...
#include <qxtnativeeventfilter.h>
Public Member Functions | |
| virtual | ~QxtNativeEventFilter () |
A native event filter to access platform specific events.
QxtNativeEventFilter provides access to platform specific native events without the need of subclassing QApplication.
Example usage:
qxtApp->installNativeEventFilter(myObject);
class MyObject : public QxtNativeEventFilter {
public:
...
bool x11EventFilter(XEvent* event) {
if (event->type == ...) {
...
}
return false;
}
bool winEventFilter(MSG* msg, long* result) {
if (msg->message == ...) {
...
}
return false;
}
bool macEventFilter(EventHandlerCallRef caller, EventRef event) {
if (GetEventClass(event) == ...) {
...
}
return false;
}
};
Definition at line 104 of file qxtnativeeventfilter.h.
| virtual QxtNativeEventFilter::~QxtNativeEventFilter | ( | ) | [inline, virtual] |
Definition at line 107 of file qxtnativeeventfilter.h.
{
qxtApp->removeNativeEventFilter(this);
}
1.7.2