2024-08-25 04:08:24 +00:00
|
|
|
#include <QGraphicsLayoutItem>
|
|
|
|
#include <QGraphicsLinearLayout>
|
|
|
|
#include <QRectF>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QSizeF>
|
|
|
|
#include "qgraphicslinearlayout.h"
|
|
|
|
#include "gen_qgraphicslinearlayout.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
QGraphicsLinearLayout* QGraphicsLinearLayout_new() {
|
|
|
|
return new QGraphicsLinearLayout();
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QGraphicsLinearLayout* QGraphicsLinearLayout_new2(int orientation) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return new QGraphicsLinearLayout(static_cast<Qt::Orientation>(orientation));
|
|
|
|
}
|
|
|
|
|
|
|
|
QGraphicsLinearLayout* QGraphicsLinearLayout_new3(QGraphicsLayoutItem* parent) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QGraphicsLinearLayout(parent);
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QGraphicsLinearLayout* QGraphicsLinearLayout_new4(int orientation, QGraphicsLayoutItem* parent) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return new QGraphicsLinearLayout(static_cast<Qt::Orientation>(orientation), parent);
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QGraphicsLinearLayout_SetOrientation(QGraphicsLinearLayout* self, int orientation) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setOrientation(static_cast<Qt::Orientation>(orientation));
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QGraphicsLinearLayout_Orientation(const QGraphicsLinearLayout* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::Orientation _ret = self->orientation();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QGraphicsLinearLayout_AddItem(QGraphicsLinearLayout* self, QGraphicsLayoutItem* item) {
|
|
|
|
self->addItem(item);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsLinearLayout_AddStretch(QGraphicsLinearLayout* self) {
|
|
|
|
self->addStretch();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsLinearLayout_InsertItem(QGraphicsLinearLayout* self, int index, QGraphicsLayoutItem* item) {
|
|
|
|
self->insertItem(static_cast<int>(index), item);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsLinearLayout_InsertStretch(QGraphicsLinearLayout* self, int index) {
|
|
|
|
self->insertStretch(static_cast<int>(index));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsLinearLayout_RemoveItem(QGraphicsLinearLayout* self, QGraphicsLayoutItem* item) {
|
|
|
|
self->removeItem(item);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsLinearLayout_RemoveAt(QGraphicsLinearLayout* self, int index) {
|
|
|
|
self->removeAt(static_cast<int>(index));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsLinearLayout_SetSpacing(QGraphicsLinearLayout* self, double spacing) {
|
|
|
|
self->setSpacing(static_cast<qreal>(spacing));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
double QGraphicsLinearLayout_Spacing(const QGraphicsLinearLayout* self) {
|
2024-09-18 00:12:02 +00:00
|
|
|
qreal _ret = self->spacing();
|
|
|
|
return static_cast<double>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsLinearLayout_SetItemSpacing(QGraphicsLinearLayout* self, int index, double spacing) {
|
|
|
|
self->setItemSpacing(static_cast<int>(index), static_cast<qreal>(spacing));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
double QGraphicsLinearLayout_ItemSpacing(const QGraphicsLinearLayout* self, int index) {
|
2024-09-18 00:12:02 +00:00
|
|
|
qreal _ret = self->itemSpacing(static_cast<int>(index));
|
|
|
|
return static_cast<double>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsLinearLayout_SetStretchFactor(QGraphicsLinearLayout* self, QGraphicsLayoutItem* item, int stretch) {
|
|
|
|
self->setStretchFactor(item, static_cast<int>(stretch));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QGraphicsLinearLayout_StretchFactor(const QGraphicsLinearLayout* self, QGraphicsLayoutItem* item) {
|
|
|
|
return self->stretchFactor(item);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsLinearLayout_SetAlignment(QGraphicsLinearLayout* self, QGraphicsLayoutItem* item, int alignment) {
|
|
|
|
self->setAlignment(item, static_cast<Qt::Alignment>(alignment));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QGraphicsLinearLayout_Alignment(const QGraphicsLinearLayout* self, QGraphicsLayoutItem* item) {
|
2024-09-14 22:29:05 +00:00
|
|
|
Qt::Alignment _ret = self->alignment(item);
|
|
|
|
return static_cast<int>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsLinearLayout_SetGeometry(QGraphicsLinearLayout* self, QRectF* rect) {
|
|
|
|
self->setGeometry(*rect);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QGraphicsLinearLayout_Count(const QGraphicsLinearLayout* self) {
|
|
|
|
return self->count();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QGraphicsLayoutItem* QGraphicsLinearLayout_ItemAt(const QGraphicsLinearLayout* self, int index) {
|
|
|
|
return self->itemAt(static_cast<int>(index));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsLinearLayout_Invalidate(QGraphicsLinearLayout* self) {
|
|
|
|
self->invalidate();
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QSizeF* QGraphicsLinearLayout_SizeHint(const QGraphicsLinearLayout* self, int which) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QSizeF(self->sizeHint(static_cast<Qt::SizeHint>(which)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
void QGraphicsLinearLayout_Dump(const QGraphicsLinearLayout* self) {
|
|
|
|
self->dump();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsLinearLayout_AddStretch1(QGraphicsLinearLayout* self, int stretch) {
|
|
|
|
self->addStretch(static_cast<int>(stretch));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsLinearLayout_InsertStretch2(QGraphicsLinearLayout* self, int index, int stretch) {
|
|
|
|
self->insertStretch(static_cast<int>(index), static_cast<int>(stretch));
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QSizeF* QGraphicsLinearLayout_SizeHint2(const QGraphicsLinearLayout* self, int which, QSizeF* constraint) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QSizeF(self->sizeHint(static_cast<Qt::SizeHint>(which), *constraint));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
void QGraphicsLinearLayout_Dump1(const QGraphicsLinearLayout* self, int indent) {
|
|
|
|
self->dump(static_cast<int>(indent));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsLinearLayout_Delete(QGraphicsLinearLayout* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|