#include #include #include #include #include #include #include #include #include #include #include #include "gen_qvideowindowcontrol.h" #ifdef __cplusplus extern "C" { #endif void miqt_exec_callback_QVideoWindowControl_fullScreenChanged(intptr_t, bool); void miqt_exec_callback_QVideoWindowControl_brightnessChanged(intptr_t, int); void miqt_exec_callback_QVideoWindowControl_contrastChanged(intptr_t, int); void miqt_exec_callback_QVideoWindowControl_hueChanged(intptr_t, int); void miqt_exec_callback_QVideoWindowControl_saturationChanged(intptr_t, int); void miqt_exec_callback_QVideoWindowControl_nativeSizeChanged(intptr_t); #ifdef __cplusplus } /* extern C */ #endif void QVideoWindowControl_virtbase(QVideoWindowControl* src, QMediaControl** outptr_QMediaControl) { *outptr_QMediaControl = static_cast(src); } QMetaObject* QVideoWindowControl_metaObject(const QVideoWindowControl* self) { return (QMetaObject*) self->metaObject(); } void* QVideoWindowControl_metacast(QVideoWindowControl* self, const char* param1) { return self->qt_metacast(param1); } struct miqt_string QVideoWindowControl_tr(const char* s) { QString _ret = QVideoWindowControl::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 QVideoWindowControl_trUtf8(const char* s) { QString _ret = QVideoWindowControl::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; } uintptr_t QVideoWindowControl_winId(const QVideoWindowControl* self) { WId _ret = self->winId(); return static_cast(_ret); } void QVideoWindowControl_setWinId(QVideoWindowControl* self, uintptr_t id) { self->setWinId(static_cast(id)); } QRect* QVideoWindowControl_displayRect(const QVideoWindowControl* self) { return new QRect(self->displayRect()); } void QVideoWindowControl_setDisplayRect(QVideoWindowControl* self, QRect* rect) { self->setDisplayRect(*rect); } bool QVideoWindowControl_isFullScreen(const QVideoWindowControl* self) { return self->isFullScreen(); } void QVideoWindowControl_setFullScreen(QVideoWindowControl* self, bool fullScreen) { self->setFullScreen(fullScreen); } void QVideoWindowControl_repaint(QVideoWindowControl* self) { self->repaint(); } QSize* QVideoWindowControl_nativeSize(const QVideoWindowControl* self) { return new QSize(self->nativeSize()); } int QVideoWindowControl_aspectRatioMode(const QVideoWindowControl* self) { Qt::AspectRatioMode _ret = self->aspectRatioMode(); return static_cast(_ret); } void QVideoWindowControl_setAspectRatioMode(QVideoWindowControl* self, int mode) { self->setAspectRatioMode(static_cast(mode)); } int QVideoWindowControl_brightness(const QVideoWindowControl* self) { return self->brightness(); } void QVideoWindowControl_setBrightness(QVideoWindowControl* self, int brightness) { self->setBrightness(static_cast(brightness)); } int QVideoWindowControl_contrast(const QVideoWindowControl* self) { return self->contrast(); } void QVideoWindowControl_setContrast(QVideoWindowControl* self, int contrast) { self->setContrast(static_cast(contrast)); } int QVideoWindowControl_hue(const QVideoWindowControl* self) { return self->hue(); } void QVideoWindowControl_setHue(QVideoWindowControl* self, int hue) { self->setHue(static_cast(hue)); } int QVideoWindowControl_saturation(const QVideoWindowControl* self) { return self->saturation(); } void QVideoWindowControl_setSaturation(QVideoWindowControl* self, int saturation) { self->setSaturation(static_cast(saturation)); } void QVideoWindowControl_fullScreenChanged(QVideoWindowControl* self, bool fullScreen) { self->fullScreenChanged(fullScreen); } void QVideoWindowControl_connect_fullScreenChanged(QVideoWindowControl* self, intptr_t slot) { QVideoWindowControl::connect(self, static_cast(&QVideoWindowControl::fullScreenChanged), self, [=](bool fullScreen) { bool sigval1 = fullScreen; miqt_exec_callback_QVideoWindowControl_fullScreenChanged(slot, sigval1); }); } void QVideoWindowControl_brightnessChanged(QVideoWindowControl* self, int brightness) { self->brightnessChanged(static_cast(brightness)); } void QVideoWindowControl_connect_brightnessChanged(QVideoWindowControl* self, intptr_t slot) { QVideoWindowControl::connect(self, static_cast(&QVideoWindowControl::brightnessChanged), self, [=](int brightness) { int sigval1 = brightness; miqt_exec_callback_QVideoWindowControl_brightnessChanged(slot, sigval1); }); } void QVideoWindowControl_contrastChanged(QVideoWindowControl* self, int contrast) { self->contrastChanged(static_cast(contrast)); } void QVideoWindowControl_connect_contrastChanged(QVideoWindowControl* self, intptr_t slot) { QVideoWindowControl::connect(self, static_cast(&QVideoWindowControl::contrastChanged), self, [=](int contrast) { int sigval1 = contrast; miqt_exec_callback_QVideoWindowControl_contrastChanged(slot, sigval1); }); } void QVideoWindowControl_hueChanged(QVideoWindowControl* self, int hue) { self->hueChanged(static_cast(hue)); } void QVideoWindowControl_connect_hueChanged(QVideoWindowControl* self, intptr_t slot) { QVideoWindowControl::connect(self, static_cast(&QVideoWindowControl::hueChanged), self, [=](int hue) { int sigval1 = hue; miqt_exec_callback_QVideoWindowControl_hueChanged(slot, sigval1); }); } void QVideoWindowControl_saturationChanged(QVideoWindowControl* self, int saturation) { self->saturationChanged(static_cast(saturation)); } void QVideoWindowControl_connect_saturationChanged(QVideoWindowControl* self, intptr_t slot) { QVideoWindowControl::connect(self, static_cast(&QVideoWindowControl::saturationChanged), self, [=](int saturation) { int sigval1 = saturation; miqt_exec_callback_QVideoWindowControl_saturationChanged(slot, sigval1); }); } void QVideoWindowControl_nativeSizeChanged(QVideoWindowControl* self) { self->nativeSizeChanged(); } void QVideoWindowControl_connect_nativeSizeChanged(QVideoWindowControl* self, intptr_t slot) { QVideoWindowControl::connect(self, static_cast(&QVideoWindowControl::nativeSizeChanged), self, [=]() { miqt_exec_callback_QVideoWindowControl_nativeSizeChanged(slot); }); } struct miqt_string QVideoWindowControl_tr2(const char* s, const char* c) { QString _ret = QVideoWindowControl::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 QVideoWindowControl_tr3(const char* s, const char* c, int n) { QString _ret = QVideoWindowControl::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 QVideoWindowControl_trUtf82(const char* s, const char* c) { QString _ret = QVideoWindowControl::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 QVideoWindowControl_trUtf83(const char* s, const char* c, int n) { QString _ret = QVideoWindowControl::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 QVideoWindowControl_delete(QVideoWindowControl* self) { delete self; }