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

#include <memory>
#include "../../../../qt3d/src/render/renderstates/qstenciloperationarguments.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qstenciloperationarguments.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_Qt3DRender__QStencilOperationArguments_t {
    QByteArrayData data[30];
    char stringdata0[488];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Qt3DRender__QStencilOperationArguments_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Qt3DRender__QStencilOperationArguments_t qt_meta_stringdata_Qt3DRender__QStencilOperationArguments = {
    {
QT_MOC_LITERAL(0, 0, 38), // "Qt3DRender::QStencilOperation..."
QT_MOC_LITERAL(1, 39, 34), // "stencilTestFailureOperationCh..."
QT_MOC_LITERAL(2, 74, 0), // ""
QT_MOC_LITERAL(3, 75, 9), // "Operation"
QT_MOC_LITERAL(4, 85, 11), // "stencilFail"
QT_MOC_LITERAL(5, 97, 32), // "depthTestFailureOperationChanged"
QT_MOC_LITERAL(6, 130, 9), // "depthFail"
QT_MOC_LITERAL(7, 140, 28), // "allTestsPassOperationChanged"
QT_MOC_LITERAL(8, 169, 16), // "stencilDepthPass"
QT_MOC_LITERAL(9, 186, 15), // "faceModeChanged"
QT_MOC_LITERAL(10, 202, 8), // "FaceMode"
QT_MOC_LITERAL(11, 211, 8), // "faceMode"
QT_MOC_LITERAL(12, 220, 30), // "setStencilTestFailureOperation"
QT_MOC_LITERAL(13, 251, 9), // "operation"
QT_MOC_LITERAL(14, 261, 28), // "setDepthTestFailureOperation"
QT_MOC_LITERAL(15, 290, 24), // "setAllTestsPassOperation"
QT_MOC_LITERAL(16, 315, 27), // "stencilTestFailureOperation"
QT_MOC_LITERAL(17, 343, 25), // "depthTestFailureOperation"
QT_MOC_LITERAL(18, 369, 21), // "allTestsPassOperation"
QT_MOC_LITERAL(19, 391, 5), // "Front"
QT_MOC_LITERAL(20, 397, 4), // "Back"
QT_MOC_LITERAL(21, 402, 12), // "FrontAndBack"
QT_MOC_LITERAL(22, 415, 4), // "Zero"
QT_MOC_LITERAL(23, 420, 4), // "Keep"
QT_MOC_LITERAL(24, 425, 7), // "Replace"
QT_MOC_LITERAL(25, 433, 9), // "Increment"
QT_MOC_LITERAL(26, 443, 9), // "Decrement"
QT_MOC_LITERAL(27, 453, 13), // "IncrementWrap"
QT_MOC_LITERAL(28, 467, 13), // "DecrementWrap"
QT_MOC_LITERAL(29, 481, 6) // "Invert"

    },
    "Qt3DRender::QStencilOperationArguments\0"
    "stencilTestFailureOperationChanged\0\0"
    "Operation\0stencilFail\0"
    "depthTestFailureOperationChanged\0"
    "depthFail\0allTestsPassOperationChanged\0"
    "stencilDepthPass\0faceModeChanged\0"
    "FaceMode\0faceMode\0setStencilTestFailureOperation\0"
    "operation\0setDepthTestFailureOperation\0"
    "setAllTestsPassOperation\0"
    "stencilTestFailureOperation\0"
    "depthTestFailureOperation\0"
    "allTestsPassOperation\0Front\0Back\0"
    "FrontAndBack\0Zero\0Keep\0Replace\0Increment\0"
    "Decrement\0IncrementWrap\0DecrementWrap\0"
    "Invert"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Qt3DRender__QStencilOperationArguments[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
       7,   14, // methods
       4,   70, // properties
       2,   86, // enums/sets
       0,    0, // constructors
       0,       // flags
       4,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   49,    2, 0x06 /* Public */,
       5,    1,   52,    2, 0x06 /* Public */,
       7,    1,   55,    2, 0x06 /* Public */,
       9,    1,   58,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      12,    1,   61,    2, 0x0a /* Public */,
      14,    1,   64,    2, 0x0a /* Public */,
      15,    1,   67,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 3,    6,
    QMetaType::Void, 0x80000000 | 3,    8,
    QMetaType::Void, 0x80000000 | 10,   11,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 3,   13,
    QMetaType::Void, 0x80000000 | 3,   13,
    QMetaType::Void, 0x80000000 | 3,   13,

 // properties: name, type, flags
      11, 0x80000000 | 10, 0x00495009,
      16, 0x80000000 | 3, 0x0049510b,
      17, 0x80000000 | 3, 0x0049510b,
      18, 0x80000000 | 3, 0x0049510b,

 // properties: notify_signal_id
       3,
       0,
       1,
       2,

 // enums: name, alias, flags, count, data
      10,   10, 0x0,    3,   96,
       3,    3, 0x0,    8,  102,

 // enum data: key, value
      19, uint(Qt3DRender::QStencilOperationArguments::Front),
      20, uint(Qt3DRender::QStencilOperationArguments::Back),
      21, uint(Qt3DRender::QStencilOperationArguments::FrontAndBack),
      22, uint(Qt3DRender::QStencilOperationArguments::Zero),
      23, uint(Qt3DRender::QStencilOperationArguments::Keep),
      24, uint(Qt3DRender::QStencilOperationArguments::Replace),
      25, uint(Qt3DRender::QStencilOperationArguments::Increment),
      26, uint(Qt3DRender::QStencilOperationArguments::Decrement),
      27, uint(Qt3DRender::QStencilOperationArguments::IncrementWrap),
      28, uint(Qt3DRender::QStencilOperationArguments::DecrementWrap),
      29, uint(Qt3DRender::QStencilOperationArguments::Invert),

       0        // eod
};

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

QT_INIT_METAOBJECT const QMetaObject Qt3DRender::QStencilOperationArguments::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_meta_stringdata_Qt3DRender__QStencilOperationArguments.data,
    qt_meta_data_Qt3DRender__QStencilOperationArguments,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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_meta_stringdata_Qt3DRender__QStencilOperationArguments.stringdata0))
        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;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 7)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 7;
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 4;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void Qt3DRender::QStencilOperationArguments::stencilTestFailureOperationChanged(Operation _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void Qt3DRender::QStencilOperationArguments::depthTestFailureOperationChanged(Operation _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void Qt3DRender::QStencilOperationArguments::allTestsPassOperationChanged(Operation _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void Qt3DRender::QStencilOperationArguments::faceModeChanged(FaceMode _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
