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

#include "../../../src/libtiled/tilelayer.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 'tilelayer.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 68
#error "This file was generated using the moc from 6.8.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_ZN5Tiled4CellE_t {};
} // unnamed namespace


#ifdef QT_MOC_HAS_STRINGDATA
static constexpr auto qt_meta_stringdata_ZN5Tiled4CellE = QtMocHelpers::stringData(
    "Tiled::Cell",
    "tileId",
    "empty",
    "flippedHorizontally",
    "flippedVertically",
    "flippedAntiDiagonally",
    "rotatedHexagonal120"
);
#else  // !QT_MOC_HAS_STRINGDATA
#error "qtmochelpers.h not found or too old."
#endif // !QT_MOC_HAS_STRINGDATA

Q_CONSTINIT static const uint qt_meta_data_ZN5Tiled4CellE[] = {

 // content:
      12,       // revision
       0,       // classname
       0,    0, // classinfo
       0,    0, // methods
       6,   14, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       4,       // flags
       0,       // signalCount

 // properties: name, type, flags, notifyId, revision
       1, QMetaType::Int, 0x00015001, uint(-1), 0,
       2, QMetaType::Bool, 0x00015001, uint(-1), 0,
       3, QMetaType::Bool, 0x00015103, uint(-1), 0,
       4, QMetaType::Bool, 0x00015103, uint(-1), 0,
       5, QMetaType::Bool, 0x00015103, uint(-1), 0,
       6, QMetaType::Bool, 0x00015103, uint(-1), 0,

       0        // eod
};

Q_CONSTINIT const QMetaObject Tiled::Cell::staticMetaObject = { {
    nullptr,
    qt_meta_stringdata_ZN5Tiled4CellE.offsetsAndSizes,
    qt_meta_data_ZN5Tiled4CellE,
    qt_static_metacall,
    nullptr,
    qt_incomplete_metaTypeArray<qt_meta_tag_ZN5Tiled4CellE_t,
        // property 'tileId'
        QtPrivate::TypeAndForceComplete<int, std::true_type>,
        // property 'empty'
        QtPrivate::TypeAndForceComplete<bool, std::true_type>,
        // property 'flippedHorizontally'
        QtPrivate::TypeAndForceComplete<bool, std::true_type>,
        // property 'flippedVertically'
        QtPrivate::TypeAndForceComplete<bool, std::true_type>,
        // property 'flippedAntiDiagonally'
        QtPrivate::TypeAndForceComplete<bool, std::true_type>,
        // property 'rotatedHexagonal120'
        QtPrivate::TypeAndForceComplete<bool, std::true_type>,
        // Q_OBJECT / Q_GADGET
        QtPrivate::TypeAndForceComplete<Cell, std::true_type>
    >,
    nullptr
} };

void Tiled::Cell::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = reinterpret_cast<Cell *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = _t->tileId(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->isEmpty(); break;
        case 2: *reinterpret_cast< bool*>(_v) = _t->flippedHorizontally(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->flippedVertically(); break;
        case 4: *reinterpret_cast< bool*>(_v) = _t->flippedAntiDiagonally(); break;
        case 5: *reinterpret_cast< bool*>(_v) = _t->rotatedHexagonal120(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 2: _t->setFlippedHorizontally(*reinterpret_cast< bool*>(_v)); break;
        case 3: _t->setFlippedVertically(*reinterpret_cast< bool*>(_v)); break;
        case 4: _t->setFlippedAntiDiagonally(*reinterpret_cast< bool*>(_v)); break;
        case 5: _t->setRotatedHexagonal120(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    }
}
QT_WARNING_POP
