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

template <> constexpr inline auto Qt3DRender::QBlendEquationArguments::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DRender23QBlendEquationArgumentsE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DRender::QBlendEquationArguments",
        "sourceRgbChanged",
        "",
        "Blending",
        "sourceRgb",
        "sourceAlphaChanged",
        "sourceAlpha",
        "destinationRgbChanged",
        "destinationRgb",
        "destinationAlphaChanged",
        "destinationAlpha",
        "sourceRgbaChanged",
        "sourceRgba",
        "destinationRgbaChanged",
        "destinationRgba",
        "bufferIndexChanged",
        "index",
        "setSourceRgb",
        "setDestinationRgb",
        "setSourceAlpha",
        "setDestinationAlpha",
        "setSourceRgba",
        "setDestinationRgba",
        "setBufferIndex",
        "bufferIndex",
        "Zero",
        "One",
        "SourceColor",
        "SourceAlpha",
        "Source1Alpha",
        "Source1Color",
        "DestinationColor",
        "DestinationAlpha",
        "SourceAlphaSaturate",
        "ConstantColor",
        "ConstantAlpha",
        "OneMinusSourceColor",
        "OneMinusSourceAlpha",
        "OneMinusDestinationAlpha",
        "OneMinusDestinationColor",
        "OneMinusConstantColor",
        "OneMinusConstantAlpha",
        "OneMinusSource1Alpha",
        "OneMinusSource1Color",
        "OneMinusSource1Color0"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'sourceRgbChanged'
        QtMocHelpers::SignalData<void(enum Blending)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'sourceAlphaChanged'
        QtMocHelpers::SignalData<void(enum Blending)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 6 },
        }}),
        // Signal 'destinationRgbChanged'
        QtMocHelpers::SignalData<void(enum Blending)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 8 },
        }}),
        // Signal 'destinationAlphaChanged'
        QtMocHelpers::SignalData<void(enum Blending)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 10 },
        }}),
        // Signal 'sourceRgbaChanged'
        QtMocHelpers::SignalData<void(enum Blending)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 12 },
        }}),
        // Signal 'destinationRgbaChanged'
        QtMocHelpers::SignalData<void(enum Blending)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 14 },
        }}),
        // Signal 'bufferIndexChanged'
        QtMocHelpers::SignalData<void(int)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 16 },
        }}),
        // Slot 'setSourceRgb'
        QtMocHelpers::SlotData<void(enum Blending)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'setDestinationRgb'
        QtMocHelpers::SlotData<void(enum Blending)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 8 },
        }}),
        // Slot 'setSourceAlpha'
        QtMocHelpers::SlotData<void(enum Blending)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 6 },
        }}),
        // Slot 'setDestinationAlpha'
        QtMocHelpers::SlotData<void(enum Blending)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 10 },
        }}),
        // Slot 'setSourceRgba'
        QtMocHelpers::SlotData<void(enum Blending)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 12 },
        }}),
        // Slot 'setDestinationRgba'
        QtMocHelpers::SlotData<void(enum Blending)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 14 },
        }}),
        // Slot 'setBufferIndex'
        QtMocHelpers::SlotData<void(int)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 16 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'sourceRgb'
        QtMocHelpers::PropertyData<enum Blending>(4, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'sourceAlpha'
        QtMocHelpers::PropertyData<enum Blending>(6, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'destinationRgb'
        QtMocHelpers::PropertyData<enum Blending>(8, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 2),
        // property 'destinationAlpha'
        QtMocHelpers::PropertyData<enum Blending>(10, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 3),
        // property 'bufferIndex'
        QtMocHelpers::PropertyData<int>(24, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 6),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Blending'
        QtMocHelpers::EnumData<enum Blending>(3, 3, QMC::EnumFlags{}).add({
            {   25, Blending::Zero },
            {   26, Blending::One },
            {   27, Blending::SourceColor },
            {   28, Blending::SourceAlpha },
            {   29, Blending::Source1Alpha },
            {   30, Blending::Source1Color },
            {   31, Blending::DestinationColor },
            {   32, Blending::DestinationAlpha },
            {   33, Blending::SourceAlphaSaturate },
            {   34, Blending::ConstantColor },
            {   35, Blending::ConstantAlpha },
            {   36, Blending::OneMinusSourceColor },
            {   37, Blending::OneMinusSourceAlpha },
            {   38, Blending::OneMinusDestinationAlpha },
            {   39, Blending::OneMinusDestinationColor },
            {   40, Blending::OneMinusConstantColor },
            {   41, Blending::OneMinusConstantAlpha },
            {   42, Blending::OneMinusSource1Alpha },
            {   43, Blending::OneMinusSource1Color },
            {   44, Blending::OneMinusSource1Color0 },
        }),
    };
    return QtMocHelpers::metaObjectData<QBlendEquationArguments, qt_meta_tag_ZN10Qt3DRender23QBlendEquationArgumentsE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DRender::QBlendEquationArguments::staticMetaObject = { {
    QMetaObject::SuperData::link<QRenderState::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender23QBlendEquationArgumentsE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender23QBlendEquationArgumentsE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DRender23QBlendEquationArgumentsE_t>.metaTypes,
    nullptr
} };

void Qt3DRender::QBlendEquationArguments::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QBlendEquationArguments *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->sourceRgbChanged((*reinterpret_cast<std::add_pointer_t<enum Blending>>(_a[1]))); break;
        case 1: _t->sourceAlphaChanged((*reinterpret_cast<std::add_pointer_t<enum Blending>>(_a[1]))); break;
        case 2: _t->destinationRgbChanged((*reinterpret_cast<std::add_pointer_t<enum Blending>>(_a[1]))); break;
        case 3: _t->destinationAlphaChanged((*reinterpret_cast<std::add_pointer_t<enum Blending>>(_a[1]))); break;
        case 4: _t->sourceRgbaChanged((*reinterpret_cast<std::add_pointer_t<enum Blending>>(_a[1]))); break;
        case 5: _t->destinationRgbaChanged((*reinterpret_cast<std::add_pointer_t<enum Blending>>(_a[1]))); break;
        case 6: _t->bufferIndexChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 7: _t->setSourceRgb((*reinterpret_cast<std::add_pointer_t<enum Blending>>(_a[1]))); break;
        case 8: _t->setDestinationRgb((*reinterpret_cast<std::add_pointer_t<enum Blending>>(_a[1]))); break;
        case 9: _t->setSourceAlpha((*reinterpret_cast<std::add_pointer_t<enum Blending>>(_a[1]))); break;
        case 10: _t->setDestinationAlpha((*reinterpret_cast<std::add_pointer_t<enum Blending>>(_a[1]))); break;
        case 11: _t->setSourceRgba((*reinterpret_cast<std::add_pointer_t<enum Blending>>(_a[1]))); break;
        case 12: _t->setDestinationRgba((*reinterpret_cast<std::add_pointer_t<enum Blending>>(_a[1]))); break;
        case 13: _t->setBufferIndex((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QBlendEquationArguments::*)(Blending )>(_a, &QBlendEquationArguments::sourceRgbChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QBlendEquationArguments::*)(Blending )>(_a, &QBlendEquationArguments::sourceAlphaChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QBlendEquationArguments::*)(Blending )>(_a, &QBlendEquationArguments::destinationRgbChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QBlendEquationArguments::*)(Blending )>(_a, &QBlendEquationArguments::destinationAlphaChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (QBlendEquationArguments::*)(Blending )>(_a, &QBlendEquationArguments::sourceRgbaChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (QBlendEquationArguments::*)(Blending )>(_a, &QBlendEquationArguments::destinationRgbaChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (QBlendEquationArguments::*)(int )>(_a, &QBlendEquationArguments::bufferIndexChanged, 6))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<enum Blending*>(_v) = _t->sourceRgb(); break;
        case 1: *reinterpret_cast<enum Blending*>(_v) = _t->sourceAlpha(); break;
        case 2: *reinterpret_cast<enum Blending*>(_v) = _t->destinationRgb(); break;
        case 3: *reinterpret_cast<enum Blending*>(_v) = _t->destinationAlpha(); break;
        case 4: *reinterpret_cast<int*>(_v) = _t->bufferIndex(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setSourceRgb(*reinterpret_cast<enum Blending*>(_v)); break;
        case 1: _t->setSourceAlpha(*reinterpret_cast<enum Blending*>(_v)); break;
        case 2: _t->setDestinationRgb(*reinterpret_cast<enum Blending*>(_v)); break;
        case 3: _t->setDestinationAlpha(*reinterpret_cast<enum Blending*>(_v)); break;
        case 4: _t->setBufferIndex(*reinterpret_cast<int*>(_v)); break;
        default: break;
        }
    }
}

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

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

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

// SIGNAL 0
void Qt3DRender::QBlendEquationArguments::sourceRgbChanged(Blending _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DRender::QBlendEquationArguments::sourceAlphaChanged(Blending _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DRender::QBlendEquationArguments::destinationRgbChanged(Blending _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Qt3DRender::QBlendEquationArguments::destinationAlphaChanged(Blending _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Qt3DRender::QBlendEquationArguments::sourceRgbaChanged(Blending _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void Qt3DRender::QBlendEquationArguments::destinationRgbaChanged(Blending _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void Qt3DRender::QBlendEquationArguments::bufferIndexChanged(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}
QT_WARNING_POP
