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.
46 lines
1.1 KiB
C++
46 lines
1.1 KiB
C++
#include <QUrl>
|
|
#include <QWebEngineFullScreenRequest>
|
|
#include <qwebenginefullscreenrequest.h>
|
|
#include "gen_qwebenginefullscreenrequest.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
QWebEngineFullScreenRequest* QWebEngineFullScreenRequest_new(QWebEngineFullScreenRequest* other) {
|
|
return new QWebEngineFullScreenRequest(*other);
|
|
}
|
|
|
|
void QWebEngineFullScreenRequest_OperatorAssign(QWebEngineFullScreenRequest* self, QWebEngineFullScreenRequest* other) {
|
|
self->operator=(*other);
|
|
}
|
|
|
|
void QWebEngineFullScreenRequest_Reject(QWebEngineFullScreenRequest* self) {
|
|
self->reject();
|
|
}
|
|
|
|
void QWebEngineFullScreenRequest_Accept(QWebEngineFullScreenRequest* self) {
|
|
self->accept();
|
|
}
|
|
|
|
bool QWebEngineFullScreenRequest_ToggleOn(const QWebEngineFullScreenRequest* self) {
|
|
return self->toggleOn();
|
|
}
|
|
|
|
QUrl* QWebEngineFullScreenRequest_Origin(const QWebEngineFullScreenRequest* self) {
|
|
return new QUrl(self->origin());
|
|
}
|
|
|
|
void QWebEngineFullScreenRequest_Delete(QWebEngineFullScreenRequest* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QWebEngineFullScreenRequest*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|