当前位置: 首页>>代码示例>>C++>>正文


C++ sipGetCppPtr函数代码示例

本文整理汇总了C++中sipGetCppPtr函数的典型用法代码示例。如果您正苦于以下问题:C++ sipGetCppPtr函数的具体用法?C++ sipGetCppPtr怎么用?C++ sipGetCppPtr使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了sipGetCppPtr函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: PyBool_FromLong

static PyObject *slot_QTextItem_RenderFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QTextItem::RenderFlags *sipCpp = reinterpret_cast< ::QTextItem::RenderFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextItem_RenderFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const  ::QTextItem::RenderFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTextItem_RenderFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 372 "sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QTextItem::RenderFlags::Int() != a0->operator QTextItem::RenderFlags::Int());
#else
        sipRes = (sipCpp->operator int() != a0->operator int());
#endif
#line 89 "/home/thais/Faculdade/TCC/NEW/PyQt4_gpl_x11-4.12/QtGui/sipQtGuiQTextItemRenderFlags.cpp"
            sipReleaseType(const_cast< ::QTextItem::RenderFlags *>(a0),sipType_QTextItem_RenderFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtGui, ne_slot, sipType_QTextItem_RenderFlags, sipSelf, sipArg);
}
开发者ID:thaisdb,项目名称:TCC,代码行数:37,代码来源:sipQtGuiQTextItemRenderFlags.cpp

示例2: sipConvertFromNewType

static PyObject *slot_QPageSetupDialog_PageSetupDialogOptions___invert__(PyObject *sipSelf)
{
    QPageSetupDialog::PageSetupDialogOptions *sipCpp = reinterpret_cast<QPageSetupDialog::PageSetupDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPageSetupDialog_PageSetupDialogOptions));

    if (!sipCpp)
        return 0;


    {
        {
            QPageSetupDialog::PageSetupDialogOptions*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QPageSetupDialog::PageSetupDialogOptions(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QPageSetupDialog_PageSetupDialogOptions,NULL);
        }
    }

    return 0;
}
开发者ID:PLJV,项目名称:commodity_crop_dev_suitability_model,代码行数:22,代码来源:sipQtGuiQPageSetupDialogPageSetupDialogOptions.cpp

示例3: slot_QPageSetupDialog_PageSetupDialogOptions___bool__

static int slot_QPageSetupDialog_PageSetupDialogOptions___bool__(PyObject *sipSelf)
{
    QPageSetupDialog::PageSetupDialogOptions *sipCpp = reinterpret_cast<QPageSetupDialog::PageSetupDialogOptions *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPageSetupDialog_PageSetupDialogOptions));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QPageSetupDialog::PageSetupDialogOptions::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 60 "/Users/ktaylora/PLJV/tillage_likelihood_model/gui/PyQt4/QtGui/sipQtGuiQPageSetupDialogPageSetupDialogOptions.cpp"

            return sipRes;
        }
    }

    return 0;
}
开发者ID:PLJV,项目名称:commodity_crop_dev_suitability_model,代码行数:26,代码来源:sipQtGuiQPageSetupDialogPageSetupDialogOptions.cpp

示例4: Py_INCREF

static PyObject *slot_QDirIterator_IteratorFlags___ior__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QDirIterator_IteratorFlags)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QDirIterator::IteratorFlags *sipCpp = reinterpret_cast<QDirIterator::IteratorFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDirIterator_IteratorFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        QDirIterator::IteratorFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QDirIterator_IteratorFlags, &a0, &a0State))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp->QDirIterator::IteratorFlags::operator|=(*a0);
            Py_END_ALLOW_THREADS
            sipReleaseType(a0,sipType_QDirIterator_IteratorFlags,a0State);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}
开发者ID:chintaro1981,项目名称:android-python27,代码行数:41,代码来源:sipQtCoreQDirIteratorIteratorFlags.cpp

示例5: PyBool_FromLong

