/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.6.1
 *
 * Copyright (c) 2022 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.3.0/sip/QtCharts/qbarset.sip"
#include <qbarset.h>
#line 29 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"

#line 24 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qstring.sip"
#include <qstring.h>
#line 33 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 28 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qobject.sip"
#include <qobject.h>
#line 36 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 789 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 39 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtGui/qcolor.sip"
#include <qcolor.h>
#line 42 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtGui/qfont.sip"
#include <qfont.h>
#line 45 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtGui/qbrush.sip"
#include <qbrush.h>
#line 48 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtGui/qpen.sip"
#include <qpen.h>
#line 51 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 1193 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 54 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 151 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 59 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 62 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 65 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 241 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 68 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 228 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 71 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qvariant.sip"
#include <qvariant.h>
#line 74 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 28 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 77 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 30 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 80 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 135 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 83 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 150 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 88 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qthread.sip"
#include <qthread.h>
#line 91 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 25 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 94 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 97 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"
#line 26 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 100 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"


class sipQBarSet : public  ::QBarSet
{
public:
    sipQBarSet(const  ::QString, ::QObject*);
    virtual ~sipQBarSet();

    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:
    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:
    sipQBarSet(const sipQBarSet &);
    sipQBarSet &operator = (const sipQBarSet &);

    char sipPyMethods[7];
};

sipQBarSet::sipQBarSet(const  ::QString a0, ::QObject*a1):  ::QBarSet(a0,a1), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

    return  ::QBarSet::metaObject();
}

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

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

    return _id;
}

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

    return (sip_QtCharts_qt_metacast(sipPySelf, sipType_QBarSet, _clname, &sipCpp) ? sipCpp :  ::QBarSet::qt_metacast(_clname));
}

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

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

    if (!sipMeth)
        return  ::QBarSet::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 sipQBarSet::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QBarSet::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 sipQBarSet::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QBarSet::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 sipQBarSet::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QBarSet::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 sipQBarSet::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QBarSet::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 sipQBarSet::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QBarSet::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 sipQBarSet::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QBarSet::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_QBarSet_append, "append(self, Iterable[float])\n"
