#include "PythonQtWrapper_QGraphicsLinearLayout.h" #include #include #include #include #include #include #include #include #include int PythonQtShell_QGraphicsLinearLayout::count() const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "count"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QGraphicsLinearLayout::staticMetaObject, "count(QGraphicsLinearLayout*)"); int returnValue; void* args[1] = {NULL}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); if (args[0]!=&returnValue) { returnValue = *((int *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } return QGraphicsLinearLayout::count(); } void PythonQtShell_QGraphicsLinearLayout::getContentsMargins(qreal* left, qreal* top, qreal* right, qreal* bottom) const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getContentsMargins"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QGraphicsLinearLayout::staticMetaObject, "getContentsMargins(QGraphicsLinearLayout*,qreal* ,qreal* ,qreal* ,qreal* )"); void* args[5] = {NULL, (void*)&left, (void*)&top, (void*)&right, (void*)&bottom}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } QGraphicsLinearLayout::getContentsMargins(left, top, right, bottom); } void PythonQtShell_QGraphicsLinearLayout::invalidate() { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "invalidate"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QGraphicsLinearLayout::staticMetaObject, "invalidate(QGraphicsLinearLayout*)"); void* args[1] = {NULL}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } QGraphicsLinearLayout::invalidate(); } QGraphicsLayoutItem* PythonQtShell_QGraphicsLinearLayout::itemAt(int index) const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemAt"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QGraphicsLinearLayout::staticMetaObject, "itemAt(QGraphicsLinearLayout*,int )"); QGraphicsLayoutItem* returnValue; void* args[2] = {NULL, (void*)&index}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); if (args[0]!=&returnValue) { returnValue = *((QGraphicsLayoutItem* *)args[0]); } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } return QGraphicsLinearLayout::itemAt(index); } void PythonQtShell_QGraphicsLinearLayout::removeAt(int index) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeAt"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QGraphicsLinearLayout::staticMetaObject, "removeAt(QGraphicsLinearLayout*,int )"); void* args[2] = {NULL, (void*)&index}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } QGraphicsLinearLayout::removeAt(index); } void PythonQtShell_QGraphicsLinearLayout::widgetEvent(QEvent* e) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "widgetEvent"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromMetaObjectAndSignature( &PythonQtWrapper_QGraphicsLinearLayout::staticMetaObject, "widgetEvent(QGraphicsLinearLayout*,QEvent* )"); void* args[2] = {NULL, (void*)&e}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } QGraphicsLinearLayout::widgetEvent(e); } QGraphicsLinearLayout* PythonQtWrapper_QGraphicsLinearLayout::new_QGraphicsLinearLayout(QGraphicsLayoutItem* parent) { return new PythonQtShell_QGraphicsLinearLayout(parent); } QGraphicsLinearLayout* PythonQtWrapper_QGraphicsLinearLayout::new_QGraphicsLinearLayout(Qt::Orientation orientation, QGraphicsLayoutItem* parent) { return new PythonQtShell_QGraphicsLinearLayout(orientation, parent); } qreal PythonQtWrapper_QGraphicsLinearLayout::itemSpacing(QGraphicsLinearLayout* theWrappedObject, int index) const { return theWrappedObject->itemSpacing(index); } void PythonQtWrapper_QGraphicsLinearLayout::setSpacing(QGraphicsLinearLayout* theWrappedObject, qreal spacing) { theWrappedObject->setSpacing(spacing); } void PythonQtWrapper_QGraphicsLinearLayout::setOrientation(QGraphicsLinearLayout* theWrappedObject, Qt::Orientation orientation) { theWrappedObject->setOrientation(orientation); } void PythonQtWrapper_QGraphicsLinearLayout::addItem(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item) { theWrappedObject->addItem(item); } void PythonQtWrapper_QGraphicsLinearLayout::invalidate(QGraphicsLinearLayout* theWrappedObject) { ((PythonQtPublicPromoter_QGraphicsLinearLayout*)theWrappedObject)->promoted_invalidate(); } int PythonQtWrapper_QGraphicsLinearLayout::stretchFactor(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item) const { return theWrappedObject->stretchFactor(item); } QGraphicsLayoutItem* PythonQtWrapper_QGraphicsLinearLayout::itemAt(QGraphicsLinearLayout* theWrappedObject, int index) const { return ((PythonQtPublicPromoter_QGraphicsLinearLayout*)theWrappedObject)->promoted_itemAt(index); } void PythonQtWrapper_QGraphicsLinearLayout::setStretchFactor(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item, int stretch) { theWrappedObject->setStretchFactor(item, stretch); } void PythonQtWrapper_QGraphicsLinearLayout::removeItem(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item) { theWrappedObject->removeItem(item); } void PythonQtWrapper_QGraphicsLinearLayout::setGeometry(QGraphicsLinearLayout* theWrappedObject, const QRectF& rect) { theWrappedObject->setGeometry(rect); } void PythonQtWrapper_QGraphicsLinearLayout::setItemSpacing(QGraphicsLinearLayout* theWrappedObject, int index, qreal spacing) { theWrappedObject->setItemSpacing(index, spacing); } qreal PythonQtWrapper_QGraphicsLinearLayout::spacing(QGraphicsLinearLayout* theWrappedObject) const { return theWrappedObject->spacing(); } void PythonQtWrapper_QGraphicsLinearLayout::insertStretch(QGraphicsLinearLayout* theWrappedObject, int index, int stretch) { theWrappedObject->insertStretch(index, stretch); } QSizeF PythonQtWrapper_QGraphicsLinearLayout::sizeHint(QGraphicsLinearLayout* theWrappedObject, Qt::SizeHint which, const QSizeF& constraint) const { return theWrappedObject->sizeHint(which, constraint); } int PythonQtWrapper_QGraphicsLinearLayout::count(QGraphicsLinearLayout* theWrappedObject) const { return ((PythonQtPublicPromoter_QGraphicsLinearLayout*)theWrappedObject)->promoted_count(); } void PythonQtWrapper_QGraphicsLinearLayout::insertItem(QGraphicsLinearLayout* theWrappedObject, int index, QGraphicsLayoutItem* item) { theWrappedObject->insertItem(index, item); } void PythonQtWrapper_QGraphicsLinearLayout::addStretch(QGraphicsLinearLayout* theWrappedObject, int stretch) { theWrappedObject->addStretch(stretch); } void PythonQtWrapper_QGraphicsLinearLayout::setAlignment(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item, Qt::Alignment alignment) { theWrappedObject->setAlignment(item, alignment); } Qt::Alignment PythonQtWrapper_QGraphicsLinearLayout::alignment(QGraphicsLinearLayout* theWrappedObject, QGraphicsLayoutItem* item) const { return theWrappedObject->alignment(item); } Qt::Orientation PythonQtWrapper_QGraphicsLinearLayout::orientation(QGraphicsLinearLayout* theWrappedObject) const { return theWrappedObject->orientation(); } void PythonQtWrapper_QGraphicsLinearLayout::removeAt(QGraphicsLinearLayout* theWrappedObject, int index) { ((PythonQtPublicPromoter_QGraphicsLinearLayout*)theWrappedObject)->promoted_removeAt(index); }