Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/scenegraph/qsgcontextplugin_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | class QSGContext; | - |
5 | - | |
6 | class QSGRenderLoop; | - |
7 | - | |
8 | struct __attribute__((visibility("default"))) QSGContextFactoryInterface : public QFactoryInterface | - |
9 | { | - |
10 | enum Flag { | - |
11 | SupportsShaderEffectNode = 0x01 | - |
12 | }; | - |
13 | typedef QFlags<Flag> Flags; | - |
14 | - | |
15 | virtual QSGContext *create(const QString &key) const = 0; | - |
16 | virtual Flags flags(const QString &key) const = 0; | - |
17 | - | |
18 | virtual QQuickTextureFactory *createTextureFactoryFromImage(const QImage &image) = 0; | - |
19 | virtual QSGRenderLoop *createWindowManager() = 0; | - |
20 | }; | - |
21 | - | |
22 | constexpr inline QFlags<QSGContextFactoryInterface::Flags::enum_type> operator|(QSGContextFactoryInterface::Flags::enum_type f1, QSGContextFactoryInterface::Flags::enum_type f2) noexcept { return QFlags<QSGContextFactoryInterface::Flags::enum_type>(f1) | f2; } constexpr inline QFlags<QSGContextFactoryInterface::Flags::enum_type> operator|(QSGContextFactoryInterface::Flags::enum_type f1, QFlags<QSGContextFactoryInterface::Flags::enum_type> f2) noexcept { return f2 | f1; } constexpr inline QIncompatibleFlag operator|(QSGContextFactoryInterface::Flags::enum_type f1, int f2) noexcept { return QIncompatibleFlag(int(f1) | f2); } | - |
23 | - | |
24 | - | |
25 | - | |
26 | template <> inline const char *qobject_interface_iid<QSGContextFactoryInterface *>() { return "org.qt-project.Qt.QSGContextFactoryInterface"; } template <> inline QSGContextFactoryInterface *qobject_cast<QSGContextFactoryInterface *>(QObject *object) { return reinterpret_cast<QSGContextFactoryInterface *>((object ? object->qt_metacast("org.qt-project.Qt.QSGContextFactoryInterface") : nullptr)); } template <> inline QSGContextFactoryInterface *qobject_cast<QSGContextFactoryInterface *>(const QObject *object) { return reinterpret_cast<QSGContextFactoryInterface *>((object ? const_cast<QObject *>(object)->qt_metacast("org.qt-project.Qt.QSGContextFactoryInterface") : nullptr)); } | - |
27 | - | |
28 | class __attribute__((visibility("default"))) QSGContextPlugin : public QObject, public QSGContextFactoryInterface | - |
29 | { | - |
30 | public: | - |
31 | #pragma GCC diagnostic push | - |
32 | - | |
33 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
34 | 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: | - |
35 | #pragma GCC diagnostic ignored "-Wattributes" | - |
36 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
37 | #pragma GCC diagnostic pop | - |
38 | struct QPrivateSignal {}; | - |
39 | - | |
40 | public: | - |
41 | explicit QSGContextPlugin(QObject *parent = nullptr); | - |
42 | virtual ~QSGContextPlugin(); | - |
43 | - | |
44 | QStringList keys() const override = 0; | - |
45 | - | |
46 | QQuickTextureFactory *createTextureFactoryFromImage(const QImage &) override { return never executed: nullptr;return nullptr; never executed: }return nullptr; | 0 |
47 | QSGRenderLoop *createWindowManager() override { return never executed: nullptr;return nullptr; never executed: }return nullptr; | 0 |
48 | }; | - |
49 | - | |
50 | - | |
Switch to Source code | Preprocessed file |