/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt for Python.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 3 as published by the Free Software
** Foundation and appearing in the file LICENSE.LGPL3 included in the
** packaging of this file. Please review the following information to
** ensure the GNU Lesser General Public License version 3 requirements
** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 2.0 or (at your option) the GNU General
** Public license version 3 or any later version approved by the KDE Free
** Qt Foundation. The licenses are as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-2.0.html and
** https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/

//workaround to access protected functions
#define protected public

// default includes
#include <shiboken.h>
#ifndef QT_NO_VERSION_TAGGING
#  define QT_NO_VERSION_TAGGING
#endif
#include <QDebug>
#include <pysidesignal.h>
#include <pysideproperty.h>
#include <pyside.h>
#include <pysideqenum.h>
#include <feature_select.h>
QT_WARNING_DISABLE_DEPRECATED

#include <typeinfo>
#include <signalmanager.h>
#include <pysidemetafunction.h>
#include <iterator>

// module include
#include "pyside6_qtgui_python.h"

// main header
#include "qpointingdevice_wrapper.h"

// inner classes

#include <cctype>
#include <cstring>



template <class T>
static const char *typeNameOf(const T &t)
{
    const char *typeName =  typeid(t).name();
    auto size = std::strlen(typeName);
#if defined(Q_CC_MSVC) // MSVC: "class QPaintDevice * __ptr64"
    if (auto lastStar = strchr(typeName, '*')) {
        // MSVC: "class QPaintDevice * __ptr64"
        while (*--lastStar == ' ') {
        }
        size = lastStar - typeName + 1;
    }
#else // g++, Clang: "QPaintDevice *" -> "P12QPaintDevice"
    if (size > 2 && typeName[0] == 'P' && std::isdigit(typeName[1])) {
        ++typeName;
        --size;
    }
#endif
    char *result = new char[size + 1];
    result[size] = '\0';
    memcpy(result, typeName, size);
    return result;
}

// Native ---------------------------------------------------------

void QPointingDeviceWrapper::resetPyMethodCache()
{
    std::fill_n(m_PyMethodCache, sizeof(m_PyMethodCache) / sizeof(m_PyMethodCache[0]), false);
}

QPointingDeviceWrapper::QPointingDeviceWrapper(QObject * parent) : QPointingDevice(parent)
{
    resetPyMethodCache();
    // ... middle
}

QPointingDeviceWrapper::QPointingDeviceWrapper(const QString & name, qint64 systemId, QInputDevice::DeviceType devType, QPointingDevice::PointerType pType, QFlags<QInputDevice::Capability> caps, int maxPoints, int buttonCount, const QString & seatName, QPointingDeviceUniqueId uniqueId, QObject * parent) : QPointingDevice(name, systemId, devType, pType, caps, maxPoints, buttonCount, seatName, uniqueId, parent)
{
    resetPyMethodCache();
    // ... middle
}

void QPointingDeviceWrapper::childEvent(QChildEvent * event)
{
    if (m_PyMethodCache[0]) {
        return this->::QObject::childEvent(event);
    }
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "childEvent";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[0] = true;
        return this->::QObject::childEvent(event);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(N)",
        Shiboken::Conversions::pointerToPython(SbkPySide6_QtCoreTypes[SBK_QCHILDEVENT_IDX], event)
    ));
    bool invalidateArg1 = PyTuple_GET_ITEM(pyArgs, 0)->ob_refcnt == 1;

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (invalidateArg1)
        Shiboken::Object::invalidate(PyTuple_GET_ITEM(pyArgs, 0));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return;
    }
}

void QPointingDeviceWrapper::connectNotify(const QMetaMethod & signal)
{
    if (m_PyMethodCache[1]) {
        return this->::QObject::connectNotify(signal);
    }
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "connectNotify";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[1] = true;
        return this->::QObject::connectNotify(signal);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(N)",
        Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QMETAMETHOD_IDX], &signal)
    ));

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return;
    }
}

void QPointingDeviceWrapper::customEvent(QEvent * event)
{
    if (m_PyMethodCache[2]) {
        return this->::QObject::customEvent(event);
    }
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "customEvent";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[2] = true;
        return this->::QObject::customEvent(event);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(N)",
        Shiboken::Conversions::pointerToPython(SbkPySide6_QtCoreTypes[SBK_QEVENT_IDX], event)
    ));
    bool invalidateArg1 = PyTuple_GET_ITEM(pyArgs, 0)->ob_refcnt == 1;

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (invalidateArg1)
        Shiboken::Object::invalidate(PyTuple_GET_ITEM(pyArgs, 0));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return;
    }
}

void QPointingDeviceWrapper::disconnectNotify(const QMetaMethod & signal)
{
    if (m_PyMethodCache[3]) {
        return this->::QObject::disconnectNotify(signal);
    }
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "disconnectNotify";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[3] = true;
        return this->::QObject::disconnectNotify(signal);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(N)",
        Shiboken::Conversions::copyToPython(SbkPySide6_QtCoreTypes[SBK_QMETAMETHOD_IDX], &signal)
    ));

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return;
    }
}

bool QPointingDeviceWrapper::event(QEvent * event)
{
    if (m_PyMethodCache[4])
        return this->::QObject::event(event);
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return false;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "event";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[4] = true;
        return this->::QObject::event(event);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(N)",
        Shiboken::Conversions::pointerToPython(SbkPySide6_QtCoreTypes[SBK_QEVENT_IDX], event)
    ));
    bool invalidateArg1 = PyTuple_GET_ITEM(pyArgs, 0)->ob_refcnt == 1;

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (invalidateArg1)
        Shiboken::Object::invalidate(PyTuple_GET_ITEM(pyArgs, 0));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return false;
    }
    // Check return type
    Shiboken::Conversions::PythonToCppConversion pythonToCpp =
        Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), pyResult);
    if (!pythonToCpp) {
        Shiboken::warning(PyExc_RuntimeWarning, 2,
            "Invalid return value in function %s, expected %s, got %s.",
            "QPointingDevice.event",
            "bool",
            Py_TYPE(pyResult)->tp_name);
        return false;
    }
    bool cppResult;
    pythonToCpp(pyResult, &cppResult);
    return cppResult;
}

bool QPointingDeviceWrapper::eventFilter(QObject * watched, QEvent * event)
{
    if (m_PyMethodCache[5])
        return this->::QObject::eventFilter(watched, event);
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return false;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "eventFilter";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[5] = true;
        return this->::QObject::eventFilter(watched, event);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(NN)",
        Shiboken::Conversions::pointerToPython(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], watched),
        Shiboken::Conversions::pointerToPython(SbkPySide6_QtCoreTypes[SBK_QEVENT_IDX], event)
    ));
    bool invalidateArg2 = PyTuple_GET_ITEM(pyArgs, 1)->ob_refcnt == 1;

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (invalidateArg2)
        Shiboken::Object::invalidate(PyTuple_GET_ITEM(pyArgs, 1));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return false;
    }
    // Check return type
    Shiboken::Conversions::PythonToCppConversion pythonToCpp =
        Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), pyResult);
    if (!pythonToCpp) {
        Shiboken::warning(PyExc_RuntimeWarning, 2,
            "Invalid return value in function %s, expected %s, got %s.",
            "QPointingDevice.eventFilter",
            "bool",
            Py_TYPE(pyResult)->tp_name);
        return false;
    }
    bool cppResult;
    pythonToCpp(pyResult, &cppResult);
    return cppResult;
}

