/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.7.0
 *
 * 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 141 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtWidgets/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 29 "/build/pyqt6/src/PyQt6-6.4.0/build/QtWidgets/sipQtWidgetsQGraphicsSceneContextMenuEvent.cpp"

#line 25 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qflags.sip"
#include <qglobal.h>
#line 33 "/build/pyqt6/src/PyQt6-6.4.0/build/QtWidgets/sipQtWidgetsQGraphicsSceneContextMenuEvent.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 150 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 38 "/build/pyqt6/src/PyQt6-6.4.0/build/QtWidgets/sipQtWidgetsQGraphicsSceneContextMenuEvent.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 41 "/build/pyqt6/src/PyQt6-6.4.0/build/QtWidgets/sipQtWidgetsQGraphicsSceneContextMenuEvent.cpp"
#line 94 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 44 "/build/pyqt6/src/PyQt6-6.4.0/build/QtWidgets/sipQtWidgetsQGraphicsSceneContextMenuEvent.cpp"
#line 28 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtWidgets/qwidget.sip"
#include <qwidget.h>
#line 47 "/build/pyqt6/src/PyQt6-6.4.0/build/QtWidgets/sipQtWidgetsQGraphicsSceneContextMenuEvent.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 50 "/build/pyqt6/src/PyQt6-6.4.0/build/QtWidgets/sipQtWidgetsQGraphicsSceneContextMenuEvent.cpp"


PyDoc_STRVAR(doc_QGraphicsSceneContextMenuEvent_pos, "pos(self) -> QPointF");

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

    {
        const  ::QGraphicsSceneContextMenuEvent *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QGraphicsSceneContextMenuEvent, sipName_pos, doc_QGraphicsSceneContextMenuEvent_pos);

    return SIP_NULLPTR;
}


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

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

    {
        const  ::QGraphicsSceneContextMenuEvent *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QGraphicsSceneContextMenuEvent, sipName_scenePos, doc_QGraphicsSceneContextMenuEvent_scenePos);

    return SIP_NULLPTR;
}


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

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

    {
        const  ::QGraphicsSceneContextMenuEvent *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QGraphicsSceneContextMenuEvent, sipName_screenPos, doc_QGraphicsSceneContextMenuEvent_screenPos);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGraphicsSceneContextMenuEvent_modifiers, "modifiers(self) -> Qt.KeyboardModifier");

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

    {
        const  ::QGraphicsSceneContextMenuEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGraphicsSceneContextMenuEvent, &sipCpp))
        {
             ::Qt::KeyboardModifiers*sipRes;

            sipRes = new  ::Qt::KeyboardModifiers(sipCpp->modifiers());

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

    sipNoMethod(sipParseErr, sipName_QGraphicsSceneContextMenuEvent, sipName_modifiers, doc_QGraphicsSceneContextMenuEvent_modifiers);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGraphicsSceneContextMenuEvent_reason, "reason(self) -> QGraphicsSceneContextMenuEvent.Reason");

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

    {
        const  ::QGraphicsSceneContextMenuEvent *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QGraphicsSceneContextMenuEvent, &sipCpp))
        {
             ::QGraphicsSceneContextMenuEvent::Reason sipRes;

            sipRes = sipCpp->reason();

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_QGraphicsSceneContextMenuEvent_Reason);
        }
    }

    sipNoMethod(sipParseErr, sipName_QGraphicsSceneContextMenuEvent, sipName_reason, doc_QGraphicsSceneContextMenuEvent_reason);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QGraphicsSceneContextMenuEvent)
        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_QGraphicsSceneContextMenuEvent(void *, int);}
static void release_QGraphicsSceneContextMenuEvent(void *sipCppV, int)
{
    delete reinterpret_cast< ::QGraphicsSceneContextMenuEvent *>(sipCppV);
}


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


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


static PyMethodDef methods_QGraphicsSceneContextMenuEvent[] = {
    {sipName_modifiers, meth_QGraphicsSceneContextMenuEvent_modifiers, METH_VARARGS, doc_QGraphicsSceneContextMenuEvent_modifiers},
    {sipName_pos, meth_QGraphicsSceneContextMenuEvent_pos, METH_VARARGS, doc_QGraphicsSceneContextMenuEvent_pos},
    {sipName_reason, meth_QGraphicsSceneContextMenuEvent_reason, METH_VARARGS, doc_QGraphicsSceneContextMenuEvent_reason},
    {sipName_scenePos, meth_QGraphicsSceneContextMenuEvent_scenePos, METH_VARARGS, doc_QGraphicsSceneContextMenuEvent_scenePos},
    {sipName_screenPos, meth_QGraphicsSceneContextMenuEvent_screenPos, METH_VARARGS, doc_QGraphicsSceneContextMenuEvent_screenPos}
};


/* Define the enum members and ints to be added to this type. */
static sipIntInstanceDef intInstances_QGraphicsSceneContextMenuEvent[] = {
    {sipName_Mouse, static_cast<int>( ::QGraphicsSceneContextMenuEvent::Mouse)},
    {sipName_Keyboard, static_cast<int>( ::QGraphicsSceneContextMenuEvent::Keyboard)},
    {sipName_Other, static_cast<int>( ::QGraphicsSceneContextMenuEvent::Other)},
    {0, 0}
};


sipClassTypeDef sipTypeDef_QtWidgets_QGraphicsSceneContextMenuEvent = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QGraphicsSceneContextMenuEvent,
        SIP_NULLPTR,
        SIP_NULLPTR
    },
    {
        sipNameNr_QGraphicsSceneContextMenuEvent,
        {0, 0, 1},
        5, methods_QGraphicsSceneContextMenuEvent,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, intInstances_QGraphicsSceneContextMenuEvent, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    SIP_NULLPTR,
    -1,
    -1,
    supers_QGraphicsSceneContextMenuEvent,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QGraphicsSceneContextMenuEvent,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QGraphicsSceneContextMenuEvent,
    cast_QGraphicsSceneContextMenuEvent,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
