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

#line 28 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtPositioning/qgeopolygon.sip"
#include <qgeopolygon.h>
#line 29 "/build/pyqt6/src/pyqt6-6.11.0/build/QtPositioning/sipQtPositioningQGeoPolygon.cpp"

#line 28 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 33 "/build/pyqt6/src/pyqt6-6.11.0/build/QtPositioning/sipQtPositioningQGeoPolygon.cpp"
#line 28 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtPositioning/qgeocoordinate.sip"
#include <qgeocoordinate.h>
#line 36 "/build/pyqt6/src/pyqt6-6.11.0/build/QtPositioning/sipQtPositioningQGeoPolygon.cpp"
#line 28 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtPositioning/qgeoshape.sip"
#include <qgeoshape.h>
#line 39 "/build/pyqt6/src/pyqt6-6.11.0/build/QtPositioning/sipQtPositioningQGeoPolygon.cpp"
#line 28 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 42 "/build/pyqt6/src/pyqt6-6.11.0/build/QtPositioning/sipQtPositioningQGeoPolygon.cpp"
#line 26 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 45 "/build/pyqt6/src/pyqt6-6.11.0/build/QtPositioning/sipQtPositioningQGeoPolygon.cpp"
#line 24 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 48 "/build/pyqt6/src/pyqt6-6.11.0/build/QtPositioning/sipQtPositioningQGeoPolygon.cpp"
#line 28 "/build/pyqt6/src/pyqt6-6.11.0/sip/QtPositioning/qgeorectangle.sip"
#include <qgeorectangle.h>
#line 51 "/build/pyqt6/src/pyqt6-6.11.0/build/QtPositioning/sipQtPositioningQGeoPolygon.cpp"


PyDoc_STRVAR(doc_QGeoPolygon_translate, "translate(self, degreesLatitude: float, degreesLongitude: float)");

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

    {
        double a0;
        double a1;
        ::QGeoPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QGeoPolygon, &sipCpp, &a0, &a1))
        {
            sipCpp->translate(a0, a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QGeoPolygon, sipName_translate, doc_QGeoPolygon_translate);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGeoPolygon_translated, "translated(self, degreesLatitude: float, degreesLongitude: float) -> QGeoPolygon");

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

    {
        double a0;
        double a1;
        const ::QGeoPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bdd", &sipSelf, sipType_QGeoPolygon, &sipCpp, &a0, &a1))
        {
            ::QGeoPolygon*sipRes;

            sipRes = new ::QGeoPolygon(sipCpp->translated(a0, a1));

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

    sipNoMethod(sipParseErr, sipName_QGeoPolygon, sipName_translated, doc_QGeoPolygon_translated);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGeoPolygon_length, "length(self, indexFrom: int = 0, indexTo: int = -1) -> float");

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

    {
        ::qsizetype a0 = 0;
        ::qsizetype a1 = -1;
        const ::QGeoPolygon *sipCpp;

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, sipKwdList, SIP_NULLPTR, "B|nn", &sipSelf, sipType_QGeoPolygon, &sipCpp, &a0, &a1))
        {
            double sipRes;

            sipRes = sipCpp->length(a0, a1);

            return PyFloat_FromDouble(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QGeoPolygon, sipName_length, doc_QGeoPolygon_length);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGeoPolygon_size, "size(self) -> int");

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

    {
        const ::QGeoPolygon *sipCpp;

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

            sipRes = sipCpp->size();

            return PyLong_FromLongLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QGeoPolygon, sipName_size, doc_QGeoPolygon_size);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGeoPolygon_addCoordinate, "addCoordinate(self, coordinate: QGeoCoordinate)");

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

    {
        const ::QGeoCoordinate* a0;
        ::QGeoPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QGeoPolygon, &sipCpp, sipType_QGeoCoordinate, &a0))
        {
            sipCpp->addCoordinate(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QGeoPolygon, sipName_addCoordinate, doc_QGeoPolygon_addCoordinate);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGeoPolygon_insertCoordinate, "insertCoordinate(self, index: int, coordinate: QGeoCoordinate)");

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

    {
        ::qsizetype a0;
        const ::QGeoCoordinate* a1;
        ::QGeoPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BnJ9", &sipSelf, sipType_QGeoPolygon, &sipCpp, &a0, sipType_QGeoCoordinate, &a1))
        {
            sipCpp->insertCoordinate(a0, *a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QGeoPolygon, sipName_insertCoordinate, doc_QGeoPolygon_insertCoordinate);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGeoPolygon_replaceCoordinate, "replaceCoordinate(self, index: int, coordinate: QGeoCoordinate)");

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

    {
        ::qsizetype a0;
        const ::QGeoCoordinate* a1;
        ::QGeoPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BnJ9", &sipSelf, sipType_QGeoPolygon, &sipCpp, &a0, sipType_QGeoCoordinate, &a1))
        {
            sipCpp->replaceCoordinate(a0, *a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QGeoPolygon, sipName_replaceCoordinate, doc_QGeoPolygon_replaceCoordinate);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGeoPolygon_coordinateAt, "coordinateAt(self, index: int) -> QGeoCoordinate");

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

    {
        ::qsizetype a0;
        const ::QGeoPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_QGeoPolygon, &sipCpp, &a0))
        {
            ::QGeoCoordinate*sipRes;

            sipRes = new ::QGeoCoordinate(sipCpp->coordinateAt(a0));

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

    sipNoMethod(sipParseErr, sipName_QGeoPolygon, sipName_coordinateAt, doc_QGeoPolygon_coordinateAt);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGeoPolygon_containsCoordinate, "containsCoordinate(self, coordinate: QGeoCoordinate) -> bool");

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

    {
        const ::QGeoCoordinate* a0;
        const ::QGeoPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QGeoPolygon, &sipCpp, sipType_QGeoCoordinate, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->containsCoordinate(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QGeoPolygon, sipName_containsCoordinate, doc_QGeoPolygon_containsCoordinate);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGeoPolygon_removeCoordinate, "removeCoordinate(self, coordinate: QGeoCoordinate)\n"
"removeCoordinate(self, index: int)");

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

    {
        const ::QGeoCoordinate* a0;
        ::QGeoPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QGeoPolygon, &sipCpp, sipType_QGeoCoordinate, &a0))
        {
            sipCpp->removeCoordinate(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        ::qsizetype a0;
        ::QGeoPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_QGeoPolygon, &sipCpp, &a0))
        {
            sipCpp->removeCoordinate(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QGeoPolygon, sipName_removeCoordinate, doc_QGeoPolygon_removeCoordinate);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGeoPolygon_toString, "toString(self) -> str");

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

    {
        const ::QGeoPolygon *sipCpp;

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

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

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

    sipNoMethod(sipParseErr, sipName_QGeoPolygon, sipName_toString, doc_QGeoPolygon_toString);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGeoPolygon_addHole, "addHole(self, holePath: Iterable[QGeoCoordinate])\n"
"addHole(self, holePath: Any)");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QGeoPolygon, &sipCpp, sipType_QList_0100QGeoCoordinate, &a0, &a0State))
        {
            sipCpp->addHole(*a0);
            sipReleaseType(const_cast<QList< ::QGeoCoordinate> *>(a0), sipType_QList_0100QGeoCoordinate, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const ::QVariant* a0;
        int a0State = 0;
        ::QGeoPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QGeoPolygon, &sipCpp, sipType_QVariant, &a0, &a0State))
        {
            sipCpp->addHole(*a0);
            sipReleaseType(const_cast< ::QVariant *>(a0), sipType_QVariant, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QGeoPolygon, sipName_addHole, doc_QGeoPolygon_addHole);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGeoPolygon_hole, "hole(self, index: int) -> list[Any]");

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

    {
        ::qsizetype a0;
        const ::QGeoPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_QGeoPolygon, &sipCpp, &a0))
        {
            ::QVariantList*sipRes;

            sipRes = new ::QVariantList(sipCpp->hole(a0));

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

    sipNoMethod(sipParseErr, sipName_QGeoPolygon, sipName_hole, doc_QGeoPolygon_hole);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGeoPolygon_holePath, "holePath(self, index: int) -> list[QGeoCoordinate]");

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

    {
        ::qsizetype a0;
        const ::QGeoPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_QGeoPolygon, &sipCpp, &a0))
        {
            QList< ::QGeoCoordinate>*sipRes;

            sipRes = new QList< ::QGeoCoordinate>(sipCpp->holePath(a0));

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

    sipNoMethod(sipParseErr, sipName_QGeoPolygon, sipName_holePath, doc_QGeoPolygon_holePath);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGeoPolygon_removeHole, "removeHole(self, index: int)");

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

    {
        ::qsizetype a0;
        ::QGeoPolygon *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bn", &sipSelf, sipType_QGeoPolygon, &sipCpp, &a0))
        {
            sipCpp->removeHole(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QGeoPolygon, sipName_removeHole, doc_QGeoPolygon_removeHole);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGeoPolygon_holesCount, "holesCount(self) -> int");

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

    {
        const ::QGeoPolygon *sipCpp;

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

            sipRes = sipCpp->holesCount();

            return PyLong_FromLongLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QGeoPolygon, sipName_holesCount, doc_QGeoPolygon_holesCount);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGeoPolygon_setPerimeter, "setPerimeter(self, path: Iterable[QGeoCoordinate])");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QGeoPolygon, &sipCpp, sipType_QList_0100QGeoCoordinate, &a0, &a0State))
        {
            sipCpp->setPerimeter(*a0);
            sipReleaseType(const_cast<QList< ::QGeoCoordinate> *>(a0), sipType_QList_0100QGeoCoordinate, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QGeoPolygon, sipName_setPerimeter, doc_QGeoPolygon_setPerimeter);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QGeoPolygon_perimeter, "perimeter(self) -> list[QGeoCoordinate]");

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

    {
        const ::QGeoPolygon *sipCpp;

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

            sipRes = new QList< ::QGeoCoordinate>(sipCpp->perimeter());

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

    sipNoMethod(sipParseErr, sipName_QGeoPolygon, sipName_perimeter, doc_QGeoPolygon_perimeter);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QGeoPolygon)
        return sipCppV;

    if (targetType == sipType_QGeoShape)
        return static_cast< ::QGeoShape *>(sipCpp);

    return SIP_NULLPTR;
}


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


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


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


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


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


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


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

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

            return sipCpp;
        }
    }

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J1", sipType_QList_0100QGeoCoordinate, &a0, &a0State))
        {
            sipCpp = new ::QGeoPolygon(*a0);
            sipReleaseType(const_cast<QList< ::QGeoCoordinate> *>(a0), sipType_QList_0100QGeoCoordinate, a0State);

            return sipCpp;
        }
    }

    {
        const ::QGeoPolygon* a0;

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

            return sipCpp;
        }
    }

    {
        const ::QGeoShape* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


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


static PyMethodDef methods_QGeoPolygon[] = {
    {sipName_addCoordinate, meth_QGeoPolygon_addCoordinate, METH_VARARGS, doc_QGeoPolygon_addCoordinate},
    {sipName_addHole, meth_QGeoPolygon_addHole, METH_VARARGS, doc_QGeoPolygon_addHole},
    {sipName_containsCoordinate, meth_QGeoPolygon_containsCoordinate, METH_VARARGS, doc_QGeoPolygon_containsCoordinate},
    {sipName_coordinateAt, meth_QGeoPolygon_coordinateAt, METH_VARARGS, doc_QGeoPolygon_coordinateAt},
    {sipName_hole, meth_QGeoPolygon_hole, METH_VARARGS, doc_QGeoPolygon_hole},
    {sipName_holePath, meth_QGeoPolygon_holePath, METH_VARARGS, doc_QGeoPolygon_holePath},
    {sipName_holesCount, meth_QGeoPolygon_holesCount, METH_VARARGS, doc_QGeoPolygon_holesCount},
    {sipName_insertCoordinate, meth_QGeoPolygon_insertCoordinate, METH_VARARGS, doc_QGeoPolygon_insertCoordinate},
    {sipName_length, SIP_MLMETH_CAST(meth_QGeoPolygon_length), METH_VARARGS|METH_KEYWORDS, doc_QGeoPolygon_length},
    {sipName_perimeter, meth_QGeoPolygon_perimeter, METH_VARARGS, doc_QGeoPolygon_perimeter},
    {sipName_removeCoordinate, meth_QGeoPolygon_removeCoordinate, METH_VARARGS, doc_QGeoPolygon_removeCoordinate},
    {sipName_removeHole, meth_QGeoPolygon_removeHole, METH_VARARGS, doc_QGeoPolygon_removeHole},
    {sipName_replaceCoordinate, meth_QGeoPolygon_replaceCoordinate, METH_VARARGS, doc_QGeoPolygon_replaceCoordinate},
    {sipName_setPerimeter, meth_QGeoPolygon_setPerimeter, METH_VARARGS, doc_QGeoPolygon_setPerimeter},
    {sipName_size, meth_QGeoPolygon_size, METH_VARARGS, doc_QGeoPolygon_size},
    {sipName_toString, meth_QGeoPolygon_toString, METH_VARARGS, doc_QGeoPolygon_toString},
    {sipName_translate, meth_QGeoPolygon_translate, METH_VARARGS, doc_QGeoPolygon_translate},
    {sipName_translated, meth_QGeoPolygon_translated, METH_VARARGS, doc_QGeoPolygon_translated}
};

PyDoc_STRVAR(doc_QGeoPolygon, "\1QGeoPolygon()\n"
"QGeoPolygon(path: Iterable[QGeoCoordinate])\n"
"QGeoPolygon(other: QGeoPolygon)\n"
"QGeoPolygon(other: QGeoShape)");


sipClassTypeDef sipTypeDef_QtPositioning_QGeoPolygon = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QGeoPolygon,
        SIP_NULLPTR,
        SIP_NULLPTR,
    },
    {
        sipNameNr_QGeoPolygon,
        {0, 0, 1},
        18, methods_QGeoPolygon,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QGeoPolygon,
    -1,
    -1,
    supers_QGeoPolygon,
    SIP_NULLPTR,
    init_type_QGeoPolygon,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QGeoPolygon,
    assign_QGeoPolygon,
    array_QGeoPolygon,
    copy_QGeoPolygon,
    release_QGeoPolygon,
    cast_QGeoPolygon,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QGeoPolygon,
    sizeof (::QGeoPolygon),
};
