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

template <> constexpr inline auto Qt3DRender::QStencilOperationArguments::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DRender26QStencilOperationArgumentsE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DRender::QStencilOperationArguments",
        "stencilTestFailureOperationChanged",
        "",
        "Operation",
        "stencilFail",
        "depthTestFailureOperationChanged",
        "depthFail",
        "allTestsPassOperationChanged",
        "stencilDepthPass",
        "faceModeChanged",
        "FaceMode",
        "faceMode",
        "setStencilTestFailureOperation",
        "operation",
        "setDepthTestFailureOperation",
        "setAllTestsPassOperation",
        "stencilTestFailureOperation",
        "depthTestFailureOperation",
        "allTestsPassOperation",
        "Front",
        "Back",
        "FrontAndBack",
        "Zero",
        "Keep",
        "Replace",
        "Increment",
        "Decrement",
        "IncrementWrap",
        "DecrementWrap",
        "Invert"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'stencilTestFailureOperationChanged'
        QtMocHelpers::SignalData<void(enum Operation)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'depthTestFailureOperationChanged'
        QtMocHelpers::SignalData<void(enum Operation)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 6 },
        }}),
        // Signal 'allTestsPassOperationChanged'
        QtMocHelpers::SignalData<void(enum Operation)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 8 },
        }}),
        // Signal 'faceModeChanged'
        QtMocHelpers::SignalData<void(enum FaceMode)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Slot 'setStencilTestFailureOperation'
        QtMocHelpers::SlotData<void(enum Operation)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 13 },
        }}),
        // Slot 'setDepthTestFailureOperation'
        QtMocHelpers::SlotData<void(enum Operation)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 13 },
        }}),
        // Slot 'setAllTestsPassOperation'
        QtMocHelpers::SlotData<void(enum Operation)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 13 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'faceMode'
        QtMocHelpers::PropertyData<enum FaceMode>(11, 0x80000000 | 10, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 3),
        // property 'stencilTestFailureOperation'
        QtMocHelpers::PropertyData<enum Operation>(16, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'depthTestFailureOperation'
        QtMocHelpers::PropertyData<enum Operation>(17, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'allTestsPassOperation'
        QtMocHelpers::PropertyData<enum Operation>(18, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 2),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'FaceMode'
        QtMocHelpers::EnumData<enum FaceMode>(10, 10, QMC::EnumFlags{}).add({
            {   19, FaceMode::Front },
            {   20, FaceMode::Back },
            {   21, FaceMode::FrontAndBack },
        }),
        // enum 'Operation'
        QtMocHelpers::EnumData<enum Operation>(3, 3, QMC::EnumFlags{}).add({
            {   22, Operation::Zero },
            {   23, Operation::Keep },
            {   24, Operation::Replace },
            {   25, Operation::Increment },
            {   26, Operation::Decrement },
            {   27, Operation::IncrementWrap },
            {   28, Operation::DecrementWrap },
            {   29, Operation::Invert },
        }),
    };
    return QtMocHelpers::metaObjectData<QStencilOperationArguments, qt_meta_tag_ZN10Qt3DRender26QStencilOperationArgumentsE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DRender::QStencilOperationArguments::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender26QStencilOperationArgumentsE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender26QStencilOperationArgumentsE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DRender26QStencilOperationArgumentsE_t>.metaTypes,
    nullptr
} };

void Qt3DRender::QStencilOperationArguments::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QStencilOperationArguments *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->stencilTestFailureOperationChanged((*reinterpret_cast<std::add_pointer_t<enum Operation>>(_a[1]))); break;
        case 1: _t->depthTestFailureOperationChanged((*reinterpret_cast<std::add_pointer_t<enum Operation>>(_a[1]))); break;
        case 2: _t->allTestsPassOperationChanged((*reinterpret_cast<std::add_pointer_t<enum Operation>>(_a[1]))); break;
        case 3: _t->faceModeChanged((*reinterpret_cast<std::add_pointer_t<enum FaceMode>>(_a[1]))); break;
        case 4: _t->setStencilTestFailureOperation((*reinterpret_cast<std::add_pointer_t<enum Operation>>(_a[1]))); break;
        case 5: _t->setDepthTestFailureOperation((*reinterpret_cast<std::add_pointer_t<enum Operation>>(_a[1]))); break;
        case 6: _t->setAllTestsPassOperation((*reinterpret_cast<std::add_pointer_t<enum Operation>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QStencilOperationArguments::*)(Operation )>(_a, &QStencilOperationArguments::stencilTestFailureOperationChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QStencilOperationArguments::*)(Operation )>(_a, &QStencilOperationArguments::depthTestFailureOperationChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QStencilOperationArguments::*)(Operation )>(_a, &QStencilOperationArguments::allTestsPassOperationChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QStencilOperationArguments::*)(FaceMode )>(_a, &QStencilOperationArguments::faceModeChanged, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<enum FaceMode*>(_v) = _t->faceMode(); break;
        case 1: *reinterpret_cast<enum Operation*>(_v) = _t->stencilTestFailureOperation(); break;
        case 2: *reinterpret_cast<enum Operation*>(_v) = _t->depthTestFailureOperation(); break;
        case 3: *reinterpret_cast<enum Operation*>(_v) = _t->allTestsPassOperation(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setStencilTestFailureOperation(*reinterpret_cast<enum Operation*>(_v)); break;
        case 2: _t->setDepthTestFailureOperation(*reinterpret_cast<enum Operation*>(_v)); break;
        case 3: _t->setAllTestsPassOperation(*reinterpret_cast<enum Operation*>(_v)); break;
        default: break;
        }
    }
}

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

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

int Qt3DRender::QStencilOperationArguments::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 < 7)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 7)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 7;
    }
    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::QStencilOperationArguments::stencilTestFailureOperationChanged(Operation _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DRender::QStencilOperationArguments::depthTestFailureOperationChanged(Operation _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DRender::QStencilOperationArguments::allTestsPassOperationChanged(Operation _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Qt3DRender::QStencilOperationArguments::faceModeChanged(FaceMode _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}
QT_WARNING_POP