void QPointingDeviceWrapper::timerEvent(QTimerEvent * event)
{
    if (m_PyMethodCache[7]) {
        return this->::QObject::timerEvent(event);
    }
    Shiboken::GilState gil;
    if (PyErr_Occurred())
        return;
    static PyObject *nameCache[2] = {};
    static const char *funcName = "timerEvent";
    Shiboken::AutoDecRef pyOverride(Shiboken::BindingManager::instance().getOverride(this, nameCache, funcName));
    if (pyOverride.isNull()) {
        gil.release();
        m_PyMethodCache[7] = true;
        return this->::QObject::timerEvent(event);
    }

    Shiboken::AutoDecRef pyArgs(Py_BuildValue("(N)",
        Shiboken::Conversions::pointerToPython(SbkPySide6_QtCoreTypes[SBK_QTIMEREVENT_IDX], event)
    ));
    bool invalidateArg1 = PyTuple_GET_ITEM(pyArgs, 0)->ob_refcnt == 1;

    Shiboken::AutoDecRef pyResult(PyObject_Call(pyOverride, pyArgs, nullptr));
    if (invalidateArg1)
        Shiboken::Object::invalidate(PyTuple_GET_ITEM(pyArgs, 0));
    if (pyResult.isNull()) {
        // An error happened in python code!
        PyErr_Print();
        return;
    }
}

const QMetaObject *QPointingDeviceWrapper::metaObject() const
{
    if (QObject::d_ptr->metaObject)
        return QObject::d_ptr->dynamicMetaObject();
    SbkObject *pySelf = Shiboken::BindingManager::instance().retrieveWrapper(this);
    if (pySelf == nullptr)
        return QPointingDevice::metaObject();
    return PySide::SignalManager::retrieveMetaObject(reinterpret_cast<PyObject *>(pySelf));
}

int QPointingDeviceWrapper::qt_metacall(QMetaObject::Call call, int id, void **args)
{
    int result = QPointingDevice::qt_metacall(call, id, args);
    return result < 0 ? result : PySide::SignalManager::qt_metacall(this, call, id, args);
}

void *QPointingDeviceWrapper::qt_metacast(const char *_clname)
{
    if (!_clname)
        return {};
    SbkObject *pySelf = Shiboken::BindingManager::instance().retrieveWrapper(this);
    if (pySelf && PySide::inherits(Py_TYPE(pySelf), _clname))
        return static_cast<void *>(const_cast< QPointingDeviceWrapper *>(this));
    return QPointingDevice::qt_metacast(_clname);
}

QPointingDeviceWrapper::~QPointingDeviceWrapper()
{
    SbkObject *wrapper = Shiboken::BindingManager::instance().retrieveWrapper(this);
    Shiboken::Object::destroy(wrapper, this);
}

// Target ---------------------------------------------------------

