/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.5.0
 *
 * Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt3D.
 * 
 * This file may be used under the terms of the GNU General Public License
 * version 3.0 as published by the Free Software Foundation and appearing in
 * the file LICENSE included in the packaging of this file.  Please review the
 * following information to ensure the GNU General Public License version 3.0
 * requirements will be met: http://www.gnu.org/copyleft/gpl.html.
 * 
 * If you do not wish to use this file under the terms of the GPL version 3.0
 * then you may purchase a commercial license.  For more information contact
 * info@riverbankcomputing.com.
 * 
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */

#include "sipAPIQt3DRender.h"

#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qabstractfunctor.sip"
#include <qabstractfunctor.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qabstractlight.sip"
#include <qabstractlight.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qabstractraycaster.sip"
#include <qabstractraycaster.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qabstracttexture.sip"
#include <qabstracttexture.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qabstracttextureimage.sip"
#include <qabstracttextureimage.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qalphacoverage.sip"
#include <qalphacoverage.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qalphatest.sip"
#include <qalphatest.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qattribute.sip"
#include <qattribute.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qblendequation.sip"
#include <qblendequation.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qblendequationarguments.sip"
#include <qblendequationarguments.h>
#line 28 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qblitframebuffer.sip"
#include <qblitframebuffer.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qbuffer.sip"
#include <qbuffer.h>
#line 26 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qbufferdatagenerator.sip"
#include <qbufferdatagenerator.h>
#line 32 "/build/pyqt5-3d/src/PyQt3D-5.15.5/sip/Qt3DRender/qbufferdatagenerator.sip"
#include <qbufferdatagenerator.h>
#line 55 "/build/pyqt5-3d/src/PyQt3D-5.15.5/build/Qt3DRender/sipQt3DRenderQt3DRenderQBufferDataGenerator.cpp"

#line 30 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 59 "/build/pyqt5-3d/src/PyQt3D-5.15.5/build/Qt3DRender/sipQt3DRenderQt3DRenderQBufferDataGenerator.cpp"
#line 166 "/usr/lib/python3.10/site-packages/PyQt5/bindings/QtCore/qglobal.sip"
#include <QtGlobal>
#line 62 "/build/pyqt5-3d/src/PyQt3D-5.15.5/build/Qt3DRender/sipQt3DRenderQt3DRenderQBufferDataGenerator.cpp"


extern "C" {static PyObject *slot_Qt3DRender_QBufferDataGenerator___ne__(PyObject *,PyObject *);}
static PyObject *slot_Qt3DRender_QBufferDataGenerator___ne__(PyObject *sipSelf,PyObject *sipArg)
{
     ::Qt3DRender::QBufferDataGenerator *sipCpp = reinterpret_cast< ::Qt3DRender::QBufferDataGenerator *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Qt3DRender_QBufferDataGenerator));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::Qt3DRender::QBufferDataGenerator* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Qt3DRender_QBufferDataGenerator, &a0))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QBufferDataGenerator, sipName___ne__);
                return SIP_NULLPTR;
            }

            sipRes = !sipCpp->operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return SIP_NULLPTR;

    return sipPySlotExtend(&sipModuleAPI_Qt3DRender, ne_slot, sipType_Qt3DRender_QBufferDataGenerator, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_Qt3DRender_QBufferDataGenerator___eq__(PyObject *,PyObject *);}
