mirror of
https://github.com/mappu/miqt.git
synced 2025-01-22 14:40:38 +00:00
a0c6344ecd
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.
41 lines
1014 B
C++
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;
|
|
}
|
|
}
|
|
|