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

template <> constexpr inline auto Qt3DAnimation::QAnimationController::qt_create_metaobjectdata<qt_meta_tag_ZN13Qt3DAnimation20QAnimationControllerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DAnimation::QAnimationController",
        "activeAnimationGroupChanged",
        "",
        "index",
        "positionChanged",
        "position",
        "positionScaleChanged",
        "scale",
        "positionOffsetChanged",
        "offset",
        "entityChanged",
        "Qt3DCore::QEntity*",
        "entity",
        "recursiveChanged",
        "recursive",
        "setActiveAnimationGroup",
        "setPosition",
        "setPositionScale",
        "setPositionOffset",
        "setEntity",
        "setRecursive",
        "getAnimationIndex",
        "name",
        "getGroup",
        "Qt3DAnimation::QAnimationGroup*",
        "activeAnimationGroup",
        "positionScale",
        "positionOffset"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'activeAnimationGroupChanged'
        QtMocHelpers::SignalData<void(int)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 },
        }}),
        // Signal 'positionChanged'
        QtMocHelpers::SignalData<void(float)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 5 },
        }}),
        // Signal 'positionScaleChanged'
        QtMocHelpers::SignalData<void(float)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 7 },
        }}),
        // Signal 'positionOffsetChanged'
        QtMocHelpers::SignalData<void(float)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 9 },
        }}),
        // Signal 'entityChanged'
        QtMocHelpers::SignalData<void(Qt3DCore::QEntity *)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Signal 'recursiveChanged'
        QtMocHelpers::SignalData<void(bool)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 14 },
        }}),
        // Slot 'setActiveAnimationGroup'
        QtMocHelpers::SlotData<void(int)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 },
        }}),
        // Slot 'setPosition'
        QtMocHelpers::SlotData<void(float)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 5 },
        }}),
        // Slot 'setPositionScale'
        QtMocHelpers::SlotData<void(float)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 7 },
        }}),
        // Slot 'setPositionOffset'
        QtMocHelpers::SlotData<void(float)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 9 },
        }}),
        // Slot 'setEntity'
        QtMocHelpers::SlotData<void(Qt3DCore::QEntity *)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Slot 'setRecursive'
        QtMocHelpers::SlotData<void(bool)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 14 },
        }}),
        // Method 'getAnimationIndex'
        QtMocHelpers::MethodData<int(const QString &) const>(21, 2, QMC::AccessPublic, QMetaType::Int, {{
            { QMetaType::QString, 22 },
        }}),
        // Method 'getGroup'
        QtMocHelpers::MethodData<Qt3DAnimation::QAnimationGroup *(int) const>(23, 2, QMC::AccessPublic, 0x80000000 | 24, {{
            { QMetaType::Int, 3 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'activeAnimationGroup'
        QtMocHelpers::PropertyData<int>(25, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'position'
        QtMocHelpers::PropertyData<float>(5, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'positionScale'
        QtMocHelpers::PropertyData<float>(26, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'positionOffset'
        QtMocHelpers::PropertyData<float>(27, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
        // property 'entity'
        QtMocHelpers::PropertyData<Qt3DCore::QEntity*>(12, 0x80000000 | 11, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 4),
        // property 'recursive'
        QtMocHelpers::PropertyData<bool>(14, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 5),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<QAnimationController, qt_meta_tag_ZN13Qt3DAnimation20QAnimationControllerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DAnimation::QAnimationController::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13Qt3DAnimation20QAnimationControllerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13Qt3DAnimation20QAnimationControllerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13Qt3DAnimation20QAnimationControllerE_t>.metaTypes,
    nullptr
} };

void Qt3DAnimation::QAnimationController::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QAnimationController *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->activeAnimationGroupChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 1: _t->positionChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 2: _t->positionScaleChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 3: _t->positionOffsetChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 4: _t->entityChanged((*reinterpret_cast<std::add_pointer_t<Qt3DCore::QEntity*>>(_a[1]))); break;
        case 5: _t->recursiveChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 6: _t->setActiveAnimationGroup((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 7: _t->setPosition((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 8: _t->setPositionScale((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 9: _t->setPositionOffset((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 10: _t->setEntity((*reinterpret_cast<std::add_pointer_t<Qt3DCore::QEntity*>>(_a[1]))); break;
        case 11: _t->setRecursive((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 12: { int _r = _t->getAnimationIndex((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 13: { Qt3DAnimation::QAnimationGroup* _r = _t->getGroup((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<Qt3DAnimation::QAnimationGroup**>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Qt3DCore::QEntity* >(); 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< Qt3DCore::QEntity* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QAnimationController::*)(int )>(_a, &QAnimationController::activeAnimationGroupChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QAnimationController::*)(float )>(_a, &QAnimationController::positionChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QAnimationController::*)(float )>(_a, &QAnimationController::positionScaleChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QAnimationController::*)(float )>(_a, &QAnimationController::positionOffsetChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (QAnimationController::*)(Qt3DCore::QEntity * )>(_a, &QAnimationController::entityChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (QAnimationController::*)(bool )>(_a, &QAnimationController::recursiveChanged, 5))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 4:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Qt3DCore::QEntity* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<int*>(_v) = _t->activeAnimationGroup(); break;
        case 1: *reinterpret_cast<float*>(_v) = _t->position(); break;
        case 2: *reinterpret_cast<float*>(_v) = _t->positionScale(); break;
        case 3: *reinterpret_cast<float*>(_v) = _t->positionOffset(); break;
        case 4: *reinterpret_cast<Qt3DCore::QEntity**>(_v) = _t->entity(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->recursive(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setActiveAnimationGroup(*reinterpret_cast<int*>(_v)); break;
        case 1: _t->setPosition(*reinterpret_cast<float*>(_v)); break;
        case 2: _t->setPositionScale(*reinterpret_cast<float*>(_v)); break;
        case 3: _t->setPositionOffset(*reinterpret_cast<float*>(_v)); break;
        case 4: _t->setEntity(*reinterpret_cast<Qt3DCore::QEntity**>(_v)); break;
        case 5: _t->setRecursive(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

int Qt3DAnimation::QAnimationController::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 < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 14)
            qt_static_metacall(this, _c, _id, _a);
        _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 -= 6;
    }
    return _id;
}

// SIGNAL 0
void Qt3DAnimation::QAnimationController::activeAnimationGroupChanged(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DAnimation::QAnimationController::positionChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DAnimation::QAnimationController::positionScaleChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Qt3DAnimation::QAnimationController::positionOffsetChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Qt3DAnimation::QAnimationController::entityChanged(Qt3DCore::QEntity * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void Qt3DAnimation::QAnimationController::recursiveChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}
QT_WARNING_POP
