miqt/qt6/webengine/gen_qwebenginefindtextresult.cpp
Jacek Sieka a0c6344ecd Avoid dependency on exported go header
The expected type of the callback is already known from the AST - this
change reduces dependency on cgo specifics and makes the generated C ABI
entirely cgo-independent - in particular, there is no need to include
`_cgo_export.h` any more.
2025-01-07 12:55:40 +01:00

41 lines
1014 B
C++

#include <QWebEngineFindTextResult>
#include <qwebenginefindtextresult.h>
#include "gen_qwebenginefindtextresult.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif
QWebEngineFindTextResult* QWebEngineFindTextResult_new() {
return new QWebEngineFindTextResult();
}
QWebEngineFindTextResult* QWebEngineFindTextResult_new2(QWebEngineFindTextResult* other) {
return new QWebEngineFindTextResult(*other);
}
int QWebEngineFindTextResult_NumberOfMatches(const QWebEngineFindTextResult* self) {
return self->numberOfMatches();
}
int QWebEngineFindTextResult_ActiveMatch(const QWebEngineFindTextResult* self) {
return self->activeMatch();
}
void QWebEngineFindTextResult_OperatorAssign(QWebEngineFindTextResult* self, QWebEngineFindTextResult* other) {
self->operator=(*other);
}
void QWebEngineFindTextResult_Delete(QWebEngineFindTextResult* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QWebEngineFindTextResult*>( self );
} else {
delete self;
}
}