/*
 * Interface wrapper code.
 *
 * Generated by SIP 4.19.23
 *
 * Copyright (c) 2020 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt5.
 * 
 * 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 "sipAPIQtGui.h"

#line 248 "/scratch/jenkins-BUILDS-eSDK-2023.2_stable-pipeline-build_async-62_k26_smk_kv_full/build/tmp/work/cortexa72-cortexa53-xilinx-linux/python3-pyqt5/5.15.1-r0/PyQt5-5.15.1/sip/QtGui/qtextobject.sip"
#include <qtextobject.h>
#line 29 "/scratch/jenkins-BUILDS-eSDK-2023.2_stable-pipeline-build_async-62_k26_smk_kv_full/build/tmp/work/cortexa72-cortexa53-xilinx-linux/python3-pyqt5/5.15.1-r0/PyQt5-5.15.1/QtGui/sipQtGuiQTextBlockUserData.cpp"



class sipQTextBlockUserData : public  ::QTextBlockUserData
{
public:
    sipQTextBlockUserData();
    sipQTextBlockUserData(const  ::QTextBlockUserData&);
    ~sipQTextBlockUserData();

public:
    sipSimpleWrapper *sipPySelf;

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

sipQTextBlockUserData::sipQTextBlockUserData():  ::QTextBlockUserData(), sipPySelf(SIP_NULLPTR)
{
}

sipQTextBlockUserData::sipQTextBlockUserData(const  ::QTextBlockUserData& a0):  ::QTextBlockUserData(a0), sipPySelf(SIP_NULLPTR)
{
}

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


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


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


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


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


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

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


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

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::QTextBlockUserData* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}

PyDoc_STRVAR(doc_QTextBlockUserData, "\1QTextBlockUserData()\n"
"QTextBlockUserData(QTextBlockUserData)");


static pyqt5ClassPluginDef plugin_QTextBlockUserData = {
    SIP_NULLPTR,
    0,
    SIP_NULLPTR,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtGui_QTextBlockUserData = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QTextBlockUserData,
        {SIP_NULLPTR},
        &plugin_QTextBlockUserData
    },
    {
        sipNameNr_QTextBlockUserData,
        {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_QTextBlockUserData,
    -1,
    -1,
    SIP_NULLPTR,
    SIP_NULLPTR,
    init_type_QTextBlockUserData,
    SIP_NULLPTR,
    SIP_NULLPTR,
#if PY_MAJOR_VERSION >= 3
    SIP_NULLPTR,
    SIP_NULLPTR,
#else
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
#endif
    dealloc_QTextBlockUserData,
    assign_QTextBlockUserData,
    array_QTextBlockUserData,
    copy_QTextBlockUserData,
    release_QTextBlockUserData,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR
};
