Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quickshapes/qquickshape_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | class QQuickShapePathPrivate; | - |
6 | class QQuickShapePrivate; | - |
7 | - | |
8 | class __attribute__((visibility("default"))) QQuickShapeGradient : public QQuickGradient | - |
9 | { | - |
10 | public: | - |
11 | #pragma GCC diagnostic push | - |
12 | - | |
13 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
14 | 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: | - |
15 | #pragma GCC diagnostic ignored "-Wattributes" | - |
16 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
17 | #pragma GCC diagnostic pop | - |
18 | struct QPrivateSignal {}; | - |
19 | - | |
20 | - | |
21 | - | |
22 | public: | - |
23 | enum SpreadMode { | - |
24 | PadSpread, | - |
25 | RepeatSpread, | - |
26 | ReflectSpread | - |
27 | }; | - |
28 | friend constexpr const QMetaObject *qt_getEnumMetaObject(SpreadMode) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(SpreadMode) noexcept { return "SpreadMode"; } | - |
29 | - | |
30 | QQuickShapeGradient(QObject *parent = nullptr); | - |
31 | - | |
32 | SpreadMode spread() const; | - |
33 | void setSpread(SpreadMode mode); | - |
34 | - | |
35 | public : | - |
36 | void spreadChanged(); | - |
37 | - | |
38 | private: | - |
39 | SpreadMode m_spread; | - |
40 | }; | - |
41 | - | |
42 | class __attribute__((visibility("default"))) QQuickShapeLinearGradient : public QQuickShapeGradient | - |
43 | { | - |
44 | public: | - |
45 | #pragma GCC diagnostic push | - |
46 | - | |
47 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
48 | 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: | - |
49 | #pragma GCC diagnostic ignored "-Wattributes" | - |
50 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
51 | #pragma GCC diagnostic pop | - |
52 | struct QPrivateSignal {}; | - |
53 | - | |
54 | - | |
55 | - | |
56 | - | |
57 | - | |
58 | - | |
59 | public: | - |
60 | QQuickShapeLinearGradient(QObject *parent = nullptr); | - |
61 | - | |
62 | qreal x1() const; | - |
63 | void setX1(qreal v); | - |
64 | qreal y1() const; | - |
65 | void setY1(qreal v); | - |
66 | qreal x2() const; | - |
67 | void setX2(qreal v); | - |
68 | qreal y2() const; | - |
69 | void setY2(qreal v); | - |
70 | - | |
71 | public : | - |
72 | void x1Changed(); | - |
73 | void y1Changed(); | - |
74 | void x2Changed(); | - |
75 | void y2Changed(); | - |
76 | - | |
77 | private: | - |
78 | QPointF m_start; | - |
79 | QPointF m_end; | - |
80 | }; | - |
81 | - | |
82 | class __attribute__((visibility("default"))) QQuickShapeRadialGradient : public QQuickShapeGradient | - |
83 | { | - |
84 | public: | - |
85 | #pragma GCC diagnostic push | - |
86 | - | |
87 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
88 | 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: | - |
89 | #pragma GCC diagnostic ignored "-Wattributes" | - |
90 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
91 | #pragma GCC diagnostic pop | - |
92 | struct QPrivateSignal {}; | - |
93 | - | |
94 | - | |
95 | - | |
96 | - | |
97 | - | |
98 | - | |
99 | - | |
100 | - | |
101 | public: | - |
102 | QQuickShapeRadialGradient(QObject *parent = nullptr); | - |
103 | - | |
104 | qreal centerX() const; | - |
105 | void setCenterX(qreal v); | - |
106 | - | |
107 | qreal centerY() const; | - |
108 | void setCenterY(qreal v); | - |
109 | - | |
110 | qreal centerRadius() const; | - |
111 | void setCenterRadius(qreal v); | - |
112 | - | |
113 | qreal focalX() const; | - |
114 | void setFocalX(qreal v); | - |
115 | - | |
116 | qreal focalY() const; | - |
117 | void setFocalY(qreal v); | - |
118 | - | |
119 | qreal focalRadius() const; | - |
120 | void setFocalRadius(qreal v); | - |
121 | - | |
122 | public : | - |
123 | void centerXChanged(); | - |
124 | void centerYChanged(); | - |
125 | void focalXChanged(); | - |
126 | void focalYChanged(); | - |
127 | void centerRadiusChanged(); | - |
128 | void focalRadiusChanged(); | - |
129 | - | |
130 | private: | - |
131 | QPointF m_centerPoint; | - |
132 | QPointF m_focalPoint; | - |
133 | qreal m_centerRadius = 0; | - |
134 | qreal m_focalRadius = 0; | - |
135 | }; | - |
136 | - | |
137 | class __attribute__((visibility("default"))) QQuickShapeConicalGradient : public QQuickShapeGradient | - |
138 | { | - |
139 | public: | - |
140 | #pragma GCC diagnostic push | - |
141 | - | |
142 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
143 | 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: | - |
144 | #pragma GCC diagnostic ignored "-Wattributes" | - |
145 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
146 | #pragma GCC diagnostic pop | - |
147 | struct QPrivateSignal {}; | - |
148 | - | |
149 | - | |
150 | - | |
151 | - | |
152 | - | |
153 | public: | - |
154 | QQuickShapeConicalGradient(QObject *parent = nullptr); | - |
155 | - | |
156 | qreal centerX() const; | - |
157 | void setCenterX(qreal v); | - |
158 | - | |
159 | qreal centerY() const; | - |
160 | void setCenterY(qreal v); | - |
161 | - | |
162 | qreal angle() const; | - |
163 | void setAngle(qreal v); | - |
164 | - | |
165 | public : | - |
166 | void centerXChanged(); | - |
167 | void centerYChanged(); | - |
168 | void angleChanged(); | - |
169 | - | |
170 | private: | - |
171 | QPointF m_centerPoint; | - |
172 | qreal m_angle = 0; | - |
173 | }; | - |
174 | - | |
175 | class __attribute__((visibility("default"))) QQuickShapePath : public QQuickPath | - |
176 | { | - |
177 | public: | - |
178 | #pragma GCC diagnostic push | - |
179 | - | |
180 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
181 | 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: | - |
182 | #pragma GCC diagnostic ignored "-Wattributes" | - |
183 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
184 | #pragma GCC diagnostic pop | - |
185 | struct QPrivateSignal {}; | - |
186 | - | |
187 | - | |
188 | - | |
189 | - | |
190 | - | |
191 | - | |
192 | - | |
193 | - | |
194 | - | |
195 | - | |
196 | - | |
197 | - | |
198 | - | |
199 | public: | - |
200 | enum FillRule { | - |
201 | OddEvenFill = Qt::OddEvenFill, | - |
202 | WindingFill = Qt::WindingFill | - |
203 | }; | - |
204 | friend constexpr const QMetaObject *qt_getEnumMetaObject(FillRule) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(FillRule) noexcept { return "FillRule"; } | - |
205 | - | |
206 | enum JoinStyle { | - |
207 | MiterJoin = Qt::MiterJoin, | - |
208 | BevelJoin = Qt::BevelJoin, | - |
209 | RoundJoin = Qt::RoundJoin | - |
210 | }; | - |
211 | friend constexpr const QMetaObject *qt_getEnumMetaObject(JoinStyle) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(JoinStyle) noexcept { return "JoinStyle"; } | - |
212 | - | |
213 | enum CapStyle { | - |
214 | FlatCap = Qt::FlatCap, | - |
215 | SquareCap = Qt::SquareCap, | - |
216 | RoundCap = Qt::RoundCap | - |
217 | }; | - |
218 | friend constexpr const QMetaObject *qt_getEnumMetaObject(CapStyle) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(CapStyle) noexcept { return "CapStyle"; } | - |
219 | - | |
220 | enum StrokeStyle { | - |
221 | SolidLine = Qt::SolidLine, | - |
222 | DashLine = Qt::DashLine | - |
223 | }; | - |
224 | friend constexpr const QMetaObject *qt_getEnumMetaObject(StrokeStyle) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(StrokeStyle) noexcept { return "StrokeStyle"; } | - |
225 | - | |
226 | QQuickShapePath(QObject *parent = nullptr); | - |
227 | ~QQuickShapePath(); | - |
228 | - | |
229 | QColor strokeColor() const; | - |
230 | void setStrokeColor(const QColor &color); | - |
231 | - | |
232 | qreal strokeWidth() const; | - |
233 | void setStrokeWidth(qreal w); | - |
234 | - | |
235 | QColor fillColor() const; | - |
236 | void setFillColor(const QColor &color); | - |
237 | - | |
238 | FillRule fillRule() const; | - |
239 | void setFillRule(FillRule fillRule); | - |
240 | - | |
241 | JoinStyle joinStyle() const; | - |
242 | void setJoinStyle(JoinStyle style); | - |
243 | - | |
244 | int miterLimit() const; | - |
245 | void setMiterLimit(int limit); | - |
246 | - | |
247 | CapStyle capStyle() const; | - |
248 | void setCapStyle(CapStyle style); | - |
249 | - | |
250 | StrokeStyle strokeStyle() const; | - |
251 | void setStrokeStyle(StrokeStyle style); | - |
252 | - | |
253 | qreal dashOffset() const; | - |
254 | void setDashOffset(qreal offset); | - |
255 | - | |
256 | QVector<qreal> dashPattern() const; | - |
257 | void setDashPattern(const QVector<qreal> &array); | - |
258 | - | |
259 | QQuickShapeGradient *fillGradient() const; | - |
260 | void setFillGradient(QQuickShapeGradient *gradient); | - |
261 | void resetFillGradient(); | - |
262 | - | |
263 | public : | - |
264 | void shapePathChanged(); | - |
265 | void strokeColorChanged(); | - |
266 | void strokeWidthChanged(); | - |
267 | void fillColorChanged(); | - |
268 | void fillRuleChanged(); | - |
269 | void joinStyleChanged(); | - |
270 | void miterLimitChanged(); | - |
271 | void capStyleChanged(); | - |
272 | void strokeStyleChanged(); | - |
273 | void dashOffsetChanged(); | - |
274 | void dashPatternChanged(); | - |
275 | - | |
276 | private: | - |
277 | QQuickShapePath(const QQuickShapePath &) = delete; QQuickShapePath &operator=(const QQuickShapePath &) = delete; | - |
278 | inline QQuickShapePathPrivate* d_func() { return executed 4873 times by 2 tests: reinterpret_cast<QQuickShapePathPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickShapePathPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 4873 times by 2 tests: } inline const QQuickShapePathPrivate* d_func() const { returnreturn reinterpret_cast<QQuickShapePathPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 11599 times by 2 tests: reinterpret_cast<const QQuickShapePathPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickShapePathPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 11599 times by 2 tests: } friend class QQuickShapePathPrivate;return reinterpret_cast<const QQuickShapePathPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
| 4873-11599 |
279 | - | |
280 | }; | - |
281 | - | |
282 | class __attribute__((visibility("default"))) QQuickShape : public QQuickItem | - |
283 | { | - |
284 | public: | - |
285 | #pragma GCC diagnostic push | - |
286 | - | |
287 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
288 | 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: | - |
289 | #pragma GCC diagnostic ignored "-Wattributes" | - |
290 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
291 | #pragma GCC diagnostic pop | - |
292 | struct QPrivateSignal {}; | - |
293 | - | |
294 | - | |
295 | - | |
296 | - | |
297 | - | |
298 | - | |
299 | - | |
300 | - | |
301 | public: | - |
302 | enum RendererType { | - |
303 | UnknownRenderer, | - |
304 | GeometryRenderer, | - |
305 | NvprRenderer, | - |
306 | SoftwareRenderer | - |
307 | }; | - |
308 | friend constexpr const QMetaObject *qt_getEnumMetaObject(RendererType) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(RendererType) noexcept { return "RendererType"; } | - |
309 | - | |
310 | enum Status { | - |
311 | Null, | - |
312 | Ready, | - |
313 | Processing | - |
314 | }; | - |
315 | friend constexpr const QMetaObject *qt_getEnumMetaObject(Status) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(Status) noexcept { return "Status"; } | - |
316 | - | |
317 | enum ContainsMode { | - |
318 | BoundingRectContains, | - |
319 | FillContains | - |
320 | }; | - |
321 | friend constexpr const QMetaObject *qt_getEnumMetaObject(ContainsMode) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(ContainsMode) noexcept { return "ContainsMode"; } | - |
322 | - | |
323 | QQuickShape(QQuickItem *parent = nullptr); | - |
324 | ~QQuickShape(); | - |
325 | - | |
326 | RendererType rendererType() const; | - |
327 | - | |
328 | bool asynchronous() const; | - |
329 | void setAsynchronous(bool async); | - |
330 | - | |
331 | bool vendorExtensionsEnabled() const; | - |
332 | void setVendorExtensionsEnabled(bool enable); | - |
333 | - | |
334 | Status status() const; | - |
335 | - | |
336 | ContainsMode containsMode() const; | - |
337 | void setContainsMode(ContainsMode containsMode); | - |
338 | - | |
339 | bool contains(const QPointF &point) const override; | - |
340 | - | |
341 | QQmlListProperty<QObject> data(); | - |
342 | - | |
343 | protected: | - |
344 | QSGNode *updatePaintNode(QSGNode *node, UpdatePaintNodeData *) override; | - |
345 | void updatePolish() override; | - |
346 | void itemChange(ItemChange change, const ItemChangeData &data) override; | - |
347 | void componentComplete() override; | - |
348 | void classBegin() override; | - |
349 | - | |
350 | public : | - |
351 | void rendererChanged(); | - |
352 | void asynchronousChanged(); | - |
353 | void vendorExtensionsEnabledChanged(); | - |
354 | void statusChanged(); | - |
355 | void containsModeChanged(); | - |
356 | - | |
357 | private: | - |
358 | QQuickShape(const QQuickShape &) = delete; QQuickShape &operator=(const QQuickShape &) = delete; | - |
359 | inline QQuickShapePrivate* d_func() { return executed 2034 times by 2 tests: reinterpret_cast<QQuickShapePrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickShapePrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 2034 times by 2 tests: } inline const QQuickShapePrivate* d_func() const { returnreturn reinterpret_cast<QQuickShapePrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 24 times by 2 tests: reinterpret_cast<const QQuickShapePrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickShapePrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 24 times by 2 tests: } friend class QQuickShapePrivate;return reinterpret_cast<const QQuickShapePrivate *>(qGetPtrHelper(d_ptr)); Executed by:
| 24-2034 |
360 | - | |
361 | }; | - |
362 | - | |
363 | - | |
364 | - | |
365 | template <> struct QMetaTypeId< QQuickShape * > { 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< QQuickShape * >("QQuickShape *", reinterpret_cast< QQuickShape * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickShape> > { 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<QQuickShape> >("QQmlListProperty<QQuickShape>", reinterpret_cast< QQmlListProperty<QQuickShape> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
Switch to Source code | Preprocessed file |