extern "C" {
static int
Sbk_QPointingDevice_Init(PyObject *self, PyObject *args, PyObject *kwds)
{
    const QMetaObject *metaObject;
    SbkObject *sbkSelf = reinterpret_cast<SbkObject *>(self);
    PySide::Feature::Select(self);
    if (Shiboken::Object::isUserType(self) && !Shiboken::ObjectType::canCallConstructor(self->ob_type, Shiboken::SbkType< ::QPointingDevice >()))
        return -1;

    ::QPointingDeviceWrapper *cptr{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtGui.QPointingDevice.__init__";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[10];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};

    // invalid argument lengths
    if (numArgs == 2 || numArgs == 3 || numArgs == 4 || numArgs == 5 || numArgs == 6)
        goto Sbk_QPointingDevice_Init_TypeError;

    if (!PyArg_ParseTuple(args, "|OOOOOOOOOO:QPointingDevice", &(pyArgs[0]), &(pyArgs[1]), &(pyArgs[2]), &(pyArgs[3]), &(pyArgs[4]), &(pyArgs[5]), &(pyArgs[6]), &(pyArgs[7]), &(pyArgs[8]), &(pyArgs[9])))
        return -1;


    // Overloaded function decisor
    // 0: QPointingDevice::QPointingDevice(QObject*)
    // 1: QPointingDevice::QPointingDevice(QString,qint64,QInputDevice::DeviceType,QPointingDevice::PointerType,QFlags<QInputDevice::Capability>,int,int,QString,QPointingDeviceUniqueId,QObject*)
    if (numArgs == 0) {
        overloadId = 0; // QPointingDevice(QObject*)
    } else if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[0])))) {
        overloadId = 0; // QPointingDevice(QObject*)
    } else if (numArgs >= 7
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArgs[0])))
        && (pythonToCpp[1] = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<qint64>(), (pyArgs[1])))
        && (pythonToCpp[2] = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtGuiTypes[SBK_QINPUTDEVICE_DEVICETYPE_IDX]))->converter, (pyArgs[2])))
        && (pythonToCpp[3] = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX]))->converter, (pyArgs[3])))
        && (pythonToCpp[4] = Shiboken::Conversions::pythonToCppConversion(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtGuiTypes[SBK_QFLAGS_QINPUTDEVICE_CAPABILITY_IDX]))->converter, (pyArgs[4])))
        && (pythonToCpp[5] = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<int>(), (pyArgs[5])))
        && (pythonToCpp[6] = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<int>(), (pyArgs[6])))) {
        if (numArgs == 7) {
            overloadId = 1; // QPointingDevice(QString,qint64,QInputDevice::DeviceType,QPointingDevice::PointerType,QFlags<QInputDevice::Capability>,int,int,QString,QPointingDeviceUniqueId,QObject*)
        } else if (numArgs >= 8
            && (pythonToCpp[7] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArgs[7])))) {
            if (numArgs == 8) {
                overloadId = 1; // QPointingDevice(QString,qint64,QInputDevice::DeviceType,QPointingDevice::PointerType,QFlags<QInputDevice::Capability>,int,int,QString,QPointingDeviceUniqueId,QObject*)
            } else if (numArgs >= 9
                && (pythonToCpp[8] = Shiboken::Conversions::pythonToCppValueConversion(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICEUNIQUEID_IDX], (pyArgs[8])))) {
                if (numArgs == 9) {
                    overloadId = 1; // QPointingDevice(QString,qint64,QInputDevice::DeviceType,QPointingDevice::PointerType,QFlags<QInputDevice::Capability>,int,int,QString,QPointingDeviceUniqueId,QObject*)
                } else if (numArgs >= 10
                    && (pythonToCpp[9] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[9])))) {
                    overloadId = 1; // QPointingDevice(QString,qint64,QInputDevice::DeviceType,QPointingDevice::PointerType,QFlags<QInputDevice::Capability>,int,int,QString,QPointingDeviceUniqueId,QObject*)
                }
            }
        }
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QPointingDevice_Init_TypeError;

    // Call function/method
    switch (overloadId) {
        case 0: // QPointingDevice(QObject * parent)
        {
            if (kwds && PyDict_Size(kwds) > 0) {
                PyObject *value{};
                Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
                static PyObject *const key_parent = Shiboken::String::createStaticString("parent");
                if (PyDict_Contains(kwds, key_parent)) {
                    value = PyDict_GetItem(kwds, key_parent);
                    if (value && pyArgs[0]) {
                        errInfo.reset(key_parent);
                        Py_INCREF(errInfo.object());
                        goto Sbk_QPointingDevice_Init_TypeError;
                    }
                    if (value) {
                        pyArgs[0] = value;
                        if (!(pythonToCpp[0] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[0]))))
                            goto Sbk_QPointingDevice_Init_TypeError;
                    }
                    PyDict_DelItem(kwds_dup, key_parent);
                }
                if (PyDict_Size(kwds_dup) > 0) {
                    errInfo.reset(kwds_dup.release());
                    // fall through to handle extra keyword signals and properties
                }
            }
            if (!Shiboken::Object::isValid(pyArgs[0]))
                return -1;
            ::QObject *cppArg0 = nullptr;
            if (pythonToCpp[0])
                pythonToCpp[0](pyArgs[0], &cppArg0);

            if (!PyErr_Occurred()) {
                // QPointingDevice(QObject*)
                void *addr = PySide::nextQObjectMemoryAddr();
                if (addr) {
                    cptr = new (addr) ::QPointingDeviceWrapper(cppArg0);
                    PySide::setNextQObjectMemoryAddr(0);
                } else {
                    cptr = new ::QPointingDeviceWrapper(cppArg0);
                }

                Shiboken::Object::setParent(pyArgs[0], self);
            }
            break;
        }
        case 1: // QPointingDevice(const QString & name, qint64 systemId, QInputDevice::DeviceType devType, QPointingDevice::PointerType pType, QFlags<QInputDevice::Capability> caps, int maxPoints, int buttonCount, const QString & seatName, QPointingDeviceUniqueId uniqueId, QObject * parent)
        {
            if (kwds && PyDict_Size(kwds) > 0) {
                PyObject *value{};
                Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
                static PyObject *const key_seatName = Shiboken::String::createStaticString("seatName");
                if (PyDict_Contains(kwds, key_seatName)) {
                    value = PyDict_GetItem(kwds, key_seatName);
                    if (value && pyArgs[7]) {
                        errInfo.reset(key_seatName);
                        Py_INCREF(errInfo.object());
                        goto Sbk_QPointingDevice_Init_TypeError;
                    }
                    if (value) {
                        pyArgs[7] = value;
                        if (!(pythonToCpp[7] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArgs[7]))))
                            goto Sbk_QPointingDevice_Init_TypeError;
                    }
                    PyDict_DelItem(kwds_dup, key_seatName);
                }
                static PyObject *const key_uniqueId = Shiboken::String::createStaticString("uniqueId");
                if (PyDict_Contains(kwds, key_uniqueId)) {
                    value = PyDict_GetItem(kwds, key_uniqueId);
                    if (value && pyArgs[8]) {
                        errInfo.reset(key_uniqueId);
                        Py_INCREF(errInfo.object());
                        goto Sbk_QPointingDevice_Init_TypeError;
                    }
                    if (value) {
                        pyArgs[8] = value;
                        if (!(pythonToCpp[8] = Shiboken::Conversions::pythonToCppValueConversion(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICEUNIQUEID_IDX], (pyArgs[8]))))
                            goto Sbk_QPointingDevice_Init_TypeError;
                    }
                    PyDict_DelItem(kwds_dup, key_uniqueId);
                }
                static PyObject *const key_parent = Shiboken::String::createStaticString("parent");
                if (PyDict_Contains(kwds, key_parent)) {
                    value = PyDict_GetItem(kwds, key_parent);
                    if (value && pyArgs[9]) {
                        errInfo.reset(key_parent);
                        Py_INCREF(errInfo.object());
                        goto Sbk_QPointingDevice_Init_TypeError;
                    }
                    if (value) {
                        pyArgs[9] = value;
                        if (!(pythonToCpp[9] = Shiboken::Conversions::pythonToCppPointerConversion(SbkPySide6_QtCoreTypes[SBK_QOBJECT_IDX], (pyArgs[9]))))
                            goto Sbk_QPointingDevice_Init_TypeError;
                    }
                    PyDict_DelItem(kwds_dup, key_parent);
                }
                if (PyDict_Size(kwds_dup) > 0) {
                    errInfo.reset(kwds_dup.release());
                    // fall through to handle extra keyword signals and properties
                }
            }
            ::QString cppArg0;
            pythonToCpp[0](pyArgs[0], &cppArg0);
            qint64 cppArg1;
            pythonToCpp[1](pyArgs[1], &cppArg1);
            ::QInputDevice::DeviceType cppArg2{QInputDevice::DeviceType::Unknown};
            pythonToCpp[2](pyArgs[2], &cppArg2);
            ::QPointingDevice::PointerType cppArg3{QPointingDevice::PointerType::Unknown};
            pythonToCpp[3](pyArgs[3], &cppArg3);
            ::QFlags<QInputDevice::Capability> cppArg4 = QFlags<QInputDevice::Capability>(0);
            pythonToCpp[4](pyArgs[4], &cppArg4);
            int cppArg5;
            pythonToCpp[5](pyArgs[5], &cppArg5);
            int cppArg6;
            pythonToCpp[6](pyArgs[6], &cppArg6);
            ::QString cppArg7 = QString();
            if (pythonToCpp[7])
                pythonToCpp[7](pyArgs[7], &cppArg7);
            if (!Shiboken::Object::isValid(pyArgs[8]))
                return -1;
            ::QPointingDeviceUniqueId cppArg8 = QPointingDeviceUniqueId();
            if (pythonToCpp[8])
                pythonToCpp[8](pyArgs[8], &cppArg8);
            if (!Shiboken::Object::isValid(pyArgs[9]))
                return -1;
            ::QObject *cppArg9 = nullptr;
            if (pythonToCpp[9])
                pythonToCpp[9](pyArgs[9], &cppArg9);

            if (!PyErr_Occurred()) {
                // QPointingDevice(QString,qint64,QInputDevice::DeviceType,QPointingDevice::PointerType,QFlags<QInputDevice::Capability>,int,int,QString,QPointingDeviceUniqueId,QObject*)
                void *addr = PySide::nextQObjectMemoryAddr();
                if (addr) {
                    cptr = new (addr) ::QPointingDeviceWrapper(cppArg0, cppArg1, cppArg2, cppArg3, cppArg4, cppArg5, cppArg6, cppArg7, cppArg8, cppArg9);
                    PySide::setNextQObjectMemoryAddr(0);
                } else {
                    cptr = new ::QPointingDeviceWrapper(cppArg0, cppArg1, cppArg2, cppArg3, cppArg4, cppArg5, cppArg6, cppArg7, cppArg8, cppArg9);
                }

                Shiboken::Object::setParent(pyArgs[9], self);
            }
            break;
        }
    }

    if (PyErr_Occurred() || !Shiboken::Object::setCppPointer(sbkSelf, Shiboken::SbkType< ::QPointingDevice >(), cptr)) {
        delete cptr;
        return -1;
    }
    if (!cptr) goto Sbk_QPointingDevice_Init_TypeError;

    Shiboken::Object::setValidCpp(sbkSelf, true);
    Shiboken::Object::setHasCppWrapper(sbkSelf, true);
    if (Shiboken::BindingManager::instance().hasWrapper(cptr)) {
        Shiboken::BindingManager::instance().releaseWrapper(Shiboken::BindingManager::instance().retrieveWrapper(cptr));
    }
    Shiboken::BindingManager::instance().registerWrapper(sbkSelf, cptr);

    // QObject setup
    PySide::Signal::updateSourceObject(self);
    metaObject = cptr->metaObject(); // <- init python qt properties
    if (!errInfo.isNull() && PyDict_Check(errInfo.object())) {
        if (!PySide::fillQtProperties(self, metaObject, errInfo))
            goto Sbk_QPointingDevice_Init_TypeError;
    };


    return 1;

    Sbk_QPointingDevice_Init_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return -1;
}

