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



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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const ::wxPlatformId* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}

PyDoc_STRVAR(doc_wxPlatformId, "Defines a very broad platform categorization.");


sipClassTypeDef sipTypeDef__core_wxPlatformId = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_CLASS,
        sipNameNr_wxPlatformId,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_PlatformId,
        {0, 0, 1},
        0, SIP_NULLPTR,
        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_wxPlatformId,
    -1,
    -1,
    SIP_NULLPTR,
    SIP_NULLPTR,
    init_type_wxPlatformId,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_wxPlatformId,
    assign_wxPlatformId,
    array_wxPlatformId,
    copy_wxPlatformId,
    release_wxPlatformId,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_wxPlatformId,
    sizeof (::wxPlatformId),
};
