miqt/qt/gen_qdesktopwidget.cpp

182 lines
5.9 KiB
C++
Raw Normal View History

#include <QDesktopWidget>
#include <QMetaObject>
#include <QPoint>
#include <QRect>
#include <QString>
2024-08-29 07:01:51 +00:00
#include <QByteArray>
#include <cstring>
#include <QWidget>
#include <qdesktopwidget.h>
2024-08-29 07:01:51 +00:00
#include "gen_qdesktopwidget.h"
#include "_cgo_export.h"
QDesktopWidget* QDesktopWidget_new() {
return new QDesktopWidget();
}
QMetaObject* QDesktopWidget_MetaObject(const QDesktopWidget* self) {
return (QMetaObject*) self->metaObject();
}
void* QDesktopWidget_Metacast(QDesktopWidget* self, const char* param1) {
return self->qt_metacast(param1);
}
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<int>(param1));
}
void QDesktopWidget_connect_Resized(QDesktopWidget* self, intptr_t slot) {
QDesktopWidget::connect(self, static_cast<void (QDesktopWidget::*)(int)>(&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<int>(param1));
}
void QDesktopWidget_connect_WorkAreaResized(QDesktopWidget* self, intptr_t slot) {
QDesktopWidget::connect(self, static_cast<void (QDesktopWidget::*)(int)>(&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<int>(param1));
}
void QDesktopWidget_connect_ScreenCountChanged(QDesktopWidget* self, intptr_t slot) {
QDesktopWidget::connect(self, static_cast<void (QDesktopWidget::*)(int)>(&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, intptr_t slot) {
QDesktopWidget::connect(self, static_cast<void (QDesktopWidget::*)()>(&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<int>(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<int>(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<int>(screen));
}
QRect* QDesktopWidget_ScreenGeometry1(const QDesktopWidget* self, int screen) {
return new QRect(self->screenGeometry(static_cast<int>(screen)));
}
QRect* QDesktopWidget_AvailableGeometry1(const QDesktopWidget* self, int screen) {
return new QRect(self->availableGeometry(static_cast<int>(screen)));
}
void QDesktopWidget_Delete(QDesktopWidget* self) {
delete self;
}