Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickshadereffectmesh_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | static_assert(bool(1 == 1), "Required feature " "quick_shadereffect" " for file " __FILE__ " not available."); | - |
3 | - | |
4 | - | |
5 | - | |
6 | - | |
7 | const char *qtPositionAttributeName(); | - |
8 | const char *qtTexCoordAttributeName(); | - |
9 | - | |
10 | class QSGGeometry; | - |
11 | class QRectF; | - |
12 | - | |
13 | class QQuickShaderEffectMesh : public QObject | - |
14 | { | - |
15 | public: | - |
16 | #pragma GCC diagnostic push | - |
17 | - | |
18 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
19 | 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: | - |
20 | #pragma GCC diagnostic ignored "-Wattributes" | - |
21 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
22 | #pragma GCC diagnostic pop | - |
23 | struct QPrivateSignal {}; | - |
24 | public: | - |
25 | QQuickShaderEffectMesh(QObject *parent = nullptr); | - |
26 | virtual bool validateAttributes(const QVector<QByteArray> &attributes, int *posIndex) = 0; | - |
27 | - | |
28 | virtual QSGGeometry *updateGeometry(QSGGeometry *geometry, int attrCount, int posIndex, | - |
29 | const QRectF &srcRect, const QRectF &rect) = 0; | - |
30 | - | |
31 | virtual QString log() const { return never executed: QString();return QString(); never executed: }return QString(); | 0 |
32 | - | |
33 | public : | - |
34 | - | |
35 | void geometryChanged(); | - |
36 | }; | - |
37 | - | |
38 | class QQuickGridMesh : public QQuickShaderEffectMesh | - |
39 | { | - |
40 | public: | - |
41 | #pragma GCC diagnostic push | - |
42 | - | |
43 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
44 | 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: | - |
45 | #pragma GCC diagnostic ignored "-Wattributes" | - |
46 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
47 | #pragma GCC diagnostic pop | - |
48 | struct QPrivateSignal {}; | - |
49 | - | |
50 | public: | - |
51 | QQuickGridMesh(QObject *parent = nullptr); | - |
52 | bool validateAttributes(const QVector<QByteArray> &attributes, int *posIndex) override; | - |
53 | QSGGeometry *updateGeometry(QSGGeometry *geometry, int attrCount, int posIndex, | - |
54 | const QRectF &srcRect, const QRectF &rect) override; | - |
55 | QString log() const override { return never executed: m_log;return m_log; never executed: }return m_log; | 0 |
56 | - | |
57 | void setResolution(const QSize &res); | - |
58 | QSize resolution() const; | - |
59 | - | |
60 | public : | - |
61 | void resolutionChanged(); | - |
62 | - | |
63 | private: | - |
64 | QSize m_resolution; | - |
65 | QString m_log; | - |
66 | }; | - |
67 | - | |
68 | class QQuickScaleGrid; | - |
69 | class QQuickBorderImageMesh : public QQuickShaderEffectMesh | - |
70 | { | - |
71 | public: | - |
72 | #pragma GCC diagnostic push | - |
73 | - | |
74 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
75 | 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: | - |
76 | #pragma GCC diagnostic ignored "-Wattributes" | - |
77 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
78 | #pragma GCC diagnostic pop | - |
79 | struct QPrivateSignal {}; | - |
80 | - | |
81 | - | |
82 | - | |
83 | - | |
84 | - | |
85 | public: | - |
86 | QQuickBorderImageMesh(QObject *parent = nullptr); | - |
87 | - | |
88 | bool validateAttributes(const QVector<QByteArray> &attributes, int *posIndex) override; | - |
89 | QSGGeometry *updateGeometry(QSGGeometry *geometry, int attrCount, int posIndex, | - |
90 | const QRectF &srcRect, const QRectF &rect) override; | - |
91 | - | |
92 | QQuickScaleGrid *border() const; | - |
93 | - | |
94 | enum TileMode { Stretch = Qt::StretchTile, Repeat = Qt::RepeatTile, Round = Qt::RoundTile }; | - |
95 | friend constexpr const QMetaObject *qt_getEnumMetaObject(TileMode) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(TileMode) noexcept { return "TileMode"; } | - |
96 | - | |
97 | QSize size() const; | - |
98 | void setSize(const QSize &size); | - |
99 | - | |
100 | TileMode horizontalTileMode() const; | - |
101 | void setHorizontalTileMode(TileMode); | - |
102 | - | |
103 | TileMode verticalTileMode() const; | - |
104 | void setVerticalTileMode(TileMode); | - |
105 | - | |
106 | public : | - |
107 | void sizeChanged(); | - |
108 | void horizontalTileModeChanged(); | - |
109 | void verticalTileModeChanged(); | - |
110 | - | |
111 | private: | - |
112 | QQuickScaleGrid *m_border; | - |
113 | QSize m_size; | - |
114 | TileMode m_horizontalTileMode; | - |
115 | TileMode m_verticalTileMode; | - |
116 | }; | - |
117 | - | |
118 | inline QColor qt_premultiply_color(const QColor &c) | - |
119 | { | - |
120 | return executed 8 times by 1 test: QColor::fromRgbF(c.redF() * c.alphaF(), c.greenF() * c.alphaF(), c.blueF() * c.alphaF(), c.alphaF());return QColor::fromRgbF(c.redF() * c.alphaF(), c.greenF() * c.alphaF(), c.blueF() * c.alphaF(), c.alphaF()); Executed by:
executed 8 times by 1 test: return QColor::fromRgbF(c.redF() * c.alphaF(), c.greenF() * c.alphaF(), c.blueF() * c.alphaF(), c.alphaF()); Executed by:
| 8 |
121 | } | - |
122 | - | |
123 | - | |
124 | - | |
Switch to Source code | Preprocessed file |