static PyObject *Sbk_QPointingDeviceFunc_buttonCount(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QPointingDevice *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtGui.QPointingDevice.buttonCount";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // buttonCount()const
            int cppResult = const_cast<const ::QPointingDevice *>(cppSelf)->buttonCount();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<int>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QPointingDeviceFunc_maximumPoints(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QPointingDevice *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtGui.QPointingDevice.maximumPoints";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // maximumPoints()const
            int cppResult = const_cast<const ::QPointingDevice *>(cppSelf)->maximumPoints();
            pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<int>(), &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QPointingDeviceFunc_pointerType(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QPointingDevice *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtGui.QPointingDevice.pointerType";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // pointerType()const
            QPointingDevice::PointerType cppResult = const_cast<const ::QPointingDevice *>(cppSelf)->pointerType();
            pyResult = Shiboken::Conversions::copyToPython(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX]))->converter, &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}

static PyObject *Sbk_QPointingDeviceFunc_primaryPointingDevice(PyObject *self, PyObject *args, PyObject *kwds)
{
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtGui.QPointingDevice.primaryPointingDevice";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp[1];
    SBK_UNUSED(pythonToCpp)
    const Py_ssize_t numArgs = PyTuple_GET_SIZE(args);
    SBK_UNUSED(numArgs)
    PyObject *pyArgs[] = {0};

    // invalid argument lengths
    if (numArgs > 1) {
        static PyObject *const too_many = Shiboken::String::createStaticString(">");
        errInfo.reset(too_many);
        Py_INCREF(errInfo.object());
        goto Sbk_QPointingDeviceFunc_primaryPointingDevice_TypeError;
    }

    if (!PyArg_ParseTuple(args, "|O:primaryPointingDevice", &(pyArgs[0])))
        return {};


    // Overloaded function decisor
    // 0: static QPointingDevice::primaryPointingDevice(QString)->const QPointingDevice*
    if (numArgs == 0) {
        overloadId = 0; // primaryPointingDevice(QString)
    } else if (numArgs >= 1
        && (pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArgs[0])))) {
        overloadId = 0; // primaryPointingDevice(QString)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QPointingDeviceFunc_primaryPointingDevice_TypeError;

    // Call function/method
    {
        if (kwds && PyDict_Size(kwds) > 0) {
            PyObject *value{};
            Shiboken::AutoDecRef kwds_dup(PyDict_Copy(kwds));
            static PyObject *const key_seatName = Shiboken::String::createStaticString("seatName");
            if (PyDict_Contains(kwds, key_seatName)) {
                value = PyDict_GetItem(kwds, key_seatName);
                if (value && pyArgs[0]) {
                    errInfo.reset(key_seatName);
                    Py_INCREF(errInfo.object());
                    goto Sbk_QPointingDeviceFunc_primaryPointingDevice_TypeError;
                }
                if (value) {
                    pyArgs[0] = value;
                    if (!(pythonToCpp[0] = Shiboken::Conversions::pythonToCppConversion(SbkPySide6_QtCoreTypeConverters[SBK_QSTRING_IDX], (pyArgs[0]))))
                        goto Sbk_QPointingDeviceFunc_primaryPointingDevice_TypeError;
                }
                PyDict_DelItem(kwds_dup, key_seatName);
            }
            if (PyDict_Size(kwds_dup) > 0) {
                errInfo.reset(kwds_dup.release());
                goto Sbk_QPointingDeviceFunc_primaryPointingDevice_TypeError;
            }
        }
        ::QString cppArg0 = QString();
        if (pythonToCpp[0])
            pythonToCpp[0](pyArgs[0], &cppArg0);

        if (!PyErr_Occurred()) {
            // primaryPointingDevice(QString)
            const QPointingDevice * cppResult = ::QPointingDevice::primaryPointingDevice(cppArg0);
            pyResult = Shiboken::Conversions::pointerToPython(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_IDX], cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;

    Sbk_QPointingDeviceFunc_primaryPointingDevice_TypeError:
        Shiboken::setErrorAboutWrongArguments(args, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QPointingDeviceFunc_setCapabilities(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QPointingDevice *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtGui.QPointingDevice.setCapabilities";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QPointingDevice::setCapabilities(QFlags<QInputDevice::Capability>)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtGuiTypes[SBK_QFLAGS_QINPUTDEVICE_CAPABILITY_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // setCapabilities(QFlags<QInputDevice::Capability>)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QPointingDeviceFunc_setCapabilities_TypeError;

    // Call function/method
    {
        ::QFlags<QInputDevice::Capability> cppArg0 = QFlags<QInputDevice::Capability>(0);
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setCapabilities(QFlags<QInputDevice::Capability>)
            cppSelf->setCapabilities(cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QPointingDeviceFunc_setCapabilities_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QPointingDeviceFunc_setMaximumTouchPoints(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QPointingDevice *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtGui.QPointingDevice.setMaximumTouchPoints";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QPointingDevice::setMaximumTouchPoints(int)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(Shiboken::Conversions::PrimitiveTypeConverter<int>(), (pyArg)))) {
        overloadId = 0; // setMaximumTouchPoints(int)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QPointingDeviceFunc_setMaximumTouchPoints_TypeError;

    // Call function/method
    {
        int cppArg0;
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setMaximumTouchPoints(int)
            cppSelf->setMaximumTouchPoints(cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QPointingDeviceFunc_setMaximumTouchPoints_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QPointingDeviceFunc_setType(PyObject *self, PyObject *pyArg)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QPointingDevice *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtGui.QPointingDevice.setType";
    SBK_UNUSED(fullName)
    int overloadId = -1;
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    // Overloaded function decisor
    // 0: QPointingDevice::setType(QInputDevice::DeviceType)
    if ((pythonToCpp = Shiboken::Conversions::pythonToCppConversion(PepType_SETP(reinterpret_cast<SbkEnumType *>(SbkPySide6_QtGuiTypes[SBK_QINPUTDEVICE_DEVICETYPE_IDX]))->converter, (pyArg)))) {
        overloadId = 0; // setType(QInputDevice::DeviceType)
    }

    // Function signature not found.
    if (overloadId == -1) goto Sbk_QPointingDeviceFunc_setType_TypeError;

    // Call function/method
    {
        ::QInputDevice::DeviceType cppArg0{QInputDevice::DeviceType::Unknown};
        pythonToCpp(pyArg, &cppArg0);

        if (!PyErr_Occurred()) {
            // setType(QInputDevice::DeviceType)
            cppSelf->setType(cppArg0);
        }
    }

    if (PyErr_Occurred()) {
        return {};
    }
    Py_RETURN_NONE;

    Sbk_QPointingDeviceFunc_setType_TypeError:
        Shiboken::setErrorAboutWrongArguments(pyArg, fullName, errInfo);
        return {};
}

static PyObject *Sbk_QPointingDeviceFunc_uniqueId(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QPointingDevice *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::AutoDecRef errInfo{};
    static const char *fullName = "PySide6.QtGui.QPointingDevice.uniqueId";
    SBK_UNUSED(fullName)

    // Call function/method
    {

        if (!PyErr_Occurred()) {
            // uniqueId()const
            QPointingDeviceUniqueId cppResult = const_cast<const ::QPointingDevice *>(cppSelf)->uniqueId();
            pyResult = Shiboken::Conversions::copyToPython(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICEUNIQUEID_IDX], &cppResult);
        }
    }

    if (PyErr_Occurred() || !pyResult) {
        Py_XDECREF(pyResult);
        return {};
    }
    return pyResult;
}


static const char *Sbk_QPointingDevice_PropertyStrings[] = {
    "buttonCount:",
    "maximumPoints:",
    "pointerType:",
    "uniqueId:",
    nullptr // Sentinel
};

static PyMethodDef Sbk_QPointingDevice_methods[] = {
    {"buttonCount", reinterpret_cast<PyCFunction>(Sbk_QPointingDeviceFunc_buttonCount), METH_NOARGS},
    {"maximumPoints", reinterpret_cast<PyCFunction>(Sbk_QPointingDeviceFunc_maximumPoints), METH_NOARGS},
    {"pointerType", reinterpret_cast<PyCFunction>(Sbk_QPointingDeviceFunc_pointerType), METH_NOARGS},
    {"primaryPointingDevice", reinterpret_cast<PyCFunction>(Sbk_QPointingDeviceFunc_primaryPointingDevice), METH_VARARGS|METH_KEYWORDS|METH_STATIC},
    {"setCapabilities", reinterpret_cast<PyCFunction>(Sbk_QPointingDeviceFunc_setCapabilities), METH_O},
    {"setMaximumTouchPoints", reinterpret_cast<PyCFunction>(Sbk_QPointingDeviceFunc_setMaximumTouchPoints), METH_O},
    {"setType", reinterpret_cast<PyCFunction>(Sbk_QPointingDeviceFunc_setType), METH_O},
    {"uniqueId", reinterpret_cast<PyCFunction>(Sbk_QPointingDeviceFunc_uniqueId), METH_NOARGS},

    {nullptr, nullptr} // Sentinel
};

static int Sbk_QPointingDevice_setattro(PyObject *self, PyObject *name, PyObject *value)
{
    PySide::Feature::Select(self);
    if (value && PyCallable_Check(value)) {
        auto plain_inst = reinterpret_cast< ::QPointingDevice *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_IDX], reinterpret_cast<SbkObject *>(self)));
        auto inst = dynamic_cast<QPointingDeviceWrapper *>(plain_inst);
        if (inst)
            inst->resetPyMethodCache();
    }
    Shiboken::AutoDecRef pp(reinterpret_cast<PyObject *>(PySide::Property::getObject(self, name)));
    if (!pp.isNull())
        return PySide::Property::setValue(reinterpret_cast<PySideProperty *>(pp.object()), self, value);
    return PyObject_GenericSetAttr(self, name, value);
}

// Rich comparison
static PyObject * Sbk_QPointingDevice_richcompare(PyObject *self, PyObject *pyArg, int op)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto &cppSelf = *reinterpret_cast< ::QPointingDevice *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    PyObject *pyResult{};
    Shiboken::Conversions::PythonToCppConversion pythonToCpp;
    SBK_UNUSED(pythonToCpp)

    switch (op) {
        case Py_EQ:
            if ((pythonToCpp = Shiboken::Conversions::pythonToCppReferenceConversion(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_IDX], (pyArg)))) {
                // operator==(const QPointingDevice & other) const
                if (!Shiboken::Object::isValid(pyArg))
                    return {};
                ::QPointingDevice *cppArg0;
                pythonToCpp(pyArg, &cppArg0);
                bool cppResult = cppSelf ==(*cppArg0);
                pyResult = Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<bool>(), &cppResult);
            } else {
                pyResult = Py_False;
                Py_INCREF(pyResult);
            }

            break;
        default:
            // PYSIDE-74: By default, we redirect to object's tp_richcompare (which is `==`, `!=`).
            return FallbackRichCompare(self, pyArg, op);
            goto Sbk_QPointingDevice_RichComparison_TypeError;
    }

    if (pyResult && !PyErr_Occurred())
        return pyResult;
    Sbk_QPointingDevice_RichComparison_TypeError:
    PyErr_SetString(PyExc_NotImplementedError, "operator not implemented.");
    return {};

}

} // extern "C"

static int Sbk_QPointingDevice_traverse(PyObject *self, visitproc visit, void *arg)
{
    return SbkObject_TypeF()->tp_traverse(self, visit, arg);
}
static int Sbk_QPointingDevice_clear(PyObject *self)
{
    return reinterpret_cast<PyTypeObject *>(SbkObject_TypeF())->tp_clear(self);
}
extern "C"
{
static PyObject *Sbk_QPointingDevice__repr__(PyObject *self)
{
    if (!Shiboken::Object::isValid(self))
        return {};
    auto cppSelf = reinterpret_cast< ::QPointingDevice *>(Shiboken::Conversions::cppPointer(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_IDX], reinterpret_cast<SbkObject *>(self)));
    SBK_UNUSED(cppSelf)
    QBuffer buffer;
    buffer.open(QBuffer::ReadWrite);
    QDebug dbg(&buffer);
    dbg << cppSelf;
    buffer.close();
    QByteArray str = buffer.data();
    int idx = str.indexOf('(');
    if (idx >= 0)
        str.replace(0, idx, Py_TYPE(self)->tp_name);
    str = str.trimmed();
    PyObject *mod = PyDict_GetItem(Py_TYPE(self)->tp_dict, Shiboken::PyMagicName::module());
    if (mod && !strchr(str, '.'))
        return Shiboken::String::fromFormat("<%s.%s at %p>", Shiboken::String::toCString(mod), str.constData(), self);
    else
        return Shiboken::String::fromFormat("<%s at %p>", str.constData(), self);
}
} // extern C

