miqt/qt/webkit/gen_qwebfullscreenrequest.cpp

46 lines
1.1 KiB
C++
Raw Normal View History

2024-11-26 09:31:32 +00:00
#include <QUrl>
#include <QWebElement>
#include <QWebFullScreenRequest>
#include <qwebfullscreenrequest.h>
#include "gen_qwebfullscreenrequest.h"
#include "_cgo_export.h"
2024-12-07 04:15:57 +00:00
QWebFullScreenRequest* QWebFullScreenRequest_new() {
return new QWebFullScreenRequest();
2024-11-26 09:31:32 +00:00
}
2024-12-07 04:15:57 +00:00
QWebFullScreenRequest* QWebFullScreenRequest_new2(QWebFullScreenRequest* param1) {
return new QWebFullScreenRequest(*param1);
2024-11-26 09:31:32 +00:00
}
void QWebFullScreenRequest_Accept(QWebFullScreenRequest* self) {
self->accept();
}
void QWebFullScreenRequest_Reject(QWebFullScreenRequest* self) {
self->reject();
}
bool QWebFullScreenRequest_ToggleOn(const QWebFullScreenRequest* self) {
return self->toggleOn();
}
QUrl* QWebFullScreenRequest_Origin(const QWebFullScreenRequest* self) {
return new QUrl(self->origin());
}
QWebElement* QWebFullScreenRequest_Element(const QWebFullScreenRequest* self) {
const QWebElement& _ret = self->element();
// Cast returned reference into pointer
return const_cast<QWebElement*>(&_ret);
}
void QWebFullScreenRequest_Delete(QWebFullScreenRequest* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QWebFullScreenRequest*>( self );
} else {
delete self;
}
}