#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "gen_qgraphicsscene.h" #include "_cgo_export.h" QGraphicsScene* QGraphicsScene_new() { return new QGraphicsScene(); } QGraphicsScene* QGraphicsScene_new2(QRectF* sceneRect) { return new QGraphicsScene(*sceneRect); } QGraphicsScene* QGraphicsScene_new3(double x, double y, double width, double height) { return new QGraphicsScene(static_cast(x), static_cast(y), static_cast(width), static_cast(height)); } QGraphicsScene* QGraphicsScene_new4(QObject* parent) { return new QGraphicsScene(parent); } QGraphicsScene* QGraphicsScene_new5(QRectF* sceneRect, QObject* parent) { return new QGraphicsScene(*sceneRect, parent); } QGraphicsScene* QGraphicsScene_new6(double x, double y, double width, double height, QObject* parent) { return new QGraphicsScene(static_cast(x), static_cast(y), static_cast(width), static_cast(height), parent); } QMetaObject* QGraphicsScene_MetaObject(const QGraphicsScene* self) { return (QMetaObject*) self->metaObject(); } void* QGraphicsScene_Metacast(QGraphicsScene* self, const char* param1) { return self->qt_metacast(param1); } struct miqt_string QGraphicsScene_Tr(const char* s) { QString _ret = QGraphicsScene::tr(s); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } QRectF* QGraphicsScene_SceneRect(const QGraphicsScene* self) { return new QRectF(self->sceneRect()); } double QGraphicsScene_Width(const QGraphicsScene* self) { qreal _ret = self->width(); return static_cast(_ret); } double QGraphicsScene_Height(const QGraphicsScene* self) { qreal _ret = self->height(); return static_cast(_ret); } void QGraphicsScene_SetSceneRect(QGraphicsScene* self, QRectF* rect) { self->setSceneRect(*rect); } void QGraphicsScene_SetSceneRect2(QGraphicsScene* self, double x, double y, double w, double h) { self->setSceneRect(static_cast(x), static_cast(y), static_cast(w), static_cast(h)); } void QGraphicsScene_Render(QGraphicsScene* self, QPainter* painter) { self->render(painter); } int QGraphicsScene_ItemIndexMethod(const QGraphicsScene* self) { QGraphicsScene::ItemIndexMethod _ret = self->itemIndexMethod(); return static_cast(_ret); } void QGraphicsScene_SetItemIndexMethod(QGraphicsScene* self, int method) { self->setItemIndexMethod(static_cast(method)); } int QGraphicsScene_BspTreeDepth(const QGraphicsScene* self) { return self->bspTreeDepth(); } void QGraphicsScene_SetBspTreeDepth(QGraphicsScene* self, int depth) { self->setBspTreeDepth(static_cast(depth)); } QRectF* QGraphicsScene_ItemsBoundingRect(const QGraphicsScene* self) { return new QRectF(self->itemsBoundingRect()); } struct miqt_array* QGraphicsScene_Items(const QGraphicsScene* self) { QList _ret = self->items(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } struct miqt_array* QGraphicsScene_ItemsWithPos(const QGraphicsScene* self, QPointF* pos) { QList _ret = self->items(*pos); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } struct miqt_array* QGraphicsScene_ItemsWithRect(const QGraphicsScene* self, QRectF* rect) { QList _ret = self->items(*rect); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } struct miqt_array* QGraphicsScene_ItemsWithPath(const QGraphicsScene* self, QPainterPath* path) { QList _ret = self->items(*path); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } struct miqt_array* QGraphicsScene_Items2(const QGraphicsScene* self, double x, double y, double w, double h, int mode, int order) { QList _ret = self->items(static_cast(x), static_cast(y), static_cast(w), static_cast(h), static_cast(mode), static_cast(order)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } struct miqt_array* QGraphicsScene_CollidingItems(const QGraphicsScene* self, QGraphicsItem* item) { QList _ret = self->collidingItems(item); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } QGraphicsItem* QGraphicsScene_ItemAt(const QGraphicsScene* self, QPointF* pos, QTransform* deviceTransform) { return self->itemAt(*pos, *deviceTransform); } QGraphicsItem* QGraphicsScene_ItemAt2(const QGraphicsScene* self, double x, double y, QTransform* deviceTransform) { return self->itemAt(static_cast(x), static_cast(y), *deviceTransform); } struct miqt_array* QGraphicsScene_SelectedItems(const QGraphicsScene* self) { QList _ret = self->selectedItems(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } QPainterPath* QGraphicsScene_SelectionArea(const QGraphicsScene* self) { return new QPainterPath(self->selectionArea()); } void QGraphicsScene_SetSelectionArea(QGraphicsScene* self, QPainterPath* path, QTransform* deviceTransform) { self->setSelectionArea(*path, *deviceTransform); } void QGraphicsScene_SetSelectionAreaWithPath(QGraphicsScene* self, QPainterPath* path) { self->setSelectionArea(*path); } QGraphicsItemGroup* QGraphicsScene_CreateItemGroup(QGraphicsScene* self, struct miqt_array* /* of QGraphicsItem* */ items) { QList items_QList; items_QList.reserve(items->len); QGraphicsItem** items_arr = static_cast(items->data); for(size_t i = 0; i < items->len; ++i) { items_QList.push_back(items_arr[i]); } return self->createItemGroup(items_QList); } void QGraphicsScene_DestroyItemGroup(QGraphicsScene* self, QGraphicsItemGroup* group) { self->destroyItemGroup(group); } void QGraphicsScene_AddItem(QGraphicsScene* self, QGraphicsItem* item) { self->addItem(item); } QGraphicsEllipseItem* QGraphicsScene_AddEllipse(QGraphicsScene* self, QRectF* rect) { return self->addEllipse(*rect); } QGraphicsLineItem* QGraphicsScene_AddLine(QGraphicsScene* self, QLineF* line) { return self->addLine(*line); } QGraphicsPathItem* QGraphicsScene_AddPath(QGraphicsScene* self, QPainterPath* path) { return self->addPath(*path); } QGraphicsPixmapItem* QGraphicsScene_AddPixmap(QGraphicsScene* self, QPixmap* pixmap) { return self->addPixmap(*pixmap); } QGraphicsRectItem* QGraphicsScene_AddRect(QGraphicsScene* self, QRectF* rect) { return self->addRect(*rect); } QGraphicsTextItem* QGraphicsScene_AddText(QGraphicsScene* self, struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); return self->addText(text_QString); } QGraphicsSimpleTextItem* QGraphicsScene_AddSimpleText(QGraphicsScene* self, struct miqt_string text) { QString text_QString = QString::fromUtf8(text.data, text.len); return self->addSimpleText(text_QString); } QGraphicsProxyWidget* QGraphicsScene_AddWidget(QGraphicsScene* self, QWidget* widget) { return self->addWidget(widget); } QGraphicsEllipseItem* QGraphicsScene_AddEllipse2(QGraphicsScene* self, double x, double y, double w, double h) { return self->addEllipse(static_cast(x), static_cast(y), static_cast(w), static_cast(h)); } QGraphicsLineItem* QGraphicsScene_AddLine2(QGraphicsScene* self, double x1, double y1, double x2, double y2) { return self->addLine(static_cast(x1), static_cast(y1), static_cast(x2), static_cast(y2)); } QGraphicsRectItem* QGraphicsScene_AddRect2(QGraphicsScene* self, double x, double y, double w, double h) { return self->addRect(static_cast(x), static_cast(y), static_cast(w), static_cast(h)); } void QGraphicsScene_RemoveItem(QGraphicsScene* self, QGraphicsItem* item) { self->removeItem(item); } QGraphicsItem* QGraphicsScene_FocusItem(const QGraphicsScene* self) { return self->focusItem(); } void QGraphicsScene_SetFocusItem(QGraphicsScene* self, QGraphicsItem* item) { self->setFocusItem(item); } bool QGraphicsScene_HasFocus(const QGraphicsScene* self) { return self->hasFocus(); } void QGraphicsScene_SetFocus(QGraphicsScene* self) { self->setFocus(); } void QGraphicsScene_ClearFocus(QGraphicsScene* self) { self->clearFocus(); } void QGraphicsScene_SetStickyFocus(QGraphicsScene* self, bool enabled) { self->setStickyFocus(enabled); } bool QGraphicsScene_StickyFocus(const QGraphicsScene* self) { return self->stickyFocus(); } QGraphicsItem* QGraphicsScene_MouseGrabberItem(const QGraphicsScene* self) { return self->mouseGrabberItem(); } QBrush* QGraphicsScene_BackgroundBrush(const QGraphicsScene* self) { return new QBrush(self->backgroundBrush()); } void QGraphicsScene_SetBackgroundBrush(QGraphicsScene* self, QBrush* brush) { self->setBackgroundBrush(*brush); } QBrush* QGraphicsScene_ForegroundBrush(const QGraphicsScene* self) { return new QBrush(self->foregroundBrush()); } void QGraphicsScene_SetForegroundBrush(QGraphicsScene* self, QBrush* brush) { self->setForegroundBrush(*brush); } QVariant* QGraphicsScene_InputMethodQuery(const QGraphicsScene* self, int query) { return new QVariant(self->inputMethodQuery(static_cast(query))); } struct miqt_array* QGraphicsScene_Views(const QGraphicsScene* self) { QList _ret = self->views(); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsView** _arr = static_cast(malloc(sizeof(QGraphicsView*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } void QGraphicsScene_Update(QGraphicsScene* self, double x, double y, double w, double h) { self->update(static_cast(x), static_cast(y), static_cast(w), static_cast(h)); } void QGraphicsScene_Invalidate(QGraphicsScene* self, double x, double y, double w, double h) { self->invalidate(static_cast(x), static_cast(y), static_cast(w), static_cast(h)); } QStyle* QGraphicsScene_Style(const QGraphicsScene* self) { return self->style(); } void QGraphicsScene_SetStyle(QGraphicsScene* self, QStyle* style) { self->setStyle(style); } QFont* QGraphicsScene_Font(const QGraphicsScene* self) { return new QFont(self->font()); } void QGraphicsScene_SetFont(QGraphicsScene* self, QFont* font) { self->setFont(*font); } QPalette* QGraphicsScene_Palette(const QGraphicsScene* self) { return new QPalette(self->palette()); } void QGraphicsScene_SetPalette(QGraphicsScene* self, QPalette* palette) { self->setPalette(*palette); } bool QGraphicsScene_IsActive(const QGraphicsScene* self) { return self->isActive(); } QGraphicsItem* QGraphicsScene_ActivePanel(const QGraphicsScene* self) { return self->activePanel(); } void QGraphicsScene_SetActivePanel(QGraphicsScene* self, QGraphicsItem* item) { self->setActivePanel(item); } QGraphicsWidget* QGraphicsScene_ActiveWindow(const QGraphicsScene* self) { return self->activeWindow(); } void QGraphicsScene_SetActiveWindow(QGraphicsScene* self, QGraphicsWidget* widget) { self->setActiveWindow(widget); } bool QGraphicsScene_SendEvent(QGraphicsScene* self, QGraphicsItem* item, QEvent* event) { return self->sendEvent(item, event); } double QGraphicsScene_MinimumRenderSize(const QGraphicsScene* self) { qreal _ret = self->minimumRenderSize(); return static_cast(_ret); } void QGraphicsScene_SetMinimumRenderSize(QGraphicsScene* self, double minSize) { self->setMinimumRenderSize(static_cast(minSize)); } bool QGraphicsScene_FocusOnTouch(const QGraphicsScene* self) { return self->focusOnTouch(); } void QGraphicsScene_SetFocusOnTouch(QGraphicsScene* self, bool enabled) { self->setFocusOnTouch(enabled); } void QGraphicsScene_Update2(QGraphicsScene* self) { self->update(); } void QGraphicsScene_Invalidate2(QGraphicsScene* self) { self->invalidate(); } void QGraphicsScene_Advance(QGraphicsScene* self) { self->advance(); } void QGraphicsScene_ClearSelection(QGraphicsScene* self) { self->clearSelection(); } void QGraphicsScene_Clear(QGraphicsScene* self) { self->clear(); } void QGraphicsScene_Changed(QGraphicsScene* self, struct miqt_array* /* of QRectF* */ region) { QList region_QList; region_QList.reserve(region->len); QRectF** region_arr = static_cast(region->data); for(size_t i = 0; i < region->len; ++i) { region_QList.push_back(*(region_arr[i])); } self->changed(region_QList); } void QGraphicsScene_connect_Changed(QGraphicsScene* self, intptr_t slot) { QGraphicsScene::connect(self, static_cast&)>(&QGraphicsScene::changed), self, [=](const QList& region) { const QList& region_ret = region; // Convert QList<> from C++ memory to manually-managed C memory QRectF** region_arr = static_cast(malloc(sizeof(QRectF*) * region_ret.length())); for (size_t i = 0, e = region_ret.length(); i < e; ++i) { region_arr[i] = new QRectF(region_ret[i]); } struct miqt_array* region_out = static_cast(malloc(sizeof(struct miqt_array))); region_out->len = region_ret.length(); region_out->data = static_cast(region_arr); struct miqt_array* sigval1 = region_out; miqt_exec_callback_QGraphicsScene_Changed(slot, sigval1); }); } void QGraphicsScene_SceneRectChanged(QGraphicsScene* self, QRectF* rect) { self->sceneRectChanged(*rect); } void QGraphicsScene_connect_SceneRectChanged(QGraphicsScene* self, intptr_t slot) { QGraphicsScene::connect(self, static_cast(&QGraphicsScene::sceneRectChanged), self, [=](const QRectF& rect) { const QRectF& rect_ret = rect; // Cast returned reference into pointer QRectF* sigval1 = const_cast(&rect_ret); miqt_exec_callback_QGraphicsScene_SceneRectChanged(slot, sigval1); }); } void QGraphicsScene_SelectionChanged(QGraphicsScene* self) { self->selectionChanged(); } void QGraphicsScene_connect_SelectionChanged(QGraphicsScene* self, intptr_t slot) { QGraphicsScene::connect(self, static_cast(&QGraphicsScene::selectionChanged), self, [=]() { miqt_exec_callback_QGraphicsScene_SelectionChanged(slot); }); } void QGraphicsScene_FocusItemChanged(QGraphicsScene* self, QGraphicsItem* newFocus, QGraphicsItem* oldFocus, int reason) { self->focusItemChanged(newFocus, oldFocus, static_cast(reason)); } void QGraphicsScene_connect_FocusItemChanged(QGraphicsScene* self, intptr_t slot) { QGraphicsScene::connect(self, static_cast(&QGraphicsScene::focusItemChanged), self, [=](QGraphicsItem* newFocus, QGraphicsItem* oldFocus, Qt::FocusReason reason) { QGraphicsItem* sigval1 = newFocus; QGraphicsItem* sigval2 = oldFocus; Qt::FocusReason reason_ret = reason; int sigval3 = static_cast(reason_ret); miqt_exec_callback_QGraphicsScene_FocusItemChanged(slot, sigval1, sigval2, sigval3); }); } struct miqt_string QGraphicsScene_Tr2(const char* s, const char* c) { QString _ret = QGraphicsScene::tr(s, c); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QGraphicsScene_Tr3(const char* s, const char* c, int n) { QString _ret = QGraphicsScene::tr(s, c, static_cast(n)); // Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory QByteArray _b = _ret.toUtf8(); struct miqt_string _ms; _ms.len = _b.length(); _ms.data = static_cast(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QGraphicsScene_Render2(QGraphicsScene* self, QPainter* painter, QRectF* target) { self->render(painter, *target); } void QGraphicsScene_Render3(QGraphicsScene* self, QPainter* painter, QRectF* target, QRectF* source) { self->render(painter, *target, *source); } void QGraphicsScene_Render4(QGraphicsScene* self, QPainter* painter, QRectF* target, QRectF* source, int aspectRatioMode) { self->render(painter, *target, *source, static_cast(aspectRatioMode)); } struct miqt_array* QGraphicsScene_Items1(const QGraphicsScene* self, int order) { QList _ret = self->items(static_cast(order)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } struct miqt_array* QGraphicsScene_Items22(const QGraphicsScene* self, QPointF* pos, int mode) { QList _ret = self->items(*pos, static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } struct miqt_array* QGraphicsScene_Items3(const QGraphicsScene* self, QPointF* pos, int mode, int order) { QList _ret = self->items(*pos, static_cast(mode), static_cast(order)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } struct miqt_array* QGraphicsScene_Items4(const QGraphicsScene* self, QPointF* pos, int mode, int order, QTransform* deviceTransform) { QList _ret = self->items(*pos, static_cast(mode), static_cast(order), *deviceTransform); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } struct miqt_array* QGraphicsScene_Items23(const QGraphicsScene* self, QRectF* rect, int mode) { QList _ret = self->items(*rect, static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } struct miqt_array* QGraphicsScene_Items32(const QGraphicsScene* self, QRectF* rect, int mode, int order) { QList _ret = self->items(*rect, static_cast(mode), static_cast(order)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } struct miqt_array* QGraphicsScene_Items42(const QGraphicsScene* self, QRectF* rect, int mode, int order, QTransform* deviceTransform) { QList _ret = self->items(*rect, static_cast(mode), static_cast(order), *deviceTransform); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } struct miqt_array* QGraphicsScene_Items25(const QGraphicsScene* self, QPainterPath* path, int mode) { QList _ret = self->items(*path, static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } struct miqt_array* QGraphicsScene_Items34(const QGraphicsScene* self, QPainterPath* path, int mode, int order) { QList _ret = self->items(*path, static_cast(mode), static_cast(order)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } struct miqt_array* QGraphicsScene_Items44(const QGraphicsScene* self, QPainterPath* path, int mode, int order, QTransform* deviceTransform) { QList _ret = self->items(*path, static_cast(mode), static_cast(order), *deviceTransform); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } struct miqt_array* QGraphicsScene_Items7(const QGraphicsScene* self, double x, double y, double w, double h, int mode, int order, QTransform* deviceTransform) { QList _ret = self->items(static_cast(x), static_cast(y), static_cast(w), static_cast(h), static_cast(mode), static_cast(order), *deviceTransform); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } struct miqt_array* QGraphicsScene_CollidingItems2(const QGraphicsScene* self, QGraphicsItem* item, int mode) { QList _ret = self->collidingItems(item, static_cast(mode)); // Convert QList<> from C++ memory to manually-managed C memory QGraphicsItem** _arr = static_cast(malloc(sizeof(QGraphicsItem*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } void QGraphicsScene_SetSelectionArea2(QGraphicsScene* self, QPainterPath* path, int selectionOperation) { self->setSelectionArea(*path, static_cast(selectionOperation)); } void QGraphicsScene_SetSelectionArea3(QGraphicsScene* self, QPainterPath* path, int selectionOperation, int mode) { self->setSelectionArea(*path, static_cast(selectionOperation), static_cast(mode)); } void QGraphicsScene_SetSelectionArea4(QGraphicsScene* self, QPainterPath* path, int selectionOperation, int mode, QTransform* deviceTransform) { self->setSelectionArea(*path, static_cast(selectionOperation), static_cast(mode), *deviceTransform); } QGraphicsEllipseItem* QGraphicsScene_AddEllipse22(QGraphicsScene* self, QRectF* rect, QPen* pen) { return self->addEllipse(*rect, *pen); } QGraphicsEllipseItem* QGraphicsScene_AddEllipse3(QGraphicsScene* self, QRectF* rect, QPen* pen, QBrush* brush) { return self->addEllipse(*rect, *pen, *brush); } QGraphicsLineItem* QGraphicsScene_AddLine22(QGraphicsScene* self, QLineF* line, QPen* pen) { return self->addLine(*line, *pen); } QGraphicsPathItem* QGraphicsScene_AddPath2(QGraphicsScene* self, QPainterPath* path, QPen* pen) { return self->addPath(*path, *pen); } QGraphicsPathItem* QGraphicsScene_AddPath3(QGraphicsScene* self, QPainterPath* path, QPen* pen, QBrush* brush) { return self->addPath(*path, *pen, *brush); } QGraphicsRectItem* QGraphicsScene_AddRect22(QGraphicsScene* self, QRectF* rect, QPen* pen) { return self->addRect(*rect, *pen); } QGraphicsRectItem* QGraphicsScene_AddRect3(QGraphicsScene* self, QRectF* rect, QPen* pen, QBrush* brush) { return self->addRect(*rect, *pen, *brush); } QGraphicsTextItem* QGraphicsScene_AddText2(QGraphicsScene* self, struct miqt_string text, QFont* font) { QString text_QString = QString::fromUtf8(text.data, text.len); return self->addText(text_QString, *font); } QGraphicsSimpleTextItem* QGraphicsScene_AddSimpleText2(QGraphicsScene* self, struct miqt_string text, QFont* font) { QString text_QString = QString::fromUtf8(text.data, text.len); return self->addSimpleText(text_QString, *font); } QGraphicsProxyWidget* QGraphicsScene_AddWidget2(QGraphicsScene* self, QWidget* widget, int wFlags) { return self->addWidget(widget, static_cast(wFlags)); } QGraphicsEllipseItem* QGraphicsScene_AddEllipse5(QGraphicsScene* self, double x, double y, double w, double h, QPen* pen) { return self->addEllipse(static_cast(x), static_cast(y), static_cast(w), static_cast(h), *pen); } QGraphicsEllipseItem* QGraphicsScene_AddEllipse6(QGraphicsScene* self, double x, double y, double w, double h, QPen* pen, QBrush* brush) { return self->addEllipse(static_cast(x), static_cast(y), static_cast(w), static_cast(h), *pen, *brush); } QGraphicsLineItem* QGraphicsScene_AddLine5(QGraphicsScene* self, double x1, double y1, double x2, double y2, QPen* pen) { return self->addLine(static_cast(x1), static_cast(y1), static_cast(x2), static_cast(y2), *pen); } QGraphicsRectItem* QGraphicsScene_AddRect5(QGraphicsScene* self, double x, double y, double w, double h, QPen* pen) { return self->addRect(static_cast(x), static_cast(y), static_cast(w), static_cast(h), *pen); } QGraphicsRectItem* QGraphicsScene_AddRect6(QGraphicsScene* self, double x, double y, double w, double h, QPen* pen, QBrush* brush) { return self->addRect(static_cast(x), static_cast(y), static_cast(w), static_cast(h), *pen, *brush); } void QGraphicsScene_SetFocusItem2(QGraphicsScene* self, QGraphicsItem* item, int focusReason) { self->setFocusItem(item, static_cast(focusReason)); } void QGraphicsScene_SetFocus1(QGraphicsScene* self, int focusReason) { self->setFocus(static_cast(focusReason)); } void QGraphicsScene_Invalidate5(QGraphicsScene* self, double x, double y, double w, double h, int layers) { self->invalidate(static_cast(x), static_cast(y), static_cast(w), static_cast(h), static_cast(layers)); } void QGraphicsScene_Update1(QGraphicsScene* self, QRectF* rect) { self->update(*rect); } void QGraphicsScene_Invalidate1(QGraphicsScene* self, QRectF* rect) { self->invalidate(*rect); } void QGraphicsScene_Invalidate22(QGraphicsScene* self, QRectF* rect, int layers) { self->invalidate(*rect, static_cast(layers)); } void QGraphicsScene_Delete(QGraphicsScene* self) { delete self; }