miqt/qt/gen_qsurface.cpp

34 lines
738 B
C++
Raw Permalink Normal View History

#include <QSize>
#include <QSurface>
#include <QSurfaceFormat>
#include <qsurface.h>
2024-08-29 07:01:51 +00:00
#include "gen_qsurface.h"
#include "_cgo_export.h"
int QSurface_SurfaceClass(const QSurface* self) {
QSurface::SurfaceClass _ret = self->surfaceClass();
return static_cast<int>(_ret);
2024-08-29 07:01:51 +00:00
}
QSurfaceFormat* QSurface_Format(const QSurface* self) {
return new QSurfaceFormat(self->format());
}
int QSurface_SurfaceType(const QSurface* self) {
QSurface::SurfaceType _ret = self->surfaceType();
return static_cast<int>(_ret);
2024-08-29 07:01:51 +00:00
}
bool QSurface_SupportsOpenGL(const QSurface* self) {
return self->supportsOpenGL();
}
QSize* QSurface_Size(const QSurface* self) {
return new QSize(self->size());
}
void QSurface_Delete(QSurface* self) {
delete self;
}