miqt/qt/multimedia/gen_qcameracapturedestinationcontrol.cpp

119 lines
4.8 KiB
C++
Raw Normal View History

2024-11-04 10:15:32 +00:00
#include <QCameraCaptureDestinationControl>
2024-11-19 06:29:06 +00:00
#include <QMediaControl>
2024-11-04 10:15:32 +00:00
#include <QMetaObject>
2024-11-19 06:29:06 +00:00
#include <QObject>
2024-11-04 10:15:32 +00:00
#include <QString>
#include <QByteArray>
#include <cstring>
#include <qcameracapturedestinationcontrol.h>
#include "gen_qcameracapturedestinationcontrol.h"
#include "_cgo_export.h"
QMetaObject* QCameraCaptureDestinationControl_MetaObject(const QCameraCaptureDestinationControl* self) {
return (QMetaObject*) self->metaObject();
}
void* QCameraCaptureDestinationControl_Metacast(QCameraCaptureDestinationControl* self, const char* param1) {
return self->qt_metacast(param1);
}
struct miqt_string QCameraCaptureDestinationControl_Tr(const char* s) {
QString _ret = QCameraCaptureDestinationControl::tr(s);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
struct miqt_string QCameraCaptureDestinationControl_TrUtf8(const char* s) {
QString _ret = QCameraCaptureDestinationControl::trUtf8(s);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
bool QCameraCaptureDestinationControl_IsCaptureDestinationSupported(const QCameraCaptureDestinationControl* self, int destination) {
return self->isCaptureDestinationSupported(static_cast<QCameraImageCapture::CaptureDestinations>(destination));
}
int QCameraCaptureDestinationControl_CaptureDestination(const QCameraCaptureDestinationControl* self) {
QCameraImageCapture::CaptureDestinations _ret = self->captureDestination();
return static_cast<int>(_ret);
}
void QCameraCaptureDestinationControl_SetCaptureDestination(QCameraCaptureDestinationControl* self, int destination) {
self->setCaptureDestination(static_cast<QCameraImageCapture::CaptureDestinations>(destination));
}
void QCameraCaptureDestinationControl_CaptureDestinationChanged(QCameraCaptureDestinationControl* self, int destination) {
self->captureDestinationChanged(static_cast<QCameraImageCapture::CaptureDestinations>(destination));
}
void QCameraCaptureDestinationControl_connect_CaptureDestinationChanged(QCameraCaptureDestinationControl* self, intptr_t slot) {
QCameraCaptureDestinationControl::connect(self, static_cast<void (QCameraCaptureDestinationControl::*)(QCameraImageCapture::CaptureDestinations)>(&QCameraCaptureDestinationControl::captureDestinationChanged), self, [=](QCameraImageCapture::CaptureDestinations destination) {
QCameraImageCapture::CaptureDestinations destination_ret = destination;
int sigval1 = static_cast<int>(destination_ret);
miqt_exec_callback_QCameraCaptureDestinationControl_CaptureDestinationChanged(slot, sigval1);
});
}
struct miqt_string QCameraCaptureDestinationControl_Tr2(const char* s, const char* c) {
QString _ret = QCameraCaptureDestinationControl::tr(s, c);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
struct miqt_string QCameraCaptureDestinationControl_Tr3(const char* s, const char* c, int n) {
QString _ret = QCameraCaptureDestinationControl::tr(s, c, static_cast<int>(n));
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
struct miqt_string QCameraCaptureDestinationControl_TrUtf82(const char* s, const char* c) {
QString _ret = QCameraCaptureDestinationControl::trUtf8(s, c);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
struct miqt_string QCameraCaptureDestinationControl_TrUtf83(const char* s, const char* c, int n) {
QString _ret = QCameraCaptureDestinationControl::trUtf8(s, c, static_cast<int>(n));
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
struct miqt_string _ms;
_ms.len = _b.length();
_ms.data = static_cast<char*>(malloc(_ms.len));
memcpy(_ms.data, _b.data(), _ms.len);
return _ms;
}
2024-11-19 06:29:06 +00:00
void QCameraCaptureDestinationControl_Delete(QCameraCaptureDestinationControl* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QCameraCaptureDestinationControl*>( self );
} else {
delete self;
}
2024-11-04 10:15:32 +00:00
}