#include #include #include #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(width), static_cast(height)); } double QCameraViewfinderSettings_MinimumFrameRate(const QCameraViewfinderSettings* self) { qreal _ret = self->minimumFrameRate(); return static_cast(_ret); } void QCameraViewfinderSettings_SetMinimumFrameRate(QCameraViewfinderSettings* self, double rate) { self->setMinimumFrameRate(static_cast(rate)); } double QCameraViewfinderSettings_MaximumFrameRate(const QCameraViewfinderSettings* self) { qreal _ret = self->maximumFrameRate(); return static_cast(_ret); } void QCameraViewfinderSettings_SetMaximumFrameRate(QCameraViewfinderSettings* self, double rate) { self->setMaximumFrameRate(static_cast(rate)); } int QCameraViewfinderSettings_PixelFormat(const QCameraViewfinderSettings* self) { QVideoFrame::PixelFormat _ret = self->pixelFormat(); return static_cast(_ret); } void QCameraViewfinderSettings_SetPixelFormat(QCameraViewfinderSettings* self, int format) { self->setPixelFormat(static_cast(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(horizontal), static_cast(vertical)); } void QCameraViewfinderSettings_Delete(QCameraViewfinderSettings* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }