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

#line 922 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQPointingDeviceUniqueId.cpp"



PyDoc_STRVAR(doc_QPointingDeviceUniqueId_fromNumericId, "fromNumericId(int) -> QPointingDeviceUniqueId");

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

    {
         ::qint64 a0;

        if (sipParseArgs(&sipParseErr, sipArgs, "n", &a0))
        {
             ::QPointingDeviceUniqueId*sipRes;

            sipRes = new  ::QPointingDeviceUniqueId( ::QPointingDeviceUniqueId::fromNumericId(a0));

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

    sipNoMethod(sipParseErr, sipName_QPointingDeviceUniqueId, sipName_fromNumericId, doc_QPointingDeviceUniqueId_fromNumericId);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QPointingDeviceUniqueId_isValid, "isValid(self) -> bool");

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

    {
        const  ::QPointingDeviceUniqueId *sipCpp;

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

            sipRes = sipCpp->isValid();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QPointingDeviceUniqueId, sipName_isValid, doc_QPointingDeviceUniqueId_isValid);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QPointingDeviceUniqueId_numericId, "numericId(self) -> int");

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

    {
        const  ::QPointingDeviceUniqueId *sipCpp;

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

            sipRes = sipCpp->numericId();

            return PyLong_FromLongLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QPointingDeviceUniqueId, sipName_numericId, doc_QPointingDeviceUniqueId_numericId);

    return SIP_NULLPTR;
}


extern "C" {static PyObject *slot_QPointingDeviceUniqueId___eq__(PyObject *,PyObject *);}
static PyObject *slot_QPointingDeviceUniqueId___eq__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QPointingDeviceUniqueId *sipCpp = reinterpret_cast< ::QPointingDeviceUniqueId *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPointingDeviceUniqueId));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QPointingDeviceUniqueId* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return SIP_NULLPTR;

    return sipPySlotExtend(&sipModuleAPI_QtGui, eq_slot, sipType_QPointingDeviceUniqueId, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_QPointingDeviceUniqueId___ne__(PyObject *,PyObject *);}
static PyObject *slot_QPointingDeviceUniqueId___ne__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QPointingDeviceUniqueId *sipCpp = reinterpret_cast< ::QPointingDeviceUniqueId *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPointingDeviceUniqueId));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
         ::QPointingDeviceUniqueId* a0;

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

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

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return SIP_NULLPTR;

    return sipPySlotExtend(&sipModuleAPI_QtGui, ne_slot, sipType_QPointingDeviceUniqueId, sipSelf, sipArg);
}


extern "C" {static long slot_QPointingDeviceUniqueId___hash__(PyObject *);}
static long slot_QPointingDeviceUniqueId___hash__(PyObject *sipSelf)
{
     ::QPointingDeviceUniqueId *sipCpp = reinterpret_cast< ::QPointingDeviceUniqueId *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QPointingDeviceUniqueId));

    if (!sipCpp)
        return 0L;


    {
        {
            long sipRes = 0;

#line 932 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtGui/qevent.sip"
        sipRes = qHash(*sipCpp);
#line 193 "/build/pyqt5/src/PyQt5-5.15.7/build/QtGui/sipQtGuiQPointingDeviceUniqueId.cpp"

            return sipRes;
        }
    }

    return 0;
}


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


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


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


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


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


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


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

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

            return sipCpp;
        }
    }

    {
        const  ::QPointingDeviceUniqueId* a0;

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

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QPointingDeviceUniqueId[] = {
    {(void *)slot_QPointingDeviceUniqueId___eq__, eq_slot},
    {(void *)slot_QPointingDeviceUniqueId___ne__, ne_slot},
    {(void *)slot_QPointingDeviceUniqueId___hash__, hash_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QPointingDeviceUniqueId[] = {
    {sipName_fromNumericId, meth_QPointingDeviceUniqueId_fromNumericId, METH_VARARGS, doc_QPointingDeviceUniqueId_fromNumericId},
    {sipName_isValid, meth_QPointingDeviceUniqueId_isValid, METH_VARARGS, doc_QPointingDeviceUniqueId_isValid},
    {sipName_numericId, meth_QPointingDeviceUniqueId_numericId, METH_VARARGS, doc_QPointingDeviceUniqueId_numericId}
};

PyDoc_STRVAR(doc_QPointingDeviceUniqueId, "\1QPointingDeviceUniqueId()\n"
"QPointingDeviceUniqueId(QPointingDeviceUniqueId)");


static pyqt5ClassPluginDef plugin_QPointingDeviceUniqueId = {
    SIP_NULLPTR,
    0,
    SIP_NULLPTR,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtGui_QPointingDeviceUniqueId = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QPointingDeviceUniqueId,
        SIP_NULLPTR,
        &plugin_QPointingDeviceUniqueId
    },
    {
        sipNameNr_QPointingDeviceUniqueId,
        {0, 0, 1},
        3, methods_QPointingDeviceUniqueId,
        0, SIP_NULLPTR,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QPointingDeviceUniqueId,
    -1,
    sipNameNr_sip_simplewrapper,
    SIP_NULLPTR,
    slots_QPointingDeviceUniqueId,
    init_type_QPointingDeviceUniqueId,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QPointingDeviceUniqueId,
    assign_QPointingDeviceUniqueId,
    array_QPointingDeviceUniqueId,
    copy_QPointingDeviceUniqueId,
    release_QPointingDeviceUniqueId,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QPointingDeviceUniqueId,
    sizeof ( ::QPointingDeviceUniqueId),
};