"append(self, float)");

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

    {
        const  ::QList< ::qreal>* a0;
        int a0State = 0;
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QBarSet, &sipCpp, sipType_QList_2400, &a0, &a0State))
        {
            sipCpp->append(*a0);
            sipReleaseType(const_cast< ::QList< ::qreal> *>(a0), sipType_QList_2400, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
         ::qreal a0;
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bd", &sipSelf, sipType_QBarSet, &sipCpp, &a0))
        {
            sipCpp->append(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_append, doc_QBarSet_append);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_insert, "insert(self, int, float)");

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

    {
        int a0;
         ::qreal a1;
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bid", &sipSelf, sipType_QBarSet, &sipCpp, &a0, &a1))
        {
            sipCpp->insert(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_insert, doc_QBarSet_insert);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_replace, "replace(self, int, float)");

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

    {
        int a0;
         ::qreal a1;
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bid", &sipSelf, sipType_QBarSet, &sipCpp, &a0, &a1))
        {
            sipCpp->replace(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_replace, doc_QBarSet_replace);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_count, "count(self) -> int");

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

    {
        const  ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBarSet, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->count();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_count, doc_QBarSet_count);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_sum, "sum(self) -> float");

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

    {
        const  ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBarSet, &sipCpp))
        {
             ::qreal sipRes;

            sipRes = sipCpp->sum();

            return PyFloat_FromDouble(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_sum, doc_QBarSet_sum);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_setPen, "setPen(self, Union[QPen, QColor, Qt.GlobalColor, int, QGradient])");

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

    {
        const  ::QPen* a0;
        int a0State = 0;
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QBarSet, &sipCpp, sipType_QPen, &a0, &a0State))
        {
            sipCpp->setPen(*a0);
            sipReleaseType(const_cast< ::QPen *>(a0), sipType_QPen, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_setPen, doc_QBarSet_setPen);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_pen, "pen(self) -> QPen");

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

    {
        const  ::QBarSet *sipCpp;

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

            sipRes = new  ::QPen(sipCpp->pen());

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

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_pen, doc_QBarSet_pen);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_setBrush, "setBrush(self, Union[QBrush, QColor, Qt.GlobalColor, int, QGradient])");

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

    {
        const  ::QBrush* a0;
        int a0State = 0;
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QBarSet, &sipCpp, sipType_QBrush, &a0, &a0State))
        {
            sipCpp->setBrush(*a0);
            sipReleaseType(const_cast< ::QBrush *>(a0), sipType_QBrush, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_setBrush, doc_QBarSet_setBrush);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_brush, "brush(self) -> QBrush");

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

    {
        const  ::QBarSet *sipCpp;

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

            sipRes = new  ::QBrush(sipCpp->brush());

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

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_brush, doc_QBarSet_brush);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_setLabelBrush, "setLabelBrush(self, Union[QBrush, QColor, Qt.GlobalColor, int, QGradient])");

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

    {
        const  ::QBrush* a0;
        int a0State = 0;
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QBarSet, &sipCpp, sipType_QBrush, &a0, &a0State))
        {
            sipCpp->setLabelBrush(*a0);
            sipReleaseType(const_cast< ::QBrush *>(a0), sipType_QBrush, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_setLabelBrush, doc_QBarSet_setLabelBrush);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_labelBrush, "labelBrush(self) -> QBrush");

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

    {
        const  ::QBarSet *sipCpp;

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

            sipRes = new  ::QBrush(sipCpp->labelBrush());

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

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_labelBrush, doc_QBarSet_labelBrush);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_setLabelFont, "setLabelFont(self, QFont)");

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

    {
        const  ::QFont* a0;
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QBarSet, &sipCpp, sipType_QFont, &a0))
        {
            sipCpp->setLabelFont(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_setLabelFont, doc_QBarSet_setLabelFont);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_labelFont, "labelFont(self) -> QFont");

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

    {
        const  ::QBarSet *sipCpp;

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

            sipRes = new  ::QFont(sipCpp->labelFont());

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

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_labelFont, doc_QBarSet_labelFont);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_setLabel, "setLabel(self, str)");

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

    {
        const  ::QString* a0;
        int a0State = 0;
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QBarSet, &sipCpp, sipType_QString, &a0, &a0State))
        {
            sipCpp->setLabel(*a0);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_setLabel, doc_QBarSet_setLabel);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_label, "label(self) -> str");

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

    {
        const  ::QBarSet *sipCpp;

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

            sipRes = new  ::QString(sipCpp->label());

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

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_label, doc_QBarSet_label);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_remove, "remove(self, int, count: int = 1)");

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

    {
        int a0;
        int a1 = 1;
         ::QBarSet *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "Bi|i", &sipSelf, sipType_QBarSet, &sipCpp, &a0, &a1))
        {
            sipCpp->remove(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_remove, doc_QBarSet_remove);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_at, "at(self, int) -> float");

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

    {
        int a0;
        const  ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QBarSet, &sipCpp, &a0))
        {
             ::qreal sipRes;

            sipRes = sipCpp->at(a0);

            return PyFloat_FromDouble(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_at, doc_QBarSet_at);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_color, "color(self) -> QColor");

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

    {
         ::QBarSet *sipCpp;

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

            sipRes = new  ::QColor(sipCpp->color());

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

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_color, doc_QBarSet_color);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_setColor, "setColor(self, Union[QColor, Qt.GlobalColor, int, QGradient])");

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

    {
         ::QColor* a0;
        int a0State = 0;
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QBarSet, &sipCpp, sipType_QColor, &a0, &a0State))
        {
            sipCpp->setColor(*a0);
            sipReleaseType(a0, sipType_QColor, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_setColor, doc_QBarSet_setColor);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_borderColor, "borderColor(self) -> QColor");

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

    {
         ::QBarSet *sipCpp;

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

            sipRes = new  ::QColor(sipCpp->borderColor());

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

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_borderColor, doc_QBarSet_borderColor);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_setBorderColor, "setBorderColor(self, Union[QColor, Qt.GlobalColor, int, QGradient])");

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

    {
         ::QColor* a0;
        int a0State = 0;
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QBarSet, &sipCpp, sipType_QColor, &a0, &a0State))
        {
            sipCpp->setBorderColor(*a0);
            sipReleaseType(a0, sipType_QColor, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_setBorderColor, doc_QBarSet_setBorderColor);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_labelColor, "labelColor(self) -> QColor");

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

    {
         ::QBarSet *sipCpp;

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

            sipRes = new  ::QColor(sipCpp->labelColor());

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

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_labelColor, doc_QBarSet_labelColor);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_setLabelColor, "setLabelColor(self, Union[QColor, Qt.GlobalColor, int, QGradient])");

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

    {
         ::QColor* a0;
        int a0State = 0;
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QBarSet, &sipCpp, sipType_QColor, &a0, &a0State))
        {
            sipCpp->setLabelColor(*a0);
            sipReleaseType(a0, sipType_QColor, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_setLabelColor, doc_QBarSet_setLabelColor);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_selectedColor, "selectedColor(self) -> QColor");

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

    {
        const  ::QBarSet *sipCpp;

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

            sipRes = new  ::QColor(sipCpp->selectedColor());

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

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_selectedColor, doc_QBarSet_selectedColor);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_setSelectedColor, "setSelectedColor(self, Union[QColor, Qt.GlobalColor, int, QGradient])");

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

    {
        const  ::QColor* a0;
        int a0State = 0;
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QBarSet, &sipCpp, sipType_QColor, &a0, &a0State))
        {
            sipCpp->setSelectedColor(*a0);
            sipReleaseType(const_cast< ::QColor *>(a0), sipType_QColor, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_setSelectedColor, doc_QBarSet_setSelectedColor);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_isBarSelected, "isBarSelected(self, int) -> bool");

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

    {
        int a0;
        const  ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QBarSet, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->isBarSelected(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_isBarSelected, doc_QBarSet_isBarSelected);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_selectBar, "selectBar(self, int)");

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

    {
        int a0;
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QBarSet, &sipCpp, &a0))
        {
            sipCpp->selectBar(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_selectBar, doc_QBarSet_selectBar);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_deselectBar, "deselectBar(self, int)");

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

    {
        int a0;
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QBarSet, &sipCpp, &a0))
        {
            sipCpp->deselectBar(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_deselectBar, doc_QBarSet_deselectBar);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_setBarSelected, "setBarSelected(self, int, bool)");

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

    {
        int a0;
        bool a1;
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bib", &sipSelf, sipType_QBarSet, &sipCpp, &a0, &a1))
        {
            sipCpp->setBarSelected(a0,a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_setBarSelected, doc_QBarSet_setBarSelected);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_selectAllBars, "selectAllBars(self)");

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

    {
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBarSet, &sipCpp))
        {
            sipCpp->selectAllBars();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_selectAllBars, doc_QBarSet_selectAllBars);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_deselectAllBars, "deselectAllBars(self)");

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

    {
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBarSet, &sipCpp))
        {
            sipCpp->deselectAllBars();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_deselectAllBars, doc_QBarSet_deselectAllBars);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_selectBars, "selectBars(self, Iterable[int])");

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

    {
        const  ::QList<int>* a0;
        int a0State = 0;
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QBarSet, &sipCpp, sipType_QList_1800, &a0, &a0State))
        {
            sipCpp->selectBars(*a0);
            sipReleaseType(const_cast< ::QList<int> *>(a0), sipType_QList_1800, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_selectBars, doc_QBarSet_selectBars);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_deselectBars, "deselectBars(self, Iterable[int])");

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

    {
        const  ::QList<int>* a0;
        int a0State = 0;
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QBarSet, &sipCpp, sipType_QList_1800, &a0, &a0State))
        {
            sipCpp->deselectBars(*a0);
            sipReleaseType(const_cast< ::QList<int> *>(a0), sipType_QList_1800, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_deselectBars, doc_QBarSet_deselectBars);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_toggleSelection, "toggleSelection(self, Iterable[int])");

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

    {
        const  ::QList<int>* a0;
        int a0State = 0;
         ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QBarSet, &sipCpp, sipType_QList_1800, &a0, &a0State))
        {
            sipCpp->toggleSelection(*a0);
            sipReleaseType(const_cast< ::QList<int> *>(a0), sipType_QList_1800, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_toggleSelection, doc_QBarSet_toggleSelection);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarSet_selectedBars, "selectedBars(self) -> List[int]");

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

    {
        const  ::QBarSet *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBarSet, &sipCpp))
        {
             ::QList<int>*sipRes;

            sipRes = new  ::QList<int>(sipCpp->selectedBars());

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

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName_selectedBars, doc_QBarSet_selectedBars);

    return SIP_NULLPTR;
}


