/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.6.2
 *
 * Copyright (c) 2022 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 "sipAPIQtWidgets.h"

#line 455 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtWidgets/qstyleoption.sip"
#include <qstyleoption.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.7/build/QtWidgets/sipQtWidgetsQStyleOptionTabV4.cpp"

#line 28 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtWidgets/qwidget.sip"
#include <qwidget.h>
#line 33 "/build/pyqt5/src/PyQt5-5.15.7/build/QtWidgets/sipQtWidgetsQStyleOptionTabV4.cpp"


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_QStyleOptionTabV4(void *, const sipTypeDef *);}
static void *cast_QStyleOptionTabV4(void *sipCppV, const sipTypeDef *targetType)
{
     ::QStyleOptionTabV4 *sipCpp = reinterpret_cast< ::QStyleOptionTabV4 *>(sipCppV);

    if (targetType == sipType_QStyleOptionTabV4)
        return sipCppV;

    sipCppV = ((const sipClassTypeDef *)sipType_QStyleOptionTab)->ctd_cast(static_cast< ::QStyleOptionTab *>(sipCpp), targetType);
    if (sipCppV)
        return sipCppV;

    return SIP_NULLPTR;
}


/* Call the instance's destructor. */
extern "C" {static void release_QStyleOptionTabV4(void *, int);}
static void release_QStyleOptionTabV4(void *sipCppV, int)
{
    delete reinterpret_cast< ::QStyleOptionTabV4 *>(sipCppV);
}


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


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const  ::QStyleOptionTabV4* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QStyleOptionTabV4[] = {{373, 255, 1}};

static sipEnumMemberDef enummembers_QStyleOptionTabV4[] = {
    {sipName_Version, static_cast<int>( ::QStyleOptionTabV4::Version), 386},
};


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

    sipVal = sipCpp->tabIndex;

    return PyLong_FromLong(sipVal);
}


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

    sipVal = sipLong_AsInt(sipPy);

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

    sipCpp->tabIndex = sipVal;

    return 0;
}

sipVariableDef variables_QStyleOptionTabV4[] = {
    {InstanceVariable, sipName_tabIndex, (PyMethodDef *)varget_QStyleOptionTabV4_tabIndex, (PyMethodDef *)varset_QStyleOptionTabV4_tabIndex, SIP_NULLPTR, SIP_NULLPTR},
};

PyDoc_STRVAR(doc_QStyleOptionTabV4, "\1QStyleOptionTabV4()\n"
"QStyleOptionTabV4(QStyleOptionTabV4)");


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


sipClassTypeDef sipTypeDef_QtWidgets_QStyleOptionTabV4 = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QStyleOptionTabV4,
        SIP_NULLPTR,
        &plugin_QStyleOptionTabV4
    },
    {
        sipNameNr_QStyleOptionTabV4,
        {0, 0, 1},
        0, SIP_NULLPTR,
        1, enummembers_QStyleOptionTabV4,
        1, variables_QStyleOptionTabV4,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QStyleOptionTabV4,
    -1,
    -1,
    supers_QStyleOptionTabV4,
    SIP_NULLPTR,
    init_type_QStyleOptionTabV4,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QStyleOptionTabV4,
    assign_QStyleOptionTabV4,
    array_QStyleOptionTabV4,
    copy_QStyleOptionTabV4,
    release_QStyleOptionTabV4,
    cast_QStyleOptionTabV4,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QStyleOptionTabV4,
    sizeof ( ::QStyleOptionTabV4),
};
