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

#include "sipAPI_core.h"




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


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


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


/* Call the mapped type's destructor. */
extern "C" {static void release_wxMessageDialogButtonLabel(void *, int);}
static void release_wxMessageDialogButtonLabel(void *ptr, int)
{
    Py_BEGIN_ALLOW_THREADS
    delete reinterpret_cast< ::wxMessageDialogButtonLabel *>(ptr);
    Py_END_ALLOW_THREADS
}



extern "C" {static int convertTo_wxMessageDialogButtonLabel(PyObject *, void **, int *, PyObject *);}
static int convertTo_wxMessageDialogButtonLabel(PyObject *sipPy,void **sipCppPtrV,int *sipIsErr,PyObject *sipTransferObj)
{
     ::wxMessageDialogButtonLabel **sipCppPtr = reinterpret_cast< ::wxMessageDialogButtonLabel **>(sipCppPtrV);

        // Code to test a PyObject for compatibility
        if (!sipIsErr) {
            return (PyBytes_Check(sipPy) || PyUnicode_Check(sipPy) || wxPyInt_Check(sipPy));
        }

        // Code to create a new wxMessageDialogButtonLabel from the PyObject
        wxMessageDialogButtonLabel* label;
        if (PyBytes_Check(sipPy))
            label = new wxMessageDialogButtonLabel(PyBytes_AsString(sipPy));
        else if (PyUnicode_Check(sipPy))
            label = new wxMessageDialogButtonLabel(Py2wxString(sipPy));
        else
            label = new wxMessageDialogButtonLabel(wxPyInt_AsLong(sipPy));

        *sipCppPtr = label;
        return sipGetState(sipTransferObj);
}


extern "C" {static PyObject *convertFrom_wxMessageDialogButtonLabel(void *, PyObject *);}
static PyObject *convertFrom_wxMessageDialogButtonLabel(void *sipCppV, PyObject *)
{
    ::wxMessageDialogButtonLabel *sipCpp = reinterpret_cast< ::wxMessageDialogButtonLabel *>(sipCppV);

        Py_INCREF(Py_None); return Py_None;
}


sipMappedTypeDef sipTypeDef__core_wxMessageDialogButtonLabel = {
    {
        -1,
        SIP_NULLPTR,
        0,
        SIP_TYPE_MAPPED,
        sipNameNr_wxMessageDialogButtonLabel,     /* wxMessageDialogButtonLabel */
        {0},
        0
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_wxMessageDialogButtonLabel,
    array_wxMessageDialogButtonLabel,
    copy_wxMessageDialogButtonLabel,
    release_wxMessageDialogButtonLabel,
    convertTo_wxMessageDialogButtonLabel,
    convertFrom_wxMessageDialogButtonLabel
};
