2024-08-25 04:08:24 +00:00
|
|
|
#include <QEvent>
|
|
|
|
#include <QGraphicsLayout>
|
|
|
|
#include <QGraphicsLayoutItem>
|
2024-10-16 05:07:56 +00:00
|
|
|
#include <qgraphicslayout.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qgraphicslayout.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
void QGraphicsLayout_SetContentsMargins(QGraphicsLayout* self, double left, double top, double right, double bottom) {
|
|
|
|
self->setContentsMargins(static_cast<qreal>(left), static_cast<qreal>(top), static_cast<qreal>(right), static_cast<qreal>(bottom));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
void QGraphicsLayout_GetContentsMargins(const QGraphicsLayout* self, double* left, double* top, double* right, double* bottom) {
|
|
|
|
self->getContentsMargins(static_cast<qreal*>(left), static_cast<qreal*>(top), static_cast<qreal*>(right), static_cast<qreal*>(bottom));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsLayout_Activate(QGraphicsLayout* self) {
|
|
|
|
self->activate();
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QGraphicsLayout_IsActivated(const QGraphicsLayout* self) {
|
|
|
|
return self->isActivated();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsLayout_Invalidate(QGraphicsLayout* self) {
|
|
|
|
self->invalidate();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsLayout_UpdateGeometry(QGraphicsLayout* self) {
|
|
|
|
self->updateGeometry();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsLayout_WidgetEvent(QGraphicsLayout* self, QEvent* e) {
|
|
|
|
self->widgetEvent(e);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QGraphicsLayout_Count(const QGraphicsLayout* self) {
|
|
|
|
return self->count();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QGraphicsLayoutItem* QGraphicsLayout_ItemAt(const QGraphicsLayout* self, int i) {
|
|
|
|
return self->itemAt(static_cast<int>(i));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsLayout_RemoveAt(QGraphicsLayout* self, int index) {
|
|
|
|
self->removeAt(static_cast<int>(index));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QGraphicsLayout_SetInstantInvalidatePropagation(bool enable) {
|
|
|
|
QGraphicsLayout::setInstantInvalidatePropagation(enable);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QGraphicsLayout_InstantInvalidatePropagation() {
|
|
|
|
return QGraphicsLayout::instantInvalidatePropagation();
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QGraphicsLayout_Delete(QGraphicsLayout* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QGraphicsLayout*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|