1/****************************************************************************
2** Meta object code from reading C++ file 'qscreen.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/qscreen.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qscreen.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
21QT_BEGIN_MOC_NAMESPACE
22QT_WARNING_PUSH
23QT_WARNING_DISABLE_DEPRECATED
24struct qt_meta_stringdata_QScreen_t {
25 const uint offsetsAndSize[78];
26 char stringdata0[616];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QScreen_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QScreen_t qt_meta_stringdata_QScreen = {
31 {
32QT_MOC_LITERAL(0, 7), // "QScreen"
33QT_MOC_LITERAL(8, 15), // "geometryChanged"
34QT_MOC_LITERAL(24, 0), // ""
35QT_MOC_LITERAL(25, 8), // "geometry"
36QT_MOC_LITERAL(34, 24), // "availableGeometryChanged"
37QT_MOC_LITERAL(59, 19), // "physicalSizeChanged"
38QT_MOC_LITERAL(79, 4), // "size"
39QT_MOC_LITERAL(84, 26), // "physicalDotsPerInchChanged"
40QT_MOC_LITERAL(111, 3), // "dpi"
41QT_MOC_LITERAL(115, 25), // "logicalDotsPerInchChanged"
42QT_MOC_LITERAL(141, 22), // "virtualGeometryChanged"
43QT_MOC_LITERAL(164, 4), // "rect"
44QT_MOC_LITERAL(169, 25), // "primaryOrientationChanged"
45QT_MOC_LITERAL(195, 21), // "Qt::ScreenOrientation"
46QT_MOC_LITERAL(217, 11), // "orientation"
47QT_MOC_LITERAL(229, 18), // "orientationChanged"
48QT_MOC_LITERAL(248, 18), // "refreshRateChanged"
49QT_MOC_LITERAL(267, 11), // "refreshRate"
50QT_MOC_LITERAL(279, 4), // "name"
51QT_MOC_LITERAL(284, 12), // "manufacturer"
52QT_MOC_LITERAL(297, 5), // "model"
53QT_MOC_LITERAL(303, 12), // "serialNumber"
54QT_MOC_LITERAL(316, 5), // "depth"
55QT_MOC_LITERAL(322, 13), // "availableSize"
56QT_MOC_LITERAL(336, 11), // "virtualSize"
57QT_MOC_LITERAL(348, 20), // "availableVirtualSize"
58QT_MOC_LITERAL(369, 17), // "availableGeometry"
59QT_MOC_LITERAL(387, 15), // "virtualGeometry"
60QT_MOC_LITERAL(403, 24), // "availableVirtualGeometry"
61QT_MOC_LITERAL(428, 12), // "physicalSize"
62QT_MOC_LITERAL(441, 20), // "physicalDotsPerInchX"
63QT_MOC_LITERAL(462, 20), // "physicalDotsPerInchY"
64QT_MOC_LITERAL(483, 19), // "physicalDotsPerInch"
65QT_MOC_LITERAL(503, 19), // "logicalDotsPerInchX"
66QT_MOC_LITERAL(523, 19), // "logicalDotsPerInchY"
67QT_MOC_LITERAL(543, 18), // "logicalDotsPerInch"
68QT_MOC_LITERAL(562, 16), // "devicePixelRatio"
69QT_MOC_LITERAL(579, 18), // "primaryOrientation"
70QT_MOC_LITERAL(598, 17) // "nativeOrientation"
71
72 },
73 "QScreen\0geometryChanged\0\0geometry\0"
74 "availableGeometryChanged\0physicalSizeChanged\0"
75 "size\0physicalDotsPerInchChanged\0dpi\0"
76 "logicalDotsPerInchChanged\0"
77 "virtualGeometryChanged\0rect\0"
78 "primaryOrientationChanged\0"
79 "Qt::ScreenOrientation\0orientation\0"
80 "orientationChanged\0refreshRateChanged\0"
81 "refreshRate\0name\0manufacturer\0model\0"
82 "serialNumber\0depth\0availableSize\0"
83 "virtualSize\0availableVirtualSize\0"
84 "availableGeometry\0virtualGeometry\0"
85 "availableVirtualGeometry\0physicalSize\0"
86 "physicalDotsPerInchX\0physicalDotsPerInchY\0"
87 "physicalDotsPerInch\0logicalDotsPerInchX\0"
88 "logicalDotsPerInchY\0logicalDotsPerInch\0"
89 "devicePixelRatio\0primaryOrientation\0"
90 "nativeOrientation"
91};
92#undef QT_MOC_LITERAL
93
94static const uint qt_meta_data_QScreen[] = {
95
96 // content:
97 9, // revision
98 0, // classname
99 0, 0, // classinfo
100 9, 14, // methods
101 25, 95, // properties
102 0, 0, // enums/sets
103 0, 0, // constructors
104 0, // flags
105 9, // signalCount
106
107 // signals: name, argc, parameters, tag, flags, initial metatype offsets
108 1, 1, 68, 2, 0x06, 25 /* Public */,
109 4, 1, 71, 2, 0x06, 27 /* Public */,
110 5, 1, 74, 2, 0x06, 29 /* Public */,
111 7, 1, 77, 2, 0x06, 31 /* Public */,
112 9, 1, 80, 2, 0x06, 33 /* Public */,
113 10, 1, 83, 2, 0x06, 35 /* Public */,
114 12, 1, 86, 2, 0x06, 37 /* Public */,
115 15, 1, 89, 2, 0x06, 39 /* Public */,
116 16, 1, 92, 2, 0x06, 41 /* Public */,
117
118 // signals: parameters
119 QMetaType::Void, QMetaType::QRect, 3,
120 QMetaType::Void, QMetaType::QRect, 3,
121 QMetaType::Void, QMetaType::QSizeF, 6,
122 QMetaType::Void, QMetaType::QReal, 8,
123 QMetaType::Void, QMetaType::QReal, 8,
124 QMetaType::Void, QMetaType::QRect, 11,
125 QMetaType::Void, 0x80000000 | 13, 14,
126 QMetaType::Void, 0x80000000 | 13, 14,
127 QMetaType::Void, QMetaType::QReal, 17,
128
129 // properties: name, type, flags
130 18, QMetaType::QString, 0x00015401, uint(-1), 0,
131 19, QMetaType::QString, 0x00015401, uint(-1), 0,
132 20, QMetaType::QString, 0x00015401, uint(-1), 0,
133 21, QMetaType::QString, 0x00015401, uint(-1), 0,
134 22, QMetaType::Int, 0x00015401, uint(-1), 0,
135 6, QMetaType::QSize, 0x00015001, uint(0), 0,
136 23, QMetaType::QSize, 0x00015001, uint(1), 0,
137 24, QMetaType::QSize, 0x00015001, uint(5), 0,
138 25, QMetaType::QSize, 0x00015001, uint(5), 0,
139 3, QMetaType::QRect, 0x00015001, uint(0), 0,
140 26, QMetaType::QRect, 0x00015001, uint(1), 0,
141 27, QMetaType::QRect, 0x00015001, uint(5), 0,
142 28, QMetaType::QRect, 0x00015001, uint(5), 0,
143 29, QMetaType::QSizeF, 0x00015001, uint(2), 0,
144 30, QMetaType::QReal, 0x00015001, uint(3), 0,
145 31, QMetaType::QReal, 0x00015001, uint(3), 0,
146 32, QMetaType::QReal, 0x00015001, uint(3), 0,
147 33, QMetaType::QReal, 0x00015001, uint(4), 0,
148 34, QMetaType::QReal, 0x00015001, uint(4), 0,
149 35, QMetaType::QReal, 0x00015001, uint(4), 0,
150 36, QMetaType::QReal, 0x00015001, uint(3), 0,
151 37, 0x80000000 | 13, 0x00015009, uint(6), 0,
152 14, 0x80000000 | 13, 0x00015009, uint(7), 0,
153 38, 0x80000000 | 13, 0x00015009, uint(-1), 0,
154 17, QMetaType::QReal, 0x00015001, uint(8), 0,
155
156 0 // eod
157};
158
159void QScreen::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
160{
161 if (_c == QMetaObject::InvokeMetaMethod) {
162 Q_ASSERT(staticMetaObject.cast(_o));
163 auto *_t = static_cast<QScreen *>(_o);
164 Q_UNUSED(_t)
165 switch (_id) {
166 case 0: _t->geometryChanged((*reinterpret_cast< const QRect(*)>(_a[1]))); break;
167 case 1: _t->availableGeometryChanged((*reinterpret_cast< const QRect(*)>(_a[1]))); break;
168 case 2: _t->physicalSizeChanged((*reinterpret_cast< const QSizeF(*)>(_a[1]))); break;
169 case 3: _t->physicalDotsPerInchChanged((*reinterpret_cast< qreal(*)>(_a[1]))); break;
170 case 4: _t->logicalDotsPerInchChanged((*reinterpret_cast< qreal(*)>(_a[1]))); break;
171 case 5: _t->virtualGeometryChanged((*reinterpret_cast< const QRect(*)>(_a[1]))); break;
172 case 6: _t->primaryOrientationChanged((*reinterpret_cast< Qt::ScreenOrientation(*)>(_a[1]))); break;
173 case 7: _t->orientationChanged((*reinterpret_cast< Qt::ScreenOrientation(*)>(_a[1]))); break;
174 case 8: _t->refreshRateChanged((*reinterpret_cast< qreal(*)>(_a[1]))); break;
175 default: ;
176 }
177 } else if (_c == QMetaObject::IndexOfMethod) {
178 int *result = reinterpret_cast<int *>(_a[0]);
179 {
180 using _t = void (QScreen::*)(const QRect & );
181 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QScreen::geometryChanged)) {
182 *result = 0;
183 return;
184 }
185 }
186 {
187 using _t = void (QScreen::*)(const QRect & );
188 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QScreen::availableGeometryChanged)) {
189 *result = 1;
190 return;
191 }
192 }
193 {
194 using _t = void (QScreen::*)(const QSizeF & );
195 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QScreen::physicalSizeChanged)) {
196 *result = 2;
197 return;
198 }
199 }
200 {
201 using _t = void (QScreen::*)(qreal );
202 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QScreen::physicalDotsPerInchChanged)) {
203 *result = 3;
204 return;
205 }
206 }
207 {
208 using _t = void (QScreen::*)(qreal );
209 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QScreen::logicalDotsPerInchChanged)) {
210 *result = 4;
211 return;
212 }
213 }
214 {
215 using _t = void (QScreen::*)(const QRect & );
216 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QScreen::virtualGeometryChanged)) {
217 *result = 5;
218 return;
219 }
220 }
221 {
222 using _t = void (QScreen::*)(Qt::ScreenOrientation );
223 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QScreen::primaryOrientationChanged)) {
224 *result = 6;
225 return;
226 }
227 }
228 {
229 using _t = void (QScreen::*)(Qt::ScreenOrientation );
230 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QScreen::orientationChanged)) {
231 *result = 7;
232 return;
233 }
234 }
235 {
236 using _t = void (QScreen::*)(qreal );
237 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QScreen::refreshRateChanged)) {
238 *result = 8;
239 return;
240 }
241 }
242 }
243#ifndef QT_NO_PROPERTIES
244 else if (_c == QMetaObject::ReadProperty) {
245 Q_ASSERT(staticMetaObject.cast(_o));
246 auto *_t = static_cast<QScreen *>(_o);
247 Q_UNUSED(_t)
248 void *_v = _a[0];
249 switch (_id) {
250 case 0: *reinterpret_cast< QString*>(_v) = _t->name(); break;
251 case 1: *reinterpret_cast< QString*>(_v) = _t->manufacturer(); break;
252 case 2: *reinterpret_cast< QString*>(_v) = _t->model(); break;
253 case 3: *reinterpret_cast< QString*>(_v) = _t->serialNumber(); break;
254 case 4: *reinterpret_cast< int*>(_v) = _t->depth(); break;
255 case 5: *reinterpret_cast< QSize*>(_v) = _t->size(); break;
256 case 6: *reinterpret_cast< QSize*>(_v) = _t->availableSize(); break;
257 case 7: *reinterpret_cast< QSize*>(_v) = _t->virtualSize(); break;
258 case 8: *reinterpret_cast< QSize*>(_v) = _t->availableVirtualSize(); break;
259 case 9: *reinterpret_cast< QRect*>(_v) = _t->geometry(); break;
260 case 10: *reinterpret_cast< QRect*>(_v) = _t->availableGeometry(); break;
261 case 11: *reinterpret_cast< QRect*>(_v) = _t->virtualGeometry(); break;
262 case 12: *reinterpret_cast< QRect*>(_v) = _t->availableVirtualGeometry(); break;
263 case 13: *reinterpret_cast< QSizeF*>(_v) = _t->physicalSize(); break;
264 case 14: *reinterpret_cast< qreal*>(_v) = _t->physicalDotsPerInchX(); break;
265 case 15: *reinterpret_cast< qreal*>(_v) = _t->physicalDotsPerInchY(); break;
266 case 16: *reinterpret_cast< qreal*>(_v) = _t->physicalDotsPerInch(); break;
267 case 17: *reinterpret_cast< qreal*>(_v) = _t->logicalDotsPerInchX(); break;
268 case 18: *reinterpret_cast< qreal*>(_v) = _t->logicalDotsPerInchY(); break;
269 case 19: *reinterpret_cast< qreal*>(_v) = _t->logicalDotsPerInch(); break;
270 case 20: *reinterpret_cast< qreal*>(_v) = _t->devicePixelRatio(); break;
271 case 21: *reinterpret_cast< Qt::ScreenOrientation*>(_v) = _t->primaryOrientation(); break;
272 case 22: *reinterpret_cast< Qt::ScreenOrientation*>(_v) = _t->orientation(); break;
273 case 23: *reinterpret_cast< Qt::ScreenOrientation*>(_v) = _t->nativeOrientation(); break;
274 case 24: *reinterpret_cast< qreal*>(_v) = _t->refreshRate(); break;
275 default: break;
276 }
277 } else if (_c == QMetaObject::WriteProperty) {
278 } else if (_c == QMetaObject::ResetProperty) {
279 } else if (_c == QMetaObject::BindableProperty) {
280 }
281#endif // QT_NO_PROPERTIES
282}
283
284const QMetaObject QScreen::staticMetaObject = { {
285 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
286 qt_meta_stringdata_QScreen.offsetsAndSize,
287 qt_meta_data_QScreen,
288 qt_static_metacall,
289 nullptr,
290qt_incomplete_metaTypeArray<qt_meta_stringdata_QScreen_t
291, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<QSize, std::true_type>, QtPrivate::TypeAndForceComplete<QSize, std::true_type>, QtPrivate::TypeAndForceComplete<QSize, std::true_type>, QtPrivate::TypeAndForceComplete<QSize, std::true_type>, QtPrivate::TypeAndForceComplete<QRect, std::true_type>, QtPrivate::TypeAndForceComplete<QRect, std::true_type>, QtPrivate::TypeAndForceComplete<QRect, std::true_type>, QtPrivate::TypeAndForceComplete<QRect, std::true_type>, QtPrivate::TypeAndForceComplete<QSizeF, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::ScreenOrientation, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::ScreenOrientation, std::true_type>, QtPrivate::TypeAndForceComplete<Qt::ScreenOrientation, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QRect &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QRect &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QSizeF &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<qreal, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<qreal, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QRect &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<Qt::ScreenOrientation, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<Qt::ScreenOrientation, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<qreal, std::false_type>
292
293
294
295>,
296 nullptr
297} };
298
299
300const QMetaObject *QScreen::metaObject() const
301{
302 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
303}
304
305void *QScreen::qt_metacast(const char *_clname)
306{
307 if (!_clname) return nullptr;
308 if (!strcmp(_clname, qt_meta_stringdata_QScreen.stringdata0))
309 return static_cast<void*>(this);
310 return QObject::qt_metacast(_clname);
311}
312
313int QScreen::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
314{
315 _id = QObject::qt_metacall(_c, _id, _a);
316 if (_id < 0)
317 return _id;
318 if (_c == QMetaObject::InvokeMetaMethod) {
319 if (_id < 9)
320 qt_static_metacall(this, _c, _id, _a);
321 _id -= 9;
322 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
323 if (_id < 9)
324 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
325 _id -= 9;
326 }
327#ifndef QT_NO_PROPERTIES
328 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
329 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
330 || _c == QMetaObject::RegisterPropertyMetaType) {
331 qt_static_metacall(this, _c, _id, _a);
332 _id -= 25;
333 }
334#endif // QT_NO_PROPERTIES
335 return _id;
336}
337
338// SIGNAL 0
339void QScreen::geometryChanged(const QRect & _t1)
340{
341 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
342 QMetaObject::activate(this, &staticMetaObject, 0, _a);
343}
344
345// SIGNAL 1
346void QScreen::availableGeometryChanged(const QRect & _t1)
347{
348 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
349 QMetaObject::activate(this, &staticMetaObject, 1, _a);
350}
351
352// SIGNAL 2
353void QScreen::physicalSizeChanged(const QSizeF & _t1)
354{
355 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
356 QMetaObject::activate(this, &staticMetaObject, 2, _a);
357}
358
359// SIGNAL 3
360void QScreen::physicalDotsPerInchChanged(qreal _t1)
361{
362 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
363 QMetaObject::activate(this, &staticMetaObject, 3, _a);
364}
365
366// SIGNAL 4
367void QScreen::logicalDotsPerInchChanged(qreal _t1)
368{
369 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
370 QMetaObject::activate(this, &staticMetaObject, 4, _a);
371}
372
373// SIGNAL 5
374void QScreen::virtualGeometryChanged(const QRect & _t1)
375{
376 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
377 QMetaObject::activate(this, &staticMetaObject, 5, _a);
378}
379
380// SIGNAL 6
381void QScreen::primaryOrientationChanged(Qt::ScreenOrientation _t1)
382{
383 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
384 QMetaObject::activate(this, &staticMetaObject, 6, _a);
385}
386
387// SIGNAL 7
388void QScreen::orientationChanged(Qt::ScreenOrientation _t1)
389{
390 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
391 QMetaObject::activate(this, &staticMetaObject, 7, _a);
392}
393
394// SIGNAL 8
395void QScreen::refreshRateChanged(qreal _t1)
396{
397 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
398 QMetaObject::activate(this, &staticMetaObject, 8, _a);
399}
400QT_WARNING_POP
401QT_END_MOC_NAMESPACE
402