// Class Definition -----------------------------------------------
extern "C" {
static PyTypeObject *_Sbk_QPointingDevice_Type = nullptr;
static PyTypeObject *Sbk_QPointingDevice_TypeF(void)
{
    return _Sbk_QPointingDevice_Type;
}

static PyType_Slot Sbk_QPointingDevice_slots[] = {
    {Py_tp_base,        nullptr}, // inserted by introduceWrapperType
    {Py_tp_dealloc,     reinterpret_cast<void *>(&SbkDeallocWrapper)},
    {Py_tp_repr,        reinterpret_cast<void *>(Sbk_QPointingDevice__repr__)},
    {Py_tp_hash,        nullptr},
    {Py_tp_call,        nullptr},
    {Py_tp_str,         nullptr},
    {Py_tp_getattro,    nullptr},
    {Py_tp_setattro,    reinterpret_cast<void *>(Sbk_QPointingDevice_setattro)},
    {Py_tp_traverse,    reinterpret_cast<void *>(Sbk_QPointingDevice_traverse)},
    {Py_tp_clear,       reinterpret_cast<void *>(Sbk_QPointingDevice_clear)},
    {Py_tp_richcompare, reinterpret_cast<void *>(Sbk_QPointingDevice_richcompare)},
    {Py_tp_iter,        nullptr},
    {Py_tp_iternext,    nullptr},
    {Py_tp_methods,     reinterpret_cast<void *>(Sbk_QPointingDevice_methods)},
    {Py_tp_getset,      nullptr},
    {Py_tp_init,        reinterpret_cast<void *>(Sbk_QPointingDevice_Init)},
    {Py_tp_new,         reinterpret_cast<void *>(SbkObjectTpNew)},
    {0, nullptr}
};
static PyType_Spec Sbk_QPointingDevice_spec = {
    "2:PySide6.QtGui.QPointingDevice",
    sizeof(SbkObject),
    0,
    Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC,
    Sbk_QPointingDevice_slots
};

} //extern "C"

