/*
 * 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 "sipAPIQtGui.h"

#line 736 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 29 "/build/pyqt6/src/PyQt6-6.3.1/build/QtGui/sipQtGuiQHoverEvent.cpp"

#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 33 "/build/pyqt6/src/PyQt6-6.3.1/build/QtGui/sipQtGuiQHoverEvent.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/QtGui/sipQtGuiQHoverEvent.cpp"
#line 25 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qflags.sip"
#include <qglobal.h>
#line 39 "/build/pyqt6/src/PyQt6-6.3.1/build/QtGui/sipQtGuiQHoverEvent.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 150 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 44 "/build/pyqt6/src/PyQt6-6.3.1/build/QtGui/sipQtGuiQHoverEvent.cpp"
#line 46 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtGui/qpointingdevice.sip"
#include <qpointingdevice.h>
#line 47 "/build/pyqt6/src/PyQt6-6.3.1/build/QtGui/sipQtGuiQHoverEvent.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qpoint.sip"
#include <qpoint.h>
#line 50 "/build/pyqt6/src/PyQt6-6.3.1/build/QtGui/sipQtGuiQHoverEvent.cpp"
#line 28 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 53 "/build/pyqt6/src/PyQt6-6.3.1/build/QtGui/sipQtGuiQHoverEvent.cpp"
#line 25 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qflags.sip"
#include <qglobal.h>
#line 56 "/build/pyqt6/src/PyQt6-6.3.1/build/QtGui/sipQtGuiQHoverEvent.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtGui/qeventpoint.sip"
#include <qeventpoint.h>
#line 59 "/build/pyqt6/src/PyQt6-6.3.1/build/QtGui/sipQtGuiQHoverEvent.cpp"
#line 28 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 62 "/build/pyqt6/src/PyQt6-6.3.1/build/QtGui/sipQtGuiQHoverEvent.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtGui/qinputdevice.sip"
#include <qinputdevice.h>
#line 65 "/build/pyqt6/src/PyQt6-6.3.1/build/QtGui/sipQtGuiQHoverEvent.cpp"


class sipQHoverEvent : public  ::QHoverEvent
{
public:
    sipQHoverEvent( ::QEvent::Type,const  ::QPointF&,const  ::QPointF&,const  ::QPointF&, ::Qt::KeyboardModifiers,const  ::QPointingDevice*);
    sipQHoverEvent( ::QEvent::Type,const  ::QPointF&,const  ::QPointF&, ::Qt::KeyboardModifiers,const  ::QPointingDevice*);
    virtual ~sipQHoverEvent();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    bool isEndEvent() const SIP_OVERRIDE;
    bool isUpdateEvent() const SIP_OVERRIDE;
    bool isBeginEvent() const SIP_OVERRIDE;
     ::QHoverEvent* clone() const SIP_OVERRIDE;
    void setAccepted(bool) SIP_OVERRIDE;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[5];
};

sipQHoverEvent::sipQHoverEvent( ::QEvent::Type a0,const  ::QPointF& a1,const  ::QPointF& a2,const  ::QPointF& a3, ::Qt::KeyboardModifiers a4,const  ::QPointingDevice*a5):  ::QHoverEvent(a0,a1,a2,a3,a4,a5), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQHoverEvent::sipQHoverEvent( ::QEvent::Type a0,const  ::QPointF& a1,const  ::QPointF& a2, ::Qt::KeyboardModifiers a3,const  ::QPointingDevice*a4):  ::QHoverEvent(a0,a1,a2,a3,a4), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

bool sipQHoverEvent::isEndEvent() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[0]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_isEndEvent);

    if (!sipMeth)
        return  ::QHoverEvent::isEndEvent();

    extern bool sipVH_QtGui_49(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_49(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

bool sipQHoverEvent::isUpdateEvent() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[1]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_isUpdateEvent);

    if (!sipMeth)
        return  ::QHoverEvent::isUpdateEvent();

    extern bool sipVH_QtGui_49(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_49(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

bool sipQHoverEvent::isBeginEvent() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[2]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_isBeginEvent);

    if (!sipMeth)
        return  ::QHoverEvent::isBeginEvent();

    extern bool sipVH_QtGui_49(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_49(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

 ::QHoverEvent* sipQHoverEvent::clone() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[3]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_clone);

    if (!sipMeth)
        return  ::QHoverEvent::clone();

    extern  ::QHoverEvent* sipVH_QtGui_53(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtGui_53(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

void sipQHoverEvent::setAccepted(bool a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QHoverEvent::setAccepted(a0);
        return;
    }

    extern void sipVH_QtGui_25(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, bool);

    sipVH_QtGui_25(sipGILState, sipImportedVirtErrorHandlers_QtGui_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}


PyDoc_STRVAR(doc_QHoverEvent_isUpdateEvent, "isUpdateEvent(self) -> bool");

extern "C" {static PyObject *meth_QHoverEvent_isUpdateEvent(PyObject *, PyObject *);}
static PyObject *meth_QHoverEvent_isUpdateEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QHoverEvent)) || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QHoverEvent *sipCpp;

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

            sipRes = (sipSelfWasArg ? sipCpp-> ::QHoverEvent::isUpdateEvent() : sipCpp->isUpdateEvent());

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QHoverEvent, sipName_isUpdateEvent, doc_QHoverEvent_isUpdateEvent);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QHoverEvent_oldPos, "oldPos(self) -> QPoint");

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

    {
        const  ::QHoverEvent *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QHoverEvent, sipName_oldPos, doc_QHoverEvent_oldPos);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QHoverEvent_oldPosF, "oldPosF(self) -> QPointF");

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

    {
        const  ::QHoverEvent *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QHoverEvent, sipName_oldPosF, doc_QHoverEvent_oldPosF);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QHoverEvent_clone, "clone(self) -> QHoverEvent");

extern "C" {static PyObject *meth_QHoverEvent_clone(PyObject *, PyObject *);}
static PyObject *meth_QHoverEvent_clone(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QHoverEvent)) || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QHoverEvent *sipCpp;

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

            sipRes = (sipSelfWasArg ? sipCpp-> ::QHoverEvent::clone() : sipCpp->clone());

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

    sipNoMethod(sipParseErr, sipName_QHoverEvent, sipName_clone, doc_QHoverEvent_clone);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QHoverEvent)
        return sipCppV;

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

    return SIP_NULLPTR;
}


/* Call the instance's destructor. */
extern "C" {static void release_QHoverEvent(void *, int);}
static void release_QHoverEvent(void *sipCppV, int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQHoverEvent *>(sipCppV);
    else
        delete reinterpret_cast< ::QHoverEvent *>(sipCppV);
}


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

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


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

    {
         ::QEvent::Type a0;
        const  ::QPointF* a1;
        const  ::QPointF* a2;
        const  ::QPointF* a3;
         ::Qt::KeyboardModifiers a4def = Qt::NoModifier;
         ::Qt::KeyboardModifiers* a4 = &a4def;
        int a4State = 0;
        const  ::QPointingDevice* a5 = QPointingDevice::primaryPointingDevice();

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            SIP_NULLPTR,
            SIP_NULLPTR,
            SIP_NULLPTR,
            sipName_modifiers,
            sipName_device,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "EJ9J9J9|J1J8", sipType_QEvent_Type, &a0, sipType_QPointF, &a1, sipType_QPointF, &a2, sipType_QPointF, &a3, sipType_QFlags_0100Qt_KeyboardModifier, &a4, &a4State, sipType_QPointingDevice, &a5))
        {
            sipCpp = new sipQHoverEvent(a0,*a1,*a2,*a3,*a4,a5);
            sipReleaseType(a4, sipType_QFlags_0100Qt_KeyboardModifier, a4State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
         ::QEvent::Type a0;
        const  ::QPointF* a1;
        const  ::QPointF* a2;
         ::Qt::KeyboardModifiers a3def = Qt::NoModifier;
         ::Qt::KeyboardModifiers* a3 = &a3def;
        int a3State = 0;
        const  ::QPointingDevice* a4 = QPointingDevice::primaryPointingDevice();

        static const char *sipKwdList[] = {
            SIP_NULLPTR,
            SIP_NULLPTR,
            SIP_NULLPTR,
            sipName_modifiers,
            sipName_device,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "EJ9J9|J1J8", sipType_QEvent_Type, &a0, sipType_QPointF, &a1, sipType_QPointF, &a2, sipType_QFlags_0100Qt_KeyboardModifier, &a3, &a3State, sipType_QPointingDevice, &a4))
        {
            sipCpp = new sipQHoverEvent(a0,*a1,*a2,*a3,a4);
            sipReleaseType(a3, sipType_QFlags_0100Qt_KeyboardModifier, a3State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


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


static PyMethodDef methods_QHoverEvent[] = {
    {sipName_clone, meth_QHoverEvent_clone, METH_VARARGS, doc_QHoverEvent_clone},
    {sipName_isUpdateEvent, meth_QHoverEvent_isUpdateEvent, METH_VARARGS, doc_QHoverEvent_isUpdateEvent},
    {sipName_oldPos, meth_QHoverEvent_oldPos, METH_VARARGS, doc_QHoverEvent_oldPos},
    {sipName_oldPosF, meth_QHoverEvent_oldPosF, METH_VARARGS, doc_QHoverEvent_oldPosF}
};

PyDoc_STRVAR(doc_QHoverEvent, "\1QHoverEvent(QEvent.Type, QPointF, QPointF, QPointF, modifiers: Qt.KeyboardModifier = Qt.NoModifier, device: QPointingDevice = QPointingDevice.primaryPointingDevice())\n"
"QHoverEvent(QEvent.Type, QPointF, QPointF, modifiers: Qt.KeyboardModifier = Qt.NoModifier, device: QPointingDevice = QPointingDevice.primaryPointingDevice())");


sipClassTypeDef sipTypeDef_QtGui_QHoverEvent = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QHoverEvent,
        SIP_NULLPTR,
        SIP_NULLPTR
    },
    {
        sipNameNr_QHoverEvent,
        {0, 0, 1},
        4, methods_QHoverEvent,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QHoverEvent,
    -1,
    -1,
    supers_QHoverEvent,
    SIP_NULLPTR,
    init_type_QHoverEvent,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QHoverEvent,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QHoverEvent,
    cast_QHoverEvent,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    sizeof ( ::QHoverEvent),
};
