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

template <> constexpr inline auto Qt3DRender::QRenderSurfaceSelector::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DRender22QRenderSurfaceSelectorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DRender::QRenderSurfaceSelector",
        "surfaceChanged",
        "",
        "surface",
        "externalRenderTargetSizeChanged",
        "QSize",
        "size",
        "surfacePixelRatioChanged",
        "ratio",
        "setSurface",
        "surfaceObject",
        "setSurfacePixelRatio",
        "setExternalRenderTargetSize",
        "externalRenderTargetSize",
        "surfacePixelRatio"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'surfaceChanged'
        QtMocHelpers::SignalData<void(QObject *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QObjectStar, 3 },
        }}),
        // Signal 'externalRenderTargetSizeChanged'
        QtMocHelpers::SignalData<void(const QSize &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
        // Signal 'surfacePixelRatioChanged'
        QtMocHelpers::SignalData<void(float)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 8 },
        }}),
        // Slot 'setSurface'
        QtMocHelpers::SlotData<void(QObject *)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QObjectStar, 10 },
        }}),
        // Slot 'setSurfacePixelRatio'
        QtMocHelpers::SlotData<void(float)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 8 },
        }}),
        // Slot 'setExternalRenderTargetSize'
        QtMocHelpers::SlotData<void(const QSize &)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'surface'
        QtMocHelpers::PropertyData<QObject*>(3, QMetaType::QObjectStar, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'externalRenderTargetSize'
        QtMocHelpers::PropertyData<QSize>(13, 0x80000000 | 5, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'surfacePixelRatio'
        QtMocHelpers::PropertyData<float>(14, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<QRenderSurfaceSelector, qt_meta_tag_ZN10Qt3DRender22QRenderSurfaceSelectorE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DRender::QRenderSurfaceSelector::staticMetaObject = { {
    QMetaObject::SuperData::link<Qt3DRender::QFrameGraphNode::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender22QRenderSurfaceSelectorE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender22QRenderSurfaceSelectorE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DRender22QRenderSurfaceSelectorE_t>.metaTypes,
    nullptr
} };

void Qt3DRender::QRenderSurfaceSelector::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QRenderSurfaceSelector *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->surfaceChanged((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1]))); break;
        case 1: _t->externalRenderTargetSizeChanged((*reinterpret_cast<std::add_pointer_t<QSize>>(_a[1]))); break;
        case 2: _t->surfacePixelRatioChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 3: _t->setSurface((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1]))); break;
        case 4: _t->setSurfacePixelRatio((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 5: _t->setExternalRenderTargetSize((*reinterpret_cast<std::add_pointer_t<QSize>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QRenderSurfaceSelector::*)(QObject * )>(_a, &QRenderSurfaceSelector::surfaceChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QRenderSurfaceSelector::*)(const QSize & )>(_a, &QRenderSurfaceSelector::externalRenderTargetSizeChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QRenderSurfaceSelector::*)(float )>(_a, &QRenderSurfaceSelector::surfacePixelRatioChanged, 2))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QObject**>(_v) = _t->surface(); break;
        case 1: *reinterpret_cast<QSize*>(_v) = _t->externalRenderTargetSize(); break;
        case 2: *reinterpret_cast<float*>(_v) = _t->surfacePixelRatio(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setSurface(*reinterpret_cast<QObject**>(_v)); break;
        case 1: _t->setExternalRenderTargetSize(*reinterpret_cast<QSize*>(_v)); break;
        case 2: _t->setSurfacePixelRatio(*reinterpret_cast<float*>(_v)); break;
        default: break;
        }
    }
}

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

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

int Qt3DRender::QRenderSurfaceSelector::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Qt3DRender::QFrameGraphNode::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 6)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 6)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 6;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
    return _id;
}

// SIGNAL 0
void Qt3DRender::QRenderSurfaceSelector::surfaceChanged(QObject * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DRender::QRenderSurfaceSelector::externalRenderTargetSizeChanged(const QSize & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DRender::QRenderSurfaceSelector::surfacePixelRatioChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}
QT_WARNING_POP