static void *Sbk_QPointingDevice_typeDiscovery(void *cptr, PyTypeObject *instanceType)
{
    if (instanceType == Shiboken::SbkType< ::QObject >())
        return dynamic_cast< ::QPointingDevice *>(reinterpret_cast< ::QObject *>(cptr));
    return {};
}

PyObject *SbkPySide6_QtGui_QPointingDevice_PointerType___and__(PyObject *self, PyObject *pyArg)
{
    ::QPointingDevice::PointerTypes cppResult, cppSelf, cppArg;
    cppSelf = static_cast<::QPointingDevice::PointerTypes>(int(PyLong_AsLong(self)));
    if (PyErr_Occurred())
        return nullptr;
    cppArg = static_cast<QPointingDevice::PointerTypes>(int(PyLong_AsLong(pyArg)));
    if (PyErr_Occurred())
        return nullptr;
    cppResult = cppSelf & cppArg;
    return Shiboken::Conversions::copyToPython(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtGuiTypes[SBK_QFLAGS_QPOINTINGDEVICE_POINTERTYPE_IDX]))->converter, &cppResult);
}

PyObject *SbkPySide6_QtGui_QPointingDevice_PointerType___or__(PyObject *self, PyObject *pyArg)
{
    ::QPointingDevice::PointerTypes cppResult, cppSelf, cppArg;
    cppSelf = static_cast<::QPointingDevice::PointerTypes>(int(PyLong_AsLong(self)));
    if (PyErr_Occurred())
        return nullptr;
    cppArg = static_cast<QPointingDevice::PointerTypes>(int(PyLong_AsLong(pyArg)));
    if (PyErr_Occurred())
        return nullptr;
    cppResult = cppSelf | cppArg;
    return Shiboken::Conversions::copyToPython(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtGuiTypes[SBK_QFLAGS_QPOINTINGDEVICE_POINTERTYPE_IDX]))->converter, &cppResult);
}

PyObject *SbkPySide6_QtGui_QPointingDevice_PointerType___xor__(PyObject *self, PyObject *pyArg)
{
    ::QPointingDevice::PointerTypes cppResult, cppSelf, cppArg;
    cppSelf = static_cast<::QPointingDevice::PointerTypes>(int(PyLong_AsLong(self)));
    if (PyErr_Occurred())
        return nullptr;
    cppArg = static_cast<QPointingDevice::PointerTypes>(int(PyLong_AsLong(pyArg)));
    if (PyErr_Occurred())
        return nullptr;
    cppResult = cppSelf ^ cppArg;
    return Shiboken::Conversions::copyToPython(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtGuiTypes[SBK_QFLAGS_QPOINTINGDEVICE_POINTERTYPE_IDX]))->converter, &cppResult);
}

PyObject *SbkPySide6_QtGui_QPointingDevice_PointerType___invert__(PyObject *self, PyObject *pyArg)
{
    ::QPointingDevice::PointerTypes cppSelf;
    Shiboken::Conversions::pythonToCppCopy(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtGuiTypes[SBK_QFLAGS_QPOINTINGDEVICE_POINTERTYPE_IDX]))->converter, self, &cppSelf);
    ::QPointingDevice::PointerTypes cppResult = ~cppSelf;
    return Shiboken::Conversions::copyToPython(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtGuiTypes[SBK_QFLAGS_QPOINTINGDEVICE_POINTERTYPE_IDX]))->converter, &cppResult);
}

static PyObject *SbkPySide6_QtGui_QPointingDevice_PointerType_long(PyObject *self)
{
    int val;
    Shiboken::Conversions::pythonToCppCopy(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtGuiTypes[SBK_QFLAGS_QPOINTINGDEVICE_POINTERTYPE_IDX]))->converter, self, &val);
    return Shiboken::Conversions::copyToPython(Shiboken::Conversions::PrimitiveTypeConverter<int>(), &val);
}
static int SbkPySide6_QtGui_QPointingDevice_PointerType__nonzero(PyObject *self)
{
    int val;
    Shiboken::Conversions::pythonToCppCopy(PepType_PFTP(reinterpret_cast<PySideQFlagsType *>(SbkPySide6_QtGuiTypes[SBK_QFLAGS_QPOINTINGDEVICE_POINTERTYPE_IDX]))->converter, self, &val);
    return val != 0;
}

static PyType_Slot SbkPySide6_QtGui_QPointingDevice_PointerType_number_slots[] = {
    {Py_nb_bool,    reinterpret_cast<void *>(SbkPySide6_QtGui_QPointingDevice_PointerType__nonzero)},
    {Py_nb_invert,  reinterpret_cast<void *>(SbkPySide6_QtGui_QPointingDevice_PointerType___invert__)},
    {Py_nb_and,     reinterpret_cast<void *>(SbkPySide6_QtGui_QPointingDevice_PointerType___and__)},
    {Py_nb_xor,     reinterpret_cast<void *>(SbkPySide6_QtGui_QPointingDevice_PointerType___xor__)},
    {Py_nb_or,      reinterpret_cast<void *>(SbkPySide6_QtGui_QPointingDevice_PointerType___or__)},
    {Py_nb_int,     reinterpret_cast<void *>(SbkPySide6_QtGui_QPointingDevice_PointerType_long)},
    {Py_nb_index,   reinterpret_cast<void *>(SbkPySide6_QtGui_QPointingDevice_PointerType_long)},
    {0, nullptr} // sentinel
};



// Type conversion functions.

// Python to C++ enum conversion.
static void QPointingDevice_PointerType_PythonToCpp_QPointingDevice_PointerType(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QPointingDevice::PointerType *>(cppOut) =
        static_cast<::QPointingDevice::PointerType>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QPointingDevice_PointerType_PythonToCpp_QPointingDevice_PointerType_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX]))
        return QPointingDevice_PointerType_PythonToCpp_QPointingDevice_PointerType;
    return {};
}
static PyObject *QPointingDevice_PointerType_CppToPython_QPointingDevice_PointerType(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QPointingDevice::PointerType *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX], castCppIn);

}

static void QFlags_QPointingDevice_PointerType__PythonToCpp_QFlags_QPointingDevice_PointerType_(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QFlags<QPointingDevice::PointerType> *>(cppOut) =
        ::QFlags<QPointingDevice::PointerType>(QFlag(int(PySide::QFlags::getValue(reinterpret_cast<PySideQFlagsObject *>(pyIn)))));

}
static PythonToCppFunc is_QFlags_QPointingDevice_PointerType__PythonToCpp_QFlags_QPointingDevice_PointerType__Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtGuiTypes[SBK_QFLAGS_QPOINTINGDEVICE_POINTERTYPE_IDX]))
        return QFlags_QPointingDevice_PointerType__PythonToCpp_QFlags_QPointingDevice_PointerType_;
    return {};
}
static PyObject *QFlags_QPointingDevice_PointerType__CppToPython_QFlags_QPointingDevice_PointerType_(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QFlags<QPointingDevice::PointerType> *>(cppIn));
    return reinterpret_cast<PyObject *>(PySide::QFlags::newObject(castCppIn, SbkPySide6_QtGuiTypes[SBK_QFLAGS_QPOINTINGDEVICE_POINTERTYPE_IDX]));

}

