#if defined (HAVE_CONFIG_H)
#  include "config.h"
#endif
/****************************************************************************
** Meta object code from reading C++ file 'moc-Figure.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.10.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "libgui/graphics/moc-Figure.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 'moc-Figure.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.2. 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_ZN6octave6FigureE_t {};
} // unnamed namespace

template <> constexpr inline auto octave::Figure::qt_create_metaobjectdata<qt_meta_tag_ZN6octave6FigureE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "octave::Figure",
        "asyncUpdate",
        "",
        "interpreter_event",
        "octave::fcn_callback",
        "fcn",
        "octave::meth_callback",
        "meth",
        "updateFigureHeight",
        "delta_h",
        "updateContainer",
        "figureWindowShown",
        "screenChanged",
        "QScreen*",
        "slotGetPixels",
        "uint8NDArray"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'asyncUpdate'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'interpreter_event'
        QtMocHelpers::SignalData<void(const octave::fcn_callback &)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Signal 'interpreter_event'
        QtMocHelpers::SignalData<void(const octave::meth_callback &)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'updateFigureHeight'
        QtMocHelpers::SlotData<void(int)>(8, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 9 },
        }}),
        // Slot 'updateContainer'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'figureWindowShown'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'screenChanged'
        QtMocHelpers::SlotData<void(QScreen *)>(12, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 13, 2 },
        }}),
        // Slot 'slotGetPixels'
        QtMocHelpers::SlotData<uint8NDArray()>(14, 2, QMC::AccessPublic, 0x80000000 | 15),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Figure, qt_meta_tag_ZN6octave6FigureE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject octave::Figure::staticMetaObject = { {
    QMetaObject::SuperData::link<Object::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6octave6FigureE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6octave6FigureE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN6octave6FigureE_t>.metaTypes,
    nullptr
} };

void octave::Figure::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Figure *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->asyncUpdate(); break;
        case 1: _t->interpreter_event((*reinterpret_cast<std::add_pointer_t<octave::fcn_callback>>(_a[1]))); break;
        case 2: _t->interpreter_event((*reinterpret_cast<std::add_pointer_t<octave::meth_callback>>(_a[1]))); break;
        case 3: _t->updateFigureHeight((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 4: _t->updateContainer(); break;
        case 5: _t->figureWindowShown(); break;
        case 6: _t->screenChanged((*reinterpret_cast<std::add_pointer_t<QScreen*>>(_a[1]))); break;
        case 7: { uint8NDArray _r = _t->slotGetPixels();
            if (_a[0]) *reinterpret_cast<uint8NDArray*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Figure::*)()>(_a, &Figure::asyncUpdate, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Figure::*)(const octave::fcn_callback & )>(_a, &Figure::interpreter_event, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Figure::*)(const octave::meth_callback & )>(_a, &Figure::interpreter_event, 2))
            return;
    }
}

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

void *octave::Figure::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6octave6FigureE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "MenuContainer"))
        return static_cast< MenuContainer*>(this);
    if (!strcmp(_clname, "GenericEventNotifyReceiver"))
        return static_cast< GenericEventNotifyReceiver*>(this);
    return Object::qt_metacast(_clname);
}

int octave::Figure::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Object::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 8;
    }
    return _id;
}

// SIGNAL 0
void octave::Figure::asyncUpdate()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void octave::Figure::interpreter_event(const octave::fcn_callback & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void octave::Figure::interpreter_event(const octave::meth_callback & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}
QT_WARNING_POP
