/****************************************************************************
** Meta object code from reading C++ file 'animatable.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 "../../../../../../../../../mlt/src/modules/glaxnimate/glaxnimate/src/core/glaxnimate/model/animation/animatable.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 'animatable.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_ZN10glaxnimate5model20AnimatedPropertyBaseE_t {};
} // unnamed namespace

template <> constexpr inline auto glaxnimate::model::AnimatedPropertyBase::qt_create_metaobjectdata<qt_meta_tag_ZN10glaxnimate5model20AnimatedPropertyBaseE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "glaxnimate::model::AnimatedPropertyBase",
        "value",
        "QVariant"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
        // property 'value'
        QtMocHelpers::PropertyData<QVariant>(1, 0x80000000 | 2, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<AnimatedPropertyBase, qt_meta_tag_ZN10glaxnimate5model20AnimatedPropertyBaseE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject glaxnimate::model::AnimatedPropertyBase::staticMetaObject = { {
    QMetaObject::SuperData::link<AnimatableBase::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10glaxnimate5model20AnimatedPropertyBaseE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10glaxnimate5model20AnimatedPropertyBaseE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10glaxnimate5model20AnimatedPropertyBaseE_t>.metaTypes,
    nullptr
} };

void glaxnimate::model::AnimatedPropertyBase::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<AnimatedPropertyBase *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QVariant*>(_v) = _t->value(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->set_undoable(*reinterpret_cast<QVariant*>(_v)); break;
        default: break;
        }
    }
}

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

void *glaxnimate::model::AnimatedPropertyBase::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10glaxnimate5model20AnimatedPropertyBaseE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "BaseProperty"))
        return static_cast< BaseProperty*>(this);
    return AnimatableBase::qt_metacast(_clname);
}

int glaxnimate::model::AnimatedPropertyBase::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = AnimatableBase::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 -= 1;
    }
    return _id;
}
namespace {
struct qt_meta_tag_ZN10glaxnimate5model6detail24AnimatedPropertyPositionE_t {};
} // unnamed namespace

template <> constexpr inline auto glaxnimate::model::detail::AnimatedPropertyPosition::qt_create_metaobjectdata<qt_meta_tag_ZN10glaxnimate5model6detail24AnimatedPropertyPositionE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "glaxnimate::model::detail::AnimatedPropertyPosition",
        "bezier_set",
        "",
        "math::bezier::Bezier",
        "bezier",
        "split_segment",
        "index",
        "factor",
        "set_bezier",
        "glaxnimate::math::bezier::Bezier"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'bezier_set'
        QtMocHelpers::SignalData<void(const math::bezier::Bezier &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Method 'split_segment'
        QtMocHelpers::MethodData<void(int, qreal)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 6 }, { QMetaType::QReal, 7 },
        }}),
        // Method 'set_bezier'
        QtMocHelpers::MethodData<bool(glaxnimate::math::bezier::Bezier)>(8, 2, QMC::AccessPublic, QMetaType::Bool, {{
            { 0x80000000 | 9, 4 },
        }}),
        // Method 'bezier'
        QtMocHelpers::MethodData<glaxnimate::math::bezier::Bezier() const>(4, 2, QMC::AccessPublic, 0x80000000 | 9),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<AnimatedPropertyPosition, qt_meta_tag_ZN10glaxnimate5model6detail24AnimatedPropertyPositionE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject glaxnimate::model::detail::AnimatedPropertyPosition::staticMetaObject = { {
    QMetaObject::SuperData::link<detail::AnimatedProperty<QPointF>::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10glaxnimate5model6detail24AnimatedPropertyPositionE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10glaxnimate5model6detail24AnimatedPropertyPositionE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10glaxnimate5model6detail24AnimatedPropertyPositionE_t>.metaTypes,
    nullptr
} };

void glaxnimate::model::detail::AnimatedPropertyPosition::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<AnimatedPropertyPosition *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->bezier_set((*reinterpret_cast<std::add_pointer_t<math::bezier::Bezier>>(_a[1]))); break;
        case 1: _t->split_segment((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<qreal>>(_a[2]))); break;
        case 2: { bool _r = _t->set_bezier((*reinterpret_cast<std::add_pointer_t<glaxnimate::math::bezier::Bezier>>(_a[1])));
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 3: { glaxnimate::math::bezier::Bezier _r = _t->bezier();
            if (_a[0]) *reinterpret_cast<glaxnimate::math::bezier::Bezier*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< glaxnimate::math::bezier::Bezier >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (AnimatedPropertyPosition::*)(const math::bezier::Bezier & )>(_a, &AnimatedPropertyPosition::bezier_set, 0))
            return;
    }
}

const QMetaObject *glaxnimate::model::detail::AnimatedPropertyPosition::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *glaxnimate::model::detail::AnimatedPropertyPosition::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10glaxnimate5model6detail24AnimatedPropertyPositionE_t>.strings))
        return static_cast<void*>(this);
    return detail::AnimatedProperty<QPointF>::qt_metacast(_clname);
}

int glaxnimate::model::detail::AnimatedPropertyPosition::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = detail::AnimatedProperty<QPointF>::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 4)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 4)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    }
    return _id;
}

// SIGNAL 0
void glaxnimate::model::detail::AnimatedPropertyPosition::bezier_set(const math::bezier::Bezier & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}
QT_WARNING_POP
