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

#line 26 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/sip/QtGraphs/qgraphstheme.sip"
#include <qgraphstheme.h>
#line 29 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQGraphsLine.cpp"

#line 26 "/usr/lib/python3.14/site-packages/PyQt6/bindings/QtGui/qcolor.sip"
#include <qcolor.h>
#line 33 "/build/pyqt6-graphs/src/pyqt6_graphs-6.11.0/build/QtGraphs/sipQtGraphsQGraphsLine.cpp"


PyDoc_STRVAR(doc_QGraphsLine_swap, "swap(self, other: QGraphsLine)");

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

    {
        ::QGraphsLine* a0;
        ::QGraphsLine *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QGraphsLine, &sipCpp, sipType_QGraphsLine, &a0))
        {
            sipCpp->swap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QGraphsLine, sipName_swap, doc_QGraphsLine_swap);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGraphsLine_mainColor, "mainColor(self) -> QColor");

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

    {
        const ::QGraphsLine *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QGraphsLine, sipName_mainColor, doc_QGraphsLine_mainColor);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGraphsLine_setMainColor, "setMainColor(self, newColor: QColor|Qt.GlobalColor|int)");

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QGraphsLine, sipName_setMainColor, doc_QGraphsLine_setMainColor);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGraphsLine_subColor, "subColor(self) -> QColor");

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

    {
        const ::QGraphsLine *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QGraphsLine, sipName_subColor, doc_QGraphsLine_subColor);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGraphsLine_setSubColor, "setSubColor(self, newColor: QColor|Qt.GlobalColor|int)");

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QGraphsLine, sipName_setSubColor, doc_QGraphsLine_setSubColor);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGraphsLine_mainWidth, "mainWidth(self) -> float");

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

    {
        const ::QGraphsLine *sipCpp;

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

            sipRes = sipCpp->mainWidth();

            return PyFloat_FromDouble(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QGraphsLine, sipName_mainWidth, doc_QGraphsLine_mainWidth);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGraphsLine_setMainWidth, "setMainWidth(self, newWidth: float)");

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

    {
        ::qreal a0;
        ::QGraphsLine *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QGraphsLine, sipName_setMainWidth, doc_QGraphsLine_setMainWidth);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGraphsLine_subWidth, "subWidth(self) -> float");

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

    {
        const ::QGraphsLine *sipCpp;

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

            sipRes = sipCpp->subWidth();

            return PyFloat_FromDouble(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QGraphsLine, sipName_subWidth, doc_QGraphsLine_subWidth);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGraphsLine_setSubWidth, "setSubWidth(self, newWidth: float)");

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

    {
        ::qreal a0;
        ::QGraphsLine *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QGraphsLine, sipName_setSubWidth, doc_QGraphsLine_setSubWidth);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGraphsLine_labelTextColor, "labelTextColor(self) -> QColor");

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

    {
        const ::QGraphsLine *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QGraphsLine, sipName_labelTextColor, doc_QGraphsLine_labelTextColor);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGraphsLine_setLabelTextColor, "setLabelTextColor(self, newColor: QColor|Qt.GlobalColor|int)");

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

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QGraphsLine, sipName_setLabelTextColor, doc_QGraphsLine_setLabelTextColor);

    return SIP_NULLPTR;
}


extern "C" {static PyObject *slot_QGraphsLine___ne__(PyObject *, PyObject *);}
static PyObject *slot_QGraphsLine___ne__(PyObject *sipSelf, PyObject *sipArg)
{
    ::QGraphsLine *sipCpp = reinterpret_cast< ::QGraphsLine *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf, sipType_QGraphsLine));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const ::QGraphsLine* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QGraphsLine, &a0))
        {
            bool sipRes;

            sipRes = operator!=((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    return sipPySlotExtend(&sipModuleAPI_QtGraphs, ne_slot, sipType_QGraphsLine, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_QGraphsLine___eq__(PyObject *, PyObject *);}
static PyObject *slot_QGraphsLine___eq__(PyObject *sipSelf, PyObject *sipArg)
{
    ::QGraphsLine *sipCpp = reinterpret_cast< ::QGraphsLine *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf, sipType_QGraphsLine));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const ::QGraphsLine* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QGraphsLine, &a0))
        {
            bool sipRes;

            sipRes = operator==((*sipCpp), *a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    return sipPySlotExtend(&sipModuleAPI_QtGraphs, eq_slot, sipType_QGraphsLine, sipSelf, sipArg);
}


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


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


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const ::QGraphsLine* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QGraphsLine[] = {
    {(void *)slot_QGraphsLine___ne__, ne_slot},
    {(void *)slot_QGraphsLine___eq__, eq_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QGraphsLine[] = {
    {sipName_labelTextColor, meth_QGraphsLine_labelTextColor, METH_VARARGS, doc_QGraphsLine_labelTextColor},
    {sipName_mainColor, meth_QGraphsLine_mainColor, METH_VARARGS, doc_QGraphsLine_mainColor},
    {sipName_mainWidth, meth_QGraphsLine_mainWidth, METH_VARARGS, doc_QGraphsLine_mainWidth},
    {sipName_setLabelTextColor, meth_QGraphsLine_setLabelTextColor, METH_VARARGS, doc_QGraphsLine_setLabelTextColor},
    {sipName_setMainColor, meth_QGraphsLine_setMainColor, METH_VARARGS, doc_QGraphsLine_setMainColor},
    {sipName_setMainWidth, meth_QGraphsLine_setMainWidth, METH_VARARGS, doc_QGraphsLine_setMainWidth},
    {sipName_setSubColor, meth_QGraphsLine_setSubColor, METH_VARARGS, doc_QGraphsLine_setSubColor},
    {sipName_setSubWidth, meth_QGraphsLine_setSubWidth, METH_VARARGS, doc_QGraphsLine_setSubWidth},
    {sipName_subColor, meth_QGraphsLine_subColor, METH_VARARGS, doc_QGraphsLine_subColor},
    {sipName_subWidth, meth_QGraphsLine_subWidth, METH_VARARGS, doc_QGraphsLine_subWidth},
    {sipName_swap, meth_QGraphsLine_swap, METH_VARARGS, doc_QGraphsLine_swap}
};

PyDoc_STRVAR(doc_QGraphsLine, "\1QGraphsLine()\n"
"QGraphsLine(other: QGraphsLine)");


sipClassTypeDef sipTypeDef_QtGraphs_QGraphsLine = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QGraphsLine,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_QGraphsLine,
        {0, 0, 1},
        11, methods_QGraphsLine,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QGraphsLine,
    -1,
    sipNameNr_PyQt6_sip_simplewrapper,
    SIP_NULLPTR,
    slots_QGraphsLine,
    init_type_QGraphsLine,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QGraphsLine,
    assign_QGraphsLine,
    array_QGraphsLine,
    copy_QGraphsLine,
    release_QGraphsLine,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QGraphsLine,
    sizeof (::QGraphsLine),
};
