mirror of
https://github.com/mappu/miqt.git
synced 2025-01-03 14:18:37 +00:00
169 lines
5.7 KiB
C++
169 lines
5.7 KiB
C++
#include "gen_qgraphicsgridlayout.h"
|
|
#include "qgraphicsgridlayout.h"
|
|
|
|
#include <QGraphicsGridLayout>
|
|
#include <QGraphicsLayoutItem>
|
|
#include <QRectF>
|
|
|
|
|
|
extern "C" {
|
|
extern void miqt_exec_callback(void* cb, int argc, void* argv);
|
|
}
|
|
|
|
QGraphicsGridLayout* QGraphicsGridLayout_new() {
|
|
return new QGraphicsGridLayout();
|
|
}
|
|
|
|
QGraphicsGridLayout* QGraphicsGridLayout_new2(QGraphicsLayoutItem* parent) {
|
|
return new QGraphicsGridLayout(parent);
|
|
}
|
|
|
|
void QGraphicsGridLayout_SetHorizontalSpacing(QGraphicsGridLayout* self, double spacing) {
|
|
self->setHorizontalSpacing(static_cast<qreal>(spacing));
|
|
}
|
|
|
|
double QGraphicsGridLayout_HorizontalSpacing(QGraphicsGridLayout* self) {
|
|
return self->horizontalSpacing();
|
|
}
|
|
|
|
void QGraphicsGridLayout_SetVerticalSpacing(QGraphicsGridLayout* self, double spacing) {
|
|
self->setVerticalSpacing(static_cast<qreal>(spacing));
|
|
}
|
|
|
|
double QGraphicsGridLayout_VerticalSpacing(QGraphicsGridLayout* self) {
|
|
return self->verticalSpacing();
|
|
}
|
|
|
|
void QGraphicsGridLayout_SetSpacing(QGraphicsGridLayout* self, double spacing) {
|
|
self->setSpacing(static_cast<qreal>(spacing));
|
|
}
|
|
|
|
void QGraphicsGridLayout_SetRowSpacing(QGraphicsGridLayout* self, int row, double spacing) {
|
|
self->setRowSpacing(static_cast<int>(row), static_cast<qreal>(spacing));
|
|
}
|
|
|
|
double QGraphicsGridLayout_RowSpacing(QGraphicsGridLayout* self, int row) {
|
|
return self->rowSpacing(static_cast<int>(row));
|
|
}
|
|
|
|
void QGraphicsGridLayout_SetColumnSpacing(QGraphicsGridLayout* self, int column, double spacing) {
|
|
self->setColumnSpacing(static_cast<int>(column), static_cast<qreal>(spacing));
|
|
}
|
|
|
|
double QGraphicsGridLayout_ColumnSpacing(QGraphicsGridLayout* self, int column) {
|
|
return self->columnSpacing(static_cast<int>(column));
|
|
}
|
|
|
|
void QGraphicsGridLayout_SetRowStretchFactor(QGraphicsGridLayout* self, int row, int stretch) {
|
|
self->setRowStretchFactor(static_cast<int>(row), static_cast<int>(stretch));
|
|
}
|
|
|
|
int QGraphicsGridLayout_RowStretchFactor(QGraphicsGridLayout* self, int row) {
|
|
return self->rowStretchFactor(static_cast<int>(row));
|
|
}
|
|
|
|
void QGraphicsGridLayout_SetColumnStretchFactor(QGraphicsGridLayout* self, int column, int stretch) {
|
|
self->setColumnStretchFactor(static_cast<int>(column), static_cast<int>(stretch));
|
|
}
|
|
|
|
int QGraphicsGridLayout_ColumnStretchFactor(QGraphicsGridLayout* self, int column) {
|
|
return self->columnStretchFactor(static_cast<int>(column));
|
|
}
|
|
|
|
void QGraphicsGridLayout_SetRowMinimumHeight(QGraphicsGridLayout* self, int row, double height) {
|
|
self->setRowMinimumHeight(static_cast<int>(row), static_cast<qreal>(height));
|
|
}
|
|
|
|
double QGraphicsGridLayout_RowMinimumHeight(QGraphicsGridLayout* self, int row) {
|
|
return self->rowMinimumHeight(static_cast<int>(row));
|
|
}
|
|
|
|
void QGraphicsGridLayout_SetRowPreferredHeight(QGraphicsGridLayout* self, int row, double height) {
|
|
self->setRowPreferredHeight(static_cast<int>(row), static_cast<qreal>(height));
|
|
}
|
|
|
|
double QGraphicsGridLayout_RowPreferredHeight(QGraphicsGridLayout* self, int row) {
|
|
return self->rowPreferredHeight(static_cast<int>(row));
|
|
}
|
|
|
|
void QGraphicsGridLayout_SetRowMaximumHeight(QGraphicsGridLayout* self, int row, double height) {
|
|
self->setRowMaximumHeight(static_cast<int>(row), static_cast<qreal>(height));
|
|
}
|
|
|
|
double QGraphicsGridLayout_RowMaximumHeight(QGraphicsGridLayout* self, int row) {
|
|
return self->rowMaximumHeight(static_cast<int>(row));
|
|
}
|
|
|
|
void QGraphicsGridLayout_SetRowFixedHeight(QGraphicsGridLayout* self, int row, double height) {
|
|
self->setRowFixedHeight(static_cast<int>(row), static_cast<qreal>(height));
|
|
}
|
|
|
|
void QGraphicsGridLayout_SetColumnMinimumWidth(QGraphicsGridLayout* self, int column, double width) {
|
|
self->setColumnMinimumWidth(static_cast<int>(column), static_cast<qreal>(width));
|
|
}
|
|
|
|
double QGraphicsGridLayout_ColumnMinimumWidth(QGraphicsGridLayout* self, int column) {
|
|
return self->columnMinimumWidth(static_cast<int>(column));
|
|
}
|
|
|
|
void QGraphicsGridLayout_SetColumnPreferredWidth(QGraphicsGridLayout* self, int column, double width) {
|
|
self->setColumnPreferredWidth(static_cast<int>(column), static_cast<qreal>(width));
|
|
}
|
|
|
|
double QGraphicsGridLayout_ColumnPreferredWidth(QGraphicsGridLayout* self, int column) {
|
|
return self->columnPreferredWidth(static_cast<int>(column));
|
|
}
|
|
|
|
void QGraphicsGridLayout_SetColumnMaximumWidth(QGraphicsGridLayout* self, int column, double width) {
|
|
self->setColumnMaximumWidth(static_cast<int>(column), static_cast<qreal>(width));
|
|
}
|
|
|
|
double QGraphicsGridLayout_ColumnMaximumWidth(QGraphicsGridLayout* self, int column) {
|
|
return self->columnMaximumWidth(static_cast<int>(column));
|
|
}
|
|
|
|
void QGraphicsGridLayout_SetColumnFixedWidth(QGraphicsGridLayout* self, int column, double width) {
|
|
self->setColumnFixedWidth(static_cast<int>(column), static_cast<qreal>(width));
|
|
}
|
|
|
|
int QGraphicsGridLayout_RowCount(QGraphicsGridLayout* self) {
|
|
return self->rowCount();
|
|
}
|
|
|
|
int QGraphicsGridLayout_ColumnCount(QGraphicsGridLayout* self) {
|
|
return self->columnCount();
|
|
}
|
|
|
|
QGraphicsLayoutItem* QGraphicsGridLayout_ItemAt(QGraphicsGridLayout* self, int row, int column) {
|
|
return self->itemAt(static_cast<int>(row), static_cast<int>(column));
|
|
}
|
|
|
|
int QGraphicsGridLayout_Count(QGraphicsGridLayout* self) {
|
|
return self->count();
|
|
}
|
|
|
|
QGraphicsLayoutItem* QGraphicsGridLayout_ItemAtWithIndex(QGraphicsGridLayout* self, int index) {
|
|
return self->itemAt(static_cast<int>(index));
|
|
}
|
|
|
|
void QGraphicsGridLayout_RemoveAt(QGraphicsGridLayout* self, int index) {
|
|
self->removeAt(static_cast<int>(index));
|
|
}
|
|
|
|
void QGraphicsGridLayout_RemoveItem(QGraphicsGridLayout* self, QGraphicsLayoutItem* item) {
|
|
self->removeItem(item);
|
|
}
|
|
|
|
void QGraphicsGridLayout_Invalidate(QGraphicsGridLayout* self) {
|
|
self->invalidate();
|
|
}
|
|
|
|
void QGraphicsGridLayout_SetGeometry(QGraphicsGridLayout* self, QRectF* rect) {
|
|
self->setGeometry(*rect);
|
|
}
|
|
|
|
void QGraphicsGridLayout_Delete(QGraphicsGridLayout* self) {
|
|
delete self;
|
|
}
|
|
|