Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/util/qquickpath_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | static_assert(bool(1 == 1), "Required feature " "quick_path" " for file " __FILE__ " not available."); | - |
3 | - | |
4 | - | |
5 | - | |
6 | - | |
7 | - | |
8 | - | |
9 | class QQuickCurve; | - |
10 | struct QQuickPathData | - |
11 | { | - |
12 | int index; | - |
13 | QPointF endPoint; | - |
14 | QList<QQuickCurve*> curves; | - |
15 | }; | - |
16 | - | |
17 | class __attribute__((visibility("default"))) QQuickPathElement : public QObject | - |
18 | { | - |
19 | public: | - |
20 | #pragma GCC diagnostic push | - |
21 | - | |
22 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
23 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
24 | #pragma GCC diagnostic ignored "-Wattributes" | - |
25 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
26 | #pragma GCC diagnostic pop | - |
27 | struct QPrivateSignal {}; | - |
28 | public: | - |
29 | QQuickPathElement(QObject *parent=nullptr) : QObject(parent) {} executed 10648 times by 6 tests: end of block Executed by:
| 10648 |
30 | public : | - |
31 | void changed(); | - |
32 | }; | - |
33 | - | |
34 | class __attribute__((visibility("default"))) QQuickPathAttribute : public QQuickPathElement | - |
35 | { | - |
36 | public: | - |
37 | #pragma GCC diagnostic push | - |
38 | - | |
39 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
40 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
41 | #pragma GCC diagnostic ignored "-Wattributes" | - |
42 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
43 | #pragma GCC diagnostic pop | - |
44 | struct QPrivateSignal {}; | - |
45 | - | |
46 | - | |
47 | - | |
48 | public: | - |
49 | QQuickPathAttribute(QObject *parent=nullptr) : QQuickPathElement(parent) {} executed 544 times by 2 tests: end of block Executed by:
| 544 |
50 | - | |
51 | - | |
52 | QString name() const; | - |
53 | void setName(const QString &name); | - |
54 | - | |
55 | qreal value() const; | - |
56 | void setValue(qreal value); | - |
57 | - | |
58 | public : | - |
59 | void nameChanged(); | - |
60 | void valueChanged(); | - |
61 | - | |
62 | private: | - |
63 | QString _name; | - |
64 | qreal _value = 0; | - |
65 | }; | - |
66 | - | |
67 | class __attribute__((visibility("default"))) QQuickCurve : public QQuickPathElement | - |
68 | { | - |
69 | public: | - |
70 | #pragma GCC diagnostic push | - |
71 | - | |
72 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
73 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
74 | #pragma GCC diagnostic ignored "-Wattributes" | - |
75 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
76 | #pragma GCC diagnostic pop | - |
77 | struct QPrivateSignal {}; | - |
78 | - | |
79 | - | |
80 | - | |
81 | - | |
82 | - | |
83 | public: | - |
84 | QQuickCurve(QObject *parent=nullptr) : QQuickPathElement(parent) {} executed 10100 times by 6 tests: end of block Executed by:
| 10100 |
85 | - | |
86 | qreal x() const; | - |
87 | void setX(qreal x); | - |
88 | bool hasX(); | - |
89 | - | |
90 | qreal y() const; | - |
91 | void setY(qreal y); | - |
92 | bool hasY(); | - |
93 | - | |
94 | qreal relativeX() const; | - |
95 | void setRelativeX(qreal x); | - |
96 | bool hasRelativeX(); | - |
97 | - | |
98 | qreal relativeY() const; | - |
99 | void setRelativeY(qreal y); | - |
100 | bool hasRelativeY(); | - |
101 | - | |
102 | virtual void addToPath(QPainterPath &, const QQuickPathData &) {} | - |
103 | - | |
104 | public : | - |
105 | void xChanged(); | - |
106 | void yChanged(); | - |
107 | void relativeXChanged(); | - |
108 | void relativeYChanged(); | - |
109 | - | |
110 | private: | - |
111 | QQmlNullableValue<qreal> _x; | - |
112 | QQmlNullableValue<qreal> _y; | - |
113 | QQmlNullableValue<qreal> _relativeX; | - |
114 | QQmlNullableValue<qreal> _relativeY; | - |
115 | }; | - |
116 | - | |
117 | class __attribute__((visibility("default"))) QQuickPathLine : public QQuickCurve | - |
118 | { | - |
119 | public: | - |
120 | #pragma GCC diagnostic push | - |
121 | - | |
122 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
123 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
124 | #pragma GCC diagnostic ignored "-Wattributes" | - |
125 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
126 | #pragma GCC diagnostic pop | - |
127 | struct QPrivateSignal {}; | - |
128 | public: | - |
129 | QQuickPathLine(QObject *parent=nullptr) : QQuickCurve(parent) {} executed 940 times by 6 tests: end of block Executed by:
| 940 |
130 | - | |
131 | void addToPath(QPainterPath &path, const QQuickPathData &) override; | - |
132 | }; | - |
133 | - | |
134 | class __attribute__((visibility("default"))) QQuickPathMove : public QQuickCurve | - |
135 | { | - |
136 | public: | - |
137 | #pragma GCC diagnostic push | - |
138 | - | |
139 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
140 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
141 | #pragma GCC diagnostic ignored "-Wattributes" | - |
142 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
143 | #pragma GCC diagnostic pop | - |
144 | struct QPrivateSignal {}; | - |
145 | public: | - |
146 | QQuickPathMove(QObject *parent=nullptr) : QQuickCurve(parent) {} executed 972 times by 1 test: end of block Executed by:
| 972 |
147 | - | |
148 | void addToPath(QPainterPath &path, const QQuickPathData &) override; | - |
149 | }; | - |
150 | - | |
151 | class __attribute__((visibility("default"))) QQuickPathQuad : public QQuickCurve | - |
152 | { | - |
153 | public: | - |
154 | #pragma GCC diagnostic push | - |
155 | - | |
156 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
157 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
158 | #pragma GCC diagnostic ignored "-Wattributes" | - |
159 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
160 | #pragma GCC diagnostic pop | - |
161 | struct QPrivateSignal {}; | - |
162 | - | |
163 | - | |
164 | - | |
165 | - | |
166 | - | |
167 | public: | - |
168 | QQuickPathQuad(QObject *parent=nullptr) : QQuickCurve(parent) {} executed 178 times by 3 tests: end of block Executed by:
| 178 |
169 | - | |
170 | qreal controlX() const; | - |
171 | void setControlX(qreal x); | - |
172 | - | |
173 | qreal controlY() const; | - |
174 | void setControlY(qreal y); | - |
175 | - | |
176 | qreal relativeControlX() const; | - |
177 | void setRelativeControlX(qreal x); | - |
178 | bool hasRelativeControlX(); | - |
179 | - | |
180 | qreal relativeControlY() const; | - |
181 | void setRelativeControlY(qreal y); | - |
182 | bool hasRelativeControlY(); | - |
183 | - | |
184 | void addToPath(QPainterPath &path, const QQuickPathData &) override; | - |
185 | - | |
186 | public : | - |
187 | void controlXChanged(); | - |
188 | void controlYChanged(); | - |
189 | void relativeControlXChanged(); | - |
190 | void relativeControlYChanged(); | - |
191 | - | |
192 | private: | - |
193 | qreal _controlX = 0; | - |
194 | qreal _controlY = 0; | - |
195 | QQmlNullableValue<qreal> _relativeControlX; | - |
196 | QQmlNullableValue<qreal> _relativeControlY; | - |
197 | }; | - |
198 | - | |
199 | class __attribute__((visibility("default"))) QQuickPathCubic : public QQuickCurve | - |
200 | { | - |
201 | public: | - |
202 | #pragma GCC diagnostic push | - |
203 | - | |
204 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
205 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
206 | #pragma GCC diagnostic ignored "-Wattributes" | - |
207 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
208 | #pragma GCC diagnostic pop | - |
209 | struct QPrivateSignal {}; | - |
210 | - | |
211 | - | |
212 | - | |
213 | - | |
214 | - | |
215 | - | |
216 | - | |
217 | - | |
218 | - | |
219 | public: | - |
220 | QQuickPathCubic(QObject *parent=nullptr) : QQuickCurve(parent) {} executed 7900 times by 4 tests: end of block Executed by:
| 7900 |
221 | - | |
222 | qreal control1X() const; | - |
223 | void setControl1X(qreal x); | - |
224 | - | |
225 | qreal control1Y() const; | - |
226 | void setControl1Y(qreal y); | - |
227 | - | |
228 | qreal control2X() const; | - |
229 | void setControl2X(qreal x); | - |
230 | - | |
231 | qreal control2Y() const; | - |
232 | void setControl2Y(qreal y); | - |
233 | - | |
234 | qreal relativeControl1X() const; | - |
235 | void setRelativeControl1X(qreal x); | - |
236 | bool hasRelativeControl1X(); | - |
237 | - | |
238 | qreal relativeControl1Y() const; | - |
239 | void setRelativeControl1Y(qreal y); | - |
240 | bool hasRelativeControl1Y(); | - |
241 | - | |
242 | qreal relativeControl2X() const; | - |
243 | void setRelativeControl2X(qreal x); | - |
244 | bool hasRelativeControl2X(); | - |
245 | - | |
246 | qreal relativeControl2Y() const; | - |
247 | void setRelativeControl2Y(qreal y); | - |
248 | bool hasRelativeControl2Y(); | - |
249 | - | |
250 | void addToPath(QPainterPath &path, const QQuickPathData &) override; | - |
251 | - | |
252 | public : | - |
253 | void control1XChanged(); | - |
254 | void control1YChanged(); | - |
255 | void control2XChanged(); | - |
256 | void control2YChanged(); | - |
257 | void relativeControl1XChanged(); | - |
258 | void relativeControl1YChanged(); | - |
259 | void relativeControl2XChanged(); | - |
260 | void relativeControl2YChanged(); | - |
261 | - | |
262 | private: | - |
263 | qreal _control1X = 0; | - |
264 | qreal _control1Y = 0; | - |
265 | qreal _control2X = 0; | - |
266 | qreal _control2Y = 0; | - |
267 | QQmlNullableValue<qreal> _relativeControl1X; | - |
268 | QQmlNullableValue<qreal> _relativeControl1Y; | - |
269 | QQmlNullableValue<qreal> _relativeControl2X; | - |
270 | QQmlNullableValue<qreal> _relativeControl2Y; | - |
271 | }; | - |
272 | - | |
273 | class __attribute__((visibility("default"))) QQuickPathCatmullRomCurve : public QQuickCurve | - |
274 | { | - |
275 | public: | - |
276 | #pragma GCC diagnostic push | - |
277 | - | |
278 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
279 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
280 | #pragma GCC diagnostic ignored "-Wattributes" | - |
281 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
282 | #pragma GCC diagnostic pop | - |
283 | struct QPrivateSignal {}; | - |
284 | public: | - |
285 | QQuickPathCatmullRomCurve(QObject *parent=nullptr) : QQuickCurve(parent) {} executed 26 times by 2 tests: end of block Executed by:
| 26 |
286 | - | |
287 | void addToPath(QPainterPath &path, const QQuickPathData &) override; | - |
288 | }; | - |
289 | - | |
290 | class __attribute__((visibility("default"))) QQuickPathArc : public QQuickCurve | - |
291 | { | - |
292 | public: | - |
293 | #pragma GCC diagnostic push | - |
294 | - | |
295 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
296 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
297 | #pragma GCC diagnostic ignored "-Wattributes" | - |
298 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
299 | #pragma GCC diagnostic pop | - |
300 | struct QPrivateSignal {}; | - |
301 | - | |
302 | - | |
303 | - | |
304 | - | |
305 | - | |
306 | - | |
307 | public: | - |
308 | QQuickPathArc(QObject *parent=nullptr) | - |
309 | : QQuickCurve(parent) {} executed 70 times by 3 tests: end of block Executed by:
| 70 |
310 | - | |
311 | enum ArcDirection { Clockwise, Counterclockwise }; | - |
312 | friend constexpr const QMetaObject *qt_getEnumMetaObject(ArcDirection) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(ArcDirection) noexcept { return "ArcDirection"; } | - |
313 | - | |
314 | qreal radiusX() const; | - |
315 | void setRadiusX(qreal); | - |
316 | - | |
317 | qreal radiusY() const; | - |
318 | void setRadiusY(qreal); | - |
319 | - | |
320 | bool useLargeArc() const; | - |
321 | void setUseLargeArc(bool); | - |
322 | - | |
323 | ArcDirection direction() const; | - |
324 | void setDirection(ArcDirection direction); | - |
325 | - | |
326 | qreal xAxisRotation() const; | - |
327 | void setXAxisRotation(qreal rotation); | - |
328 | - | |
329 | void addToPath(QPainterPath &path, const QQuickPathData &) override; | - |
330 | - | |
331 | public : | - |
332 | void radiusXChanged(); | - |
333 | void radiusYChanged(); | - |
334 | void useLargeArcChanged(); | - |
335 | void directionChanged(); | - |
336 | void xAxisRotationChanged(); | - |
337 | - | |
338 | private: | - |
339 | qreal _radiusX = 0; | - |
340 | qreal _radiusY = 0; | - |
341 | bool _useLargeArc = false; | - |
342 | ArcDirection _direction = Clockwise; | - |
343 | qreal _xAxisRotation = 0; | - |
344 | }; | - |
345 | - | |
346 | class __attribute__((visibility("default"))) QQuickPathAngleArc : public QQuickCurve | - |
347 | { | - |
348 | public: | - |
349 | #pragma GCC diagnostic push | - |
350 | - | |
351 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
352 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
353 | #pragma GCC diagnostic ignored "-Wattributes" | - |
354 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
355 | #pragma GCC diagnostic pop | - |
356 | struct QPrivateSignal {}; | - |
357 | - | |
358 | - | |
359 | - | |
360 | - | |
361 | - | |
362 | - | |
363 | - | |
364 | - | |
365 | public: | - |
366 | QQuickPathAngleArc(QObject *parent=nullptr) | - |
367 | : QQuickCurve(parent) {} executed 6 times by 2 tests: end of block Executed by:
| 6 |
368 | - | |
369 | qreal centerX() const; | - |
370 | void setCenterX(qreal); | - |
371 | - | |
372 | qreal centerY() const; | - |
373 | void setCenterY(qreal); | - |
374 | - | |
375 | qreal radiusX() const; | - |
376 | void setRadiusX(qreal); | - |
377 | - | |
378 | qreal radiusY() const; | - |
379 | void setRadiusY(qreal); | - |
380 | - | |
381 | qreal startAngle() const; | - |
382 | void setStartAngle(qreal); | - |
383 | - | |
384 | qreal sweepAngle() const; | - |
385 | void setSweepAngle(qreal); | - |
386 | - | |
387 | bool moveToStart() const; | - |
388 | void setMoveToStart(bool); | - |
389 | - | |
390 | void addToPath(QPainterPath &path, const QQuickPathData &) override; | - |
391 | - | |
392 | public : | - |
393 | void centerXChanged(); | - |
394 | void centerYChanged(); | - |
395 | void radiusXChanged(); | - |
396 | void radiusYChanged(); | - |
397 | void startAngleChanged(); | - |
398 | void sweepAngleChanged(); | - |
399 | void moveToStartChanged(); | - |
400 | - | |
401 | private: | - |
402 | qreal _centerX = 0; | - |
403 | qreal _centerY = 0; | - |
404 | qreal _radiusX = 0; | - |
405 | qreal _radiusY = 0; | - |
406 | qreal _startAngle = 0; | - |
407 | qreal _sweepAngle = 0; | - |
408 | bool _moveToStart = true; | - |
409 | }; | - |
410 | - | |
411 | class __attribute__((visibility("default"))) QQuickPathSvg : public QQuickCurve | - |
412 | { | - |
413 | public: | - |
414 | #pragma GCC diagnostic push | - |
415 | - | |
416 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
417 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
418 | #pragma GCC diagnostic ignored "-Wattributes" | - |
419 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
420 | #pragma GCC diagnostic pop | - |
421 | struct QPrivateSignal {}; | - |
422 | - | |
423 | public: | - |
424 | QQuickPathSvg(QObject *parent=nullptr) : QQuickCurve(parent) {} executed 8 times by 3 tests: end of block Executed by:
| 8 |
425 | - | |
426 | QString path() const; | - |
427 | void setPath(const QString &path); | - |
428 | - | |
429 | void addToPath(QPainterPath &path, const QQuickPathData &) override; | - |
430 | - | |
431 | public : | - |
432 | void pathChanged(); | - |
433 | - | |
434 | private: | - |
435 | QString _path; | - |
436 | }; | - |
437 | - | |
438 | class __attribute__((visibility("default"))) QQuickPathPercent : public QQuickPathElement | - |
439 | { | - |
440 | public: | - |
441 | #pragma GCC diagnostic push | - |
442 | - | |
443 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
444 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
445 | #pragma GCC diagnostic ignored "-Wattributes" | - |
446 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
447 | #pragma GCC diagnostic pop | - |
448 | struct QPrivateSignal {}; | - |
449 | - | |
450 | public: | - |
451 | QQuickPathPercent(QObject *parent=nullptr) : QQuickPathElement(parent) {} executed 4 times by 1 test: end of block Executed by:
| 4 |
452 | - | |
453 | qreal value() const; | - |
454 | void setValue(qreal value); | - |
455 | - | |
456 | public : | - |
457 | void valueChanged(); | - |
458 | - | |
459 | private: | - |
460 | qreal _value = 0; | - |
461 | }; | - |
462 | - | |
463 | struct QQuickCachedBezier | - |
464 | { | - |
465 | QQuickCachedBezier() {} | - |
466 | QBezier bezier; | - |
467 | int element; | - |
468 | qreal bezLength; | - |
469 | qreal currLength; | - |
470 | qreal p; | - |
471 | bool isValid = false; | - |
472 | }; | - |
473 | - | |
474 | class QQuickPathPrivate; | - |
475 | class __attribute__((visibility("default"))) QQuickPath : public QObject, public QQmlParserStatus | - |
476 | { | - |
477 | public: | - |
478 | #pragma GCC diagnostic push | - |
479 | - | |
480 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
481 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
482 | #pragma GCC diagnostic ignored "-Wattributes" | - |
483 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
484 | #pragma GCC diagnostic pop | - |
485 | struct QPrivateSignal {}; | - |
486 | - | |
487 | - | |
488 | - | |
489 | - | |
490 | - | |
491 | - | |
492 | - | |
493 | - | |
494 | public: | - |
495 | QQuickPath(QObject *parent=nullptr); | - |
496 | ~QQuickPath() override; | - |
497 | - | |
498 | QQmlListProperty<QQuickPathElement> pathElements(); | - |
499 | - | |
500 | qreal startX() const; | - |
501 | void setStartX(qreal x); | - |
502 | bool hasStartX() const; | - |
503 | - | |
504 | qreal startY() const; | - |
505 | void setStartY(qreal y); | - |
506 | bool hasStartY() const; | - |
507 | - | |
508 | bool isClosed() const; | - |
509 | - | |
510 | QPainterPath path() const; | - |
511 | QStringList attributes() const; | - |
512 | qreal attributeAt(const QString &, qreal) const; | - |
513 | QPointF pointAt(qreal) const; | - |
514 | QPointF sequentialPointAt(qreal p, qreal *angle = nullptr) const; | - |
515 | void invalidateSequentialHistory() const; | - |
516 | - | |
517 | public : | - |
518 | void changed(); | - |
519 | void startXChanged(); | - |
520 | void startYChanged(); | - |
521 | - | |
522 | protected: | - |
523 | QQuickPath(QQuickPathPrivate &dd, QObject *parent = nullptr); | - |
524 | void componentComplete() override; | - |
525 | void classBegin() override; | - |
526 | void disconnectPathElements(); | - |
527 | void connectPathElements(); | - |
528 | void gatherAttributes(); | - |
529 | - | |
530 | - | |
531 | static QQuickPathElement *pathElements_at(QQmlListProperty<QQuickPathElement> *, int); | - |
532 | static void pathElements_append(QQmlListProperty<QQuickPathElement> *, QQuickPathElement *); | - |
533 | static int pathElements_count(QQmlListProperty<QQuickPathElement> *); | - |
534 | static void pathElements_clear(QQmlListProperty<QQuickPathElement> *); | - |
535 | - | |
536 | private : | - |
537 | void processPath(); | - |
538 | - | |
539 | private: | - |
540 | struct AttributePoint { | - |
541 | AttributePoint() {} | - |
542 | AttributePoint(const AttributePoint &other) | - |
543 | : percent(other.percent), scale(other.scale), origpercent(other.origpercent), values(other.values) {} executed 1164 times by 5 tests: end of block Executed by:
| 1164 |
544 | AttributePoint &operator=(const AttributePoint &other) { | - |
545 | percent = other.percent; scale = other.scale; origpercent = other.origpercent; values = other.values; return never executed: *this;return *this; never executed: return *this; | 0 |
546 | } | - |
547 | qreal percent = 0; | - |
548 | qreal scale = 1; | - |
549 | qreal origpercent = 0; | - |
550 | QHash<QString, qreal> values; | - |
551 | }; | - |
552 | - | |
553 | void interpolate(int idx, const QString &name, qreal value); | - |
554 | void endpoint(const QString &name); | - |
555 | void createPointCache() const; | - |
556 | - | |
557 | static void interpolate(QList<AttributePoint> &points, int idx, const QString &name, qreal value); | - |
558 | static void endpoint(QList<AttributePoint> &attributePoints, const QString &name); | - |
559 | static QPointF forwardsPointAt(const QPainterPath &path, const qreal &pathLength, const QList<AttributePoint> &attributePoints, QQuickCachedBezier &prevBez, qreal p, qreal *angle = nullptr); | - |
560 | static QPointF backwardsPointAt(const QPainterPath &path, const qreal &pathLength, const QList<AttributePoint> &attributePoints, QQuickCachedBezier &prevBez, qreal p, qreal *angle = nullptr); | - |
561 | - | |
562 | private: | - |
563 | QQuickPath(const QQuickPath &) = delete; QQuickPath &operator=(const QQuickPath &) = delete; | - |
564 | inline QQuickPathPrivate* d_func() { return executed 21100 times by 6 tests: reinterpret_cast<QQuickPathPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickPathPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 21100 times by 6 tests: } inline const QQuickPathPrivate* d_func() const { returnreturn reinterpret_cast<QQuickPathPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 123243 times by 6 tests: reinterpret_cast<const QQuickPathPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickPathPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 123243 times by 6 tests: } friend class QQuickPathPrivate;return reinterpret_cast<const QQuickPathPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
| 21100-123243 |
565 | friend class QQuickPathAnimationUpdater; | - |
566 | - | |
567 | public: | - |
568 | QPainterPath createPath(const QPointF &startPoint, const QPointF &endPoint, const QStringList &attributes, qreal &pathLength, QList<AttributePoint> &attributePoints, bool *closed = nullptr); | - |
569 | QPainterPath createShapePath(const QPointF &startPoint, const QPointF &endPoint, qreal &pathLength, bool *closed = nullptr); | - |
570 | static QPointF sequentialPointAt(const QPainterPath &path, const qreal &pathLength, const QList<AttributePoint> &attributePoints, QQuickCachedBezier &prevBez, qreal p, qreal *angle = nullptr); | - |
571 | }; | - |
572 | - | |
573 | - | |
574 | - | |
575 | template <> struct QMetaTypeId< QQuickPathElement * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickPathElement * >("QQuickPathElement *", reinterpret_cast< QQuickPathElement * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickPathElement> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickPathElement> >("QQmlListProperty<QQuickPathElement>", reinterpret_cast< QQmlListProperty<QQuickPathElement> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
576 | template <> struct QMetaTypeId< QQuickPathAttribute * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickPathAttribute * >("QQuickPathAttribute *", reinterpret_cast< QQuickPathAttribute * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickPathAttribute> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickPathAttribute> >("QQmlListProperty<QQuickPathAttribute>", reinterpret_cast< QQmlListProperty<QQuickPathAttribute> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
577 | template <> struct QMetaTypeId< QQuickCurve * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickCurve * >("QQuickCurve *", reinterpret_cast< QQuickCurve * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickCurve> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickCurve> >("QQmlListProperty<QQuickCurve>", reinterpret_cast< QQmlListProperty<QQuickCurve> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
578 | template <> struct QMetaTypeId< QQuickPathLine * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickPathLine * >("QQuickPathLine *", reinterpret_cast< QQuickPathLine * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickPathLine> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickPathLine> >("QQmlListProperty<QQuickPathLine>", reinterpret_cast< QQmlListProperty<QQuickPathLine> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
579 | template <> struct QMetaTypeId< QQuickPathMove * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickPathMove * >("QQuickPathMove *", reinterpret_cast< QQuickPathMove * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickPathMove> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickPathMove> >("QQmlListProperty<QQuickPathMove>", reinterpret_cast< QQmlListProperty<QQuickPathMove> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
580 | template <> struct QMetaTypeId< QQuickPathQuad * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickPathQuad * >("QQuickPathQuad *", reinterpret_cast< QQuickPathQuad * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickPathQuad> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickPathQuad> >("QQmlListProperty<QQuickPathQuad>", reinterpret_cast< QQmlListProperty<QQuickPathQuad> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
581 | template <> struct QMetaTypeId< QQuickPathCubic * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickPathCubic * >("QQuickPathCubic *", reinterpret_cast< QQuickPathCubic * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickPathCubic> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickPathCubic> >("QQmlListProperty<QQuickPathCubic>", reinterpret_cast< QQmlListProperty<QQuickPathCubic> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
582 | template <> struct QMetaTypeId< QQuickPathCatmullRomCurve * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickPathCatmullRomCurve * >("QQuickPathCatmullRomCurve *", reinterpret_cast< QQuickPathCatmullRomCurve * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickPathCatmullRomCurve> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickPathCatmullRomCurve> >("QQmlListProperty<QQuickPathCatmullRomCurve>", reinterpret_cast< QQmlListProperty<QQuickPathCatmullRomCurve> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
583 | template <> struct QMetaTypeId< QQuickPathArc * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickPathArc * >("QQuickPathArc *", reinterpret_cast< QQuickPathArc * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickPathArc> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickPathArc> >("QQmlListProperty<QQuickPathArc>", reinterpret_cast< QQmlListProperty<QQuickPathArc> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
584 | template <> struct QMetaTypeId< QQuickPathAngleArc * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickPathAngleArc * >("QQuickPathAngleArc *", reinterpret_cast< QQuickPathAngleArc * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickPathAngleArc> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickPathAngleArc> >("QQmlListProperty<QQuickPathAngleArc>", reinterpret_cast< QQmlListProperty<QQuickPathAngleArc> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
585 | template <> struct QMetaTypeId< QQuickPathSvg * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickPathSvg * >("QQuickPathSvg *", reinterpret_cast< QQuickPathSvg * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickPathSvg> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickPathSvg> >("QQmlListProperty<QQuickPathSvg>", reinterpret_cast< QQmlListProperty<QQuickPathSvg> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
586 | template <> struct QMetaTypeId< QQuickPathPercent * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickPathPercent * >("QQuickPathPercent *", reinterpret_cast< QQuickPathPercent * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickPathPercent> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickPathPercent> >("QQmlListProperty<QQuickPathPercent>", reinterpret_cast< QQmlListProperty<QQuickPathPercent> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
587 | template <> struct QMetaTypeId< QQuickPath * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQuickPath * >("QQuickPath *", reinterpret_cast< QQuickPath * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickPath> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQuickPath> >("QQmlListProperty<QQuickPath>", reinterpret_cast< QQmlListProperty<QQuickPath> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
Switch to Source code | Preprocessed file |