static PyObject *slot_Qt3DRender_QBufferDataGenerator___eq__(PyObject *sipSelf,PyObject *sipArg)
{
     ::Qt3DRender::QBufferDataGenerator *sipCpp = reinterpret_cast< ::Qt3DRender::QBufferDataGenerator *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Qt3DRender_QBufferDataGenerator));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;
    PyObject *sipOrigSelf = sipSelf;

    {
        const  ::Qt3DRender::QBufferDataGenerator* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_Qt3DRender_QBufferDataGenerator, &a0))
        {
            bool sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QBufferDataGenerator, sipName___eq__);
                return SIP_NULLPTR;
            }

            sipRes = sipCpp->operator==(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return SIP_NULLPTR;

    return sipPySlotExtend(&sipModuleAPI_Qt3DRender, eq_slot, sipType_Qt3DRender_QBufferDataGenerator, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_Qt3DRender_QBufferDataGenerator___call__(PyObject *,PyObject *,PyObject *);}
static PyObject *slot_Qt3DRender_QBufferDataGenerator___call__(PyObject *sipSelf,PyObject *sipArgs,PyObject *)
{
     ::Qt3DRender::QBufferDataGenerator *sipCpp = reinterpret_cast< ::Qt3DRender::QBufferDataGenerator *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_Qt3DRender_QBufferDataGenerator));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;
    PyObject *sipOrigSelf = sipSelf;

    {
        if (sipParseArgs(&sipParseErr, sipArgs, ""))
        {
             ::QByteArray*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_QBufferDataGenerator, sipName___call__);
                return SIP_NULLPTR;
            }

            sipRes = new  ::QByteArray((*sipCpp)());

            return sipConvertFromNewType(sipRes,sipType_QByteArray,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QBufferDataGenerator, sipName___call__, SIP_NULLPTR);

    return SIP_NULLPTR;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_Qt3DRender_QBufferDataGenerator(void *, const sipTypeDef *);}
static void *cast_Qt3DRender_QBufferDataGenerator(void *sipCppV, const sipTypeDef *targetType)
{
     ::Qt3DRender::QBufferDataGenerator *sipCpp = reinterpret_cast< ::Qt3DRender::QBufferDataGenerator *>(sipCppV);

    if (targetType == sipType_Qt3DRender_QAbstractFunctor)
        return static_cast< ::Qt3DRender::QAbstractFunctor *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_Qt3DRender_QBufferDataGenerator(void *, int);}
static void release_Qt3DRender_QBufferDataGenerator(void *sipCppV, int)
{
    delete reinterpret_cast< ::Qt3DRender::QBufferDataGenerator *>(sipCppV);
}


extern "C" {static void dealloc_Qt3DRender_QBufferDataGenerator(sipSimpleWrapper *);}
static void dealloc_Qt3DRender_QBufferDataGenerator(sipSimpleWrapper *sipSelf)
{
    if (sipIsOwnedByPython(sipSelf))
    {
        release_Qt3DRender_QBufferDataGenerator(sipGetAddress(sipSelf), 0);
    }
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_Qt3DRender_QBufferDataGenerator[] = {{21, 255, 1}};


/* Define this type's Python slots. */
static sipPySlotDef slots_Qt3DRender_QBufferDataGenerator[] = {
    {(void *)slot_Qt3DRender_QBufferDataGenerator___ne__, ne_slot},
    {(void *)slot_Qt3DRender_QBufferDataGenerator___eq__, eq_slot},
    {(void *)slot_Qt3DRender_QBufferDataGenerator___call__, call_slot},
    {0, (sipPySlotType)0}
};


static pyqt5ClassPluginDef plugin_Qt3DRender_QBufferDataGenerator = {
    SIP_NULLPTR,
    0,
    SIP_NULLPTR,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_Qt3DRender_Qt3DRender_QBufferDataGenerator = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_Qt3DRender__QBufferDataGenerator,
        SIP_NULLPTR,
        &plugin_Qt3DRender_QBufferDataGenerator
    },
    {
        sipNameNr_QBufferDataGenerator,
        {0, 0, 1},
        0, SIP_NULLPTR,
        0, SIP_NULLPTR,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    SIP_NULLPTR,
    -1,
    -1,
    supers_Qt3DRender_QBufferDataGenerator,
    slots_Qt3DRender_QBufferDataGenerator,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_Qt3DRender_QBufferDataGenerator,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_Qt3DRender_QBufferDataGenerator,
    cast_Qt3DRender_QBufferDataGenerator,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR
};