static PyObject *slot_QDirIterator_IteratorFlags___ne__(PyObject *sipSelf,PyObject *sipArg)
{
    QDirIterator::IteratorFlags *sipCpp = reinterpret_cast<QDirIterator::IteratorFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDirIterator_IteratorFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QDirIterator::IteratorFlags * a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QDirIterator_IteratorFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 331 "/home/tsheasha/GUC/Bachelors/android-python27/python-build/PyQt-x11-gpl-4.8/sip/QtCore/qglobal.sip"
            sipRes = (sipCpp->operator int() != a0->operator int());
#line 89 "sipQtCoreQDirIteratorIteratorFlags.cpp"
            sipReleaseType(const_cast<QDirIterator::IteratorFlags *>(a0),sipType_QDirIterator_IteratorFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtCore,ne_slot,sipType_QDirIterator_IteratorFlags,sipSelf,sipArg);
}
开发者ID:chintaro1981,项目名称:android-python27,代码行数:33,代码来源:sipQtCoreQDirIteratorIteratorFlags.cpp

示例6: Py_INCREF

static PyObject *slot_QOpenGLDebugMessage_Types___iand__(PyObject *sipSelf,PyObject *sipArg)
{
    if (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QOpenGLDebugMessage_Types)))
    {
        Py_INCREF(Py_NotImplemented);
        return Py_NotImplemented;
    }

    QOpenGLDebugMessage::Types *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Types *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Types));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
            sipCpp->QOpenGLDebugMessage::Types::operator&=(a0);

            Py_INCREF(sipSelf);
            return sipSelf;
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    PyErr_Clear();

    Py_INCREF(Py_NotImplemented);
    return Py_NotImplemented;
}
开发者ID:rff255,项目名称:python-qt5,代码行数:37,代码来源:sipQtGuiQOpenGLDebugMessageTypes.cpp

示例7: sipConvertFromNewType

static PyObject *slot_QDirIterator_IteratorFlags___invert__(PyObject *sipSelf)
{
    QDirIterator::IteratorFlags *sipCpp = reinterpret_cast<QDirIterator::IteratorFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QDirIterator_IteratorFlags));

    if (!sipCpp)
        return 0;


    {
        {
            QDirIterator::IteratorFlags *sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QDirIterator::IteratorFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QDirIterator_IteratorFlags,NULL);
        }
    }
}
开发者ID:chintaro1981,项目名称:android-python27,代码行数:20,代码来源:sipQtCoreQDirIteratorIteratorFlags.cpp

示例8: SIPLong_FromLong

static PyObject *slot_QPainter_PixmapFragmentHints___int__(PyObject *sipSelf)
{
    QPainter::PixmapFragmentHints *sipCpp = reinterpret_cast<QPainter::PixmapFragmentHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_PixmapFragmentHints));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}
开发者ID:kunwijik,项目名称:Spectroscopy_paper,代码行数:22,代码来源:sipQtGuiQPainterPixmapFragmentHints.cpp

示例9: slot_QPainter_PixmapFragmentHints___bool__

static int slot_QPainter_PixmapFragmentHints___bool__(PyObject *sipSelf)
{
    QPainter::PixmapFragmentHints *sipCpp = reinterpret_cast<QPainter::PixmapFragmentHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_PixmapFragmentHints));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QPainter::PixmapFragmentHints::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 60 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/QtGui/sipQtGuiQPainterPixmapFragmentHints.cpp"

            return sipRes;
        }
    }

    return 0;
}
开发者ID:kunwijik,项目名称:Spectroscopy_paper,代码行数:26,代码来源:sipQtGuiQPainterPixmapFragmentHints.cpp

示例10: slot_QTextCodec_ConversionFlags___bool__

static int slot_QTextCodec_ConversionFlags___bool__(PyObject *sipSelf)
{
    QTextCodec::ConversionFlags *sipCpp = reinterpret_cast<QTextCodec::ConversionFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextCodec_ConversionFlags));

    if (!sipCpp)
        return -1;


    {
        {
            int sipRes = 0;

#line 370 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QTextCodec::ConversionFlags::Int() != 0);
#else
        sipRes = (sipCpp->operator int() != 0);
#endif
#line 60 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/QtCore/sipQtCoreQTextCodecConversionFlags.cpp"

            return sipRes;
        }
    }

    return 0;
}
开发者ID:kunwijik,项目名称:Spectroscopy_paper,代码行数:26,代码来源:sipQtCoreQTextCodecConversionFlags.cpp

示例11: sipConvertFromNewType

