/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.15.1
 *
 *     Copyright: (c) 2020 by Total Control Software
 *     License:   wxWindows License
 */

#include "sipAPI_core.h"
        #include <wx/overlay.h>



PyDoc_STRVAR(doc_wxOverlay_Reset, "Reset() -> None\n"
"\n"
"Clears the overlay without restoring the former state.");

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

    {
        ::wxOverlay *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_wxOverlay, &sipCpp))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipCpp->Reset();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_Overlay, sipName_Reset, SIP_NULLPTR);

    return SIP_NULLPTR;
}


/* Call the instance's destructor. */
extern "C" {static void release_wxOverlay(void *, int);}
static void release_wxOverlay(void *sipCppV, int)
{
    Py_BEGIN_ALLOW_THREADS

    delete reinterpret_cast< ::wxOverlay *>(sipCppV);

    Py_END_ALLOW_THREADS
}


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


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


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


extern "C" {static void *init_type_wxOverlay(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_wxOverlay(sipSimpleWrapper *, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    ::wxOverlay *sipCpp = SIP_NULLPTR;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
        {
            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipCpp = new ::wxOverlay();
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
            {
                delete sipCpp;
                return SIP_NULLPTR;
            }

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


static PyMethodDef methods_wxOverlay[] = {
    {sipName_Reset, meth_wxOverlay_Reset, METH_VARARGS, doc_wxOverlay_Reset}
};

PyDoc_STRVAR(doc_wxOverlay, "Overlay() -> None\n"
"\n"
"Creates an overlay over an existing window, allowing for manipulations\n"
"like rubberbanding, etc.");


sipClassTypeDef sipTypeDef__core_wxOverlay = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_CLASS,
        sipNameNr_wxOverlay,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_Overlay,
        {0, 0, 1},
        1, methods_wxOverlay,
        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_wxOverlay,
    -1,
    -1,
    SIP_NULLPTR,
    SIP_NULLPTR,
    init_type_wxOverlay,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_wxOverlay,
    SIP_NULLPTR,
    array_wxOverlay,
    SIP_NULLPTR,
    release_wxOverlay,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_wxOverlay,
    sizeof (::wxOverlay),
};
