/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.6.1
 *
 * Copyright (c) 2022 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt6-Charts.
 * 
 * This file may be used under the terms of the GNU General Public License
 * version 3.0 as published by the Free Software Foundation and appearing in
 * the file LICENSE included in the packaging of this file.  Please review the
 * following information to ensure the GNU General Public License version 3.0
 * requirements will be met: http://www.gnu.org/copyleft/gpl.html.
 * 
 * If you do not wish to use this file under the terms of the GPL version 3.0
 * then you may purchase a commercial license.  For more information contact
 * info@riverbankcomputing.com.
 * 
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */

#include "sipAPIQtCharts.h"

#line 25 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qflags.sip"
#include <qglobal.h>
#line 29 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQFlags0100QChartAnimationOption.cpp"

#line 26 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/sip/QtCharts/qchart.sip"
#include <qchart.h>
#line 33 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQFlags0100QChartAnimationOption.cpp"


extern "C" {static void assign_QFlags_0100QChart_AnimationOption(void *, Py_ssize_t, void *);}
static void assign_QFlags_0100QChart_AnimationOption(void *sipDst, Py_ssize_t sipDstIdx, void *sipSrc)
{
    reinterpret_cast<QFlags< ::QChart::AnimationOption> *>(sipDst)[sipDstIdx] = *reinterpret_cast<QFlags< ::QChart::AnimationOption> *>(sipSrc);
}


extern "C" {static void *array_QFlags_0100QChart_AnimationOption(Py_ssize_t);}
static void *array_QFlags_0100QChart_AnimationOption(Py_ssize_t sipNrElem)
{
    return new QFlags< ::QChart::AnimationOption>[sipNrElem];
}


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


/* Call the mapped type's destructor. */
extern "C" {static void release_QFlags_0100QChart_AnimationOption(void *, int, void *);}
static void release_QFlags_0100QChart_AnimationOption(void *sipCppV, int, void *)
{
    QFlags< ::QChart::AnimationOption> *sipCpp = reinterpret_cast<QFlags< ::QChart::AnimationOption> *>(sipCppV);
    delete sipCpp;
}



extern "C" {static int convertTo_QFlags_0100QChart_AnimationOption(PyObject *, void **, int *, PyObject *, void **);}
static int convertTo_QFlags_0100QChart_AnimationOption(PyObject *sipPy, void **sipCppPtrV, int *sipIsErr, PyObject *sipTransferObj, void **)
{
    QFlags< ::QChart::AnimationOption> **sipCppPtr = reinterpret_cast<QFlags< ::QChart::AnimationOption> **>(sipCppPtrV);

#line 29 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qflags.sip"
bool is_enm = true;
unsigned enm = (unsigned)sipConvertToEnum(sipPy, sipType_QChart_AnimationOption);

if (PyErr_Occurred())
{
    PyErr_Clear();
    is_enm = false;
}

if (sipIsErr == NULL)
    return is_enm;

*sipCppPtr = new QFlags<QChart::AnimationOption>(static_cast<QChart::AnimationOption>(enm));

return sipGetState(sipTransferObj);
#line 88 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQFlags0100QChartAnimationOption.cpp"
}


extern "C" {static PyObject *convertFrom_QFlags_0100QChart_AnimationOption(void *, PyObject *);}
static PyObject *convertFrom_QFlags_0100QChart_AnimationOption(void *sipCppV, PyObject *)
{
   QFlags< ::QChart::AnimationOption> *sipCpp = reinterpret_cast<QFlags< ::QChart::AnimationOption> *>(sipCppV);

#line 47 "/usr/lib/python3.10/site-packages/PyQt6/bindings/QtCore/qflags.sip"
return sipConvertFromEnum(sipCpp->operator::QFlags<QChart::AnimationOption>::Int(), sipType_QChart_AnimationOption);
#line 99 "/build/pyqt6-charts/src/PyQt6_Charts-6.3.0/build/QtCharts/sipQtChartsQFlags0100QChartAnimationOption.cpp"
}


sipMappedTypeDef sipTypeDef_QtCharts_QFlags_0100QChart_AnimationOption = {
    {
        SIP_NULLPTR,
        SIP_TYPE_MAPPED,
        sipNameNr_243,
        SIP_NULLPTR,
        SIP_NULLPTR
    },
    {
        -1,
        {0, 0, 1},
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
    },
    assign_QFlags_0100QChart_AnimationOption,
    array_QFlags_0100QChart_AnimationOption,
    copy_QFlags_0100QChart_AnimationOption,
    release_QFlags_0100QChart_AnimationOption,
    convertTo_QFlags_0100QChart_AnimationOption,
    convertFrom_QFlags_0100QChart_AnimationOption
};
