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

#include <memory>
#include "../../../../mgba-0.10.5/src/platform/qt/Display.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'Display.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.18. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_QGBA__Display_t {
    QByteArrayData data[26];
    char stringdata0[306];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QGBA__Display_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QGBA__Display_t qt_meta_stringdata_QGBA__Display = {
    {
QT_MOC_LITERAL(0, 0, 13), // "QGBA::Display"
QT_MOC_LITERAL(1, 14, 14), // "drawingStarted"
QT_MOC_LITERAL(2, 29, 0), // ""
QT_MOC_LITERAL(3, 30, 10), // "showCursor"
QT_MOC_LITERAL(4, 41, 10), // "hideCursor"
QT_MOC_LITERAL(5, 52, 11), // "stopDrawing"
QT_MOC_LITERAL(6, 64, 12), // "pauseDrawing"
QT_MOC_LITERAL(7, 77, 14), // "unpauseDrawing"
QT_MOC_LITERAL(8, 92, 9), // "forceDraw"
QT_MOC_LITERAL(9, 102, 15), // "lockAspectRatio"
QT_MOC_LITERAL(10, 118, 4), // "lock"
QT_MOC_LITERAL(11, 123, 18), // "lockIntegerScaling"
QT_MOC_LITERAL(12, 142, 18), // "interframeBlending"
QT_MOC_LITERAL(13, 161, 6), // "enable"
QT_MOC_LITERAL(14, 168, 15), // "showOSDMessages"
QT_MOC_LITERAL(15, 184, 16), // "showFrameCounter"
QT_MOC_LITERAL(16, 201, 6), // "filter"
QT_MOC_LITERAL(17, 208, 12), // "swapInterval"
QT_MOC_LITERAL(18, 221, 8), // "interval"
QT_MOC_LITERAL(19, 230, 11), // "framePosted"
QT_MOC_LITERAL(20, 242, 10), // "setShaders"
QT_MOC_LITERAL(21, 253, 5), // "VDir*"
QT_MOC_LITERAL(22, 259, 12), // "clearShaders"
QT_MOC_LITERAL(23, 272, 13), // "resizeContext"
QT_MOC_LITERAL(24, 286, 11), // "showMessage"
QT_MOC_LITERAL(25, 298, 7) // "message"

    },
    "QGBA::Display\0drawingStarted\0\0showCursor\0"
    "hideCursor\0stopDrawing\0pauseDrawing\0"
    "unpauseDrawing\0forceDraw\0lockAspectRatio\0"
    "lock\0lockIntegerScaling\0interframeBlending\0"
    "enable\0showOSDMessages\0showFrameCounter\0"
    "filter\0swapInterval\0interval\0framePosted\0"
    "setShaders\0VDir*\0clearShaders\0"
    "resizeContext\0showMessage\0message"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QGBA__Display[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      19,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       3,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,  109,    2, 0x06 /* Public */,
       3,    0,  110,    2, 0x06 /* Public */,
       4,    0,  111,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       5,    0,  112,    2, 0x0a /* Public */,
       6,    0,  113,    2, 0x0a /* Public */,
       7,    0,  114,    2, 0x0a /* Public */,
       8,    0,  115,    2, 0x0a /* Public */,
       9,    1,  116,    2, 0x0a /* Public */,
      11,    1,  119,    2, 0x0a /* Public */,
      12,    1,  122,    2, 0x0a /* Public */,
      14,    1,  125,    2, 0x0a /* Public */,
      15,    1,  128,    2, 0x0a /* Public */,
      16,    1,  131,    2, 0x0a /* Public */,
      17,    1,  134,    2, 0x0a /* Public */,
      19,    0,  137,    2, 0x0a /* Public */,
      20,    1,  138,    2, 0x0a /* Public */,
      22,    0,  141,    2, 0x0a /* Public */,
      23,    0,  142,    2, 0x0a /* Public */,
      24,    1,  143,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,   10,
    QMetaType::Void, QMetaType::Bool,   10,
    QMetaType::Void, QMetaType::Bool,   13,
    QMetaType::Void, QMetaType::Bool,   13,
    QMetaType::Void, QMetaType::Bool,   13,
    QMetaType::Void, QMetaType::Bool,   16,
    QMetaType::Void, QMetaType::Int,   18,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 21,    2,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,   25,

       0        // eod
};

void QGBA::Display::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<Display *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->drawingStarted(); break;
        case 1: _t->showCursor(); break;
        case 2: _t->hideCursor(); break;
        case 3: _t->stopDrawing(); break;
        case 4: _t->pauseDrawing(); break;
        case 5: _t->unpauseDrawing(); break;
        case 6: _t->forceDraw(); break;
        case 7: _t->lockAspectRatio((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 8: _t->lockIntegerScaling((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 9: _t->interframeBlending((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 10: _t->showOSDMessages((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 11: _t->showFrameCounter((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 12: _t->filter((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 13: _t->swapInterval((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 14: _t->framePosted(); break;
        case 15: _t->setShaders((*reinterpret_cast< VDir*(*)>(_a[1]))); break;
        case 16: _t->clearShaders(); break;
        case 17: _t->resizeContext(); break;
        case 18: _t->showMessage((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (Display::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Display::drawingStarted)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (Display::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Display::showCursor)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (Display::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Display::hideCursor)) {
                *result = 2;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject QGBA::Display::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_meta_stringdata_QGBA__Display.data,
    qt_meta_data_QGBA__Display,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *QGBA::Display::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_QGBA__Display.stringdata0))
        return static_cast<void*>(this);
    return QWidget::qt_metacast(_clname);
}

int QGBA::Display::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 < 19)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 19;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 19)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 19;
    }
    return _id;
}

// SIGNAL 0
void QGBA::Display::drawingStarted()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void QGBA::Display::showCursor()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void QGBA::Display::hideCursor()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
