2024-11-19 19:29:06 +13:00
|
|
|
#include <QMediaControl>
|
2024-11-04 23:15:32 +13:00
|
|
|
#include <QMetaObject>
|
2024-11-19 19:29:06 +13:00
|
|
|
#include <QObject>
|
2024-11-04 23:15:32 +13:00
|
|
|
#include <QString>
|
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
|
|
|
#include <QVideoWidgetControl>
|
|
|
|
#include <QWidget>
|
|
|
|
#include <qvideowidgetcontrol.h>
|
|
|
|
#include "gen_qvideowidgetcontrol.h"
|
2024-12-11 19:55:47 +13:00
|
|
|
|
2025-01-07 11:30:33 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void miqt_exec_callback_QVideoWidgetControl_fullScreenChanged(intptr_t, bool);
|
|
|
|
void miqt_exec_callback_QVideoWidgetControl_brightnessChanged(intptr_t, int);
|
|
|
|
void miqt_exec_callback_QVideoWidgetControl_contrastChanged(intptr_t, int);
|
|
|
|
void miqt_exec_callback_QVideoWidgetControl_hueChanged(intptr_t, int);
|
|
|
|
void miqt_exec_callback_QVideoWidgetControl_saturationChanged(intptr_t, int);
|
2025-01-07 11:30:33 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
2024-12-11 19:55:47 +13:00
|
|
|
#endif
|
2024-11-04 23:15:32 +13:00
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
void QVideoWidgetControl_virtbase(QVideoWidgetControl* src, QMediaControl** outptr_QMediaControl) {
|
|
|
|
*outptr_QMediaControl = static_cast<QMediaControl*>(src);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
QMetaObject* QVideoWidgetControl_metaObject(const QVideoWidgetControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return (QMetaObject*) self->metaObject();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void* QVideoWidgetControl_metacast(QVideoWidgetControl* 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 QVideoWidgetControl_tr(const char* s) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QVideoWidgetControl::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 QVideoWidgetControl_trUtf8(const char* s) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QVideoWidgetControl::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
|
|
|
QWidget* QVideoWidgetControl_videoWidget(QVideoWidgetControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->videoWidget();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QVideoWidgetControl_aspectRatioMode(const QVideoWidgetControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
Qt::AspectRatioMode _ret = self->aspectRatioMode();
|
|
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QVideoWidgetControl_setAspectRatioMode(QVideoWidgetControl* self, int mode) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setAspectRatioMode(static_cast<Qt::AspectRatioMode>(mode));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QVideoWidgetControl_isFullScreen(const QVideoWidgetControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->isFullScreen();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QVideoWidgetControl_setFullScreen(QVideoWidgetControl* self, bool fullScreen) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setFullScreen(fullScreen);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QVideoWidgetControl_brightness(const QVideoWidgetControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->brightness();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QVideoWidgetControl_setBrightness(QVideoWidgetControl* self, int brightness) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setBrightness(static_cast<int>(brightness));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QVideoWidgetControl_contrast(const QVideoWidgetControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->contrast();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QVideoWidgetControl_setContrast(QVideoWidgetControl* self, int contrast) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setContrast(static_cast<int>(contrast));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QVideoWidgetControl_hue(const QVideoWidgetControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->hue();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QVideoWidgetControl_setHue(QVideoWidgetControl* self, int hue) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setHue(static_cast<int>(hue));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QVideoWidgetControl_saturation(const QVideoWidgetControl* self) {
|
2024-11-04 23:15:32 +13:00
|
|
|
return self->saturation();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QVideoWidgetControl_setSaturation(QVideoWidgetControl* self, int saturation) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->setSaturation(static_cast<int>(saturation));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QVideoWidgetControl_fullScreenChanged(QVideoWidgetControl* self, bool fullScreen) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->fullScreenChanged(fullScreen);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QVideoWidgetControl_connect_fullScreenChanged(QVideoWidgetControl* self, intptr_t slot) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QVideoWidgetControl::connect(self, static_cast<void (QVideoWidgetControl::*)(bool)>(&QVideoWidgetControl::fullScreenChanged), self, [=](bool fullScreen) {
|
|
|
|
bool sigval1 = fullScreen;
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QVideoWidgetControl_fullScreenChanged(slot, sigval1);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QVideoWidgetControl_brightnessChanged(QVideoWidgetControl* self, int brightness) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->brightnessChanged(static_cast<int>(brightness));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QVideoWidgetControl_connect_brightnessChanged(QVideoWidgetControl* self, intptr_t slot) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QVideoWidgetControl::connect(self, static_cast<void (QVideoWidgetControl::*)(int)>(&QVideoWidgetControl::brightnessChanged), self, [=](int brightness) {
|
|
|
|
int sigval1 = brightness;
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QVideoWidgetControl_brightnessChanged(slot, sigval1);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QVideoWidgetControl_contrastChanged(QVideoWidgetControl* self, int contrast) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->contrastChanged(static_cast<int>(contrast));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QVideoWidgetControl_connect_contrastChanged(QVideoWidgetControl* self, intptr_t slot) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QVideoWidgetControl::connect(self, static_cast<void (QVideoWidgetControl::*)(int)>(&QVideoWidgetControl::contrastChanged), self, [=](int contrast) {
|
|
|
|
int sigval1 = contrast;
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QVideoWidgetControl_contrastChanged(slot, sigval1);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QVideoWidgetControl_hueChanged(QVideoWidgetControl* self, int hue) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->hueChanged(static_cast<int>(hue));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QVideoWidgetControl_connect_hueChanged(QVideoWidgetControl* self, intptr_t slot) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QVideoWidgetControl::connect(self, static_cast<void (QVideoWidgetControl::*)(int)>(&QVideoWidgetControl::hueChanged), self, [=](int hue) {
|
|
|
|
int sigval1 = hue;
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QVideoWidgetControl_hueChanged(slot, sigval1);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QVideoWidgetControl_saturationChanged(QVideoWidgetControl* self, int saturation) {
|
2024-11-04 23:15:32 +13:00
|
|
|
self->saturationChanged(static_cast<int>(saturation));
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QVideoWidgetControl_connect_saturationChanged(QVideoWidgetControl* self, intptr_t slot) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QVideoWidgetControl::connect(self, static_cast<void (QVideoWidgetControl::*)(int)>(&QVideoWidgetControl::saturationChanged), self, [=](int saturation) {
|
|
|
|
int sigval1 = saturation;
|
2025-02-01 13:45:16 +13:00
|
|
|
miqt_exec_callback_QVideoWidgetControl_saturationChanged(slot, sigval1);
|
2024-11-04 23:15:32 +13:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
struct miqt_string QVideoWidgetControl_tr2(const char* s, const char* c) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QVideoWidgetControl::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 QVideoWidgetControl_tr3(const char* s, const char* c, int n) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QVideoWidgetControl::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 QVideoWidgetControl_trUtf82(const char* s, const char* c) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QVideoWidgetControl::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 QVideoWidgetControl_trUtf83(const char* s, const char* c, int n) {
|
2024-11-04 23:15:32 +13:00
|
|
|
QString _ret = QVideoWidgetControl::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
|
|
|
void QVideoWidgetControl_delete(QVideoWidgetControl* self) {
|
2025-01-18 17:42:41 +13:00
|
|
|
delete self;
|
2024-11-04 23:15:32 +13:00
|
|
|
}
|
|
|
|
|