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

#line 180 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtWidgets/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 29 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQGraphicsSceneHelpEvent.cpp"

#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 33 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQGraphicsSceneHelpEvent.cpp"
#line 91 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 36 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQGraphicsSceneHelpEvent.cpp"
#line 28 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtWidgets/qwidget.sip"
#include <qwidget.h>
#line 39 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQGraphicsSceneHelpEvent.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 42 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQGraphicsSceneHelpEvent.cpp"


PyDoc_STRVAR(doc_QGraphicsSceneHelpEvent_scenePos, "scenePos(self) -> QPointF");

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

    {
        const  ::QGraphicsSceneHelpEvent *sipCpp;

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

            sipRes = new  ::QPointF(sipCpp->scenePos());

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

    sipNoMethod(sipParseErr, sipName_QGraphicsSceneHelpEvent, sipName_scenePos, doc_QGraphicsSceneHelpEvent_scenePos);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGraphicsSceneHelpEvent_screenPos, "screenPos(self) -> QPoint");

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

    {
        const  ::QGraphicsSceneHelpEvent *sipCpp;

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

            sipRes = new  ::QPoint(sipCpp->screenPos());

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

    sipNoMethod(sipParseErr, sipName_QGraphicsSceneHelpEvent, sipName_screenPos, doc_QGraphicsSceneHelpEvent_screenPos);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QGraphicsSceneHelpEvent)
        return sipCppV;

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

    return SIP_NULLPTR;
}


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


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


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


static PyMethodDef methods_QGraphicsSceneHelpEvent[] = {
    {sipName_scenePos, meth_QGraphicsSceneHelpEvent_scenePos, METH_VARARGS, doc_QGraphicsSceneHelpEvent_scenePos},
    {sipName_screenPos, meth_QGraphicsSceneHelpEvent_screenPos, METH_VARARGS, doc_QGraphicsSceneHelpEvent_screenPos}
};


sipClassTypeDef sipTypeDef_QtWidgets_QGraphicsSceneHelpEvent = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QGraphicsSceneHelpEvent,
        SIP_NULLPTR,
        SIP_NULLPTR
    },
    {
        sipNameNr_QGraphicsSceneHelpEvent,
        {0, 0, 1},
        2, methods_QGraphicsSceneHelpEvent,
        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_QGraphicsSceneHelpEvent,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QGraphicsSceneHelpEvent,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QGraphicsSceneHelpEvent,
    cast_QGraphicsSceneHelpEvent,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
