OpenCoverage

qquickgraphicsinfo_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickgraphicsinfo_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4class QQuickItem;-
5class QQuickWindow;-
6-
7class QQuickGraphicsInfo : public QObject-
8{-
9 public:-
10#pragma GCC diagnostic push-
11 -
12#pragma GCC diagnostic ignored "-Wsuggest-override"-
13 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:-
14#pragma GCC diagnostic ignored "-Wattributes"-
15 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
16#pragma GCC diagnostic pop-
17 struct QPrivateSignal {};-
18 -
19 -
20 -
21 -
22-
23 -
24 -
25 -
26 -
27-
28public:-
29 enum GraphicsApi {-
30 Unknown = QSGRendererInterface::Unknown,-
31 Software = QSGRendererInterface::Software,-
32 OpenGL = QSGRendererInterface::OpenGL,-
33 Direct3D12 = QSGRendererInterface::Direct3D12-
34 };-
35 friend constexpr const QMetaObject *qt_getEnumMetaObject(GraphicsApi) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(GraphicsApi) noexcept { return "GraphicsApi"; }-
36-
37 enum ShaderType {-
38 UnknownShadingLanguage = QSGRendererInterface::UnknownShadingLanguage,-
39 GLSL = QSGRendererInterface::GLSL,-
40 HLSL = QSGRendererInterface::HLSL-
41 };-
42 friend constexpr const QMetaObject *qt_getEnumMetaObject(ShaderType) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(ShaderType) noexcept { return "ShaderType"; }-
43-
44 enum ShaderCompilationType {-
45 RuntimeCompilation = QSGRendererInterface::RuntimeCompilation,-
46 OfflineCompilation = QSGRendererInterface::OfflineCompilation-
47 };-
48 friend constexpr const QMetaObject *qt_getEnumMetaObject(ShaderCompilationType) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(ShaderCompilationType) noexcept { return "ShaderCompilationType"; }-
49-
50 enum ShaderSourceType {-
51 ShaderSourceString = QSGRendererInterface::ShaderSourceString,-
52 ShaderSourceFile = QSGRendererInterface::ShaderSourceFile,-
53 ShaderByteCode = QSGRendererInterface::ShaderByteCode-
54 };-
55 friend constexpr const QMetaObject *qt_getEnumMetaObject(ShaderSourceType) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(ShaderSourceType) noexcept { return "ShaderSourceType"; }-
56-
57 enum OpenGLContextProfile {-
58 OpenGLNoProfile = QSurfaceFormat::NoProfile,-
59 OpenGLCoreProfile = QSurfaceFormat::CoreProfile,-
60 OpenGLCompatibilityProfile = QSurfaceFormat::CompatibilityProfile-
61 };-
62 friend constexpr const QMetaObject *qt_getEnumMetaObject(OpenGLContextProfile) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(OpenGLContextProfile) noexcept { return "OpenGLContextProfile"; }-
63-
64 enum RenderableType {-
65 SurfaceFormatUnspecified = QSurfaceFormat::DefaultRenderableType,-
66 SurfaceFormatOpenGL = QSurfaceFormat::OpenGL,-
67 SurfaceFormatOpenGLES = QSurfaceFormat::OpenGLES-
68 };-
69 friend constexpr const QMetaObject *qt_getEnumMetaObject(RenderableType) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(RenderableType) noexcept { return "RenderableType"; }-
70-
71 QQuickGraphicsInfo(QQuickItem *item = 0);-
72-
73 static QQuickGraphicsInfo *qmlAttachedProperties(QObject *object);-
74-
75 GraphicsApi api() const { return
executed 4 times by 1 test: return m_api;
Executed by:
  • tst_qquickgraphicsinfo
m_api;
executed 4 times by 1 test: return m_api;
Executed by:
  • tst_qquickgraphicsinfo
}
4
76 ShaderType shaderType() const { return
executed 4 times by 1 test: return m_shaderType;
Executed by:
  • tst_qquickgraphicsinfo
m_shaderType;
executed 4 times by 1 test: return m_shaderType;
Executed by:
  • tst_qquickgraphicsinfo
}
4
77 ShaderCompilationType shaderCompilationType() const { return
executed 4 times by 1 test: return m_shaderCompilationType;
Executed by:
  • tst_qquickgraphicsinfo
m_shaderCompilationType;
executed 4 times by 1 test: return m_shaderCompilationType;
Executed by:
  • tst_qquickgraphicsinfo
}
4
78 ShaderSourceType shaderSourceType() const { return
executed 4 times by 1 test: return m_shaderSourceType;
Executed by:
  • tst_qquickgraphicsinfo
m_shaderSourceType;
executed 4 times by 1 test: return m_shaderSourceType;
Executed by:
  • tst_qquickgraphicsinfo
}
4
79-
80 int majorVersion() const { return
executed 2 times by 1 test: return m_majorVersion;
Executed by:
  • tst_qquickgraphicsinfo
m_majorVersion;
executed 2 times by 1 test: return m_majorVersion;
Executed by:
  • tst_qquickgraphicsinfo
}
2
81 int minorVersion() const { return
executed 2 times by 1 test: return m_minorVersion;
Executed by:
  • tst_qquickgraphicsinfo
m_minorVersion;
executed 2 times by 1 test: return m_minorVersion;
Executed by:
  • tst_qquickgraphicsinfo
}
2
82 OpenGLContextProfile profile() const { return
executed 2 times by 1 test: return m_profile;
Executed by:
  • tst_qquickgraphicsinfo
m_profile;
executed 2 times by 1 test: return m_profile;
Executed by:
  • tst_qquickgraphicsinfo
}
2
83 RenderableType renderableType() const { return
executed 2 times by 1 test: return m_renderableType;
Executed by:
  • tst_qquickgraphicsinfo
m_renderableType;
executed 2 times by 1 test: return m_renderableType;
Executed by:
  • tst_qquickgraphicsinfo
}
2
84-
85public :-
86 void apiChanged();-
87 void shaderTypeChanged();-
88 void shaderCompilationTypeChanged();-
89 void shaderSourceTypeChanged();-
90-
91 void majorVersionChanged();-
92 void minorVersionChanged();-
93 void profileChanged();-
94 void renderableTypeChanged();-
95-
96private :-
97 void updateInfo();-
98 void setWindow(QQuickWindow *window);-
99-
100private:-
101 QPointer<QQuickWindow> m_window;-
102 GraphicsApi m_api;-
103 ShaderType m_shaderType;-
104 ShaderCompilationType m_shaderCompilationType;-
105 ShaderSourceType m_shaderSourceType;-
106 int m_majorVersion;-
107 int m_minorVersion;-
108 OpenGLContextProfile m_profile;-
109 RenderableType m_renderableType;-
110};-
111-
112-
113-
114 template <> class QQmlTypeInfo<QQuickGraphicsInfo > { public: enum { hasAttachedProperties = (((QML_HAS_ATTACHED_PROPERTIES) & QML_HAS_ATTACHED_PROPERTIES) == QML_HAS_ATTACHED_PROPERTIES) }; };-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0