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

#line 332 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 29 "/build/pyqt6/src/PyQt6-6.4.0/build/QtGui/sipQtGuiQHideEvent.cpp"

#line 26 "/build/pyqt6/src/PyQt6-6.4.0/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 33 "/build/pyqt6/src/PyQt6-6.4.0/build/QtGui/sipQtGuiQHideEvent.cpp"


class sipQHideEvent : public  ::QHideEvent
{
public:
    sipQHideEvent();
    virtual ~sipQHideEvent();

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[2];
};

sipQHideEvent::sipQHideEvent():  ::QHideEvent(), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

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

    if (!sipMeth)
    {
         ::QHideEvent::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);
}

 ::QHideEvent* sipQHideEvent::clone() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern  ::QHideEvent* sipVH_QtGui_34(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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


PyDoc_STRVAR(doc_QHideEvent_clone, "clone(self) -> QHideEvent");

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

    {
        const  ::QHideEvent *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QHideEvent, sipName_clone, doc_QHideEvent_clone);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QHideEvent)
        return sipCppV;

    if (targetType == sipType_QEvent)
        return static_cast< ::QEvent *>(sipCpp);

    return SIP_NULLPTR;
}


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


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


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


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

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


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

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
        {
            sipCpp = new sipQHideEvent();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QHideEvent[] = {{9, 0, 1}};


static PyMethodDef methods_QHideEvent[] = {
    {sipName_clone, meth_QHideEvent_clone, METH_VARARGS, doc_QHideEvent_clone}
};

PyDoc_STRVAR(doc_QHideEvent, "\1QHideEvent()");


sipClassTypeDef sipTypeDef_QtGui_QHideEvent = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QHideEvent,
        SIP_NULLPTR,
        SIP_NULLPTR
    },
    {
        sipNameNr_QHideEvent,
        {0, 0, 1},
        1, methods_QHideEvent,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QHideEvent,
    -1,
    -1,
    supers_QHideEvent,
    SIP_NULLPTR,
    init_type_QHideEvent,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QHideEvent,
    SIP_NULLPTR,
    array_QHideEvent,
    SIP_NULLPTR,
    release_QHideEvent,
    cast_QHideEvent,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QHideEvent,
    sizeof ( ::QHideEvent),
};
