1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'qoffscreensurface.h' |
3 | ** |
4 | ** Created by: The Qt Meta Object Compiler version 68 (Qt 6.0.0) |
5 | ** |
6 | ** WARNING! All changes made in this file will be lost! |
7 | *****************************************************************************/ |
8 | |
9 | #include <memory> |
10 | #include "kernel/qoffscreensurface.h" |
11 | #include <QScreen> |
12 | #include <QtCore/qbytearray.h> |
13 | #include <QtCore/qmetatype.h> |
14 | #if !defined(Q_MOC_OUTPUT_REVISION) |
15 | #error "The header file 'qoffscreensurface.h' doesn't include <QObject>." |
16 | #elif Q_MOC_OUTPUT_REVISION != 68 |
17 | #error "This file was generated using the moc from 6.0.0. It" |
18 | #error "cannot be used with the include files from this version of Qt." |
19 | #error "(The moc has changed too much.)" |
20 | #endif |
21 | |
22 | QT_BEGIN_MOC_NAMESPACE |
23 | QT_WARNING_PUSH |
24 | QT_WARNING_DISABLE_DEPRECATED |
25 | struct qt_meta_stringdata_QOffscreenSurface_t { |
26 | const uint offsetsAndSize[12]; |
27 | char stringdata0[65]; |
28 | }; |
29 | #define QT_MOC_LITERAL(ofs, len) \ |
30 | uint(offsetof(qt_meta_stringdata_QOffscreenSurface_t, stringdata0) + ofs), len |
31 | static const qt_meta_stringdata_QOffscreenSurface_t qt_meta_stringdata_QOffscreenSurface = { |
32 | { |
33 | QT_MOC_LITERAL(0, 17), // "QOffscreenSurface" |
34 | QT_MOC_LITERAL(18, 13), // "screenChanged" |
35 | QT_MOC_LITERAL(32, 0), // "" |
36 | QT_MOC_LITERAL(33, 8), // "QScreen*" |
37 | QT_MOC_LITERAL(42, 6), // "screen" |
38 | QT_MOC_LITERAL(49, 15) // "screenDestroyed" |
39 | |
40 | }, |
41 | "QOffscreenSurface\0screenChanged\0\0" |
42 | "QScreen*\0screen\0screenDestroyed" |
43 | }; |
44 | #undef QT_MOC_LITERAL |
45 | |
46 | static const uint qt_meta_data_QOffscreenSurface[] = { |
47 | |
48 | // content: |
49 | 9, // revision |
50 | 0, // classname |
51 | 0, 0, // classinfo |
52 | 2, 14, // methods |
53 | 0, 0, // properties |
54 | 0, 0, // enums/sets |
55 | 0, 0, // constructors |
56 | 0, // flags |
57 | 1, // signalCount |
58 | |
59 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
60 | 1, 1, 26, 2, 0x06, 0 /* Public */, |
61 | |
62 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
63 | 5, 1, 29, 2, 0x08, 2 /* Private */, |
64 | |
65 | // signals: parameters |
66 | QMetaType::Void, 0x80000000 | 3, 4, |
67 | |
68 | // slots: parameters |
69 | QMetaType::Void, QMetaType::QObjectStar, 4, |
70 | |
71 | 0 // eod |
72 | }; |
73 | |
74 | void QOffscreenSurface::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
75 | { |
76 | if (_c == QMetaObject::InvokeMetaMethod) { |
77 | Q_ASSERT(staticMetaObject.cast(_o)); |
78 | auto *_t = static_cast<QOffscreenSurface *>(_o); |
79 | Q_UNUSED(_t) |
80 | switch (_id) { |
81 | case 0: _t->screenChanged((*reinterpret_cast< QScreen*(*)>(_a[1]))); break; |
82 | case 1: _t->screenDestroyed((*reinterpret_cast< QObject*(*)>(_a[1]))); break; |
83 | default: ; |
84 | } |
85 | } else if (_c == QMetaObject::IndexOfMethod) { |
86 | int *result = reinterpret_cast<int *>(_a[0]); |
87 | { |
88 | using _t = void (QOffscreenSurface::*)(QScreen * ); |
89 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QOffscreenSurface::screenChanged)) { |
90 | *result = 0; |
91 | return; |
92 | } |
93 | } |
94 | } |
95 | } |
96 | |
97 | const QMetaObject QOffscreenSurface::staticMetaObject = { { |
98 | QMetaObject::SuperData::link<QObject::staticMetaObject>(), |
99 | qt_meta_stringdata_QOffscreenSurface.offsetsAndSize, |
100 | qt_meta_data_QOffscreenSurface, |
101 | qt_static_metacall, |
102 | nullptr, |
103 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QOffscreenSurface_t |
104 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QScreen *, std::false_type> |
105 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QObject *, std::false_type> |
106 | |
107 | |
108 | >, |
109 | nullptr |
110 | } }; |
111 | |
112 | |
113 | const QMetaObject *QOffscreenSurface::metaObject() const |
114 | { |
115 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
116 | } |
117 | |
118 | void *QOffscreenSurface::qt_metacast(const char *_clname) |
119 | { |
120 | if (!_clname) return nullptr; |
121 | if (!strcmp(_clname, qt_meta_stringdata_QOffscreenSurface.stringdata0)) |
122 | return static_cast<void*>(this); |
123 | if (!strcmp(_clname, "QSurface" )) |
124 | return static_cast< QSurface*>(this); |
125 | return QObject::qt_metacast(_clname); |
126 | } |
127 | |
128 | int QOffscreenSurface::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
129 | { |
130 | _id = QObject::qt_metacall(_c, _id, _a); |
131 | if (_id < 0) |
132 | return _id; |
133 | if (_c == QMetaObject::InvokeMetaMethod) { |
134 | if (_id < 2) |
135 | qt_static_metacall(this, _c, _id, _a); |
136 | _id -= 2; |
137 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
138 | if (_id < 2) |
139 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
140 | _id -= 2; |
141 | } |
142 | return _id; |
143 | } |
144 | |
145 | // SIGNAL 0 |
146 | void QOffscreenSurface::screenChanged(QScreen * _t1) |
147 | { |
148 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
149 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
150 | } |
151 | QT_WARNING_POP |
152 | QT_END_MOC_NAMESPACE |
153 | |