/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.15.2
 *
 * Copyright (c) 2023 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of QScintilla.
 * 
 * This file may be used under the terms of the GNU General Public License
 * version 3.0 as published by the Free Software Foundation and appearing in
 * the file LICENSE included in the packaging of this file.  Please review the
 * following information to ensure the GNU General Public License version 3.0
 * requirements will be met: http://www.gnu.org/copyleft/gpl.html.
 * 
 * If you do not wish to use this file under the terms of the GPL version 3.0
 * then you may purchase a commercial license.  For more information contact
 * info@riverbankcomputing.com.
 * 
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */

#include "sipAPIQsci.h"

#line 24 "/build/qscintilla/src/QScintilla_src-2.14.1/Python/sip/qscidocument.sip"
#include <Qsci/qscidocument.h>
#line 29 "/build/qscintilla/src/QScintilla_src-2.14.1/Python/build/Qsci/sipQsciQsciDocument.cpp"



class sipQsciDocument : public ::QsciDocument
{
public:
    sipQsciDocument();
    sipQsciDocument(const ::QsciDocument&);
    ~sipQsciDocument();

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQsciDocument(const sipQsciDocument &);
    sipQsciDocument &operator = (const sipQsciDocument &);
};

sipQsciDocument::sipQsciDocument(): ::QsciDocument(), sipPySelf(SIP_NULLPTR)
{
}

sipQsciDocument::sipQsciDocument(const ::QsciDocument& a0): ::QsciDocument(a0), sipPySelf(SIP_NULLPTR)
{
}

sipQsciDocument::~sipQsciDocument()
{
    sipInstanceDestroyedEx(&sipPySelf);
}


/* Call the instance's destructor. */
extern "C" {static void release_QsciDocument(void *, int);}
static void release_QsciDocument(void *sipCppV, int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQsciDocument *>(sipCppV);
    else
        delete reinterpret_cast< ::QsciDocument *>(sipCppV);
}


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


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


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


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


extern "C" {static void dealloc_QsciDocument(sipSimpleWrapper *);}
static void dealloc_QsciDocument(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQsciDocument *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_QsciDocument(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_QsciDocument(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QsciDocument(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **, PyObject **sipParseErr)
{
    sipQsciDocument *sipCpp = SIP_NULLPTR;

    {
        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, ""))
        {
            sipCpp = new sipQsciDocument();

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const ::QsciDocument* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_QsciDocument, &a0))
        {
            sipCpp = new sipQsciDocument(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}

PyDoc_STRVAR(doc_QsciDocument, "\1QsciDocument()\n"
"QsciDocument(a0: QsciDocument)");


sipClassTypeDef sipTypeDef_Qsci_QsciDocument = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QsciDocument,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_QsciDocument,
        {0, 0, 1},
        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_QsciDocument,
    -1,
    -1,
    SIP_NULLPTR,
    SIP_NULLPTR,
    init_type_QsciDocument,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QsciDocument,
    assign_QsciDocument,
    array_QsciDocument,
    copy_QsciDocument,
    release_QsciDocument,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QsciDocument,
    sizeof (::QsciDocument),
};
