mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 00:48:38 +00:00
90 lines
2.9 KiB
C++
90 lines
2.9 KiB
C++
#include <QCameraViewfinderSettings>
|
|
#include <QSize>
|
|
#include <qcameraviewfindersettings.h>
|
|
#include "gen_qcameraviewfindersettings.h"
|
|
|
|
#ifndef _Bool
|
|
#define _Bool bool
|
|
#endif
|
|
#include "_cgo_export.h"
|
|
|
|
QCameraViewfinderSettings* QCameraViewfinderSettings_new() {
|
|
return new QCameraViewfinderSettings();
|
|
}
|
|
|
|
QCameraViewfinderSettings* QCameraViewfinderSettings_new2(QCameraViewfinderSettings* other) {
|
|
return new QCameraViewfinderSettings(*other);
|
|
}
|
|
|
|
void QCameraViewfinderSettings_OperatorAssign(QCameraViewfinderSettings* self, QCameraViewfinderSettings* other) {
|
|
self->operator=(*other);
|
|
}
|
|
|
|
void QCameraViewfinderSettings_Swap(QCameraViewfinderSettings* self, QCameraViewfinderSettings* other) {
|
|
self->swap(*other);
|
|
}
|
|
|
|
bool QCameraViewfinderSettings_IsNull(const QCameraViewfinderSettings* self) {
|
|
return self->isNull();
|
|
}
|
|
|
|
QSize* QCameraViewfinderSettings_Resolution(const QCameraViewfinderSettings* self) {
|
|
return new QSize(self->resolution());
|
|
}
|
|
|
|
void QCameraViewfinderSettings_SetResolution(QCameraViewfinderSettings* self, QSize* resolution) {
|
|
self->setResolution(*resolution);
|
|
}
|
|
|
|
void QCameraViewfinderSettings_SetResolution2(QCameraViewfinderSettings* self, int width, int height) {
|
|
self->setResolution(static_cast<int>(width), static_cast<int>(height));
|
|
}
|
|
|
|
double QCameraViewfinderSettings_MinimumFrameRate(const QCameraViewfinderSettings* self) {
|
|
qreal _ret = self->minimumFrameRate();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
void QCameraViewfinderSettings_SetMinimumFrameRate(QCameraViewfinderSettings* self, double rate) {
|
|
self->setMinimumFrameRate(static_cast<qreal>(rate));
|
|
}
|
|
|
|
double QCameraViewfinderSettings_MaximumFrameRate(const QCameraViewfinderSettings* self) {
|
|
qreal _ret = self->maximumFrameRate();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
void QCameraViewfinderSettings_SetMaximumFrameRate(QCameraViewfinderSettings* self, double rate) {
|
|
self->setMaximumFrameRate(static_cast<qreal>(rate));
|
|
}
|
|
|
|
int QCameraViewfinderSettings_PixelFormat(const QCameraViewfinderSettings* self) {
|
|
QVideoFrame::PixelFormat _ret = self->pixelFormat();
|
|
return static_cast<int>(_ret);
|
|
}
|
|
|
|
void QCameraViewfinderSettings_SetPixelFormat(QCameraViewfinderSettings* self, int format) {
|
|
self->setPixelFormat(static_cast<QVideoFrame::PixelFormat>(format));
|
|
}
|
|
|
|
QSize* QCameraViewfinderSettings_PixelAspectRatio(const QCameraViewfinderSettings* self) {
|
|
return new QSize(self->pixelAspectRatio());
|
|
}
|
|
|
|
void QCameraViewfinderSettings_SetPixelAspectRatio(QCameraViewfinderSettings* self, QSize* ratio) {
|
|
self->setPixelAspectRatio(*ratio);
|
|
}
|
|
|
|
void QCameraViewfinderSettings_SetPixelAspectRatio2(QCameraViewfinderSettings* self, int horizontal, int vertical) {
|
|
self->setPixelAspectRatio(static_cast<int>(horizontal), static_cast<int>(vertical));
|
|
}
|
|
|
|
void QCameraViewfinderSettings_Delete(QCameraViewfinderSettings* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QCameraViewfinderSettings*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|