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

#include "../../../box2dprismaticjoint.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 'box2dprismaticjoint.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.1. 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_ZN19Box2DPrismaticJointE_t {};
} // unnamed namespace

template <> constexpr inline auto Box2DPrismaticJoint::qt_create_metaobjectdata<qt_meta_tag_ZN19Box2DPrismaticJointE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Box2DPrismaticJoint",
        "localAnchorAChanged",
        "",
        "localAnchorBChanged",
        "localAxisAChanged",
        "referenceAngleChanged",
        "enableLimitChanged",
        "lowerTranslationChanged",
        "upperTranslationChanged",
        "enableMotorChanged",
        "maxMotorForceChanged",
        "motorSpeedChanged",
        "getJointTranslation",
        "getJointSpeed",
        "localAnchorA",
        "QPointF",
        "localAnchorB",
        "localAxisA",
        "referenceAngle",
        "enableLimit",
        "lowerTranslation",
        "upperTranslation",
        "enableMotor",
        "maxMotorForce",
        "motorSpeed"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'localAnchorAChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'localAnchorBChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'localAxisAChanged'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'referenceAngleChanged'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'enableLimitChanged'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'lowerTranslationChanged'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'upperTranslationChanged'
        QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'enableMotorChanged'
        QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'maxMotorForceChanged'
        QtMocHelpers::SignalData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'motorSpeedChanged'
        QtMocHelpers::SignalData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'getJointTranslation'
        QtMocHelpers::MethodData<float() const>(12, 2, QMC::AccessPublic, QMetaType::Float),
        // Method 'getJointSpeed'
        QtMocHelpers::MethodData<float() const>(13, 2, QMC::AccessPublic, QMetaType::Float),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'localAnchorA'
        QtMocHelpers::PropertyData<QPointF>(14, 0x80000000 | 15, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'localAnchorB'
        QtMocHelpers::PropertyData<QPointF>(16, 0x80000000 | 15, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'localAxisA'
        QtMocHelpers::PropertyData<QPointF>(17, 0x80000000 | 15, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 2),
        // property 'referenceAngle'
        QtMocHelpers::PropertyData<float>(18, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
        // property 'enableLimit'
        QtMocHelpers::PropertyData<bool>(19, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
        // property 'lowerTranslation'
        QtMocHelpers::PropertyData<float>(20, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 5),
        // property 'upperTranslation'
        QtMocHelpers::PropertyData<float>(21, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 6),
        // property 'enableMotor'
        QtMocHelpers::PropertyData<bool>(22, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 7),
        // property 'maxMotorForce'
        QtMocHelpers::PropertyData<float>(23, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 8),
        // property 'motorSpeed'
        QtMocHelpers::PropertyData<float>(24, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 9),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Box2DPrismaticJoint, qt_meta_tag_ZN19Box2DPrismaticJointE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Box2DPrismaticJoint::staticMetaObject = { {
    QMetaObject::SuperData::link<Box2DJoint::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN19Box2DPrismaticJointE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN19Box2DPrismaticJointE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN19Box2DPrismaticJointE_t>.metaTypes,
    nullptr
} };

void Box2DPrismaticJoint::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Box2DPrismaticJoint *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->localAnchorAChanged(); break;
        case 1: _t->localAnchorBChanged(); break;
        case 2: _t->localAxisAChanged(); break;
        case 3: _t->referenceAngleChanged(); break;
        case 4: _t->enableLimitChanged(); break;
        case 5: _t->lowerTranslationChanged(); break;
        case 6: _t->upperTranslationChanged(); break;
        case 7: _t->enableMotorChanged(); break;
        case 8: _t->maxMotorForceChanged(); break;
        case 9: _t->motorSpeedChanged(); break;
        case 10: { float _r = _t->getJointTranslation();
            if (_a[0]) *reinterpret_cast<float*>(_a[0]) = std::move(_r); }  break;
        case 11: { float _r = _t->getJointSpeed();
            if (_a[0]) *reinterpret_cast<float*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Box2DPrismaticJoint::*)()>(_a, &Box2DPrismaticJoint::localAnchorAChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DPrismaticJoint::*)()>(_a, &Box2DPrismaticJoint::localAnchorBChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DPrismaticJoint::*)()>(_a, &Box2DPrismaticJoint::localAxisAChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DPrismaticJoint::*)()>(_a, &Box2DPrismaticJoint::referenceAngleChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DPrismaticJoint::*)()>(_a, &Box2DPrismaticJoint::enableLimitChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DPrismaticJoint::*)()>(_a, &Box2DPrismaticJoint::lowerTranslationChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DPrismaticJoint::*)()>(_a, &Box2DPrismaticJoint::upperTranslationChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DPrismaticJoint::*)()>(_a, &Box2DPrismaticJoint::enableMotorChanged, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DPrismaticJoint::*)()>(_a, &Box2DPrismaticJoint::maxMotorForceChanged, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DPrismaticJoint::*)()>(_a, &Box2DPrismaticJoint::motorSpeedChanged, 9))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QPointF*>(_v) = _t->localAnchorA(); break;
        case 1: *reinterpret_cast<QPointF*>(_v) = _t->localAnchorB(); break;
        case 2: *reinterpret_cast<QPointF*>(_v) = _t->localAxisA(); break;
        case 3: *reinterpret_cast<float*>(_v) = _t->referenceAngle(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->enableLimit(); break;
        case 5: *reinterpret_cast<float*>(_v) = _t->lowerTranslation(); break;
        case 6: *reinterpret_cast<float*>(_v) = _t->upperTranslation(); break;
        case 7: *reinterpret_cast<bool*>(_v) = _t->enableMotor(); break;
        case 8: *reinterpret_cast<float*>(_v) = _t->maxMotorForce(); break;
        case 9: *reinterpret_cast<float*>(_v) = _t->motorSpeed(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setLocalAnchorA(*reinterpret_cast<QPointF*>(_v)); break;
        case 1: _t->setLocalAnchorB(*reinterpret_cast<QPointF*>(_v)); break;
        case 2: _t->setLocalAxisA(*reinterpret_cast<QPointF*>(_v)); break;
        case 3: _t->setReferenceAngle(*reinterpret_cast<float*>(_v)); break;
        case 4: _t->setEnableLimit(*reinterpret_cast<bool*>(_v)); break;
        case 5: _t->setLowerTranslation(*reinterpret_cast<float*>(_v)); break;
        case 6: _t->setUpperTranslation(*reinterpret_cast<float*>(_v)); break;
        case 7: _t->setEnableMotor(*reinterpret_cast<bool*>(_v)); break;
        case 8: _t->setMaxMotorForce(*reinterpret_cast<float*>(_v)); break;
        case 9: _t->setMotorSpeed(*reinterpret_cast<float*>(_v)); break;
        default: break;
        }
    }
}

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

void *Box2DPrismaticJoint::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN19Box2DPrismaticJointE_t>.strings))
        return static_cast<void*>(this);
    return Box2DJoint::qt_metacast(_clname);
}

int Box2DPrismaticJoint::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Box2DJoint::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)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _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 -= 10;
    }
    return _id;
}

// SIGNAL 0
void Box2DPrismaticJoint::localAnchorAChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void Box2DPrismaticJoint::localAnchorBChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void Box2DPrismaticJoint::localAxisAChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void Box2DPrismaticJoint::referenceAngleChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void Box2DPrismaticJoint::enableLimitChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void Box2DPrismaticJoint::lowerTranslationChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void Box2DPrismaticJoint::upperTranslationChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void Box2DPrismaticJoint::enableMotorChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void Box2DPrismaticJoint::maxMotorForceChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}

// SIGNAL 9
void Box2DPrismaticJoint::motorSpeedChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}
QT_WARNING_POP
