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

#include "../../../../../drawy-1.0.2/src/widgets/canvas/canvas.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 'canvas.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. 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_ZN6CanvasE_t {};
} // unnamed namespace

template <> constexpr inline auto Canvas::qt_create_metaobjectdata<qt_meta_tag_ZN6CanvasE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Canvas",
        "mousePressed",
        "",
        "QMouseEvent*",
        "event",
        "mouseMoved",
        "mouseReleased",
        "keyPressed",
        "QKeyEvent*",
        "keyReleased",
        "inputMethodInvoked",
        "QInputMethodEvent*",
        "tablet",
        "QTabletEvent*",
        "wheel",
        "QWheelEvent*",
        "resizeEventCalled",
        "leave",
        "QEvent*",
        "dragEnter",
        "QDragEnterEvent*",
        "dragMove",
        "QDragMoveEvent*",
        "dragLeave",
        "QDragLeaveEvent*",
        "drop",
        "QDropEvent*"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'mousePressed'
        QtMocHelpers::SignalData<void(QMouseEvent *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'mouseMoved'
        QtMocHelpers::SignalData<void(QMouseEvent *)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'mouseReleased'
        QtMocHelpers::SignalData<void(QMouseEvent *)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'keyPressed'
        QtMocHelpers::SignalData<void(QKeyEvent *)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 4 },
        }}),
        // Signal 'keyReleased'
        QtMocHelpers::SignalData<void(QKeyEvent *)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 4 },
        }}),
        // Signal 'inputMethodInvoked'
        QtMocHelpers::SignalData<void(QInputMethodEvent *)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 4 },
        }}),
        // Signal 'tablet'
        QtMocHelpers::SignalData<void(QTabletEvent *)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 13, 4 },
        }}),
        // Signal 'wheel'
        QtMocHelpers::SignalData<void(QWheelEvent *)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 4 },
        }}),
        // Signal 'resizeEventCalled'
        QtMocHelpers::SignalData<void()>(16, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'leave'
        QtMocHelpers::SignalData<void(QEvent *)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 18, 4 },
        }}),
        // Signal 'dragEnter'
        QtMocHelpers::SignalData<void(QDragEnterEvent *)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 20, 4 },
        }}),
        // Signal 'dragMove'
        QtMocHelpers::SignalData<void(QDragMoveEvent *)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 22, 4 },
        }}),
        // Signal 'dragLeave'
        QtMocHelpers::SignalData<void(QDragLeaveEvent *)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 24, 4 },
        }}),
        // Signal 'drop'
        QtMocHelpers::SignalData<void(QDropEvent *)>(25, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 26, 4 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Canvas, qt_meta_tag_ZN6CanvasE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Canvas::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6CanvasE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6CanvasE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN6CanvasE_t>.metaTypes,
    nullptr
} };

void Canvas::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Canvas *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->mousePressed((*reinterpret_cast<std::add_pointer_t<QMouseEvent*>>(_a[1]))); break;
        case 1: _t->mouseMoved((*reinterpret_cast<std::add_pointer_t<QMouseEvent*>>(_a[1]))); break;
        case 2: _t->mouseReleased((*reinterpret_cast<std::add_pointer_t<QMouseEvent*>>(_a[1]))); break;
        case 3: _t->keyPressed((*reinterpret_cast<std::add_pointer_t<QKeyEvent*>>(_a[1]))); break;
        case 4: _t->keyReleased((*reinterpret_cast<std::add_pointer_t<QKeyEvent*>>(_a[1]))); break;
        case 5: _t->inputMethodInvoked((*reinterpret_cast<std::add_pointer_t<QInputMethodEvent*>>(_a[1]))); break;
        case 6: _t->tablet((*reinterpret_cast<std::add_pointer_t<QTabletEvent*>>(_a[1]))); break;
        case 7: _t->wheel((*reinterpret_cast<std::add_pointer_t<QWheelEvent*>>(_a[1]))); break;
        case 8: _t->resizeEventCalled(); break;
        case 9: _t->leave((*reinterpret_cast<std::add_pointer_t<QEvent*>>(_a[1]))); break;
        case 10: _t->dragEnter((*reinterpret_cast<std::add_pointer_t<QDragEnterEvent*>>(_a[1]))); break;
        case 11: _t->dragMove((*reinterpret_cast<std::add_pointer_t<QDragMoveEvent*>>(_a[1]))); break;
        case 12: _t->dragLeave((*reinterpret_cast<std::add_pointer_t<QDragLeaveEvent*>>(_a[1]))); break;
        case 13: _t->drop((*reinterpret_cast<std::add_pointer_t<QDropEvent*>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Canvas::*)(QMouseEvent * )>(_a, &Canvas::mousePressed, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Canvas::*)(QMouseEvent * )>(_a, &Canvas::mouseMoved, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Canvas::*)(QMouseEvent * )>(_a, &Canvas::mouseReleased, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Canvas::*)(QKeyEvent * )>(_a, &Canvas::keyPressed, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Canvas::*)(QKeyEvent * )>(_a, &Canvas::keyReleased, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (Canvas::*)(QInputMethodEvent * )>(_a, &Canvas::inputMethodInvoked, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (Canvas::*)(QTabletEvent * )>(_a, &Canvas::tablet, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (Canvas::*)(QWheelEvent * )>(_a, &Canvas::wheel, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (Canvas::*)()>(_a, &Canvas::resizeEventCalled, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (Canvas::*)(QEvent * )>(_a, &Canvas::leave, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (Canvas::*)(QDragEnterEvent * )>(_a, &Canvas::dragEnter, 10))
            return;
        if (QtMocHelpers::indexOfMethod<void (Canvas::*)(QDragMoveEvent * )>(_a, &Canvas::dragMove, 11))
            return;
        if (QtMocHelpers::indexOfMethod<void (Canvas::*)(QDragLeaveEvent * )>(_a, &Canvas::dragLeave, 12))
            return;
        if (QtMocHelpers::indexOfMethod<void (Canvas::*)(QDropEvent * )>(_a, &Canvas::drop, 13))
            return;
    }
}

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

void *Canvas::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6CanvasE_t>.strings))
        return static_cast<void*>(this);
    return QWidget::qt_metacast(_clname);
}

int Canvas::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::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;
    }
    return _id;
}

// SIGNAL 0
void Canvas::mousePressed(QMouseEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Canvas::mouseMoved(QMouseEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Canvas::mouseReleased(QMouseEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Canvas::keyPressed(QKeyEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Canvas::keyReleased(QKeyEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void Canvas::inputMethodInvoked(QInputMethodEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void Canvas::tablet(QTabletEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}

// SIGNAL 7
void Canvas::wheel(QWheelEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}

// SIGNAL 8
void Canvas::resizeEventCalled()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}

// SIGNAL 9
void Canvas::leave(QEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 9, nullptr, _t1);
}

// SIGNAL 10
void Canvas::dragEnter(QDragEnterEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 10, nullptr, _t1);
}

// SIGNAL 11
void Canvas::dragMove(QDragMoveEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 11, nullptr, _t1);
}

// SIGNAL 12
void Canvas::dragLeave(QDragLeaveEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 12, nullptr, _t1);
}

// SIGNAL 13
void Canvas::drop(QDropEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 13, nullptr, _t1);
}
QT_WARNING_POP
