mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
20 lines
673 B
C++
20 lines
673 B
C++
#include <QAbstractNativeEventFilter>
|
|
#include <QByteArray>
|
|
#include <qabstractnativeeventfilter.h>
|
|
#include "gen_qabstractnativeeventfilter.h"
|
|
#include "_cgo_export.h"
|
|
|
|
bool QAbstractNativeEventFilter_NativeEventFilter(QAbstractNativeEventFilter* self, struct miqt_string eventType, void* message, intptr_t* result) {
|
|
QByteArray eventType_QByteArray(eventType.data, eventType.len);
|
|
return self->nativeEventFilter(eventType_QByteArray, message, (qintptr*)(result));
|
|
}
|
|
|
|
void QAbstractNativeEventFilter_Delete(QAbstractNativeEventFilter* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QAbstractNativeEventFilter*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|