/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.6.2
 *
 * Copyright (c) 2022 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt6-DataVisualization.
 * 
 * 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 "sipAPIQtDataVisualization.h"

#line 26 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/sip/QtDataVisualization/q3dlight.sip"
#include <q3dlight.h>
#line 29 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/build/QtDataVisualization/sipQtDataVisualizationQ3DLight.cpp"

#line 28 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qobject.sip"
#include <qobject.h>
#line 33 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/build/QtDataVisualization/sipQtDataVisualizationQ3DLight.cpp"
#line 81 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtGui/qvectornd.sip"
#include <qvectornd.h>
#line 36 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/build/QtDataVisualization/sipQtDataVisualizationQ3DLight.cpp"
#line 26 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/sip/QtDataVisualization/q3dscene.sip"
#include <q3dscene.h>
#line 39 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/build/QtDataVisualization/sipQtDataVisualizationQ3DLight.cpp"
#line 26 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/sip/QtDataVisualization/q3dobject.sip"
#include <q3dobject.h>
#line 42 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/build/QtDataVisualization/sipQtDataVisualizationQ3DLight.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 151 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 47 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/build/QtDataVisualization/sipQtDataVisualizationQ3DLight.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 50 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/build/QtDataVisualization/sipQtDataVisualizationQ3DLight.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 53 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/build/QtDataVisualization/sipQtDataVisualizationQ3DLight.cpp"
#line 245 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 56 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/build/QtDataVisualization/sipQtDataVisualizationQ3DLight.cpp"
#line 232 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 59 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/build/QtDataVisualization/sipQtDataVisualizationQ3DLight.cpp"
#line 24 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qstring.sip"
#include <qstring.h>
#line 62 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/build/QtDataVisualization/sipQtDataVisualizationQ3DLight.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qvariant.sip"
#include <qvariant.h>
#line 65 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/build/QtDataVisualization/sipQtDataVisualizationQ3DLight.cpp"
#line 28 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 68 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/build/QtDataVisualization/sipQtDataVisualizationQ3DLight.cpp"
#line 30 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 71 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/build/QtDataVisualization/sipQtDataVisualizationQ3DLight.cpp"
#line 135 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 74 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/build/QtDataVisualization/sipQtDataVisualizationQ3DLight.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 150 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 79 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/build/QtDataVisualization/sipQtDataVisualizationQ3DLight.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qthread.sip"
#include <qthread.h>
#line 82 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/build/QtDataVisualization/sipQtDataVisualizationQ3DLight.cpp"
#line 25 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 85 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/build/QtDataVisualization/sipQtDataVisualizationQ3DLight.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 88 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/build/QtDataVisualization/sipQtDataVisualizationQ3DLight.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 91 "/build/pyqt6-datavisualization/src/PyQt6_DataVisualization-6.3.1/build/QtDataVisualization/sipQtDataVisualizationQ3DLight.cpp"


class sipQ3DLight : public  ::Q3DLight
{
public:
    sipQ3DLight( ::QObject*);
    virtual ~sipQ3DLight();

    int qt_metacall(QMetaObject::Call, int, void **) SIP_OVERRIDE;
    void *qt_metacast(const char *) SIP_OVERRIDE;
    const QMetaObject *metaObject() const SIP_OVERRIDE;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const  ::QMetaMethod&) SIP_OVERRIDE;
    void connectNotify(const  ::QMetaMethod&) SIP_OVERRIDE;
    void customEvent( ::QEvent*) SIP_OVERRIDE;
    void childEvent( ::QChildEvent*) SIP_OVERRIDE;
    void timerEvent( ::QTimerEvent*) SIP_OVERRIDE;
    bool eventFilter( ::QObject*, ::QEvent*) SIP_OVERRIDE;
    bool event( ::QEvent*) SIP_OVERRIDE;
    void copyValuesFrom(const  ::Q3DObject&) SIP_OVERRIDE;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQ3DLight(const sipQ3DLight &);
    sipQ3DLight &operator = (const sipQ3DLight &);

    char sipPyMethods[8];
};

sipQ3DLight::sipQ3DLight( ::QObject*a0):  ::Q3DLight(a0), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQ3DLight::~sipQ3DLight()
{
    sipInstanceDestroyedEx(&sipPySelf);
}

const QMetaObject *sipQ3DLight::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtDataVisualization_qt_metaobject(sipPySelf,sipType_Q3DLight);

    return  ::Q3DLight::metaObject();
}

int sipQ3DLight::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id =  ::Q3DLight::qt_metacall(_c,_id,_a);

    if (_id >= 0)
    {
        SIP_BLOCK_THREADS
        _id = sip_QtDataVisualization_qt_metacall(sipPySelf,sipType_Q3DLight,_c,_id,_a);
        SIP_UNBLOCK_THREADS
    }

    return _id;
}

void *sipQ3DLight::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtDataVisualization_qt_metacast(sipPySelf, sipType_Q3DLight, _clname, &sipCpp) ? sipCpp :  ::Q3DLight::qt_metacast(_clname));
}

