/****************************************************************************
** Meta object code from reading C++ file 'qscene2d.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/quick3d/quick3dscene2d/items/qscene2d.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 'qscene2d.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_ZN10Qt3DRender5Quick8QScene2DE_t {};
} // unnamed namespace

template <> constexpr inline auto Qt3DRender::Quick::QScene2D::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DRender5Quick8QScene2DE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DRender::Quick::QScene2D",
        "DefaultProperty",
        "item",
        "outputChanged",
        "",
        "Qt3DRender::QRenderTargetOutput*",
        "output",
        "renderPolicyChanged",
        "QScene2D::RenderPolicy",
        "policy",
        "itemChanged",
        "QQuickItem*",
        "mouseEnabledChanged",
        "enabled",
        "setOutput",
        "setRenderPolicy",
        "setItem",
        "setMouseEnabled",
        "renderPolicy",
        "RenderPolicy",
        "mouseEnabled",
        "Continuous",
        "SingleShot"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'outputChanged'
        QtMocHelpers::SignalData<void(Qt3DRender::QRenderTargetOutput *)>(3, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
        // Signal 'renderPolicyChanged'
        QtMocHelpers::SignalData<void(QScene2D::RenderPolicy)>(7, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Signal 'itemChanged'
        QtMocHelpers::SignalData<void(QQuickItem *)>(10, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 2 },
        }}),
        // Signal 'mouseEnabledChanged'
        QtMocHelpers::SignalData<void(bool)>(12, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 13 },
        }}),
        // Slot 'setOutput'
        QtMocHelpers::SlotData<void(Qt3DRender::QRenderTargetOutput *)>(14, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
        // Slot 'setRenderPolicy'
        QtMocHelpers::SlotData<void(QScene2D::RenderPolicy)>(15, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Slot 'setItem'
        QtMocHelpers::SlotData<void(QQuickItem *)>(16, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 2 },
        }}),
        // Slot 'setMouseEnabled'
        QtMocHelpers::SlotData<void(bool)>(17, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 13 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'output'
        QtMocHelpers::PropertyData<Qt3DRender::QRenderTargetOutput*>(6, 0x80000000 | 5, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'renderPolicy'
        QtMocHelpers::PropertyData<enum RenderPolicy>(18, 0x80000000 | 19, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'item'
        QtMocHelpers::PropertyData<QQuickItem*>(2, 0x80000000 | 11, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 2),
        // property 'mouseEnabled'
        QtMocHelpers::PropertyData<bool>(20, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'RenderPolicy'
        QtMocHelpers::EnumData<enum RenderPolicy>(19, 19, QMC::EnumFlags{}).add({
            {   21, RenderPolicy::Continuous },
            {   22, RenderPolicy::SingleShot },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<QScene2D, qt_meta_tag_ZN10Qt3DRender5Quick8QScene2DE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject Qt3DRender::Quick::QScene2D::staticMetaObject = { {
    QMetaObject::SuperData::link<Qt3DCore::QNode::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender5Quick8QScene2DE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender5Quick8QScene2DE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DRender5Quick8QScene2DE_t>.metaTypes,
    nullptr
} };

void Qt3DRender::Quick::QScene2D::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QScene2D *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->outputChanged((*reinterpret_cast<std::add_pointer_t<Qt3DRender::QRenderTargetOutput*>>(_a[1]))); break;
        case 1: _t->renderPolicyChanged((*reinterpret_cast<std::add_pointer_t<QScene2D::RenderPolicy>>(_a[1]))); break;
        case 2: _t->itemChanged((*reinterpret_cast<std::add_pointer_t<QQuickItem*>>(_a[1]))); break;
        case 3: _t->mouseEnabledChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 4: _t->setOutput((*reinterpret_cast<std::add_pointer_t<Qt3DRender::QRenderTargetOutput*>>(_a[1]))); break;
        case 5: _t->setRenderPolicy((*reinterpret_cast<std::add_pointer_t<QScene2D::RenderPolicy>>(_a[1]))); break;
        case 6: _t->setItem((*reinterpret_cast<std::add_pointer_t<QQuickItem*>>(_a[1]))); break;
        case 7: _t->setMouseEnabled((*reinterpret_cast<std::add_pointer_t<bool>>(_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< Qt3DRender::QRenderTargetOutput* >(); 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< QQuickItem* >(); break;
            }
            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< Qt3DRender::QRenderTargetOutput* >(); 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< QQuickItem* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QScene2D::*)(Qt3DRender::QRenderTargetOutput * )>(_a, &QScene2D::outputChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QScene2D::*)(QScene2D::RenderPolicy )>(_a, &QScene2D::renderPolicyChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QScene2D::*)(QQuickItem * )>(_a, &QScene2D::itemChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QScene2D::*)(bool )>(_a, &QScene2D::mouseEnabledChanged, 3))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 2:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickItem* >(); break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Qt3DRender::QRenderTargetOutput* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<Qt3DRender::QRenderTargetOutput**>(_v) = _t->output(); break;
        case 1: *reinterpret_cast<enum RenderPolicy*>(_v) = _t->renderPolicy(); break;
        case 2: *reinterpret_cast<QQuickItem**>(_v) = _t->item(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->isMouseEnabled(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setOutput(*reinterpret_cast<Qt3DRender::QRenderTargetOutput**>(_v)); break;
        case 1: _t->setRenderPolicy(*reinterpret_cast<enum RenderPolicy*>(_v)); break;
        case 2: _t->setItem(*reinterpret_cast<QQuickItem**>(_v)); break;
        case 3: _t->setMouseEnabled(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

void *Qt3DRender::Quick::QScene2D::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender5Quick8QScene2DE_t>.strings))
        return static_cast<void*>(this);
    return Qt3DCore::QNode::qt_metacast(_clname);
}

int Qt3DRender::Quick::QScene2D::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Qt3DCore::QNode::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    }
    return _id;
}

// SIGNAL 0
void Qt3DRender::Quick::QScene2D::outputChanged(Qt3DRender::QRenderTargetOutput * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DRender::Quick::QScene2D::renderPolicyChanged(QScene2D::RenderPolicy _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DRender::Quick::QScene2D::itemChanged(QQuickItem * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Qt3DRender::Quick::QScene2D::mouseEnabledChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}
QT_WARNING_POP
