2024-08-25 04:08:24 +00:00
|
|
|
#include <QSize>
|
|
|
|
#include <QSurface>
|
|
|
|
#include <QSurfaceFormat>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "qsurface.h"
|
|
|
|
#include "gen_qsurface.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QSurface_SurfaceClass(const QSurface* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QSurface::SurfaceClass _ret = self->surfaceClass();
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QSurfaceFormat* QSurface_Format(const QSurface* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QSurfaceFormat _ret = self->format();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QSurfaceFormat*>(new QSurfaceFormat(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uintptr_t QSurface_SurfaceType(const QSurface* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QSurface::SurfaceType _ret = self->surfaceType();
|
|
|
|
return static_cast<uintptr_t>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QSurface_SupportsOpenGL(const QSurface* self) {
|
|
|
|
return self->supportsOpenGL();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QSurface_Size(const QSurface* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QSize _ret = self->size();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QSize*>(new QSize(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QSurface_Delete(QSurface* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|