/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.15.3
 *
 * Copyright (c) 2024 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt5.
 * 
 * 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 "sipAPIQtQuick.h"

#line 251 "/build/pyqt5/src/PyQt5-5.15.11/sip/QtQuick/qsgnode.sip"
#include <qsgnode.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.11/build/QtQuick/sipQtQuickQSGBasicGeometryNode.cpp"

#line 26 "/build/pyqt5/src/PyQt5-5.15.11/sip/QtQuick/qsggeometry.sip"
#include <qsggeometry.h>
#line 33 "/build/pyqt5/src/PyQt5-5.15.11/build/QtQuick/sipQtQuickQSGBasicGeometryNode.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.11/sip/QtQuick/qsgnode.sip"
#include <qsgnode.h>
#line 36 "/build/pyqt5/src/PyQt5-5.15.11/build/QtQuick/sipQtQuickQSGBasicGeometryNode.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.11/sip/QtQuick/qsgnode.sip"
#include <qsgnode.h>
#line 39 "/build/pyqt5/src/PyQt5-5.15.11/build/QtQuick/sipQtQuickQSGBasicGeometryNode.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.11/sip/QtQuick/qsgnode.sip"
#include <qsgnode.h>
#line 42 "/build/pyqt5/src/PyQt5-5.15.11/build/QtQuick/sipQtQuickQSGBasicGeometryNode.cpp"


PyDoc_STRVAR(doc_QSGBasicGeometryNode_setGeometry, "setGeometry(self, geometry: QSGGeometry|None)");

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

    {
        ::QSGGeometry* a0;
        PyObject *a0Wrapper;
        ::QSGBasicGeometryNode *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B@J8", &sipSelf, sipType_QSGBasicGeometryNode, &sipCpp, &a0Wrapper, sipType_QSGGeometry, &a0))
        {
#line 258 "/build/pyqt5/src/PyQt5-5.15.11/sip/QtQuick/qsgnode.sip"
        sipCpp->setGeometry(a0);
        
        if (sipCpp->flags() & QSGNode::OwnsGeometry)
            sipTransferTo(a0Wrapper, sipSelf);
#line 64 "/build/pyqt5/src/PyQt5-5.15.11/build/QtQuick/sipQtQuickQSGBasicGeometryNode.cpp"

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QSGBasicGeometryNode, sipName_setGeometry, doc_QSGBasicGeometryNode_setGeometry);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QSGBasicGeometryNode_geometry, "geometry(self) -> QSGGeometry|None");

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

    {
        ::QSGBasicGeometryNode *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QSGBasicGeometryNode, &sipCpp))
        {
            ::QSGGeometry*sipRes;

            sipRes = sipCpp->geometry();

            return sipConvertFromType(sipRes, sipType_QSGGeometry, SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QSGBasicGeometryNode, sipName_geometry, doc_QSGBasicGeometryNode_geometry);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QSGBasicGeometryNode)
        return sipCppV;

    if (targetType == sipType_QSGNode)
        return static_cast< ::QSGNode *>(sipCpp);

    return SIP_NULLPTR;
}


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


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


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


static PyMethodDef methods_QSGBasicGeometryNode[] = {
    {sipName_geometry, meth_QSGBasicGeometryNode_geometry, METH_VARARGS, doc_QSGBasicGeometryNode_geometry},
    {sipName_setGeometry, meth_QSGBasicGeometryNode_setGeometry, METH_VARARGS, doc_QSGBasicGeometryNode_setGeometry}
};


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


sipClassTypeDef sipTypeDef_QtQuick_QSGBasicGeometryNode = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QSGBasicGeometryNode,
        SIP_NULLPTR,
        &plugin_QSGBasicGeometryNode,
    },
    {
        sipNameNr_QSGBasicGeometryNode,
        {0, 0, 1},
        2, methods_QSGBasicGeometryNode,
        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_QSGBasicGeometryNode,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QSGBasicGeometryNode,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QSGBasicGeometryNode,
    cast_QSGBasicGeometryNode,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