void sipQ3DLight::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[0], &sipPySelf, SIP_NULLPTR, sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::Q3DLight::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtDataVisualization_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtDataVisualization_23(sipGILState, sipImportedVirtErrorHandlers_QtDataVisualization_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQ3DLight::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[1], &sipPySelf, SIP_NULLPTR, sipName_connectNotify);

    if (!sipMeth)
    {
         ::Q3DLight::connectNotify(a0);
        return;
    }

    extern void sipVH_QtDataVisualization_23(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_QtDataVisualization_23(sipGILState, sipImportedVirtErrorHandlers_QtDataVisualization_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQ3DLight::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[2], &sipPySelf, SIP_NULLPTR, sipName_customEvent);

    if (!sipMeth)
    {
         ::Q3DLight::customEvent(a0);
        return;
    }

    extern void sipVH_QtDataVisualization_22(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_QtDataVisualization_22(sipGILState, sipImportedVirtErrorHandlers_QtDataVisualization_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQ3DLight::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[3], &sipPySelf, SIP_NULLPTR, sipName_childEvent);

    if (!sipMeth)
    {
         ::Q3DLight::childEvent(a0);
        return;
    }

    extern void sipVH_QtDataVisualization_21(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_QtDataVisualization_21(sipGILState, sipImportedVirtErrorHandlers_QtDataVisualization_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQ3DLight::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[4], &sipPySelf, SIP_NULLPTR, sipName_timerEvent);

    if (!sipMeth)
    {
         ::Q3DLight::timerEvent(a0);
        return;
    }

    extern void sipVH_QtDataVisualization_20(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_QtDataVisualization_20(sipGILState, sipImportedVirtErrorHandlers_QtDataVisualization_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQ3DLight::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[5], &sipPySelf, SIP_NULLPTR, sipName_eventFilter);

    if (!sipMeth)
        return  ::Q3DLight::eventFilter(a0,a1);

    extern bool sipVH_QtDataVisualization_19(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_QtDataVisualization_19(sipGILState, sipImportedVirtErrorHandlers_QtDataVisualization_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

bool sipQ3DLight::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[6], &sipPySelf, SIP_NULLPTR, sipName_event);

    if (!sipMeth)
        return  ::Q3DLight::event(a0);

    extern bool sipVH_QtDataVisualization_18(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_QtDataVisualization_18(sipGILState, sipImportedVirtErrorHandlers_QtDataVisualization_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQ3DLight::copyValuesFrom(const  ::Q3DObject& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[7], &sipPySelf, SIP_NULLPTR, sipName_copyValuesFrom);

    if (!sipMeth)
    {
         ::Q3DLight::copyValuesFrom(a0);
        return;
    }

    extern void sipVH_QtDataVisualization_25(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::Q3DObject&);

    sipVH_QtDataVisualization_25(sipGILState, sipImportedVirtErrorHandlers_QtDataVisualization_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}


PyDoc_STRVAR(doc_Q3DLight_setAutoPosition, "setAutoPosition(self, bool)");

extern "C" {static PyObject *meth_Q3DLight_setAutoPosition(PyObject *, PyObject *);}
static PyObject *meth_Q3DLight_setAutoPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
        bool a0;
         ::Q3DLight *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_Q3DLight, &sipCpp, &a0))
        {
            sipCpp->setAutoPosition(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_Q3DLight, sipName_setAutoPosition, doc_Q3DLight_setAutoPosition);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_Q3DLight_isAutoPosition, "isAutoPosition(self) -> bool");

extern "C" {static PyObject *meth_Q3DLight_isAutoPosition(PyObject *, PyObject *);}
static PyObject *meth_Q3DLight_isAutoPosition(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::Q3DLight *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_Q3DLight, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isAutoPosition();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_Q3DLight, sipName_isAutoPosition, doc_Q3DLight_isAutoPosition);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_Q3DLight)
        return sipCppV;

    sipCppV = ((const sipClassTypeDef *)sipType_Q3DObject)->ctd_cast(static_cast< ::Q3DObject *>(sipCpp), targetType);
    if (sipCppV)
        return sipCppV;

    return SIP_NULLPTR;
}


/* Call the instance's destructor. */
extern "C" {static void release_Q3DLight(void *, int);}
static void release_Q3DLight(void *sipCppV, int)
{
     ::Q3DLight *sipCpp = reinterpret_cast< ::Q3DLight *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void *array_Q3DLight(Py_ssize_t);}
static void *array_Q3DLight(Py_ssize_t sipNrElem)
{
    return new  ::Q3DLight[sipNrElem];
}


extern "C" {static void array_delete_Q3DLight(void *);}
static void array_delete_Q3DLight(void *sipCpp)
{
    delete[] reinterpret_cast< ::Q3DLight *>(sipCpp);
}


extern "C" {static void dealloc_Q3DLight(sipSimpleWrapper *);}
static void dealloc_Q3DLight(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQ3DLight *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_Q3DLight(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_Q3DLight(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_Q3DLight(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQ3DLight *sipCpp = SIP_NULLPTR;

    {
         ::QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQ3DLight(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


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


static PyMethodDef methods_Q3DLight[] = {
    {sipName_isAutoPosition, meth_Q3DLight_isAutoPosition, METH_VARARGS, doc_Q3DLight_isAutoPosition},
    {sipName_setAutoPosition, meth_Q3DLight_setAutoPosition, METH_VARARGS, doc_Q3DLight_setAutoPosition}
};

PyDoc_STRVAR(doc_Q3DLight, "\1Q3DLight(parent: QObject = None)");


/* Define this type's signals. */
static const pyqt6QtSignal signals_Q3DLight[] = {
    {"autoPositionChanged(bool)", "\1autoPositionChanged(self, bool)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt6ClassPluginDef plugin_Q3DLight = {
    & ::Q3DLight::staticMetaObject,
    signals_Q3DLight,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtDataVisualization_Q3DLight = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_Q3DLight,
        SIP_NULLPTR,
        &plugin_Q3DLight
    },
    {
        sipNameNr_Q3DLight,
        {0, 0, 1},
        2, methods_Q3DLight,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_Q3DLight,
    -1,
    -1,
    supers_Q3DLight,
    SIP_NULLPTR,
    init_type_Q3DLight,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_Q3DLight,
    SIP_NULLPTR,
    array_Q3DLight,
    SIP_NULLPTR,
    release_Q3DLight,
    cast_Q3DLight,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_Q3DLight,
    sizeof ( ::Q3DLight),
};