static void QPointingDevice_PointerType_PythonToCpp_QFlags_QPointingDevice_PointerType_(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QFlags<QPointingDevice::PointerType> *>(cppOut) =
        ::QFlags<QPointingDevice::PointerType>(QFlag(int(Shiboken::Enum::getValue(pyIn))));

}
static PythonToCppFunc is_QPointingDevice_PointerType_PythonToCpp_QFlags_QPointingDevice_PointerType__Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX]))
        return QPointingDevice_PointerType_PythonToCpp_QFlags_QPointingDevice_PointerType_;
    return {};
}
static void number_PythonToCpp_QFlags_QPointingDevice_PointerType_(PyObject *pyIn, void *cppOut)
{
    Shiboken::AutoDecRef pyLong(PyNumber_Long(pyIn));
    *reinterpret_cast<::QFlags<QPointingDevice::PointerType> *>(cppOut) =
        ::QFlags<QPointingDevice::PointerType>(QFlag(int(PyLong_AsLong(pyLong.object()))));

}
static PythonToCppFunc is_number_PythonToCpp_QFlags_QPointingDevice_PointerType__Convertible(PyObject *pyIn)
{
    if (PyNumber_Check(pyIn) && PyObject_TypeCheck(pyIn, SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX]))
        return number_PythonToCpp_QFlags_QPointingDevice_PointerType_;
    return {};
}
static void QPointingDevice_GrabTransition_PythonToCpp_QPointingDevice_GrabTransition(PyObject *pyIn, void *cppOut)
{
    *reinterpret_cast<::QPointingDevice::GrabTransition *>(cppOut) =
        static_cast<::QPointingDevice::GrabTransition>(Shiboken::Enum::getValue(pyIn));

}
static PythonToCppFunc is_QPointingDevice_GrabTransition_PythonToCpp_QPointingDevice_GrabTransition_Convertible(PyObject *pyIn)
{
    if (PyObject_TypeCheck(pyIn, SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_GRABTRANSITION_IDX]))
        return QPointingDevice_GrabTransition_PythonToCpp_QPointingDevice_GrabTransition;
    return {};
}
static PyObject *QPointingDevice_GrabTransition_CppToPython_QPointingDevice_GrabTransition(const void *cppIn)
{
    const int castCppIn = int(*reinterpret_cast<const ::QPointingDevice::GrabTransition *>(cppIn));
    return Shiboken::Enum::newItem(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_GRABTRANSITION_IDX], castCppIn);

}

// Python to C++ pointer conversion - returns the C++ object of the Python wrapper (keeps object identity).
static void QPointingDevice_PythonToCpp_QPointingDevice_PTR(PyObject *pyIn, void *cppOut)
{
    Shiboken::Conversions::pythonToCppPointer(Sbk_QPointingDevice_TypeF(), pyIn, cppOut);
}
static PythonToCppFunc is_QPointingDevice_PythonToCpp_QPointingDevice_PTR_Convertible(PyObject *pyIn)
{
    if (pyIn == Py_None)
        return Shiboken::Conversions::nonePythonToCppNullPtr;
    if (PyObject_TypeCheck(pyIn, reinterpret_cast<PyTypeObject *>(Sbk_QPointingDevice_TypeF())))
        return QPointingDevice_PythonToCpp_QPointingDevice_PTR;
    return {};
}

// C++ to Python pointer conversion - tries to find the Python wrapper for the C++ object (keeps object identity).
static PyObject *QPointingDevice_PTR_CppToPython_QPointingDevice(const void *cppIn)
{
    return PySide::getWrapperForQObject(reinterpret_cast<::QPointingDevice *>(const_cast<void *>(cppIn)), Sbk_QPointingDevice_TypeF());

}

// The signatures string for the functions.
// Multiple signatures have their index "n:" in front.
static const char *QPointingDevice_SignatureStrings[] = {
    "1:PySide6.QtGui.QPointingDevice(self,parent:PySide6.QtCore.QObject=nullptr)",
    "0:PySide6.QtGui.QPointingDevice(self,name:QString,systemId:qint64,devType:PySide6.QtGui.QInputDevice.DeviceType,pType:PySide6.QtGui.QPointingDevice.PointerType,caps:PySide6.QtGui.QInputDevice.Capabilities,maxPoints:int,buttonCount:int,seatName:QString=QString(),uniqueId:PySide6.QtGui.QPointingDeviceUniqueId=QPointingDeviceUniqueId(),parent:PySide6.QtCore.QObject=nullptr)",
    "PySide6.QtGui.QPointingDevice.buttonCount(self)->int",
    "PySide6.QtGui.QPointingDevice.maximumPoints(self)->int",
    "PySide6.QtGui.QPointingDevice.pointerType(self)->PySide6.QtGui.QPointingDevice.PointerType",
    "PySide6.QtGui.QPointingDevice.primaryPointingDevice(seatName:QString=QString())->PySide6.QtGui.QPointingDevice",
    "PySide6.QtGui.QPointingDevice.setCapabilities(self,caps:PySide6.QtGui.QInputDevice.Capabilities)",
    "PySide6.QtGui.QPointingDevice.setMaximumTouchPoints(self,c:int)",
    "PySide6.QtGui.QPointingDevice.setType(self,devType:PySide6.QtGui.QInputDevice.DeviceType)",
    "PySide6.QtGui.QPointingDevice.uniqueId(self)->PySide6.QtGui.QPointingDeviceUniqueId",
    nullptr}; // Sentinel

