/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.15.3
 *
 * Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt6-Charts.
 * 
 * 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 "sipAPIQtCharts.h"

#line 26 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/sip/QtCharts/qstackedbarseries.sip"
#include <qstackedbarseries.h>
#line 29 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"

#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobject.sip"
#include <qobject.h>
#line 33 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 26 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/sip/QtCharts/qabstractseries.sip"
#include <qabstractseries.h>
#line 36 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 26 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/sip/QtCharts/qbarset.sip"
#include <qbarset.h>
#line 39 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 26 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/sip/QtCharts/qabstractbarseries.sip"
#include <qabstractbarseries.h>
#line 42 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 24 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qstring.sip"
#include <qstring.h>
#line 45 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 135 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 48 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 135 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 51 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 26 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/sip/QtCharts/qabstractaxis.sip"
#include <qabstractaxis.h>
#line 54 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 26 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/sip/QtCharts/qchart.sip"
#include <qchart.h>
#line 57 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 154 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 62 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 65 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 68 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 277 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 71 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 254 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 74 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qvariant.sip"
#include <qvariant.h>
#line 77 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 80 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 30 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 83 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 135 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 86 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 154 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 91 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qthread.sip"
#include <qthread.h>
#line 94 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qanystringview.sip"
#include <qanystringview.h>
#line 97 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 25 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 100 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 103 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 106 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQStackedBarSeries.cpp"


class sipQStackedBarSeries : public ::QStackedBarSeries
{
public:
    sipQStackedBarSeries(::QObject*);
    virtual ~sipQStackedBarSeries();

    int qt_metacall(QMetaObject::Call, int, void **) SIP_OVERRIDE;
    void *qt_metacast(const char *) SIP_OVERRIDE;
    const QMetaObject *metaObject() const SIP_OVERRIDE;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    ::QAbstractSeries::SeriesType type() const SIP_OVERRIDE;
    bool event(::QEvent*) SIP_OVERRIDE;
    bool eventFilter(::QObject*, ::QEvent*) SIP_OVERRIDE;
    void timerEvent(::QTimerEvent*) SIP_OVERRIDE;
    void childEvent(::QChildEvent*) SIP_OVERRIDE;
    void customEvent(::QEvent*) SIP_OVERRIDE;
    void connectNotify(const ::QMetaMethod&) SIP_OVERRIDE;
    void disconnectNotify(const ::QMetaMethod&) SIP_OVERRIDE;

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipQStackedBarSeries(const sipQStackedBarSeries &);
    sipQStackedBarSeries &operator = (const sipQStackedBarSeries &);

    char sipPyMethods[8];
};

sipQStackedBarSeries::sipQStackedBarSeries(::QObject*a0): ::QStackedBarSeries(a0), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipQStackedBarSeries::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtCharts_qt_metaobject(sipPySelf, sipType_QStackedBarSeries);

    return ::QStackedBarSeries::metaObject();
}

int sipQStackedBarSeries::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = ::QStackedBarSeries::qt_metacall(_c, _id, _a);

    if (_id >= 0)
    {
        SIP_BLOCK_THREADS
        _id = sip_QtCharts_qt_metacall(sipPySelf, sipType_QStackedBarSeries, _c, _id, _a);
        SIP_UNBLOCK_THREADS
    }

    return _id;
}

void *sipQStackedBarSeries::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_QtCharts_qt_metacast(sipPySelf, sipType_QStackedBarSeries, _clname, &sipCpp) ? sipCpp : ::QStackedBarSeries::qt_metacast(_clname));
}

