| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickpainteditem.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | - | |
| 4 | class QQuickPaintedItemPrivate; | - |
| 5 | class __attribute__((visibility("default"))) QQuickPaintedItem : public QQuickItem | - |
| 6 | { | - |
| 7 | public: | - |
| 8 | #pragma GCC diagnostic push | - |
| 9 | - | |
| 10 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
| 11 | 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: | - |
| 12 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 13 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 14 | #pragma GCC diagnostic pop | - |
| 15 | struct QPrivateSignal {}; | - |
| 16 | - | |
| 17 | - | |
| 18 | - | |
| 19 | - | |
| 20 | - | |
| 21 | - | |
| 22 | - | |
| 23 | public: | - |
| 24 | explicit QQuickPaintedItem(QQuickItem *parent = nullptr); | - |
| 25 | ~QQuickPaintedItem() override; | - |
| 26 | - | |
| 27 | enum RenderTarget { | - |
| 28 | Image, | - |
| 29 | FramebufferObject, | - |
| 30 | InvertedYFramebufferObject | - |
| 31 | }; | - |
| 32 | friend constexpr const QMetaObject *qt_getEnumMetaObject(RenderTarget) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(RenderTarget) noexcept { return "RenderTarget"; } | - |
| 33 | - | |
| 34 | enum PerformanceHint { | - |
| 35 | FastFBOResizing = 0x1 | - |
| 36 | }; | - |
| 37 | typedef QFlags<PerformanceHint> PerformanceHints; | - |
| 38 | - | |
| 39 | void update(const QRect &rect = QRect()); | - |
| 40 | - | |
| 41 | bool opaquePainting() const; | - |
| 42 | void setOpaquePainting(bool opaque); | - |
| 43 | - | |
| 44 | bool antialiasing() const; | - |
| 45 | void setAntialiasing(bool enable); | - |
| 46 | - | |
| 47 | bool mipmap() const; | - |
| 48 | void setMipmap(bool enable); | - |
| 49 | - | |
| 50 | PerformanceHints performanceHints() const; | - |
| 51 | void setPerformanceHint(PerformanceHint hint, bool enabled = true); | - |
| 52 | void setPerformanceHints(PerformanceHints hints); | - |
| 53 | - | |
| 54 | QRectF contentsBoundingRect() const; | - |
| 55 | - | |
| 56 | QSize contentsSize() const; | - |
| 57 | void setContentsSize(const QSize &); | - |
| 58 | void resetContentsSize(); | - |
| 59 | - | |
| 60 | qreal contentsScale() const; | - |
| 61 | void setContentsScale(qreal); | - |
| 62 | - | |
| 63 | QSize textureSize() const; | - |
| 64 | void setTextureSize(const QSize &size); | - |
| 65 | - | |
| 66 | QColor fillColor() const; | - |
| 67 | void setFillColor(const QColor&); | - |
| 68 | - | |
| 69 | RenderTarget renderTarget() const; | - |
| 70 | void setRenderTarget(RenderTarget target); | - |
| 71 | - | |
| 72 | virtual void paint(QPainter *painter) = 0; | - |
| 73 | - | |
| 74 | bool isTextureProvider() const override; | - |
| 75 | QSGTextureProvider *textureProvider() const override; | - |
| 76 | - | |
| 77 | public : | - |
| 78 | void fillColorChanged(); | - |
| 79 | void contentsSizeChanged(); | - |
| 80 | void contentsScaleChanged(); | - |
| 81 | void renderTargetChanged(); | - |
| 82 | void textureSizeChanged(); | - |
| 83 | - | |
| 84 | protected: | - |
| 85 | QQuickPaintedItem(QQuickPaintedItemPrivate &dd, QQuickItem *parent = nullptr); | - |
| 86 | QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *) override; | - |
| 87 | void releaseResources() override; | - |
| 88 | void itemChange(ItemChange, const ItemChangeData &) override; | - |
| 89 | - | |
| 90 | private : | - |
| 91 | void invalidateSceneGraph(); | - |
| 92 | - | |
| 93 | private: | - |
| 94 | QQuickPaintedItem(const QQuickPaintedItem &) = delete; QQuickPaintedItem &operator=(const QQuickPaintedItem &) = delete; | - |
| 95 | inline QQuickPaintedItemPrivate* d_func() { return executed 202 times by 1 test: reinterpret_cast<QQuickPaintedItemPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickPaintedItemPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 202 times by 1 test: } inline const QQuickPaintedItemPrivate* d_func() const { returnreturn reinterpret_cast<QQuickPaintedItemPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 160 times by 1 test: reinterpret_cast<const QQuickPaintedItemPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickPaintedItemPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 160 times by 1 test: } friend class QQuickPaintedItemPrivate;return reinterpret_cast<const QQuickPaintedItemPrivate *>(qGetPtrHelper(d_ptr));Executed by:
| 160-202 |
| 96 | }; | - |
| 97 | - | |
| 98 | constexpr inline QFlags<QQuickPaintedItem::PerformanceHints::enum_type> operator|(QQuickPaintedItem::PerformanceHints::enum_type f1, QQuickPaintedItem::PerformanceHints::enum_type f2) noexcept { return QFlags<QQuickPaintedItem::PerformanceHints::enum_type>(f1) | f2; } constexpr inline QFlags<QQuickPaintedItem::PerformanceHints::enum_type> operator|(QQuickPaintedItem::PerformanceHints::enum_type f1, QFlags<QQuickPaintedItem::PerformanceHints::enum_type> f2) noexcept { return f2 | f1; } constexpr inline QIncompatibleFlag operator|(QQuickPaintedItem::PerformanceHints::enum_type f1, int f2) noexcept { return QIncompatibleFlag(int(f1) | f2); } | - |
| 99 | - | |
| 100 | - | |
| Switch to Source code | Preprocessed file |