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

template <> constexpr inline auto Qt3DRender::QStencilTestArguments::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DRender21QStencilTestArgumentsE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DRender::QStencilTestArguments",
        "comparisonMaskChanged",
        "",
        "comparisonMask",
        "stencilFunctionChanged",
        "StencilFunction",
        "stencilFunction",
        "referenceValueChanged",
        "referenceValue",
        "faceModeChanged",
        "StencilFaceMode",
        "faceMode",
        "setComparisonMask",
        "setReferenceValue",
        "setStencilFunction",
        "Front",
        "Back",
        "FrontAndBack",
        "Never",
        "Always",
        "Less",
        "LessOrEqual",
        "Equal",
        "GreaterOrEqual",
        "Greater",
        "NotEqual"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'comparisonMaskChanged'
        QtMocHelpers::SignalData<void(uint)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 3 },
        }}),
        // Signal 'stencilFunctionChanged'
        QtMocHelpers::SignalData<void(enum StencilFunction)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
        // Signal 'referenceValueChanged'
        QtMocHelpers::SignalData<void(int)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 8 },
        }}),
        // Signal 'faceModeChanged'
        QtMocHelpers::SignalData<void(enum StencilFaceMode)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 10, 11 },
        }}),
        // Slot 'setComparisonMask'
        QtMocHelpers::SlotData<void(uint)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 3 },
        }}),
        // Slot 'setReferenceValue'
        QtMocHelpers::SlotData<void(int)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 8 },
        }}),
        // Slot 'setStencilFunction'
        QtMocHelpers::SlotData<void(enum StencilFunction)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'faceMode'
        QtMocHelpers::PropertyData<enum StencilFaceMode>(11, 0x80000000 | 10, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 3),
        // property 'comparisonMask'
        QtMocHelpers::PropertyData<uint>(3, QMetaType::UInt, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'referenceValue'
        QtMocHelpers::PropertyData<int>(8, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'stencilFunction'
        QtMocHelpers::PropertyData<enum StencilFunction>(6, 0x80000000 | 5, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'StencilFaceMode'
        QtMocHelpers::EnumData<enum StencilFaceMode>(10, 10, QMC::EnumFlags{}).add({
            {   15, StencilFaceMode::Front },
            {   16, StencilFaceMode::Back },
            {   17, StencilFaceMode::FrontAndBack },
        }),
        // enum 'StencilFunction'
        QtMocHelpers::EnumData<enum StencilFunction>(5, 5, QMC::EnumFlags{}).add({
            {   18, StencilFunction::Never },
            {   19, StencilFunction::Always },
            {   20, StencilFunction::Less },
            {   21, StencilFunction::LessOrEqual },
            {   22, StencilFunction::Equal },
            {   23, StencilFunction::GreaterOrEqual },
            {   24, StencilFunction::Greater },
            {   25, StencilFunction::NotEqual },
        }),
    };
    return QtMocHelpers::metaObjectData<QStencilTestArguments, qt_meta_tag_ZN10Qt3DRender21QStencilTestArgumentsE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DRender::QStencilTestArguments::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender21QStencilTestArgumentsE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender21QStencilTestArgumentsE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DRender21QStencilTestArgumentsE_t>.metaTypes,
    nullptr
} };

void Qt3DRender::QStencilTestArguments::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QStencilTestArguments *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->comparisonMaskChanged((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1]))); break;
        case 1: _t->stencilFunctionChanged((*reinterpret_cast<std::add_pointer_t<enum StencilFunction>>(_a[1]))); break;
        case 2: _t->referenceValueChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 3: _t->faceModeChanged((*reinterpret_cast<std::add_pointer_t<enum StencilFaceMode>>(_a[1]))); break;
        case 4: _t->setComparisonMask((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1]))); break;
        case 5: _t->setReferenceValue((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 6: _t->setStencilFunction((*reinterpret_cast<std::add_pointer_t<enum StencilFunction>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QStencilTestArguments::*)(uint )>(_a, &QStencilTestArguments::comparisonMaskChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QStencilTestArguments::*)(StencilFunction )>(_a, &QStencilTestArguments::stencilFunctionChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QStencilTestArguments::*)(int )>(_a, &QStencilTestArguments::referenceValueChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QStencilTestArguments::*)(StencilFaceMode )>(_a, &QStencilTestArguments::faceModeChanged, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<enum StencilFaceMode*>(_v) = _t->faceMode(); break;
        case 1: *reinterpret_cast<uint*>(_v) = _t->comparisonMask(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->referenceValue(); break;
        case 3: *reinterpret_cast<enum StencilFunction*>(_v) = _t->stencilFunction(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setComparisonMask(*reinterpret_cast<uint*>(_v)); break;
        case 2: _t->setReferenceValue(*reinterpret_cast<int*>(_v)); break;
        case 3: _t->setStencilFunction(*reinterpret_cast<enum StencilFunction*>(_v)); break;
        default: break;
        }
    }
}

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

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

int Qt3DRender::QStencilTestArguments::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::QStencilTestArguments::comparisonMaskChanged(uint _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DRender::QStencilTestArguments::stencilFunctionChanged(StencilFunction _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DRender::QStencilTestArguments::referenceValueChanged(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

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