extern "C" {static PyObject *slot_QBarSet___getitem__(PyObject *,PyObject *);}
static PyObject *slot_QBarSet___getitem__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QBarSet *sipCpp = reinterpret_cast< ::QBarSet *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QBarSet));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        int a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1i", &a0))
        {
             ::qreal sipRes = 0;
            int sipIsErr = 0;

#line 53 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/sip/QtCharts/qbarset.sip"
        Py_ssize_t idx = sipConvertFromSequenceIndex(a0, sipCpp->count());
        
        if (idx < 0)
            sipIsErr = 1;
        else
            sipRes = sipCpp->operator[]((int)idx);
#line 1314 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"

            if (sipIsErr)
                return 0;

            return PyFloat_FromDouble(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarSet, sipName___getitem__, SIP_NULLPTR);

    return SIP_NULLPTR;
}


extern "C" {static Py_ssize_t slot_QBarSet___len__(PyObject *);}
static Py_ssize_t slot_QBarSet___len__(PyObject *sipSelf)
{
     ::QBarSet *sipCpp = reinterpret_cast< ::QBarSet *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QBarSet));

    if (!sipCpp)
        return 0;


    {
        {
            Py_ssize_t sipRes = 0;

#line 1 "Auto-generated"
            sipRes = (Py_ssize_t)sipCpp->count();
#line 1344 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQBarSet.cpp"

            return sipRes;
        }
    }

    return 0;
}


