/*
 * 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/qlegend.sip"
#include <qlegend.h>
#line 29 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"

#line 26 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/sip/QtCharts/qchart.sip"
#include <qchart.h>
#line 33 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 325 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qevent.sip"
#include <qevent.h>
#line 36 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 339 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qevent.sip"
#include <qevent.h>
#line 39 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qcolor.sip"
#include <qcolor.h>
#line 42 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qfont.sip"
#include <qfont.h>
#line 45 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.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/sipQtChartsQLegend.cpp"
#line 26 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/sip/QtCharts/qlegendmarker.sip"
#include <qlegendmarker.h>
#line 51 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/sip/QtCharts/qabstractseries.sip"
#include <qabstractseries.h>
#line 54 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qbrush.sip"
#include <qbrush.h>
#line 57 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 25 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 60 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.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 65 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qpen.sip"
#include <qpen.h>
#line 68 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qpainter.sip"
#include <qpainter.h>
#line 71 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 1066 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qstyleoption.sip"
#include <qstyleoption.h>
#line 74 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qwidget.sip"
#include <qwidget.h>
#line 77 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 80 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 163 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 83 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 214 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 86 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 227 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 89 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 239 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qevent.sip"
#include <qevent.h>
#line 92 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 297 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qevent.sip"
#include <qevent.h>
#line 95 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 110 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpoint.sip"
#include <qpoint.h>
#line 98 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qvariant.sip"
#include <qvariant.h>
#line 101 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 104 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 114 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qsize.sip"
#include <qsize.h>
#line 107 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qstyleoption.sip"
#include <qstyleoption.h>
#line 110 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qpainterpath.sip"
#include <qpainterpath.h>
#line 113 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 170 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qrect.sip"
#include <qrect.h>
#line 116 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 135 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 119 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qaction.sip"
#include <qaction.h>
#line 122 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qkeysequence.sip"
#include <qkeysequence.h>
#line 125 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qgraphicswidget.sip"
#include <qgraphicswidget.h>
#line 128 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 24 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qstring.sip"
#include <qstring.h>
#line 131 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 25 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 134 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 90 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qmargins.sip"
#include <qmargins.h>
#line 137 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qpalette.sip"
#include <qpalette.h>
#line 140 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qstyle.sip"
#include <qstyle.h>
#line 143 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qgraphicslayout.sip"
#include <qgraphicslayout.h>
#line 146 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 25 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 149 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.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 154 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 157 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 277 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 160 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 254 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 163 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobject.sip"
#include <qobject.h>
#line 166 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 28 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 169 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 30 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 172 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 135 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 175 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qthread.sip"
#include <qthread.h>
#line 178 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qanystringview.sip"
#include <qanystringview.h>
#line 181 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 25 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 184 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 187 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 190 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 25 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 193 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 135 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 196 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qgraphicstransform.sip"
#include <qgraphicstransform.h>
#line 199 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qgraphicseffect.sip"
#include <qgraphicseffect.h>
#line 202 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 602 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 205 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 30 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qtransform.sip"
#include <qtransform.h>
#line 208 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qregion.sip"
#include <qregion.h>
#line 211 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 30 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qsize.sip"
#include <qsize.h>
#line 214 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 135 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 217 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 115 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 220 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 91 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 223 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 213 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qevent.sip"
#include <qevent.h>
#line 226 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 380 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qevent.sip"
#include <qevent.h>
#line 229 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 192 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 232 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 141 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qgraphicssceneevent.sip"
#include <qgraphicssceneevent.h>
#line 235 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 274 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qpolygon.sip"
#include <qpolygon.h>
#line 238 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 25 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 241 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qcursor.sip"
#include <qcursor.h>
#line 244 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 25 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 247 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 573 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qgraphicsitem.sip"
#include <qgraphicsitem.h>
#line 250 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qgraphicsscene.sip"
#include <qgraphicsscene.h>
#line 253 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qgraphicslayoutitem.sip"
#include <qgraphicslayoutitem.h>
#line 256 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"
#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtWidgets/qsizepolicy.sip"
#include <qsizepolicy.h>
#line 259 "/build/pyqt6-charts/src/pyqt6_charts-6.11.0/build/QtCharts/sipQtChartsQLegend.cpp"


PyDoc_STRVAR(doc_QLegend_paint, "paint(self, painter: QPainter|None, option: QStyleOptionGraphicsItem|None, widget: QWidget|None = None)");

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

    {
        ::QPainter* a0;
        const ::QStyleOptionGraphicsItem* a1;
        ::QWidget* a2 = 0;
        ::QLegend *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "BJ8J8|J8", &sipSelf, sipType_QLegend, &sipCpp, sipType_QPainter, &a0, sipType_QStyleOptionGraphicsItem, &a1, sipType_QWidget, &a2))
        {
            (sipSelfWasArg ? sipCpp->::QLegend::paint(a0, a1, a2) : sipCpp->paint(a0, a1, a2));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_paint, doc_QLegend_paint);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_setBrush, "setBrush(self, brush: QBrush|QColor|Qt.GlobalColor|int|QGradient)");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QLegend, &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_QLegend, sipName_setBrush, doc_QLegend_setBrush);

    return SIP_NULLPTR;
}


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

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

    {
        const ::QLegend *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_brush, doc_QLegend_brush);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_setPen, "setPen(self, pen: QPen|QColor|Qt.GlobalColor|int)");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QLegend, &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_QLegend, sipName_setPen, doc_QLegend_setPen);

    return SIP_NULLPTR;
}


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

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

    {
        const ::QLegend *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_pen, doc_QLegend_pen);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_setAlignment, "setAlignment(self, alignment: Qt.AlignmentFlag)");

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

    {
        ::Qt::Alignment* a0;
        int a0State = 0;
        ::QLegend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QLegend, &sipCpp, sipType_QFlags_0100Qt_AlignmentFlag, &a0, &a0State))
        {
            sipCpp->setAlignment(*a0);
            sipReleaseType(a0, sipType_QFlags_0100Qt_AlignmentFlag, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_setAlignment, doc_QLegend_setAlignment);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_alignment, "alignment(self) -> Qt.AlignmentFlag");

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

    {
        const ::QLegend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLegend, &sipCpp))
        {
            ::Qt::Alignment*sipRes;

            sipRes = new ::Qt::Alignment(sipCpp->alignment());

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

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_alignment, doc_QLegend_alignment);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_detachFromChart, "detachFromChart(self)");

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

    {
        ::QLegend *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_detachFromChart, doc_QLegend_detachFromChart);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_attachToChart, "attachToChart(self)");

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

    {
        ::QLegend *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_attachToChart, doc_QLegend_attachToChart);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_isAttachedToChart, "isAttachedToChart(self) -> bool");

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

    {
        ::QLegend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLegend, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isAttachedToChart();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_isAttachedToChart, doc_QLegend_isAttachedToChart);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_setBackgroundVisible, "setBackgroundVisible(self, visible: bool = True)");

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

    {
        bool a0 = 1;
        ::QLegend *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|b", &sipSelf, sipType_QLegend, &sipCpp, &a0))
        {
            sipCpp->setBackgroundVisible(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_setBackgroundVisible, doc_QLegend_setBackgroundVisible);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_isBackgroundVisible, "isBackgroundVisible(self) -> bool");

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

    {
        const ::QLegend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLegend, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isBackgroundVisible();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_isBackgroundVisible, doc_QLegend_isBackgroundVisible);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_setColor, "setColor(self, color: QColor|Qt.GlobalColor|int)");

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_setColor, doc_QLegend_setColor);

    return SIP_NULLPTR;
}


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

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

    {
        ::QLegend *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_color, doc_QLegend_color);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_setBorderColor, "setBorderColor(self, color: QColor|Qt.GlobalColor|int)");

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_setBorderColor, doc_QLegend_setBorderColor);

    return SIP_NULLPTR;
}


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

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

    {
        ::QLegend *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_borderColor, doc_QLegend_borderColor);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_setFont, "setFont(self, font: QFont)");

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_setFont, doc_QLegend_setFont);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_font, "font(self) -> QFont");

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

    {
        const ::QLegend *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_font, doc_QLegend_font);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_setLabelBrush, "setLabelBrush(self, brush: QBrush|QColor|Qt.GlobalColor|int|QGradient)");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QLegend, &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_QLegend, sipName_setLabelBrush, doc_QLegend_setLabelBrush);

    return SIP_NULLPTR;
}


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

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

    {
        const ::QLegend *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_labelBrush, doc_QLegend_labelBrush);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_setLabelColor, "setLabelColor(self, color: QColor|Qt.GlobalColor|int)");

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_setLabelColor, doc_QLegend_setLabelColor);

    return SIP_NULLPTR;
}


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

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

    {
        const ::QLegend *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_labelColor, doc_QLegend_labelColor);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_markers, "markers(self, series: QAbstractSeries|None = None) -> list[QLegendMarker]");

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

    {
        ::QAbstractSeries* a0 = 0;
        const ::QLegend *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|J8", &sipSelf, sipType_QLegend, &sipCpp, sipType_QAbstractSeries, &a0))
        {
            QList< ::QLegendMarker*>*sipRes;

            sipRes = new QList< ::QLegendMarker*>(sipCpp->markers(a0));

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

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_markers, doc_QLegend_markers);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_hideEvent, "hideEvent(self, event: QHideEvent|None)");

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

    {
        ::QHideEvent* a0;
        ::QLegend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_QLegend, &sipCpp, sipType_QHideEvent, &a0))
        {
            (sipSelfWasArg ? sipCpp->::QLegend::hideEvent(a0) : sipCpp->hideEvent(a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_hideEvent, doc_QLegend_hideEvent);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_showEvent, "showEvent(self, event: QShowEvent|None)");

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

    {
        ::QShowEvent* a0;
        ::QLegend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8", &sipSelf, sipType_QLegend, &sipCpp, sipType_QShowEvent, &a0))
        {
            (sipSelfWasArg ? sipCpp->::QLegend::showEvent(a0) : sipCpp->showEvent(a0));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_showEvent, doc_QLegend_showEvent);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_reverseMarkers, "reverseMarkers(self) -> bool");

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

    {
        ::QLegend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLegend, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->reverseMarkers();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_reverseMarkers, doc_QLegend_reverseMarkers);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_setReverseMarkers, "setReverseMarkers(self, reverseMarkers: bool = True)");

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

    {
        bool a0 = 1;
        ::QLegend *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|b", &sipSelf, sipType_QLegend, &sipCpp, &a0))
        {
            sipCpp->setReverseMarkers(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_setReverseMarkers, doc_QLegend_setReverseMarkers);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_showToolTips, "showToolTips(self) -> bool");

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

    {
        const ::QLegend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLegend, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->showToolTips();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_showToolTips, doc_QLegend_showToolTips);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_setShowToolTips, "setShowToolTips(self, show: bool)");

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

    {
        bool a0;
        ::QLegend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QLegend, &sipCpp, &a0))
        {
            sipCpp->setShowToolTips(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_setShowToolTips, doc_QLegend_setShowToolTips);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_markerShape, "markerShape(self) -> QLegend.MarkerShape");

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

    {
        const ::QLegend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLegend, &sipCpp))
        {
            ::QLegend::MarkerShape sipRes;

            sipRes = sipCpp->markerShape();

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

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_markerShape, doc_QLegend_markerShape);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_setMarkerShape, "setMarkerShape(self, shape: QLegend.MarkerShape)");

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

    {
        ::QLegend::MarkerShape a0;
        ::QLegend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QLegend, &sipCpp, sipType_QLegend_MarkerShape, &a0))
        {
            sipCpp->setMarkerShape(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_setMarkerShape, doc_QLegend_setMarkerShape);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_isInteractive, "isInteractive(self) -> bool");

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

    {
        const ::QLegend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QLegend, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isInteractive();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_isInteractive, doc_QLegend_isInteractive);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QLegend_setInteractive, "setInteractive(self, interactive: bool)");

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

    {
        bool a0;
        ::QLegend *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_QLegend, &sipCpp, &a0))
        {
            sipCpp->setInteractive(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QLegend, sipName_setInteractive, doc_QLegend_setInteractive);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QLegend)
        return sipCppV;

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

    return SIP_NULLPTR;
}


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

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


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


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


static PyMethodDef methods_QLegend[] = {
    {sipName_alignment, meth_QLegend_alignment, METH_VARARGS, doc_QLegend_alignment},
    {sipName_attachToChart, meth_QLegend_attachToChart, METH_VARARGS, doc_QLegend_attachToChart},
    {sipName_borderColor, meth_QLegend_borderColor, METH_VARARGS, doc_QLegend_borderColor},
    {sipName_brush, meth_QLegend_brush, METH_VARARGS, doc_QLegend_brush},
    {sipName_color, meth_QLegend_color, METH_VARARGS, doc_QLegend_color},
    {sipName_detachFromChart, meth_QLegend_detachFromChart, METH_VARARGS, doc_QLegend_detachFromChart},
    {sipName_font, meth_QLegend_font, METH_VARARGS, doc_QLegend_font},
    {sipName_hideEvent, meth_QLegend_hideEvent, METH_VARARGS, doc_QLegend_hideEvent},
    {sipName_isAttachedToChart, meth_QLegend_isAttachedToChart, METH_VARARGS, doc_QLegend_isAttachedToChart},
    {sipName_isBackgroundVisible, meth_QLegend_isBackgroundVisible, METH_VARARGS, doc_QLegend_isBackgroundVisible},
    {sipName_isInteractive, meth_QLegend_isInteractive, METH_VARARGS, doc_QLegend_isInteractive},
    {sipName_labelBrush, meth_QLegend_labelBrush, METH_VARARGS, doc_QLegend_labelBrush},
    {sipName_labelColor, meth_QLegend_labelColor, METH_VARARGS, doc_QLegend_labelColor},
    {sipName_markerShape, meth_QLegend_markerShape, METH_VARARGS, doc_QLegend_markerShape},
    {sipName_markers, SIP_MLMETH_CAST(meth_QLegend_markers), METH_VARARGS|METH_KEYWORDS, doc_QLegend_markers},
    {sipName_paint, SIP_MLMETH_CAST(meth_QLegend_paint), METH_VARARGS|METH_KEYWORDS, doc_QLegend_paint},
    {sipName_pen, meth_QLegend_pen, METH_VARARGS, doc_QLegend_pen},
    {sipName_reverseMarkers, meth_QLegend_reverseMarkers, METH_VARARGS, doc_QLegend_reverseMarkers},
    {sipName_setAlignment, meth_QLegend_setAlignment, METH_VARARGS, doc_QLegend_setAlignment},
    {sipName_setBackgroundVisible, SIP_MLMETH_CAST(meth_QLegend_setBackgroundVisible), METH_VARARGS|METH_KEYWORDS, doc_QLegend_setBackgroundVisible},
    {sipName_setBorderColor, meth_QLegend_setBorderColor, METH_VARARGS, doc_QLegend_setBorderColor},
    {sipName_setBrush, meth_QLegend_setBrush, METH_VARARGS, doc_QLegend_setBrush},
    {sipName_setColor, meth_QLegend_setColor, METH_VARARGS, doc_QLegend_setColor},
    {sipName_setFont, meth_QLegend_setFont, METH_VARARGS, doc_QLegend_setFont},
    {sipName_setInteractive, meth_QLegend_setInteractive, METH_VARARGS, doc_QLegend_setInteractive},
    {sipName_setLabelBrush, meth_QLegend_setLabelBrush, METH_VARARGS, doc_QLegend_setLabelBrush},
    {sipName_setLabelColor, meth_QLegend_setLabelColor, METH_VARARGS, doc_QLegend_setLabelColor},
    {sipName_setMarkerShape, meth_QLegend_setMarkerShape, METH_VARARGS, doc_QLegend_setMarkerShape},
    {sipName_setPen, meth_QLegend_setPen, METH_VARARGS, doc_QLegend_setPen},
    {sipName_setReverseMarkers, SIP_MLMETH_CAST(meth_QLegend_setReverseMarkers), METH_VARARGS|METH_KEYWORDS, doc_QLegend_setReverseMarkers},
    {sipName_setShowToolTips, meth_QLegend_setShowToolTips, METH_VARARGS, doc_QLegend_setShowToolTips},
    {sipName_showEvent, meth_QLegend_showEvent, METH_VARARGS, doc_QLegend_showEvent},
    {sipName_showToolTips, meth_QLegend_showToolTips, METH_VARARGS, doc_QLegend_showToolTips}
};


/* Define the enum members and ints to be added to this type. */
static sipIntInstanceDef intInstances_QLegend[] = {
    {sipName_MarkerShapeDefault, static_cast<int>(::QLegend::MarkerShapeDefault)},
    {sipName_MarkerShapeRectangle, static_cast<int>(::QLegend::MarkerShapeRectangle)},
    {sipName_MarkerShapeCircle, static_cast<int>(::QLegend::MarkerShapeCircle)},
    {sipName_MarkerShapeFromSeries, static_cast<int>(::QLegend::MarkerShapeFromSeries)},
    {sipName_MarkerShapeRotatedRectangle, static_cast<int>(::QLegend::MarkerShapeRotatedRectangle)},
    {sipName_MarkerShapeTriangle, static_cast<int>(::QLegend::MarkerShapeTriangle)},
    {sipName_MarkerShapeStar, static_cast<int>(::QLegend::MarkerShapeStar)},
    {sipName_MarkerShapePentagon, static_cast<int>(::QLegend::MarkerShapePentagon)},
    {0, 0}
};


