miqt/qt6/gen_qabstractnativeeventfilter.cpp

20 lines
673 B
C++
Raw Normal View History

2024-10-20 05:21:03 +00:00
#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));
}
2024-11-19 06:29:06 +00:00
void QAbstractNativeEventFilter_Delete(QAbstractNativeEventFilter* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QAbstractNativeEventFilter*>( self );
} else {
delete self;
}
2024-10-20 05:21:03 +00:00
}