1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'qinputdevice.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/qinputdevice.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'qinputdevice.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_QInputDevice_t { |
25 | const uint offsetsAndSize[76]; |
26 | char stringdata0[378]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_QInputDevice_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_QInputDevice_t qt_meta_stringdata_QInputDevice = { |
31 | { |
32 | QT_MOC_LITERAL(0, 12), // "QInputDevice" |
33 | QT_MOC_LITERAL(13, 31), // "availableVirtualGeometryChanged" |
34 | QT_MOC_LITERAL(45, 0), // "" |
35 | QT_MOC_LITERAL(46, 4), // "area" |
36 | QT_MOC_LITERAL(51, 4), // "name" |
37 | QT_MOC_LITERAL(56, 4), // "type" |
38 | QT_MOC_LITERAL(61, 10), // "DeviceType" |
39 | QT_MOC_LITERAL(72, 12), // "capabilities" |
40 | QT_MOC_LITERAL(85, 12), // "Capabilities" |
41 | QT_MOC_LITERAL(98, 8), // "systemId" |
42 | QT_MOC_LITERAL(107, 8), // "seatName" |
43 | QT_MOC_LITERAL(116, 24), // "availableVirtualGeometry" |
44 | QT_MOC_LITERAL(141, 11), // "DeviceTypes" |
45 | QT_MOC_LITERAL(153, 7), // "Unknown" |
46 | QT_MOC_LITERAL(161, 5), // "Mouse" |
47 | QT_MOC_LITERAL(167, 11), // "TouchScreen" |
48 | QT_MOC_LITERAL(179, 8), // "TouchPad" |
49 | QT_MOC_LITERAL(188, 4), // "Puck" |
50 | QT_MOC_LITERAL(193, 6), // "Stylus" |
51 | QT_MOC_LITERAL(200, 8), // "Airbrush" |
52 | QT_MOC_LITERAL(209, 8), // "Keyboard" |
53 | QT_MOC_LITERAL(218, 10), // "AllDevices" |
54 | QT_MOC_LITERAL(229, 10), // "Capability" |
55 | QT_MOC_LITERAL(240, 4), // "None" |
56 | QT_MOC_LITERAL(245, 8), // "Position" |
57 | QT_MOC_LITERAL(254, 4), // "Area" |
58 | QT_MOC_LITERAL(259, 8), // "Pressure" |
59 | QT_MOC_LITERAL(268, 8), // "Velocity" |
60 | QT_MOC_LITERAL(277, 18), // "NormalizedPosition" |
61 | QT_MOC_LITERAL(296, 14), // "MouseEmulation" |
62 | QT_MOC_LITERAL(311, 6), // "Scroll" |
63 | QT_MOC_LITERAL(318, 5), // "Hover" |
64 | QT_MOC_LITERAL(324, 8), // "Rotation" |
65 | QT_MOC_LITERAL(333, 5), // "XTilt" |
66 | QT_MOC_LITERAL(339, 5), // "YTilt" |
67 | QT_MOC_LITERAL(345, 18), // "TangentialPressure" |
68 | QT_MOC_LITERAL(364, 9), // "ZPosition" |
69 | QT_MOC_LITERAL(374, 3) // "All" |
70 | |
71 | }, |
72 | "QInputDevice\0availableVirtualGeometryChanged\0" |
73 | "\0area\0name\0type\0DeviceType\0capabilities\0" |
74 | "Capabilities\0systemId\0seatName\0" |
75 | "availableVirtualGeometry\0DeviceTypes\0" |
76 | "Unknown\0Mouse\0TouchScreen\0TouchPad\0" |
77 | "Puck\0Stylus\0Airbrush\0Keyboard\0AllDevices\0" |
78 | "Capability\0None\0Position\0Area\0Pressure\0" |
79 | "Velocity\0NormalizedPosition\0MouseEmulation\0" |
80 | "Scroll\0Hover\0Rotation\0XTilt\0YTilt\0" |
81 | "TangentialPressure\0ZPosition\0All" |
82 | }; |
83 | #undef QT_MOC_LITERAL |
84 | |
85 | static const uint qt_meta_data_QInputDevice[] = { |
86 | |
87 | // content: |
88 | 9, // revision |
89 | 0, // classname |
90 | 0, 0, // classinfo |
91 | 1, 14, // methods |
92 | 6, 23, // properties |
93 | 2, 53, // enums/sets |
94 | 0, 0, // constructors |
95 | 0, // flags |
96 | 1, // signalCount |
97 | |
98 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
99 | 1, 1, 20, 2, 0x06, 6 /* Public */, |
100 | |
101 | // signals: parameters |
102 | QMetaType::Void, QMetaType::QRect, 3, |
103 | |
104 | // properties: name, type, flags |
105 | 4, QMetaType::QString, 0x00015401, uint(-1), 0, |
106 | 5, 0x80000000 | 6, 0x00015409, uint(-1), 0, |
107 | 7, 0x80000000 | 8, 0x00015409, uint(-1), 0, |
108 | 9, QMetaType::LongLong, 0x00015401, uint(-1), 0, |
109 | 10, QMetaType::QString, 0x00015401, uint(-1), 0, |
110 | 11, QMetaType::QRect, 0x00015001, uint(0), 0, |
111 | |
112 | // enums: name, alias, flags, count, data |
113 | 12, 6, 0x3, 9, 63, |
114 | 8, 22, 0x3, 15, 81, |
115 | |
116 | // enum data: key, value |
117 | 13, uint(QInputDevice::DeviceType::Unknown), |
118 | 14, uint(QInputDevice::DeviceType::Mouse), |
119 | 15, uint(QInputDevice::DeviceType::TouchScreen), |
120 | 16, uint(QInputDevice::DeviceType::TouchPad), |
121 | 17, uint(QInputDevice::DeviceType::Puck), |
122 | 18, uint(QInputDevice::DeviceType::Stylus), |
123 | 19, uint(QInputDevice::DeviceType::Airbrush), |
124 | 20, uint(QInputDevice::DeviceType::Keyboard), |
125 | 21, uint(QInputDevice::DeviceType::AllDevices), |
126 | 23, uint(QInputDevice::Capability::None), |
127 | 24, uint(QInputDevice::Capability::Position), |
128 | 25, uint(QInputDevice::Capability::Area), |
129 | 26, uint(QInputDevice::Capability::Pressure), |
130 | 27, uint(QInputDevice::Capability::Velocity), |
131 | 28, uint(QInputDevice::Capability::NormalizedPosition), |
132 | 29, uint(QInputDevice::Capability::MouseEmulation), |
133 | 30, uint(QInputDevice::Capability::Scroll), |
134 | 31, uint(QInputDevice::Capability::Hover), |
135 | 32, uint(QInputDevice::Capability::Rotation), |
136 | 33, uint(QInputDevice::Capability::XTilt), |
137 | 34, uint(QInputDevice::Capability::YTilt), |
138 | 35, uint(QInputDevice::Capability::TangentialPressure), |
139 | 36, uint(QInputDevice::Capability::ZPosition), |
140 | 37, uint(QInputDevice::Capability::All), |
141 | |
142 | 0 // eod |
143 | }; |
144 | |
145 | void QInputDevice::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
146 | { |
147 | if (_c == QMetaObject::InvokeMetaMethod) { |
148 | Q_ASSERT(staticMetaObject.cast(_o)); |
149 | auto *_t = static_cast<QInputDevice *>(_o); |
150 | Q_UNUSED(_t) |
151 | switch (_id) { |
152 | case 0: _t->availableVirtualGeometryChanged((*reinterpret_cast< QRect(*)>(_a[1]))); break; |
153 | default: ; |
154 | } |
155 | } else if (_c == QMetaObject::IndexOfMethod) { |
156 | int *result = reinterpret_cast<int *>(_a[0]); |
157 | { |
158 | using _t = void (QInputDevice::*)(QRect ); |
159 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QInputDevice::availableVirtualGeometryChanged)) { |
160 | *result = 0; |
161 | return; |
162 | } |
163 | } |
164 | } |
165 | #ifndef QT_NO_PROPERTIES |
166 | else if (_c == QMetaObject::ReadProperty) { |
167 | Q_ASSERT(staticMetaObject.cast(_o)); |
168 | auto *_t = static_cast<QInputDevice *>(_o); |
169 | Q_UNUSED(_t) |
170 | void *_v = _a[0]; |
171 | switch (_id) { |
172 | case 0: *reinterpret_cast< QString*>(_v) = _t->name(); break; |
173 | case 1: *reinterpret_cast< DeviceType*>(_v) = _t->type(); break; |
174 | case 2: *reinterpret_cast<int*>(_v) = QFlag(_t->capabilities()); break; |
175 | case 3: *reinterpret_cast< qint64*>(_v) = _t->systemId(); break; |
176 | case 4: *reinterpret_cast< QString*>(_v) = _t->seatName(); break; |
177 | case 5: *reinterpret_cast< QRect*>(_v) = _t->availableVirtualGeometry(); break; |
178 | default: break; |
179 | } |
180 | } else if (_c == QMetaObject::WriteProperty) { |
181 | } else if (_c == QMetaObject::ResetProperty) { |
182 | } else if (_c == QMetaObject::BindableProperty) { |
183 | } |
184 | #endif // QT_NO_PROPERTIES |
185 | } |
186 | |
187 | const QMetaObject QInputDevice::staticMetaObject = { { |
188 | QMetaObject::SuperData::link<QObject::staticMetaObject>(), |
189 | qt_meta_stringdata_QInputDevice.offsetsAndSize, |
190 | qt_meta_data_QInputDevice, |
191 | qt_static_metacall, |
192 | nullptr, |
193 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QInputDevice_t |
194 | , QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<DeviceType, std::true_type>, QtPrivate::TypeAndForceComplete<Capabilities, std::true_type>, QtPrivate::TypeAndForceComplete<qint64, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QRect, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QRect, std::false_type> |
195 | |
196 | |
197 | |
198 | >, |
199 | nullptr |
200 | } }; |
201 | |
202 | |
203 | const QMetaObject *QInputDevice::metaObject() const |
204 | { |
205 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
206 | } |
207 | |
208 | void *QInputDevice::qt_metacast(const char *_clname) |
209 | { |
210 | if (!_clname) return nullptr; |
211 | if (!strcmp(_clname, qt_meta_stringdata_QInputDevice.stringdata0)) |
212 | return static_cast<void*>(this); |
213 | return QObject::qt_metacast(_clname); |
214 | } |
215 | |
216 | int QInputDevice::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
217 | { |
218 | _id = QObject::qt_metacall(_c, _id, _a); |
219 | if (_id < 0) |
220 | return _id; |
221 | if (_c == QMetaObject::InvokeMetaMethod) { |
222 | if (_id < 1) |
223 | qt_static_metacall(this, _c, _id, _a); |
224 | _id -= 1; |
225 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
226 | if (_id < 1) |
227 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
228 | _id -= 1; |
229 | } |
230 | #ifndef QT_NO_PROPERTIES |
231 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
232 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
233 | || _c == QMetaObject::RegisterPropertyMetaType) { |
234 | qt_static_metacall(this, _c, _id, _a); |
235 | _id -= 6; |
236 | } |
237 | #endif // QT_NO_PROPERTIES |
238 | return _id; |
239 | } |
240 | |
241 | // SIGNAL 0 |
242 | void QInputDevice::availableVirtualGeometryChanged(QRect _t1) |
243 | { |
244 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
245 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
246 | } |
247 | QT_WARNING_POP |
248 | QT_END_MOC_NAMESPACE |
249 | |