2024-08-25 04:08:24 +00:00
|
|
|
#include <QAction>
|
|
|
|
#include <QDockWidget>
|
|
|
|
#include <QMetaObject>
|
|
|
|
#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-10-16 05:07:56 +00:00
|
|
|
#include <qdockwidget.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qdockwidget.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
QDockWidget* QDockWidget_new(struct miqt_string title) {
|
|
|
|
QString title_QString = QString::fromUtf8(title.data, title.len);
|
2024-08-29 07:01:51 +00:00
|
|
|
return new QDockWidget(title_QString);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDockWidget* QDockWidget_new2() {
|
|
|
|
return new QDockWidget();
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
QDockWidget* QDockWidget_new3(struct miqt_string title, QWidget* parent) {
|
|
|
|
QString title_QString = QString::fromUtf8(title.data, title.len);
|
2024-08-29 07:01:51 +00:00
|
|
|
return new QDockWidget(title_QString, parent);
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
QDockWidget* QDockWidget_new4(struct miqt_string title, QWidget* parent, int flags) {
|
|
|
|
QString title_QString = QString::fromUtf8(title.data, title.len);
|
2024-08-29 07:01:51 +00:00
|
|
|
return new QDockWidget(title_QString, parent, static_cast<Qt::WindowFlags>(flags));
|
|
|
|
}
|
|
|
|
|
|
|
|
QDockWidget* QDockWidget_new5(QWidget* parent) {
|
|
|
|
return new QDockWidget(parent);
|
|
|
|
}
|
|
|
|
|
|
|
|
QDockWidget* QDockWidget_new6(QWidget* parent, int flags) {
|
|
|
|
return new QDockWidget(parent, static_cast<Qt::WindowFlags>(flags));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QMetaObject* QDockWidget_MetaObject(const QDockWidget* self) {
|
|
|
|
return (QMetaObject*) self->metaObject();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-20 22:32:57 +00:00
|
|
|
void* QDockWidget_Metacast(QDockWidget* self, const char* param1) {
|
|
|
|
return self->qt_metacast(param1);
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDockWidget_Tr(const char* s) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QDockWidget::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
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;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDockWidget_TrUtf8(const char* s) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QDockWidget::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
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;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QWidget* QDockWidget_Widget(const QDockWidget* self) {
|
|
|
|
return self->widget();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDockWidget_SetWidget(QDockWidget* self, QWidget* widget) {
|
|
|
|
self->setWidget(widget);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QDockWidget_SetFeatures(QDockWidget* self, int features) {
|
|
|
|
self->setFeatures(static_cast<QDockWidget::DockWidgetFeatures>(features));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QDockWidget_Features(const QDockWidget* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDockWidget::DockWidgetFeatures _ret = self->features();
|
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QDockWidget_SetFloating(QDockWidget* self, bool floating) {
|
|
|
|
self->setFloating(floating);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QDockWidget_IsFloating(const QDockWidget* self) {
|
|
|
|
return self->isFloating();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDockWidget_SetAllowedAreas(QDockWidget* self, int areas) {
|
|
|
|
self->setAllowedAreas(static_cast<Qt::DockWidgetAreas>(areas));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QDockWidget_AllowedAreas(const QDockWidget* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::DockWidgetAreas _ret = self->allowedAreas();
|
|
|
|
return static_cast<int>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDockWidget_SetTitleBarWidget(QDockWidget* self, QWidget* widget) {
|
|
|
|
self->setTitleBarWidget(widget);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QWidget* QDockWidget_TitleBarWidget(const QDockWidget* self) {
|
|
|
|
return self->titleBarWidget();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
bool QDockWidget_IsAreaAllowed(const QDockWidget* self, int area) {
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->isAreaAllowed(static_cast<Qt::DockWidgetArea>(area));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QAction* QDockWidget_ToggleViewAction(const QDockWidget* self) {
|
|
|
|
return self->toggleViewAction();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDockWidget_FeaturesChanged(QDockWidget* self, int features) {
|
|
|
|
self->featuresChanged(static_cast<QDockWidget::DockWidgetFeatures>(features));
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QDockWidget_connect_FeaturesChanged(QDockWidget* self, intptr_t slot) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QDockWidget::connect(self, static_cast<void (QDockWidget::*)(QDockWidget::DockWidgetFeatures)>(&QDockWidget::featuresChanged), self, [=](QDockWidget::DockWidgetFeatures features) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QDockWidget::DockWidgetFeatures features_ret = features;
|
|
|
|
int sigval1 = static_cast<int>(features_ret);
|
|
|
|
miqt_exec_callback_QDockWidget_FeaturesChanged(slot, sigval1);
|
2024-08-29 07:01:51 +00:00
|
|
|
});
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDockWidget_TopLevelChanged(QDockWidget* self, bool topLevel) {
|
|
|
|
self->topLevelChanged(topLevel);
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QDockWidget_connect_TopLevelChanged(QDockWidget* self, intptr_t slot) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QDockWidget::connect(self, static_cast<void (QDockWidget::*)(bool)>(&QDockWidget::topLevelChanged), self, [=](bool topLevel) {
|
2024-09-14 22:29:05 +00:00
|
|
|
bool sigval1 = topLevel;
|
|
|
|
miqt_exec_callback_QDockWidget_TopLevelChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QDockWidget_AllowedAreasChanged(QDockWidget* self, int allowedAreas) {
|
|
|
|
self->allowedAreasChanged(static_cast<Qt::DockWidgetAreas>(allowedAreas));
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QDockWidget_connect_AllowedAreasChanged(QDockWidget* self, intptr_t slot) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QDockWidget::connect(self, static_cast<void (QDockWidget::*)(Qt::DockWidgetAreas)>(&QDockWidget::allowedAreasChanged), self, [=](Qt::DockWidgetAreas allowedAreas) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::DockWidgetAreas allowedAreas_ret = allowedAreas;
|
|
|
|
int sigval1 = static_cast<int>(allowedAreas_ret);
|
|
|
|
miqt_exec_callback_QDockWidget_AllowedAreasChanged(slot, sigval1);
|
2024-08-29 07:01:51 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QDockWidget_VisibilityChanged(QDockWidget* self, bool visible) {
|
|
|
|
self->visibilityChanged(visible);
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QDockWidget_connect_VisibilityChanged(QDockWidget* self, intptr_t slot) {
|
2024-08-25 04:08:24 +00:00
|
|
|
QDockWidget::connect(self, static_cast<void (QDockWidget::*)(bool)>(&QDockWidget::visibilityChanged), self, [=](bool visible) {
|
2024-09-14 22:29:05 +00:00
|
|
|
bool sigval1 = visible;
|
|
|
|
miqt_exec_callback_QDockWidget_VisibilityChanged(slot, sigval1);
|
2024-08-25 04:08:24 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QDockWidget_DockLocationChanged(QDockWidget* self, int area) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->dockLocationChanged(static_cast<Qt::DockWidgetArea>(area));
|
|
|
|
}
|
|
|
|
|
2024-10-13 06:06:06 +00:00
|
|
|
void QDockWidget_connect_DockLocationChanged(QDockWidget* self, intptr_t slot) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QDockWidget::connect(self, static_cast<void (QDockWidget::*)(Qt::DockWidgetArea)>(&QDockWidget::dockLocationChanged), self, [=](Qt::DockWidgetArea area) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::DockWidgetArea area_ret = area;
|
2024-09-18 00:12:02 +00:00
|
|
|
int sigval1 = static_cast<int>(area_ret);
|
2024-09-14 22:29:05 +00:00
|
|
|
miqt_exec_callback_QDockWidget_DockLocationChanged(slot, sigval1);
|
2024-08-29 07:01:51 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDockWidget_Tr2(const char* s, const char* c) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QDockWidget::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
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;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDockWidget_Tr3(const char* s, const char* c, int n) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QDockWidget::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
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;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDockWidget_TrUtf82(const char* s, const char* c) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QDockWidget::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
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;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QDockWidget_TrUtf83(const char* s, const char* c, int n) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QDockWidget::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();
|
2024-10-18 23:53:33 +00:00
|
|
|
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;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QDockWidget_Delete(QDockWidget* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|