1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'qpointingdevice.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/qpointingdevice.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'qpointingdevice.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_QPointingDeviceUniqueId_t { |
25 | const uint offsetsAndSize[4]; |
26 | char stringdata0[34]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_QPointingDeviceUniqueId_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_QPointingDeviceUniqueId_t qt_meta_stringdata_QPointingDeviceUniqueId = { |
31 | { |
32 | QT_MOC_LITERAL(0, 23), // "QPointingDeviceUniqueId" |
33 | QT_MOC_LITERAL(24, 9) // "numericId" |
34 | |
35 | }, |
36 | "QPointingDeviceUniqueId\0numericId" |
37 | }; |
38 | #undef QT_MOC_LITERAL |
39 | |
40 | static const uint qt_meta_data_QPointingDeviceUniqueId[] = { |
41 | |
42 | // content: |
43 | 9, // revision |
44 | 0, // classname |
45 | 0, 0, // classinfo |
46 | 0, 0, // methods |
47 | 1, 14, // properties |
48 | 0, 0, // enums/sets |
49 | 0, 0, // constructors |
50 | 4, // flags |
51 | 0, // signalCount |
52 | |
53 | // properties: name, type, flags |
54 | 1, QMetaType::LongLong, 0x00015401, uint(-1), 0, |
55 | |
56 | 0 // eod |
57 | }; |
58 | |
59 | void QPointingDeviceUniqueId::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
60 | { |
61 | |
62 | #ifndef QT_NO_PROPERTIES |
63 | if (_c == QMetaObject::ReadProperty) { |
64 | auto *_t = reinterpret_cast<QPointingDeviceUniqueId *>(_o); |
65 | Q_UNUSED(_t) |
66 | void *_v = _a[0]; |
67 | switch (_id) { |
68 | case 0: *reinterpret_cast< qint64*>(_v) = _t->numericId(); break; |
69 | default: break; |
70 | } |
71 | } else if (_c == QMetaObject::WriteProperty) { |
72 | } else if (_c == QMetaObject::ResetProperty) { |
73 | } else if (_c == QMetaObject::BindableProperty) { |
74 | } |
75 | #endif // QT_NO_PROPERTIES |
76 | Q_UNUSED(_o); |
77 | Q_UNUSED(_id); |
78 | Q_UNUSED(_c); |
79 | Q_UNUSED(_a); |
80 | } |
81 | |
82 | const QMetaObject QPointingDeviceUniqueId::staticMetaObject = { { |
83 | nullptr, |
84 | qt_meta_stringdata_QPointingDeviceUniqueId.offsetsAndSize, |
85 | qt_meta_data_QPointingDeviceUniqueId, |
86 | qt_static_metacall, |
87 | nullptr, |
88 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QPointingDeviceUniqueId_t |
89 | , QtPrivate::TypeAndForceComplete<qint64, std::true_type> |
90 | |
91 | |
92 | |
93 | >, |
94 | nullptr |
95 | } }; |
96 | |
97 | struct qt_meta_stringdata_QPointingDevice_t { |
98 | const uint offsetsAndSize[62]; |
99 | char stringdata0[375]; |
100 | }; |
101 | #define QT_MOC_LITERAL(ofs, len) \ |
102 | uint(offsetof(qt_meta_stringdata_QPointingDevice_t, stringdata0) + ofs), len |
103 | static const qt_meta_stringdata_QPointingDevice_t qt_meta_stringdata_QPointingDevice = { |
104 | { |
105 | QT_MOC_LITERAL(0, 15), // "QPointingDevice" |
106 | QT_MOC_LITERAL(16, 11), // "grabChanged" |
107 | QT_MOC_LITERAL(28, 0), // "" |
108 | QT_MOC_LITERAL(29, 7), // "grabber" |
109 | QT_MOC_LITERAL(37, 14), // "GrabTransition" |
110 | QT_MOC_LITERAL(52, 10), // "transition" |
111 | QT_MOC_LITERAL(63, 20), // "const QPointerEvent*" |
112 | QT_MOC_LITERAL(84, 5), // "event" |
113 | QT_MOC_LITERAL(90, 11), // "QEventPoint" |
114 | QT_MOC_LITERAL(102, 5), // "point" |
115 | QT_MOC_LITERAL(108, 11), // "pointerType" |
116 | QT_MOC_LITERAL(120, 11), // "PointerType" |
117 | QT_MOC_LITERAL(132, 13), // "maximumPoints" |
118 | QT_MOC_LITERAL(146, 11), // "buttonCount" |
119 | QT_MOC_LITERAL(158, 8), // "uniqueId" |
120 | QT_MOC_LITERAL(167, 23), // "QPointingDeviceUniqueId" |
121 | QT_MOC_LITERAL(191, 12), // "PointerTypes" |
122 | QT_MOC_LITERAL(204, 7), // "Unknown" |
123 | QT_MOC_LITERAL(212, 7), // "Generic" |
124 | QT_MOC_LITERAL(220, 6), // "Finger" |
125 | QT_MOC_LITERAL(227, 3), // "Pen" |
126 | QT_MOC_LITERAL(231, 6), // "Eraser" |
127 | QT_MOC_LITERAL(238, 6), // "Cursor" |
128 | QT_MOC_LITERAL(245, 15), // "AllPointerTypes" |
129 | QT_MOC_LITERAL(261, 11), // "GrabPassive" |
130 | QT_MOC_LITERAL(273, 13), // "UngrabPassive" |
131 | QT_MOC_LITERAL(287, 17), // "CancelGrabPassive" |
132 | QT_MOC_LITERAL(305, 19), // "OverrideGrabPassive" |
133 | QT_MOC_LITERAL(325, 13), // "GrabExclusive" |
134 | QT_MOC_LITERAL(339, 15), // "UngrabExclusive" |
135 | QT_MOC_LITERAL(355, 19) // "CancelGrabExclusive" |
136 | |
137 | }, |
138 | "QPointingDevice\0grabChanged\0\0grabber\0" |
139 | "GrabTransition\0transition\0" |
140 | "const QPointerEvent*\0event\0QEventPoint\0" |
141 | "point\0pointerType\0PointerType\0" |
142 | "maximumPoints\0buttonCount\0uniqueId\0" |
143 | "QPointingDeviceUniqueId\0PointerTypes\0" |
144 | "Unknown\0Generic\0Finger\0Pen\0Eraser\0" |
145 | "Cursor\0AllPointerTypes\0GrabPassive\0" |
146 | "UngrabPassive\0CancelGrabPassive\0" |
147 | "OverrideGrabPassive\0GrabExclusive\0" |
148 | "UngrabExclusive\0CancelGrabExclusive" |
149 | }; |
150 | #undef QT_MOC_LITERAL |
151 | |
152 | static const uint qt_meta_data_QPointingDevice[] = { |
153 | |
154 | // content: |
155 | 9, // revision |
156 | 0, // classname |
157 | 0, 0, // classinfo |
158 | 1, 14, // methods |
159 | 4, 29, // properties |
160 | 2, 49, // enums/sets |
161 | 0, 0, // constructors |
162 | 0, // flags |
163 | 1, // signalCount |
164 | |
165 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
166 | 1, 4, 20, 2, 0x06, 4 /* Public */, |
167 | |
168 | // signals: parameters |
169 | QMetaType::Void, QMetaType::QObjectStar, 0x80000000 | 4, 0x80000000 | 6, 0x80000000 | 8, 3, 5, 7, 9, |
170 | |
171 | // properties: name, type, flags |
172 | 10, 0x80000000 | 11, 0x00015009, uint(-1), 0, |
173 | 12, QMetaType::Int, 0x00015001, uint(-1), 0, |
174 | 13, QMetaType::Int, 0x00015001, uint(-1), 0, |
175 | 14, 0x80000000 | 15, 0x00015009, uint(-1), 0, |
176 | |
177 | // enums: name, alias, flags, count, data |
178 | 16, 11, 0x3, 7, 59, |
179 | 4, 4, 0x0, 7, 73, |
180 | |
181 | // enum data: key, value |
182 | 17, uint(QPointingDevice::PointerType::Unknown), |
183 | 18, uint(QPointingDevice::PointerType::Generic), |
184 | 19, uint(QPointingDevice::PointerType::Finger), |
185 | 20, uint(QPointingDevice::PointerType::Pen), |
186 | 21, uint(QPointingDevice::PointerType::Eraser), |
187 | 22, uint(QPointingDevice::PointerType::Cursor), |
188 | 23, uint(QPointingDevice::PointerType::AllPointerTypes), |
189 | 24, uint(QPointingDevice::GrabPassive), |
190 | 25, uint(QPointingDevice::UngrabPassive), |
191 | 26, uint(QPointingDevice::CancelGrabPassive), |
192 | 27, uint(QPointingDevice::OverrideGrabPassive), |
193 | 28, uint(QPointingDevice::GrabExclusive), |
194 | 29, uint(QPointingDevice::UngrabExclusive), |
195 | 30, uint(QPointingDevice::CancelGrabExclusive), |
196 | |
197 | 0 // eod |
198 | }; |
199 | |
200 | void QPointingDevice::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
201 | { |
202 | if (_c == QMetaObject::InvokeMetaMethod) { |
203 | Q_ASSERT(staticMetaObject.cast(_o)); |
204 | auto *_t = static_cast<QPointingDevice *>(_o); |
205 | Q_UNUSED(_t) |
206 | switch (_id) { |
207 | case 0: _t->grabChanged((*reinterpret_cast< QObject*(*)>(_a[1])),(*reinterpret_cast< GrabTransition(*)>(_a[2])),(*reinterpret_cast< const QPointerEvent*(*)>(_a[3])),(*reinterpret_cast< const QEventPoint(*)>(_a[4]))); break; |
208 | default: ; |
209 | } |
210 | } else if (_c == QMetaObject::IndexOfMethod) { |
211 | int *result = reinterpret_cast<int *>(_a[0]); |
212 | { |
213 | using _t = void (QPointingDevice::*)(QObject * , GrabTransition , const QPointerEvent * , const QEventPoint & ) const; |
214 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPointingDevice::grabChanged)) { |
215 | *result = 0; |
216 | return; |
217 | } |
218 | } |
219 | } |
220 | #ifndef QT_NO_PROPERTIES |
221 | else if (_c == QMetaObject::ReadProperty) { |
222 | Q_ASSERT(staticMetaObject.cast(_o)); |
223 | auto *_t = static_cast<QPointingDevice *>(_o); |
224 | Q_UNUSED(_t) |
225 | void *_v = _a[0]; |
226 | switch (_id) { |
227 | case 0: *reinterpret_cast< PointerType*>(_v) = _t->pointerType(); break; |
228 | case 1: *reinterpret_cast< int*>(_v) = _t->maximumPoints(); break; |
229 | case 2: *reinterpret_cast< int*>(_v) = _t->buttonCount(); break; |
230 | case 3: *reinterpret_cast< QPointingDeviceUniqueId*>(_v) = _t->uniqueId(); break; |
231 | default: break; |
232 | } |
233 | } else if (_c == QMetaObject::WriteProperty) { |
234 | } else if (_c == QMetaObject::ResetProperty) { |
235 | } else if (_c == QMetaObject::BindableProperty) { |
236 | } |
237 | #endif // QT_NO_PROPERTIES |
238 | } |
239 | |
240 | const QMetaObject QPointingDevice::staticMetaObject = { { |
241 | QMetaObject::SuperData::link<QInputDevice::staticMetaObject>(), |
242 | qt_meta_stringdata_QPointingDevice.offsetsAndSize, |
243 | qt_meta_data_QPointingDevice, |
244 | qt_static_metacall, |
245 | nullptr, |
246 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QPointingDevice_t |
247 | , QtPrivate::TypeAndForceComplete<PointerType, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<QPointingDeviceUniqueId, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QObject *, std::false_type>, QtPrivate::TypeAndForceComplete<GrabTransition, std::false_type>, QtPrivate::TypeAndForceComplete<const QPointerEvent *, std::false_type>, QtPrivate::TypeAndForceComplete<const QEventPoint &, std::false_type> |
248 | |
249 | |
250 | |
251 | >, |
252 | nullptr |
253 | } }; |
254 | |
255 | |
256 | const QMetaObject *QPointingDevice::metaObject() const |
257 | { |
258 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
259 | } |
260 | |
261 | void *QPointingDevice::qt_metacast(const char *_clname) |
262 | { |
263 | if (!_clname) return nullptr; |
264 | if (!strcmp(_clname, qt_meta_stringdata_QPointingDevice.stringdata0)) |
265 | return static_cast<void*>(this); |
266 | return QInputDevice::qt_metacast(_clname); |
267 | } |
268 | |
269 | int QPointingDevice::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
270 | { |
271 | _id = QInputDevice::qt_metacall(_c, _id, _a); |
272 | if (_id < 0) |
273 | return _id; |
274 | if (_c == QMetaObject::InvokeMetaMethod) { |
275 | if (_id < 1) |
276 | qt_static_metacall(this, _c, _id, _a); |
277 | _id -= 1; |
278 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
279 | if (_id < 1) |
280 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
281 | _id -= 1; |
282 | } |
283 | #ifndef QT_NO_PROPERTIES |
284 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
285 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
286 | || _c == QMetaObject::RegisterPropertyMetaType) { |
287 | qt_static_metacall(this, _c, _id, _a); |
288 | _id -= 4; |
289 | } |
290 | #endif // QT_NO_PROPERTIES |
291 | return _id; |
292 | } |
293 | |
294 | // SIGNAL 0 |
295 | void QPointingDevice::grabChanged(QObject * _t1, GrabTransition _t2, const QPointerEvent * _t3, const QEventPoint & _t4)const |
296 | { |
297 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t4))) }; |
298 | QMetaObject::activate(const_cast< QPointingDevice *>(this), &staticMetaObject, 0, _a); |
299 | } |
300 | QT_WARNING_POP |
301 | QT_END_MOC_NAMESPACE |
302 | |