1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'glwidget.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 "glwidget.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'glwidget.h' doesn't include <QObject>." |
15 | #elif Q_MOC_OUTPUT_REVISION != 68 |
16 | #error "This file was generated using the moc from 6.0.0. It" |
17 | #error "cannot be used with the include files from this version of Qt." |
18 | #error "(The moc has changed too much.)" |
19 | #endif |
20 | |
21 | QT_BEGIN_MOC_NAMESPACE |
22 | QT_WARNING_PUSH |
23 | QT_WARNING_DISABLE_DEPRECATED |
24 | struct qt_meta_stringdata_Renderer_t { |
25 | const uint offsetsAndSize[8]; |
26 | char stringdata0[31]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_Renderer_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_Renderer_t qt_meta_stringdata_Renderer = { |
31 | { |
32 | QT_MOC_LITERAL(0, 8), // "Renderer" |
33 | QT_MOC_LITERAL(9, 13), // "contextWanted" |
34 | QT_MOC_LITERAL(23, 0), // "" |
35 | QT_MOC_LITERAL(24, 6) // "render" |
36 | |
37 | }, |
38 | "Renderer\0contextWanted\0\0render" |
39 | }; |
40 | #undef QT_MOC_LITERAL |
41 | |
42 | static const uint qt_meta_data_Renderer[] = { |
43 | |
44 | // content: |
45 | 9, // revision |
46 | 0, // classname |
47 | 0, 0, // classinfo |
48 | 2, 14, // methods |
49 | 0, 0, // properties |
50 | 0, 0, // enums/sets |
51 | 0, 0, // constructors |
52 | 0, // flags |
53 | 1, // signalCount |
54 | |
55 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
56 | 1, 0, 26, 2, 0x06, 0 /* Public */, |
57 | |
58 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
59 | 3, 0, 27, 2, 0x0a, 1 /* Public */, |
60 | |
61 | // signals: parameters |
62 | QMetaType::Void, |
63 | |
64 | // slots: parameters |
65 | QMetaType::Void, |
66 | |
67 | 0 // eod |
68 | }; |
69 | |
70 | void Renderer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
71 | { |
72 | if (_c == QMetaObject::InvokeMetaMethod) { |
73 | Q_ASSERT(staticMetaObject.cast(_o)); |
74 | auto *_t = static_cast<Renderer *>(_o); |
75 | Q_UNUSED(_t) |
76 | switch (_id) { |
77 | case 0: _t->contextWanted(); break; |
78 | case 1: _t->render(); break; |
79 | default: ; |
80 | } |
81 | } else if (_c == QMetaObject::IndexOfMethod) { |
82 | int *result = reinterpret_cast<int *>(_a[0]); |
83 | { |
84 | using _t = void (Renderer::*)(); |
85 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Renderer::contextWanted)) { |
86 | *result = 0; |
87 | return; |
88 | } |
89 | } |
90 | } |
91 | Q_UNUSED(_a); |
92 | } |
93 | |
94 | const QMetaObject Renderer::staticMetaObject = { { |
95 | QMetaObject::SuperData::link<QObject::staticMetaObject>(), |
96 | qt_meta_stringdata_Renderer.offsetsAndSize, |
97 | qt_meta_data_Renderer, |
98 | qt_static_metacall, |
99 | nullptr, |
100 | qt_incomplete_metaTypeArray<qt_meta_stringdata_Renderer_t |
101 | , QtPrivate::TypeAndForceComplete<void, std::false_type> |
102 | , QtPrivate::TypeAndForceComplete<void, std::false_type> |
103 | |
104 | |
105 | >, |
106 | nullptr |
107 | } }; |
108 | |
109 | |
110 | const QMetaObject *Renderer::metaObject() const |
111 | { |
112 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
113 | } |
114 | |
115 | void *Renderer::qt_metacast(const char *_clname) |
116 | { |
117 | if (!_clname) return nullptr; |
118 | if (!strcmp(_clname, qt_meta_stringdata_Renderer.stringdata0)) |
119 | return static_cast<void*>(this); |
120 | if (!strcmp(_clname, "QOpenGLFunctions" )) |
121 | return static_cast< QOpenGLFunctions*>(this); |
122 | return QObject::qt_metacast(_clname); |
123 | } |
124 | |
125 | int Renderer::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
126 | { |
127 | _id = QObject::qt_metacall(_c, _id, _a); |
128 | if (_id < 0) |
129 | return _id; |
130 | if (_c == QMetaObject::InvokeMetaMethod) { |
131 | if (_id < 2) |
132 | qt_static_metacall(this, _c, _id, _a); |
133 | _id -= 2; |
134 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
135 | if (_id < 2) |
136 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
137 | _id -= 2; |
138 | } |
139 | return _id; |
140 | } |
141 | |
142 | // SIGNAL 0 |
143 | void Renderer::contextWanted() |
144 | { |
145 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); |
146 | } |
147 | struct qt_meta_stringdata_GLWidget_t { |
148 | const uint offsetsAndSize[16]; |
149 | char stringdata0[96]; |
150 | }; |
151 | #define QT_MOC_LITERAL(ofs, len) \ |
152 | uint(offsetof(qt_meta_stringdata_GLWidget_t, stringdata0) + ofs), len |
153 | static const qt_meta_stringdata_GLWidget_t qt_meta_stringdata_GLWidget = { |
154 | { |
155 | QT_MOC_LITERAL(0, 8), // "GLWidget" |
156 | QT_MOC_LITERAL(9, 15), // "renderRequested" |
157 | QT_MOC_LITERAL(25, 0), // "" |
158 | QT_MOC_LITERAL(26, 11), // "grabContext" |
159 | QT_MOC_LITERAL(38, 16), // "onAboutToCompose" |
160 | QT_MOC_LITERAL(55, 14), // "onFrameSwapped" |
161 | QT_MOC_LITERAL(70, 15), // "onAboutToResize" |
162 | QT_MOC_LITERAL(86, 9) // "onResized" |
163 | |
164 | }, |
165 | "GLWidget\0renderRequested\0\0grabContext\0" |
166 | "onAboutToCompose\0onFrameSwapped\0" |
167 | "onAboutToResize\0onResized" |
168 | }; |
169 | #undef QT_MOC_LITERAL |
170 | |
171 | static const uint qt_meta_data_GLWidget[] = { |
172 | |
173 | // content: |
174 | 9, // revision |
175 | 0, // classname |
176 | 0, 0, // classinfo |
177 | 6, 14, // methods |
178 | 0, 0, // properties |
179 | 0, 0, // enums/sets |
180 | 0, 0, // constructors |
181 | 0, // flags |
182 | 1, // signalCount |
183 | |
184 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
185 | 1, 0, 50, 2, 0x06, 0 /* Public */, |
186 | |
187 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
188 | 3, 0, 51, 2, 0x0a, 1 /* Public */, |
189 | 4, 0, 52, 2, 0x08, 2 /* Private */, |
190 | 5, 0, 53, 2, 0x08, 3 /* Private */, |
191 | 6, 0, 54, 2, 0x08, 4 /* Private */, |
192 | 7, 0, 55, 2, 0x08, 5 /* Private */, |
193 | |
194 | // signals: parameters |
195 | QMetaType::Void, |
196 | |
197 | // slots: parameters |
198 | QMetaType::Void, |
199 | QMetaType::Void, |
200 | QMetaType::Void, |
201 | QMetaType::Void, |
202 | QMetaType::Void, |
203 | |
204 | 0 // eod |
205 | }; |
206 | |
207 | void GLWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
208 | { |
209 | if (_c == QMetaObject::InvokeMetaMethod) { |
210 | Q_ASSERT(staticMetaObject.cast(_o)); |
211 | auto *_t = static_cast<GLWidget *>(_o); |
212 | Q_UNUSED(_t) |
213 | switch (_id) { |
214 | case 0: _t->renderRequested(); break; |
215 | case 1: _t->grabContext(); break; |
216 | case 2: _t->onAboutToCompose(); break; |
217 | case 3: _t->onFrameSwapped(); break; |
218 | case 4: _t->onAboutToResize(); break; |
219 | case 5: _t->onResized(); break; |
220 | default: ; |
221 | } |
222 | } else if (_c == QMetaObject::IndexOfMethod) { |
223 | int *result = reinterpret_cast<int *>(_a[0]); |
224 | { |
225 | using _t = void (GLWidget::*)(); |
226 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&GLWidget::renderRequested)) { |
227 | *result = 0; |
228 | return; |
229 | } |
230 | } |
231 | } |
232 | Q_UNUSED(_a); |
233 | } |
234 | |
235 | const QMetaObject GLWidget::staticMetaObject = { { |
236 | QMetaObject::SuperData::link<QOpenGLWidget::staticMetaObject>(), |
237 | qt_meta_stringdata_GLWidget.offsetsAndSize, |
238 | qt_meta_data_GLWidget, |
239 | qt_static_metacall, |
240 | nullptr, |
241 | qt_incomplete_metaTypeArray<qt_meta_stringdata_GLWidget_t |
242 | , QtPrivate::TypeAndForceComplete<void, std::false_type> |
243 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> |
244 | |
245 | |
246 | >, |
247 | nullptr |
248 | } }; |
249 | |
250 | |
251 | const QMetaObject *GLWidget::metaObject() const |
252 | { |
253 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
254 | } |
255 | |
256 | void *GLWidget::qt_metacast(const char *_clname) |
257 | { |
258 | if (!_clname) return nullptr; |
259 | if (!strcmp(_clname, qt_meta_stringdata_GLWidget.stringdata0)) |
260 | return static_cast<void*>(this); |
261 | return QOpenGLWidget::qt_metacast(_clname); |
262 | } |
263 | |
264 | int GLWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
265 | { |
266 | _id = QOpenGLWidget::qt_metacall(_c, _id, _a); |
267 | if (_id < 0) |
268 | return _id; |
269 | if (_c == QMetaObject::InvokeMetaMethod) { |
270 | if (_id < 6) |
271 | qt_static_metacall(this, _c, _id, _a); |
272 | _id -= 6; |
273 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
274 | if (_id < 6) |
275 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
276 | _id -= 6; |
277 | } |
278 | return _id; |
279 | } |
280 | |
281 | // SIGNAL 0 |
282 | void GLWidget::renderRequested() |
283 | { |
284 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); |
285 | } |
286 | QT_WARNING_POP |
287 | QT_END_MOC_NAMESPACE |
288 | |