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

#include "sipAPI_html.h"
        #include <wx/html/helpdata.h>
        #include <wx/html/helpdata.h>


PyDoc_STRVAR(doc_wxHtmlHelpDataItem_GetFullPath, "GetFullPath() -> String");

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

    {
        const ::wxHtmlHelpDataItem *sipCpp;

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

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = new ::wxString(sipCpp->GetFullPath());
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_HtmlHelpDataItem, sipName_GetFullPath, SIP_NULLPTR);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_wxHtmlHelpDataItem_GetIndentedName, "GetIndentedName() -> String");

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

    {
        const ::wxHtmlHelpDataItem *sipCpp;

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

            PyErr_Clear();

            Py_BEGIN_ALLOW_THREADS
            sipRes = new ::wxString(sipCpp->GetIndentedName());
            Py_END_ALLOW_THREADS

            if (PyErr_Occurred())
                return 0;

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

    sipNoMethod(sipParseErr, sipName_HtmlHelpDataItem, sipName_GetIndentedName, SIP_NULLPTR);

    return SIP_NULLPTR;
}


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

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

    Py_END_ALLOW_THREADS
}


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


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


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


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


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

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

            Py_BEGIN_ALLOW_THREADS
            sipCpp = new ::wxHtmlHelpDataItem();
            Py_END_ALLOW_THREADS

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

            return sipCpp;
        }
    }

    {
        const ::wxHtmlHelpDataItem* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


static PyMethodDef methods_wxHtmlHelpDataItem[] = {
    {sipName_GetFullPath, meth_wxHtmlHelpDataItem_GetFullPath, METH_VARARGS, doc_wxHtmlHelpDataItem_GetFullPath},
    {sipName_GetIndentedName, meth_wxHtmlHelpDataItem_GetIndentedName, METH_VARARGS, doc_wxHtmlHelpDataItem_GetIndentedName}
};


extern "C" {static PyObject *varget_wxHtmlHelpDataItem_book(void *, PyObject *, PyObject *);}
static PyObject *varget_wxHtmlHelpDataItem_book(void *sipSelf, PyObject *, PyObject *)
{
    ::wxHtmlBookRecord*sipVal;
    ::wxHtmlHelpDataItem *sipCpp = reinterpret_cast<::wxHtmlHelpDataItem *>(sipSelf);

    sipVal = sipCpp->book;

    return sipConvertFromType(sipVal, sipType_wxHtmlBookRecord, SIP_NULLPTR);
}


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

    int sipIsErr = 0;
    sipVal = reinterpret_cast<::wxHtmlBookRecord *>(sipForceConvertToType(sipPy, sipType_wxHtmlBookRecord, SIP_NULLPTR, 0, SIP_NULLPTR, &sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->book = sipVal;

    return 0;
}


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

    sipVal = sipCpp->id;

    return PyLong_FromLong(sipVal);
}


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

    sipVal = sipLong_AsInt(sipPy);

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

    sipCpp->id = sipVal;

    return 0;
}


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

    sipVal = sipCpp->level;

    return PyLong_FromLong(sipVal);
}


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

    sipVal = sipLong_AsInt(sipPy);

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

    sipCpp->level = sipVal;

    return 0;
}


