OpenCoverage

qquickshadereffectmesh_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickshadereffectmesh_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2static_assert(bool(1 == 1), "Required feature " "quick_shadereffect" " for file " __FILE__ " not available.");-
3-
4-
5-
6-
7const char *qtPositionAttributeName();-
8const char *qtTexCoordAttributeName();-
9-
10class QSGGeometry;-
11class QRectF;-
12-
13class 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 {};-
24public:-
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: return QString();
QString();
never executed: return QString();
}
0
32-
33public :-
34-
35 void geometryChanged();-
36};-
37-
38class 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 -
50public:-
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: return m_log;
m_log;
never executed: return m_log;
}
0
56-
57 void setResolution(const QSize &res);-
58 QSize resolution() const;-
59-
60public :-
61 void resolutionChanged();-
62-
63private:-
64 QSize m_resolution;-
65 QString m_log;-
66};-
67-
68class QQuickScaleGrid;-
69class 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 -
85public:-
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-
106public :-
107 void sizeChanged();-
108 void horizontalTileModeChanged();-
109 void verticalTileModeChanged();-
110-
111private:-
112 QQuickScaleGrid *m_border;-
113 QSize m_size;-
114 TileMode m_horizontalTileMode;-
115 TileMode m_verticalTileMode;-
116};-
117-
118inline QColor qt_premultiply_color(const QColor &c)-
119{-
120 return
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:
  • tst_examples
QColor::fromRgbF(c.redF() * c.alphaF(), c.greenF() * c.alphaF(), c.blueF() * c.alphaF(), c.alphaF());
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:
  • tst_examples
8
121}-
122-
123-
124-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0