/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.8.6
 *
 * Copyright (c) 2023 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 "sipAPIQtGui.h"

#line 795 "/usr/src/debug/python3-pyqt5/5.15.10/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 29 "/usr/src/debug/python3-pyqt5/5.15.10/QtGui/sipQtGuiQExposeEvent.cpp"

#line 26 "/usr/src/debug/python3-pyqt5/5.15.10/sip/QtGui/qregion.sip"
#include <qregion.h>
#line 33 "/usr/src/debug/python3-pyqt5/5.15.10/QtGui/sipQtGuiQExposeEvent.cpp"
#line 26 "/usr/src/debug/python3-pyqt5/5.15.10/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 36 "/usr/src/debug/python3-pyqt5/5.15.10/QtGui/sipQtGuiQExposeEvent.cpp"


class sipQExposeEvent : public ::QExposeEvent
{
public:
    sipQExposeEvent(const ::QRegion&);
    sipQExposeEvent(const ::QExposeEvent&);
    ~sipQExposeEvent();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQExposeEvent(const sipQExposeEvent &);
    sipQExposeEvent &operator = (const sipQExposeEvent &);
};

sipQExposeEvent::sipQExposeEvent(const ::QRegion& a0): ::QExposeEvent(a0), sipPySelf(SIP_NULLPTR)
{
}

sipQExposeEvent::sipQExposeEvent(const ::QExposeEvent& a0): ::QExposeEvent(a0), sipPySelf(SIP_NULLPTR)
{
}

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


PyDoc_STRVAR(doc_QExposeEvent_region, "region(self) -> QRegion");

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

    {
        const ::QExposeEvent *sipCpp;

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

            sipRes = new ::QRegion(sipCpp->region());

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

    sipNoMethod(sipParseErr, sipName_QExposeEvent, sipName_region, doc_QExposeEvent_region);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QExposeEvent)
        return sipCppV;

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

    return SIP_NULLPTR;
}


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


extern "C" {static void assign_QExposeEvent(void *, Py_ssize_t, void *);}
static void assign_QExposeEvent(void *sipDst, Py_ssize_t sipDstIdx, void *sipSrc)
{
    reinterpret_cast<::QExposeEvent *>(sipDst)[sipDstIdx] = *reinterpret_cast<::QExposeEvent *>(sipSrc);
}


extern "C" {static void *copy_QExposeEvent(const void *, Py_ssize_t);}
static void *copy_QExposeEvent(const void *sipSrc, Py_ssize_t sipSrcIdx)
{
    return new ::QExposeEvent(reinterpret_cast<const ::QExposeEvent *>(sipSrc)[sipSrcIdx]);
}


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

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


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

    {
        const ::QRegion* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_QRegion, &a0))
        {
            sipCpp = new sipQExposeEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const ::QExposeEvent* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_QExposeEvent, &a0))
        {
            sipCpp = new sipQExposeEvent(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


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


static PyMethodDef methods_QExposeEvent[] = {
    {sipName_region, meth_QExposeEvent_region, METH_VARARGS, doc_QExposeEvent_region}
};

PyDoc_STRVAR(doc_QExposeEvent, "\1QExposeEvent(rgn: QRegion)\n"
"QExposeEvent(a0: QExposeEvent)");


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


sipClassTypeDef sipTypeDef_QtGui_QExposeEvent = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QExposeEvent,
        SIP_NULLPTR,
        &plugin_QExposeEvent,
    },
    {
        sipNameNr_QExposeEvent,
        {0, 0, 1},
        1, methods_QExposeEvent,
        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},
    },
    doc_QExposeEvent,
    -1,
    -1,
    supers_QExposeEvent,
    SIP_NULLPTR,
    init_type_QExposeEvent,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QExposeEvent,
    assign_QExposeEvent,
    SIP_NULLPTR,
    copy_QExposeEvent,
    release_QExposeEvent,
    cast_QExposeEvent,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    sizeof (::QExposeEvent),
};
