#include #include #include #include #include #include #include #include #include "qdesktopwidget.h" #include "gen_qdesktopwidget.h" #include "_cgo_export.h" QDesktopWidget* QDesktopWidget_new() { return new QDesktopWidget(); } QMetaObject* QDesktopWidget_MetaObject(const QDesktopWidget* self) { return (QMetaObject*) self->metaObject(); } struct miqt_string* QDesktopWidget_Tr(const char* s) { QString _ret = QDesktopWidget::tr(s); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); return miqt_strdup(_b.data(), _b.length()); } struct miqt_string* QDesktopWidget_TrUtf8(const char* s) { QString _ret = QDesktopWidget::trUtf8(s); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); return miqt_strdup(_b.data(), _b.length()); } int QDesktopWidget_ScreenNumber(const QDesktopWidget* self) { return self->screenNumber(); } QRect* QDesktopWidget_ScreenGeometry(const QDesktopWidget* self, QWidget* widget) { return new QRect(self->screenGeometry(widget)); } QRect* QDesktopWidget_AvailableGeometry(const QDesktopWidget* self, QWidget* widget) { return new QRect(self->availableGeometry(widget)); } bool QDesktopWidget_IsVirtualDesktop(const QDesktopWidget* self) { return self->isVirtualDesktop(); } int QDesktopWidget_NumScreens(const QDesktopWidget* self) { return self->numScreens(); } int QDesktopWidget_ScreenCount(const QDesktopWidget* self) { return self->screenCount(); } int QDesktopWidget_PrimaryScreen(const QDesktopWidget* self) { return self->primaryScreen(); } int QDesktopWidget_ScreenNumberWithQPoint(const QDesktopWidget* self, QPoint* param1) { return self->screenNumber(*param1); } QWidget* QDesktopWidget_Screen(QDesktopWidget* self) { return self->screen(); } QRect* QDesktopWidget_ScreenGeometry2(const QDesktopWidget* self) { return new QRect(self->screenGeometry()); } QRect* QDesktopWidget_ScreenGeometryWithPoint(const QDesktopWidget* self, QPoint* point) { return new QRect(self->screenGeometry(*point)); } QRect* QDesktopWidget_AvailableGeometry2(const QDesktopWidget* self) { return new QRect(self->availableGeometry()); } QRect* QDesktopWidget_AvailableGeometryWithPoint(const QDesktopWidget* self, QPoint* point) { return new QRect(self->availableGeometry(*point)); } void QDesktopWidget_Resized(QDesktopWidget* self, int param1) { self->resized(static_cast(param1)); } void QDesktopWidget_connect_Resized(QDesktopWidget* self, void* slot) { QDesktopWidget::connect(self, static_cast(&QDesktopWidget::resized), self, [=](int param1) { int sigval1 = param1; miqt_exec_callback_QDesktopWidget_Resized(slot, sigval1); }); } void QDesktopWidget_WorkAreaResized(QDesktopWidget* self, int param1) { self->workAreaResized(static_cast(param1)); } void QDesktopWidget_connect_WorkAreaResized(QDesktopWidget* self, void* slot) { QDesktopWidget::connect(self, static_cast(&QDesktopWidget::workAreaResized), self, [=](int param1) { int sigval1 = param1; miqt_exec_callback_QDesktopWidget_WorkAreaResized(slot, sigval1); }); } void QDesktopWidget_ScreenCountChanged(QDesktopWidget* self, int param1) { self->screenCountChanged(static_cast(param1)); } void QDesktopWidget_connect_ScreenCountChanged(QDesktopWidget* self, void* slot) { QDesktopWidget::connect(self, static_cast(&QDesktopWidget::screenCountChanged), self, [=](int param1) { int sigval1 = param1; miqt_exec_callback_QDesktopWidget_ScreenCountChanged(slot, sigval1); }); } void QDesktopWidget_PrimaryScreenChanged(QDesktopWidget* self) { self->primaryScreenChanged(); } void QDesktopWidget_connect_PrimaryScreenChanged(QDesktopWidget* self, void* slot) { QDesktopWidget::connect(self, static_cast(&QDesktopWidget::primaryScreenChanged), self, [=]() { miqt_exec_callback_QDesktopWidget_PrimaryScreenChanged(slot); }); } struct miqt_string* QDesktopWidget_Tr2(const char* s, const char* c) { QString _ret = QDesktopWidget::tr(s, c); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); return miqt_strdup(_b.data(), _b.length()); } struct miqt_string* QDesktopWidget_Tr3(const char* s, const char* c, int n) { QString _ret = QDesktopWidget::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(); return miqt_strdup(_b.data(), _b.length()); } struct miqt_string* QDesktopWidget_TrUtf82(const char* s, const char* c) { QString _ret = QDesktopWidget::trUtf8(s, c); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); return miqt_strdup(_b.data(), _b.length()); } struct miqt_string* QDesktopWidget_TrUtf83(const char* s, const char* c, int n) { QString _ret = QDesktopWidget::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(); return miqt_strdup(_b.data(), _b.length()); } int QDesktopWidget_ScreenNumber1(const QDesktopWidget* self, QWidget* widget) { return self->screenNumber(widget); } QWidget* QDesktopWidget_Screen1(QDesktopWidget* self, int screen) { return self->screen(static_cast(screen)); } QRect* QDesktopWidget_ScreenGeometry1(const QDesktopWidget* self, int screen) { return new QRect(self->screenGeometry(static_cast(screen))); } QRect* QDesktopWidget_AvailableGeometry1(const QDesktopWidget* self, int screen) { return new QRect(self->availableGeometry(static_cast(screen))); } void QDesktopWidget_Delete(QDesktopWidget* self) { delete self; }