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

template <> constexpr inline auto Qt3DRender::QPickEvent::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DRender10QPickEventE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DRender::QPickEvent",
        "acceptedChanged",
        "",
        "accepted",
        "setAccepted",
        "position",
        "QPointF",
        "distance",
        "localIntersection",
        "QVector3D",
        "worldIntersection",
        "button",
        "Qt3DRender::QPickEvent::Buttons",
        "buttons",
        "modifiers",
        "viewport",
        "Qt3DRender::QViewport*",
        "entity",
        "Qt3DCore::QEntity*",
        "Buttons",
        "LeftButton",
        "RightButton",
        "MiddleButton",
        "BackButton",
        "NoButton",
        "Modifiers",
        "NoModifier",
        "ShiftModifier",
        "ControlModifier",
        "AltModifier",
        "MetaModifier",
        "KeypadModifier"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'acceptedChanged'
        QtMocHelpers::SignalData<void(bool)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
        // Slot 'setAccepted'
        QtMocHelpers::SlotData<void(bool)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'accepted'
        QtMocHelpers::PropertyData<bool>(3, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'position'
        QtMocHelpers::PropertyData<QPointF>(5, 0x80000000 | 6, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'distance'
        QtMocHelpers::PropertyData<float>(7, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'localIntersection'
        QtMocHelpers::PropertyData<QVector3D>(8, 0x80000000 | 9, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'worldIntersection'
        QtMocHelpers::PropertyData<QVector3D>(10, 0x80000000 | 9, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'button'
        QtMocHelpers::PropertyData<Qt3DRender::QPickEvent::Buttons>(11, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'buttons'
        QtMocHelpers::PropertyData<int>(13, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'modifiers'
        QtMocHelpers::PropertyData<int>(14, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'viewport'
        QtMocHelpers::PropertyData<Qt3DRender::QViewport*>(15, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant, -1, 0x20e),
        // property 'entity'
        QtMocHelpers::PropertyData<Qt3DCore::QEntity*>(17, 0x80000000 | 18, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant, -1, 0x20e),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Buttons'
        QtMocHelpers::EnumData<enum Buttons>(19, 19, QMC::EnumFlags{}).add({
            {   20, Buttons::LeftButton },
            {   21, Buttons::RightButton },
            {   22, Buttons::MiddleButton },
            {   23, Buttons::BackButton },
            {   24, Buttons::NoButton },
        }),
        // enum 'Modifiers'
        QtMocHelpers::EnumData<enum Modifiers>(25, 25, QMC::EnumFlags{}).add({
            {   26, Modifiers::NoModifier },
            {   27, Modifiers::ShiftModifier },
            {   28, Modifiers::ControlModifier },
            {   29, Modifiers::AltModifier },
            {   30, Modifiers::MetaModifier },
            {   31, Modifiers::KeypadModifier },
        }),
    };
    return QtMocHelpers::metaObjectData<QPickEvent, qt_meta_tag_ZN10Qt3DRender10QPickEventE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DRender::QPickEvent::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender10QPickEventE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender10QPickEventE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DRender10QPickEventE_t>.metaTypes,
    nullptr
} };

void Qt3DRender::QPickEvent::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QPickEvent *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->acceptedChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 1: _t->setAccepted((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QPickEvent::*)(bool )>(_a, &QPickEvent::acceptedChanged, 0))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 9:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Qt3DCore::QEntity* >(); break;
        case 8:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Qt3DRender::QViewport* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->isAccepted(); break;
        case 1: *reinterpret_cast<QPointF*>(_v) = _t->position(); break;
        case 2: *reinterpret_cast<float*>(_v) = _t->distance(); break;
        case 3: *reinterpret_cast<QVector3D*>(_v) = _t->localIntersection(); break;
        case 4: *reinterpret_cast<QVector3D*>(_v) = _t->worldIntersection(); break;
        case 5: *reinterpret_cast<Qt3DRender::QPickEvent::Buttons*>(_v) = _t->button(); break;
        case 6: *reinterpret_cast<int*>(_v) = _t->buttons(); break;
        case 7: *reinterpret_cast<int*>(_v) = _t->modifiers(); break;
        case 8: *reinterpret_cast<Qt3DRender::QViewport**>(_v) = _t->viewport(); break;
        case 9: *reinterpret_cast<Qt3DCore::QEntity**>(_v) = _t->entity(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setAccepted(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

void *Qt3DRender::QPickEvent::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender10QPickEventE_t>.strings))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int Qt3DRender::QPickEvent::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 2)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 2)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 2;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    return _id;
}

// SIGNAL 0
void Qt3DRender::QPickEvent::acceptedChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}
QT_WARNING_POP
