CopperSpice API
1.9.2
|
Provides an interface for receiving native events, such as MSG or XCB event structs. More...
Public Methods | |
QAbstractNativeEventFilter () | |
virtual | ~QAbstractNativeEventFilter () |
virtual bool | nativeEventFilter (const QByteArray &eventType, void *message, long *result) = 0 |
The QAbstractNativeEventFilter class provides an interface for receiving native events, such as MSG or XCB event structs.
QAbstractNativeEventFilter::QAbstractNativeEventFilter | ( | ) |
Creates a native event filter. By default this does not do anything, it must be installed on the application object.
|
virtual |
Destroys the native event filter. This automatically removes it from the application.
|
pure virtual |
This method is called for every native event. This method receives native messages, for example MSG or XCB event structs.
The eventType is specific to the platform plugin chosen at runtime and can be used to cast message to the right type. In your reimplementation of this method if you want to filter the message out, and stop it being handled further, return true, otherwise return false.
mycocoaeventfilter.h
mycocoaeventfilter.mm