static PyObject *slot_QPainter_PixmapFragmentHints___invert__(PyObject *sipSelf)
{
    QPainter::PixmapFragmentHints *sipCpp = reinterpret_cast<QPainter::PixmapFragmentHints *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPainter_PixmapFragmentHints));

    if (!sipCpp)
        return 0;


    {
        {
            QPainter::PixmapFragmentHints*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QPainter::PixmapFragmentHints(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QPainter_PixmapFragmentHints,NULL);
        }
    }

    return 0;
}
开发者ID:kunwijik,项目名称:Spectroscopy_paper,代码行数:22,代码来源:sipQtGuiQPainterPixmapFragmentHints.cpp

示例12: SIPLong_FromLong

static PyObject *slot_QTextCodec_ConversionFlags___int__(PyObject *sipSelf)
{
    QTextCodec::ConversionFlags *sipCpp = reinterpret_cast<QTextCodec::ConversionFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextCodec_ConversionFlags));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = *sipCpp;
            Py_END_ALLOW_THREADS

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}
开发者ID:kunwijik,项目名称:Spectroscopy_paper,代码行数:22,代码来源:sipQtCoreQTextCodecConversionFlags.cpp

示例13: sipConvertFromNewType

static PyObject *slot_QTextCodec_ConversionFlags___invert__(PyObject *sipSelf)
{
    QTextCodec::ConversionFlags *sipCpp = reinterpret_cast<QTextCodec::ConversionFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextCodec_ConversionFlags));

    if (!sipCpp)
        return 0;


    {
        {
            QTextCodec::ConversionFlags*sipRes;

            Py_BEGIN_ALLOW_THREADS
            sipRes = new QTextCodec::ConversionFlags(~(*sipCpp));
            Py_END_ALLOW_THREADS

            return sipConvertFromNewType(sipRes,sipType_QTextCodec_ConversionFlags,NULL);
        }
    }

    return 0;
}
开发者ID:kunwijik,项目名称:Spectroscopy_paper,代码行数:22,代码来源:sipQtCoreQTextCodecConversionFlags.cpp

示例14: PyBool_FromLong

static PyObject *slot_QTextCodec_ConversionFlags___eq__(PyObject *sipSelf,PyObject *sipArg)
{
    QTextCodec::ConversionFlags *sipCpp = reinterpret_cast<QTextCodec::ConversionFlags *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QTextCodec_ConversionFlags));

    if (!sipCpp)
        return 0;

    PyObject *sipParseErr = NULL;

    {
        const QTextCodec::ConversionFlags* a0;
        int a0State = 0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J1", sipType_QTextCodec_ConversionFlags, &a0, &a0State))
        {
            bool sipRes = 0;

#line 352 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/sip/QtCore/qglobal.sip"
#if QT_VERSION >= 0x050000
        sipRes = (sipCpp->operator QTextCodec::ConversionFlags::Int() == a0->operator QTextCodec::ConversionFlags::Int());
#else
        sipRes = (sipCpp->operator int() == a0->operator int());
#endif
#line 134 "/Users/Kunwiji/Dropbox/Spectroscopy_paper/PyQt-mac-gpl-4.11.2/QtCore/sipQtCoreQTextCodecConversionFlags.cpp"
            sipReleaseType(const_cast<QTextCodec::ConversionFlags *>(a0),sipType_QTextCodec_ConversionFlags,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return NULL;

    return sipPySlotExtend(&sipModuleAPI_QtCore,eq_slot,sipType_QTextCodec_ConversionFlags,sipSelf,sipArg);
}
开发者ID:kunwijik,项目名称:Spectroscopy_paper,代码行数:37,代码来源:sipQtCoreQTextCodecConversionFlags.cpp

示例15: SIPLong_FromLong

static PyObject *slot_QOpenGLDebugMessage_Types___int__(PyObject *sipSelf)
{
    QOpenGLDebugMessage::Types *sipCpp = reinterpret_cast<QOpenGLDebugMessage::Types *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QOpenGLDebugMessage_Types));

    if (!sipCpp)
        return 0;


    {
        {
            int sipRes;

            sipRes = *sipCpp;

            return SIPLong_FromLong(sipRes);
        }
    }

    return 0;
}
开发者ID:rff255,项目名称:python-qt5,代码行数:20,代码来源:sipQtGuiQOpenGLDebugMessageTypes.cpp


注:本文中的sipGetCppPtr函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。