OpenCoverage

qsgabstractrenderer.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/coreapi/qsgabstractrenderer.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8class QSGAbstractRendererPrivate;-
9-
10class __attribute__((visibility("default"))) QSGAbstractRenderer : public QObject-
11{-
12 public:-
13#pragma GCC diagnostic push-
14 -
15#pragma GCC diagnostic ignored "-Wsuggest-override"-
16 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:-
17#pragma GCC diagnostic ignored "-Wattributes"-
18 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
19#pragma GCC diagnostic pop-
20 struct QPrivateSignal {};-
21public:-
22 enum ClearModeBit-
23 {-
24 ClearColorBuffer = 0x0001,-
25 ClearDepthBuffer = 0x0002,-
26 ClearStencilBuffer = 0x0004-
27 };-
28 typedef QFlags<ClearModeBit> ClearMode;-
29-
30 ~QSGAbstractRenderer() override;-
31-
32 void setRootNode(QSGRootNode *node);-
33 QSGRootNode *rootNode() const;-
34 void setDeviceRect(const QRect &rect);-
35 inline void setDeviceRect(const QSize &size) { setDeviceRect(QRect(QPoint(), size)); }
executed 85 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicktext
85
36 QRect deviceRect() const;-
37-
38 void setViewportRect(const QRect &rect);-
39 inline void setViewportRect(const QSize &size) { setViewportRect(QRect(QPoint(), size)); }
executed 85 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickcustomparticle
  • tst_qquickitem2
  • tst_qquickitemlayer
  • tst_qquicktext
85
40 QRect viewportRect() const;-
41-
42 void setProjectionMatrixToRect(const QRectF &rect);-
43 void setProjectionMatrix(const QMatrix4x4 &matrix);-
44 QMatrix4x4 projectionMatrix() const;-
45-
46 void setClearColor(const QColor &color);-
47 QColor clearColor() const;-
48-
49 void setClearMode(ClearMode mode);-
50 ClearMode clearMode() const;-
51-
52 virtual void renderScene(uint fboId = 0) = 0;-
53-
54public :-
55 void sceneGraphChanged();-
56-
57protected:-
58 explicit QSGAbstractRenderer(QObject *parent = nullptr);-
59 virtual void nodeChanged(QSGNode *node, QSGNode::DirtyState state) = 0;-
60-
61private:-
62 inline QSGAbstractRendererPrivate* d_func() { return
executed 264204 times by 77 tests: return reinterpret_cast<QSGAbstractRendererPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • ...
reinterpret_cast<QSGAbstractRendererPrivate *>(qGetPtrHelper(d_ptr));
executed 264204 times by 77 tests: return reinterpret_cast<QSGAbstractRendererPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • ...
} inline const QSGAbstractRendererPrivate* d_func() const { return
executed 1022910 times by 77 tests: return reinterpret_cast<const QSGAbstractRendererPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • ...
reinterpret_cast<const QSGAbstractRendererPrivate *>(qGetPtrHelper(d_ptr));
executed 1022910 times by 77 tests: return reinterpret_cast<const QSGAbstractRendererPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_nodestest
  • tst_qqmlcomponent
  • tst_qqmltypeloader
  • tst_qquickage
  • tst_qquickangleddirection
  • tst_qquickanimatedimage
  • tst_qquickanimatedsprite
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickborderimage
  • tst_qquickcumulativedirection
  • tst_qquickcustomaffector
  • tst_qquickcustomparticle
  • tst_qquickdraghandler
  • tst_qquickellipseextruder
  • tst_qquickflickable
  • tst_qquickfocusscope
  • tst_qquickfontloader
  • tst_qquickfontloader_static
  • tst_qquickframebufferobject
  • tst_qquickfriction
  • ...
} friend class QSGAbstractRendererPrivate;
264204-1022910
63 friend class QSGRootNode;-
64};-
65-
66constexpr inline QFlags<QSGAbstractRenderer::ClearMode::enum_type> operator|(QSGAbstractRenderer::ClearMode::enum_type f1, QSGAbstractRenderer::ClearMode::enum_type f2) noexcept { return QFlags<QSGAbstractRenderer::ClearMode::enum_type>(f1) | f2; } constexpr inline QFlags<QSGAbstractRenderer::ClearMode::enum_type> operator|(QSGAbstractRenderer::ClearMode::enum_type f1, QFlags<QSGAbstractRenderer::ClearMode::enum_type> f2) noexcept { return f2 | f1; } constexpr inline QIncompatibleFlag operator|(QSGAbstractRenderer::ClearMode::enum_type f1, int f2) noexcept { return QIncompatibleFlag(int(f1) | f2); }-
67-
68-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0