extern "C" {static PyObject *slot_QBarSet___lshift__(PyObject *,PyObject *);}
static PyObject *slot_QBarSet___lshift__(PyObject *sipArg0,PyObject *sipArg1)
{
    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QBarSet* a0;
         ::qreal a1;

        if (sipParsePair(&sipParseErr, sipArg0, sipArg1, "J9d", sipType_QBarSet, &a0, &a1))
        {
             ::QBarSet*sipRes;

            sipRes = &(*a0 << a1);

            return sipConvertFromType(sipRes,sipType_QBarSet,SIP_NULLPTR);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return SIP_NULLPTR;

    return sipPySlotExtend(&sipModuleAPI_QtCharts, lshift_slot, SIP_NULLPTR, sipArg0, sipArg1);
}


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

    if (targetType == sipType_QBarSet)
        return sipCppV;

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return SIP_NULLPTR;
}


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

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


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

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


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

    {
        const  ::QString* a0;
        int a0State = 0;
         ::QObject* a1 = 0;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|JH", sipType_QString, &a0, &a0State, sipType_QObject, &a1, sipOwner))
        {
            sipCpp = new sipQBarSet(*a0,a1);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_QBarSet[] = {{15, 0, 1}};


/* Define this type's Python slots. */
static sipPySlotDef slots_QBarSet[] = {
    {(void *)slot_QBarSet___getitem__, getitem_slot},
    {(void *)slot_QBarSet___len__, len_slot},
    {(void *)slot_QBarSet___lshift__, lshift_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QBarSet[] = {
    {sipName_append, meth_QBarSet_append, METH_VARARGS, doc_QBarSet_append},
    {sipName_at, meth_QBarSet_at, METH_VARARGS, doc_QBarSet_at},
    {sipName_borderColor, meth_QBarSet_borderColor, METH_VARARGS, doc_QBarSet_borderColor},
    {sipName_brush, meth_QBarSet_brush, METH_VARARGS, doc_QBarSet_brush},
    {sipName_color, meth_QBarSet_color, METH_VARARGS, doc_QBarSet_color},
    {sipName_count, meth_QBarSet_count, METH_VARARGS, doc_QBarSet_count},
    {sipName_deselectAllBars, meth_QBarSet_deselectAllBars, METH_VARARGS, doc_QBarSet_deselectAllBars},
    {sipName_deselectBar, meth_QBarSet_deselectBar, METH_VARARGS, doc_QBarSet_deselectBar},
    {sipName_deselectBars, meth_QBarSet_deselectBars, METH_VARARGS, doc_QBarSet_deselectBars},
    {sipName_insert, meth_QBarSet_insert, METH_VARARGS, doc_QBarSet_insert},
    {sipName_isBarSelected, meth_QBarSet_isBarSelected, METH_VARARGS, doc_QBarSet_isBarSelected},
    {sipName_label, meth_QBarSet_label, METH_VARARGS, doc_QBarSet_label},
    {sipName_labelBrush, meth_QBarSet_labelBrush, METH_VARARGS, doc_QBarSet_labelBrush},
    {sipName_labelColor, meth_QBarSet_labelColor, METH_VARARGS, doc_QBarSet_labelColor},
    {sipName_labelFont, meth_QBarSet_labelFont, METH_VARARGS, doc_QBarSet_labelFont},
    {sipName_pen, meth_QBarSet_pen, METH_VARARGS, doc_QBarSet_pen},
    {sipName_remove, SIP_MLMETH_CAST(meth_QBarSet_remove), METH_VARARGS|METH_KEYWORDS, doc_QBarSet_remove},
    {sipName_replace, meth_QBarSet_replace, METH_VARARGS, doc_QBarSet_replace},
    {sipName_selectAllBars, meth_QBarSet_selectAllBars, METH_VARARGS, doc_QBarSet_selectAllBars},
    {sipName_selectBar, meth_QBarSet_selectBar, METH_VARARGS, doc_QBarSet_selectBar},
    {sipName_selectBars, meth_QBarSet_selectBars, METH_VARARGS, doc_QBarSet_selectBars},
    {sipName_selectedBars, meth_QBarSet_selectedBars, METH_VARARGS, doc_QBarSet_selectedBars},
    {sipName_selectedColor, meth_QBarSet_selectedColor, METH_VARARGS, doc_QBarSet_selectedColor},
    {sipName_setBarSelected, meth_QBarSet_setBarSelected, METH_VARARGS, doc_QBarSet_setBarSelected},
    {sipName_setBorderColor, meth_QBarSet_setBorderColor, METH_VARARGS, doc_QBarSet_setBorderColor},
    {sipName_setBrush, meth_QBarSet_setBrush, METH_VARARGS, doc_QBarSet_setBrush},
    {sipName_setColor, meth_QBarSet_setColor, METH_VARARGS, doc_QBarSet_setColor},
    {sipName_setLabel, meth_QBarSet_setLabel, METH_VARARGS, doc_QBarSet_setLabel},
    {sipName_setLabelBrush, meth_QBarSet_setLabelBrush, METH_VARARGS, doc_QBarSet_setLabelBrush},
    {sipName_setLabelColor, meth_QBarSet_setLabelColor, METH_VARARGS, doc_QBarSet_setLabelColor},
    {sipName_setLabelFont, meth_QBarSet_setLabelFont, METH_VARARGS, doc_QBarSet_setLabelFont},
    {sipName_setPen, meth_QBarSet_setPen, METH_VARARGS, doc_QBarSet_setPen},
    {sipName_setSelectedColor, meth_QBarSet_setSelectedColor, METH_VARARGS, doc_QBarSet_setSelectedColor},
    {sipName_sum, meth_QBarSet_sum, METH_VARARGS, doc_QBarSet_sum},
    {sipName_toggleSelection, meth_QBarSet_toggleSelection, METH_VARARGS, doc_QBarSet_toggleSelection}
};

PyDoc_STRVAR(doc_QBarSet, "\1QBarSet(str, parent: QObject = None)");


/* Define this type's signals. */
static const pyqt6QtSignal signals_QBarSet[] = {
    {"selectedBarsChanged(QList<int>)", "\1selectedBarsChanged(self, Iterable[int])", SIP_NULLPTR, SIP_NULLPTR},
    {"selectedColorChanged(QColor)", "\1selectedColorChanged(self, Union[QColor, Qt.GlobalColor, int, QGradient])", SIP_NULLPTR, SIP_NULLPTR},
    {"doubleClicked(int)", "\1doubleClicked(self, int)", SIP_NULLPTR, SIP_NULLPTR},
    {"released(int)", "\1released(self, int)", SIP_NULLPTR, SIP_NULLPTR},
    {"pressed(int)", "\1pressed(self, int)", SIP_NULLPTR, SIP_NULLPTR},
    {"labelColorChanged(QColor)", "\1labelColorChanged(self, Union[QColor, Qt.GlobalColor, int, QGradient])", SIP_NULLPTR, SIP_NULLPTR},
    {"borderColorChanged(QColor)", "\1borderColorChanged(self, Union[QColor, Qt.GlobalColor, int, QGradient])", SIP_NULLPTR, SIP_NULLPTR},
    {"colorChanged(QColor)", "\1colorChanged(self, Union[QColor, Qt.GlobalColor, int, QGradient])", SIP_NULLPTR, SIP_NULLPTR},
    {"hovered(bool,int)", "\1hovered(self, bool, int)", SIP_NULLPTR, SIP_NULLPTR},
    {"clicked(int)", "\1clicked(self, int)", SIP_NULLPTR, SIP_NULLPTR},
    {"valueChanged(int)", "\1valueChanged(self, int)", SIP_NULLPTR, SIP_NULLPTR},
    {"valuesRemoved(int,int)", "\1valuesRemoved(self, int, int)", SIP_NULLPTR, SIP_NULLPTR},
    {"valuesAdded(int,int)", "\1valuesAdded(self, int, int)", SIP_NULLPTR, SIP_NULLPTR},
    {"labelFontChanged()", "\1labelFontChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"labelBrushChanged()", "\1labelBrushChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"labelChanged()", "\1labelChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"brushChanged()", "\1brushChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"penChanged()", "\1penChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt6ClassPluginDef plugin_QBarSet = {
    & ::QBarSet::staticMetaObject,
    signals_QBarSet,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtCharts_QBarSet = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QBarSet,
        SIP_NULLPTR,
        &plugin_QBarSet
    },
    {
        sipNameNr_QBarSet,
        {0, 0, 1},
        35, methods_QBarSet,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QBarSet,
    -1,
    -1,
    supers_QBarSet,
    slots_QBarSet,
    init_type_QBarSet,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QBarSet,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QBarSet,
    cast_QBarSet,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR
};
