/* * Implement sequence item sub-script for the type. */ static PyObject *sipArray_item(PyObject *self, SIP_SSIZE_T idx) { sipArrayObject *array = (sipArrayObject *)self; PyObject *py_item; void *data; if (check_index(array, idx) < 0) return NULL; data = element(array, idx); if (array->td != NULL) { py_item = sip_api_convert_from_type(data, array->td, NULL); } else { switch (*array->format) { case 'b': py_item = SIPLong_FromLong(*(char *)data); break; case 'B': py_item = PyLong_FromUnsignedLong(*(unsigned char *)data); break; case 'h': py_item = SIPLong_FromLong(*(short *)data); break; case 'H': py_item = PyLong_FromUnsignedLong(*(unsigned short *)data); break; case 'i': py_item = SIPLong_FromLong(*(int *)data); break; case 'I': py_item = PyLong_FromUnsignedLong(*(unsigned int *)data); break; case 'f': py_item = PyFloat_FromDouble(*(float *)data); break; case 'd': py_item = PyFloat_FromDouble(*(double *)data); break; default: py_item = NULL; } } return py_item; }
static PyObject *meth_QXmlAttributes_index(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; { const QString* a0; int a0State = 0; const QXmlAttributes *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QXmlAttributes, &sipCpp, sipType_QString,&a0, &a0State)) { int sipRes; Py_BEGIN_ALLOW_THREADS sipRes = sipCpp->index(*a0); Py_END_ALLOW_THREADS sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State); return SIPLong_FromLong(sipRes); } } { const QString* a0; int a0State = 0; const QString* a1; int a1State = 0; const QXmlAttributes *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QXmlAttributes, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State)) { int sipRes; Py_BEGIN_ALLOW_THREADS sipRes = sipCpp->index(*a0,*a1); Py_END_ALLOW_THREADS sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State); sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State); return SIPLong_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_QXmlAttributes, sipName_index, doc_QXmlAttributes_index); return NULL; }
static PyObject *meth_PythonPCIE_open_pcie(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; { const char* a0; uint64_t* a1; int a1State = 0; PythonPCIE *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "BsJ1", &sipSelf, sipType_PythonPCIE, &sipCpp, &a0, sipType_uint64_t,&a1, &a1State)) { int sipRes; sipRes = sipCpp->open_pcie(a0,*a1); sipReleaseType(a1,sipType_uint64_t,a1State); return SIPLong_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_PythonPCIE, sipName_open_pcie, NULL); return NULL; }
static PyObject *convertFrom_QList_1800(void *sipCppV, PyObject *) { QList<int> *sipCpp = reinterpret_cast<QList<int> *>(sipCppV); #line 632 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/sip/QtCore/qlist.sip" // Create the list. PyObject *l; if ((l = PyList_New(sipCpp->size())) == NULL) return NULL; // Set the list elements. for (int i = 0; i < sipCpp->size(); ++i) { PyObject *pobj; if ((pobj = SIPLong_FromLong(sipCpp->value(i))) == NULL) { Py_DECREF(l); return NULL; } PyList_SET_ITEM(l, i, pobj); } return l; #line 139 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/QtCore/sipQtCoreQList1800.cpp" }
static PyObject *meth_QDesignerFormWindowCursorInterface_selectedWidgetCount(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; PyObject *sipOrigSelf = sipSelf; { const QDesignerFormWindowCursorInterface *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDesignerFormWindowCursorInterface, &sipCpp)) { int sipRes; if (!sipOrigSelf) { sipAbstractMethod(sipName_QDesignerFormWindowCursorInterface, sipName_selectedWidgetCount); return NULL; } sipRes = sipCpp->selectedWidgetCount(); return SIPLong_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_QDesignerFormWindowCursorInterface, sipName_selectedWidgetCount, doc_QDesignerFormWindowCursorInterface_selectedWidgetCount); return NULL; }
static PyObject *meth_QEvent_registerEventType(PyObject *, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = NULL; { int a0 = -1; static const char *sipKwdList[] = { sipName_hint, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "|i", &a0)) { int sipRes; sipRes = QEvent::registerEventType(a0); return SIPLong_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_QEvent, sipName_registerEventType, doc_QEvent_registerEventType); return NULL; }
static PyObject *convertFrom_QVector_1800(void *sipCppV, PyObject *) { ::QVector<int> *sipCpp = reinterpret_cast< ::QVector<int> *>(sipCppV); #line 105 "/home/thais/Faculdade/TCC/NEW/PyQt4_gpl_x11-4.12/sip/QtCore/qvector.sip" // Create the list. PyObject *l; if ((l = PyList_New(sipCpp->size())) == NULL) return NULL; // Set the list elements. for (int i = 0; i < sipCpp->size(); ++i) { PyObject *pobj; // Convert to a Python long to make sure it doesn't get interpreted as // a signed value. if ((pobj = SIPLong_FromLong(sipCpp->value(i))) == NULL) { Py_DECREF(l); return NULL; } PyList_SET_ITEM(l, i, pobj); } return l; #line 117 "/home/thais/Faculdade/TCC/NEW/PyQt4_gpl_x11-4.12/QtCore/sipQtCoreQVector1800.cpp" }
static PyObject *meth_QCollator_compare(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; { const QString* a0; int a0State = 0; const QString* a1; int a1State = 0; const QCollator *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QCollator, &sipCpp, sipType_QString,&a0, &a0State, sipType_QString,&a1, &a1State)) { int sipRes; sipRes = sipCpp->compare(*a0,*a1); sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State); sipReleaseType(const_cast<QString *>(a1),sipType_QString,a1State); return SIPLong_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_QCollator, sipName_compare, doc_QCollator_compare); return NULL; }
static PyObject *convertFrom_QList_1800(void *sipCppV, PyObject *) { QList<int> *sipCpp = reinterpret_cast<QList<int> *>(sipCppV); #line 632 "/Users/ktaylora/PLJV/tillage_likelihood_model/gui/PyQt4/sip/QtCore/qlist.sip" // Create the list. PyObject *l; if ((l = PyList_New(sipCpp->size())) == NULL) return NULL; // Set the list elements. for (int i = 0; i < sipCpp->size(); ++i) { PyObject *pobj; if ((pobj = SIPLong_FromLong(sipCpp->value(i))) == NULL) { Py_DECREF(l); return NULL; } PyList_SET_ITEM(l, i, pobj); } return l; #line 139 "/Users/ktaylora/PLJV/tillage_likelihood_model/gui/PyQt4/QtCore/sipQtCoreQList1800.cpp" }
static PyObject *convertFrom_QList_1800(void *sipCppV, PyObject *) { QList<int> *sipCpp = reinterpret_cast<QList<int> *>(sipCppV); #line 633 "C:\\Users\\marcus\\Downloads\\PyQt-gpl-5.4\\PyQt-gpl-5.4\\sip/QtCore/qpycore_qlist.sip" PyObject *l = PyList_New(sipCpp->size()); if (!l) return 0; for (int i = 0; i < sipCpp->size(); ++i) { PyObject *pobj = SIPLong_FromLong(sipCpp->value(i)); if (!pobj) { Py_DECREF(l); return 0; } PyList_SET_ITEM(l, i, pobj); } return l; #line 167 "C:\\Users\\marcus\\Downloads\\PyQt-gpl-5.4\\PyQt-gpl-5.4\\QtCore/sipQtCoreQList1800.cpp" }
static PyObject *convertFrom_QList_1800(void *sipCppV, PyObject *) { QList<int> *sipCpp = reinterpret_cast<QList<int> *>(sipCppV); #line 627 "/home/vikky/Desktop/DVCS/stuff/scrapy/soft/PyQt-x11-gpl-4.11.4/sip/QtCore/qlist.sip" // Create the list. PyObject *l; if ((l = PyList_New(sipCpp->size())) == NULL) return NULL; // Set the list elements. for (int i = 0; i < sipCpp->size(); ++i) { PyObject *pobj; if ((pobj = SIPLong_FromLong(sipCpp->value(i))) == NULL) { Py_DECREF(l); return NULL; } PyList_SET_ITEM(l, i, pobj); } return l; #line 134 "/home/vikky/Desktop/DVCS/stuff/scrapy/soft/PyQt-x11-gpl-4.11.4/QtCore/sipQtCoreQList1800.cpp" }
static PyObject *meth_QPolygonF_lastIndexOf(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = NULL; { const QPointF* a0; int a0State = 0; int a1 = -1; const QPolygonF *sipCpp; static const char *sipKwdList[] = { NULL, sipName_from, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|i", &sipSelf, sipType_QPolygonF, &sipCpp, sipType_QPointF, &a0, &a0State, &a1)) { int sipRes; sipRes = sipCpp->lastIndexOf(*a0,a1); sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State); return SIPLong_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_QPolygonF, sipName_lastIndexOf, doc_QPolygonF_lastIndexOf); return NULL; }
static PyObject *meth_QDesignerPropertySheetExtension_indexOf(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; PyObject *sipOrigSelf = sipSelf; { const QString* a0; int a0State = 0; const QDesignerPropertySheetExtension *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QDesignerPropertySheetExtension, &sipCpp, sipType_QString,&a0, &a0State)) { int sipRes; if (!sipOrigSelf) { sipAbstractMethod(sipName_QDesignerPropertySheetExtension, sipName_indexOf); return NULL; } sipRes = sipCpp->indexOf(*a0); sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State); return SIPLong_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_QDesignerPropertySheetExtension, sipName_indexOf, doc_QDesignerPropertySheetExtension_indexOf); return NULL; }
static PyObject *meth_QDesignerPropertySheetExtension_count(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; PyObject *sipOrigSelf = sipSelf; { const QDesignerPropertySheetExtension *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDesignerPropertySheetExtension, &sipCpp)) { int sipRes; if (!sipOrigSelf) { sipAbstractMethod(sipName_QDesignerPropertySheetExtension, sipName_count); return NULL; } sipRes = sipCpp->count(); return SIPLong_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_QDesignerPropertySheetExtension, sipName_count, doc_QDesignerPropertySheetExtension_count); return NULL; }
static PyObject *meth_QPlainTextDocumentLayout_hitTest(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf)); { const QPointF* a0; int a0State = 0; Qt::HitTestAccuracy a1; const QPlainTextDocumentLayout *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "BJ1E", &sipSelf, sipType_QPlainTextDocumentLayout, &sipCpp, sipType_QPointF, &a0, &a0State, sipType_Qt_HitTestAccuracy, &a1)) { int sipRes; Py_BEGIN_ALLOW_THREADS sipRes = (sipSelfWasArg ? sipCpp->QPlainTextDocumentLayout::hitTest(*a0,a1) : sipCpp->hitTest(*a0,a1)); Py_END_ALLOW_THREADS sipReleaseType(const_cast<QPointF *>(a0),sipType_QPointF,a0State); return SIPLong_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_QPlainTextDocumentLayout, sipName_hitTest, doc_QPlainTextDocumentLayout_hitTest); return NULL; }
static PyObject *meth_QXmlLocator_columnNumber(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; PyObject *sipOrigSelf = sipSelf; { QXmlLocator *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QXmlLocator, &sipCpp)) { int sipRes; if (!sipOrigSelf) { sipAbstractMethod(sipName_QXmlLocator, sipName_columnNumber); return NULL; } Py_BEGIN_ALLOW_THREADS sipRes = sipCpp->columnNumber(); Py_END_ALLOW_THREADS return SIPLong_FromLong(sipRes); } }
static PyObject *meth_QHelpContentModel_columnCount(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = NULL; bool sipSelfWasArg = (!sipSelf || sipIsDerived((sipSimpleWrapper *)sipSelf)); { const QModelIndex& a0def = QModelIndex(); const QModelIndex* a0 = &a0def; const QHelpContentModel *sipCpp; static const char *sipKwdList[] = { sipName_parent, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "B|J9", &sipSelf, sipType_QHelpContentModel, &sipCpp, sipType_QModelIndex, &a0)) { int sipRes; sipRes = (sipSelfWasArg ? sipCpp->QHelpContentModel::columnCount(*a0) : sipCpp->columnCount(*a0)); return SIPLong_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_QHelpContentModel, sipName_columnCount, doc_QHelpContentModel_columnCount); return NULL; }
static PyObject *meth_QDesignerMemberSheetExtension_count(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; PyObject *sipOrigSelf = sipSelf; { QDesignerMemberSheetExtension *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QDesignerMemberSheetExtension, &sipCpp)) { int sipRes; if (!sipOrigSelf) { sipAbstractMethod(sipName_QDesignerMemberSheetExtension, sipName_count); return NULL; } Py_BEGIN_ALLOW_THREADS sipRes = sipCpp->count(); Py_END_ALLOW_THREADS return SIPLong_FromLong(sipRes); } }
static PyObject *meth_PythonPCIE_write(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; { uint64_t* a0; int a0State = 0; std::vector<long>* a1; int a1State = 0; PythonPCIE *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_PythonPCIE, &sipCpp, sipType_uint64_t,&a0, &a0State, sipType_std_vector_2000,&a1, &a1State)) { int sipRes; sipRes = sipCpp->write(*a0,*a1); sipReleaseType(a0,sipType_uint64_t,a0State); sipReleaseType(a1,sipType_std_vector_2000,a1State); return SIPLong_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_PythonPCIE, sipName_write, NULL); return NULL; }
static PyObject *convertFrom_QVector_1800(void *sipCppV, PyObject *) { QVector<int> *sipCpp = reinterpret_cast<QVector<int> *>(sipCppV); #line 105 "/home/vikky/Desktop/DVCS/stuff/scrapy/soft/PyQt-x11-gpl-4.11.4/sip/QtCore/qvector.sip" // Create the list. PyObject *l; if ((l = PyList_New(sipCpp->size())) == NULL) return NULL; // Set the list elements. for (int i = 0; i < sipCpp->size(); ++i) { PyObject *pobj; // Convert to a Python long to make sure it doesn't get interpreted as // a signed value. if ((pobj = SIPLong_FromLong(sipCpp->value(i))) == NULL) { Py_DECREF(l); return NULL; } PyList_SET_ITEM(l, i, pobj); } return l; #line 117 "/home/vikky/Desktop/DVCS/stuff/scrapy/soft/PyQt-x11-gpl-4.11.4/QtCore/sipQtCoreQVector1800.cpp" }
static PyObject *meth_QTextCodec_mibEnum(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; PyObject *sipOrigSelf = sipSelf; { const QTextCodec *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QTextCodec, &sipCpp)) { int sipRes; if (!sipOrigSelf) { sipAbstractMethod(sipName_QTextCodec, sipName_mibEnum); return NULL; } sipRes = sipCpp->mibEnum(); return SIPLong_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_QTextCodec, sipName_mibEnum, doc_QTextCodec_mibEnum); return NULL; }
static PyObject *meth_tlp_GlyphFactory_getId(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; PyObject *sipOrigSelf = sipSelf; { const tlp::GlyphFactory *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_tlp_GlyphFactory, &sipCpp)) { int sipRes; if (!sipOrigSelf) { sipAbstractMethod(sipName_GlyphFactory, sipName_getId); return NULL; } sipRes = sipCpp->getId(); return SIPLong_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_GlyphFactory, sipName_getId, doc_tlp_GlyphFactory_getId); return NULL; }
static PyObject *meth_QStringMatcher_0_indexIn(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = NULL; { const ::QString* a0; int a0State = 0; int a1 = 0; const ::QStringMatcher *sipCpp; static const char *sipKwdList[] = { NULL, sipName_from, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|i", &sipSelf, sipType_QStringMatcher, &sipCpp, sipType_QString,&a0, &a0State, &a1)) { int sipRes; Py_BEGIN_ALLOW_THREADS sipRes = sipCpp->indexIn(*a0,a1); Py_END_ALLOW_THREADS sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State); return SIPLong_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_QStringMatcher, sipName_indexIn, doc_QStringMatcher_0_indexIn); return NULL; }
static PyObject *meth_QAbstractTextDocumentLayout_pageCount(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; PyObject *sipOrigSelf = sipSelf; { const ::QAbstractTextDocumentLayout *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp)) { int sipRes; if (!sipOrigSelf) { sipAbstractMethod(sipName_QAbstractTextDocumentLayout, sipName_pageCount); return NULL; } Py_BEGIN_ALLOW_THREADS sipRes = sipCpp->pageCount(); Py_END_ALLOW_THREADS return SIPLong_FromLong(sipRes); } }
static PyObject *meth_QAbstractTextDocumentLayout_hitTest(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; PyObject *sipOrigSelf = sipSelf; { const ::QPointF* a0; int a0State = 0; ::Qt::HitTestAccuracy a1; const ::QAbstractTextDocumentLayout *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "BJ1E", &sipSelf, sipType_QAbstractTextDocumentLayout, &sipCpp, sipType_QPointF, &a0, &a0State, sipType_Qt_HitTestAccuracy, &a1)) { int sipRes; if (!sipOrigSelf) { sipAbstractMethod(sipName_QAbstractTextDocumentLayout, sipName_hitTest); return NULL; } Py_BEGIN_ALLOW_THREADS sipRes = sipCpp->hitTest(*a0,a1); Py_END_ALLOW_THREADS sipReleaseType(const_cast< ::QPointF *>(a0),sipType_QPointF,a0State); return SIPLong_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_QAbstractTextDocumentLayout, sipName_hitTest, doc_QAbstractTextDocumentLayout_hitTest); return NULL; }
static PyObject *meth_QFontMetrics_width(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds) { PyObject *sipParseErr = NULL; { const QString* a0; int a0State = 0; int a1 = -1; const QFontMetrics *sipCpp; static const char *sipKwdList[] = { NULL, sipName_length, }; if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, NULL, "BJ1|i", &sipSelf, sipType_QFontMetrics, &sipCpp, sipType_QString,&a0, &a0State, &a1)) { int sipRes; sipRes = sipCpp->width(*a0,a1); sipReleaseType(const_cast<QString *>(a0),sipType_QString,a0State); return SIPLong_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_width, doc_QFontMetrics_width); return NULL; }
static PyObject *meth_QFontMetrics_widthChar(PyObject *sipSelf, PyObject *sipArgs) { PyObject *sipParseErr = NULL; { QChar* a0; int a0State = 0; const QFontMetrics *sipCpp; if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QFontMetrics, &sipCpp, sipType_QChar,&a0, &a0State)) { int sipRes; sipRes = sipCpp->width(*a0); sipReleaseType(a0,sipType_QChar,a0State); return SIPLong_FromLong(sipRes); } } /* Raise an exception if the arguments couldn't be parsed. */ sipNoMethod(sipParseErr, sipName_QFontMetrics, sipName_widthChar, doc_QFontMetrics_widthChar); return NULL; }
static PyObject *varget_QStyleOptionGroupBox_midLineWidth(void *sipSelf, PyObject *, PyObject *) { int sipVal; QStyleOptionGroupBox *sipCpp = reinterpret_cast<QStyleOptionGroupBox *>(sipSelf); sipVal = sipCpp->midLineWidth; return SIPLong_FromLong(sipVal); }
static PyObject *varget_Defect_q(void *sipSelf, PyObject *) { int sipVal; Defect *sipCpp = reinterpret_cast<Defect *>(sipSelf); sipVal = sipCpp->q; return SIPLong_FromLong(sipVal); }
static PyObject *varget_QAbstractEventDispatcher_TimerInfo_interval(void *sipSelf, PyObject *, PyObject *) { int sipVal; QAbstractEventDispatcher::TimerInfo *sipCpp = reinterpret_cast<QAbstractEventDispatcher::TimerInfo *>(sipSelf); sipVal = sipCpp->interval; return SIPLong_FromLong(sipVal); }