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

#include "sipAPI_aui.h"

        #include <wx/aui/framemanager.h>



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

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

    Py_END_ALLOW_THREADS
}


extern "C" {static void assign_wxAuiPaneButton(void *, SIP_SSIZE_T, void *);}
static void assign_wxAuiPaneButton(void *sipDst, SIP_SSIZE_T sipDstIdx, void *sipSrc)
{
    reinterpret_cast< ::wxAuiPaneButton *>(sipDst)[sipDstIdx] = *reinterpret_cast< ::wxAuiPaneButton *>(sipSrc);
}


extern "C" {static void *array_wxAuiPaneButton(SIP_SSIZE_T);}
static void *array_wxAuiPaneButton(SIP_SSIZE_T sipNrElem)
{
    return new  ::wxAuiPaneButton[sipNrElem];
}


extern "C" {static void *copy_wxAuiPaneButton(const void *, SIP_SSIZE_T);}
static void *copy_wxAuiPaneButton(const void *sipSrc, SIP_SSIZE_T sipSrcIdx)
{
    return new  ::wxAuiPaneButton(reinterpret_cast<const  ::wxAuiPaneButton *>(sipSrc)[sipSrcIdx]);
}


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


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

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::wxAuiPaneButton();
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    {
        const  ::wxAuiPaneButton* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_wxAuiPaneButton, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            sipCpp = new  ::wxAuiPaneButton(*a0);
            Py_END_ALLOW_THREADS

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


extern "C" {static PyObject *varget_wxAuiPaneButton_button_id(void *, PyObject *, PyObject *);}
static PyObject *varget_wxAuiPaneButton_button_id(void *sipSelf, PyObject *, PyObject *)
{
    int sipVal;
     ::wxAuiPaneButton *sipCpp = reinterpret_cast< ::wxAuiPaneButton *>(sipSelf);

    sipVal = sipCpp->button_id;

    return SIPLong_FromLong(sipVal);
}


extern "C" {static int varset_wxAuiPaneButton_button_id(void *, PyObject *, PyObject *);}
static int varset_wxAuiPaneButton_button_id(void *sipSelf, PyObject *sipPy, PyObject *)
{
    int sipVal;
     ::wxAuiPaneButton *sipCpp = reinterpret_cast< ::wxAuiPaneButton *>(sipSelf);

    sipVal = sipLong_AsInt(sipPy);

    if (PyErr_Occurred() != SIP_NULLPTR)
        return -1;

    sipCpp->button_id = sipVal;

    return 0;
}

sipVariableDef variables_wxAuiPaneButton[] = {
    {InstanceVariable, sipName_button_id, (PyMethodDef *)varget_wxAuiPaneButton_button_id, (PyMethodDef *)varset_wxAuiPaneButton_button_id, SIP_NULLPTR, SIP_NULLPTR},
};

PyDoc_STRVAR(doc_wxAuiPaneButton, "");


sipClassTypeDef sipTypeDef__aui_wxAuiPaneButton = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_CLASS,
        sipNameNr_wxAuiPaneButton,
        {SIP_NULLPTR},
        SIP_NULLPTR
    },
    {
        sipNameNr_AuiPaneButton,
        {0, 0, 1},
        0, SIP_NULLPTR,
        0, SIP_NULLPTR,
        1, variables_wxAuiPaneButton,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_wxAuiPaneButton,
    -1,
    -1,
    SIP_NULLPTR,
    SIP_NULLPTR,
    init_type_wxAuiPaneButton,
    SIP_NULLPTR,
    SIP_NULLPTR,
#if PY_MAJOR_VERSION >= 3
    SIP_NULLPTR,
    SIP_NULLPTR,
#else
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
#endif
    dealloc_wxAuiPaneButton,
    assign_wxAuiPaneButton,
    array_wxAuiPaneButton,
    copy_wxAuiPaneButton,
    release_wxAuiPaneButton,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR
};
