/****************************************************************************
** Meta object code from reading C++ file 'qobjectpicker.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/render/picking/qobjectpicker.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 'qobjectpicker.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_ZN10Qt3DRender13QObjectPickerE_t {};
} // unnamed namespace

template <> constexpr inline auto Qt3DRender::QObjectPicker::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DRender13QObjectPickerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DRender::QObjectPicker",
        "pressed",
        "",
        "Qt3DRender::QPickEvent*",
        "pick",
        "released",
        "clicked",
        "moved",
        "entered",
        "exited",
        "hoverEnabledChanged",
        "hoverEnabled",
        "dragEnabledChanged",
        "dragEnabled",
        "pressedChanged",
        "containsMouseChanged",
        "containsMouse",
        "priorityChanged",
        "priority",
        "setHoverEnabled",
        "setDragEnabled",
        "setPriority"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'pressed'
        QtMocHelpers::SignalData<void(Qt3DRender::QPickEvent *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'released'
        QtMocHelpers::SignalData<void(Qt3DRender::QPickEvent *)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'clicked'
        QtMocHelpers::SignalData<void(Qt3DRender::QPickEvent *)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'moved'
        QtMocHelpers::SignalData<void(Qt3DRender::QPickEvent *)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'entered'
        QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'exited'
        QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'hoverEnabledChanged'
        QtMocHelpers::SignalData<void(bool)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 11 },
        }}),
        // Signal 'dragEnabledChanged'
        QtMocHelpers::SignalData<void(bool)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 13 },
        }}),
        // Signal 'pressedChanged'
        QtMocHelpers::SignalData<void(bool)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 1 },
        }}),
        // Signal 'containsMouseChanged'
        QtMocHelpers::SignalData<void(bool)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 16 },
        }}),
        // Signal 'priorityChanged'
        QtMocHelpers::RevisionedSignalData<void(int)>(17, 2, QMC::AccessPublic, 0x20d, QMetaType::Void, {{
            { QMetaType::Int, 18 },
        }}),
        // Slot 'setHoverEnabled'
        QtMocHelpers::SlotData<void(bool)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 11 },
        }}),
        // Slot 'setDragEnabled'
        QtMocHelpers::SlotData<void(bool)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 13 },
        }}),
        // Slot 'setPriority'
        QtMocHelpers::RevisionedSlotData<void(int)>(21, 2, QMC::AccessPublic, 0x20d, QMetaType::Void, {{
            { QMetaType::Int, 18 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'hoverEnabled'
        QtMocHelpers::PropertyData<bool>(11, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 6),
        // property 'dragEnabled'
        QtMocHelpers::PropertyData<bool>(13, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 7),
        // property 'pressed'
        QtMocHelpers::PropertyData<bool>(1, QMetaType::Bool, QMC::DefaultPropertyFlags, 8),
        // property 'containsMouse'
        QtMocHelpers::PropertyData<bool>(16, QMetaType::Bool, QMC::DefaultPropertyFlags, 9),
        // property 'priority'
        QtMocHelpers::PropertyData<int>(18, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 10, 0x20d),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<QObjectPicker, qt_meta_tag_ZN10Qt3DRender13QObjectPickerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DRender::QObjectPicker::staticMetaObject = { {
    QMetaObject::SuperData::link<Qt3DCore::QComponent::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender13QObjectPickerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender13QObjectPickerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DRender13QObjectPickerE_t>.metaTypes,
    nullptr
} };

void Qt3DRender::QObjectPicker::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QObjectPicker *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->pressed((*reinterpret_cast<std::add_pointer_t<Qt3DRender::QPickEvent*>>(_a[1]))); break;
        case 1: _t->released((*reinterpret_cast<std::add_pointer_t<Qt3DRender::QPickEvent*>>(_a[1]))); break;
        case 2: _t->clicked((*reinterpret_cast<std::add_pointer_t<Qt3DRender::QPickEvent*>>(_a[1]))); break;
        case 3: _t->moved((*reinterpret_cast<std::add_pointer_t<Qt3DRender::QPickEvent*>>(_a[1]))); break;
        case 4: _t->entered(); break;
        case 5: _t->exited(); break;
        case 6: _t->hoverEnabledChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 7: _t->dragEnabledChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 8: _t->pressedChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 9: _t->containsMouseChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 10: _t->priorityChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 11: _t->setHoverEnabled((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 12: _t->setDragEnabled((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 13: _t->setPriority((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QObjectPicker::*)(Qt3DRender::QPickEvent * )>(_a, &QObjectPicker::pressed, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QObjectPicker::*)(Qt3DRender::QPickEvent * )>(_a, &QObjectPicker::released, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QObjectPicker::*)(Qt3DRender::QPickEvent * )>(_a, &QObjectPicker::clicked, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QObjectPicker::*)(Qt3DRender::QPickEvent * )>(_a, &QObjectPicker::moved, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (QObjectPicker::*)()>(_a, &QObjectPicker::entered, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (QObjectPicker::*)()>(_a, &QObjectPicker::exited, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (QObjectPicker::*)(bool )>(_a, &QObjectPicker::hoverEnabledChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (QObjectPicker::*)(bool )>(_a, &QObjectPicker::dragEnabledChanged, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (QObjectPicker::*)(bool )>(_a, &QObjectPicker::pressedChanged, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (QObjectPicker::*)(bool )>(_a, &QObjectPicker::containsMouseChanged, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (QObjectPicker::*)(int )>(_a, &QObjectPicker::priorityChanged, 10))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->isHoverEnabled(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->isDragEnabled(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->isPressed(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->containsMouse(); break;
        case 4: *reinterpret_cast<int*>(_v) = _t->priority(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setHoverEnabled(*reinterpret_cast<bool*>(_v)); break;
        case 1: _t->setDragEnabled(*reinterpret_cast<bool*>(_v)); break;
        case 4: _t->setPriority(*reinterpret_cast<int*>(_v)); break;
        default: break;
        }
    }
}

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

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

int Qt3DRender::QObjectPicker::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 < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 14)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 14;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    }
    return _id;
}

// SIGNAL 0
void Qt3DRender::QObjectPicker::pressed(Qt3DRender::QPickEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DRender::QObjectPicker::released(Qt3DRender::QPickEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DRender::QObjectPicker::clicked(Qt3DRender::QPickEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Qt3DRender::QObjectPicker::moved(Qt3DRender::QPickEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

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

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

// SIGNAL 6
void Qt3DRender::QObjectPicker::hoverEnabledChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}

// SIGNAL 7
void Qt3DRender::QObjectPicker::dragEnabledChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}

// SIGNAL 8
void Qt3DRender::QObjectPicker::pressedChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}

// SIGNAL 9
void Qt3DRender::QObjectPicker::containsMouseChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 9, nullptr, _t1);
}

// SIGNAL 10
void Qt3DRender::QObjectPicker::priorityChanged(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 10, nullptr, _t1);
}
QT_WARNING_POP
