/****************************************************************************
** Meta object code from reading C++ file 'qmousehandler.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.12.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../../../qt3d/src/input/frontend/qmousehandler.h"
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qmousehandler.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.12.0. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN9Qt3DInput13QMouseHandlerE_t {};
} // unnamed namespace

template <> constexpr inline auto Qt3DInput::QMouseHandler::qt_create_metaobjectdata<qt_meta_tag_ZN9Qt3DInput13QMouseHandlerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DInput::QMouseHandler",
        "sourceDeviceChanged",
        "",
        "QMouseDevice*",
        "mouseDevice",
        "containsMouseChanged",
        "containsMouse",
        "clicked",
        "Qt3DInput::QMouseEvent*",
        "mouse",
        "doubleClicked",
        "entered",
        "exited",
        "pressed",
        "released",
        "pressAndHold",
        "positionChanged",
        "wheel",
        "Qt3DInput::QWheelEvent*",
        "setSourceDevice",
        "sourceDevice",
        "Qt3DInput::QMouseDevice*"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'sourceDeviceChanged'
        QtMocHelpers::SignalData<void(QMouseDevice *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'containsMouseChanged'
        QtMocHelpers::SignalData<void(bool)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 6 },
        }}),
        // Signal 'clicked'
        QtMocHelpers::SignalData<void(Qt3DInput::QMouseEvent *)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Signal 'doubleClicked'
        QtMocHelpers::SignalData<void(Qt3DInput::QMouseEvent *)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Signal 'entered'
        QtMocHelpers::SignalData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'exited'
        QtMocHelpers::SignalData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'pressed'
        QtMocHelpers::SignalData<void(Qt3DInput::QMouseEvent *)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Signal 'released'
        QtMocHelpers::SignalData<void(Qt3DInput::QMouseEvent *)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Signal 'pressAndHold'
        QtMocHelpers::SignalData<void(Qt3DInput::QMouseEvent *)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Signal 'positionChanged'
        QtMocHelpers::SignalData<void(Qt3DInput::QMouseEvent *)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Signal 'wheel'
        QtMocHelpers::SignalData<void(Qt3DInput::QWheelEvent *)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 18, 17 },
        }}),
        // Slot 'setSourceDevice'
        QtMocHelpers::SlotData<void(QMouseDevice *)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'sourceDevice'
        QtMocHelpers::PropertyData<Qt3DInput::QMouseDevice*>(20, 0x80000000 | 21, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'containsMouse'
        QtMocHelpers::PropertyData<bool>(6, QMetaType::Bool, QMC::DefaultPropertyFlags, 1),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<QMouseHandler, qt_meta_tag_ZN9Qt3DInput13QMouseHandlerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DInput::QMouseHandler::staticMetaObject = { {
    QMetaObject::SuperData::link<Qt3DCore::QComponent::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9Qt3DInput13QMouseHandlerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9Qt3DInput13QMouseHandlerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9Qt3DInput13QMouseHandlerE_t>.metaTypes,
    nullptr
} };

void Qt3DInput::QMouseHandler::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QMouseHandler *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->sourceDeviceChanged((*reinterpret_cast<std::add_pointer_t<QMouseDevice*>>(_a[1]))); break;
        case 1: _t->containsMouseChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 2: _t->clicked((*reinterpret_cast<std::add_pointer_t<Qt3DInput::QMouseEvent*>>(_a[1]))); break;
        case 3: _t->doubleClicked((*reinterpret_cast<std::add_pointer_t<Qt3DInput::QMouseEvent*>>(_a[1]))); break;
        case 4: _t->entered(); break;
        case 5: _t->exited(); break;
        case 6: _t->pressed((*reinterpret_cast<std::add_pointer_t<Qt3DInput::QMouseEvent*>>(_a[1]))); break;
        case 7: _t->released((*reinterpret_cast<std::add_pointer_t<Qt3DInput::QMouseEvent*>>(_a[1]))); break;
        case 8: _t->pressAndHold((*reinterpret_cast<std::add_pointer_t<Qt3DInput::QMouseEvent*>>(_a[1]))); break;
        case 9: _t->positionChanged((*reinterpret_cast<std::add_pointer_t<Qt3DInput::QMouseEvent*>>(_a[1]))); break;
        case 10: _t->wheel((*reinterpret_cast<std::add_pointer_t<Qt3DInput::QWheelEvent*>>(_a[1]))); break;
        case 11: _t->setSourceDevice((*reinterpret_cast<std::add_pointer_t<QMouseDevice*>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QMouseDevice* >(); break;
            }
            break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Qt3DInput::QMouseEvent* >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Qt3DInput::QMouseEvent* >(); break;
            }
            break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Qt3DInput::QMouseEvent* >(); break;
            }
            break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Qt3DInput::QMouseEvent* >(); break;
            }
            break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Qt3DInput::QMouseEvent* >(); break;
            }
            break;
        case 9:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Qt3DInput::QMouseEvent* >(); break;
            }
            break;
        case 10:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Qt3DInput::QWheelEvent* >(); break;
            }
            break;
        case 11:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QMouseDevice* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QMouseHandler::*)(QMouseDevice * )>(_a, &QMouseHandler::sourceDeviceChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QMouseHandler::*)(bool )>(_a, &QMouseHandler::containsMouseChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QMouseHandler::*)(Qt3DInput::QMouseEvent * )>(_a, &QMouseHandler::clicked, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QMouseHandler::*)(Qt3DInput::QMouseEvent * )>(_a, &QMouseHandler::doubleClicked, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (QMouseHandler::*)()>(_a, &QMouseHandler::entered, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (QMouseHandler::*)()>(_a, &QMouseHandler::exited, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (QMouseHandler::*)(Qt3DInput::QMouseEvent * )>(_a, &QMouseHandler::pressed, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (QMouseHandler::*)(Qt3DInput::QMouseEvent * )>(_a, &QMouseHandler::released, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (QMouseHandler::*)(Qt3DInput::QMouseEvent * )>(_a, &QMouseHandler::pressAndHold, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (QMouseHandler::*)(Qt3DInput::QMouseEvent * )>(_a, &QMouseHandler::positionChanged, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (QMouseHandler::*)(Qt3DInput::QWheelEvent * )>(_a, &QMouseHandler::wheel, 10))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Qt3DInput::QMouseDevice* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<Qt3DInput::QMouseDevice**>(_v) = _t->sourceDevice(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->containsMouse(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setSourceDevice(*reinterpret_cast<Qt3DInput::QMouseDevice**>(_v)); break;
        default: break;
        }
    }
}

const QMetaObject *Qt3DInput::QMouseHandler::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *Qt3DInput::QMouseHandler::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9Qt3DInput13QMouseHandlerE_t>.strings))
        return static_cast<void*>(this);
    return Qt3DCore::QComponent::qt_metacast(_clname);
}

int Qt3DInput::QMouseHandler::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Qt3DCore::QComponent::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    return _id;
}

// SIGNAL 0
void Qt3DInput::QMouseHandler::sourceDeviceChanged(QMouseDevice * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DInput::QMouseHandler::containsMouseChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DInput::QMouseHandler::clicked(Qt3DInput::QMouseEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Qt3DInput::QMouseHandler::doubleClicked(Qt3DInput::QMouseEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Qt3DInput::QMouseHandler::entered()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void Qt3DInput::QMouseHandler::exited()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void Qt3DInput::QMouseHandler::pressed(Qt3DInput::QMouseEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}

// SIGNAL 7
void Qt3DInput::QMouseHandler::released(Qt3DInput::QMouseEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}

// SIGNAL 8
void Qt3DInput::QMouseHandler::pressAndHold(Qt3DInput::QMouseEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}

// SIGNAL 9
void Qt3DInput::QMouseHandler::positionChanged(Qt3DInput::QMouseEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 9, nullptr, _t1);
}

// SIGNAL 10
void Qt3DInput::QMouseHandler::wheel(Qt3DInput::QWheelEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 10, nullptr, _t1);
}
QT_WARNING_POP
