miqt/qt/multimedia/gen_qcameraexposure.cpp

377 lines
13 KiB
C++
Raw Normal View History

2024-11-04 23:15:32 +13:00
#include <QCameraExposure>
#include <QList>
#include <QMetaObject>
2024-11-19 19:29:06 +13:00
#include <QObject>
2024-11-04 23:15:32 +13:00
#include <QPointF>
#include <QString>
#include <QByteArray>
#include <cstring>
#include <qcameraexposure.h>
#include "gen_qcameraexposure.h"
#ifdef __cplusplus
extern "C" {
#endif
2025-02-01 13:45:16 +13:00
void miqt_exec_callback_QCameraExposure_flashReady(intptr_t, bool);
void miqt_exec_callback_QCameraExposure_apertureChanged(intptr_t, double);
void miqt_exec_callback_QCameraExposure_apertureRangeChanged(intptr_t);
void miqt_exec_callback_QCameraExposure_shutterSpeedChanged(intptr_t, double);
void miqt_exec_callback_QCameraExposure_shutterSpeedRangeChanged(intptr_t);
void miqt_exec_callback_QCameraExposure_isoSensitivityChanged(intptr_t, int);
void miqt_exec_callback_QCameraExposure_exposureCompensationChanged(intptr_t, double);
#ifdef __cplusplus
} /* extern C */
#endif
2024-11-04 23:15:32 +13:00
2024-12-07 17:15:57 +13:00
void QCameraExposure_virtbase(QCameraExposure* src, QObject** outptr_QObject) {
*outptr_QObject = static_cast<QObject*>(src);
}
2025-02-01 13:45:16 +13:00
QMetaObject* QCameraExposure_metaObject(const QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
return (QMetaObject*) self->metaObject();
}
2025-02-01 13:45:16 +13:00
void* QCameraExposure_metacast(QCameraExposure* self, const char* param1) {
2024-11-04 23:15:32 +13:00
return self->qt_metacast(param1);
}
2025-02-01 13:45:16 +13:00
struct miqt_string QCameraExposure_tr(const char* s) {
2024-11-04 23:15:32 +13:00
QString _ret = QCameraExposure::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;
}
2025-02-01 13:45:16 +13:00
struct miqt_string QCameraExposure_trUtf8(const char* s) {
2024-11-04 23:15:32 +13:00
QString _ret = QCameraExposure::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;
}
2025-02-01 13:45:16 +13:00
bool QCameraExposure_isAvailable(const QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
return self->isAvailable();
}
2025-02-01 13:45:16 +13:00
int QCameraExposure_flashMode(const QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
QCameraExposure::FlashModes _ret = self->flashMode();
return static_cast<int>(_ret);
}
2025-02-01 13:45:16 +13:00
bool QCameraExposure_isFlashModeSupported(const QCameraExposure* self, int mode) {
2024-11-04 23:15:32 +13:00
return self->isFlashModeSupported(static_cast<QCameraExposure::FlashModes>(mode));
}
2025-02-01 13:45:16 +13:00
bool QCameraExposure_isFlashReady(const QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
return self->isFlashReady();
}
2025-02-01 13:45:16 +13:00
int QCameraExposure_exposureMode(const QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
QCameraExposure::ExposureMode _ret = self->exposureMode();
return static_cast<int>(_ret);
}
2025-02-01 13:45:16 +13:00
bool QCameraExposure_isExposureModeSupported(const QCameraExposure* self, int mode) {
2024-11-04 23:15:32 +13:00
return self->isExposureModeSupported(static_cast<QCameraExposure::ExposureMode>(mode));
}
2025-02-01 13:45:16 +13:00
double QCameraExposure_exposureCompensation(const QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
qreal _ret = self->exposureCompensation();
return static_cast<double>(_ret);
}
2025-02-01 13:45:16 +13:00
int QCameraExposure_meteringMode(const QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
QCameraExposure::MeteringMode _ret = self->meteringMode();
return static_cast<int>(_ret);
}
2025-02-01 13:45:16 +13:00
bool QCameraExposure_isMeteringModeSupported(const QCameraExposure* self, int mode) {
2024-11-04 23:15:32 +13:00
return self->isMeteringModeSupported(static_cast<QCameraExposure::MeteringMode>(mode));
}
2025-02-01 13:45:16 +13:00
QPointF* QCameraExposure_spotMeteringPoint(const QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
return new QPointF(self->spotMeteringPoint());
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_setSpotMeteringPoint(QCameraExposure* self, QPointF* point) {
2024-11-04 23:15:32 +13:00
self->setSpotMeteringPoint(*point);
}
2025-02-01 13:45:16 +13:00
int QCameraExposure_isoSensitivity(const QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
return self->isoSensitivity();
}
2025-02-01 13:45:16 +13:00
double QCameraExposure_aperture(const QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
qreal _ret = self->aperture();
return static_cast<double>(_ret);
}
2025-02-01 13:45:16 +13:00
double QCameraExposure_shutterSpeed(const QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
qreal _ret = self->shutterSpeed();
return static_cast<double>(_ret);
}
2025-02-01 13:45:16 +13:00
int QCameraExposure_requestedIsoSensitivity(const QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
return self->requestedIsoSensitivity();
}
2025-02-01 13:45:16 +13:00
double QCameraExposure_requestedAperture(const QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
qreal _ret = self->requestedAperture();
return static_cast<double>(_ret);
}
2025-02-01 13:45:16 +13:00
double QCameraExposure_requestedShutterSpeed(const QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
qreal _ret = self->requestedShutterSpeed();
return static_cast<double>(_ret);
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of int */ QCameraExposure_supportedIsoSensitivities(const QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
QList<int> _ret = self->supportedIsoSensitivities();
// Convert QList<> from C++ memory to manually-managed C memory
int* _arr = static_cast<int*>(malloc(sizeof(int) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = _ret[i];
}
struct miqt_array _out;
_out.len = _ret.length();
_out.data = static_cast<void*>(_arr);
return _out;
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of double */ QCameraExposure_supportedApertures(const QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
QList<qreal> _ret = self->supportedApertures();
// Convert QList<> from C++ memory to manually-managed C memory
double* _arr = static_cast<double*>(malloc(sizeof(double) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = _ret[i];
}
struct miqt_array _out;
_out.len = _ret.length();
_out.data = static_cast<void*>(_arr);
return _out;
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of double */ QCameraExposure_supportedShutterSpeeds(const QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
QList<qreal> _ret = self->supportedShutterSpeeds();
// Convert QList<> from C++ memory to manually-managed C memory
double* _arr = static_cast<double*>(malloc(sizeof(double) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = _ret[i];
}
struct miqt_array _out;
_out.len = _ret.length();
_out.data = static_cast<void*>(_arr);
return _out;
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_setFlashMode(QCameraExposure* self, int mode) {
2024-11-04 23:15:32 +13:00
self->setFlashMode(static_cast<QCameraExposure::FlashModes>(mode));
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_setExposureMode(QCameraExposure* self, int mode) {
2024-11-04 23:15:32 +13:00
self->setExposureMode(static_cast<QCameraExposure::ExposureMode>(mode));
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_setMeteringMode(QCameraExposure* self, int mode) {
2024-11-04 23:15:32 +13:00
self->setMeteringMode(static_cast<QCameraExposure::MeteringMode>(mode));
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_setExposureCompensation(QCameraExposure* self, double ev) {
2024-11-04 23:15:32 +13:00
self->setExposureCompensation(static_cast<qreal>(ev));
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_setManualIsoSensitivity(QCameraExposure* self, int iso) {
2024-11-04 23:15:32 +13:00
self->setManualIsoSensitivity(static_cast<int>(iso));
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_setAutoIsoSensitivity(QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
self->setAutoIsoSensitivity();
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_setManualAperture(QCameraExposure* self, double aperture) {
2024-11-04 23:15:32 +13:00
self->setManualAperture(static_cast<qreal>(aperture));
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_setAutoAperture(QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
self->setAutoAperture();
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_setManualShutterSpeed(QCameraExposure* self, double seconds) {
2024-11-04 23:15:32 +13:00
self->setManualShutterSpeed(static_cast<qreal>(seconds));
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_setAutoShutterSpeed(QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
self->setAutoShutterSpeed();
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_flashReady(QCameraExposure* self, bool param1) {
2024-11-04 23:15:32 +13:00
self->flashReady(param1);
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_connect_flashReady(QCameraExposure* self, intptr_t slot) {
2024-11-04 23:15:32 +13:00
QCameraExposure::connect(self, static_cast<void (QCameraExposure::*)(bool)>(&QCameraExposure::flashReady), self, [=](bool param1) {
bool sigval1 = param1;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QCameraExposure_flashReady(slot, sigval1);
2024-11-04 23:15:32 +13:00
});
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_apertureChanged(QCameraExposure* self, double param1) {
2024-11-04 23:15:32 +13:00
self->apertureChanged(static_cast<qreal>(param1));
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_connect_apertureChanged(QCameraExposure* self, intptr_t slot) {
2024-11-04 23:15:32 +13:00
QCameraExposure::connect(self, static_cast<void (QCameraExposure::*)(qreal)>(&QCameraExposure::apertureChanged), self, [=](qreal param1) {
qreal param1_ret = param1;
double sigval1 = static_cast<double>(param1_ret);
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QCameraExposure_apertureChanged(slot, sigval1);
2024-11-04 23:15:32 +13:00
});
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_apertureRangeChanged(QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
self->apertureRangeChanged();
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_connect_apertureRangeChanged(QCameraExposure* self, intptr_t slot) {
2024-11-04 23:15:32 +13:00
QCameraExposure::connect(self, static_cast<void (QCameraExposure::*)()>(&QCameraExposure::apertureRangeChanged), self, [=]() {
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QCameraExposure_apertureRangeChanged(slot);
2024-11-04 23:15:32 +13:00
});
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_shutterSpeedChanged(QCameraExposure* self, double speed) {
2024-11-04 23:15:32 +13:00
self->shutterSpeedChanged(static_cast<qreal>(speed));
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_connect_shutterSpeedChanged(QCameraExposure* self, intptr_t slot) {
2024-11-04 23:15:32 +13:00
QCameraExposure::connect(self, static_cast<void (QCameraExposure::*)(qreal)>(&QCameraExposure::shutterSpeedChanged), self, [=](qreal speed) {
qreal speed_ret = speed;
double sigval1 = static_cast<double>(speed_ret);
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QCameraExposure_shutterSpeedChanged(slot, sigval1);
2024-11-04 23:15:32 +13:00
});
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_shutterSpeedRangeChanged(QCameraExposure* self) {
2024-11-04 23:15:32 +13:00
self->shutterSpeedRangeChanged();
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_connect_shutterSpeedRangeChanged(QCameraExposure* self, intptr_t slot) {
2024-11-04 23:15:32 +13:00
QCameraExposure::connect(self, static_cast<void (QCameraExposure::*)()>(&QCameraExposure::shutterSpeedRangeChanged), self, [=]() {
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QCameraExposure_shutterSpeedRangeChanged(slot);
2024-11-04 23:15:32 +13:00
});
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_isoSensitivityChanged(QCameraExposure* self, int param1) {
2024-11-04 23:15:32 +13:00
self->isoSensitivityChanged(static_cast<int>(param1));
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_connect_isoSensitivityChanged(QCameraExposure* self, intptr_t slot) {
2024-11-04 23:15:32 +13:00
QCameraExposure::connect(self, static_cast<void (QCameraExposure::*)(int)>(&QCameraExposure::isoSensitivityChanged), self, [=](int param1) {
int sigval1 = param1;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QCameraExposure_isoSensitivityChanged(slot, sigval1);
2024-11-04 23:15:32 +13:00
});
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_exposureCompensationChanged(QCameraExposure* self, double param1) {
2024-11-04 23:15:32 +13:00
self->exposureCompensationChanged(static_cast<qreal>(param1));
}
2025-02-01 13:45:16 +13:00
void QCameraExposure_connect_exposureCompensationChanged(QCameraExposure* self, intptr_t slot) {
2024-11-04 23:15:32 +13:00
QCameraExposure::connect(self, static_cast<void (QCameraExposure::*)(qreal)>(&QCameraExposure::exposureCompensationChanged), self, [=](qreal param1) {
qreal param1_ret = param1;
double sigval1 = static_cast<double>(param1_ret);
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QCameraExposure_exposureCompensationChanged(slot, sigval1);
2024-11-04 23:15:32 +13:00
});
}
2025-02-01 13:45:16 +13:00
struct miqt_string QCameraExposure_tr2(const char* s, const char* c) {
2024-11-04 23:15:32 +13:00
QString _ret = QCameraExposure::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;
}
2025-02-01 13:45:16 +13:00
struct miqt_string QCameraExposure_tr3(const char* s, const char* c, int n) {
2024-11-04 23:15:32 +13:00
QString _ret = QCameraExposure::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;
}
2025-02-01 13:45:16 +13:00
struct miqt_string QCameraExposure_trUtf82(const char* s, const char* c) {
2024-11-04 23:15:32 +13:00
QString _ret = QCameraExposure::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;
}
2025-02-01 13:45:16 +13:00
struct miqt_string QCameraExposure_trUtf83(const char* s, const char* c, int n) {
2024-11-04 23:15:32 +13:00
QString _ret = QCameraExposure::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;
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of int */ QCameraExposure_supportedIsoSensitivities1(const QCameraExposure* self, bool* continuous) {
2024-11-04 23:15:32 +13:00
QList<int> _ret = self->supportedIsoSensitivities(continuous);
// Convert QList<> from C++ memory to manually-managed C memory
int* _arr = static_cast<int*>(malloc(sizeof(int) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = _ret[i];
}
struct miqt_array _out;
_out.len = _ret.length();
_out.data = static_cast<void*>(_arr);
return _out;
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of double */ QCameraExposure_supportedApertures1(const QCameraExposure* self, bool* continuous) {
2024-11-04 23:15:32 +13:00
QList<qreal> _ret = self->supportedApertures(continuous);
// Convert QList<> from C++ memory to manually-managed C memory
double* _arr = static_cast<double*>(malloc(sizeof(double) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = _ret[i];
}
struct miqt_array _out;
_out.len = _ret.length();
_out.data = static_cast<void*>(_arr);
return _out;
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of double */ QCameraExposure_supportedShutterSpeeds1(const QCameraExposure* self, bool* continuous) {
2024-11-04 23:15:32 +13:00
QList<qreal> _ret = self->supportedShutterSpeeds(continuous);
// Convert QList<> from C++ memory to manually-managed C memory
double* _arr = static_cast<double*>(malloc(sizeof(double) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = _ret[i];
}
struct miqt_array _out;
_out.len = _ret.length();
_out.data = static_cast<void*>(_arr);
return _out;
}