void init_QPointingDevice(PyObject *module)
{
    _Sbk_QPointingDevice_Type = Shiboken::ObjectType::introduceWrapperType(
        module,
        "QPointingDevice",
        "QPointingDevice*",
        &Sbk_QPointingDevice_spec,
        &Shiboken::callCppDestructor< ::QPointingDevice >,
        SbkPySide6_QtGuiTypes[SBK_QINPUTDEVICE_IDX],
        0,
        0);
    auto *pyType = Sbk_QPointingDevice_TypeF(); // references _Sbk_QPointingDevice_Type
    InitSignatureStrings(pyType, QPointingDevice_SignatureStrings);
    SbkObjectType_SetPropertyStrings(reinterpret_cast<PyTypeObject *>(_Sbk_QPointingDevice_Type), Sbk_QPointingDevice_PropertyStrings);
    SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_IDX]
        = Sbk_QPointingDevice_TypeF();

    // Register Converter
    SbkConverter *converter = Shiboken::Conversions::createConverter(Sbk_QPointingDevice_TypeF(),
        QPointingDevice_PythonToCpp_QPointingDevice_PTR,
        is_QPointingDevice_PythonToCpp_QPointingDevice_PTR_Convertible,
        QPointingDevice_PTR_CppToPython_QPointingDevice);

    Shiboken::Conversions::registerConverterName(converter, "QPointingDevice");
    Shiboken::Conversions::registerConverterName(converter, "QPointingDevice*");
    Shiboken::Conversions::registerConverterName(converter, "QPointingDevice&");
    Shiboken::Conversions::registerConverterName(converter, typeid(::QPointingDevice).name());
    Shiboken::Conversions::registerConverterName(converter, typeid(::QPointingDeviceWrapper).name());


    Shiboken::ObjectType::setTypeDiscoveryFunctionV2(Sbk_QPointingDevice_TypeF(), &Sbk_QPointingDevice_typeDiscovery);

    // Initialization of enums.

    // Initialization of enum 'PointerType'.
    SbkPySide6_QtGuiTypes[SBK_QFLAGS_QPOINTINGDEVICE_POINTERTYPE_IDX] = PySide::QFlags::create("2:PySide6.QtGui.QPointingDevice.PointerTypes", SbkPySide6_QtGui_QPointingDevice_PointerType_number_slots);
    SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QPointingDevice_TypeF(),
        "PointerType",
        "2:PySide6.QtGui.QPointingDevice.PointerType",
        "QPointingDevice::PointerType",
        SbkPySide6_QtGuiTypes[SBK_QFLAGS_QPOINTINGDEVICE_POINTERTYPE_IDX]);
    if (!SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX],
        SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX], "Unknown", (long) QPointingDevice::PointerType::Unknown))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX],
        SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX], "Generic", (long) QPointingDevice::PointerType::Generic))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX],
        SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX], "Finger", (long) QPointingDevice::PointerType::Finger))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX],
        SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX], "Pen", (long) QPointingDevice::PointerType::Pen))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX],
        SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX], "Eraser", (long) QPointingDevice::PointerType::Eraser))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX],
        SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX], "Cursor", (long) QPointingDevice::PointerType::Cursor))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX],
        SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX], "AllPointerTypes", (long) QPointingDevice::PointerType::AllPointerTypes))
        return;
    // Register converter for enum 'QPointingDevice::PointerType'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX],
            QPointingDevice_PointerType_CppToPython_QPointingDevice_PointerType);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QPointingDevice_PointerType_PythonToCpp_QPointingDevice_PointerType,
            is_QPointingDevice_PointerType_PythonToCpp_QPointingDevice_PointerType_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_POINTERTYPE_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QPointingDevice::PointerType");
        Shiboken::Conversions::registerConverterName(converter, "PointerType");
    }
    // Register converter for flag 'QFlags<QPointingDevice::PointerType>'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtGuiTypes[SBK_QFLAGS_QPOINTINGDEVICE_POINTERTYPE_IDX],
            QFlags_QPointingDevice_PointerType__CppToPython_QFlags_QPointingDevice_PointerType_);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QPointingDevice_PointerType_PythonToCpp_QFlags_QPointingDevice_PointerType_,
            is_QPointingDevice_PointerType_PythonToCpp_QFlags_QPointingDevice_PointerType__Convertible);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QFlags_QPointingDevice_PointerType__PythonToCpp_QFlags_QPointingDevice_PointerType_,
            is_QFlags_QPointingDevice_PointerType__PythonToCpp_QFlags_QPointingDevice_PointerType__Convertible);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            number_PythonToCpp_QFlags_QPointingDevice_PointerType_,
            is_number_PythonToCpp_QFlags_QPointingDevice_PointerType__Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtGuiTypes[SBK_QFLAGS_QPOINTINGDEVICE_POINTERTYPE_IDX], converter, true);
        Shiboken::Conversions::registerConverterName(converter, "QPointingDevice::PointerTypes");
        Shiboken::Conversions::registerConverterName(converter, "PointerTypes");
        Shiboken::Conversions::registerConverterName(converter, "QFlags<QPointingDevice::PointerType>");
    }
    // End of 'PointerType' enum/flags.

    // Initialization of enum 'GrabTransition'.
    SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_GRABTRANSITION_IDX] = Shiboken::Enum::createScopedEnum(Sbk_QPointingDevice_TypeF(),
        "GrabTransition",
        "2:PySide6.QtGui.QPointingDevice.GrabTransition",
        "QPointingDevice::GrabTransition");
    if (!SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_GRABTRANSITION_IDX])
        return;

    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_GRABTRANSITION_IDX],
        Sbk_QPointingDevice_TypeF(), "GrabPassive", (long) QPointingDevice::GrabTransition::GrabPassive))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_GRABTRANSITION_IDX],
        Sbk_QPointingDevice_TypeF(), "UngrabPassive", (long) QPointingDevice::GrabTransition::UngrabPassive))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_GRABTRANSITION_IDX],
        Sbk_QPointingDevice_TypeF(), "CancelGrabPassive", (long) QPointingDevice::GrabTransition::CancelGrabPassive))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_GRABTRANSITION_IDX],
        Sbk_QPointingDevice_TypeF(), "OverrideGrabPassive", (long) QPointingDevice::GrabTransition::OverrideGrabPassive))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_GRABTRANSITION_IDX],
        Sbk_QPointingDevice_TypeF(), "GrabExclusive", (long) QPointingDevice::GrabTransition::GrabExclusive))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_GRABTRANSITION_IDX],
        Sbk_QPointingDevice_TypeF(), "UngrabExclusive", (long) QPointingDevice::GrabTransition::UngrabExclusive))
        return;
    if (!Shiboken::Enum::createScopedEnumItem(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_GRABTRANSITION_IDX],
        Sbk_QPointingDevice_TypeF(), "CancelGrabExclusive", (long) QPointingDevice::GrabTransition::CancelGrabExclusive))
        return;
    // Register converter for enum 'QPointingDevice::GrabTransition'.
    {
        SbkConverter *converter = Shiboken::Conversions::createConverter(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_GRABTRANSITION_IDX],
            QPointingDevice_GrabTransition_CppToPython_QPointingDevice_GrabTransition);
        Shiboken::Conversions::addPythonToCppValueConversion(converter,
            QPointingDevice_GrabTransition_PythonToCpp_QPointingDevice_GrabTransition,
            is_QPointingDevice_GrabTransition_PythonToCpp_QPointingDevice_GrabTransition_Convertible);
        Shiboken::Enum::setTypeConverter(SbkPySide6_QtGuiTypes[SBK_QPOINTINGDEVICE_GRABTRANSITION_IDX], converter, false);
        Shiboken::Conversions::registerConverterName(converter, "QPointingDevice::GrabTransition");
        Shiboken::Conversions::registerConverterName(converter, "GrabTransition");
    }
    // End of 'GrabTransition' enum.

    PySide::Signal::registerSignals(Sbk_QPointingDevice_TypeF(), &::QPointingDevice::staticMetaObject);
    qRegisterMetaType< ::QPointingDevice::PointerType >("QPointingDevice::PointerType");
    qRegisterMetaType< ::QPointingDevice::PointerTypes >("QPointingDevice::PointerTypes");
    qRegisterMetaType< ::QPointingDevice::GrabTransition >("QPointingDevice::GrabTransition");
    Shiboken::ObjectType::setSubTypeInitHook(Sbk_QPointingDevice_TypeF(), &PySide::initQObjectSubType);
    PySide::initDynamicMetaObject(Sbk_QPointingDevice_TypeF(), &::QPointingDevice::staticMetaObject, sizeof(QPointingDeviceWrapper));
}
