/*
 * 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/qbarcategoryaxis.sip"
#include <qbarcategoryaxis.h>
#line 29 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQBarCategoryAxis.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/sipQtChartsQBarCategoryAxis.cpp"
#line 24 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qstring.sip"
#include <qstring.h>
#line 36 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQBarCategoryAxis.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qstringlist.sip"
#include <qstringlist.h>
#line 39 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQBarCategoryAxis.cpp"
#line 26 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/sip/QtCharts/qabstractaxis.sip"
#include <qabstractaxis.h>
#line 42 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQBarCategoryAxis.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qcolor.sip"
#include <qcolor.h>
#line 45 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQBarCategoryAxis.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qpen.sip"
#include <qpen.h>
#line 48 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQBarCategoryAxis.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qbrush.sip"
#include <qbrush.h>
#line 51 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQBarCategoryAxis.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qfont.sip"
#include <qfont.h>
#line 54 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQBarCategoryAxis.cpp"
#line 25 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 57 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQBarCategoryAxis.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 62 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQBarCategoryAxis.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 67 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQBarCategoryAxis.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 70 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQBarCategoryAxis.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 73 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQBarCategoryAxis.cpp"
#line 277 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 76 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQBarCategoryAxis.cpp"
#line 254 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 79 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQBarCategoryAxis.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qvariant.sip"
#include <qvariant.h>
#line 82 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQBarCategoryAxis.cpp"
#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 85 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQBarCategoryAxis.cpp"
#line 30 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 88 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQBarCategoryAxis.cpp"
#line 135 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 91 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQBarCategoryAxis.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/sipQtChartsQBarCategoryAxis.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/sipQtChartsQBarCategoryAxis.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/sipQtChartsQBarCategoryAxis.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/sipQtChartsQBarCategoryAxis.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/sipQtChartsQBarCategoryAxis.cpp"


class sipQBarCategoryAxis : public ::QBarCategoryAxis
{
public:
    sipQBarCategoryAxis(::QObject*);
    virtual ~sipQBarCategoryAxis();

    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:
    void disconnectNotify(const ::QMetaMethod&) SIP_OVERRIDE;
    void connectNotify(const ::QMetaMethod&) SIP_OVERRIDE;
    void customEvent(::QEvent*) SIP_OVERRIDE;
    void childEvent(::QChildEvent*) SIP_OVERRIDE;
    void timerEvent(::QTimerEvent*) SIP_OVERRIDE;
    bool eventFilter(::QObject*, ::QEvent*) SIP_OVERRIDE;
    bool event(::QEvent*) SIP_OVERRIDE;
    ::QAbstractAxis::AxisType type() const SIP_OVERRIDE;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[8];
};

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

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

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

    return ::QBarCategoryAxis::metaObject();
}

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

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

    return _id;
}

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

    return (sip_QtCharts_qt_metacast(sipPySelf, sipType_QBarCategoryAxis, _clname, &sipCpp) ? sipCpp : ::QBarCategoryAxis::qt_metacast(_clname));
}

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

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

    if (!sipMeth)
    {
        ::QBarCategoryAxis::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);
}

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

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

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

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

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

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

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

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

    if (!sipMeth)
    {
        ::QBarCategoryAxis::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);
}

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

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

    if (!sipMeth)
        return ::QBarCategoryAxis::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);
}

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

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

    if (!sipMeth)
        return ::QBarCategoryAxis::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);
}

::QAbstractAxis::AxisType sipQBarCategoryAxis::type() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

    extern ::QAbstractAxis::AxisType sipVH_QtCharts_6(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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


PyDoc_STRVAR(doc_QBarCategoryAxis_type, "type(self) -> QAbstractAxis.AxisType");

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

    {
        const ::QBarCategoryAxis *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QBarCategoryAxis, &sipCpp))
        {
            ::QAbstractAxis::AxisType sipRes;

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

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

    sipNoMethod(sipParseErr, sipName_QBarCategoryAxis, sipName_type, doc_QBarCategoryAxis_type);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarCategoryAxis_append, "append(self, categories: Iterable[str|None])\n"
"append(self, category: str|None)");

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

    {
        const ::QStringList* a0;
        int a0State = 0;
        ::QBarCategoryAxis *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QBarCategoryAxis, &sipCpp, sipType_QStringList, &a0, &a0State))
        {
            sipCpp->append(*a0);
            sipReleaseType(const_cast< ::QStringList *>(a0), sipType_QStringList, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarCategoryAxis, sipName_append, doc_QBarCategoryAxis_append);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarCategoryAxis_remove, "remove(self, category: str|None)");

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarCategoryAxis, sipName_remove, doc_QBarCategoryAxis_remove);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarCategoryAxis_insert, "insert(self, index: int, category: str|None)");

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

    {
        int a0;
        const ::QString* a1;
        int a1State = 0;
        ::QBarCategoryAxis *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ1", &sipSelf, sipType_QBarCategoryAxis, &sipCpp, &a0, sipType_QString, &a1, &a1State))
        {
            sipCpp->insert(a0, *a1);
            sipReleaseType(const_cast< ::QString *>(a1), sipType_QString, a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarCategoryAxis, sipName_insert, doc_QBarCategoryAxis_insert);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarCategoryAxis_replace, "replace(self, oldCategory: str|None, newCategory: str|None)");

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

    {
        const ::QString* a0;
        int a0State = 0;
        const ::QString* a1;
        int a1State = 0;
        ::QBarCategoryAxis *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QBarCategoryAxis, &sipCpp, sipType_QString, &a0, &a0State, sipType_QString, &a1, &a1State))
        {
            sipCpp->replace(*a0, *a1);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);
            sipReleaseType(const_cast< ::QString *>(a1), sipType_QString, a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarCategoryAxis, sipName_replace, doc_QBarCategoryAxis_replace);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarCategoryAxis_clear, "clear(self)");

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

    {
        ::QBarCategoryAxis *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarCategoryAxis, sipName_clear, doc_QBarCategoryAxis_clear);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarCategoryAxis_setCategories, "setCategories(self, categories: Iterable[str|None])");

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

    {
        const ::QStringList* a0;
        int a0State = 0;
        ::QBarCategoryAxis *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QBarCategoryAxis, &sipCpp, sipType_QStringList, &a0, &a0State))
        {
            sipCpp->setCategories(*a0);
            sipReleaseType(const_cast< ::QStringList *>(a0), sipType_QStringList, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarCategoryAxis, sipName_setCategories, doc_QBarCategoryAxis_setCategories);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarCategoryAxis_categories, "categories(self) -> list[str]");

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

    {
        ::QBarCategoryAxis *sipCpp;

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

            sipRes = new ::QStringList(sipCpp->categories());

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

    sipNoMethod(sipParseErr, sipName_QBarCategoryAxis, sipName_categories, doc_QBarCategoryAxis_categories);

    return SIP_NULLPTR;
}


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

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

    {
        const ::QBarCategoryAxis *sipCpp;

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

            sipRes = sipCpp->count();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarCategoryAxis, sipName_count, doc_QBarCategoryAxis_count);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarCategoryAxis_at, "at(self, index: int) -> str");

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

    {
        int a0;
        const ::QBarCategoryAxis *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QBarCategoryAxis, &sipCpp, &a0))
        {
            ::QString*sipRes;

            sipRes = new ::QString(sipCpp->at(a0));

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

    sipNoMethod(sipParseErr, sipName_QBarCategoryAxis, sipName_at, doc_QBarCategoryAxis_at);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarCategoryAxis_setMin, "setMin(self, minCategory: str|None)");

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarCategoryAxis, sipName_setMin, doc_QBarCategoryAxis_setMin);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarCategoryAxis_min, "min(self) -> str");

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

    {
        const ::QBarCategoryAxis *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QBarCategoryAxis, sipName_min, doc_QBarCategoryAxis_min);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarCategoryAxis_setMax, "setMax(self, maxCategory: str|None)");

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarCategoryAxis, sipName_setMax, doc_QBarCategoryAxis_setMax);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarCategoryAxis_max, "max(self) -> str");

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

    {
        const ::QBarCategoryAxis *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QBarCategoryAxis, sipName_max, doc_QBarCategoryAxis_max);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QBarCategoryAxis_setRange, "setRange(self, minCategory: str|None, maxCategory: str|None)");

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

    {
        const ::QString* a0;
        int a0State = 0;
        const ::QString* a1;
        int a1State = 0;
        ::QBarCategoryAxis *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1J1", &sipSelf, sipType_QBarCategoryAxis, &sipCpp, sipType_QString, &a0, &a0State, sipType_QString, &a1, &a1State))
        {
            sipCpp->setRange(*a0, *a1);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);
            sipReleaseType(const_cast< ::QString *>(a1), sipType_QString, a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QBarCategoryAxis, sipName_setRange, doc_QBarCategoryAxis_setRange);

    return SIP_NULLPTR;
}


extern "C" {static Py_ssize_t slot_QBarCategoryAxis___len__(PyObject *);}
static Py_ssize_t slot_QBarCategoryAxis___len__(PyObject *sipSelf)
{
    ::QBarCategoryAxis *sipCpp = reinterpret_cast< ::QBarCategoryAxis *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf, sipType_QBarCategoryAxis));

    if (!sipCpp)
        return 0;


    {
        {
            Py_ssize_t sipRes = 0;

#line 1 "Auto-generated"
            sipRes = (Py_ssize_t)sipCpp->count();
#line 763 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQBarCategoryAxis.cpp"

            return sipRes;
        }
    }

    return 0;
}


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

    if (targetType == sipType_QBarCategoryAxis)
        return sipCppV;

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

    return SIP_NULLPTR;
}


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

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


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


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


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

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


extern "C" {static void *init_type_QBarCategoryAxis(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QBarCategoryAxis(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQBarCategoryAxis *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 sipQBarCategoryAxis(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


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


/* Define this type's Python slots. */
static sipPySlotDef slots_QBarCategoryAxis[] = {
    {(void *)slot_QBarCategoryAxis___len__, len_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QBarCategoryAxis[] = {
    {sipName_append, meth_QBarCategoryAxis_append, METH_VARARGS, doc_QBarCategoryAxis_append},
    {sipName_at, meth_QBarCategoryAxis_at, METH_VARARGS, doc_QBarCategoryAxis_at},
    {sipName_categories, meth_QBarCategoryAxis_categories, METH_VARARGS, doc_QBarCategoryAxis_categories},
    {sipName_clear, meth_QBarCategoryAxis_clear, METH_VARARGS, doc_QBarCategoryAxis_clear},
    {sipName_count, meth_QBarCategoryAxis_count, METH_VARARGS, doc_QBarCategoryAxis_count},
    {sipName_insert, meth_QBarCategoryAxis_insert, METH_VARARGS, doc_QBarCategoryAxis_insert},
    {sipName_max, meth_QBarCategoryAxis_max, METH_VARARGS, doc_QBarCategoryAxis_max},
    {sipName_min, meth_QBarCategoryAxis_min, METH_VARARGS, doc_QBarCategoryAxis_min},
    {sipName_remove, meth_QBarCategoryAxis_remove, METH_VARARGS, doc_QBarCategoryAxis_remove},
    {sipName_replace, meth_QBarCategoryAxis_replace, METH_VARARGS, doc_QBarCategoryAxis_replace},
    {sipName_setCategories, meth_QBarCategoryAxis_setCategories, METH_VARARGS, doc_QBarCategoryAxis_setCategories},
    {sipName_setMax, meth_QBarCategoryAxis_setMax, METH_VARARGS, doc_QBarCategoryAxis_setMax},
    {sipName_setMin, meth_QBarCategoryAxis_setMin, METH_VARARGS, doc_QBarCategoryAxis_setMin},
    {sipName_setRange, meth_QBarCategoryAxis_setRange, METH_VARARGS, doc_QBarCategoryAxis_setRange},
    {sipName_type, meth_QBarCategoryAxis_type, METH_VARARGS, doc_QBarCategoryAxis_type}
};

PyDoc_STRVAR(doc_QBarCategoryAxis, "\1QBarCategoryAxis(parent: QObject|None = None)");


/* Define this type's signals. */
static const pyqt6QtSignal signals_QBarCategoryAxis[] = {
    {"countChanged()", "\1countChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {"rangeChanged(QString,QString)", "\1rangeChanged(self, min: str|None, max: str|None)", SIP_NULLPTR, SIP_NULLPTR},
    {"maxChanged(QString)", "\1maxChanged(self, max: str|None)", SIP_NULLPTR, SIP_NULLPTR},
    {"minChanged(QString)", "\1minChanged(self, min: str|None)", SIP_NULLPTR, SIP_NULLPTR},
    {"categoriesChanged()", "\1categoriesChanged(self)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt6ClassPluginDef plugin_QBarCategoryAxis = {
    &::QBarCategoryAxis::staticMetaObject,
    signals_QBarCategoryAxis,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtCharts_QBarCategoryAxis = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QBarCategoryAxis,
        SIP_NULLPTR,
        &plugin_QBarCategoryAxis,
    },
    {
        sipNameNr_QBarCategoryAxis,
        {0, 0, 1},
        15, methods_QBarCategoryAxis,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QBarCategoryAxis,
    -1,
    -1,
    supers_QBarCategoryAxis,
    slots_QBarCategoryAxis,
    init_type_QBarCategoryAxis,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QBarCategoryAxis,
    SIP_NULLPTR,
    array_QBarCategoryAxis,
    SIP_NULLPTR,
    release_QBarCategoryAxis,
    cast_QBarCategoryAxis,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QBarCategoryAxis,
    sizeof (::QBarCategoryAxis),
};
