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

#include "qml_material/util/corner.hpp"
#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 'corner.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.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_ZN12qml_material12CornersGroupE_t {};
} // unnamed namespace

template <> constexpr inline auto qml_material::CornersGroup::qt_create_metaobjectdata<qt_meta_tag_ZN12qml_material12CornersGroupE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "qml_material::CornersGroup",
        "QML.Element",
        "corners",
        "QML.Creatable",
        "true",
        "QML.CreationMethod",
        "construct",
        "radius",
        "",
        "toVector4D",
        "QVector4D",
        "isUniform",
        "CornersGroup",
        "bottomRight",
        "topRight",
        "bottomLeft",
        "topLeft",
        "vec4"
    };

    QtMocHelpers::UintData qt_methods {
        // Method 'radius'
        QtMocHelpers::MethodData<qreal() const>(7, 8, QMC::AccessPublic, QMetaType::QReal),
        // Method 'toVector4D'
        QtMocHelpers::MethodData<QVector4D() const>(9, 8, QMC::AccessPublic, 0x80000000 | 10),
        // Method 'isUniform'
        QtMocHelpers::MethodData<bool() const>(11, 8, QMC::AccessPublic, QMetaType::Bool),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'topLeft'
        QtMocHelpers::PropertyData<qreal>(16, QMetaType::QReal, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet | QMC::Final),
        // property 'topRight'
        QtMocHelpers::PropertyData<qreal>(14, QMetaType::QReal, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet | QMC::Final),
        // property 'bottomLeft'
        QtMocHelpers::PropertyData<qreal>(15, QMetaType::QReal, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet | QMC::Final),
        // property 'bottomRight'
        QtMocHelpers::PropertyData<qreal>(13, QMetaType::QReal, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet | QMC::Final),
    };
    QtMocHelpers::UintData qt_enums {
    };
    using Constructor = QtMocHelpers::NoType;
    QtMocHelpers::UintData qt_constructors {
        QtMocHelpers::ConstructorData<Constructor()>(8, QMC::AccessPublic),
        QtMocHelpers::ConstructorData<Constructor(qreal)>(8, QMC::AccessPublic, {{
            { QMetaType::QReal, 8 },
        }}),
        QtMocHelpers::ConstructorData<Constructor(qreal, qreal, qreal, qreal)>(8, QMC::AccessPublic, {{
            { QMetaType::QReal, 13 }, { QMetaType::QReal, 14 }, { QMetaType::QReal, 15 }, { QMetaType::QReal, 16 },
        }}),
        QtMocHelpers::ConstructorData<Constructor(QVector4D)>(8, QMC::AccessPublic, {{
            { 0x80000000 | 10, 17 },
        }}),
    };
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
            {    5,    6 },
    });
    return QtMocHelpers::metaObjectData<CornersGroup, void>(QMC::PropertyAccessInStaticMetaCall, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject qml_material::CornersGroup::staticMetaObject = { {
    nullptr,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material12CornersGroupE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material12CornersGroupE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12qml_material12CornersGroupE_t>.metaTypes,
    nullptr
} };

void qml_material::CornersGroup::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = reinterpret_cast<CornersGroup *>(_o);
    if (_c == QMetaObject::CreateInstance) {
        switch (_id) {
        case 0: { CornersGroup *_r = new CornersGroup();
            if (_a[0]) *reinterpret_cast<void**>(_a[0]) = _r; } break;
        case 1: { CornersGroup *_r = new CornersGroup((*reinterpret_cast<std::add_pointer_t<qreal>>(_a[1])));
            if (_a[0]) *reinterpret_cast<void**>(_a[0]) = _r; } break;
        case 2: { CornersGroup *_r = new CornersGroup((*reinterpret_cast<std::add_pointer_t<qreal>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<qreal>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<qreal>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<qreal>>(_a[4])));
            if (_a[0]) *reinterpret_cast<void**>(_a[0]) = _r; } break;
        case 3: { CornersGroup *_r = new CornersGroup((*reinterpret_cast<std::add_pointer_t<QVector4D>>(_a[1])));
            if (_a[0]) *reinterpret_cast<void**>(_a[0]) = _r; } break;
        default: break;
        }
    }
    if (_c == QMetaObject::ConstructInPlace) {
        switch (_id) {
        case 0: { new (_a[0]) CornersGroup(); } break;
        case 1: { new (_a[0]) CornersGroup((*reinterpret_cast<std::add_pointer_t<qreal>>(_a[1]))); } break;
        case 2: { new (_a[0]) CornersGroup((*reinterpret_cast<std::add_pointer_t<qreal>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<qreal>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<qreal>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<qreal>>(_a[4]))); } break;
        case 3: { new (_a[0]) CornersGroup((*reinterpret_cast<std::add_pointer_t<QVector4D>>(_a[1]))); } break;
        default: break;
        }
    }
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { qreal _r = _t->radius();
            if (_a[0]) *reinterpret_cast<qreal*>(_a[0]) = std::move(_r); }  break;
        case 1: { QVector4D _r = _t->toVector4D();
            if (_a[0]) *reinterpret_cast<QVector4D*>(_a[0]) = std::move(_r); }  break;
        case 2: { bool _r = _t->isUniform();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<qreal*>(_v) = _t->topLeft(); break;
        case 1: *reinterpret_cast<qreal*>(_v) = _t->topRight(); break;
        case 2: *reinterpret_cast<qreal*>(_v) = _t->bottomLeft(); break;
        case 3: *reinterpret_cast<qreal*>(_v) = _t->bottomRight(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setTopLeft(*reinterpret_cast<qreal*>(_v)); break;
        case 1: _t->setTopRight(*reinterpret_cast<qreal*>(_v)); break;
        case 2: _t->setBottomLeft(*reinterpret_cast<qreal*>(_v)); break;
        case 3: _t->setBottomRight(*reinterpret_cast<qreal*>(_v)); break;
        default: break;
        }
    }
}
QT_WARNING_POP
