#include #include #include #include #include #include #include #include #include "gen_qcameraviewfinder.h" #include "_cgo_export.h" QCameraViewfinder* QCameraViewfinder_new(QWidget* parent) { return new QCameraViewfinder(parent); } QCameraViewfinder* QCameraViewfinder_new2() { return new QCameraViewfinder(); } QMetaObject* QCameraViewfinder_MetaObject(const QCameraViewfinder* self) { return (QMetaObject*) self->metaObject(); } void* QCameraViewfinder_Metacast(QCameraViewfinder* self, const char* param1) { return self->qt_metacast(param1); } struct miqt_string QCameraViewfinder_Tr(const char* s) { QString _ret = QCameraViewfinder::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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QCameraViewfinder_TrUtf8(const char* s) { QString _ret = QCameraViewfinder::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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } QMediaObject* QCameraViewfinder_MediaObject(const QCameraViewfinder* self) { return self->mediaObject(); } struct miqt_string QCameraViewfinder_Tr2(const char* s, const char* c) { QString _ret = QCameraViewfinder::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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QCameraViewfinder_Tr3(const char* s, const char* c, int n) { QString _ret = QCameraViewfinder::tr(s, c, static_cast(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QCameraViewfinder_TrUtf82(const char* s, const char* c) { QString _ret = QCameraViewfinder::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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QCameraViewfinder_TrUtf83(const char* s, const char* c, int n) { QString _ret = QCameraViewfinder::trUtf8(s, c, static_cast(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QCameraViewfinder_Delete(QCameraViewfinder* self) { delete self; }