::QAbstractSeries::SeriesType sipQStackedBarSeries::type() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[0]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_type);

    if (!sipMeth)
        return ::QStackedBarSeries::type();

    extern ::QAbstractSeries::SeriesType sipVH_QtCharts_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_QtCharts_7(sipGILState, sipImportedVirtErrorHandlers_QtCharts_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

bool sipQStackedBarSeries::event(::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[1], &sipPySelf, SIP_NULLPTR, sipName_event);

    if (!sipMeth)
        return ::QStackedBarSeries::event(a0);

    extern bool sipVH_QtCharts_5(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::QEvent*);

    return sipVH_QtCharts_5(sipGILState, sipImportedVirtErrorHandlers_QtCharts_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipQStackedBarSeries::eventFilter(::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[2], &sipPySelf, SIP_NULLPTR, sipName_eventFilter);

    if (!sipMeth)
        return ::QStackedBarSeries::eventFilter(a0, a1);

    extern bool sipVH_QtCharts_4(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::QObject*, ::QEvent*);

    return sipVH_QtCharts_4(sipGILState, sipImportedVirtErrorHandlers_QtCharts_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipQStackedBarSeries::timerEvent(::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[3], &sipPySelf, SIP_NULLPTR, sipName_timerEvent);

    if (!sipMeth)
    {
        ::QStackedBarSeries::timerEvent(a0);
        return;
    }

    extern void sipVH_QtCharts_3(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::QTimerEvent*);

    sipVH_QtCharts_3(sipGILState, sipImportedVirtErrorHandlers_QtCharts_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQStackedBarSeries::childEvent(::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[4], &sipPySelf, SIP_NULLPTR, sipName_childEvent);

    if (!sipMeth)
    {
        ::QStackedBarSeries::childEvent(a0);
        return;
    }

    extern void sipVH_QtCharts_2(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::QChildEvent*);

    sipVH_QtCharts_2(sipGILState, sipImportedVirtErrorHandlers_QtCharts_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQStackedBarSeries::customEvent(::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[5], &sipPySelf, SIP_NULLPTR, sipName_customEvent);

    if (!sipMeth)
    {
        ::QStackedBarSeries::customEvent(a0);
        return;
    }

    extern void sipVH_QtCharts_1(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, ::QEvent*);

    sipVH_QtCharts_1(sipGILState, sipImportedVirtErrorHandlers_QtCharts_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQStackedBarSeries::connectNotify(const ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[6], &sipPySelf, SIP_NULLPTR, sipName_connectNotify);

    if (!sipMeth)
    {
        ::QStackedBarSeries::connectNotify(a0);
        return;
    }

    extern void sipVH_QtCharts_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::QMetaMethod&);

    sipVH_QtCharts_0(sipGILState, sipImportedVirtErrorHandlers_QtCharts_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQStackedBarSeries::disconnectNotify(const ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[7], &sipPySelf, SIP_NULLPTR, sipName_disconnectNotify);

    if (!sipMeth)
    {
        ::QStackedBarSeries::disconnectNotify(a0);
        return;
    }

    extern void sipVH_QtCharts_0(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const ::QMetaMethod&);

    sipVH_QtCharts_0(sipGILState, sipImportedVirtErrorHandlers_QtCharts_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}


PyDoc_STRVAR(doc_QStackedBarSeries_type, "type(self) -> QAbstractSeries.SeriesType");

extern "C" {static PyObject *meth_QStackedBarSeries_type(PyObject *, PyObject *);}
static PyObject *meth_QStackedBarSeries_type(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QStackedBarSeries)) || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const ::QStackedBarSeries *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QStackedBarSeries, &sipCpp))
        {
            ::QAbstractSeries::SeriesType sipRes;

            sipRes = (sipSelfWasArg ? sipCpp->::QStackedBarSeries::type() : sipCpp->type());

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_QAbstractSeries_SeriesType);
        }
    }

    sipNoMethod(sipParseErr, sipName_QStackedBarSeries, sipName_type, doc_QStackedBarSeries_type);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QStackedBarSeries)
        return sipCppV;

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

    return SIP_NULLPTR;
}


/* Call the instance's destructor. */
extern "C" {static void release_QStackedBarSeries(void *, int);}
static void release_QStackedBarSeries(void *sipCppV, int)
{
    ::QStackedBarSeries *sipCpp = reinterpret_cast< ::QStackedBarSeries *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


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


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


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

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


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

    {
        ::QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipQStackedBarSeries(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


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


static PyMethodDef methods_QStackedBarSeries[] = {
    {sipName_type, meth_QStackedBarSeries_type, METH_VARARGS, doc_QStackedBarSeries_type}
};

PyDoc_STRVAR(doc_QStackedBarSeries, "\1QStackedBarSeries(parent: QObject|None = None)");


static pyqt6ClassPluginDef plugin_QStackedBarSeries = {
    &::QStackedBarSeries::staticMetaObject,
    SIP_NULLPTR,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtCharts_QStackedBarSeries = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QStackedBarSeries,
        SIP_NULLPTR,
        &plugin_QStackedBarSeries,
    },
    {
        sipNameNr_QStackedBarSeries,
        {0, 0, 1},
        1, methods_QStackedBarSeries,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QStackedBarSeries,
    -1,
    -1,
    supers_QStackedBarSeries,
    SIP_NULLPTR,
    init_type_QStackedBarSeries,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QStackedBarSeries,
    SIP_NULLPTR,
    array_QStackedBarSeries,
    SIP_NULLPTR,
    release_QStackedBarSeries,
    cast_QStackedBarSeries,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QStackedBarSeries,
    sizeof (::QStackedBarSeries),
};