extern "C" {static PyObject *varget_wxHtmlHelpDataItem_name(void *, PyObject *, PyObject *);}
static PyObject *varget_wxHtmlHelpDataItem_name(void *sipSelf, PyObject *, PyObject *)
{
    ::wxString*sipVal;
    ::wxHtmlHelpDataItem *sipCpp = reinterpret_cast<::wxHtmlHelpDataItem *>(sipSelf);

    sipVal = &sipCpp->name;

    return sipConvertFromType(sipVal, sipType_wxString, SIP_NULLPTR);
}


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

    int sipIsErr = 0;
    int sipValState;
    sipVal = reinterpret_cast<::wxString *>(sipForceConvertToType(sipPy, sipType_wxString, SIP_NULLPTR, SIP_NOT_NONE, &sipValState, &sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->name = *sipVal;

    sipReleaseType(sipVal, sipType_wxString, sipValState);

    return 0;
}


extern "C" {static PyObject *varget_wxHtmlHelpDataItem_page(void *, PyObject *, PyObject *);}
static PyObject *varget_wxHtmlHelpDataItem_page(void *sipSelf, PyObject *, PyObject *)
{
    ::wxString*sipVal;
    ::wxHtmlHelpDataItem *sipCpp = reinterpret_cast<::wxHtmlHelpDataItem *>(sipSelf);

    sipVal = &sipCpp->page;

    return sipConvertFromType(sipVal, sipType_wxString, SIP_NULLPTR);
}


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

    int sipIsErr = 0;
    int sipValState;
    sipVal = reinterpret_cast<::wxString *>(sipForceConvertToType(sipPy, sipType_wxString, SIP_NULLPTR, SIP_NOT_NONE, &sipValState, &sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->page = *sipVal;

    sipReleaseType(sipVal, sipType_wxString, sipValState);

    return 0;
}


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

    sipVal = sipCpp->parent;

    return sipConvertFromType(sipVal, sipType_wxHtmlHelpDataItem, SIP_NULLPTR);
}


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

    int sipIsErr = 0;
    sipVal = reinterpret_cast<::wxHtmlHelpDataItem *>(sipForceConvertToType(sipPy, sipType_wxHtmlHelpDataItem, SIP_NULLPTR, 0, SIP_NULLPTR, &sipIsErr));

    if (sipIsErr)
        return -1;

    sipCpp->parent = sipVal;

    return 0;
}

sipVariableDef variables_wxHtmlHelpDataItem[] = {
    {PropertyVariable, sipName_IndentedName, &methods_wxHtmlHelpDataItem[1], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    {PropertyVariable, sipName_FullPath, &methods_wxHtmlHelpDataItem[0], SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    {InstanceVariable, sipName_book, (PyMethodDef *)varget_wxHtmlHelpDataItem_book, (PyMethodDef *)varset_wxHtmlHelpDataItem_book, SIP_NULLPTR, SIP_NULLPTR},
    {InstanceVariable, sipName_id, (PyMethodDef *)varget_wxHtmlHelpDataItem_id, (PyMethodDef *)varset_wxHtmlHelpDataItem_id, SIP_NULLPTR, SIP_NULLPTR},
    {InstanceVariable, sipName_level, (PyMethodDef *)varget_wxHtmlHelpDataItem_level, (PyMethodDef *)varset_wxHtmlHelpDataItem_level, SIP_NULLPTR, SIP_NULLPTR},
    {InstanceVariable, sipName_name, (PyMethodDef *)varget_wxHtmlHelpDataItem_name, (PyMethodDef *)varset_wxHtmlHelpDataItem_name, SIP_NULLPTR, SIP_NULLPTR},
    {InstanceVariable, sipName_page, (PyMethodDef *)varget_wxHtmlHelpDataItem_page, (PyMethodDef *)varset_wxHtmlHelpDataItem_page, SIP_NULLPTR, SIP_NULLPTR},
    {InstanceVariable, sipName_parent, (PyMethodDef *)varget_wxHtmlHelpDataItem_parent, (PyMethodDef *)varset_wxHtmlHelpDataItem_parent, SIP_NULLPTR, SIP_NULLPTR},
};

PyDoc_STRVAR(doc_wxHtmlHelpDataItem, "HtmlHelpDataItem()\n"
"\n"
"Helper class for wxHtmlHelpData.");


sipClassTypeDef sipTypeDef__html_wxHtmlHelpDataItem = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_CLASS,
        sipNameNr_wxHtmlHelpDataItem,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_HtmlHelpDataItem,
        {0, 0, 1},
        2, methods_wxHtmlHelpDataItem,
        0, SIP_NULLPTR,
        8, variables_wxHtmlHelpDataItem,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_wxHtmlHelpDataItem,
    -1,
    -1,
    SIP_NULLPTR,
    SIP_NULLPTR,
    init_type_wxHtmlHelpDataItem,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_wxHtmlHelpDataItem,
    assign_wxHtmlHelpDataItem,
    array_wxHtmlHelpDataItem,
    copy_wxHtmlHelpDataItem,
    release_wxHtmlHelpDataItem,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
};
