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

template <> constexpr inline auto Qt3DInput::QMouseEvent::qt_create_metaobjectdata<qt_meta_tag_ZN9Qt3DInput11QMouseEventE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DInput::QMouseEvent",
        "x",
        "y",
        "wasHeld",
        "button",
        "Qt3DInput::QMouseEvent::Buttons",
        "buttons",
        "modifiers",
        "Qt3DInput::QMouseEvent::Modifiers",
        "accepted",
        "Buttons",
        "LeftButton",
        "RightButton",
        "MiddleButton",
        "BackButton",
        "NoButton",
        "Modifiers",
        "NoModifier",
        "ShiftModifier",
        "ControlModifier",
        "AltModifier",
        "MetaModifier",
        "KeypadModifier"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
        // property 'x'
        QtMocHelpers::PropertyData<int>(1, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'y'
        QtMocHelpers::PropertyData<int>(2, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'wasHeld'
        QtMocHelpers::PropertyData<bool>(3, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'button'
        QtMocHelpers::PropertyData<Qt3DInput::QMouseEvent::Buttons>(4, 0x80000000 | 5, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'buttons'
        QtMocHelpers::PropertyData<int>(6, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'modifiers'
        QtMocHelpers::PropertyData<Qt3DInput::QMouseEvent::Modifiers>(7, 0x80000000 | 8, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'accepted'
        QtMocHelpers::PropertyData<bool>(9, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Buttons'
        QtMocHelpers::EnumData<enum Buttons>(10, 10, QMC::EnumFlags{}).add({
            {   11, Buttons::LeftButton },
            {   12, Buttons::RightButton },
            {   13, Buttons::MiddleButton },
            {   14, Buttons::BackButton },
            {   15, Buttons::NoButton },
        }),
        // enum 'Modifiers'
        QtMocHelpers::EnumData<enum Modifiers>(16, 16, QMC::EnumFlags{}).add({
            {   17, Modifiers::NoModifier },
            {   18, Modifiers::ShiftModifier },
            {   19, Modifiers::ControlModifier },
            {   20, Modifiers::AltModifier },
            {   21, Modifiers::MetaModifier },
            {   22, Modifiers::KeypadModifier },
        }),
    };
    return QtMocHelpers::metaObjectData<QMouseEvent, qt_meta_tag_ZN9Qt3DInput11QMouseEventE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DInput::QMouseEvent::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9Qt3DInput11QMouseEventE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9Qt3DInput11QMouseEventE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9Qt3DInput11QMouseEventE_t>.metaTypes,
    nullptr
} };

void Qt3DInput::QMouseEvent::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QMouseEvent *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<int*>(_v) = _t->x(); break;
        case 1: *reinterpret_cast<int*>(_v) = _t->y(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->wasHeld(); break;
        case 3: *reinterpret_cast<Qt3DInput::QMouseEvent::Buttons*>(_v) = _t->button(); break;
        case 4: *reinterpret_cast<int*>(_v) = _t->buttons(); break;
        case 5: *reinterpret_cast<Qt3DInput::QMouseEvent::Modifiers*>(_v) = _t->modifiers(); break;
        case 6: *reinterpret_cast<bool*>(_v) = _t->isAccepted(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 6: _t->setAccepted(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

int Qt3DInput::QMouseEvent::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
    return _id;
}
namespace {
struct qt_meta_tag_ZN9Qt3DInput11QWheelEventE_t {};
} // unnamed namespace

template <> constexpr inline auto Qt3DInput::QWheelEvent::qt_create_metaobjectdata<qt_meta_tag_ZN9Qt3DInput11QWheelEventE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DInput::QWheelEvent",
        "x",
        "y",
        "angleDelta",
        "QPoint",
        "buttons",
        "modifiers",
        "Qt3DInput::QWheelEvent::Modifiers",
        "accepted",
        "Buttons",
        "LeftButton",
        "RightButton",
        "MiddleButton",
        "BackButton",
        "NoButton",
        "Modifiers",
        "NoModifier",
        "ShiftModifier",
        "ControlModifier",
        "AltModifier",
        "MetaModifier",
        "KeypadModifier"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
        // property 'x'
        QtMocHelpers::PropertyData<int>(1, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'y'
        QtMocHelpers::PropertyData<int>(2, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'angleDelta'
        QtMocHelpers::PropertyData<QPoint>(3, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'buttons'
        QtMocHelpers::PropertyData<int>(5, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'modifiers'
        QtMocHelpers::PropertyData<Qt3DInput::QWheelEvent::Modifiers>(6, 0x80000000 | 7, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'accepted'
        QtMocHelpers::PropertyData<bool>(8, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Buttons'
        QtMocHelpers::EnumData<enum Buttons>(9, 9, QMC::EnumFlags{}).add({
            {   10, Buttons::LeftButton },
            {   11, Buttons::RightButton },
            {   12, Buttons::MiddleButton },
            {   13, Buttons::BackButton },
            {   14, Buttons::NoButton },
        }),
        // enum 'Modifiers'
        QtMocHelpers::EnumData<enum Modifiers>(15, 15, QMC::EnumFlags{}).add({
            {   16, Modifiers::NoModifier },
            {   17, Modifiers::ShiftModifier },
            {   18, Modifiers::ControlModifier },
            {   19, Modifiers::AltModifier },
            {   20, Modifiers::MetaModifier },
            {   21, Modifiers::KeypadModifier },
        }),
    };
    return QtMocHelpers::metaObjectData<QWheelEvent, qt_meta_tag_ZN9Qt3DInput11QWheelEventE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DInput::QWheelEvent::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9Qt3DInput11QWheelEventE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9Qt3DInput11QWheelEventE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9Qt3DInput11QWheelEventE_t>.metaTypes,
    nullptr
} };

void Qt3DInput::QWheelEvent::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QWheelEvent *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<int*>(_v) = _t->x(); break;
        case 1: *reinterpret_cast<int*>(_v) = _t->y(); break;
        case 2: *reinterpret_cast<QPoint*>(_v) = _t->angleDelta(); break;
        case 3: *reinterpret_cast<int*>(_v) = _t->buttons(); break;
        case 4: *reinterpret_cast<Qt3DInput::QWheelEvent::Modifiers*>(_v) = _t->modifiers(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->isAccepted(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 5: _t->setAccepted(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

int Qt3DInput::QWheelEvent::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    }
    return _id;
}
QT_WARNING_POP
