OpenCoverage

qquickanimatedsprite_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickanimatedsprite_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2static_assert(bool(1 == 1), "Required feature " "quick_sprite" " for file " __FILE__ " not available.");-
3-
4-
5-
6-
7class QSGContext;-
8class QQuickSprite;-
9class QQuickSpriteEngine;-
10class QSGGeometryNode;-
11class QQuickAnimatedSpriteMaterial;-
12class QQuickAnimatedSpritePrivate;-
13class QSGSpriteNode;-
14class __attribute__((visibility("default"))) QQuickAnimatedSprite : public QQuickItem-
15{-
16 public:-
17#pragma GCC diagnostic push-
18 -
19#pragma GCC diagnostic ignored "-Wsuggest-override"-
20 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:-
21#pragma GCC diagnostic ignored "-Wattributes"-
22 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
23#pragma GCC diagnostic pop-
24 struct QPrivateSignal {};-
25 -
26 -
27-
28-
29 -
30 -
31 -
32 -
33-
34-
35 -
36 -
37 -
38 -
39-
40 -
41 -
42-
43 -
44 -
45 -
46-
47public:-
48 explicit QQuickAnimatedSprite(QQuickItem *parent = nullptr);-
49 enum LoopParameters {-
50 Infinite = -1-
51 };-
52 friend constexpr const QMetaObject *qt_getEnumMetaObject(LoopParameters) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(LoopParameters) noexcept { return "LoopParameters"; }-
53-
54 bool running() const;-
55 bool interpolate() const;-
56 QUrl source() const;-
57 bool reverse() const;-
58 bool frameSync() const;-
59 int frameCount() const;-
60 int frameHeight() const;-
61 int frameWidth() const;-
62 int frameX() const;-
63 int frameY() const;-
64 qreal frameRate() const;-
65 int frameDuration() const;-
66 int loops() const;-
67 bool paused() const;-
68 int currentFrame() const;-
69-
70public :-
71-
72 void pausedChanged(bool arg);-
73 void runningChanged(bool arg);-
74 void interpolateChanged(bool arg);-
75-
76 void sourceChanged(QUrl arg);-
77 void reverseChanged(bool arg);-
78 void frameSyncChanged(bool arg);-
79 void frameCountChanged(int arg);-
80 void frameHeightChanged(int arg);-
81 void frameWidthChanged(int arg);-
82 void frameXChanged(int arg);-
83 void frameYChanged(int arg);-
84 void frameRateChanged(qreal arg);-
85 void frameDurationChanged(int arg);-
86 void loopsChanged(int arg);-
87 void currentFrameChanged(int arg);-
88-
89 void finished();-
90-
91public :-
92 void start();-
93 void stop();-
94 void restart() {stop(); start();}
executed 8 times by 1 test: end of block
Executed by:
  • tst_qquickanimatedsprite
8
95 void advance(int frames=1);-
96 void pause();-
97 void resume();-
98-
99 void setRunning(bool arg);-
100 void setPaused(bool arg);-
101 void setInterpolate(bool arg);-
102 void setSource(QUrl arg);-
103 void setReverse(bool arg);-
104 void setFrameSync(bool arg);-
105 void setFrameCount(int arg);-
106 void setFrameHeight(int arg);-
107 void setFrameWidth(int arg);-
108 void setFrameX(int arg);-
109 void setFrameY(int arg);-
110 void setFrameRate(qreal arg);-
111 void setFrameDuration(int arg);-
112 void resetFrameRate();-
113 void resetFrameDuration();-
114 void setLoops(int arg);-
115 void setCurrentFrame(int arg);-
116-
117-
118private :-
119 void createEngine();-
120-
121protected :-
122 void reset();-
123-
124protected:-
125 void componentComplete() override;-
126 QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *) override;-
127private:-
128 void maybeUpdate();-
129 bool isCurrentFrameChangedConnected();-
130 void prepareNextFrame(QSGSpriteNode *node);-
131 void reloadImage();-
132 QSGSpriteNode* initNode();-
133-
134private:-
135 QQuickAnimatedSprite(const QQuickAnimatedSprite &) = delete; QQuickAnimatedSprite &operator=(const QQuickAnimatedSprite &) = delete;-
136 inline QQuickAnimatedSpritePrivate* d_func() { return
executed 2214 times by 1 test: return reinterpret_cast<QQuickAnimatedSpritePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_qquickanimatedsprite
reinterpret_cast<QQuickAnimatedSpritePrivate *>(qGetPtrHelper(d_ptr));
executed 2214 times by 1 test: return reinterpret_cast<QQuickAnimatedSpritePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_qquickanimatedsprite
} inline const QQuickAnimatedSpritePrivate* d_func() const { return
executed 1013 times by 1 test: return reinterpret_cast<const QQuickAnimatedSpritePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_qquickanimatedsprite
reinterpret_cast<const QQuickAnimatedSpritePrivate *>(qGetPtrHelper(d_ptr));
executed 1013 times by 1 test: return reinterpret_cast<const QQuickAnimatedSpritePrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_qquickanimatedsprite
} friend class QQuickAnimatedSpritePrivate;
1013-2214
137};-
138-
139-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0