Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/coreapi/qsgabstractrenderer.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | - | |
6 | - | |
7 | - | |
8 | class QSGAbstractRendererPrivate; | - |
9 | - | |
10 | class __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 {}; | - |
21 | public: | - |
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:
| 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:
| 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 | - | |
54 | public : | - |
55 | void sceneGraphChanged(); | - |
56 | - | |
57 | protected: | - |
58 | explicit QSGAbstractRenderer(QObject *parent = nullptr); | - |
59 | virtual void nodeChanged(QSGNode *node, QSGNode::DirtyState state) = 0; | - |
60 | - | |
61 | private: | - |
62 | inline QSGAbstractRendererPrivate* d_func() { return executed 264204 times by 77 tests: reinterpret_cast<QSGAbstractRendererPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QSGAbstractRendererPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 264204 times by 77 tests: } inline const QSGAbstractRendererPrivate* d_func() const { returnreturn reinterpret_cast<QSGAbstractRendererPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 1022910 times by 77 tests: reinterpret_cast<const QSGAbstractRendererPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QSGAbstractRendererPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 1022910 times by 77 tests: } friend class QSGAbstractRendererPrivate;return reinterpret_cast<const QSGAbstractRendererPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
| 264204-1022910 |
63 | friend class QSGRootNode; | - |
64 | }; | - |
65 | - | |
66 | constexpr 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 code | Preprocessed file |