2024-08-25 04:08:24 +00:00
|
|
|
#include <QGroupBox>
|
|
|
|
#include <QMetaObject>
|
|
|
|
#include <QSize>
|
|
|
|
#include <QString>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QWidget>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "qgroupbox.h"
|
|
|
|
#include "gen_qgroupbox.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
QGroupBox* QGroupBox_new() {
|
|
|
|
return new QGroupBox();
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
QGroupBox* QGroupBox_new2(struct miqt_string* title) {
|
|
|
|
QString title_QString = QString::fromUtf8(&title->data, title->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QGroupBox(title_QString);
|
|
|
|
}
|
|
|
|
|
|
|
|
QGroupBox* QGroupBox_new3(QWidget* parent) {
|
|
|
|
return new QGroupBox(parent);
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
QGroupBox* QGroupBox_new4(struct miqt_string* title, QWidget* parent) {
|
|
|
|
QString title_QString = QString::fromUtf8(&title->data, title->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QGroupBox(title_QString, parent);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QGroupBox_MetaObject(const QGroupBox* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGroupBox_Tr(const char* s) {
|
|
|
|
QString _ret = QGroupBox::tr(s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGroupBox_TrUtf8(const char* s) {
|
|
|
|
QString _ret = QGroupBox::trUtf8(s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGroupBox_Title(const QGroupBox* self) {
|
|
|
|
QString _ret = self->title();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
void QGroupBox_SetTitle(QGroupBox* self, struct miqt_string* title) {
|
|
|
|
QString title_QString = QString::fromUtf8(&title->data, title->len);
|
2024-08-25 04:08:24 +00:00
|
|
|
self->setTitle(title_QString);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QGroupBox_Alignment(const QGroupBox* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::Alignment _ret = self->alignment();
|
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QGroupBox_SetAlignment(QGroupBox* self, int alignment) {
|
|
|
|
self->setAlignment(static_cast<int>(alignment));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QGroupBox_MinimumSizeHint(const QGroupBox* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QSize _ret = self->minimumSizeHint();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QSize*>(new QSize(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QGroupBox_IsFlat(const QGroupBox* self) {
|
|
|
|
return self->isFlat();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGroupBox_SetFlat(QGroupBox* self, bool flat) {
|
|
|
|
self->setFlat(flat);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QGroupBox_IsCheckable(const QGroupBox* self) {
|
|
|
|
return self->isCheckable();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGroupBox_SetCheckable(QGroupBox* self, bool checkable) {
|
|
|
|
self->setCheckable(checkable);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QGroupBox_IsChecked(const QGroupBox* self) {
|
|
|
|
return self->isChecked();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGroupBox_SetChecked(QGroupBox* self, bool checked) {
|
|
|
|
self->setChecked(checked);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGroupBox_Clicked(QGroupBox* self) {
|
|
|
|
self->clicked();
|
|
|
|
}
|
|
|
|
|
2024-09-07 03:31:00 +00:00
|
|
|
void QGroupBox_connect_Clicked(QGroupBox* self, void* slot) {
|
|
|
|
QGroupBox::connect(self, static_cast<void (QGroupBox::*)(bool)>(&QGroupBox::clicked), self, [=]() {
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QGroupBox_Clicked(slot);
|
2024-09-07 03:31:00 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QGroupBox_Toggled(QGroupBox* self, bool param1) {
|
|
|
|
self->toggled(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGroupBox_connect_Toggled(QGroupBox* self, void* slot) {
|
|
|
|
QGroupBox::connect(self, static_cast<void (QGroupBox::*)(bool)>(&QGroupBox::toggled), self, [=](bool param1) {
|
2024-09-14 22:29:05 +00:00
|
|
|
bool sigval1 = param1;
|
|
|
|
miqt_exec_callback_QGroupBox_Toggled(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGroupBox_Tr2(const char* s, const char* c) {
|
|
|
|
QString _ret = QGroupBox::tr(s, c);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGroupBox_Tr3(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QGroupBox::tr(s, c, static_cast<int>(n));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGroupBox_TrUtf82(const char* s, const char* c) {
|
|
|
|
QString _ret = QGroupBox::trUtf8(s, c);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_string* QGroupBox_TrUtf83(const char* s, const char* c, int n) {
|
|
|
|
QString _ret = QGroupBox::trUtf8(s, c, static_cast<int>(n));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
|
|
|
return miqt_strdup(_b.data(), _b.length());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGroupBox_Clicked1(QGroupBox* self, bool checked) {
|
|
|
|
self->clicked(checked);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGroupBox_connect_Clicked1(QGroupBox* self, void* slot) {
|
|
|
|
QGroupBox::connect(self, static_cast<void (QGroupBox::*)(bool)>(&QGroupBox::clicked), self, [=](bool checked) {
|
2024-09-14 22:29:05 +00:00
|
|
|
bool sigval1 = checked;
|
|
|
|
miqt_exec_callback_QGroupBox_Clicked1(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGroupBox_Delete(QGroupBox* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|