/* Define this type's signals. */
static const pyqt6QtSignal signals_QLegend[] = {
    {"interactiveChanged(bool)", "\1interactiveChanged(self, interactive: bool)", SIP_NULLPTR, SIP_NULLPTR},
    {"attachedToChartChanged(bool)", "\1attachedToChartChanged(self, attachedToChart: bool)", SIP_NULLPTR, SIP_NULLPTR},
    {"markerShapeChanged(QLegend::MarkerShape)", "\1markerShapeChanged(self, shape: QLegend.MarkerShape)", SIP_NULLPTR, SIP_NULLPTR},
    {"showToolTipsChanged(bool)", "\1showToolTipsChanged(self, showToolTips: bool)", SIP_NULLPTR, SIP_NULLPTR},
    {"reverseMarkersChanged(bool)", "\1reverseMarkersChanged(self, reverseMarkers: bool)", SIP_NULLPTR, SIP_NULLPTR},
    {"labelColorChanged(QColor)", "\1labelColorChanged(self, color: QColor|Qt.GlobalColor|int)", SIP_NULLPTR, SIP_NULLPTR},
    {"fontChanged(QFont)", "\1fontChanged(self, font: QFont)", SIP_NULLPTR, SIP_NULLPTR},
    {"borderColorChanged(QColor)", "\1borderColorChanged(self, color: QColor|Qt.GlobalColor|int)", SIP_NULLPTR, SIP_NULLPTR},
    {"colorChanged(QColor)", "\1colorChanged(self, color: QColor|Qt.GlobalColor|int)", SIP_NULLPTR, SIP_NULLPTR},
    {"backgroundVisibleChanged(bool)", "\1backgroundVisibleChanged(self, visible: bool)", SIP_NULLPTR, SIP_NULLPTR},
    {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR}
};


static pyqt6ClassPluginDef plugin_QLegend = {
    &::QLegend::staticMetaObject,
    signals_QLegend,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtCharts_QLegend = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QLegend,
        SIP_NULLPTR,
        &plugin_QLegend,
    },
    {
        sipNameNr_QLegend,
        {0, 0, 1},
        33, methods_QLegend,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, intInstances_QLegend, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    SIP_NULLPTR,
    -1,
    -1,
    supers_QLegend,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QLegend,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QLegend,
    cast_QLegend,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    0,
};
